/* Layout: pagina bianca e luminosa, con i momenti "da stadio" in notte: testata, hero col video,
   la fascia dei filmati e il piè di pagina. I nomi dei colori restano quelli della notte
   (--notte = fondo, --argento = testo) così ogni componente cambia tema da solo:
   dentro .scuro tornano i valori notturni. */
:root {
  /* Colore: giorno */
  --notte: #ffffff;        /* fondo pagina */
  --notte-2: #f3f5fb;      /* pannelli */
  --notte-3: #e8ecf7;      /* pannelli in rilievo, hover */
  --filo: #e1e5f0;         /* bordi */
  --argento: #0a1033;      /* testo principale, inchiostro */
  --argento-2: #4a5378;    /* testo secondario (7.6:1 su bianco) */
  --argento-3: #646d91;    /* testo terziario (5.2:1 su bianco) */
  --rosso: #e8203f;        /* azioni, risultato in evidenza */
  --oro: #9a6c0a;          /* trofeo, campione in carica */
  --ombra: 0 1px 2px rgba(10, 16, 51, 0.06), 0 8px 24px -12px rgba(10, 16, 51, 0.18);
  /* I cinque colori S·E·L·I·S, più pieni sul bianco */
  --s1: #d65ac8; --s2: #e9700c; --s3: #ef2e46; --s4: #1597cc; --s5: #2f6ef0;
  --spettro: linear-gradient(90deg, var(--s1) 0 20%, var(--s2) 20% 40%, var(--s3) 40% 60%, var(--s4) 60% 80%, var(--s5) 80% 100%);

  /* Tipografia */
  --display: "Anybody", "Arial Black", system-ui, sans-serif;  /* largo, da grafica TV */
  --testo: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Scala e forme */
  --t-xs: 0.8125rem; --t-s: 0.9375rem; --t-m: 1.0625rem; --t-l: 1.375rem;
  --t-xl: clamp(1.75rem, 3vw, 2.5rem); --t-xxl: clamp(2.5rem, 6.2vw, 5.25rem);
  --r-s: 6px; --r-m: 12px; --r-l: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --colonna: 1180px;
  color-scheme: light;
}
/* Notte da stadio: testata, hero, filmati, intro, piè di pagina */
.scuro {
  --notte: #060a22; --notte-2: #0c1338; --notte-3: #16205a; --filo: #26306a;
  --argento: #e6ebf7; --argento-2: #a3aed0; --argento-3: #7c87ae;
  --rosso: #ff3352; --oro: #f3d38a; --ombra: none;
  --s1: #ef9de5; --s2: #f58426; --s3: #ff4a5c; --s4: #49c1f0; --s5: #4d8dff;
  color-scheme: dark;
  background-color: var(--notte); color: var(--argento);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--notte);
  color: var(--argento);
  font-family: var(--testo);
  font-size: var(--t-m);
  line-height: 1.6;
  min-height: 100dvh;
}
body::before { /* banda sopra la testata sticky (notch) */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: #060a22;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button, a, [role="button"] { touch-action: manipulation; }
input, select { font-size: 16px; font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--rosso); color: #fff; }
:focus-visible { outline: 2px solid var(--s4); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

.sito { position: relative; z-index: 1; }

.wrap {
  max-width: calc(var(--colonna) + 2 * 16px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Testata ---------- */
.testata {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--notte) 92%, transparent);
  border-bottom: 1px solid var(--filo);
}
.testata::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--spettro); opacity: 0.9; }
.testata .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.marchio { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.marchio img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; }
.marchio span { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1rem; line-height: 1.05; }
.marchio small { display: block; font-family: var(--testo); font-stretch: 100%; font-weight: 500; font-size: var(--t-xs); color: var(--argento-2); }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  position: relative; padding: 10px 12px; border-radius: var(--r-s);
  font-weight: 600; font-size: var(--t-s); color: var(--argento-2);
  transition: color 150ms ease, background-color 150ms ease;
}
.menu a[aria-current="page"] { color: var(--argento); }
.menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--rosso);
}
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--filo); }
.burger svg { margin: auto; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: var(--t-s);
  transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primario { background: var(--argento); color: var(--notte); }
.btn-secondario { border: 1px solid color-mix(in srgb, var(--argento) 35%, transparent); color: var(--argento); }
.link-sezione { font-weight: 700; font-size: var(--t-s); color: var(--argento-2); display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Intro (una volta per sessione) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--notte);
  display: grid; place-items: center;
  transition: opacity 700ms var(--ease-out), visibility 0s linear 700ms;
}
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro.via { opacity: 0; visibility: hidden; transition: opacity 800ms var(--ease-out), visibility 0s linear 800ms; }
.intro.via canvas, .intro.via .intro-titolo { transform: scale(1.12); filter: blur(6px); transition: transform 800ms var(--ease-out), filter 800ms ease; }
/* La scritta vera, che prende il posto della polvere d'oro */
.intro-titolo {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.6vw, 22px); text-align: center; pointer-events: none; padding: 0 16px;
  font-family: var(--display); text-transform: uppercase; line-height: 1; opacity: 0;
}
.it-1 { font-weight: 700; font-stretch: 150%; font-size: clamp(13px, 1.9vw, 24px); letter-spacing: 0.32em; margin-right: -0.32em; color: #e6ebf7; }
.it-2 {
  font-weight: 900; font-stretch: 150%; font-size: clamp(34px, 8.6vw, 140px); letter-spacing: -0.01em; line-height: 0.92; white-space: nowrap;
  background: linear-gradient(100deg, #a8771f 0%, #f3d38a 22%, #fff6d8 38%, #f3d38a 52%, #c99a3e 72%, #f7e1a8 88%, #a8771f 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(243, 211, 138, 0.25));
}
.it-3 { display: flex; align-items: center; gap: 0.9em; font-weight: 800; font-stretch: 140%; font-size: clamp(14px, 2.2vw, 28px); letter-spacing: 0.24em; margin-right: -0.24em; color: #f3d38a; }
.it-3::before, .it-3::after { content: ""; width: clamp(24px, 6vw, 72px); height: 1px; background: linear-gradient(90deg, transparent, #f3d38a); }
.it-3::after { transform: scaleX(-1); }
.intro-titolo.mostra { opacity: 1; transition: opacity 500ms ease; }
.intro-titolo.mostra > span { animation: it-entra 900ms var(--ease-out) both; }
.intro-titolo.mostra .it-2 { animation: it-entra 900ms var(--ease-out) both, it-luce 1300ms var(--ease-in-out) 350ms both; }
.intro-titolo.mostra .it-3 { animation-delay: 120ms; }
@keyframes it-entra { from { opacity: 0; filter: blur(10px); letter-spacing: 0.5em; } }
@keyframes it-luce { from { background-position: 100% 0; } to { background-position: 0 0; } }
.intro-salta {
  position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--filo); color: var(--argento-2); font-size: var(--t-s);
}
.intro-sotto {
  position: absolute; left: 0; right: 0; bottom: 18%; text-align: center;
  font-family: var(--display); font-stretch: 140%; font-weight: 600; font-size: var(--t-s);
  color: var(--argento-2); opacity: 0; transition: opacity 600ms ease 900ms;
}
.intro.attiva .intro-sotto { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--spettro); z-index: 3; }
.hero-cielo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
/* Video di sfondo: riempie l'hero come una foto (container query), appare solo quando gira */
.hero-video { position: absolute; inset: 0; overflow: hidden; container-type: size; opacity: 0; transition: opacity 1200ms ease; pointer-events: none; }
.hero-video.pronto { opacity: 1; }
.hero:has(.hero-video.pronto) .hero-cielo { opacity: 0.45; }
.hero:has(.hero-video.pronto) .fari { opacity: 0.5; }
.hero-video iframe, .hero-video video {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.18); /* nasconde i bordi del player */
  object-fit: cover;
}
.hero-velo {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--notte) 62%, transparent) 0, color-mix(in srgb, var(--notte) 18%, transparent) 50%, transparent 75%),
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--notte) 85%, transparent) 100%);
}
.hero-foto {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  opacity: 0.38; filter: saturate(0.7);
}
.hero-foto::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 50% 0%, transparent 0, var(--notte) 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--notte) 30%, transparent), var(--notte));
}
.fari { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; mix-blend-mode: screen; z-index: 1; }
.fari::before, .fari::after {
  content: ""; position: absolute; top: 0; width: 34%; height: 100%;
  background: linear-gradient(180deg, rgba(190, 215, 255, 0.22), transparent 70%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
}
.fari::before { left: 4%; transform: rotate(-24deg); animation: faro-s 11s ease-in-out infinite alternate; }
.fari::after { right: 4%; transform: rotate(24deg); animation: faro-d 13s ease-in-out infinite alternate; }
@keyframes faro-s { to { transform: rotate(-8deg); } }
@keyframes faro-d { to { transform: rotate(10deg); } }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 10vw, 128px) 56px; display: grid; gap: 28px; }
.hero-edizione { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--argento-2); font-weight: 600; }
.hero-edizione .chip { color: var(--argento); }
.hero h1 {
  font-size: var(--t-xxl); font-stretch: 135%; font-weight: 900; letter-spacing: -0.02em;
  max-width: 13ch; line-height: 0.95;
}
.hero h1 .riga { display: block; perspective: 600px; }
.hero h1 .parola { display: inline-block; white-space: nowrap; }
.hero h1 .l { display: inline-block; transform-origin: 50% 100%; }
.hero h1 .oro .l { color: #f3d38a; }
.hero h1 { text-shadow: 0 2px 30px rgba(6, 10, 34, 0.45); }
.hero.fatto h1 .oro {
  background: linear-gradient(100deg, #c99a3e 0%, #f3d38a 30%, #fff6d8 45%, #f3d38a 60%, #c99a3e 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  animation: riflesso 7s var(--ease-in-out) infinite;
}
.hero.fatto h1 .oro .l { color: transparent; text-shadow: none; }
@keyframes riflesso { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }
.hero-sotto { font-size: var(--t-l); color: color-mix(in srgb, var(--argento) 90%, transparent); max-width: 46ch; text-shadow: 0 1px 16px rgba(6, 10, 34, 0.7); }
.hero-edizione { text-shadow: 0 1px 12px rgba(6, 10, 34, 0.7); }
.hero-azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.campione {
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
  padding: 12px 18px 12px 12px; border-radius: 999px; width: fit-content;
  background: color-mix(in srgb, var(--oro) 9%, transparent); border: 1px solid color-mix(in srgb, var(--oro) 35%, transparent);
}
.campione img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.campione span { font-size: var(--t-s); color: var(--argento-2); }
.campione strong { display: block; color: var(--oro); font-family: var(--display); font-stretch: 120%; font-size: 1rem; }

/* Conto alla rovescia: placche come il punteggio delle partite */
.conto { display: flex; gap: 10px; flex-wrap: wrap; }
.conto > div {
  display: grid; justify-items: center; min-width: 84px; padding: 12px 10px 10px;
  border-radius: var(--r-m); background: color-mix(in srgb, var(--notte-2) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--argento) 18%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden;
}
.conto b { display: block; }
.conto b.scatta { animation: scatta 450ms var(--ease-out); }
@keyframes scatta { from { transform: translateY(-40%); opacity: 0.15; filter: blur(3px); } }
.conto b { font-size: clamp(2rem, 4.5vw, 3rem); font-stretch: 115%; font-weight: 900; line-height: 1; color: var(--argento); }
.conto span { font-size: var(--t-xs); color: var(--argento-2); margin-top: 6px; }
.conto > div:first-child b { color: var(--oro); }
.conto-via { font-weight: 700; color: var(--oro); }

/* Entrata dell'hero dopo l'intro: un solo movimento, da stato già visibile */
.hero.entra:not(.fatto) h1 .l { animation: lettera 760ms var(--ease-out) both; animation-delay: calc(var(--i) * 34ms + 80ms); }
@keyframes lettera { from { opacity: 0.001; transform: translateY(0.45em) rotateX(-70deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero.entra .hero-edizione, .hero.entra .hero-sotto, .hero.entra .conto > div, .hero.entra .hero-azioni, .hero.entra .campione { animation: sale 800ms var(--ease-out) both; }
.hero.entra .hero-edizione { animation-delay: 0ms; }
.hero.entra .hero-sotto { animation-delay: 650ms; }
.hero.entra .conto > div:nth-child(1) { animation-delay: 760ms; }
.hero.entra .conto > div:nth-child(2) { animation-delay: 820ms; }
.hero.entra .conto > div:nth-child(3) { animation-delay: 880ms; }
.hero.entra .conto > div:nth-child(4) { animation-delay: 940ms; }
.hero.entra .hero-azioni { animation-delay: 1000ms; }
.hero.entra .campione { animation-delay: 1080ms; }
@keyframes sale { from { transform: translateY(16px); opacity: 0.001; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }

/* ---------- Striscia risultati (ticker) ---------- */
.ticker { border-bottom: 1px solid var(--filo); background: var(--notte-2); overflow: hidden; position: relative; }
.ticker-giorno {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center;
  padding: 0 18px 0 max(16px, env(safe-area-inset-left, 0px));
  background: var(--rosso); color: #fff; font-weight: 800; font-size: var(--t-xs);
}
.ticker-pista { display: flex; width: max-content; animation: scorre 80s linear infinite; padding-left: 150px; }
.ticker:hover .ticker-pista { animation-play-state: paused; }
@keyframes scorre { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-right: 1px solid var(--filo); white-space: nowrap; font-size: var(--t-s); }
.tk img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.tk .num { font-weight: 800; font-size: 1rem; color: var(--argento); }
.tk .perde { color: var(--argento-3); }

/* ---------- Sezioni ---------- */
.sezione { padding-block: clamp(56px, 8vw, 104px); }
.sezione + .sezione { border-top: 1px solid var(--filo); }
.sez-testa { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.sez-testa h2 { font-size: var(--t-xl); font-stretch: 130%; font-weight: 800; }
.sez-testa p { color: var(--argento-2); max-width: 52ch; margin-top: 10px; }

/* Pagina interna */
.pagina-testa { padding-block: clamp(40px, 7vw, 80px) 32px; border-bottom: 1px solid var(--filo); position: relative; }
.pagina-testa h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-stretch: 135%; font-weight: 900; }
.pagina-testa p { color: var(--argento-2); margin-top: 14px; max-width: 60ch; font-size: var(--t-l); }

/* ---------- Gironi: colore ---------- */
[data-g] { --g: var(--s3); }
[data-gi="0"] { --g: var(--s1); } [data-gi="1"] { --g: var(--s2); } [data-gi="2"] { --g: var(--s3); }
[data-gi="3"] { --g: var(--s4); } [data-gi="4"] { --g: var(--s5); }
.g-chip {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--t-xs); color: var(--argento);
}
.g-chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--g); }

/* ---------- Partita (score bug) ---------- */
.partite { display: grid; gap: 10px; }
.partita {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--r-m);
  background: #fff; border: 1px solid var(--filo); box-shadow: var(--ombra);
  position: relative; overflow: hidden;
}
.partita::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--g); }
.sq { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; }
.sq.casa { justify-content: flex-end; text-align: right; }
.sq img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex-shrink: 0; }
.sq span { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.sq.perde span { color: var(--argento-2); }
.punteggio {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-width: 96px;
  border-radius: var(--r-s); overflow: hidden;
  background: linear-gradient(180deg, #1a2459, #060a22); color: #fff;
  font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: 1.375rem; font-variant-numeric: tabular-nums;
}
.punteggio b { padding: 6px 12px; text-align: center; }
.punteggio i { width: 1px; align-self: stretch; background: rgba(255, 255, 255, 0.2); }
.scuro .punteggio { background: linear-gradient(180deg, #f4f6fd, #c9d1e8); color: #060a22; }
.scuro .punteggio i { background: rgba(6, 10, 34, 0.18); }
.punteggio.attesa { background: var(--notte-3); color: var(--argento-2); font-size: var(--t-s); font-stretch: 100%; padding: 8px 14px; display: block; text-align: center; }
.partita-meta {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  font-size: var(--t-xs); color: var(--argento-3); padding-top: 10px; border-top: 1px solid var(--filo);
}
.partita-meta .g-chip { color: var(--argento-2); }

/* Partita in corso: placca rossa e punto che pulsa */
.punteggio.live { background: var(--rosso); color: #fff; }
.punteggio.live i { background: rgba(255, 255, 255, 0.35); }
.in-diretta { display: inline-flex; align-items: center; gap: 6px; color: var(--rosso); font-weight: 800; }
.in-diretta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: 0.25; transform: scale(0.7); } }
.partita.e-live { border-color: color-mix(in srgb, var(--rosso) 60%, var(--filo)); }
.tk.e-live .num { color: var(--rosso); }
.tab-gara.e-live { border-color: var(--rosso); }
.tab-riga small { font-family: var(--testo); font-weight: 600; color: var(--argento-3); }

/* Filtri */
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filtro {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--filo);
  font-weight: 600; font-size: var(--t-s); color: var(--argento-2);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-out);
}
.filtro:active { transform: scale(0.97); }
.filtro[aria-pressed="true"] { background: var(--argento); color: var(--notte); border-color: var(--argento); }
.giorno-titolo { font-family: var(--display); font-stretch: 125%; font-size: var(--t-l); margin: 32px 0 14px; }
.giorno-titolo:first-child { margin-top: 0; }

/* ---------- Classifiche ---------- */
.gironi-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.girone { background: #fff; box-shadow: var(--ombra); border: 1px solid var(--filo); border-radius: var(--r-m); overflow: hidden; }
.girone-testa { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-top: 3px solid var(--g); }
.girone-testa h3 { font-size: 1.25rem; font-stretch: 125%; }
.girone-testa span { color: var(--argento-3); font-size: var(--t-xs); }
.classifica { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.classifica th { font-weight: 600; font-size: var(--t-xs); color: var(--argento-3); text-align: center; padding: 6px 4px; }
.classifica th:first-child { text-align: left; padding-left: 16px; }
.classifica td { padding: 8px 4px; text-align: center; border-top: 1px solid var(--filo); font-variant-numeric: tabular-nums; color: var(--argento-2); }
.classifica td:first-child { text-align: left; padding-left: 16px; color: var(--argento); }
.classifica td.pt { font-family: var(--display); font-weight: 800; color: var(--argento); font-size: 1rem; }
.cl-sq { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cl-sq img { width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; flex-shrink: 0; }
.cl-pos { width: 16px; color: var(--argento-3); font-variant-numeric: tabular-nums; }
tr.qualif .cl-pos { color: var(--g); font-weight: 800; }
.legenda { display: flex; gap: 8px; align-items: center; color: var(--argento-3); font-size: var(--t-xs); margin-top: 16px; }

/* ---------- Tabellone ---------- */
.tab-scorri { overflow-x: auto; padding-bottom: 12px; overscroll-behavior-x: contain; }
.tabellone {
  position: relative; display: grid; gap: 0 20px; min-width: 1100px;
  grid-template-columns: repeat(3, 1fr) 1.15fr repeat(3, 1fr);
}
.tab-col { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; padding-block: 8px; position: relative; z-index: 1; }
.tab-col h3 { font-family: var(--testo); font-weight: 700; font-size: var(--t-xs); color: var(--argento-3); text-align: center; margin-bottom: auto; }
.tab-col h3 + .tab-gara { margin-top: 0; }
.tab-gara { background: #fff; box-shadow: var(--ombra); border: 1px solid var(--filo); border-radius: var(--r-s); overflow: hidden; }
.tab-riga { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; font-size: var(--t-xs); font-weight: 600; }
.tab-riga + .tab-riga { border-top: 1px solid var(--filo); }
.tab-riga img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.tab-riga .vuoto { width: 22px; height: 22px; border-radius: 50%; border: 1px dashed var(--argento-3); }
.tab-riga.tbd { color: var(--argento-3); font-weight: 500; }
.tab-riga b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.tab-info { font-size: 0.7rem; color: var(--argento-3); padding: 5px 10px; background: color-mix(in srgb, var(--notte) 50%, transparent); }
.tab-finale { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; position: relative; z-index: 1; }
.trofeo { width: 120px; height: auto; filter: drop-shadow(0 10px 30px rgba(243, 211, 138, 0.25)); }
.tab-finale h3 { font-size: 2rem; font-stretch: 140%; color: var(--oro); }
.tab-finale .tab-gara { width: 100%; border-color: color-mix(in srgb, var(--oro) 45%, transparent); }
.tab-fili { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.tab-fili path { fill: none; stroke: var(--filo); stroke-width: 1.5; }
.tab-fili.disegna path { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: filo 900ms var(--ease-in-out) forwards; }
@keyframes filo { to { stroke-dashoffset: 0; } }

/* ---------- News ---------- */
.news-griglia { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.news-lista { display: grid; gap: 16px; align-content: start; }
.notizia { display: grid; gap: 14px; }
.notizia-foto { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-m); background: var(--notte-2); max-width: 100%; }
.notizia-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.notizia time { font-size: var(--t-xs); color: var(--argento-3); font-weight: 600; }
.notizia h3 { font-size: 1.25rem; font-stretch: 105%; font-weight: 750; line-height: 1.15; }
.notizia p { color: var(--argento-2); font-size: var(--t-s); }
.notizia.grande h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-stretch: 115%; }
.notizia.riga { grid-template-columns: 132px 1fr; align-items: center; gap: 16px; }
.notizia.riga .notizia-foto { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.notizia.riga h3 { font-size: 1rem; }
.news-tutte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 20px; }

.articolo { max-width: 72ch; }
.articolo .notizia-foto { aspect-ratio: auto; max-height: 520px; margin-bottom: 28px; }
.articolo .notizia-foto img { object-fit: contain; max-height: 520px; }
.articolo p { font-size: 1.125rem; line-height: 1.75; color: var(--argento); }
.avviso { margin-top: 24px; padding: 14px 16px; border-radius: var(--r-s); border: 1px dashed var(--filo); color: var(--argento-2); font-size: var(--t-s); }

/* ---------- Valori S·E·L·I·S ---------- */
.valori { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--filo); border-radius: var(--r-l); overflow: hidden; }
.valore { padding: 28px 22px 30px; display: grid; gap: 10px; align-content: start; }
.valore + .valore { border-left: 1px solid var(--filo); }
.valore .lettera { font-family: var(--display); font-stretch: 150%; font-weight: 900; font-size: 4.5rem; line-height: 0.9; color: var(--v); }
.valore h3 { font-size: 1.125rem; font-stretch: 115%; }
.valore h3 small { display: block; font-family: var(--testo); font-weight: 500; font-size: var(--t-xs); color: var(--argento-3); margin-top: 4px; }
.valore p { color: var(--argento-2); font-size: var(--t-s); }

/* ---------- Storia ---------- */
.storia { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 0; overflow-x: auto; padding-bottom: 8px; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.anno { padding: 0 24px 0 0; scroll-snap-align: start; position: relative; }
.anno::before { content: ""; display: block; height: 2px; background: var(--filo); margin: 0 -24px 20px 0; }
.anno::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--argento); }
.anno:last-child::after { background: var(--oro); box-shadow: 0 0 0 4px color-mix(in srgb, var(--oro) 25%, transparent); }
.anno .num { font-size: 2.25rem; font-weight: 900; font-stretch: 120%; }
.anno h3 { font-size: 1rem; font-stretch: 110%; margin: 6px 0 8px; }
.anno p { color: var(--argento-2); font-size: var(--t-s); }

/* ---------- Campi ---------- */
.campi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.campo { position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 5; background: var(--notte-2); max-width: 100%; }
.campo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.campo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 34, 0.92)); }
.campo div { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.campo div { color: #fff; }
.campo strong { display: block; font-family: var(--display); font-stretch: 110%; font-size: 1.0625rem; line-height: 1.15; }
.campo span { color: rgba(255, 255, 255, 0.78); font-size: var(--t-xs); }

/* ---------- Iniziative ---------- */
.iniziative { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.iniziativa { display: grid; gap: 14px; align-content: start; }
.iniziativa .notizia-foto { aspect-ratio: 3 / 2; }
.iniziativa h3 { font-size: 1.25rem; font-stretch: 115%; }
.iniziativa p { color: var(--argento-2); font-size: var(--t-s); }

/* ---------- Squadre ---------- */
.squadre { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.squadra {
  display: grid; justify-items: center; gap: 12px; text-align: center; padding: 22px 14px 18px;
  border-radius: var(--r-m); background: #fff; border: 1px solid var(--filo); box-shadow: var(--ombra);
  transition: border-color 150ms ease, background-color 150ms ease, transform 140ms var(--ease-out);
}
.squadra:active { transform: scale(0.98); }
.squadra img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; }
.squadra strong { font-size: var(--t-s); line-height: 1.25; }
.squadra span { font-size: var(--t-xs); color: var(--argento-3); }
.scheda { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.scheda img { width: 132px; height: 132px; object-fit: contain; background: #fff; border-radius: 50%; padding: 12px; }

/* Testata con la foto di squadra o del campo */
.squadra-testa { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(280px, 48vw, 520px); display: flex; align-items: flex-end; }
.squadra-testa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--spettro); }
.squadra-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -1; }
.squadra-testa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 10, 34, 0.15) 30%, rgba(6, 10, 34, 0.92)); }
.squadra-testa .wrap { width: 100%; padding-block: 40px 36px; }
.squadra-testa h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-stretch: 130%; font-weight: 900; }
.squadra-testa p { color: var(--argento-2); margin-top: 10px; font-size: var(--t-l); }
.squadra-testa .scheda img { width: 108px; height: 108px; }
.campo-testa:not(:has(img)) { min-height: 0; }
.campo-testa:not(:has(img)) .wrap { padding-top: clamp(40px, 7vw, 80px); }
.sopratitolo { font-family: var(--display); font-stretch: 140%; font-weight: 700; font-size: var(--t-s) !important; color: var(--s4) !important; margin: 0 0 8px !important; }

/* Il club: presentazione, dati e maglia */
.bandiera { display: inline-block; width: 1.4em; height: auto; max-height: 1em; object-fit: cover; border-radius: 2px; margin-right: 0.45em; vertical-align: -0.1em; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.club { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.club.senza-maglia { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
.club-testo { display: grid; gap: 22px; }
.club-testo h2 { font-size: var(--t-xl); font-stretch: 130%; }
.club-descr { display: grid; gap: 14px; color: var(--argento-2); font-size: 1.0625rem; line-height: 1.7; }
.club-descr p:first-child { color: var(--argento); font-size: 1.1875rem; }
.club-fatti { display: flex; flex-wrap: wrap; gap: 1px; margin: 0; background: var(--filo); border: 1px solid var(--filo); border-radius: var(--r-m); overflow: hidden; }
.club-fatti div { background: #fff; padding: 14px 16px; flex: 1 1 150px; }
.scheda img.bandiera, .club-fatti img.bandiera { width: 1.4em; height: auto; padding: 0; background: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.club-fatti dt { font-size: var(--t-xs); color: var(--argento-3); font-weight: 600; }
.club-fatti dd { margin: 4px 0 0; font-weight: 700; }
.maglia-box { margin: 0; position: sticky; top: 100px; display: grid; gap: 12px; justify-items: center; padding: clamp(24px, 4vw, 44px) 24px 20px; border-radius: var(--r-l);
  background: radial-gradient(80% 70% at 50% 35%, #fff 0, var(--notte-2) 70%); border: 1px solid var(--filo); box-shadow: var(--ombra); overflow: hidden; }
.maglia-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--g, var(--spettro)); }
.maglia-box img { width: min(100%, 340px); height: auto; transition: transform 500ms var(--ease-out); filter: drop-shadow(0 18px 24px rgba(10, 16, 51, 0.22)); }
.maglia-box figcaption { font-size: var(--t-xs); font-weight: 700; color: var(--argento-3); letter-spacing: 0.06em; text-transform: uppercase; }
.rosa-file { color: var(--argento); border-color: var(--filo); }

/* Rosa */
.reparto + .reparto { margin-top: 28px; }
.reparto h3 { font-family: var(--testo); font-size: var(--t-xs); font-weight: 700; color: var(--argento-3); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.rosa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.giocatore { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--filo); box-shadow: var(--ombra); }
.maglia { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--g, var(--argento)); color: #fff; font-weight: 900; font-stretch: 110%; font-size: 1.125rem; }
.giocatore strong { font-size: var(--t-s); line-height: 1.25; overflow-wrap: anywhere; }

/* Campo: come arrivare */
.campo-dove { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: start; }
.campo-info { display: grid; gap: 18px; }
.campo-info h2 { font-size: var(--t-xl); font-stretch: 130%; }
.campo-indirizzo { font-size: var(--t-l); line-height: 1.45; }
.campo-note { color: var(--argento-2); display: grid; gap: 10px; }
.campo-gironi { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mappa { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--filo); box-shadow: var(--ombra); aspect-ratio: 4 / 3; background: var(--notte-2); }
.mappa iframe { width: 100%; height: 100%; border: 0; display: block; }
.campo-vai { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #0a1033; font-size: var(--t-xs); font-weight: 700; opacity: 0; transform: translateY(-4px); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.campo { display: block; }
.campo:active { transform: scale(0.98); transition: transform 140ms var(--ease-out); }
.al-campo { text-decoration: underline; text-decoration-color: var(--filo); text-underline-offset: 3px; }

/* ---------- Sponsor ---------- */
.title-sponsor { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px; border-radius: var(--r-l); background: #fff; color: var(--argento); border: 1px solid var(--filo); box-shadow: var(--ombra); margin-bottom: 16px; position: relative; overflow: hidden; }
.title-sponsor::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--spettro); }
.title-sponsor img { height: 72px; width: auto; }
.title-sponsor p { font-weight: 600; max-width: 40ch; }
.loghi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.logo-sp { display: grid; place-items: center; height: 96px; padding: 16px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--filo); }
.logo-sp img { max-height: 56px; width: auto; object-fit: contain; }
.istituzioni { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 40px; }
.istituzioni img { height: 54px; width: auto; }
.istituzioni p { color: var(--argento-3); font-size: var(--t-xs); width: 100%; }

/* ---------- Footer ---------- */
.piede { border-top: 1px solid var(--filo); background: var(--notte-2); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.piede-griglia { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.piede h4 { font-size: 1rem; font-stretch: 115%; margin-bottom: 12px; }
.piede p, .piede li { color: var(--argento-2); font-size: var(--t-s); }
.piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.piede-fondo { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--filo); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--argento-3); font-size: var(--t-xs); }
.copia { display: inline-flex; gap: 8px; align-items: center; color: var(--argento); font-weight: 600; user-select: all; }

/* Gli stemmi hanno il fondo bianco: sul bianco serve un filo che li disegni */
.sq img, .cl-sq img, .tab-riga img, .squadra img, .scheda img, .tk img { box-shadow: 0 0 0 1px var(--filo); }
.scuro .sq img, .scuro .tk img { box-shadow: none; }

/* ---------- Filmati (fascia notturna) ---------- */
.filmati-sez { border-top: 0; }
.sezione + .filmati-sez, .filmati-sez + .sezione { border-top: 0; }
.filmati { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.filmati-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.filmato { display: grid; gap: 10px; text-align: left; align-content: start; }
.filmato-foto { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--notte-2); }
.filmato-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out), opacity 300ms ease; }
.filmato-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 10, 34, 0.55)); pointer-events: none; }
.filmato-foto iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.play {
  position: absolute; z-index: 1; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #060a22; padding-left: 3px;
  transition: transform 200ms var(--ease-out);
}
.filmato.grande .play { width: 64px; height: 64px; left: 20px; bottom: 20px; }
.filmato.grande .play svg { width: 28px; height: 28px; }
.filmato:active .play { transform: scale(0.94); }
.filmato.in-play .play { display: none; }
.filmato-testo { display: grid; gap: 2px; }
.filmato time { font-size: var(--t-xs); color: var(--argento-3); font-weight: 600; }
.filmato strong { font-size: var(--t-s); line-height: 1.3; }
.filmato.grande strong { font-family: var(--display); font-stretch: 115%; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.1; }

/* ---------- Muro di stemmi ---------- */
.stemmi { display: grid; gap: 14px; overflow: hidden; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stemmi-pista { display: flex; width: max-content; }
.stemmi-copia { display: flex; }
.stemmi a { margin-right: 14px; } /* margine (non gap): le due metà sono identiche, il giro non scatta */
.stemmi-fila.va .stemmi-pista { animation: scorre 70s linear infinite; }
.stemmi-fila.torna .stemmi-pista { animation: scorre 70s linear infinite reverse; }
.stemmi a { flex-shrink: 0; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; border: 1px solid var(--filo); box-shadow: var(--ombra); transition: transform 200ms var(--ease-out); }
.stemmi img { width: 64px; height: 64px; object-fit: contain; }
.stemmi a:active { transform: scale(0.95); }

/* ---------- Rivelazione allo scroll ---------- */
.sezione.rivela > .wrap { opacity: 0.001; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.sezione.rivela.visto > .wrap { opacity: 1; transform: none; }

/* ---------- Cambio pagina ---------- */
#vista { transition: opacity 180ms ease, transform 220ms var(--ease-out); }
#vista.cambia { opacity: 0; transform: translateY(6px); }

/* ---------- Hover solo con mouse ---------- */
@media (hover: hover) and (pointer: fine) {
  .menu a:hover { color: var(--argento); background: var(--notte-2); }
  .btn-primario:hover { background: color-mix(in srgb, var(--argento) 85%, var(--rosso)); }
  .scuro .btn-primario:hover { background: #fff; }
  .filmato:hover .filmato-foto img { transform: scale(1.04); }
  .filmato:hover .play { transform: scale(1.08); }
  .stemmi:hover .stemmi-pista { animation-play-state: paused; }
  .stemmi a:hover { transform: scale(1.08); }
  .campo:hover .campo-vai { opacity: 1; transform: none; }
  .al-campo:hover { color: var(--argento); text-decoration-color: currentColor; }
  .btn-secondario:hover { border-color: var(--argento); }
  .maglia-box:hover img { transform: translateY(-4px) rotate(-1.5deg); }
  .link-sezione:hover { color: var(--argento); }
  .filtro:hover { border-color: var(--argento-3); color: var(--argento); }
  .notizia:hover .notizia-foto img, .campo:hover img { transform: scale(1.04); }
  .notizia:hover h3 { color: var(--argento); text-decoration: underline; text-decoration-color: var(--rosso); text-underline-offset: 0.2em; }
  .squadra:hover { border-color: var(--argento-3); }
  .partita:hover { border-color: color-mix(in srgb, var(--argento-3) 60%, var(--filo)); }
}

/* ---------- Tablet e telefono ---------- */
@media (max-width: 1000px) {
  .valori { grid-template-columns: 1fr 1fr; }
  .valore + .valore { border-left: 0; }
  .valore { border-top: 1px solid var(--filo); }
  .valore:nth-child(-n+2) { border-top: 0; }
  .valore:nth-child(even) { border-left: 1px solid var(--filo); }
  .valore:last-child { grid-column: 1 / -1; border-left: 0; }
  .campi { grid-template-columns: repeat(2, 1fr); }
  .iniziative { grid-template-columns: 1fr; }
  .news-griglia { grid-template-columns: 1fr; }
  .filmati { grid-template-columns: 1fr; }
  .campo-dove { grid-template-columns: 1fr; }
  .club { grid-template-columns: 1fr; }
  .maglia-box { position: relative; top: auto; }
}
@media (max-width: 860px) {
  .menu {
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto; flex-direction: column; gap: 0;
    background: var(--notte); border-bottom: 1px solid var(--filo);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 220ms var(--ease-out), opacity 180ms ease, visibility 0s linear 220ms;
  }
  .menu.aperto { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu a { padding: 14px 4px; font-size: var(--t-m); border-bottom: 1px solid var(--filo); border-radius: 0; }
  .menu a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .burger { display: grid; }
  .piede-griglia { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-stretch: 118%; }
  /* sul telefono il testo copre tutto il video: velo più uniforme per leggerlo bene */
  .hero-velo { background: linear-gradient(180deg, color-mix(in srgb, var(--notte) 40%, transparent), color-mix(in srgb, var(--notte) 55%, transparent) 60%, color-mix(in srgb, var(--notte) 90%, transparent)); }
  .conto { flex-wrap: nowrap; gap: 6px; }
  .conto > div { min-width: 0; flex: 1; padding: 10px 4px 8px; }
  .partita { grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 12px; }
  .sq { flex-direction: column; gap: 6px; text-align: center; font-size: var(--t-s); }
  .sq.casa { flex-direction: column-reverse; text-align: center; }
  .sq.casa { justify-content: center; }
  .punteggio { min-width: 84px; font-size: 1.25rem; }
  .valori { grid-template-columns: 1fr; }
  .valore, .valore:nth-child(even) { border-left: 0; }
  .valore:nth-child(2) { border-top: 1px solid var(--filo); }
  .campi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .notizia.riga { grid-template-columns: 96px 1fr; }
  .scheda { grid-template-columns: 1fr; justify-items: start; }
  .ticker-giorno { display: none; }
  .ticker-pista { padding-left: 0; }
  .filmati-lista { grid-template-columns: 1fr; }
  .filmati-lista .filmato { grid-template-columns: 132px 1fr; align-items: center; gap: 14px; }
  .filmati-lista .play { width: 34px; height: 34px; left: 8px; bottom: 8px; }
  .filmati-lista .play svg { width: 16px; height: 16px; }
  .stemmi a { width: 72px; height: 72px; }
  .squadra-testa .scheda img { width: 76px; height: 76px; }
  .mappa { aspect-ratio: 1 / 1; }
  .campo-vai { opacity: 1; transform: none; top: 8px; right: 8px; padding: 4px 8px; }
  .campo-info .btn { width: 100%; justify-content: center; }
  .stemmi img { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker-pista { animation: none; }
  .ticker { overflow-x: auto; }
  .stemmi-pista { animation: none !important; }
  .stemmi { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .stemmi-copia { display: none; }
}
