/* components.css — componenti herbal_boutique: intestazione, testata SPLIT (pannello crema + foto incorniciata),
   striscia valori, categorie a tessere, muro dei marchi, chi-siamo split, banda "programma" verde scuro,
   mosaico foto + lightbox, contatti con form + orari, piè di pagina. I colori arrivano dai token.
   Contratto: lo smeraldo è SUPERFICIE (mai testo su chiaro); la CTA e i titoli sono in forest; l'accento caldo
   è terracotta (testo --accent-ink su chiaro), l'oro vive solo su fondo scuro. */

/* ============================ intestazione ============================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: min-height .28s ease, box-shadow .28s ease, background-color .28s ease;
}
.site-header__row { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.site-header__row > * { align-self: center; margin-block: 0; }

.wordmark { display: flex; align-items: center; gap: var(--space-3); flex: 0 0 auto; }
.wordmark__mark { width: 44px; height: 44px; flex: 0 0 auto; transition: width .28s ease, height .28s ease; }
.wordmark__mark svg, .wordmark__mark img { width: 100%; height: 100%; }
.wordmark__txt { display: flex; flex-direction: column; line-height: 1.02; }
.wordmark__name { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--brand-deep); letter-spacing: 0; transition: color .3s ease, text-shadow .3s ease; }
.wordmark__sub { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brand-deep); margin-top: 3px; transition: color .3s ease, text-shadow .3s ease; }

.site-nav { margin-left: auto; }
.site-nav .wp-block-navigation__container { gap: clamp(1rem, .4rem + 1.2vw, 1.7rem); }
.site-nav .wp-block-navigation-item__content {
  font-family: var(--font-body); font-weight: 500; font-size: .96rem; color: var(--ink);
  padding-block: var(--space-2); position: relative;
}
.site-nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right .25s;
}
.site-nav .wp-block-navigation-item__content:hover::after { right: 0; }

.site-header__tel { font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--brand-deep); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); }
.site-header__tel svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }
.site-header__tel--compact { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-deep); color: var(--on-dark);
  align-items: center; justify-content: center; flex: 0 0 auto; }
.site-header__tel--compact svg { width: 21px; height: 21px; }

/* contrazione dopo i primi pixel di scroll (altezza FISSATA in border-box: nessun salto al cambio font) */
.site-header.is-scrolled { min-height: 60px; box-shadow: 0 6px 24px rgba(20, 67, 43, .09); }
.site-header.is-scrolled .site-header__row { min-height: 60px; }
.site-header.is-scrolled .wordmark__mark { width: 37px; height: 37px; }
.site-header.is-scrolled .wordmark__sub { display: none; }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .wordmark__mark { transition: none; } }

/* ============================ bottoni ============================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .82rem 1.6rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; transition: transform .2s, background .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
/* CTA primaria: fondo FOREST col testo chiaro (7.3:1). Lo smeraldo pieno col bianco sarebbe illeggibile. */
.btn--primary { background: var(--brand-deep); color: var(--on-dark); box-shadow: 0 10px 24px rgba(11, 92, 52, .22); }
.btn--primary:hover { transform: translateY(-2px); background: var(--brand-mid); }
.btn--ghost { border-color: var(--brand); color: var(--brand-deep); }
.btn--ghost:hover { background: var(--brand); color: var(--on-dark); transform: translateY(-2px); }
.section--dark .btn--primary, .section.green .btn--primary { background: var(--gold); color: var(--ink); box-shadow: none; }
.section--dark .btn--primary:hover, .section.green .btn--primary:hover { background: #dcb24f; }
.section--dark .btn--ghost, .section.green .btn--ghost { border-color: color-mix(in srgb, var(--on-dark) 55%, transparent); color: var(--on-dark); }
.section--dark .btn--ghost:hover, .section.green .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }

/* ============================ occhiello / lead / bande ============================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); }
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }
.lead { font-size: var(--text-md); color: var(--ink-muted); max-width: 60ch; }
.section--dark { background: var(--brand-dark); color: var(--on-dark); }
.section.green { background: var(--brand-dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section.green h2, .section.green h3, .brands h2, .brands h3 { color: var(--on-dark); }
.section--dark .lead, .section.green .lead, .brands .lead { color: color-mix(in srgb, var(--on-dark) 84%, transparent); }
.sec-head { max-width: 56ch; margin-bottom: clamp(1.8rem, 1.1rem + 1.8vw, 2.6rem); }
.sec-head--center { max-width: 640px; margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head .eyebrow { margin-bottom: var(--space-3); }
.accent { color: var(--accent-ink); }
.section--dark .accent, .section.green .accent { color: var(--gold); }

/* ============================ testata CINEMATOGRAFICA ============================ */
/* La fotografia occupa la finestra INTERA e RESTA (position:sticky) mentre il contenuto le scorre sopra —
   la richiesta dell'owner («una foto grande / di sfondo che scorre», riferimento CANU). Registro tutto
   botanico: verde profondo, oro, la foglia. Lo sticky vive nel flusso: la media occupa una finestra e la
   RESTITUISCE con un margine negativo pari alla propria altezza, così il corpo le si sovrappone. Il titolo
   sta su una TARGA scura semi-opaca (contrasto STRUTTURALE, non dipende dai pixel della foto). */
.hero { position: relative; background: var(--paper); }
.hero--cinema { min-height: 100vh; display: flex; flex-direction: column; background: var(--brand-dark); margin-top: calc(-1 * var(--header-h)); overflow: clip; }
.hero__media { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; background: var(--brand-dark); overflow: hidden; z-index: 0; }
/* la foto è più alta della finestra: la parallasse ha margine per muoversi senza scoprire i bordi */
.hero__media img, .hero__fill { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; will-change: transform; }
.hero__fill { display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 62%, var(--on-dark)); background: linear-gradient(150deg, var(--brand-dark), var(--brand)); }
.hero__fill svg { width: 26%; height: 26%; }
/* velo: scurisce in alto (header fuso) e in basso-sinistra (dove poggia la targa), lascia respirare il centro-destra */
.hero__veil { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, rgba(11,30,18,.74) 0%, rgba(11,30,18,.5) 9%, rgba(11,30,18,.14) 32%, rgba(11,30,18,.20) 60%, rgba(11,30,18,.72) 100%),
    radial-gradient(130% 90% at 16% 84%, rgba(11,30,18,.5) 0%, rgba(11,30,18,0) 60%); }
.hero__body { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-8); }
/* indice editoriale: un numerale + un filetto che si ALLUNGA quando la testata entra (segno, non copy) */
.hero__index { display: flex; align-items: center; gap: var(--space-4); color: var(--on-dark-muted);
  font-family: var(--font-body); font-weight: 600; letter-spacing: var(--tracking-label); font-size: var(--text-sm);
  margin-bottom: var(--space-6); filter: drop-shadow(0 1px 4px rgba(11,30,18,.55)); }
.hero__index span { color: var(--gold); font-family: var(--font-display); font-size: 1.1rem; }
.hero__index i { display: block; width: clamp(40px, 9vw, 130px); height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.22,.61,.36,1) .25s; }
.hero--cinema .hero__index i { transform: scaleX(1); }
/* TARGA scura semi-opaca: il contrasto è strutturale (crema su verde profondo 10.1), indipendente dalla foto */
.hero__plate { position: relative; z-index: 1; background: color-mix(in srgb, var(--brand-dark) 90%, transparent);
  backdrop-filter: blur(3px); color: var(--on-dark); padding: clamp(1.6rem, 1rem + 2.4vw, 2.7rem); max-width: 47rem;
  border-top: 3px solid var(--brand); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-panel); }
.hero__plate .eyebrow { color: var(--gold); }
.hero__plate .eyebrow::before { background: var(--gold); }
.hero__plate h1 { color: var(--on-dark); font-size: clamp(2.6rem, 1.5rem + 4.1vw, 4.85rem); margin: var(--space-3) 0 0; max-width: 15ch; }
.hero__hr { display: block; height: 2px; width: 0; background: var(--gold); margin: var(--space-4) 0 var(--space-2); transform-origin: left; transition: width 1.1s cubic-bezier(.22,.61,.36,1) .5s; }
.hero--cinema .hero__hr { width: 96px; }
.hero__lead { margin-top: var(--space-3); color: var(--on-dark-muted); font-size: var(--text-md); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero__plate .btn--primary { background: var(--gold); color: var(--ink); box-shadow: none; }
.hero__plate .btn--primary:hover { background: #dcb24f; }
.btn--ghost-light { border-color: rgba(246,243,234,.55); color: var(--on-dark); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: var(--space-5);
  font-family: var(--font-body); font-weight: 600; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--on-dark) 80%, transparent); }
.hero__meta span { position: relative; }
.hero__meta span + span::before { content: ""; position: absolute; left: -.6rem; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }
.hero__links { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: var(--space-4); }
.hero__links a { color: var(--gold); font-family: var(--font-body); font-weight: 600; font-size: .9rem; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s; }
.hero__links a:hover { border-bottom-color: var(--gold); }
/* staffa d'angolo che si disegna, in alto a destra della composizione */
.hero__mark { position: absolute; right: var(--gutter); top: 22%; width: 72px; height: 72px; pointer-events: none; z-index: 1; filter: drop-shadow(0 1px 4px rgba(11,30,18,.5)); }
.hero__mark::before, .hero__mark::after { content: ""; position: absolute; background: var(--gold); }
.hero__mark::before { right: 0; top: 0; height: 2px; width: 0; transition: width .8s cubic-bezier(.22,.61,.36,1) .55s; }
.hero__mark::after { right: 0; top: 0; width: 2px; height: 0; transition: height .8s cubic-bezier(.22,.61,.36,1) .95s; }
.hero--cinema .hero__mark::before { width: 100%; }
.hero--cinema .hero__mark::after { height: 100%; }
/* badge fluttuante sopra la foto */
.hero__badge { position: absolute; right: var(--gutter); top: 31%; background: var(--paper); border-radius: 14px; padding: .85rem 1.1rem;
  box-shadow: var(--shadow-panel); display: flex; align-items: center; gap: .7rem; max-width: 220px; z-index: 1; }
.hero__badge .leaf { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: var(--on-dark); }
.hero__badge .leaf svg { width: 21px; height: 21px; }
.hero__badge b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--brand-deep); line-height: 1.05; }
.hero__badge small { color: var(--ink-muted); font-size: .74rem; }
/* indicatore di scroll */
.hero__scroll { position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%); width: 1px; height: 52px; overflow: hidden; background: rgba(246,243,234,.28); z-index: 1; }
.hero__scroll span { position: absolute; inset: 0; background: var(--gold); animation: fp-scrolldown 2.4s cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes fp-scrolldown { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }
/* transizioni morbide del cromo: il passaggio fuso→solido (all'is-scrolled) sfuma i colori invece di
   scattare — insieme all'isteresi dello shrinkHeader (dead-band) elimina lo sfarfallio alla soglia */
.site-nav .wp-block-navigation-item__content, .site-header__tel, .site-header__tel svg { transition: color .3s ease, text-shadow .3s ease; }
/* header FUSO sulla testata (solo home, finché non si scrolla): un lieve gradiente scuro dietro il cromo
   tiene leggibili wordmark e nav su qualunque zona della foto (lo scaffale chiaro laverebbe la crema) */
body:has(.hero--cinema) .site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(11,30,18,.72) 0%, rgba(11,30,18,.46) 74%, rgba(11,30,18,.3) 100%); backdrop-filter: none; border-bottom-color: transparent; }
body:has(.hero--cinema) .site-header:not(.is-scrolled) .wordmark__name,
body:has(.hero--cinema) .site-header:not(.is-scrolled) .wordmark__sub,
body:has(.hero--cinema) .site-header:not(.is-scrolled) .site-nav .wp-block-navigation-item__content { text-shadow: 0 1px 10px rgba(11,30,18,.85); }
body:has(.hero--cinema) .site-header:not(.is-scrolled) .wordmark__name { color: var(--on-dark); }
/* il sub sull'header fuso è CREMA (l'oro piccolo su foto si perde), con ombra per staccarlo dalla foto */
body:has(.hero--cinema) .site-header:not(.is-scrolled) .wordmark__sub { color: color-mix(in srgb, var(--on-dark) 88%, transparent); letter-spacing: .17em; }
body:has(.hero--cinema) .site-header:not(.is-scrolled) .site-nav .wp-block-navigation-item__content { color: rgba(246,243,234,.92); }
body:has(.hero--cinema) .site-header:not(.is-scrolled) .site-header__tel { color: var(--on-dark); }
body:has(.hero--cinema) .site-header:not(.is-scrolled) .site-header__tel svg { color: var(--gold); }
/* fallback design-only: compatto, non a piena finestra (nessuna foto ⇒ nessuna finestra intera) */
.hero--design { min-height: 0; }
.hero--design .hero__media { height: clamp(440px, 62vh, 660px); margin-bottom: calc(-1 * clamp(440px, 62vh, 660px)); }
.hero--design .hero__body { min-height: clamp(440px, 62vh, 660px); }
.hero--design .hero__badge, .hero--design .hero__scroll { display: none; }
@media (max-width: 700px) { .hero__mark, .hero__scroll { display: none; } .hero__badge { position: static; margin-top: var(--space-5); max-width: none; } }

/* ============================ valori (striscia) ============================ */
.values { background: var(--surface); }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, .8rem + 1.4vw, 1.9rem); }
.vcard { display: flex; flex-direction: column; gap: .7rem; }
.vcard__ico { width: 54px; height: 54px; border-radius: 15px; background: var(--paper); display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow-card); }
.vcard__ico svg { width: 26px; height: 26px; }
.vcard h3 { font-size: 1.24rem; }
.vcard p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
/* i tre pilastri (pagina Torna in forma): griglia a 3 colonne di card */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, .8rem + 1.4vw, 2rem); margin-top: var(--space-6); }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); }
.pillar__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; color: var(--brand); margin-bottom: var(--space-4); }
.pillar__ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.28rem; margin-bottom: var(--space-2); }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.formula { display: inline-block; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); color: var(--brand-deep); border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); padding: var(--space-3) 0; margin: var(--space-4) 0 0; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }
/* mini-gallery di scatti prodotto (es. i prodotti bio nella sezione Alimentazione) */
.prod-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, .5rem + 1vw, 1.4rem); margin-top: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.prod-gallery figure { margin: 0; }
.prod-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform .3s; }
.prod-gallery a:hover img { transform: translateY(-4px); }
.prod-gallery figcaption { margin-top: .5rem; font-size: .8rem; color: var(--ink-muted); text-align: center; }
@media (max-width: 700px) { .prod-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ============================ categorie (tessere) ============================ */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, .6rem + 1.4vw, 1.6rem); }
.cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.cat__figure { overflow: hidden; }
.cat__media { aspect-ratio: 16/11; object-fit: cover; width: 100%; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.cat:hover .cat__media { transform: scale(1.06); }
.cat__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.cat__body h3 { font-size: 1.38rem; margin-bottom: var(--space-2); }
.cat__body p { color: var(--ink-muted); font-size: .95rem; margin: 0 0 var(--space-4); }
.cat__link { font-family: var(--font-body); font-weight: 600; color: var(--brand-deep); display: inline-flex; align-items: center; gap: .4rem; position: relative; }
.cat__link::after { content: "→"; transition: transform .2s; }
.cat:hover .cat__link { color: var(--accent-ink); }
.cat:hover .cat__link::after { transform: translateX(4px); }

/* ============================ muro dei marchi ============================ */
.brands { background: var(--brand-dark); color: var(--on-dark); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 920px; margin: 0 auto; }
.chip { font-family: var(--font-display); font-size: 1.16rem; color: var(--on-dark); padding: .55rem 1.35rem; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); background: color-mix(in srgb, var(--on-dark) 4%, transparent); transition: transform .22s, border-color .22s, background .22s; }
.chip:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--on-dark) 10%, transparent); }
.chip--lead { color: var(--gold); }

/* ============================ chi siamo (split) ============================ */
.about { }
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-panel); }
.about__media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.about__media:hover img { transform: scale(1.045); }
.about h2 { margin: var(--space-4) 0 var(--space-5); }
.about p { color: var(--ink-soft); margin-bottom: var(--space-4); }
.sig { margin-top: var(--space-5); font-family: var(--font-display); font-size: 1.18rem; color: var(--brand-deep); }
.sig small { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--ink-muted); letter-spacing: .04em; margin-top: .1rem; }
/* riga categoria a lati alternati (pagina Prodotti): la foto passa a destra */
.about__grid--rev .about__media { order: 2; }
@media (max-width: 980px) { .about__grid--rev .about__media { order: 0; } }
/* elenco puntato con la spunta verde (dentro le sezioni-prodotto e chi-siamo) */
.ticklist { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; }
.ticklist li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.ticklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
/* marchi trattati dentro una sezione-prodotto: pillole compatte */
.prod-brands { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--space-5) 0 0; }
.prod-brands span { font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--brand-deep);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .35rem .9rem; }
.about p { color: var(--ink-soft); margin-bottom: var(--space-4); }

/* ============================ programma (banda verde scuro) ============================ */
.program { position: relative; overflow-x: clip; }
.program__deco { position: absolute; right: -4%; bottom: -8%; width: clamp(180px, 22vw, 320px); color: color-mix(in srgb, var(--gold) 14%, transparent); z-index: 0; }
.program__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.program__text { max-width: 46rem; }
.program h2 { margin: var(--space-3) 0 var(--space-4); }
.program p { margin-bottom: var(--space-5); }
.program__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-panel); margin-block: clamp(-4.5rem, -3.2vw, -2.2rem); position: relative; z-index: 2; }
.program__media img { width: 100%; aspect-ratio: 5/6; object-fit: cover; min-height: clamp(360px, 34vw, 520px); will-change: transform; }
@media (max-width: 980px) { .program__grid { grid-template-columns: 1fr; } .program__media { margin-block: var(--space-6) 0; } }

/* ============================ mosaico (galleria foto) ============================ */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 236px; gap: var(--space-3); }
.mosaic a { display: block; overflow: hidden; border-radius: var(--radius); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic .t-w2 { grid-column: span 2; }
.mosaic .t-h2 { grid-row: span 2; }

/* ============================ contatti (form + orari) ============================ */
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 1rem + 3vw, 3rem); align-items: start; }
.contact-form { background: color-mix(in srgb, var(--paper) 55%, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.contact-form h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.field { display: block; margin-bottom: var(--space-4); }
.field span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .88rem; color: var(--ink-muted); margin-bottom: var(--space-4); }
.consent input { margin-top: .25rem; flex: 0 0 auto; }
.consent a { color: var(--accent-ink); text-decoration: underline; }
.contact-info { background: var(--brand-dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.contact-info dl { margin: 0; display: grid; gap: var(--space-4); }
.contact-info dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .2rem; }
.contact-info dd { margin: 0; font-weight: 500; }
.contact-info dd a { color: var(--on-dark); transition: color .2s; }
.contact-info dd a:hover { color: var(--gold); }
.hours { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .1rem; }
.hours li { display: flex; justify-content: space-between; gap: var(--space-4); padding: .34rem 0; border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); font-size: .94rem; }
.hours li span:last-child { color: var(--on-dark-muted); font-variant-numeric: tabular-nums; text-align: right; }
.hours__note { margin: .5rem 0 0; font-size: .82rem; color: var(--on-dark-muted); }
.geo { margin-top: var(--space-4); color: var(--on-dark-muted); font-size: .92rem; }

/* ============================ piè di pagina ============================ */
.site-footer { background: var(--brand-dark); color: color-mix(in srgb, var(--on-dark) 82%, transparent); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) var(--space-5); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-6); }
.site-footer .wordmark__name { color: var(--on-dark); }
.site-footer .wordmark__sub { color: var(--gold); }
.site-footer__addr { margin-top: var(--space-4); color: var(--on-dark-muted); max-width: 36ch; }
.site-footer h3 { font-family: var(--font-display); color: var(--on-dark); font-size: 1.12rem; margin-bottom: var(--space-3); }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer a { color: color-mix(in srgb, var(--on-dark) 80%, transparent); transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.legal { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); font-size: .85rem; color: var(--on-dark-muted); }
.legal__end { text-align: right; }
.dgitaly { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--on-dark-muted); }
.dgitaly img { width: 20px; height: 20px; }

/* ============================ barra CTA mobile ============================ */
.cta-bar { display: none; }
a.cta-bar__book { background: var(--brand-deep); color: var(--on-dark); }
a.cta-bar__call { background: var(--paper); color: var(--ink); }

/* ============================ pagine interne (privacy + progetto) ============================ */
.page-head { background: var(--surface); padding-block: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--text-2xl); margin: var(--space-3) 0 var(--space-4); }
.stack > * + * { margin-top: var(--space-4); }
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: var(--text-xl); margin: var(--space-6) 0 var(--space-3); }
.prose p { color: var(--ink-soft); margin-bottom: var(--space-4); }
.prose a { color: var(--accent-ink); text-decoration: underline; }

/* ============================ lightbox (mosaico) ============================ */
/* ⚠ stato NASCOSTO obbligatorio: reveal.js crea .fp-lb al caricamento e la apre con .is-open; senza
   `display:none` l'overlay intercetterebbe ogni click (regola 24). */
.fp-lb { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(11, 30, 18, .9); align-items: center; justify-content: center; padding: var(--space-5); }
.fp-lb.is-open { display: flex; }
.fp-lb img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-panel); }
.fp-lb__x { position: absolute; top: var(--space-5); right: var(--space-5); width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--ink); border: 0; font-size: 0; }
.fp-lb__x::before, .fp-lb__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: currentColor; }
.fp-lb__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.fp-lb__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
/* frecce ← → per scorrere la galleria (create da reveal.js; nascoste con una sola foto) */
.fp-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 90%, transparent); color: var(--ink); border: 0; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 8px 22px rgba(11,30,18,.4); transition: background .2s, transform .2s; }
.fp-lb__nav:hover { background: var(--gold); transform: translateY(-50%) scale(1.09); }
.fp-lb__nav svg { width: 26px; height: 26px; }
.fp-lb__prev { left: clamp(.6rem, 3vw, 2.2rem); }
.fp-lb__next { right: clamp(.6rem, 3vw, 2.2rem); }
@media (max-width: 599.98px) { .fp-lb__nav { width: 46px; height: 46px; top: auto; bottom: var(--space-5); transform: none; } .fp-lb__nav:hover { transform: scale(1.09); } .fp-lb__prev { left: 25%; } .fp-lb__next { right: 25%; } }

/* ============================ filetto vivo sotto i titoli di sezione ============================ */
/* Si DISEGNA sulla rivelazione (larghezza che cresce, mai opacity sul testo), poi una lama di luce lo percorre. */
.sec-head h2::after, .about h2::after, .program h2::after {
  content: ""; display: block; height: 3px; width: 0; margin-top: var(--space-4); border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 38%, var(--gold) 50%, var(--brand) 62%, var(--brand) 100%);
  background-size: 260% 100%; background-position: 130% 0;
  transition: width .8s cubic-bezier(.22, .61, .36, 1) .15s;
}
.sec-head--center h2::after { margin-inline: auto; }
.program h2::after, .section.green h2::after { background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 38%, var(--on-dark) 50%, var(--gold) 62%, var(--gold) 100%); background-size: 260% 100%; }
.is-visible h2::after, .reveal.is-visible h2::after { width: clamp(56px, 8vw, 104px); }
html:not(.js) .sec-head h2::after, html:not(.js) .about h2::after, html:not(.js) .program h2::after { width: clamp(56px, 8vw, 104px); }
@media (prefers-reduced-motion: no-preference) {
  .sec-head h2::after, .about h2::after, .program h2::after { animation: fp-beam 3s linear infinite; }
  .about h2::after { animation-direction: reverse; animation-duration: 3.6s; }
}
@keyframes fp-beam { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .sec-head h2::after, .about h2::after, .program h2::after { transition: none; width: clamp(56px, 8vw, 104px); } }

/* occhiello: la barra guida RESPIRA con un alone (nessun cambio di larghezza = niente scatti sul testo) */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow::before { animation: fp-eyeglow 2.8s ease-in-out infinite; }
}
@keyframes fp-eyeglow { 0%, 100% { opacity: .7; box-shadow: 0 0 0 0 transparent; } 50% { opacity: 1; box-shadow: 0 0 6px 1px color-mix(in srgb, var(--brand) 50%, transparent); } }

/* direzioni di ingresso delle rivelazioni (il movimento è SOLO transform, mai opacity) */
.js .reveal--up { transform: translateY(30px); }
.js .reveal--left { transform: translateX(-32px); }
.js .reveal--right { transform: translateX(32px); }
.js .reveal--zoom { transform: scale(.94); }
.js .reveal--tilt { transform: translateY(26px) rotate(-2deg); }
.js .reveal--up.is-visible, .js .reveal--left.is-visible, .js .reveal--right.is-visible, .js .reveal--zoom.is-visible, .js .reveal--tilt.is-visible { transform: none; }

/* ============================ sovrapposizioni: le foto scavalcano le bande ============================ */
/* dispositivo editoriale ripetuto: una foto di sezione esce dal confine della banda e si posa su quella
   accanto (margine negativo + z-index). Dà profondità e rompe la monotonia delle bande impilate. */
.about__media { margin-block: clamp(-5rem, -3.4vw, -2.4rem); z-index: 2; position: relative; }
.about--rev-overlap .about__media { margin-block: 0 clamp(-5rem, -3.4vw, -2.4rem); }
.about__media img { min-height: clamp(420px, 40vw, 580px); }
.cat__figure { position: relative; z-index: 2; }
.mosaic { margin-top: clamp(-4rem, -3vw, -1.5rem); }
@media (max-width: 980px) { .about__media, .about--rev-overlap .about__media { margin-block: 0; } .mosaic { margin-top: 0; } }

/* ritmo verticale per RUOLO della banda: ogni sezione respira in modo diverso, mai una misura sola */
.about.section { padding-block: calc(var(--section-y) * 0.82); }
#dove-siamo.section { padding-block: calc(var(--section-y) * 0.96); }
#prodotti.section { padding-block: calc(var(--section-y) * 1.12); }
#negozio.section { padding-block: calc(var(--section-y) * 1.26); }
.brands.section { padding-block: calc(var(--section-y) * 1.4); }
.program.section { padding-block: calc(var(--section-y) * 1.55); }

/* ============================ responsive ============================ */
@media (max-width: 980px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .cats, .vgrid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .hero__media img, .hero__fill { height: clamp(320px, 60vw, 440px); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-header .site-header__cta { display: none; }
}
@media (max-width: 599.98px) {
  .cats, .vgrid, .row, .site-footer__grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; }
  .legal { grid-template-columns: 1fr; text-align: center; }
  .legal__end { text-align: center; }
  .site-header__row { gap: var(--space-3); }
  .wordmark__sub { display: none; }
  .wordmark__name { font-size: 1.3rem; }
  .wordmark__mark { width: 40px; height: 40px; }
  .site-header .site-header__tel { display: none; }
  .site-header .site-header__tel--compact { display: flex; }
  .cta-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; gap: 1px;
    background: var(--brand-dark); border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); }
  .cta-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-4) var(--space-3); font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
  .cta-bar svg { width: 20px; height: 20px; flex: 0 0 auto; }
  body { padding-bottom: 64px; }
}
@media (min-width: 600px) and (max-width: 1080px) {
  .site-header .site-header__cta { display: none; }
  .site-header__row { gap: 1rem; }
}
@media (max-width: 700px) {
  .site-header .site-header__tel { display: none; }
  .site-header .site-header__tel--compact { display: flex; }
}

/* --- menu mobile: l'overlay di WordPress nasce bianco con un selettore a quattro classi iniettato DOPO
   il tema; per vincerlo bisogna ricopiarne lo schema, non aggiungere una classe. --- */
@media (max-width: 599.98px) {
  .wp-block-navigation__responsive-container.is-menu-open { height: 100vh; max-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) { background: var(--paper); }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: stretch; width: 100%; padding-inline: var(--gutter);
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-bottom: 96px; padding-top: var(--space-6); }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%; text-align: left; padding-block: var(--space-4); border-bottom: 1px solid var(--line); font-size: 1.2rem;
  }
  /* ⚠ nell'overlay aperto le voci NON devono ereditare il crema dell'header fuso (crema su crema = illeggibile):
     si forza l'inchiostro con una specificità che batte la regola fusa (body:has… .site-nav …). */
  body:has(.hero--cinema) .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: var(--ink); text-shadow: none;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    top: var(--space-4); right: var(--space-4); width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--surface); color: var(--ink);
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.4px; }
}
