/* Barakkata · sistema visivo
   Colori: notte (fondo serale del campo), campo (blu del sintetico), pallina (giallo lime), carta.
   Elemento di carattere: le linee bianche del campo, che disegnano cornici e separatori. */

:root {
  --notte: #0d1b2a;
  --notte-2: #13263b;
  --campo: #1b4f8f;
  --pallina: #d7f03a;
  --carta: #f5f1e6;
  --carta-2: #ebe5d4;
  --inchiostro: #121a24;
  --inchiostro-2: #46505d;
  --linea: rgba(18, 26, 36, .18);

  /* token semantici delle fasce chiare (si invertono col tema) */
  --fondo: var(--carta);
  --fondo-2: var(--carta-2);
  --testo: var(--inchiostro);
  --testo-2: var(--inchiostro-2);
  --bordo: var(--linea);

  --raggio: 14px;
  --barra: 64px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0f1a27;
    --fondo-2: #172536;
    --testo: #f2eee3;
    --testo-2: #b9c3cf;
    --bordo: rgba(242, 238, 227, .16);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barra) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--testo);
  background: var(--fondo);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pallina); outline-offset: 3px; border-radius: 6px; }
.fascia-chiara :focus-visible { outline-color: var(--campo); }
@media (prefers-color-scheme: dark) { .fascia-chiara :focus-visible { outline-color: var(--pallina); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contenitore { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ——— Titoli ——— */
h1, h2, h3 { line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 6vw, 64px); font-weight: 900; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.occhiello {
  display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--pallina); color: var(--notte); margin-bottom: 18px;
}
.sottotitolo { font-size: clamp(18px, 2.2vw, 22px); color: var(--testo-2); max-width: 46ch; margin: 0 0 28px; }

/* ——— Barra in alto ——— */
.barra {
  position: sticky; top: 0; z-index: 20; height: var(--barra);
  background: rgba(13, 27, 42, .92); color: var(--carta);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(245, 241, 230, .12);
}
.barra .contenitore { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marchio { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; font-size: 22px; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.marchio .kk { color: var(--pallina); }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; color: var(--carta);
  transition: background-color .2s, color .2s;
}
.menu a[aria-current="true"] { background: rgba(215, 240, 58, .16); color: var(--pallina); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: rgba(245, 241, 230, .1); } }
@media (max-width: 760px) { .menu { display: none; } }

/* ——— Bottoni ——— */
.bottoni { display: flex; flex-wrap: wrap; gap: 12px; }
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s;
  cursor: pointer; font-family: inherit;
}
.bottone:active { transform: scale(.96); }
.bottone-pieno { background: var(--pallina); color: var(--notte); }
.bottone-vuoto { border-color: currentColor; color: inherit; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .bottone:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
}

/* ——— Apertura (sempre notte: colori fissati) ——— */
.apertura { position: relative; background: var(--notte); color: var(--carta); padding: 56px 0 72px; overflow: clip; }
.apertura .griglia { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .apertura .griglia { grid-template-columns: 1fr; } }
.apertura h1 { font-size: clamp(48px, 11vw, 132px); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; margin-bottom: 20px; }
.apertura h1 .kk { color: var(--pallina); }
.apertura .motto { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0 0 12px; }
.apertura .motto em { font-style: normal; color: var(--pallina); }
.apertura p { color: #c9d2dd; max-width: 40ch; font-size: 19px; margin: 0 0 28px; }
.apertura .bottone-vuoto { color: var(--carta); }

/* Il campo visto dall'alto: le linee si disegnano */
.campo-wrap { position: relative; aspect-ratio: 10 / 7; }
.campo { width: 100%; height: 100%; }
.campo .fondo { fill: var(--campo); }
.campo .linee { fill: none; stroke: #f5f1e6; stroke-width: 3; stroke-linecap: square; }
.campo .rete { stroke: #f5f1e6; stroke-width: 5; stroke-dasharray: 2 6; }
.js .campo .linee path, .js .campo .linee rect { stroke-dasharray: var(--l, 1200); stroke-dashoffset: var(--l, 1200); }
.js .campo.disegnato .linee path, .js .campo.disegnato .linee rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .js .campo .linee path, .js .campo .linee rect { stroke-dashoffset: 0; } }

/* La pallina (easter egg: si palleggia) */
.pallina {
  position: absolute; left: 62%; top: 30%; width: 56px; height: 56px; margin: -6px; padding: 6px;
  border: 0; background: transparent; cursor: pointer; border-radius: 50%;
}
.pallina span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1ff9a 0 18%, var(--pallina) 45%, #a8c41e 100%);
  box-shadow: 0 14px 18px -8px rgba(0, 0, 0, .55);
  position: relative;
}
.pallina span::before, .pallina span::after {
  content: ""; position: absolute; inset: 10% -30%; border: 2.5px solid rgba(255, 255, 255, .85); border-radius: 50%;
}
.pallina span::before { left: 55%; }
.pallina span::after { right: 55%; }
@media (prefers-reduced-motion: no-preference) {
  .pallina span { animation: rimbalzo 1.6s cubic-bezier(.3, 0, .7, 1) infinite; }
  .pallina.colpo span { animation: colpo .55s cubic-bezier(.2, .8, .3, 1); }
}
@keyframes rimbalzo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes colpo { 0% { transform: translateY(0) scale(1); } 15% { transform: translateY(4px) scale(1.12, .86); } 60% { transform: translateY(-90px) rotate(200deg); } 100% { transform: translateY(0) rotate(360deg); } }
.palleggi {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap;
  font-size: 15px; font-weight: 800; color: var(--notte); background: var(--pallina); padding: 6px 14px; border-radius: 999px;
  opacity: 0; transition: opacity .3s;
}
.palleggi.visibile { opacity: 1; }

/* ——— Nastro che scorre ——— */
.nastro { background: var(--pallina); color: var(--notte); overflow: hidden; border-block: 3px solid var(--notte); }
.nastro-traccia { display: flex; width: max-content; }
.nastro-traccia span { font-weight: 900; font-size: clamp(20px, 3vw, 30px); text-transform: uppercase; letter-spacing: .02em; padding: 14px 0; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .nastro-traccia { animation: scorri 28s linear infinite; }
  .nastro:hover .nastro-traccia { animation-play-state: paused; }
}
@keyframes scorri { to { transform: translateX(-50%); } }

/* ——— Sezioni ——— */
.sezione { padding: 88px 0; }
.fascia-chiara { background: var(--fondo); color: var(--testo); }
.fascia-chiara + .fascia-chiara { border-top: 1px solid var(--bordo); }
.fascia-alt { background: var(--fondo-2); }
.fascia-notte { background: var(--notte); color: var(--carta); }
.fascia-notte .sottotitolo { color: #c9d2dd; }

/* Separatore: la linea di fondo campo con la T del servizio */
.linea-campo { height: 28px; color: var(--bordo); }
.linea-campo svg { width: 100%; height: 100%; }

.colonne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .colonne { grid-template-columns: 1fr; } }
.carta {
  position: relative; border: 2px solid var(--bordo); border-radius: var(--raggio); padding: 26px; background: var(--fondo);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.fascia-alt .carta { background: var(--fondo); }
.carta p { margin: 0; color: var(--testo-2); }
.carta .numero { font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; }
@media (hover: hover) and (pointer: fine) { .carta:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35); } }

.destini { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.destini li { display: grid; grid-template-columns: 18px 1fr; column-gap: 14px; align-items: baseline; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; }
.destini li::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--pallina); box-shadow: inset 0 0 0 2px var(--notte); transform: translateY(2px); }
.destini li span { grid-column: 2; color: var(--testo-2); font-weight: 600; font-size: max(15px, .62em); }

/* Etichette di stato: deciso / in prova */
.stato { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 2px solid currentColor; }
.stato::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .stato-vivo::before { animation: pulsa 1.8s ease-in-out infinite; } }
@keyframes pulsa { 50% { opacity: .25; } }

/* ——— Barakkina ——— */
.barakkina-testa { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 20px; }
.cifre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 32px 0; }
@media (max-width: 700px) { .cifre { grid-template-columns: repeat(2, 1fr); } }
.cifra { border: 2px solid rgba(245, 241, 230, .2); border-radius: var(--raggio); padding: 18px; }
.cifra b { display: block; font-size: clamp(36px, 6vw, 56px); font-weight: 900; line-height: 1; color: var(--pallina); }
.cifra span { font-size: 15px; color: #c9d2dd; }
.regole { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 40px; }
.regole li { font-weight: 800; padding: 10px 16px; border-radius: 999px; background: rgba(245, 241, 230, .1); }

.programma { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .programma { grid-template-columns: 1fr; } }
.fase { border: 2px solid rgba(245, 241, 230, .2); border-radius: var(--raggio); padding: 24px; }
.fase h3 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fase h3 small { font-size: 15px; font-weight: 700; color: #c9d2dd; }
.orari { list-style: none; padding: 0; margin: 0; }
.orari li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px dashed rgba(245, 241, 230, .2); }
.orari time { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--pallina); min-width: 52px; }
.nota { font-size: 15px; color: #c9d2dd; margin: 14px 0 0; }

.tabelloni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 860px) { .tabelloni { grid-template-columns: 1fr; } }
.tabellone { border-radius: var(--raggio); padding: 22px; color: var(--notte); }
.tabellone h3 { font-size: 28px; font-weight: 900; text-transform: uppercase; margin-bottom: 6px; }
.tabellone p { margin: 0; font-weight: 600; }
.tabellone .posti { display: inline-block; margin-top: 12px; font-weight: 900; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: rgba(13, 27, 42, .12); }
.t-gold { background: #f2c94c; }
.t-silver { background: #d9dee5; }
.t-bronze { background: #e3a57a; }

/* ——— Comparse in sequenza (stato finale corretto senza JS) ——— */
@media (prefers-reduced-motion: no-preference) {
  .js .compare { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--ritardo, 0s); }
  .js .compare.visto { opacity: 1; transform: none; }
}

/* ——— Regolamento ——— */
.cantiere { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .cantiere { grid-template-columns: 1fr; } }
.elenco { list-style: none; padding: 0; margin: 0; }
.elenco li { padding: 12px 0 12px 30px; border-top: 1px solid var(--bordo); position: relative; }
.elenco li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 2px; background: currentColor; opacity: .5; }

/* ——— Classifiche: il tabellone spento ——— */
.segnapunti {
  background: #05080c; color: var(--pallina); border-radius: 20px; padding: 28px; border: 6px solid #1d2a38;
  font-variant-numeric: tabular-nums; max-width: 640px; box-shadow: inset 0 0 40px rgba(215, 240, 58, .06);
}
.segnapunti .righe { display: grid; gap: 10px; }
.segnapunti .riga { display: flex; justify-content: space-between; gap: 16px; font-weight: 900; font-size: clamp(20px, 3.4vw, 30px); letter-spacing: .06em; text-transform: uppercase; }
.segnapunti .riga span:last-child { color: #f5f1e6; }
.segnapunti .scritta { margin-top: 18px; padding-top: 16px; border-top: 2px dashed #1d2a38; color: #f5f1e6; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .segnapunti .cursore { animation: pulsa 1s steps(1) infinite; } }

/* ——— Sponsor ——— */
.maglia-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .maglia-wrap { grid-template-columns: 1fr; } }
.maglia { width: min(320px, 100%); margin-inline: auto; color: var(--testo); }
.maglia .tessuto { fill: var(--campo); }
.maglia .bordino { fill: var(--pallina); }
.maglia .logo-qui { fill: none; stroke: #f5f1e6; stroke-width: 3; stroke-dasharray: 8 7; }
.maglia text { fill: #f5f1e6; font: 900 22px var(--font); text-transform: uppercase; }
.maglia text.piccolo { font-size: 14px; letter-spacing: .04em; }

/* ——— Inno ——— */
.inno { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; border: 2px solid var(--bordo); border-radius: var(--raggio); padding: 22px; background: var(--fondo); }
.inno h3 { margin: 0; }
.inno p { margin: 4px 0 0; color: var(--testo-2); font-size: 15px; }
.inno audio { width: min(420px, 100%); height: 48px; }

/* ——— Piede ——— */
.piede { background: var(--notte); color: #c9d2dd; padding: 48px 0 110px; font-size: 15px; }
.piede .marchio { color: var(--carta); font-size: 30px; }
.piede p { margin: 8px 0 0; max-width: 60ch; }
.piede .firma { color: var(--pallina); font-weight: 800; }

/* ——— Indice sotto il pollice ——— */
.indice { position: fixed; right: 16px; bottom: 16px; z-index: 30; }
.indice-bottone {
  min-height: 52px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--notte); background: var(--pallina); color: var(--notte);
  font: 800 16px var(--font); cursor: pointer; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); transition: transform .15s;
}
.indice-bottone:active { transform: scale(.95); }
.indice-voci {
  position: absolute; right: 0; bottom: 64px; min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: var(--notte); border: 2px solid rgba(245, 241, 230, .2); border-radius: 18px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
}
.indice-voci[hidden] { display: none; }
.indice-voci a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--carta); text-decoration: none; font-weight: 700; }
.indice-voci a[aria-current="true"] { background: rgba(215, 240, 58, .16); color: var(--pallina); }
@media (hover: hover) and (pointer: fine) { .indice-voci a:hover { background: rgba(245, 241, 230, .1); } }

/* ——— Pagina speciale: la laurea di Manuel ——— */
.pagina-manuel .apertura h1 { font-size: clamp(46px, 9vw, 112px); }
.brindisi { min-height: 1.6em; margin: 16px 0 0 !important; font-weight: 800; color: var(--pallina) !important; opacity: 0; transition: opacity .3s; }
.brindisi.visibile { opacity: 1; }
.cartolina { position: relative; margin: 0; background: var(--carta); padding: 12px 12px 0; border-radius: 6px; transform: rotate(2deg); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7); }
.cartolina img { width: 100%; height: auto; border-radius: 3px; }
.cartolina figcaption { color: var(--inchiostro); font-weight: 800; font-size: 16px; padding: 12px 4px 14px; }
.cartolina .timbro {
  position: absolute; top: -22px; right: -14px; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1ff9a 0 18%, var(--pallina) 45%, #a8c41e 100%); color: var(--notte);
  font-weight: 900; font-size: 22px; transform: rotate(-14deg); box-shadow: 0 12px 18px -8px rgba(0, 0, 0, .55);
}
@media (max-width: 860px) { .cartolina { transform: rotate(1deg); margin-right: 10px; } }
.pagina-manuel .cartolina { max-width: 440px; justify-self: center; width: 100%; }
.pagina-manuel .barra .marchio { text-transform: none; }
.in-diretta { color: #ff5a4f; text-decoration: none; min-height: 44px; }

/* Avanzamento della giornata */
.avanzamento { margin: 0 0 28px; max-width: 420px; }
.avanzamento-barra { height: 12px; border-radius: 999px; background: rgba(245, 241, 230, .15); overflow: hidden; }
.avanzamento-barra span { display: block; height: 100%; border-radius: inherit; background: var(--pallina); }
.avanzamento ol { display: flex; justify-content: space-between; list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; font-weight: 800; }
.avanzamento .fatto { color: var(--pallina); }
.avanzamento .atteso { color: #c9d2dd; }

/* La cronaca minuto per minuto */
.aggiornato { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 36px; font-weight: 700; color: var(--testo-2); }
.aggiornato .stato { color: #d93a30; }
@media (prefers-color-scheme: dark) { .aggiornato .stato { color: #ff6a5f; } }
.cronaca { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px dashed var(--bordo); display: grid; gap: 48px; }
.tappa { position: relative; }
.tappa::before {
  content: ""; position: absolute; left: -41px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1ff9a 0 18%, var(--pallina) 45%, #a8c41e 100%); box-shadow: 0 0 0 4px var(--fondo);
}
.tappa .ora { display: inline-block; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--notte); color: var(--pallina); margin-bottom: 10px; }
.tappa h3 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.tappa > p { max-width: 60ch; color: var(--testo-2); font-size: 18px; margin: 0 0 18px; }
.mosaico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .mosaico { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.mosaico figure { margin: 0; border: 2px solid var(--bordo); border-radius: var(--raggio); overflow: hidden; background: var(--fondo); }
.mosaico .larga { grid-column: span 2; }
.mosaico img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.mosaico .larga img { aspect-ratio: 4 / 3; }
.mosaico video { display: block; width: 100%; height: auto; background: #000; }
.mosaico figcaption { padding: 12px 14px 16px; color: var(--testo-2); font-size: 16px; }
.mosaico figcaption b { color: var(--testo); }
@media (max-width: 560px) { .mosaico .larga, .mosaico .verticale { grid-column: 1 / -1; } .mosaico .verticale { max-width: 380px; width: 100%; justify-self: center; } }
.tappa.in-arrivo::before { background: transparent; border: 3px dashed var(--pallina); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .tappa.in-arrivo::before { animation: gira 6s linear infinite; } }
@keyframes gira { to { transform: rotate(360deg); } }
.tappa.in-arrivo > p { padding: 22px 24px; border: 3px dashed var(--bordo); border-radius: var(--raggio); background: var(--fondo-2); color: var(--testo); max-width: 52ch; }

.scheda { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0 0 40px; }
@media (max-width: 700px) { .scheda { grid-template-columns: 1fr; } }
.scheda div { padding: 14px 0; border-top: 1px solid var(--bordo); }
.scheda dt { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--testo-2); }
.scheda dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; }

.titolo-tesi { margin: 0 0 20px; padding: 18px 22px; border-left: 6px solid var(--pallina); background: rgba(245, 241, 230, .06); border-radius: 0 var(--raggio) var(--raggio) 0; font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; font-style: italic; max-width: 40ch; }
.felicitometro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; border: 2px solid rgba(245, 241, 230, .2); border-radius: var(--raggio); padding: 24px; }
@media (max-width: 860px) { .felicitometro { grid-template-columns: 1fr; } }
.felicitometro .assi path { fill: none; stroke: rgba(245, 241, 230, .5); stroke-width: 2; }
/* 28 nel disegno = almeno 14 px veri anche quando il grafico si stringe a metà sul telefono */
.felicitometro .etichetta { fill: #c9d2dd; font: 700 28px var(--font); }
.felicitometro .curva { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.felicitometro .curva-base { stroke: var(--carta); }
.felicitometro .curva-festa { stroke: var(--pallina); opacity: 0; transition: opacity .5s; }
.felicitometro .etichetta-festa { fill: var(--pallina); opacity: 0; transition: opacity .5s; }
.felicitometro.con-festa .curva-festa, .felicitometro.con-festa .etichetta-festa { opacity: 1; }
.felicitometro.con-festa .curva-base { opacity: .35; }
.felicitometro .punto { fill: var(--pallina); stroke: var(--notte); stroke-width: 3; transition: cx .15s, cy .4s cubic-bezier(.2, .8, .3, 1); }
.comandi label { display: block; font-weight: 800; margin-bottom: 6px; }
.comandi input[type="range"] { width: 100%; height: 44px; accent-color: var(--pallina); margin: 0 0 8px; }
.comandi .lettura { min-height: 4.8em; margin: 0 0 16px; font-weight: 700; color: var(--carta); }
.comandi .bottone { width: 100%; }

.galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .galleria { grid-template-columns: 1fr; } }
.galleria figure { margin: 0; border: 2px solid var(--bordo); border-radius: var(--raggio); overflow: hidden; background: var(--fondo); }
.galleria img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.galleria figcaption { padding: 14px 16px 18px; color: var(--testo-2); font-size: 16px; }
.galleria figcaption b { color: var(--testo); }

.video-coppia { display: grid; grid-template-columns: 3.16fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .video-coppia { grid-template-columns: 1fr; } }
.video-coppia figure { margin: 0; border: 2px solid var(--bordo); border-radius: var(--raggio); overflow: hidden; background: var(--fondo); }
.video-coppia video { display: block; width: 100%; height: auto; background: #000; }
@media (max-width: 860px) { .video-coppia .verticale { max-width: 360px; width: 100%; justify-self: center; } }
.video-coppia figcaption { padding: 14px 16px 18px; color: var(--testo-2); font-size: 16px; }
.video-coppia figcaption b { color: var(--testo); }

.articoli { counter-reset: art; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.articoli li { counter-increment: art; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: baseline; padding: 16px 18px; border: 2px solid rgba(245, 241, 230, .2); border-radius: var(--raggio); font-size: 18px; }
.articoli li::before { content: "Art. " counter(art); font-weight: 900; color: var(--pallina); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.articoli strong { color: var(--pallina); }
.firma-direttivo { margin: 28px 0 0; font-weight: 800; color: var(--pallina); font-size: 20px; }

.auguri { text-align: center; }
.auguri .sottotitolo { margin-inline: auto; }
.auguri .bottoni { justify-content: center; }

.coriandolo {
  position: fixed; top: -40px; z-index: 50; width: var(--dim); height: var(--dim); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #f1ff9a 0 18%, var(--pallina) 45%, #a8c41e 100%);
  animation: cade 2.6s cubic-bezier(.4, .1, .7, 1) var(--ritardo) forwards;
}
@keyframes cade { to { transform: translate(var(--deriva), 110vh) rotate(540deg); } }

/* ——— 404 ——— */
.fuori { min-height: calc(100vh - var(--barra)); display: grid; place-items: center; padding: 48px 0; background: var(--notte); color: var(--carta); text-align: center; }
.fuori h1 { font-size: clamp(56px, 13vw, 140px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .9; }
.fuori p { color: #c9d2dd; font-size: 20px; max-width: 34ch; margin: 0 auto 28px; }
.fuori .bottoni { justify-content: center; }
.fuori .suggerimento { margin: 0 auto 24px; font-weight: 700; color: var(--carta); }
.fuori .suggerimento a { color: var(--pallina); }
.fuori .bottone-vuoto { color: var(--carta); }
.fuori svg { width: min(360px, 80%); margin: 0 auto 28px; }
