/* ==========================================================================
   INFORMATICA FEDO — Struttura Base per Temi Stagionali & Eventi
   Caricato subito dopo style.css.
   Nota: per ora i blocchi dei temi sono volutamente vuoti per non alterare
   nulla a livello grafico sul tema principale.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AGGANCIO STRUTTURALE: BANNER SUPERIORE OPZIONALE (SPENTO DI DEFAULT)
   Viene mostrato solo se un tema attivo abilita banner.enabled = true.
   -------------------------------------------------------------------------- */
.theme-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--theme-banner-bg);
  color: var(--theme-banner-text);
  border-bottom: 1px solid var(--theme-banner-border);
  font-size: 0.875rem;
  line-height: 1.4;
}

.theme-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  min-height: 38px;
  position: relative;
  text-align: center;
}

.theme-banner-text {
  font-weight: 600;
}

.theme-banner-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity var(--transition), background-color var(--transition);
}

.theme-banner-close:hover,
.theme-banner-close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
}

html.has-theme-banner {
  scroll-padding-top: calc(var(--header-height) + var(--theme-banner-height) + 16px);
}

html.has-theme-banner body {
  padding-top: calc(var(--header-height) + var(--theme-banner-height));
}

html.has-theme-banner .site-header {
  top: var(--theme-banner-height);
}

html.has-theme-banner .mobile-nav-drawer {
  top: calc(var(--header-height) + var(--theme-banner-height));
}

/* --------------------------------------------------------------------------
   2. AGGANCIO STRUTTURALE: LAYER DECORAZIONI LEGGERE (SPENTO DI DEFAULT)
   -------------------------------------------------------------------------- */
.theme-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 950;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .theme-decorations [data-theme-animated] {
    animation: none !important;
    transition: none !important;
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. DEFINIZIONE TEMI (GUSCI PRONTI — ZERO MODIFICHE GRAFICHE ATTUALI)
   -------------------------------------------------------------------------- */

/* --- A. TEMI BASE (3) --- */

/* Tema Base 1: Principale (Default) — eredita tutti i valori originali da :root */
html[data-theme="default"] {
  /* Nessuna sovrascrittura: mantiene al 100% l'aspetto originale */
}

/* Tema Base 2 — Sfondi Fotografici Realistici per Reparto + Vignetta Intelligente */
html[data-theme="base-2"] {
  /* Token di superficie ad alta leggibilità (card quasi piene al 95%) */
  --bg-base: #F4F7FB;
  --bg-surface: rgba(255, 255, 255, 0.95);
  --bg-subtle: #EBF1F8;
  --bg-dark: #0F172A;
  --bg-dark-deeper: #090F1D;
  --bg-dark-card: rgba(15, 23, 42, 0.91);
  --header-bg: rgba(255, 255, 255, 0.93);
  --border-light: rgba(203, 213, 225, 0.9);
  --shadow-sm: 0 3px 10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 32px -6px rgba(15, 23, 42, 0.14), 0 5px 14px -2px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 48px -10px rgba(15, 23, 42, 0.2), 0 10px 20px -4px rgba(15, 23, 42, 0.09);
}

/* Header con firma bicolore Verde Sinistra / Blu Destra + Drawer pieno */
html[data-theme="base-2"] .site-header {
  border-bottom: none;
}

html[data-theme="base-2"] .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary) 0%, #34D399 35%, #60A5FA 65%, var(--blue-primary) 100%);
  pointer-events: none;
}

html[data-theme="base-2"] .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="base-2"] .site-wip-banner {
  background: rgba(255, 251, 235, 0.95);
  border-bottom-color: rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Protezione leggibilità titoli sopra sfondi fotografici vivi */
html[data-theme="base-2"] .hero-title,
html[data-theme="base-2"] .hero-subtitle,
html[data-theme="base-2"] .page-hero-title,
html[data-theme="base-2"] .page-hero-desc,
html[data-theme="base-2"] .section-light .section-title,
html[data-theme="base-2"] .section-light .section-desc,
html[data-theme="base-2"] .section-subtle .section-title,
html[data-theme="base-2"] .section-subtle .section-desc,
html[data-theme="base-2"] .bivio-section .section-title,
html[data-theme="base-2"] .bivio-section .section-desc {
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.96), 0 0 24px rgba(255, 255, 255, 0.85);
}

html[data-theme="base-2"] .section-dark .section-title,
html[data-theme="base-2"] .section-dark .section-desc {
  text-shadow: 0 2px 16px rgba(9, 15, 29, 0.95);
}

/* 1. Home & Contatti — Hero + Bivio (Doppia Anima: Sinistra Telefonia/LED, Destra PC/Informatica) */
html[data-theme="base-2"] .hero {
  background:
    linear-gradient(
      90deg,
      rgba(240, 253, 244, 0.56) 0%,
      rgba(248, 250, 252, 0.86) 32%,
      rgba(248, 250, 252, 0.86) 68%,
      rgba(239, 246, 255, 0.56) 100%
    ),
    url('../img/themes/base-2/bg-bivio-home.jpg') center center / cover no-repeat;
  border-bottom: 1px solid var(--border-light);
}

html[data-theme="base-2"] .bivio-section {
  background:
    linear-gradient(
      90deg,
      rgba(240, 253, 244, 0.62) 0%,
      rgba(244, 247, 251, 0.88) 30%,
      rgba(244, 247, 251, 0.88) 70%,
      rgba(239, 246, 255, 0.62) 100%
    ),
    url('../img/themes/base-2/bg-bivio-home.jpg') center bottom / cover no-repeat;
}

/* 2. Laboratorio Tecnico sul Retro (Home & Contatti) + CTA Banner finale */
html[data-theme="base-2"] .section-dark {
  background:
    linear-gradient(
      90deg,
      rgba(9, 15, 29, 0.54) 0%,
      rgba(9, 15, 29, 0.84) 32%,
      rgba(9, 15, 29, 0.84) 68%,
      rgba(9, 15, 29, 0.54) 100%
    ),
    url('../img/themes/base-2/bg-laboratorio-retro.jpg') center center / cover no-repeat;
}

html[data-theme="base-2"] .cta-bottom-banner {
  background:
    linear-gradient(
      90deg,
      rgba(9, 15, 29, 0.58) 0%,
      rgba(9, 15, 29, 0.86) 28%,
      rgba(9, 15, 29, 0.86) 72%,
      rgba(9, 15, 29, 0.58) 100%
    ),
    url('../img/themes/base-2/bg-laboratorio-retro.jpg') center center / cover no-repeat;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

/* 3. Reparto Informatica — Riparazioni Hardware & Hero Reparto */
html[data-theme="base-2"] .page-hero--blue,
html[data-theme="base-2"] section[data-theme-section="riparazioni"] {
  background:
    linear-gradient(
      90deg,
      rgba(239, 246, 255, 0.55) 0%,
      rgba(248, 250, 252, 0.86) 32%,
      rgba(248, 250, 252, 0.86) 68%,
      rgba(239, 246, 255, 0.55) 100%
    ),
    url('../img/themes/base-2/bg-pc-riparazioni.jpg') center center / cover no-repeat;
}

/* 4. Reparto Informatica — Formattazione Windows & Gestione Dati */
html[data-theme="base-2"] section[data-theme-section="specialita"],
html[data-theme="base-2"] section[data-theme-section="dati"] {
  background:
    linear-gradient(
      90deg,
      rgba(235, 241, 248, 0.56) 0%,
      rgba(244, 247, 251, 0.87) 32%,
      rgba(244, 247, 251, 0.87) 68%,
      rgba(235, 241, 248, 0.56) 100%
    ),
    url('../img/themes/base-2/bg-windows-dati.jpg') center center / cover no-repeat;
}

/* 5. Reparto Informatica — Vendita PC Rigenerati, Assemblati & Stampanti */
html[data-theme="base-2"] section[data-theme-section="vendita"] {
  background:
    linear-gradient(
      90deg,
      rgba(244, 247, 251, 0.56) 0%,
      rgba(248, 250, 252, 0.87) 32%,
      rgba(248, 250, 252, 0.87) 68%,
      rgba(244, 247, 251, 0.56) 100%
    ),
    url('../img/themes/base-2/bg-pc-vendita.jpg') center center / cover no-repeat;
}

/* 6. Reparto Telefonia — Hero & Dispositivi Mobili */
html[data-theme="base-2"] .page-hero--green,
html[data-theme="base-2"] section[data-theme-section="telefonia"] {
  background:
    linear-gradient(
      90deg,
      rgba(240, 253, 244, 0.55) 0%,
      rgba(248, 250, 252, 0.86) 32%,
      rgba(248, 250, 252, 0.86) 68%,
      rgba(240, 253, 244, 0.55) 100%
    ),
    url('../img/themes/base-2/bg-telefonia-mobile.jpg') center center / cover no-repeat;
}

/* 7. Reparto Elettronica — Schede Elettroniche, Telecomandi & Chiavi */
html[data-theme="base-2"] section[data-theme-section="elettronica"] {
  background:
    linear-gradient(
      90deg,
      rgba(240, 253, 244, 0.54) 0%,
      rgba(244, 247, 251, 0.86) 32%,
      rgba(244, 247, 251, 0.86) 68%,
      rgba(240, 253, 244, 0.54) 100%
    ),
    url('../img/themes/base-2/bg-schede-chiavi.jpg') center center / cover no-repeat;
}

/* 8. Illuminotecnica LED & Domotica */
html[data-theme="base-2"] section[data-theme-section="casa"] {
  background:
    linear-gradient(
      90deg,
      rgba(255, 251, 235, 0.54) 0%,
      rgba(248, 250, 252, 0.85) 32%,
      rgba(248, 250, 252, 0.85) 68%,
      rgba(240, 253, 244, 0.54) 100%
    ),
    url('../img/themes/base-2/bg-led-domotica.jpg') center center / cover no-repeat;
}

/* 9. Foto Reali di Via Armando Diaz 77 per Dove Siamo, Galleria & Recensioni */
html[data-theme="base-2"] section[data-theme-section="dove-siamo"],
html[data-theme="base-2"] section[data-theme-section="recapiti"] {
  background:
    linear-gradient(
      90deg,
      rgba(235, 241, 248, 0.60) 0%,
      rgba(244, 247, 251, 0.88) 32%,
      rgba(244, 247, 251, 0.88) 68%,
      rgba(235, 241, 248, 0.60) 100%
    ),
    url('../img/entrata-negozio.jpg') center 40% / cover no-repeat;
}

html[data-theme="base-2"] section[data-theme-section="galleria-negozio"] {
  background:
    linear-gradient(
      90deg,
      rgba(235, 241, 248, 0.62) 0%,
      rgba(244, 247, 251, 0.88) 32%,
      rgba(244, 247, 251, 0.88) 68%,
      rgba(235, 241, 248, 0.62) 100%
    ),
    url('../img/reparto-telefonia-2.jpg') center center / cover no-repeat;
}

html[data-theme="base-2"] section[data-theme-section="reviews"],
html[data-theme="base-2"] section[data-theme-section="social-contatti"] {
  background:
    linear-gradient(
      90deg,
      rgba(244, 247, 251, 0.65) 0%,
      rgba(248, 250, 252, 0.90) 32%,
      rgba(248, 250, 252, 0.90) 68%,
      rgba(244, 247, 251, 0.65) 100%
    ),
    url('../img/reparto-telefonia-3.jpg') center center / cover no-repeat;
}

/* Card quasi piene (95%) con blur pulito e accenti di reparto distintivi */
html[data-theme="base-2"] .entrances-pill-bar,
html[data-theme="base-2"] .bivio-card,
html[data-theme="base-2"] .service-card,
html[data-theme="base-2"] .specialty-card,
html[data-theme="base-2"] .review-card,
html[data-theme="base-2"] .social-card,
html[data-theme="base-2"] .contact-info-panel,
html[data-theme="base-2"] .storefront-showcase,
html[data-theme="base-2"] .dept-quick-card,
html[data-theme="base-2"] .real-photo-card,
html[data-theme="base-2"] .secondary-service-strip,
html[data-theme="base-2"] .highlight-banner,
html[data-theme="base-2"] .info-callout-note {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme="base-2"] .bivio-card,
html[data-theme="base-2"] .service-card,
html[data-theme="base-2"] .specialty-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Accenti superiori distintivi per reparto */
html[data-theme="base-2"] section[data-theme-section="specialita"] .specialty-card,
html[data-theme="base-2"] section[data-theme-section="riparazioni"] .service-card,
html[data-theme="base-2"] section[data-theme-section="dati"] .service-card,
html[data-theme="base-2"] section[data-theme-section="vendita"] .service-card {
  border-top: 3px solid var(--blue-primary);
}

html[data-theme="base-2"] .service-card--featured {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: var(--blue-border);
  border-top: 3px solid var(--blue-primary);
}

html[data-theme="base-2"] section[data-theme-section="telefonia"] .service-card,
html[data-theme="base-2"] section[data-theme-section="elettronica"] .service-card {
  border-top: 3px solid var(--green-primary);
}

html[data-theme="base-2"] section[data-theme-section="casa"] .specialty-card {
  border-top: 3px solid #D97706;
}

html[data-theme="base-2"] .service-card:hover,
html[data-theme="base-2"] .specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

html[data-theme="base-2"] .lab-highlight-card,
html[data-theme="base-2"] .photo-slot-card {
  background-color: rgba(15, 23, 42, 0.91);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Adattamento smartphone: gradienti verticali protettivi su tutta la larghezza */
@media (max-width: 640px) {
  html[data-theme="base-2"] .hero {
    background:
      linear-gradient(180deg, rgba(248, 250, 252, 0.84) 0%, rgba(244, 247, 251, 0.90) 100%),
      url('../img/themes/base-2/bg-bivio-home.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] .bivio-section {
    background:
      linear-gradient(180deg, rgba(244, 247, 251, 0.84) 0%, rgba(244, 247, 251, 0.90) 100%),
      url('../img/themes/base-2/bg-bivio-home.jpg') center bottom / cover no-repeat;
  }

  html[data-theme="base-2"] .section-dark,
  html[data-theme="base-2"] .cta-bottom-banner {
    background:
      linear-gradient(180deg, rgba(9, 15, 29, 0.84) 0%, rgba(9, 15, 29, 0.90) 100%),
      url('../img/themes/base-2/bg-laboratorio-retro.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] .page-hero--blue,
  html[data-theme="base-2"] section[data-theme-section="riparazioni"] {
    background:
      linear-gradient(180deg, rgba(239, 246, 255, 0.84) 0%, rgba(248, 250, 252, 0.90) 100%),
      url('../img/themes/base-2/bg-pc-riparazioni.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] section[data-theme-section="specialita"],
  html[data-theme="base-2"] section[data-theme-section="dati"] {
    background:
      linear-gradient(180deg, rgba(235, 241, 248, 0.84) 0%, rgba(244, 247, 251, 0.90) 100%),
      url('../img/themes/base-2/bg-windows-dati.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] section[data-theme-section="vendita"] {
    background:
      linear-gradient(180deg, rgba(244, 247, 251, 0.84) 0%, rgba(248, 250, 252, 0.90) 100%),
      url('../img/themes/base-2/bg-pc-vendita.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] .page-hero--green,
  html[data-theme="base-2"] section[data-theme-section="telefonia"] {
    background:
      linear-gradient(180deg, rgba(240, 253, 244, 0.84) 0%, rgba(248, 250, 252, 0.90) 100%),
      url('../img/themes/base-2/bg-telefonia-mobile.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] section[data-theme-section="elettronica"] {
    background:
      linear-gradient(180deg, rgba(240, 253, 244, 0.84) 0%, rgba(244, 247, 251, 0.90) 100%),
      url('../img/themes/base-2/bg-schede-chiavi.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] section[data-theme-section="casa"] {
    background:
      linear-gradient(180deg, rgba(255, 251, 235, 0.84) 0%, rgba(248, 250, 252, 0.90) 100%),
      url('../img/themes/base-2/bg-led-domotica.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] section[data-theme-section="dove-siamo"],
  html[data-theme="base-2"] section[data-theme-section="recapiti"] {
    background:
      linear-gradient(180deg, rgba(235, 241, 248, 0.84) 0%, rgba(244, 247, 251, 0.90) 100%),
      url('../img/entrata-negozio.jpg') center 40% / cover no-repeat;
  }

  html[data-theme="base-2"] section[data-theme-section="galleria-negozio"] {
    background:
      linear-gradient(180deg, rgba(235, 241, 248, 0.84) 0%, rgba(244, 247, 251, 0.90) 100%),
      url('../img/reparto-telefonia-2.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] section[data-theme-section="reviews"],
  html[data-theme="base-2"] section[data-theme-section="social-contatti"] {
    background:
      linear-gradient(180deg, rgba(244, 247, 251, 0.84) 0%, rgba(248, 250, 252, 0.90) 100%),
      url('../img/reparto-telefonia-3.jpg') center center / cover no-repeat;
  }

  html[data-theme="base-2"] .entrances-pill-bar,
  html[data-theme="base-2"] .bivio-card,
  html[data-theme="base-2"] .service-card,
  html[data-theme="base-2"] .specialty-card,
  html[data-theme="base-2"] .review-card,
  html[data-theme="base-2"] .social-card,
  html[data-theme="base-2"] .contact-info-panel,
  html[data-theme="base-2"] .storefront-showcase,
  html[data-theme="base-2"] .dept-quick-card,
  html[data-theme="base-2"] .real-photo-card,
  html[data-theme="base-2"] .secondary-service-strip,
  html[data-theme="base-2"] .highlight-banner,
  html[data-theme="base-2"] .info-callout-note {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

/* Tema Base 3 — alternativa strutturale/grafica da sviluppare */
html[data-theme="base-3"] {
  /* Da sviluppare nella fase grafica dedicata al Tema Base 3 */
}

/* --- B. TEMI FESTE & EVENTI ANNUALI (14) --- */

/* Tema Capodanno (27 dic - 1 gen) */
html[data-theme="capodanno"] {
  /* Da sviluppare nella fase grafica dedicata al tema Capodanno */
}

/* Tema Befana / Epifania (2 gen - 6 gen) */
html[data-theme="befana"] {
  /* Da sviluppare nella fase grafica dedicata al tema Befana */
}

/* Tema Carnevale (Giovedì Grasso - Martedì Grasso, calcolato da Pasqua) */
html[data-theme="carnevale"] {
  /* Da sviluppare nella fase grafica dedicata al tema Carnevale */
}

/* Tema Pasqua (7 giorni prima di Pasqua - Domenica di Pasqua) */
html[data-theme="pasqua"] {
  /* Da sviluppare nella fase grafica dedicata al tema Pasqua */
}

/* Tema Pasquetta / Lunedì dell'Angelo (lunedì dopo Pasqua) */
html[data-theme="pasquetta"] {
  /* Da sviluppare nella fase grafica dedicata al tema Pasquetta */
}

/* Tema Pesce d'aprile (1 aprile) */
html[data-theme="pesce-daprile"] {
  /* Da sviluppare nella fase grafica dedicata al tema Primo aprile */
}

/* Tema Festa della Liberazione (25 aprile) */
html[data-theme="festa-liberazione"] {
  /* Da sviluppare nella fase grafica dedicata al tema Festa della Liberazione */
}

/* Tema Festa dei Lavoratori (1 maggio) */
html[data-theme="festa-lavoratori"] {
  /* Da sviluppare nella fase grafica dedicata al tema Festa dei Lavoratori */
}

/* Tema Festa della Repubblica (2 giugno) */
html[data-theme="festa-repubblica"] {
  /* Da sviluppare nella fase grafica dedicata al tema Festa della Repubblica */
}

/* Tema Vacanze Estive (1 ago - 31 ago, escluso 15 ago Ferragosto) */
html[data-theme="vacanze-estive"] {
  /* Da sviluppare nella fase grafica dedicata al tema Vacanze Estive */
}

/* Tema Ferragosto / Assunzione (15 agosto) */
html[data-theme="ferragosto"] {
  /* Da sviluppare nella fase grafica dedicata al tema Ferragosto */
}

/* Tema Black Friday (lunedì - domenica della settimana del Black Friday) */
html[data-theme="black-friday"] {
  /* Da sviluppare nella fase grafica dedicata al tema Black Friday */
}

/* Tema Cyber Monday (lunedì successivo al Black Friday) */
html[data-theme="cyber-monday"] {
  /* Da sviluppare nella fase grafica dedicata al tema Cyber Monday */
}

/* Tema Natale (1 dic - 26 dic) */
html[data-theme="natale"] {
  /* Da sviluppare nella fase grafica dedicata al tema Natale */
}
