/* =====================================================================
   Fiasco Disco · style.css
   Il sito è un disco: Lato A (giorno) e Lato B (notte). Linea rossa a mano,
   carta, cielo, pesca, sole e gli adesivi a colori pieni (assets/adesivi.v1.svg).
   Contrasti verificati (WCAG AA) nei commenti.
   ===================================================================== */
@layer reset, tokens, base, layout, components, sections, view, motion, utilities;

/* ---------- Font in locale (OFL), con fallback calibrati per non spostare il layout ---------- */
@font-face {
  font-family: "Bowlby One";
  src: url("../fonts/bowlby-one-latin.v1.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

.hero__azione .hero__lista {
  min-height: 72px;
  padding: .9em 1.3em;
  font-size: 1.08rem;
  line-height: 1.15;
}

.hero--disco { --D: min(74svh, 46vw); }
.hero--disco .giradischi { --D: min(74svh, 46vw); width: var(--D); }
.hero--disco .hero__titolo { font-size: clamp(2.65rem, 4.8vw, 5.3rem); }

.notte__alberi {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 20.5vh;
  width: 100%;
  height: auto;
  color: #526a3b;
  opacity: .58;
  pointer-events: none;
}

@media (max-width: 899.98px) {
  .notte__alberi { bottom: 31svh; }
}

@media (max-width: 560px) {
  .hero--disco .hero__azione { justify-content: flex-start; }
  .hero--disco .hero__titolo { font-size: clamp(1.3rem, 6.2vw, 1.8rem); }
  .hero--disco .hero__azione .hero__lista {
    flex: 0 1 100%;
    width: 100%;
    min-height: 72px;
    padding: .9em 1em;
    font-size: clamp(1rem, 4.2vw, 1.12rem);
    white-space: normal;
  }
  .hero--disco .giradischi { --D: min(72vw, 33svh); width: var(--D); }
}

@media (max-width: 360px) {
  .hero--disco .giradischi { --D: min(74vw, 33svh); width: var(--D); }
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.v1.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face { font-family: "Bowlby Fallback"; src: local("Arial Black"), local("Arial-BoldMT"), local("Arial Bold"); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 99%; ascent-override: 92%; descent-override: 22%; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  /* niente grassetti o corsivi finti: Bowlby One ha un solo peso, e così resta */
  html { font-synthesis: none; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
  ol, ul { padding: 0; list-style: none; }
  img, svg, video { display: block; max-width: 100%; }
  button, input, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    --carta: #F5F1EA;
    --carta-2: #EDE5D8;
    --rosso: #EE3340;          /* colore del marchio: grafica, bordi, testi grandi */
    --rosso-testo: #B81D29;    /* testi piccoli e bottoni: 5,75 su carta, 4,83 su cielo, 5,09 su pesca */
    --cielo: #C9E2F5;
    --pesca: #FFDDD3;
    --sole: #F7B733;
    --arancio: #F28C28;
    --inchiostro: #2A1214;     /* 15,6 su carta, 9,85 su sole */
    --blu-notte: #1F2A6B;      /* carta sopra: 11,65 */
    --blu-notte-2: #141B47;

    --line: var(--rosso);      /* colore della penna: cambia con lo sfondo */
    --pen-s: 3px; --pen-m: 4.5px; --pen-l: clamp(6px, .55vw, 9px);

    --f-display: "Bowlby One", "Bowlby Fallback", "Arial Black", sans-serif;
    --f-body: "Archivo", "Archivo Fallback", system-ui, sans-serif;

    --t-xl: clamp(4rem, 13vw, 15rem);
    --t-l: clamp(3rem, 8vw, 9rem);
    --t-m: clamp(2.2rem, 4.8vw, 5rem);
    --t-lead: clamp(1.15rem, 1.5vw, 1.45rem);
    --t-body: clamp(1rem, .95vw + .25rem, 1.125rem);

    --gutter: clamp(16px, 4vw, 56px);
    --header-h: 68px;
    --radius: 22px;
    /* i colori accesi dell'arredo dipinto (rosa shocking e blu cobalto, come nella pittura psichedelica) */
    --rosa: #FF3D96;
    --rosa-chiaro: #FFB3D6;
    --cobalto: #2141D9;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-draw: cubic-bezier(.65, 0, .35, 1);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .07 0 0 0 0 .08 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  }
  @media (max-width: 800px) {
    :root { --pen-s: 2.5px; --pen-m: 3.5px; --pen-l: 5px; --header-h: 60px; }
  }
}

@layer base {
  html { scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
  html.lenis, html.lenis body { height: auto; }
  .lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
  body {
    background: var(--carta);
    color: var(--inchiostro);
    font-family: var(--f-body);
    font-size: var(--t-body);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--inchiostro); color: var(--carta); }
  /* un solo focus, visibile su ogni sfondo: anello inchiostro con alone carta */
  :focus-visible { outline: 3px solid var(--inchiostro); outline-offset: 3px; box-shadow: 0 0 0 6px var(--carta); border-radius: 6px; }
  /* titoli e sezioni che ricevono il focus solo da codice (tabindex=-1): niente anello, non sono comandi */
  [tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
  .skip {
    position: fixed; left: var(--gutter); top: 10px; z-index: 300;
    padding: 12px 18px; border-radius: 999px; background: var(--inchiostro); color: var(--carta);
    font-weight: 800; text-decoration: none; transform: translateY(-160%);
  }
  .skip:focus-visible { transform: none; }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; } /* WebKit ne disegnerebbe un frammento */
  /* la grana della carta: un tassello statico, niente fusioni costose */
  #main > section, .footer, .marquee { background-image: var(--grain); }
  /* la tela: sopra tutto il sito, trama fine di fili e granulosità del colore; disegnata dal browser (zero file) */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .07 0 0 0 0 .08 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)' opacity='.55'/%3E%3C/svg%3E"),
      repeating-linear-gradient(0deg, rgba(42,18,20,.035) 0 1px, rgba(42,18,20,0) 1px 3px),
      repeating-linear-gradient(90deg, rgba(255,248,236,.045) 0 1px, rgba(255,248,236,0) 1px 3px);
  }
  @media print { body::after { display: none; } }
}

@layer layout {
  section { position: relative; isolation: isolate; }
  .track {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--f-body); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--inchiostro);
  }
  .track__n {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--inchiostro); color: var(--carta); letter-spacing: .02em; font-size: .78rem;
    box-shadow: inset 0 0 0 3px var(--inchiostro), inset 0 0 0 5px var(--carta);
  }
  .track--light { color: var(--carta); }
  .track--light .track__n { background: var(--carta); color: var(--inchiostro); box-shadow: inset 0 0 0 3px var(--carta), inset 0 0 0 5px var(--inchiostro); }
  .label { font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
  .display { font-family: var(--f-display); font-size: var(--t-l); line-height: .88; text-transform: uppercase; color: var(--rosso); letter-spacing: -.005em; }
  .display--m { font-size: var(--t-m); line-height: .92; }
  .display em, .view__title em { font-style: normal; color: var(--inchiostro); }
  .display--light { color: var(--carta); }
  .display--light em { color: var(--sole); }
}

@layer components {
  /* ---------- Bottoni: fondo rosso-testo (5,75 col testo carta), ombra piena come uno sticker ---------- */
  .btn {
    --btn-bg: var(--rosso-testo); --btn-fg: var(--carta); --btn-shadow: var(--inchiostro);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 52px; padding: 0 1.6em; border: 2px solid var(--btn-bg); border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-family: var(--f-body); font-weight: 800; font-size: .92rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
    box-shadow: 4px 4px 0 var(--btn-shadow);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
  }
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
  .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-shadow); }
  .btn--ghost { --btn-fg: var(--rosso-testo); background: transparent; box-shadow: none; }
  .btn--ghost:hover { box-shadow: 4px 4px 0 var(--btn-bg); }
  .btn--sole { --btn-bg: var(--sole); --btn-fg: var(--inchiostro); border-color: var(--inchiostro); }
  .btn--rosa { --btn-bg: var(--rosa); --btn-fg: #fff; }
  .btn--small { min-height: 44px; padding: 0 1.2em; font-size: .8rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
  .btn--xl { min-height: 64px; padding: 0 2.2em; font-size: 1.05rem; }
  .btn--block { width: 100%; min-height: 60px; font-size: 1rem; }
  .btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
  
  .link-btn { padding: 8px 0; border: 0; background: none; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

  /* ---------- Interruttore della musica ---------- */
  .sound {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px;
    border: 2px solid currentColor; border-radius: 999px; background: transparent;
    font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .sound__disc {
    position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: radial-gradient(circle, var(--rosso) 0 22%, var(--inchiostro) 23% 100%);
    box-shadow: inset 0 0 0 4px var(--inchiostro), inset 0 0 0 5px rgba(245, 241, 234, .35);
  }
  .sound[aria-pressed="true"] .sound__disc { animation: spin 1.8s linear infinite; }
  .sound[aria-pressed="true"] { background: var(--inchiostro); color: var(--carta); border-color: var(--inchiostro); }

  /* ---------- Penne: tre spessori, costanti a qualunque dimensione (ink.js calcola --sw) ---------- */
  .ink {
    fill: none; stroke: var(--line); stroke-width: var(--sw, 3); stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1 1.1; stroke-dashoffset: calc(1.05 - var(--draw, 1) * 1.05);
    overflow: visible;
  }
  /* ---------- Adesivi: disegni a colori pieni con il bordo fustellato (fatti con Higgsfield, vettorializzati).
     Ogni colore è una variabile: la stessa figura si ricolora (di notte diventa sagoma) senza duplicarla. ---------- */
  .k { overflow: visible; }
  /* le faccine 3D (assets/3d, immagini): riempiono il contenitore come gli adesivi */
  img.k, .k-sole img { -webkit-user-drag: none; user-select: none; }
  .fl img.k, .fl .k-sole { display: block; width: 100%; height: 100%; object-fit: contain; }
  .k-sole { position: relative; display: block; }
  .k-sole img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

  .k-o { fill: var(--k-o, rgba(42, 18, 20, .2)); stroke: none; }      /* ombra piena */
  .k-c { fill: var(--k-c, #FFFCF5); stroke: none; }                   /* bordo da adesivo */
  .k-l { fill: var(--k-l, #EE3340); stroke: none; }                   /* la linea, sempre sopra */
  .k-giallo { fill: var(--k-giallo, #FEC536); stroke: none; }
  .k-pesca { fill: var(--k-pesca, #F9AE8E); stroke: none; }
  .k-arancio { fill: var(--k-arancio, #FA8A2C); stroke: none; }
  .k-menta { fill: var(--k-menta, #98D6AE); stroke: none; }
  .k-oliva { fill: var(--k-oliva, #8BC987); stroke: none; }
  .k-burro { fill: var(--k-burro, #FEE89E); stroke: none; }
  .k-vetro { fill: var(--k-vetro, #DFEFFC); stroke: none; }
  .k-cielo { fill: var(--k-cielo, #C1DEF7); stroke: none; }
  .k-vino { fill: var(--k-vino, #B61725); stroke: none; }
  .k-scuro { fill: var(--k-scuro, #2A1214); stroke: none; }
  .k-crema { fill: var(--k-crema, #FAEEDC); stroke: none; }
  .p-w1 { fill: var(--k-w1, var(--k-cielo, #C1DEF7)); }
  .p-w2 { fill: var(--k-w2, var(--k-cielo, #C1DEF7)); }
  .p-w3 { fill: var(--k-w3, var(--k-cielo, #C1DEF7)); }
  .p-w4 { fill: var(--k-w4, var(--k-cielo, #C1DEF7)); }
  .p-w5 { fill: var(--k-w5, var(--k-cielo, #C1DEF7)); }
  .p-w6 { fill: var(--k-w6, var(--k-cielo, #C1DEF7)); }
  .p-w7 { fill: var(--k-w7, var(--k-cielo, #C1DEF7)); }
  .p-w8 { fill: var(--k-w8, var(--k-cielo, #C1DEF7)); }
  .p-w9 { fill: var(--k-w9, var(--k-cielo, #C1DEF7)); }
  .p-w10 { fill: var(--k-w10, var(--k-cielo, #C1DEF7)); }
  /* le parti che si muovono: le guidano variabili ereditate (GSAP le anima sull'svg che le contiene) */
  .p-raggi { transform-box: view-box; transform: rotate(calc(var(--raggi, 0) * 1deg)); }
  .p-occhi { transform-box: fill-box; transform-origin: center; transform: scaleY(var(--eyes, 1)); }
  .p-occhio { transform-box: fill-box; transform-origin: center; transform: scaleY(var(--wink, 1)); }
  .p-stelline { opacity: var(--stelline, 1); }
  .p-vino { clip-path: inset(calc((1 - var(--fill, 1)) * 100%) 0 0 0); }
  /* senza il bordo da adesivo (scenografie, icone nel testo) */
  .k--nudo { --k-o: transparent; --k-c: transparent; }
  .stamp__ring { fill: none; stroke: currentColor; stroke-width: 6; }
  .stamp__ring--in { stroke-width: 2.5; }
  .stamp__big { font-family: var(--f-display); font-size: 40px; text-anchor: middle; fill: currentColor; }
  .stamp__small { font-family: var(--f-body); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-anchor: middle; fill: currentColor; }

  /* ---------- Oggetti fluttuanti: entrano, ruotano piano con lo scroll ---------- */
  .fl {
    position: absolute; left: var(--x); top: var(--y); z-index: -1;
    width: var(--w, 60px); aspect-ratio: var(--ar, 1); pointer-events: none;
  }
  .fl__spin { display: block; width: 100%; height: 100%; rotate: var(--r, 0deg); }
  /* le faccine si possono toccare (fanno boing): solo l'immagine, il resto lascia passare clic e scroll */
  .fl .k { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  html.fd-static .fl .k { pointer-events: none; cursor: auto; }
  /* faccine animate a fotogrammi (js/fx/flipbook.js): l'immagine ferma resta finché arriva il foglio */
  .k-anim { position: relative; }
  .k-anim > img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .k-anim.k-sole > img { position: absolute; inset: 0; }
  .k-anim__f { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; }
  .k-anim.is-pronto .k-anim__f { opacity: 1; }
  .k-anim.is-pronto > img { visibility: hidden; }
  .fl svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .fl--sticker text, .sticker-done text { font-family: var(--f-display); font-size: 13.5px; text-anchor: middle; fill: var(--inchiostro); letter-spacing: .02em; }
  @media (max-width: 800px) { .fl--desk { display: none; } }
  /* l'arredo dipinto (js/fx/arredo.js): al posto delle faccine, disegni psichedelici che girano piano */
  .k--arredo { display: block; width: 100%; height: auto; aspect-ratio: 1; }
  .fl__spin > .k--arredo { position: relative; }
  .k--arredo > .alone { position: absolute; left: 50%; top: 50%; width: 100%; height: auto; max-width: none; aspect-ratio: 1; translate: -50% -50%;
    overflow: visible; pointer-events: none; }
  .fl .k--arredo > .alone { width: 135%; }
  
  /* il sole psichedelico: le due corone di fiamme girano in versi opposti */
  .alone--raggi .sole__fuori, .alone--raggi .sole__dentro { transform-box: fill-box; transform-origin: center; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .alone--raggi .sole__fuori { animation: sole-gira 38s linear infinite; }
    html:not(.fd-static) .alone--raggi .sole__dentro { animation: sole-gira 26s linear infinite reverse; }
  }
  @keyframes sole-gira { to { rotate: 360deg; } }
  .notte__sun > .alone, .news__sun > .alone { width: 150%; }
  .notte__star.k--arredo { height: auto; aspect-ratio: 1; }
  /* la carta appesa dondola appena (niente rotazioni continue: sembrerebbe un salvaschermo) */
  .alone { animation: carta-dondola var(--durata, 6s) ease-in-out var(--ritardo, 0s) infinite alternate; transform-origin: 50% 0; }
  @keyframes carta-dondola { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
  html.fd-static .alone { animation: none; }
  @media (prefers-reduced-motion: reduce) { .alone { animation: none; } }

  /* ---------- Marquee: si muove solo con lo scroll ---------- */
  .marquee { position: relative; z-index: 3; overflow: hidden; overflow: clip visible; background-color: var(--rosso); color: var(--carta); rotate: -2deg; margin: -1.2vw -12px; padding: 14px 0; }
  .marquee__track { display: flex; width: max-content; will-change: transform; }
  .marquee span { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.9rem); text-transform: uppercase; white-space: nowrap; line-height: 1; }
  .marquee--b { background-color: var(--blu-notte); rotate: 2deg; }
  /* una mascotte cammina sulla fascia mentre scorri (la muove marquees() in chrome.js) */
  /* chi passa camminando sopra la fascia (js/fx/piazza.js): i piedi poggiano sul bordo */
  .marquee__runner { position: absolute; left: 0; bottom: calc(100% - 9px - clamp(56px, 6.2vw, 96px) * 8 / 92); width: clamp(56px, 6.2vw, 96px); aspect-ratio: 92 / 150; z-index: 1; pointer-events: none; will-change: transform; }
  html.fd-static .marquee__runner { left: 8%; }
  /* la strada in fondo al finale: la palla da discoteca la attraversa mentre scorri */
  .strada { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 15vw, 230px); overflow: hidden; pointer-events: none; z-index: 1; }

  html.fd-static .marquee--b .marquee__runner { left: 84%; }

  /* ---------- Form ---------- */
  .form { display: grid; gap: 18px; }
  .field { display: grid; gap: 6px; }
  .field__label, .qty legend { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
  .field input {
    width: 100%; min-height: 54px; padding: 0 16px; border: 2px solid var(--inchiostro); border-radius: 14px;
    background: #FFFDF9; color: var(--inchiostro); font-size: 1.05rem;
  }
  .field input[aria-invalid="true"] { border-color: var(--rosso-testo); border-width: 3px; }
  .field__error { color: var(--rosso-testo); font-weight: 700; font-size: .9rem; }
  .field__error:empty { display: none; }
  .field__error:not(:empty)::before { content: "✕ "; }
  .check { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; align-items: start; font-size: .95rem; }
  .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--rosso-testo); }
  .check .field__error { grid-column: 2; }
  .form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form__status { min-height: 1.4em; font-weight: 700; }
  .form__status:empty { min-height: 0; }
  .form__info { font-size: .88rem; }
  .form__info a { font-weight: 800; }
  .qty { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
  .qty__hint { font-size: .88rem; font-weight: 600; opacity: .85; }
  .qty__row { display: inline-flex; align-items: center; gap: 14px; }
  .qty__btn {
    width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--inchiostro); background: #FFFDF9;
    font-size: 1.4rem; font-weight: 800; line-height: 1;
  }
  .qty__btn:disabled { opacity: .35; cursor: default; }
  .qty__value { min-width: 2ch; font-family: var(--f-display); font-size: 2rem; text-align: center; }
}

@layer sections {
  /* ================= HEADER ================= */
  .header {
    position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
    display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
    color: var(--inchiostro);
    transition: background-color .3s, box-shadow .3s;
  }
  .header.is-scrolled { background: var(--carta); box-shadow: 0 1.5px 0 var(--rosso); }
  .header__logo { display: block; color: var(--rosso); flex: none; }
  .header__logo svg { height: 40px; width: auto; aspect-ratio: 1912 / 1008; fill: currentColor; }

  .header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .header__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px;
    border: 2px solid currentColor; border-radius: 999px; background: transparent;
    font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .header__burger { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--inchiostro); }
  .header__burger::before, .header__burger::after {
    content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--carta);
    transition: transform .3s var(--ease-out), top .3s var(--ease-out);
  }
  .header__burger::before { top: 11px; } .header__burger::after { top: 17px; }
  .header__toggle[aria-expanded="true"] .header__burger::before { top: 14px; transform: rotate(45deg); }
  .header__toggle[aria-expanded="true"] .header__burger::after { top: 14px; transform: rotate(-45deg); }
  
  @media (max-width: 560px) {
    .header { gap: 8px; }
    .header__logo svg { height: 32px; }
    .sound__label, .header__toggle-label { display: none; }
    .sound { padding: 0 8px; }
    .header__toggle { padding: 0 6px; }
    .header__actions { gap: 8px; }
  }

  /* ================= MENU (retro di copertina) ================= */
  .menu {
    position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain;
    background: var(--rosso-testo); color: var(--carta);
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  }
  .menu__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; }
  .menu__side { font-weight: 800; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 12px; }
  .menu__list { display: grid; border-top: 2px solid rgba(245, 241, 234, .5); }
  .menu__list a {
    display: flex; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 2px solid rgba(245, 241, 234, .5);
    font-family: var(--f-display); font-size: clamp(1.8rem, 5vw, 3.6rem); line-height: 1; text-transform: uppercase; text-decoration: none;
  }

  .menu__cta { justify-self: start; margin-top: 18px; --btn-bg: var(--carta); --btn-fg: var(--rosso-testo); }
  .menu__cat { font-weight: 700; font-size: 1.2rem; margin-top: 8px; }
  .menu-open .header { background: transparent; box-shadow: none; color: var(--carta); }
  .menu-open .header__logo { color: var(--carta); }
  .menu-open .header__burger { background: var(--carta); }
  .menu-open .header__burger::before, .menu-open .header__burger::after { background: var(--rosso-testo); }
  /* la musica parte al primo tocco: intanto il bottone "Musica" pulsa piano */
  @media (prefers-reduced-motion: no-preference) {
    html.musica-attende:not(.fd-static) .header [data-sound] { animation: musica-attende 1.6s ease-in-out infinite; }
  }
  @keyframes musica-attende { 0%, 100% { box-shadow: 0 0 0 0 rgba(238,51,64,.55); } 50% { box-shadow: 0 0 0 9px rgba(238,51,64,0); } }
  .menu-open .header .btn--small { --btn-bg: var(--carta); --btn-fg: var(--rosso-testo); }

  /* ================= A0 · COPERTINA ================= */
  .hero {
    --line: var(--rosso);
    background-color: var(--cielo);
    min-height: 100svh;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    padding: calc(var(--header-h) + 12px) var(--gutter) 28px;
    overflow: clip;
  }

  .hero__date { display: grid; gap: 6px; color: var(--rosso-testo); }
  .hero__vol { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inchiostro); }
  .hero__when { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: .95; text-transform: uppercase; }
  .hero__when > span { display: block; white-space: nowrap; }
  
  .hero__free { text-align: right; display: grid; gap: 4px; }
  .hero__free strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: .95; text-transform: uppercase; color: var(--rosso-testo); }
  .hero__free span { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
  .hero__stage { position: relative; min-height: 340px; margin: 0 calc(-1 * var(--gutter)); }
  .hero__scroll { position: absolute; inset: 0; }
  .hero__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .hero__bottle path { fill: none; stroke: var(--rosso); stroke-width: var(--sw, 4); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.1; stroke-dashoffset: calc(1.05 - var(--draw, 1) * 1.05); }
  .hero__stream { fill: none; stroke: var(--rosso); stroke-width: calc(var(--sw, 4) * 1.7); stroke-linecap: round; stroke-dasharray: 1 1.1; stroke-dashoffset: calc(1.05 - var(--draw, 1) * 1.05); }
  .hero__logo { fill: var(--rosso); overflow: visible; }
  .hero__l, .hero__dot, .hero__disco-dot { transform-box: fill-box; transform-origin: 50% 100%; }
  .hero__dot, .hero__disco-dot { transform-origin: 50% 50%; }
  .hero__pens path { fill: none; stroke: #fff; stroke-width: 96; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.1; stroke-dashoffset: calc(1.05 - var(--draw, 1) * 1.05); }
  
  .hero__sparkles use { transform-box: fill-box; transform-origin: center; }
  .countdown { display: flex; gap: clamp(14px, 2.2vw, 30px); }
  .cd { display: grid; gap: 4px; }
  .cd__num { display: inline-flex; font-family: var(--f-display); font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1; color: var(--rosso-testo); font-variant-numeric: tabular-nums; min-width: 2ch; }
  .cd small { font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
  .reel { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
  .reel__strip { display: block; transition: transform .7s var(--ease-out); }
  .reel__strip span { display: block; height: 1em; }

  @media (max-width: 800px) {
    .hero { padding-bottom: 20px; }
    .hero__stage { min-height: 46svh; margin: 8px calc(-1 * var(--gutter)); }

  }

  /* ================= A1 · CHI SIAMO (carta) ================= */
  .colore-vivo { transition: background-color .7s ease-in-out, fill .7s ease-in-out; }
  .manifesto { --line: var(--rosso); background-color: #FFF3DF; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 160px); }
  .manifesto > :not(.fl) { max-width: 1340px; margin-left: auto; margin-right: auto; }
  .manifesto .track { display: flex; }
  .manifesto__text {
    margin-top: 36px; font-weight: 700; font-size: clamp(2rem, 5.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.025em;
  }
  .manifesto__text .word { opacity: .14; }
  .inline-k { display: inline-block; vertical-align: -.14em; height: .98em; width: .98em; margin: 0 .04em; }
  .inline-k--tall { width: .56em; }
  .inline-k--wide { width: 1.36em; }
  .inline-k.k--arredo { display: inline-block; position: relative; aspect-ratio: auto; }
  .inline-k > .alone { width: auto; height: 125%; }
  .mark { position: relative; display: inline-block; white-space: nowrap; }
  .mark__line { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; }

  /* ================= A2 · IL FORMAT ================= */
  .format { background-color: var(--rosso); }

  .panel {
    position: relative; isolation: isolate; flex: none; width: 82vw; height: 100svh;
    display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw;
    padding: calc(var(--header-h) + 3vh) 5vw 6vh;
    background-image: var(--grain);
  }
  .panel--intro { --line: var(--carta); width: 66vw; background-color: var(--rosso); color: var(--carta); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 30px; padding-left: var(--gutter); }
  .panel--fiasco { --line: var(--rosso); background-color: var(--cielo); }
  .panel--disco { --line: var(--rosso); background-color: var(--pesca); }
  .panel--palazzo { --line: var(--rosso-testo); background-color: var(--sole); }

  @media (max-width: 900px) {
    
    .panel { width: auto; height: auto; min-height: 0; grid-template-columns: 1fr; gap: 24px; padding: 72px var(--gutter); }
    .panel--intro { width: auto; padding-top: 96px; }
    
  }

  /* ================= A3 · LA MUSICA ================= */
  .musica {
    position: relative; overflow: clip; color: #FFF3DF; background: var(--cobalto);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px) clamp(40px, 6vw, 110px);
    padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px);
  }
  .musica__testa { display: grid; gap: 22px; align-content: start; justify-items: start; }
  .musica__titolo { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3.2rem, 7vw, 7rem); line-height: .86; text-transform: uppercase; color: #FFF3DF; text-shadow: 5px 5px 0 rgba(20,27,71,.55); }
  .musica__frase { font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
  .musica__frase .striscia { color: var(--inchiostro); }
  .musica__play { gap: .7em; }
  .musica__play-i { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
  .is-playing .musica__play-i { width: 12px; height: 14px; border: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
  .musica__play-off, .is-playing .musica__play-on { display: none; }
  .is-playing .musica__play-off { display: inline; }
  .musica__generi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); align-self: center; }
  .genere { display: grid; gap: 12px; justify-items: start; }
  .genere__disco { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; overflow: visible; }
  @media (prefers-reduced-motion: no-preference) {
    html.is-playing:not(.fd-static) .genere__disco { animation: sole-gira 1.8s linear infinite; }
  }
  .genere__t { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.8rem); line-height: 1.3; text-transform: uppercase; }
  .genere__s { font-weight: 600; line-height: 1.45; max-width: 26ch; opacity: .92; }
  .striscia--cielo { background: #7FC1EF; color: var(--inchiostro); }
  .musica__serata { grid-column: 1 / -1; list-style: none; margin: 0; padding: 28px 0 0; border-top: 2px dashed rgba(255,243,223,.4); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
  .musica__serata li { font-weight: 600; line-height: 1.5; max-width: 38ch; }
  .musica__quando { display: block; width: fit-content; margin-bottom: 8px; padding: .12em .45em; background: #FFF3DF; color: var(--rosso-testo); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 4px 5px 0 rgba(20,27,71,.4); }
  @media (max-width: 899.98px) {
    .musica { grid-template-columns: 1fr; }
    .musica__generi { grid-template-columns: 1fr; gap: 26px; }
    .genere { grid-template-columns: 96px 1fr; column-gap: 18px; align-items: center; }
    .genere__disco { grid-row: span 2; width: 96px; }
    .musica__serata { grid-template-columns: 1fr; gap: 20px; }
  }

  /* ================= B1 · PROSSIMA DATA (dal tramonto alla notte) ================= */
  .notte { background-color: var(--blu-notte); }
  .notte__pin { position: relative; height: 100svh; overflow: hidden; }
  .notte__sky {
    --line: var(--blu-notte-2);
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #E8742B 0%, var(--arancio) 38%, var(--pesca) 100%);
  }
  .notte__layer--giorno { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 26px, rgba(255,255,255,0) 26px 52px), linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%, rgba(255,227,196,.55) 100%); background-color: #9CCDF0; will-change: opacity; }
  .notte__layer--notte { position: absolute; inset: 0; background: linear-gradient(180deg, var(--blu-notte-2) 0%, var(--blu-notte) 55%, #5B4A8C 100%); opacity: 0; will-change: opacity; }
  /* il sole tramonta dietro al palazzo: la discesa dipende dallo schermo (--cala) */
  /* in copertina il sole è grande e sta nello sfondo, dietro titolo e ruota (centro a --sole-y dello schermo);
     scorrendo si rimpicciolisce in cielo sopra la torretta e tramonta dietro il palazzo (sections/night.js) */
  .notte__sun { --sole-x: 23vw; --sole-y: 50vh; --sole-k: 2.8; position: absolute; left: 50%; top: 11vh; width: min(15vw, 210px); aspect-ratio: 1; translate: -50% 0;
    transform: translate(var(--sole-x), calc(var(--sole-y) - 11vh - min(7.5vw, 105px))) scale(var(--sole-k)); will-change: transform; }
  @media (max-width: 899.98px) { .notte__sun { transform: translateX(34vw); } }
  .notte__moon { position: absolute; right: 42%; top: 11vh; width: clamp(84px, 9.5vw, 150px); aspect-ratio: 1; will-change: transform, opacity; }
  /* il cielo psichedelico di carta (js/fx/arredo.js): raggiera, nastri ondulati, nuvole e dischi che si agitano */
  .notte__psico { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .psico__giorno, .psico__notte, .psico__oggetti { position: absolute; inset: 0; }
  .psico__giorno, .psico__notte, .psico__oggetti { opacity: 0; will-change: opacity; }
  .psico__raggiera { position: absolute; inset: -4%; width: 108%; height: 108%; transform-origin: 50% 82%; }
  .psico__nastro { position: absolute; left: 0; width: 200%; height: auto; will-change: transform; }
  .psico__obj { position: absolute; height: auto; translate: -50% -50%; overflow: visible; will-change: transform; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .psico__raggiera { animation: psico-respira 7s ease-in-out infinite alternate; }
    html:not(.fd-static) .psico__nastro { animation: psico-scorre var(--dur, 30s) linear infinite; }
    html:not(.fd-static) .psico__obj { animation: psico-agita var(--dur, 4s) ease-in-out infinite alternate; }
  }
  @keyframes psico-respira { from { scale: 1; } to { scale: 1.05; } }
  @keyframes psico-scorre { from { transform: translateX(-25%); } to { transform: translateX(-50%); } }
  .psico__nastro.al-contrario { animation-direction: reverse; }
  @keyframes psico-agita { 0% { rotate: -7deg; transform: translateY(-6px); } 50% { rotate: 4deg; transform: translate(4px, 4px); } 100% { rotate: 8deg; transform: translate(-3px, -2px); } }
  /* le stelle brillano per conto loro (k--twinkle), ma si vedono solo col buio */
  .notte__stelle { position: absolute; inset: 0; opacity: 0; }
  .notte__star { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: auto; opacity: 0; }
  .notte__moon { object-fit: contain; }
  .notte__palm { position: absolute; bottom: 20vh; height: 54vh; aspect-ratio: 62.7 / 100; }
  .notte__palm--l { left: 2%; rotate: -4deg; }
  .notte__palm--r { right: 2%; scale: -1 1; rotate: 4deg; }
  .notte__palazzo { position: absolute; left: 50%; bottom: 20.5vh; width: min(50vw, 640px); aspect-ratio: 100 / 70.5; translate: -50% 0; }
  /* la Batia: il fumo dell'Etna esce sopra il riquadro e sale piano */
  .notte__palazzo { overflow: visible; }
  .batia__fumo { transform-box: fill-box; transform-origin: 0% 100%; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .batia__fumo { animation: batia-fumo 7s ease-in-out infinite alternate; }
  }
  @keyframes batia-fumo { from { transform: translate(0, 0) scale(1); } to { transform: translate(.6px, -.8px) scale(1.06, 1.1); } }
  /* le luminarie: stesso piede del palazzo, larghe il 116% (il disegno è in unità del palazzo) */
  .notte__luminarie { position: absolute; left: 50%; bottom: 20.5vh; width: min(58vw, 742.4px); aspect-ratio: 116 / 86.5; translate: -50% 0; overflow: visible; pointer-events: none; opacity: 0; }
  .lum__accese { opacity: 0; transition: opacity .8s ease-out; }
  .is-notte .lum__accese, html.fd-static .lum__accese { opacity: 1; }
  .is-notte .lum__spente, html.fd-static .lum__spente { opacity: .3; }
  html.fd-static .notte__luminarie { opacity: 1; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .is-notte .lum__a { animation: lum-giro 1.2s steps(1) infinite; }
    html:not(.fd-static) .is-notte .lum__b { animation: lum-giro 1.2s steps(1) -.4s infinite; }
    html:not(.fd-static) .is-notte .lum__c { animation: lum-giro 1.2s steps(1) -.8s infinite; }
  }
  @keyframes lum-giro { 0% { opacity: 1; } 33.3% { opacity: .28; } 66.6% { opacity: .28; } }
  /* palme e palazzo sono scenografia: niente bordo da adesivo; di notte diventano sagome (--sil) */
  .notte__palm, .notte__palazzo { --k-o: transparent; --k-c: transparent; --sil: 0; }
  @supports (color: color-mix(in oklab, red, blue)) {
    .notte__palm, .notte__palazzo {
      --buio: calc(var(--sil, 0) * 80%);
      --k-l: color-mix(in oklab, var(--blu-notte-2) calc(var(--sil, 0) * 62%), #EE3340);
      --k-menta: color-mix(in oklab, var(--blu-notte-2) var(--buio), #98D6AE);
      --k-arancio: color-mix(in oklab, var(--blu-notte-2) var(--buio), #FA8A2C);
      --k-pesca: color-mix(in oklab, var(--blu-notte-2) var(--buio), #F9AE8E);
      --k-crema: color-mix(in oklab, var(--blu-notte-2) var(--buio), #FAEEDC);
      --k-cielo: color-mix(in oklab, var(--blu-notte-2) var(--buio), #C1DEF7);
    }
    /* le finestre si accendono una alla volta (--w1 ... --w10); la porta (w8) è arancio */
    .notte__palazzo {
      --k-w1: color-mix(in oklab, #FEC536 calc(var(--w1, 0) * 100%), var(--k-cielo));
      --k-w2: color-mix(in oklab, #FEC536 calc(var(--w2, 0) * 100%), var(--k-cielo));
      --k-w3: color-mix(in oklab, #FEC536 calc(var(--w3, 0) * 100%), var(--k-cielo));
      --k-w4: color-mix(in oklab, #FEC536 calc(var(--w4, 0) * 100%), var(--k-cielo));
      --k-w5: color-mix(in oklab, #FEC536 calc(var(--w5, 0) * 100%), var(--k-cielo));
      --k-w6: color-mix(in oklab, #FEC536 calc(var(--w6, 0) * 100%), var(--k-cielo));
      --k-w7: color-mix(in oklab, #FEC536 calc(var(--w7, 0) * 100%), var(--k-cielo));
      --k-w8: color-mix(in oklab, #FA8A2C calc(var(--w8, 0) * 100%), var(--k-cielo));
      --k-w9: color-mix(in oklab, #FEC536 calc(var(--w9, 0) * 100%), var(--k-cielo));
      --k-w10: color-mix(in oklab, #FEC536 calc(var(--w10, 0) * 100%), var(--k-cielo));
    }
  }
  /* le lucine: filo e lampadine restano dello stesso spessore a ogni dimensione */
  .notte__lucine { position: absolute; left: 0; top: 23vh; width: 100%; height: 30vh; overflow: visible; opacity: 0; }
  .notte__lucine path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
  .lucine__filo { stroke: var(--rosso); stroke-width: 3; }
  .lucine__gambo { stroke: var(--rosso); stroke-width: 3; }
  .lucine__vetro { stroke: var(--rosso); stroke-width: 17; }
  .lucine__luce { stroke: #FEC536; stroke-width: 10; opacity: 0; }
  .notte__floor { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; }
  .floor__base { fill: var(--carta); }
  .floor__row { fill: var(--rosso); }

  @media (max-width: 900px) {
    .notte__sun { width: 24vw; top: calc(var(--header-h) + 10px); }
    .notte__moon { right: 7%; top: 11vh; width: 76px; }
    /* il palazzo sta più in alto: la piazza davanti è grande quasi un terzo dello schermo */
    .notte__palazzo { width: 80vw; bottom: 31svh; }
    .notte__luminarie { width: 92.8vw; bottom: 31svh; }
    .notte__palm { height: 27vh; bottom: 29svh; }
    .notte__palm--l { left: -8%; } .notte__palm--r { right: -8%; }
    .notte__lucine { top: 25vh; height: 16vh; }
    .notte__floor { height: 18vh; }
    .notte__star--desk { display: none; }
    /* su telefono si blocca solo il cielo: la card arriva dopo, nel flusso normale */
    .notte { padding: 0 0 64px; }
    .notte__pin { height: auto; overflow: visible; }
    .notte__sky { position: relative; height: 100svh; overflow: hidden; }

  }

  /* ================= B2 · COME SI ENTRA (notte) ================= */
  .come { --line: var(--sole); background-color: var(--blu-notte); color: var(--carta); padding: clamp(100px, 14vh, 160px) var(--gutter); }
  
  .steps { position: relative; max-width: 1340px; margin: clamp(80px, 10vh, 110px) auto 0; }
  .steps__line { position: absolute; left: 0; right: 0; top: -58px; width: 100%; height: auto; z-index: 0; }
  
  .step {
    position: relative; display: grid; gap: 12px; align-content: start; padding: 66px 26px 30px; border-radius: var(--radius);
    background: var(--carta); color: var(--inchiostro); box-shadow: 8px 8px 0 var(--sole);
  }
  .step__n { position: absolute; left: 22px; top: -44px; display: grid; place-items: center; width: 88px; height: 88px; }
  .step__n svg { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
  .step__n b { position: relative; font-family: var(--f-display); font-weight: 400; font-size: 2rem; color: var(--inchiostro); }

  @media (max-width: 900px) {
    .steps__line { display: none; }
    
  }

  /* ================= B3 · DOMANDE (notte) ================= */

  .qa { border-bottom: 2px solid rgba(245, 241, 234, .4); }
  .qa summary {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px;
    font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.2; list-style: none; cursor: pointer;
  }
  .qa summary::-webkit-details-marker { display: none; }

  @media (prefers-reduced-motion: no-preference) {
    @supports selector(::details-content) {
      :root { interpolate-size: allow-keywords; }
      .qa::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
      .qa[open]::details-content { block-size: auto; }
    }
  }

  /* ================= OUTRO (carta) ================= */
  .outro {
    --line: var(--rosso);
    background-color: var(--carta); min-height: 100svh; overflow: clip;
    display: grid; place-content: center; justify-items: center; gap: 30px; text-align: center;
    padding: 140px var(--gutter) 120px;
  }
   /* spazio per l'accento di "lì" */
  
  .outro__pour { position: absolute; left: -4vw; top: 6vh; width: min(52vw, 640px); z-index: -1; }
  
  @media (max-width: 800px) { .outro__pour { width: 92vw; left: -24vw; top: 2vh; opacity: .6; } }

  /* ================= B4 · NUOVE USCITE (alba) ================= */
  .news { --line: var(--rosso-testo); background-color: var(--pesca); padding: clamp(110px, 15vh, 170px) var(--gutter) clamp(90px, 12vh, 140px); overflow: clip; }
  .news__sun { position: absolute; right: 6vw; top: 1vh; width: clamp(130px, 15vw, 230px); aspect-ratio: 1; z-index: -1; }

  .sleeve7__text a { font-weight: 800; color: var(--rosso-testo); }
  
  .sticker-done { position: relative; display: grid; place-items: center; width: 130px; aspect-ratio: 1; rotate: -10deg; }
  .sticker-done > .k--arredo { position: absolute; inset: 0; }
  .sticker-done b { position: relative; font-family: var(--f-display); font-weight: 400; font-size: .85rem; line-height: 1; text-transform: uppercase; text-align: center; color: #fff; }

  /* ================= FOOTER (retro di copertina) ================= */
  .footer { position: relative; isolation: isolate; background-color: var(--rosso-testo); color: var(--carta); padding: clamp(60px, 8vw, 110px) var(--gutter) 30px; overflow: hidden; }
  .footer__logo { margin: 0; }
  .footer__logo svg { width: min(100%, 300px); margin: 0; height: auto; fill: var(--carta); overflow: visible; }
  .footer__l { transform-box: fill-box; transform-origin: 50% 100%; }
  /* le nuove uscite: un cartoncino di carta nel piè di pagina */
  /* le domande veloci: cinque righe che si aprono, su un foglio di carta */
  /* domande e nuove uscite affiancate: il piè di pagina resta corto */
  .footer__duo { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .footer__duo > * { margin-top: 0 !important; }
  @media (max-width: 900px) { .footer__duo { grid-template-columns: 1fr; } }
  .footer__faq { position: relative; z-index: 1; max-width: 1100px; margin: 48px auto 0; padding: 26px 32px 18px; background: #FFF3DF; color: var(--inchiostro); border-radius: 22px; rotate: .6deg; box-shadow: 10px 12px 0 rgba(42,18,20,.3); }
  .mini-qa { border-top: 1.5px dashed rgba(42,18,20,.35); }
  .mini-qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 800; font-size: 1.05rem; }
  .mini-qa summary::-webkit-details-marker { display: none; }
  .mini-qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rosso-testo); color: #fff; font-size: 1.2rem; transition: rotate .25s var(--ease-out); }
  .mini-qa[open] summary::after { rotate: 45deg; }
  .mini-qa p { padding: 0 0 16px; max-width: 62ch; line-height: 1.5; }
  .mini-qa a { color: var(--rosso-testo); }
  @media (max-width: 760px) { .footer__faq { padding: 20px 18px 10px; } }
  .footer__news { position: relative; z-index: 1; max-width: 1100px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr; gap: 20px 40px; align-items: start;
    padding: 30px 32px; background: #FFFCF5; color: var(--inchiostro); border-radius: 22px; rotate: -1deg; box-shadow: 10px 12px 0 rgba(42,18,20,.3); }
  .footer__news-t { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: .95; text-transform: uppercase; color: var(--rosso-testo); margin-bottom: 10px; }
  .footer__news-copy p { font-weight: 600; max-width: 38ch; }
  .footer__form { display: grid; gap: 12px; }
  .footer__form .btn { justify-self: start; }
  .footer__done { display: grid; gap: 10px; justify-items: start; font-weight: 700; }
  .footer__done .sticker-done { width: 110px; }
  @media (max-width: 760px) { .footer__news { grid-template-columns: 1fr; padding: 24px 20px; } .footer__done { grid-column: 1; } }
  .footer__grid { max-width: 1400px; margin: 56px auto 0; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; align-items: start; }
  .footer__h { font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
  .footer__tracks, .footer__links { display: grid; gap: 0; font-weight: 700; }
  /* aree da toccare di almeno 44 px */
  .footer__tracks a, .footer__links a, .footer .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__tracks a, .footer__links a { text-decoration: none; }
  .footer__tracks a:hover, .footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .footer__cat { max-width: 1400px; margin: 48px auto 0; padding-top: 18px; border-top: 1.5px solid rgba(245, 241, 234, .5); font-size: .88rem; }
  .footer .link-btn { color: var(--carta); }
  @media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__logo { grid-column: 1 / -1; } }
}

@layer view {
  /* ================= LISTA: pagina a schermo intero ================= */
  .view {
    position: fixed; inset: 0; z-index: 200; overflow-y: auto; overscroll-behavior: contain;
    background: var(--cielo); color: var(--inchiostro);
  }
  .view__waves { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
  /* l'onda parte sotto lo schermo (top, non transform: GSAP la muove con yPercent senza sommare offset) */
  .view__wave { position: absolute; left: 0; top: 110%; width: 100%; height: 130vh; }
  .view__wave svg { width: 100%; height: 100%; fill: var(--rosso); }
  .view__inner { position: relative; z-index: 2; min-height: 100%; padding: 0 var(--gutter) 60px; }
  .view__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
  .view__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 2px solid var(--inchiostro); border-radius: 999px; background: transparent; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
  .view__back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .view__logo { height: 38px; width: auto; aspect-ratio: 1912 / 1008; fill: var(--rosso); }
  .view__body { max-width: 1240px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
  .view__title { margin: 12px 0 16px; font-family: var(--f-display); font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .88; text-transform: uppercase; color: var(--rosso-testo); outline: none; }
  .view__lead { font-size: var(--t-lead); max-width: 38ch; }
  .view__panel { padding: clamp(22px, 3vw, 36px); background: var(--carta); border: 2px solid var(--inchiostro); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--inchiostro); }
  .pass {
    position: relative; margin-top: 30px; display: grid; grid-template-columns: 1fr 120px; max-width: 480px;
    border: 2px solid var(--inchiostro); border-radius: 18px; background: var(--carta); box-shadow: 8px 8px 0 var(--rosso);
  }
  .pass__main { padding: 20px 22px; display: grid; gap: 4px; min-width: 0; }
  .pass__kicker { font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
  .pass__title { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: var(--rosso-testo); }
  .pass__name { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; color: var(--inchiostro); min-height: 1.1em; overflow-wrap: anywhere; }
  .pass__name.is-empty { opacity: .45; }
  .pass__line { font-weight: 700; font-size: .92rem; }
  .pass__stub { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 14px 8px; background: var(--rosso-testo); color: var(--carta); border-left: 2px dashed var(--carta); border-radius: 0 16px 16px 0; text-align: center; }
  .pass__free { font-family: var(--f-display); font-size: 1.3rem; text-transform: uppercase; }
  .pass__people { display: flex; gap: 4px; min-height: 12px; }
  .pass__people i { width: 10px; height: 10px; border-radius: 50%; background: var(--carta); }
  .pass__stub small { font-weight: 700; font-size: .8rem; }
  .pass__stamp { position: absolute; right: 60px; bottom: -26px; width: 180px; height: auto; aspect-ratio: 230 / 124; color: var(--rosso-testo); rotate: -9deg; opacity: 0; pointer-events: none; overflow: visible; }
  .pass.is-stamped .pass__stamp { opacity: 1; }
  .pass__burst { position: absolute; right: 150px; bottom: 36px; width: 240px; height: 240px; translate: 50% 50%; overflow: visible; pointer-events: none; }
  .pass__burst .pb { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .done, .full { display: grid; gap: 14px; outline: none; }
  .done__kicker { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rosso-testo); }
  .done__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .9; text-transform: uppercase; color: var(--rosso-testo); }
  .done__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  /* l'invito agli amici: una striscia rosa ben visibile, non un bottone in fondo */
  .done__amici { display: grid; gap: 12px; justify-items: start; margin: 4px 0; padding: 16px 18px; background: #FFE1EE; border-radius: 16px; rotate: -.6deg; box-shadow: 5px 6px 0 rgba(42,18,20,.18); }
  .done__amici p { font-weight: 600; line-height: 1.4; }
  .done__hint { font-weight: 700; }
  .done__premio { width: fit-content; padding: .35em .7em; background: var(--sole); font-weight: 800; line-height: 1.35; box-shadow: 4px 5px 0 rgba(42,18,20,.25); rotate: -.8deg; }
  .done__premio[hidden] { display: none; }
  .share-field { width: 100%; min-height: 48px; padding: 0 12px; border: 2px solid var(--inchiostro); border-radius: 12px; }
  @media (max-width: 860px) {
    .view__body { grid-template-columns: 1fr; margin-top: 8px; }
    .view__title { font-size: clamp(2.6rem, 13vw, 4rem); }
    .pass { grid-template-columns: 1fr 96px; }
    .pass__stamp { width: 150px; right: 30px; }
    .view__logo { display: none; }
  }
}

@layer motion {
  @keyframes spin { to { rotate: 360deg; } }
  /* gli adesivi respirano: le stelle brillano, la frutta dondola. Proprietà singole (scale, rotate):
     si sommano alle trasformazioni di GSAP senza litigare. */
  /* playbook: cicli lenti e piccoli (≥ 3 s, ≤ 4 px o 8% di scala), curva morbida, niente dondolii */
  @keyframes k-brilla { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .92; opacity: .8; } }
  @keyframes k-dondola { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
  /* le mascotte: passo (camminano) e mossa (ballano a 118 bpm, una mossa ogni due battiti) */
  @keyframes k-passo { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4%; } }
  @keyframes k-mossa { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -3%; rotate: 2deg; } }
  .k--cammina, .k--balla { transform-origin: 50% 92%; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .k--twinkle { animation: k-brilla var(--t, 3.4s) cubic-bezier(.4, .14, .3, 1) var(--d, 0s) infinite; }
    html:not(.fd-static) .k--wobble { animation: k-dondola var(--t, 4s) cubic-bezier(.37, 0, .63, 1) var(--d, 0s) infinite; }
    html:not(.fd-static) .k--cammina { animation: k-passo .508s cubic-bezier(.37, 0, .63, 1) infinite; }
    html:not(.fd-static) .k--balla { animation: k-mossa 1.017s cubic-bezier(.37, 0, .63, 1) infinite; }
    /* le faccine sparse ballano tutte insieme (js/fx/floaters.js): qui niente cicli propri */
    html:not(.fd-static) .fl .k { animation: none; }
  }
  @keyframes fd-show { to { --draw: 1; opacity: 1; } }
  /* stati iniziali dell'intro: valgono solo se c'è il JS e l'utente non ha chiesto meno movimento.
     Se il JS non parte, dopo 3 secondi un'animazione di sicurezza mostra comunque tutto. */
  @media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    html:not(.fd-ready):not(.fd-static) .hero__bottle path,
    html:not(.fd-ready):not(.fd-static) .hero__stream,
    html:not(.fd-ready):not(.fd-static) .hero__pens path { --draw: 0; animation: fd-show 0s 3s forwards; }
    html:not(.fd-ready):not(.fd-static) .hero__l,
    html:not(.fd-ready):not(.fd-static) .hero__dot,
    html:not(.fd-ready):not(.fd-static) .hero__disco-dot,
    html:not(.fd-ready):not(.fd-static) .hero__sparkles { opacity: 0; animation: fd-show 0s 3s forwards; }
  }
}

@layer utilities {
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }
  html.fd-static *, html.fd-static *::before, html.fd-static *::after { animation: none !important; transition: none !important; }
  @media (forced-colors: active) {
    .btn { border: 2px solid ButtonText; }
    .ink { stroke: CanvasText; }
  }
}

@layer sections {
  .hero__tonight { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: .95; text-transform: uppercase; color: var(--rosso-testo); max-width: 12ch; }
}

/* ================= Pagine semplici: privacy e 404 ================= */
@layer sections {
  .page { background-color: var(--carta); background-image: var(--grain); }
  .page__bar { display: flex; align-items: center; height: var(--header-h); padding: 0 var(--gutter); }
  .page__back { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--rosso-testo); text-decoration: none; }
  .page__back:hover { text-decoration: underline; text-underline-offset: 4px; }
  .page__main { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 96px; }
  .page__title { margin: 18px 0 18px; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .9; text-transform: uppercase; color: var(--rosso-testo); }
  .page__title em { font-style: normal; color: var(--inchiostro); }
  .page__lead { font-size: var(--t-lead); font-weight: 600; }
  .page__main section { margin-top: 44px; }
  .page__main h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1; text-transform: uppercase; color: var(--rosso-testo); margin-bottom: 12px; }
  .page__main p + p { margin-top: 12px; }
  .page__main a { color: var(--rosso-testo); font-weight: 700; }
  .page__list { display: grid; gap: 18px; }
  .page__list dt { font-weight: 800; }
  .page__form { margin-top: 18px; max-width: 460px; }
  .page__form .btn { justify-self: start; }
  .page__foot { margin-top: 56px; font-size: .9rem; }

  .page--404 { background-color: var(--cielo); min-height: 100svh; display: grid; place-items: center; }
  .lost { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 18px; padding: 48px var(--gutter); text-align: center; }
  .lost__k { position: absolute; z-index: -1; pointer-events: none; }
  .lost__k--calice { --fill: 0; width: clamp(52px, 7vw, 92px); aspect-ratio: 50.6 / 100; left: calc(50% - min(330px, 42vw)); top: clamp(96px, 11vw, 140px); rotate: -98deg; }
  .lost__k--stella { width: clamp(40px, 5vw, 64px); aspect-ratio: 1; left: 10%; top: 36px; }
  .lost__k--scintilla { width: clamp(26px, 3vw, 40px); aspect-ratio: 84 / 100; right: 13%; top: 110px; }
  .lost__art { width: min(520px, 90vw); fill: none; stroke: var(--rosso); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .lost__spill { stroke-width: 9; }
  .lost__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.2rem, 11vw, 8rem); line-height: .88; text-transform: uppercase; color: var(--rosso-testo); }
  .lost__title em { font-style: normal; color: var(--inchiostro); }
  .lost__text { font-size: var(--t-lead); font-weight: 600; max-width: 30ch; }
  .lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
}

/* =====================================================================
   Copertina "disco": il vinile al centro (l'etichetta è il logo), la busta a lato con le informazioni.
   Il disco è anche la ruota dei premi (js/fx/ruota.js): si trascina, si lancia, si ferma sotto la puntina.
   ===================================================================== */
@layer sections {
  /* la copertina: prima il marchio (cos'è Fiasco Disco), poi la prossima serata; il vinile accanto */
  .hero__brand { position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header-h) + 5svh); width: min(48vw, 680px); display: grid; gap: 14px; }
  .hero__kicker { width: fit-content; padding: .2em .5em; background: var(--inchiostro); color: #FFF3DF; font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; box-shadow: 4px 5px 0 rgba(42,18,20,.28); }
  .hero__titolo { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 5.8vw, 6rem); line-height: .86; letter-spacing: -.01em; text-transform: uppercase; color: var(--rosso-testo); text-shadow: 5px 5px 0 #FFF3DF; }
  .hero__titolo span { display: block; }
  .hero__titolo span:nth-child(2) { color: var(--inchiostro); margin-left: .5em; }
  .hero__cosa { margin: 0; font-weight: 700; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.25; color: var(--inchiostro); }
  .hero__cosa span { display: block; width: fit-content; padding: .2em .5em; background: #FFF3DF; box-shadow: 4px 5px 0 rgba(42,18,20,.28); }
  .hero__cosa span + span { margin-top: 4px; rotate: -.8deg; }
  .hero__prossima { position: absolute; z-index: 3; left: var(--gutter); bottom: 5svh; display: grid; grid-template-columns: auto auto; column-gap: 22px; row-gap: 8px; align-items: center; justify-items: start; }
  .hero__prossima .hero__date { grid-column: 1 / -1; }
  
  .hero__prossima .hero__date { display: grid; gap: 5px; color: var(--inchiostro); }
  .hero__prossima .hero__vol { width: fit-content; padding: .15em .45em; background: var(--inchiostro); color: #FFF3DF; font-size: .78rem; letter-spacing: .16em; }
  .hero__prossima .hero__when { width: fit-content; padding: .08em .35em; background: var(--sole); color: var(--inchiostro); font-size: clamp(1.3rem, 2vw, 1.9rem); white-space: nowrap; box-shadow: 4px 5px 0 rgba(42,18,20,.28); rotate: -1deg; }
  .hero__prossima .hero__when > span { display: inline; }
  .hero__prossima .hero__dove { width: fit-content; padding: .1em .4em; background: #FFF3DF; font-weight: 800; box-shadow: 4px 5px 0 rgba(42,18,20,.22); }
  .hero__prossima .hero__free { display: flex; gap: 8px; align-items: baseline; }
  .hero__prossima .hero__free strong { font-size: 1.05rem; color: var(--rosso-testo); }
  .hero__prossima .countdown { gap: 14px; }
  .hero__prossima .cd__num { font-size: 1.6rem; }
  .hero__cta { margin-top: 4px; grid-row: 3; grid-column: 1; }
  .hero__prossima .hero__free { grid-row: 2; grid-column: 1; }
  .hero__prossima .countdown { grid-row: 2 / span 2; grid-column: 2; align-self: end; padding-bottom: 6px; }
  
  .hero__sei { grid-column: 1 / -1; width: fit-content; padding: .3em .6em; background: #FFF3DF; font-weight: 700; box-shadow: 4px 5px 0 rgba(42,18,20,.22); }
  .hero__sei strong { color: var(--rosso-testo); }
  html.in-lista .hero__cta { display: none; }
  /* l'invito a scorrere in copertina: salta su e giù, bene in vista, per dire chiaro che le info della serata sono subito sotto */
  .hero__hint {
    position: fixed; left: 50%; bottom: 18px; z-index: 40; translate: -50% 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: .55em 1.3em .7em; border-radius: 999px; background: var(--rosso-testo); color: #FFF3DF; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
    border: 2.5px solid var(--inchiostro); box-shadow: 4px 5px 0 rgba(42,18,20,.32); pointer-events: none; transition: opacity .35s ease; text-align: center; line-height: 1.15;
  }
  .hero__hint-i { display: flex; flex-direction: column; align-items: center; margin-top: 2px; }
  .hero__hint-i::before, .hero__hint-i::after { content: ""; width: 11px; height: 11px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; rotate: 45deg; }
  .hero__hint-i::after { margin-top: -5px; opacity: .6; }
  html.fd-static .hero__hint { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .hero__hint { animation: hero-hint-salta 1.15s ease-in-out infinite; }
  }
  @keyframes hero-hint-salta { 0%, 100% { transform: translateY(0) scale(1); } 28% { transform: translateY(-16px) scale(1.03, .96); } 52% { transform: translateY(0) scale(.96, 1.04); } 68% { transform: translateY(-5px) scale(1); } }
  .hero--disco .giradischi { left: 72%; --D: min(58svh, 36vw); width: var(--D); }
  .hero--disco .ruota { left: 72%; }

  /* la copertina sta sopra l'inizio del tramonto: il cielo (bloccato) è lo stesso, il sole è già lì e cala subito */
  .apertura { position: relative; }
  .hero--disco {
    --D: min(62svh, 42vw);
    position: absolute; inset: 0 0 auto 0; z-index: 5; display: block; height: max(100svh, 620px); min-height: 0; padding: 0;
    background: none; overflow: visible; pointer-events: none;
  }
  .hero--disco > * { pointer-events: auto; }
  .hero--disco .fl { z-index: 1; }
  html.fd-static .hero--disco { position: relative; background: var(--cielo); }

  /* il giradischi: un quadrato di lato D al centro, il braccio sporge a destra */
  .giradischi { position: absolute; z-index: 2; left: 50%; top: calc(var(--header-h) + (100svh - var(--header-h) - var(--D)) / 2 - 4svh); width: var(--D); aspect-ratio: 1; translate: -50% 0; }
  .disco { position: absolute; inset: 0; border-radius: 50%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
    filter: drop-shadow(14px 18px 0 rgba(42,18,20,.22)); }
  .disco.is-presa { cursor: grabbing; }
  .disco__vinile { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
  .disco__solchi { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .spicchio__t { font-family: var(--f-display); font-size: 44px; letter-spacing: .02em; text-transform: uppercase; }
  .spicchio__s { font-family: var(--f-body); font-weight: 800; font-size: 21px; letter-spacing: .12em; text-transform: uppercase; }
  .spicchio.is-finito path { fill: #8d8487; }
  .spicchio.is-finito text { opacity: .55; text-decoration: line-through; }
  .disco__etichetta.hero__stage { position: absolute; left: 50%; top: 50%; width: 52%; height: 44%; min-height: 0; margin: 0; translate: -50% -46%; pointer-events: none; }
  .disco__luce { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
    background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255,255,255,.2) 38deg, transparent 62deg 200deg, rgba(255,255,255,.14) 218deg, transparent 244deg);
    -webkit-mask: radial-gradient(circle, transparent 0 29.5%, #000 30% 99%, transparent 99.5%); mask: radial-gradient(circle, transparent 0 29.5%, #000 30% 99%, transparent 99.5%); }
  .disco__perno { position: absolute; left: 50%; top: 50%; width: 2.6%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #b9b2ac 60%, #6c6461); box-shadow: 0 1px 2px rgba(0,0,0,.4); }

  /* il braccio: fa da lancetta della ruota; scatta a ogni spicchio */
  .braccio { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3;
    transform-origin: 105% 6%; rotate: calc(var(--braccio, 0) * 1deg); filter: drop-shadow(6px 8px 0 rgba(42,18,20,.22)); }
  .braccio__base { fill: #FFFCF5; stroke: var(--inchiostro); stroke-width: 6; }
  .braccio__perno { fill: var(--rosso); stroke: var(--inchiostro); stroke-width: 5; }
  .braccio__asta { fill: none; stroke: var(--inchiostro); stroke-width: 16; stroke-linecap: round; }
  .braccio__testina { fill: var(--rosso); stroke: var(--inchiostro); stroke-width: 5; }
  .braccio__peso { fill: var(--sole); stroke: var(--inchiostro); stroke-width: 5; }

  /* il premio vinto resta attaccato sopra il disco */
  .ruota__bollino {
    position: absolute; left: 50%; top: 50%; z-index: 4; width: 52%; aspect-ratio: 1; translate: -50% -50%; rotate: -8deg;
    display: grid; place-content: center; gap: 4px; padding: 10%; border-radius: 50%; text-align: center;
    background: var(--sole); color: var(--inchiostro); border: 3px solid var(--inchiostro); box-shadow: 8px 10px 0 rgba(42,18,20,.25);
    font-family: var(--f-display); font-size: clamp(1.05rem, 2.2vw, 1.9rem); line-height: .95; text-transform: uppercase; pointer-events: none;
  }
  .ruota__bollino small { font-family: var(--f-body); font-weight: 800; font-size: .7rem; letter-spacing: .14em; }
  .ruota__bollino.is-vuoto { background: #FFFCF5; }

  /* l'invito appiccicato sul bordo del disco: sparisce appena c'è un esito (vedi aggiornaBottone in js/fx/ruota.js) */
  .giradischi__invito {
    position: absolute; top: -5%; right: -3%; z-index: 5; margin: 0; width: 24%; aspect-ratio: 1; rotate: 12deg;
    display: grid; place-content: center; border-radius: 50%; text-align: center;
    background: var(--rosso-testo); color: #FFF3DF; border: 3px solid var(--inchiostro); box-shadow: 4px 5px 0 rgba(42,18,20,.3);
    font-family: var(--f-display); font-size: clamp(.95rem, 1.7vw, 1.5rem); line-height: .95; text-transform: uppercase; pointer-events: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .giradischi__invito { animation: k-dondola 2.4s ease-in-out infinite; }
  }

  /* il bottone della ruota: grande, giallo, sotto il disco */
  .ruota { position: absolute; z-index: 4; left: 50%; top: calc(var(--header-h) + (100svh - var(--header-h) + var(--D)) / 2 - 4svh - 30px); translate: -50% 0;
    display: grid; justify-items: center; gap: 10px; width: min(560px, calc(100% - 2 * var(--gutter))); text-align: center; }
  .btn--ruota { --btn-bg: var(--sole); --btn-fg: var(--inchiostro); --btn-shadow: var(--inchiostro); min-height: 66px; padding: 0 2.1em; font-size: 1.12rem; border-color: var(--inchiostro); border-width: 3px; }
  .btn--ruota__i { font-size: 1.5em; line-height: 0; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .btn--ruota::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid var(--sole); animation: ruota-onda 1.8s var(--ease-out) infinite; pointer-events: none; }
    html:not(.fd-static) .btn--ruota__i { display: inline-block; animation: ruota-gira 2.4s linear infinite; }
  }
  @keyframes ruota-onda { from { opacity: .9; scale: 1; } to { opacity: 0; scale: 1.25 1.6; } }
  @keyframes ruota-gira { to { rotate: 360deg; } }
  .ruota__sotto { font-weight: 800; font-size: .82rem; letter-spacing: .04em; color: var(--inchiostro); max-width: 40ch; text-wrap: balance; background: #FFF3DF; padding: .2em .5em; box-shadow: 4px 5px 0 rgba(42,18,20,.28); rotate: -1deg; }
  .ruota__esito { font-weight: 800; font-size: .95rem; line-height: 1.35; color: var(--inchiostro); max-width: 46ch; padding: 8px 14px; border-radius: 14px; background: #FFFCF5; box-shadow: 4px 4px 0 rgba(42,18,20,.18); }
  .ruota__esito:empty { display: none; }
  .ruota:has(.ruota__esito:not(:empty)) .ruota__sotto { display: none; }
  .ruota__esito a { color: var(--rosso-testo); }
  /* dopo il giro il bottone porta alla lista: rosso, senza la freccia che gira */
  .btn--ruota.is-lista { --btn-bg: var(--rosso-testo); --btn-fg: var(--carta); }
  .btn--ruota.is-lista .btn--ruota__i { display: none; }
  .btn--ruota.is-lista::after { border-color: var(--rosso-testo) !important; }
  /* su computer il disco col suo bottone è il primo passo: niente secondo bottone in copertina */
  /* (nascosto da subito, senza aspettare i dati: se la serata non ha la ruota, ruota.js lo rimette con "senza-ruota") */
  @media (min-width: 900px) { .hero--disco .hero__cta { display: none; } html.senza-ruota:not(.in-lista) .hero--disco .hero__cta { display: inline-flex; } }

  /* lo sfondo della copertina (js/fx/arredo.js): pochi oggetti veri di carta ai bordi, che dondolano appena */
  .hero__sfondo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  /* la Batia e l'Etna, già in copertina: un'illustrazione ferma in fondo, di giorno (la sua versione di notte resta solo più avanti nello scroll) */
  .hero__palazzo { position: absolute; left: 50%; bottom: -3svh; width: min(78vw, 980px); aspect-ratio: 100 / 70.5; translate: -50% 0; opacity: .92; filter: saturate(.92); }
  @media (max-width: 899.98px) { .hero__palazzo { width: min(142vw, 760px); bottom: -2svh; opacity: .8; } }
  .sfondo__oggetti { position: absolute; inset: 0; }
  .oggetto { position: absolute; height: auto; overflow: visible; translate: -50% -50%; rotate: var(--r, 0deg); }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .oggetto { animation: oggetto-dondola var(--dur, 6s) ease-in-out infinite alternate; }
  }
  @keyframes oggetto-dondola { from { transform: rotate(-3deg) translateY(-4px); } to { transform: rotate(3deg) translateY(4px); } }
  @media (max-width: 899.98px) { .oggetto--desk { display: none; } .oggetto { scale: .7; } }

  /* il mobile alla Calder pende nello sfondo di Chi siamo */
  .manifesto { position: relative; }
  .arte__calder { position: absolute; right: 6%; top: 0; width: clamp(200px, 20vw, 300px); pointer-events: none; z-index: 0; }
  .arte__calder svg { display: block; width: 100%; height: auto; overflow: visible; }
  .calder__braccio { transform-box: view-box; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .calder__braccio { animation: calder-dondola var(--d, 5s) ease-in-out infinite alternate; }
  }
  @keyframes calder-dondola { from { rotate: -6deg; } to { rotate: 6deg; } }
  @media (max-width: 899.98px) {
    .arte__calder { width: 150px; right: 2%; }
    
  }
  /* le informazioni sparse: data in alto a sinistra, conto alla rovescia in basso a sinistra, luogo e lista in basso a destra */

  /* la scheda del premio: in mezzo allo schermo, con i coriandoli (js/fx/ruota.js) */
  .premio { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gutter); background: rgba(42,18,20,.42); }
  .premio[hidden] { display: none; }
  .premio__carta { position: relative; display: grid; justify-items: center; gap: 10px; width: min(440px, 100%); padding: 60px 28px 30px; text-align: center;
    background: #FFFCF5; color: var(--inchiostro); border: 3px solid var(--inchiostro); border-radius: 28px; box-shadow: 12px 14px 0 var(--rosso); outline: none; }
  .premio__botto { position: absolute; left: 50%; top: -118px; width: 180px; height: 180px; translate: -50% 0; }
  .premio__icona { position: relative; width: 104px; height: 104px; margin-top: -122px; margin-bottom: 4px; overflow: visible; }
  .premio__kicker { font-weight: 800; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rosso-testo); }
  .premio__nome { font-family: var(--f-display); font-size: clamp(2rem, 7vw, 3rem); line-height: .92; text-transform: uppercase; color: var(--rosso); text-wrap: balance; }
  .premio__testo { font-weight: 600; max-width: 30ch; }
  /* il modulo veloce nella scheda del premio: nome e cellulare */
  .premio__form { display: grid; gap: 10px; width: 100%; text-align: left; }
  .premio__form[hidden] { display: none; }
  .premio__form .field__label small, .field__label small { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .75; }
  .premio__form .form__info { font-size: .74rem; text-align: center; }
  /* se la scheda è più alta dello schermo (telefono col modulo), scorre tutta la scheda: il disegno in cima resta intero */
  .premio { overflow-y: auto; overscroll-behavior: contain; padding-top: 130px; padding-bottom: 24px; }
  .premio__azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
  .coriandoli { position: fixed; inset: 0; z-index: 95; width: 100%; height: 100%; pointer-events: none; }

  .fl--appeso::before { content: ""; position: absolute; left: 50%; bottom: 92%; width: 2px; height: var(--corda, 12vh); translate: -50% 0; background: var(--inchiostro); opacity: .55; }

  @media (max-width: 899.98px) {
    /* telefono: data in alto, disco, bottone, poi conto alla rovescia e luogo */
    .hero--disco { --D: min(90vw, 46svh); height: max(100svh, 740px); }
    .giradischi { left: calc(50% - 4vw); top: calc(var(--header-h) + 200px); }
    .ruota { top: calc(var(--header-h) + 200px + var(--D) - 10px); gap: 6px; }
    .hero__cosa { font-size: .8rem; margin-top: 4px; }
    .btn--ruota { white-space: nowrap; font-size: .78rem; letter-spacing: .04em; padding: 0 1em; min-height: 54px; max-width: 100%; }
    .ruota__esito { font-size: .85rem; padding: 6px 12px; }
    .btn--ruota { min-height: 58px; font-size: 1rem; }
    .ruota__sotto { font-size: .74rem; }

    .ruota__bollino { font-size: 1rem; }
    .spicchio__t { font-size: 50px; }
    .spicchio__s { font-size: 24px; }
  }

  /* ---------- il tramonto: la scheda della serata sta sotto la scena, mai sopra ---------- */
  .notte { padding-bottom: clamp(64px, 9vh, 110px); }
  .notte__pin { height: auto; overflow: visible; }
  .notte__sky { position: relative; height: 100svh; overflow: hidden; }
  
  /* il percorso del tramonto: cielo e tappe bloccati insieme; le tappe arrivano una alla volta in basso */
  .apertura .notte { padding-bottom: 56px; } /* la fascia che segue non si affaccia nella prima schermata */
  .notte__scena { position: relative; height: 100svh; overflow: hidden; }
  .notte__scena > .notte__sky { position: absolute; inset: 0; height: auto; }
  .notte__tappe { position: absolute; left: 0; right: 0; bottom: 5svh; z-index: 2; display: grid; justify-items: center; padding: 0 var(--gutter); pointer-events: none; }
  .tappa {
    grid-area: 1 / 1; align-self: end; display: grid; justify-items: center; gap: 6px; width: min(720px, 100%); padding: 18px 26px 20px; text-align: center;
    background: #FFFCF5; color: var(--inchiostro); border: 2.5px solid var(--inchiostro); border-radius: 22px; box-shadow: 8px 10px 0 rgba(20,27,71,.35);
    visibility: hidden; pointer-events: auto;
  }
  .tappa__k { font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rosso-testo); }
  .tappa__t { font-family: var(--f-display); font-size: clamp(1.5rem, 3.2vw, 2.8rem); line-height: .98; text-transform: uppercase; text-wrap: balance; }
  .tappa__s { font-weight: 600; max-width: 46ch; }
  .tappa__azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
  .tappa--fine { box-shadow: 10px 12px 0 var(--rosso); }
  /* l'invito a continuare a scorrere: la scena resta ferma sullo schermo, ma scorrendo di più arrivano le tappe.
     Stesso linguaggio del bollino rosso in copertina (.hero__hint): le due schermate si "parlano" */
  .notte__hint {
    position: absolute; left: 50%; bottom: 3svh; z-index: 3; translate: -50% 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: .55em 1.3em .7em; border-radius: 999px; background: var(--rosso-testo); color: #FFF3DF; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
    border: 2.5px solid var(--inchiostro); box-shadow: 4px 5px 0 rgba(42,18,20,.32); pointer-events: none; text-align: center; line-height: 1.15;
  }
  .notte__hint-i { width: 11px; height: 11px; margin-top: 2px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; rotate: 45deg; }
  html.fd-static .notte__hint { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .notte__hint-i { animation: notte-hint-giu 1.3s ease-in-out infinite; }
  }
  @keyframes notte-hint-giu { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

  @media (min-width: 900px) {
    /* su computer i cartoncini stanno ai lati, alternati, lontano dalla piazza dove sta la gente:
       il pavimento e la porta restano liberi per le mascotte */
    .notte__tappe { inset: 0; bottom: auto; display: block; padding: 0; }
    .tappa { position: absolute; top: calc(var(--header-h) + 20vh); width: min(520px, 37vw); padding: 20px 24px 22px; }
    .tappa:nth-of-type(odd) { right: var(--gutter); }
    .tappa:nth-of-type(even) { left: var(--gutter); }
    .tappa__t { font-size: clamp(1.4rem, 2.3vw, 2.2rem); }
  }

  /* la piazza davanti al palazzo (js/fx/piazza.js): la pista a scacchi, gli stand e la gente (js/fx/persone.js) */
  .piazza { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
  .piazza__pista { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
  html.fd-static .piazza__pista { opacity: 1; }
  @media (max-width: 899.98px) { .piazza__pista { opacity: 1; } }
  html.fd-static .piazza { bottom: auto; height: 100svh; }
  /* il vecchio pavimento disegnato lascia il posto alla pista della piazza */
  .notte__floor { display: none; }
  .piazza__p { position: absolute; left: 0; top: 0; width: var(--pw, 110px); aspect-ratio: 92 / 150; transform-origin: var(--px, 55px) var(--py, 170px); will-change: transform; visibility: hidden; }
  .persona { display: block; width: 100%; height: 100%; overflow: visible; }
  /* l'arredo della piazza (tavolini, vasi di limoni) e il tappeto rosso: li mette js/fx/piazza.js */
  .piazza__arredo { position: absolute; left: 0; top: 0; will-change: transform; visibility: hidden; }
  .piazza__arredo svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .piazza__coriandoli { opacity: 0; transition: opacity 1.2s ease-out; }
  .is-notte .piazza__coriandoli, html.fd-static .piazza__coriandoli { opacity: 1; }
  .fiamma, .fiamma__alone { transform-box: fill-box; transform-origin: 50% 100%; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .fiamma { animation: fiamma .7s ease-in-out infinite alternate; }
    html:not(.fd-static) .fiamma__alone { transform-origin: center; animation: fiamma-alone 1.1s ease-in-out infinite alternate; }
  }
  @keyframes fiamma { from { transform: scale(.86, 1) skewX(-5deg); } to { transform: scale(1.08, 1.12) skewX(5deg); } }
  @keyframes fiamma-alone { from { opacity: .14; } to { opacity: .3; } }
  .piazza__cane { position: absolute; left: 0; top: 0; width: var(--cw, 60px); aspect-ratio: 60 / 48; transform-origin: var(--cx, 30px) var(--cy, 46px); will-change: transform; visibility: hidden; }
  .cane { display: block; width: 100%; height: 100%; overflow: visible; }
  /* le paillettes del vestito della diva luccicano */
  .persona .luccica { opacity: 0; transform-box: fill-box; transform-origin: center; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .persona .luccica { animation: luccica 1.5s ease-in-out var(--d, 0s) infinite; }
  }
  html.fd-static .persona .luccica { opacity: 1; }
  @keyframes luccica { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

  /* la festa che si monta col buio (js/fx/festa.js, disegni in js/fx/festa-carta.js): sta nello strato della piazza,
     così le mascotte passano davanti o dietro ai pezzi secondo la profondità (z-index = dove poggiano sul pavimento).
     Le animazioni a ciclo vanno a 118 BPM (--battito) e partono solo quando serve: .is-notte, .is-finale, .in-vista */
  .notte__scena { --battito: .508s; }
  .festa { position: absolute; inset: 0; } /* niente z-index: i pezzi si mescolano con le mascotte */
  html.fd-static .festa, html.fd-static .notte__fasci { bottom: auto; height: 100svh; } /* senza animazioni la scena è più alta */
  .festa__pezzo { position: absolute; z-index: 700; opacity: 0; will-change: transform; }
  .festa__pezzo svg, .festa__sfera svg, .stand__insegna svg, .fuoco svg { display: block; width: 100%; height: auto; overflow: visible; }
  .festa__scritta { font-family: var(--f-display); letter-spacing: .03em; }
  .stand__salta, .stand__corpo { position: relative; }
  .stand__insegna { position: absolute; left: var(--x); bottom: var(--b); width: var(--w); }
  .stand__gente { position: absolute; inset: 0; }
  .stand { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .stand--van { left: .4vw; bottom: 1.6%; width: min(25vw, 380px); }
  .stand--spritz { right: .8vw; bottom: 2%; width: min(21vw, 320px); }
  .stand--foto { left: 14.6%; bottom: 15.4%; width: min(7vw, 106px); }
  .stand--vino { right: 19.5%; bottom: 15%; width: min(9.6vw, 146px); }
  .festa__dj { left: 29.5%; bottom: 17.2%; width: min(9.5vw, 150px); }
  .festa__cassa { bottom: 17.4%; width: min(3.9vw, 60px); }
  .festa__cassa--l { left: 25.6%; }
  .festa__cassa--r { left: 39.6%; }
  .festa__coriandolo { position: absolute; z-index: 960; width: 8px; height: 11px; margin: -5px 0 0 -4px; border-radius: 1px; pointer-events: none; }
  .festa__pioggia { position: absolute; inset: 0; z-index: 950; width: 100%; height: 100%; pointer-events: none; }
  /* la palla: appesa a un filo lungo, scende quando è buio; i riflessi girano intorno */
  .festa__palla { position: absolute; z-index: 2; left: 50%; top: calc(var(--header-h) + 13vh); width: 0; height: 0; }
  .festa__dondola { position: absolute; left: 0; top: 0; transform-origin: 0 -100vh; }
  .festa__filo { position: absolute; left: -1px; bottom: 0; width: 2px; height: 110vh; background: rgba(42,18,20,.7); }
  .festa__sfera { position: absolute; left: 0; top: 0; width: clamp(130px, 12vw, 190px); translate: -50% -38%; }
  .festa__riflessi { position: absolute; left: 0; top: 0; opacity: 0; }
  .festa__riflessi i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); border-radius: 2px; background: var(--c); opacity: .9;
    transform-origin: 0 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(45deg); }
  .festa__brilla, .flash { opacity: 0; }
  /* nel cielo i fasci di luce e i fuochi (dietro il palazzo) */
  .notte__fasci { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
  /* il fascio: la base sta ferma all'angolo di partenza (--r0), dentro l'SVG spazza avanti e indietro
     (niente variabili nei keyframes: così l'animazione la fa la scheda grafica) */
  .fascio { position: absolute; left: var(--x); bottom: 22%; width: 15vw; height: 92vh; translate: -50% 0; transform-origin: 50% 100%; rotate: var(--r0); }
  .fascio svg { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
  .fuoco { position: absolute; left: var(--x); top: var(--y); width: var(--s); translate: -50% -50%; opacity: 0; transform: scale(.2); }
  .cassa__cono, .ballo, .ombre__balla, .agita, .eq, .bolla { transform-box: fill-box; }
  .cassa__cono, .agita { transform-origin: center; }
  .ballo, .ombre__balla, .eq { transform-origin: 50% 100%; }
  html.fd-static .festa__brilla { opacity: 1; }
  html.fd-static .fuoco { opacity: .9; transform: scale(.8); }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .festa__dondola { animation: festa-dondola 5.2s ease-in-out infinite alternate; }
    html:not(.fd-static) .festa__riflessi i { animation: festa-gira 46s linear infinite; }
    html:not(.fd-static) .festa__brilla { animation: festa-brilla 1.6s ease-in-out calc(var(--i) * -.55s) infinite; }
    html:not(.fd-static) .dj__disco { animation: festa-gira 1.8s linear infinite; }
    /* le insegne dondolano, quella dei dischi gira come un vinile */
    html:not(.fd-static) .stand__insegna > svg { transform-origin: 50% 100%; animation: insegna-dondola 3.4s ease-in-out infinite alternate; }
    html:not(.fd-static) .stand--van .stand__insegna > svg { transform-origin: 50% 50%; animation: festa-gira 16s linear infinite; }
    /* a tempo, a scatti come un teatrino di carta: due pose a ogni battito */
    html:not(.fd-static) .ballo--salta { animation: ballo-salta calc(var(--battito) * 2) infinite var(--d); }
    html:not(.fd-static) .ballo--dondola { animation: ballo-dondola calc(var(--battito) * 2) infinite var(--d); }
    html:not(.fd-static) .ombre__balla { animation: ballo-dondola calc(var(--battito) * 2) infinite var(--d); }
    html:not(.fd-static) .agita { animation: agita calc(var(--battito) / 2) infinite; }
    html:not(.fd-static) .eq { animation: eq var(--battito) infinite var(--d); }
    html:not(.fd-static) .lampo--a { animation: lampo var(--battito) infinite; }
    html:not(.fd-static) .lampo--b { animation: lampo var(--battito) infinite calc(var(--battito) / -2); }
    html:not(.fd-static) .bolla { animation: bolla 2.6s ease-in infinite var(--d); }
    html:not(.fd-static) .flash { animation: flash 3.6s ease-out infinite; }
    html:not(.fd-static) .is-notte .fascio svg { animation: fascio-spazza var(--t) ease-in-out var(--d) infinite alternate; }
    html:not(.fd-static) .is-finale .fuoco { animation: fuoco 3s cubic-bezier(.15, .7, .3, 1) var(--d) infinite; }
    /* fuori dallo schermo tutto si ferma */
    .notte__scena:not(.in-vista) :is(.festa, .notte__fasci, .notte__palazzo, .notte__luminarie, .piazza) * { animation-play-state: paused !important; }
  }
  @keyframes festa-dondola { from { rotate: -.9deg; } to { rotate: .9deg; } }
  @keyframes festa-gira { to { rotate: 360deg; } }
  @keyframes festa-brilla { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
  @keyframes insegna-dondola { from { rotate: -2.4deg; } to { rotate: 2.4deg; } }
  @keyframes ballo-salta { 0%, 49.9% { transform: translateY(0) scale(1.03, .97); } 50%, 100% { transform: translateY(-9px) scale(.98, 1.03); } }
  @keyframes ballo-dondola { 0%, 49.9% { transform: translateY(0) rotate(-4deg); } 50%, 100% { transform: translateY(-3px) rotate(4deg); } }
  @keyframes agita { 0%, 49.9% { transform: rotate(-7deg); } 50%, 100% { transform: rotate(7deg); } }
  @keyframes eq { 0%, 24.9% { transform: scaleY(.35); } 25%, 49.9% { transform: scaleY(1); } 50%, 74.9% { transform: scaleY(.6); } 75%, 100% { transform: scaleY(.85); } }
  @keyframes lampo { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: .3; } }
  @keyframes bolla { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-46px); opacity: 0; } }
  @keyframes flash { 0%, 86% { opacity: 0; transform: scale(.4); } 89% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.1); } }
  @keyframes fascio-spazza { from { transform: rotate(0deg); } to { transform: rotate(32deg); } }
  @keyframes fuoco { 0% { opacity: 0; transform: scale(.12) rotate(0deg); } 6% { opacity: 1; } 40% { opacity: 1; transform: scale(1) rotate(10deg); } 62%, 100% { opacity: 0; transform: scale(1.1) rotate(14deg); } }
  @media (max-width: 899.98px) {
    .stand--van { left: -7vw; bottom: 1%; width: 50vw; }
    .stand--spritz { right: -5vw; bottom: 1.2%; width: 42vw; }
    .stand--foto, .stand--vino, .fascio--desk, .fuoco--desk { display: none; }
    .fascio { width: 26vw; }
    .festa__dj { left: 22%; bottom: 29.6%; width: 23vw; }
    .festa__cassa { bottom: 29.7%; width: 9.5vw; }
    .festa__cassa--l { left: 12%; }
    .festa__cassa--r { display: none; }
    .festa__palla { left: 86%; top: 37svh; }
    .festa__sfera { width: 19vw; }
  }

  /* le informazioni come strisce di carta incollate (niente riquadro): ogni riga è una striscia */
  .tappa { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; gap: 10px; justify-items: start; text-align: left; rotate: -1.5deg; }
  .tappa:nth-of-type(even) { justify-items: end; text-align: right; rotate: 1.5deg; }
  .tappa--fine { box-shadow: none; }
  .tappa__t { font-size: clamp(1.7rem, 2.9vw, 2.8rem); line-height: 1.34; }
  .tappa__t, .tappa__k, .tappa__s { margin: 0; }
  .tappa__k { rotate: 1.2deg; } .tappa__s { rotate: -.8deg; max-width: 34ch; line-height: 1.6; }
  .striscia {
    padding: .1em .38em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
    box-shadow: 4px 5px 0 rgba(20,27,71,.32); color: var(--inchiostro);
  }
  .striscia--ink { background: var(--inchiostro); color: #FFF3DF; font-weight: 800; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
  .striscia--sole { background: var(--sole); }
  .striscia--rosa { background: var(--rosa); color: #fff; }
  .striscia--cobalto { background: var(--cobalto); color: #fff; }
  .striscia--crema { background: #FFF3DF; font-weight: 600; }
  .tappa__azioni { justify-content: flex-start; }
  .tappa__azioni .btn--ghost { background: #FFF3DF; }
  @media (max-width: 899.98px) { .tappa, .tappa:nth-of-type(even) { justify-items: center; text-align: center; } .tappa__azioni { justify-content: center; } }

  html.fd-static .notte__scena { height: auto; overflow: visible; }
  html.fd-static .notte__scena > .notte__sky { position: relative; height: 100svh; }
  html.fd-static .notte__tappe { position: relative; top: auto; bottom: auto; gap: 18px; padding: 32px var(--gutter) 64px; }
  html.fd-static .tappa { grid-area: auto; visibility: visible; }
  @media (max-width: 899.98px) {
    /* su telefono i cartoncini stanno in alto (il cielo è libero), il pavimento resta alla gente */
    .notte__tappe { top: calc(var(--header-h) + 14px); bottom: auto; }
    .tappa { align-self: start; }
    
    .tappa { padding: 14px 18px 16px; }
    .tappa__t { font-size: 1.2rem; }
    .tappa__s { font-size: .85rem; }
  }
  
  /* la luna sorge a sinistra, nel cielo libero: parte da dietro la palma e sale */
  .notte__moon { right: auto; left: 16%; top: 9vh; width: clamp(110px, 11vw, 170px); transform: translateY(52vh); opacity: 0; }
  @media (max-width: 900px) { .notte__moon { left: 10%; top: 10vh; width: 96px; } }
}

/* ---------- copertina (v21): un poster in due colonne ----------
   a destra il disco, col grande sole del tramonto dietro come un'aureola (sections/night.js lo mette lì);
   a sinistra si legge in tre gradini: cos'è (marchio), quando (il biglietto), cosa fare (il bottone) */
@layer sections {
  .hero--disco { --colonna: min(46vw, 660px); }
  .hero--disco .hero__brand { top: calc(var(--header-h) + 4.5svh); width: var(--colonna); gap: 12px; }
  .hero--disco .hero__titolo { font-size: clamp(3rem, 5.5vw, 6.2rem); line-height: .9; }
  .hero--disco .hero__titolo span:nth-child(2) { margin-left: 0; color: var(--inchiostro); }
  .hero--disco .hero__titolo span:first-child { color: var(--rosso-testo); }
  .hero--disco .hero__cosa span { font-size: clamp(1rem, 1.25vw, 1.2rem); }
  .hero--disco .hero__prossima { display: grid; grid-template-columns: 1fr; gap: 18px; width: var(--colonna); bottom: 5.5svh; justify-items: start; }
  /* il biglietto: carta crema incollata storta, col bordo tratteggiato da biglietto vero */
  .hero__biglietto { position: relative; display: grid; gap: 10px; width: min(100%, 560px); padding: 16px 22px 16px; background: #FFF6EA; color: var(--inchiostro);
    border-radius: 6px; box-shadow: 7px 9px 0 rgba(42,18,20,.26); rotate: -1.2deg; outline: 2px dashed rgba(42,18,20,.25); outline-offset: -8px; }
  .hero--disco .hero__biglietto .hero__date { gap: 8px; }
  .hero--disco .hero__biglietto .hero__vol { width: fit-content; padding: .15em .45em; background: var(--inchiostro); color: #FFF3DF; font-size: .74rem; letter-spacing: .16em; }
  .hero--disco .hero__biglietto .hero__when { padding: 0; background: none; box-shadow: none; rotate: 0deg; color: var(--rosso-testo); font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 1; white-space: normal; }
  /* la data protagonista: il giorno grande, sotto giorno della settimana e ora */
  .hero--disco .hero__biglietto .hero__giorno { font-size: clamp(2.4rem, 4.2vw, 4.2rem); line-height: .9; white-space: nowrap; }
  .hero--disco .hero__ora { font-weight: 800; font-size: clamp(1rem, 1.3vw, 1.25rem); letter-spacing: .04em; text-transform: uppercase; color: var(--inchiostro); }
  .hero__riga { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 18px; padding-top: 10px; border-top: 2px dashed rgba(42,18,20,.22); }
  .hero--disco .hero__dove { margin: 0; padding: 0; background: none; box-shadow: none; font-weight: 800; font-size: 1rem; }
  .hero--disco .hero__biglietto .countdown { gap: 14px; }
  .hero--disco .hero__biglietto .cd__num { font-size: clamp(1.4rem, 2vw, 2rem); }
  .hero--disco .hero__biglietto .cd small { font-size: .62rem; }
  /* il bollino "ingresso gratuito": un tondo rosso ritagliato sull'angolo del biglietto */
  .hero--disco .hero__biglietto .hero__date { padding-right: 96px; }
  .hero--disco .hero__gratis { position: absolute; margin: 0; grid-area: auto; right: -30px; top: -44px; display: grid; place-content: center; gap: 2px; width: 112px; aspect-ratio: 1; padding: 10px;
    border-radius: 50%; background: var(--rosso-testo); color: #FFF3DF; text-align: center; rotate: 10deg; box-shadow: 4px 5px 0 rgba(42,18,20,.3); }
  .hero--disco .hero__gratis strong { font-family: var(--f-display); font-weight: 400; font-size: 1.02rem; line-height: .95; color: #FFF3DF; }
  .hero--disco .hero__gratis span { font-size: .55rem; letter-spacing: .12em; font-weight: 800; }
  /* cosa fare: il bottone, con la riga che spiega */
  .hero__azione { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
  /* due bottoni chiari: mettersi in lista (rosso) e girare la ruota (giallo); la riga sotto spiega */
  .hero__azione .hero__lista { min-height: 66px; padding: 0 1.8em; font-size: 1.05rem; }
  .hero__azione .ruota__sotto { flex-basis: 100%; }
  html.in-lista .hero__azione .hero__lista, .hero__azione:has(.btn--ruota.is-lista) .hero__lista { display: none; }
  .hero__azione .ruota__sotto { margin: 0; max-width: 52ch; text-align: left; rotate: 0deg; font-size: .8rem; }
  .hero--disco:has(.ruota__esito:not(:empty)) .ruota__sotto { display: none; }
  html.senza-ruota .hero__azione { display: none; }
  /* il disco: più grande; sotto c'è solo l'esito del giro */
  .hero--disco { --D: min(92svh, 60vw); }
  .hero--disco .giradischi { left: 73%; --D: min(92svh, 60vw); width: var(--D); top: calc(var(--header-h) + (100svh - var(--header-h) - var(--D)) / 2 - 1svh); }
  /* più enfatizzata: un alone che pulsa intorno al disco, e un'ombra più marcata */
  .hero--disco .disco { filter: drop-shadow(18px 22px 0 rgba(42,18,20,.26)); }
  .hero--disco .giradischi::before {
    content: ""; position: absolute; inset: -4%; border-radius: 50%; pointer-events: none; z-index: -1;
    background: radial-gradient(circle, rgba(247,183,51,.45) 0%, rgba(247,183,51,.22) 45%, transparent 72%);
  }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.fd-static) .hero--disco .giradischi::after {
      content: ""; position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--sole); pointer-events: none;
      animation: ruota-onda 2s var(--ease-out) infinite;
    }
  }
  .hero--disco .ruota { left: 73%; top: calc(var(--header-h) + (100svh - var(--header-h) + var(--D)) / 2 + 6px); }
  .giradischi__sole { display: none; }
}

/* ---------- copertina su telefono: marchio, vinile, prossima serata, uno sotto l'altro ---------- */
@layer sections {
  @media (max-width: 899.98px) {
    /* su telefono la copertina viene prima del tramonto (non sopra) e sta in una schermata sola:
       marchio, il disco grande col suo bottone, poi la prossima serata in poche righe. Il cielo è lo stesso del tramonto che segue */
    .hero.hero--disco { position: relative; background-color: #9CCDF0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 26px, rgba(255,255,255,0) 26px 52px); height: auto; min-height: 100svh; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: calc(var(--header-h) + 14px) var(--gutter) 22px; }
    .hero--disco .hero__brand, .hero--disco .hero__prossima, .hero--disco .giradischi, .hero--disco .ruota { position: relative; left: auto; top: auto; bottom: auto; translate: none; }
    .hero--disco .hero__brand { order: 1; width: 100%; gap: 8px; }
    .hero--disco .giradischi { order: 2; --D: min(62vw, 31svh); width: var(--D); align-self: center; margin: 14px 0 12px -5vw; left: auto; top: auto; }
    /* il sole di carta fa da aureola al disco */
    .giradischi__sole { display: block; position: absolute; left: -24%; top: -24%; width: 148%; height: auto; z-index: -1; pointer-events: none; }
    .giradischi__sole > .alone { animation: none; width: 100%; }
    /* sotto il disco, in colonna: il bottone, l'esito, il biglietto */
    .hero--disco .hero__prossima { display: contents; }
    .hero--disco .hero__azione { order: 3; flex-direction: row; justify-content: center; gap: 8px; width: 100%; }
    .hero--disco .hero__azione .btn { flex: 1 1 0; min-width: 0; min-height: 56px; padding: 0 .6em; font-size: .86rem; white-space: nowrap; }
    .hero--disco .hero__azione .btn--ruota__i { display: none; }
    .hero--disco .hero__azione .ruota__sotto { text-align: center; max-width: 34ch; font-size: .7rem; }
    .hero--disco .ruota { order: 4; width: 100%; left: auto; top: auto; }
    .hero--disco .hero__biglietto { order: 5; width: 100%; gap: 6px; padding: 10px 14px; rotate: -.8deg; margin-top: 4px; outline-offset: -6px; }
    .hero--disco .hero__biglietto .hero__date { gap: 5px; padding-right: 58px; }
    .hero--disco .hero__biglietto .hero__vol { font-size: .6rem; }
    .hero--disco .hero__biglietto .hero__when { font-size: clamp(1rem, 4.7vw, 1.3rem); }
    .hero--disco .hero__biglietto .hero__giorno { font-size: clamp(1.9rem, 10vw, 2.6rem); }
    .hero--disco .hero__ora { font-size: .82rem; }
    .hero--disco .hero__riga { padding-top: 6px; gap: 4px 12px; }
    .hero--disco .hero__biglietto .countdown { gap: 10px; }
    .hero--disco .hero__biglietto .cd__num { font-size: 1.1rem; }
    .hero--disco .hero__biglietto .cd small { font-size: .52rem; }
    .hero--disco .hero__dove { font-size: .8rem; }
    .hero--disco .hero__gratis { width: 66px; padding: 6px; right: -8px; top: -24px; }
    .hero--disco .hero__gratis strong { font-size: .62rem; }
    .hero--disco .hero__gratis span { font-size: .4rem; letter-spacing: .08em; }
    .hero--disco .hero__cta, .hero--disco .hero__sei { order: 6; }
    /* un solo bottone: quello del disco (la copertina rimette il suo se la serata non ha la ruota) */
    .hero--disco .hero__cta { display: none; width: 100%; }
    html.senza-ruota:not(.in-lista) .hero--disco .hero__cta { display: inline-flex; }
    .hero--disco .hero__kicker { font-size: .7rem; }
    .hero--disco .hero__titolo { font-size: clamp(1.9rem, 9.4vw, 2.7rem); }
    .hero__titolo span { display: block; }
    .hero__kicker { font-size: .7rem; }
    .hero__cosa { font-size: .82rem; }
    .hero__cosa span { white-space: normal; }
    /* schermi bassi (iPhone SE): via la frase descrittiva, il disco un po' più piccolo, tutto resta nella prima schermata */
    @media (max-height: 720px) {
      .hero--disco .hero__cosa { display: none; }
      .hero--disco .giradischi { --D: min(60vw, 29svh); }
      .hero--disco .ruota__sotto { display: none; }
    }
    @media (max-height: 600px) {
      .hero--disco .giradischi { --D: min(54vw, 26svh); }
      .hero.hero--disco { gap: 8px; padding-top: calc(var(--header-h) + 8px); }
      .hero__prossima .hero__when { font-size: .95rem; }
    }
    .hero__prossima .hero__when { font-size: 1.05rem; white-space: normal; }
    /* telefoni molto stretti (320px) */
    @media (max-width: 359.98px) {
      .hero--disco .hero__titolo { font-size: 1.72rem; }
      .hero--disco .hero__kicker { font-size: .6rem; }
      .hero--disco .hero__biglietto .countdown { gap: 7px; }
    }
  }
}
