/* Caratteri ospitati sul sito (licenza SIL OFL): nessuna chiamata a Google Fonts */
@font-face { font-family: "Anybody"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%; src: url(fonts/anybody-latin.woff2) format("woff2-variations"), url(fonts/anybody-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Anybody"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%; src: url(fonts/anybody-latin-ext.woff2) format("woff2-variations"), url(fonts/anybody-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/hanken-grotesk-latin.woff2) format("woff2-variations"), url(fonts/hanken-grotesk-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/hanken-grotesk-latin-ext.woff2) format("woff2-variations"), url(fonts/hanken-grotesk-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* 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; }
[hidden] { display: none !important; } /* senza questo l'intro nascosta (display:grid) restava sopra al sito al secondo caricamento */
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); position: relative; display: flex; align-items: stretch; min-height: 56px; }
.ticker-giorno {
  flex-shrink: 0; z-index: 2; display: flex; align-items: center; gap: 2px;
  padding: 0 6px 0 max(8px, env(safe-area-inset-left, 0px));
  background: var(--argento); color: #fff; font-weight: 800; font-size: var(--t-xs);
}
.ticker-giorno.live { background: var(--rosso); }
.tk-data { display: inline-flex; align-items: center; gap: 7px; min-width: 9.5em; justify-content: center; white-space: nowrap; }
.tk-freccia { width: 36px; height: 40px; border: 0; background: none; color: inherit; font: 700 1.35rem/1 var(--testo); cursor: pointer; border-radius: 8px; }
.tk-freccia:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.tk-freccia:disabled { opacity: 0.3; cursor: default; }
.tk-punto { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lampeggia 1.2s infinite; }
@keyframes lampeggia { 50% { opacity: 0.25; } }
.ticker-vista { flex: 1; min-width: 0; overflow: hidden; }
.ticker-pista { display: flex; width: max-content; height: 100%; }
.ticker-pista.scorre { animation: scorre var(--durata, 60s) linear infinite; }
.ticker-copia { display: flex; }
.ticker:hover .ticker-pista { animation-play-state: paused; }
@keyframes scorre { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 10px; padding: 10px 22px; border-right: 1px solid var(--filo); white-space: nowrap; font-size: var(--t-s); position: relative; }
.tk-fase { position: absolute; top: 3px; left: 22px; font-size: 0.66rem; font-weight: 700; color: var(--argento-3); text-transform: uppercase; letter-spacing: 0.06em; }
.tk:has(.tk-fase) { padding-top: 18px; padding-bottom: 6px; }
.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); font-variant-numeric: tabular-nums; }
.tk .ora { font-weight: 700; font-size: 0.9rem; color: var(--argento-2); padding: 2px 8px; border-radius: 6px; background: var(--notte-3); font-variant-numeric: tabular-nums; }
.tk .rig { color: var(--argento-3); font-size: 0.75rem; }
.tk .perde { color: var(--argento-3); }
.tk-campione { gap: 8px; font-weight: 700; color: var(--oro); background: color-mix(in srgb, var(--oro) 9%, transparent); }
.tk-campione strong { color: var(--argento); }

/* ---------- 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, .articolo li { font-size: 1.125rem; line-height: 1.75; color: var(--argento); }
.articolo > p, .articolo > ul, .articolo > ol, .articolo > blockquote, .articolo > figure { margin: 0 0 1.1em; }
.articolo h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-stretch: 115%; margin: 1.4em 0 0.5em; }
.articolo h3 { font-size: 1.25rem; font-stretch: 110%; margin: 1.2em 0 0.4em; }
.articolo ul, .articolo ol { padding-left: 1.3em; }
.articolo blockquote { margin-left: 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--s5); color: var(--argento-2); font-style: italic; }
.articolo img { border-radius: var(--r-m); margin: 0.6em 0; }
.articolo a { color: var(--s5); text-decoration: underline; text-underline-offset: 3px; }
.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; }

/* Testata della squadra: solo il nome, animato */
.nome-testa { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 9vw, 112px) clamp(40px, 7vw, 88px); }
.nome-testa::before { content: ""; position: absolute; inset: -40% -10% auto; height: 180%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 20% 40%, color-mix(in srgb, var(--g, var(--s5)) 38%, transparent), transparent 70%),
              radial-gradient(35% 45% at 85% 20%, color-mix(in srgb, var(--s4) 22%, transparent), transparent 70%); }
.nome-testa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--spettro); }
.nome-testa h1 { font-size: clamp(2.4rem, 7.5vw, 6rem); font-stretch: 130%; font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; max-width: 16ch; perspective: 600px; }
.nome-testa h1 .riga { display: block; }
.nome-testa h1 .parola { display: inline-block; white-space: nowrap; }
.nome-testa h1 .l { display: inline-block; transform-origin: 50% 100%; animation: lettera 760ms var(--ease-out) both; animation-delay: calc(var(--i) * 30ms + 60ms); }
.club-nome { display: flex; align-items: center; gap: 18px; }
.club-nome img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--filo), var(--ombra); }
.club-nome p { color: var(--argento-2); margin-top: 6px; }
.club-nome .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); }
.foto-squadra-sez { padding-top: 0; }
.sezione + .foto-squadra-sez { border-top: 0; }
.foto-squadra { margin: 0; border-radius: var(--r-l); overflow: hidden; position: relative; box-shadow: var(--ombra); background: var(--notte-2); }
.foto-squadra img { width: 100%; height: auto; max-height: 720px; object-fit: cover; }
.foto-squadra figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-weight: 700; font-size: var(--t-s);
  background: linear-gradient(180deg, transparent, rgba(6, 10, 34, 0.75)); }

/* 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; }

/* ---------- Albo d'oro ---------- */
.albo-testa p:not(.sopratitolo) { color: var(--argento-2); margin-top: 14px; font-size: var(--t-l); }
.albo-testa h1 .l { color: #f3d38a; }
.sigla { display: inline-grid; place-items: center; border-radius: 50%; background: var(--notte-3); color: var(--argento-2); font-family: var(--display); font-weight: 900; font-stretch: 120%; }
.albo-home { position: relative; overflow: hidden; }
.albo-home::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(243, 211, 138, 0.16), transparent); pointer-events: none; }
.albo-fila { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; position: relative; }
.albo-fila a { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 8px 16px; border-radius: var(--r-m); border: 1px solid var(--filo); background: color-mix(in srgb, var(--notte-2) 70%, transparent); height: 100%; transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.albo-fila img, .albo-fila .sigla { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.albo-fila .sigla { background: var(--notte-3); }
.albo-fila .num { font-size: 1.25rem; font-weight: 900; color: var(--oro); }
.albo-fila strong { font-size: var(--t-xs); line-height: 1.25; color: var(--argento-2); }
.albo-fila .ultimo a { border-color: color-mix(in srgb, var(--oro) 60%, transparent); background: color-mix(in srgb, var(--oro) 10%, var(--notte-2)); }
.albo-fila .ultimo strong { color: var(--argento); }
.piu-titoli { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.piu-titoli li { display: grid; grid-template-columns: 28px 48px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--filo); box-shadow: var(--ombra); }
.piu-titoli li:first-child { border-color: color-mix(in srgb, var(--oro) 55%, var(--filo)); background: linear-gradient(100deg, #fffaf0, #fff 60%); }
.piu-titoli .pos { color: var(--argento-3); font-weight: 900; text-align: center; }
.piu-titoli img, .piu-titoli .sigla { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; box-shadow: 0 0 0 1px var(--filo); }
.piu-titoli strong { display: block; line-height: 1.25; }
.piu-titoli div span { font-size: var(--t-xs); color: var(--argento-3); }
.piu-titoli b { font-size: 1.75rem; font-weight: 900; color: var(--oro); text-align: right; line-height: 1; }
.piu-titoli b small { display: block; font-family: var(--testo); font-size: 0.7rem; font-weight: 600; color: var(--argento-3); }
.albo-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.albo-anno { position: relative; display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--filo); box-shadow: var(--ombra); overflow: hidden; }
.albo-anno::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #c99a3e, #f3d38a, #c99a3e); opacity: 0.8; }
.albo-anno.ultimo { border-color: color-mix(in srgb, var(--oro) 55%, var(--filo)); background: linear-gradient(160deg, #fffaf0, #fff 55%); }
.albo-anno.vuoto { background: var(--notte-2); box-shadow: none; }
.albo-anno.vuoto::before { display: none; }
.albo-anno.vuoto p { color: var(--argento-3); font-size: var(--t-s); }
.albo-foto { margin: -18px -18px 0; width: calc(100% + 36px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.albo-riga { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.albo-anno .albo-a { font-size: 2rem; font-weight: 900; font-stretch: 120%; line-height: 1; }
.albo-anno .ed { font-size: var(--t-xs); color: var(--argento-3); font-weight: 600; }
.albo-vince { display: flex; align-items: center; gap: 12px; }
.albo-vince img, .albo-vince .sigla { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; box-shadow: 0 0 0 1px var(--filo); flex-shrink: 0; }
.albo-vince strong { font-family: var(--display); font-stretch: 110%; font-size: 1.15rem; line-height: 1.15; }
.albo-finale { font-size: var(--t-s); color: var(--argento-2); }
.albo-finale b { color: var(--argento); margin-left: 4px; }
.albo-note { font-size: var(--t-xs); color: var(--argento-3); }

/* ---------- Galleria ---------- */
.album-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 20px; }
.album-carta { display: grid; gap: 10px; align-content: start; }
.album-cop { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--notte-2); }
.album-cop img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.album-n { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(6, 10, 34, 0.75); color: #fff; font-size: var(--t-xs); font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.album-carta strong { font-family: var(--display); font-stretch: 110%; font-size: 1.2rem; line-height: 1.2; }
.album-carta time { font-size: var(--t-xs); color: var(--argento-3); font-weight: 600; }
.foto-muro { columns: 4 240px; column-gap: 10px; }
.foto-cella { display: block; width: 100%; margin: 0 0 10px; padding: 0; border-radius: var(--r-s); overflow: hidden; background: var(--notte-2); break-inside: avoid; cursor: zoom-in; }
.foto-cella img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out), opacity 300ms ease; }
.foto-cella:active img { transform: scale(0.98); }
.foto-striscia { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 2.6 / 1; }
.foto-striscia .foto-cella { margin: 0; height: 100%; }
.foto-striscia .foto-cella:first-child { grid-row: span 2; }
.foto-altre { display: grid; place-content: center; text-align: center; border-radius: var(--r-s); background: #0a1033; color: #fff; font-weight: 700; font-size: var(--t-xs); }
.foto-altre b { font-size: 1.6rem; display: block; }

/* Visore a tutto schermo */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4, 6, 20, 0.96); display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lightbox.aperto { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox figure { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: 12px; min-width: 0; padding: 56px 0 16px; height: 100dvh; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; opacity: 0; transform: scale(0.98); transition: opacity 250ms ease, transform 300ms var(--ease-out); }
.lightbox img.pronta { opacity: 1; transform: none; }
.lightbox figcaption { display: flex; gap: 16px; justify-content: center; color: #c3cbe6; font-size: var(--t-s); padding: 0 16px; text-align: center; }
.lb-n { color: #8f9bc4; }
.lb-chiudi { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 2rem; line-height: 1; background: rgba(255, 255, 255, 0.08); }
.lb-freccia { width: 56px; height: 72px; margin: 0 6px; border-radius: 12px; color: #fff; font-size: 2.6rem; line-height: 1; background: rgba(255, 255, 255, 0.06); }

/* Pulsante lingua IT / EN */
.menu .lingua { margin-left: 6px; padding: 6px 10px; border: 1px solid var(--filo); border-radius: 999px; font-size: var(--t-xs); font-weight: 800; letter-spacing: 0.06em; color: var(--argento); align-self: center; }
@media (max-width: 860px) { .menu .lingua { margin: 10px 0 0; align-self: flex-start; padding: 8px 14px; border-bottom: 1px solid var(--filo); } }
@media (min-width: 861px) and (max-width: 1240px) { .menu a { padding: 10px 8px; font-size: var(--t-xs); } .testata .wrap { gap: 14px; } }

/* ---------- Condividi ---------- */
.btn-condividi { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--filo); background: #fff; color: var(--argento); font-weight: 700; font-size: var(--t-s); transition: border-color 150ms ease, transform 140ms var(--ease-out); }
.scuro .btn-condividi { background: transparent; color: var(--argento); }
.btn-condividi.piccolo { margin: 0 0 0 auto; padding: 8px 12px; font-size: var(--t-xs); align-self: flex-start; }
.btn-condividi:active, .condividi-partita:active { transform: scale(0.96); }
.club-nome { flex-wrap: wrap; }
.hero-azioni .btn-condividi { margin-top: 0; }
.condividi-partita { display: inline-flex; align-items: center; gap: 5px; color: var(--s5); font-weight: 700; font-size: var(--t-xs); padding: 2px 4px; border-radius: 6px; }
.foglio {
  width: min(520px, 100vw); max-width: 100vw; margin: auto auto 0; padding: 0 0 env(safe-area-inset-bottom, 0px); border: 0; border-radius: 22px 22px 0 0;
  background: #fff; color: #0a1033; box-shadow: 0 -20px 60px -20px rgba(6, 10, 34, 0.5);
}
.foglio[open] { animation: foglio 280ms var(--ease-out); }
.foglio::backdrop { background: rgba(6, 10, 34, 0.5); }
@keyframes foglio { from { transform: translateY(40%); opacity: 0.4; } }
@media (min-width: 640px) { .foglio { margin: auto; border-radius: 22px; } @keyframes foglio { from { transform: translateY(16px) scale(0.98); opacity: 0; } } }
.foglio-testa { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 4px; }
.foglio-testa strong { font-family: var(--display); font-stretch: 120%; font-size: 1.15rem; }
.foglio-x { width: 40px; height: 40px; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: #4a5378; background: #f3f5fb; }
.foglio-titolo { padding: 0 18px 12px; color: #4a5378; font-size: var(--t-s); }
.foglio-img { display: flex; gap: 14px; align-items: center; width: calc(100% - 36px); margin: 0 18px 14px; padding: 10px; border-radius: 14px; border: 1px solid #e1e5f0; background: linear-gradient(120deg, #0c1338, #16205a); color: #fff; text-align: left; transition: transform 140ms var(--ease-out); }
.foglio-img:active { transform: scale(0.98); }
.foglio-img.in-corso { opacity: 0.6; }
.foglio-anteprima { flex-shrink: 0; width: 64px; height: 80px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.foglio-anteprima img { width: 100%; height: 100%; object-fit: cover; }
.foglio-img b { display: block; font-size: 1rem; }
.foglio-img small { display: block; color: #a3aed0; font-size: var(--t-xs); margin-top: 2px; }
.foglio-canali { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 4px 12px 14px; }
.foglio-canali a { display: grid; justify-items: center; gap: 6px; padding: 6px 2px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; color: #4a5378; }
.foglio-canali span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; font: 900 1.25rem var(--display); transition: transform 160ms var(--ease-out); }
.foglio-canali a:active span { transform: scale(0.92); }
.foglio-link { display: flex; gap: 8px; padding: 0 18px 14px; }
.foglio-link input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #e1e5f0; background: #f3f5fb; color: #4a5378; font-size: 14px; }
.foglio-link .btn { padding: 10px 16px; }
.foglio .btn-primario { background: #0a1033; color: #fff; }
.foglio-altro { display: block; width: calc(100% - 36px); margin: 0 18px 18px; padding: 12px; border-radius: 12px; background: #f3f5fb; font-weight: 700; }
.ssr { padding-block: 48px; }
/* Il testo "di servizio" (per Google e per chi non ha JavaScript) resta nascosto mentre il sito si costruisce:
   così ricaricando non si vede un lampo di pagina senza grafica. Se lo script non partisse, compare dopo 3 secondi. */
#vista > .ssr { visibility: hidden; animation: ssr-vedi 0s linear 3s forwards; }
@keyframes ssr-vedi { to { visibility: visible; } }

/* ---------- 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, .piede .piede-tit { 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); }
  .album-carta:hover .album-cop img, .foto-cella:hover img { transform: scale(1.04); }
  .btn-condividi:hover { border-color: var(--argento-3); }
  .condividi-partita:hover { background: color-mix(in srgb, var(--s5) 10%, transparent); }
  .foglio-canali a:hover span { transform: translateY(-2px); }
  .albo-fila a:hover { border-color: var(--oro); transform: translateY(-3px); }
  .lb-freccia:hover, .lb-chiudi:hover { background: rgba(255, 255, 255, 0.16); }
  .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; }
  .albo-fila { grid-template-columns: repeat(4, minmax(0, 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 { flex-direction: column; }
  .ticker-giorno { justify-content: space-between; padding: 0 4px; }
  .ticker-vista { overflow-x: auto; scrollbar-width: none; }
  .ticker-pista.scorre { animation: none; }
  .ticker-pista.scorre .ticker-copia { display: none; }
  .filmati-lista { grid-template-columns: 1fr; }
  .foto-muro { columns: 2 140px; column-gap: 6px; }
  .foto-cella { margin-bottom: 6px; }
  .foto-striscia { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .foto-striscia .foto-cella { aspect-ratio: 1; }
  .foto-striscia .foto-cella:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .foto-striscia .foto-cella:nth-child(n+5) { display: none; }
  .foto-altre { aspect-ratio: 1; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox figure { grid-column: 1; }
  .lb-freccia { display: none; }
  .albo-fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .albo-fila li:nth-child(n+7) { display: none; }
  .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; }
  .club-nome img { width: 64px; height: 64px; }
  .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.scorre { animation: none; }
  .ticker-vista { overflow-x: auto; }
  .ticker-copia { display: none; }
  .stemmi-pista { animation: none !important; }
  .stemmi { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .stemmi-copia { display: none; }
}

/* ---------- Privacy: banner, contenuti esterni su richiesta, pagine legali ---------- */
.banner-consenso {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 18px 20px; border-radius: var(--r-l); background: #0b1233; color: #e6ebf7;
  box-shadow: 0 18px 48px -12px rgba(6, 10, 34, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(24px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.banner-consenso::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--spettro); }
.banner-consenso.dentro { transform: none; opacity: 1; }
.banner-consenso.via { transform: translateY(24px); opacity: 0; }
.banner-testo { flex: 1 1 380px; font-size: var(--t-s); line-height: 1.5; }
.banner-testo strong { display: block; font-family: var(--display); font-stretch: 115%; font-size: 1.0625rem; margin-bottom: 4px; color: #fff; }
.banner-testo p { margin: 0; color: #c3cbe4; }
.banner-testo a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.banner-azioni { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 auto; justify-content: flex-end; }
.banner-azioni .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
.banner-consenso .btn-secondario { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
@media (prefers-reduced-motion: reduce) { .banner-consenso { transition: none; } }

.consenso-box {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(14px, 3vw, 28px); background: rgba(6, 10, 34, 0.88); color: #e6ebf7; text-align: left;
  font-size: var(--t-s); line-height: 1.45; cursor: default; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.consenso-box a { color: #fff; text-decoration: underline; }
.consenso-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.consenso-azioni .btn { min-height: 40px; padding-block: 8px; font-size: var(--t-s); cursor: pointer; }
.consenso-box .btn-secondario { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.consenso-fuori { font-size: var(--t-xs); }
.filmato:not(.grande) .consenso-box { font-size: var(--t-xs); gap: 8px; padding: 10px; }
.filmato:not(.grande) .consenso-box > span:first-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mappa { position: relative; }
.consenso-mappa { background: linear-gradient(160deg, #0b1233, #16205a); backdrop-filter: none; }
.consenso-mappa::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 36px 36px;
}

.legale { max-width: 72ch; font-size: var(--t-m); line-height: 1.65; color: var(--argento-2); }
.legale h1 { color: var(--argento); }
.legale h2 { font-family: var(--display); font-stretch: 112%; font-size: var(--t-l); color: var(--argento); margin: 2em 0 0.5em; }
.legale h3 { font-size: 1.0625rem; color: var(--argento); margin: 1.4em 0 0.3em; }
.legale p, .legale ul { margin: 0 0 1em; }
.legale ul { padding-left: 1.2em; }
.legale li { margin-bottom: 0.4em; }
.legale a { color: var(--s5); text-decoration: underline; text-underline-offset: 2px; }
.legale strong { color: var(--argento); }
.legale-data { font-size: var(--t-s); color: var(--argento-3); }
.tabella-legale { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: var(--t-s); display: block; overflow-x: auto; }
.tabella-legale th, .tabella-legale td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--filo); }
.tabella-legale th { color: var(--argento); background: var(--notte-2); font-weight: 700; }
.tabella-legale td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; color: var(--argento); white-space: nowrap; }

.piede-legale { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.piede-legale a, .piede-legale button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.piede-legale a:hover, .piede-legale button:hover { color: #fff; }
.consenso-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.banner-consenso .btn-primario, .consenso-box .btn-primario { background: #fff; color: #0b1233; border-color: #fff; }
.banner-consenso .btn-primario:hover, .consenso-box .btn-primario:hover { background: #e6ebf7; }
.tabella-legale.servizi td:first-child { font-family: inherit; font-size: inherit; font-weight: 700; white-space: normal; }

/* ---------- Mappa dei campi (disegnata dal sito) ---------- */
.mappa-campi { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px; align-items: start; margin-bottom: 32px; }
.mappa-campi.piccola { grid-template-columns: minmax(0, 560px); }
.mc-carta { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--filo); box-shadow: var(--ombra); background: #e7eefa; }
.mc-carta svg { display: block; width: 100%; height: auto; }
.mc-mare { fill: #e3ecfa; }
.mc-onda { stroke: #d2def3; stroke-width: 1; fill: none; stroke-dasharray: 4 6; }
.mc-terra { fill: #fff; stroke: #b9c7e4; stroke-width: 1.5; stroke-linejoin: round; }
.mc-citta circle { fill: #9aa6c6; }
.mc-citta text { font: 600 17px var(--testo); fill: #8590b3; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.mc-pin { cursor: pointer; }
.mc-pin .mc-goccia { fill: var(--argento); stroke: #fff; stroke-width: 2.5; transition: fill 160ms ease; }
.mc-pin text { font: 800 15px var(--testo); fill: #fff; pointer-events: none; }
.mc-pin .mc-alone { fill: var(--rosso); opacity: 0; transform: translateY(-20px); transition: opacity 200ms ease; }
.mc-pin:hover .mc-goccia, .mc-pin:focus-visible .mc-goccia, .mc-pin.acceso .mc-goccia, .mc-pin.su .mc-goccia { fill: var(--rosso); }
.mc-pin.acceso .mc-alone, .mc-pin.su .mc-alone { opacity: 0.18; }
.mc-pin.su .mc-alone { animation: alone 2s ease-in-out infinite; }
@keyframes alone { 50% { opacity: 0.05; } }
.mc-rosa { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 0.85rem var(--display); color: var(--argento); box-shadow: var(--ombra); }
.mc-rosa::before { content: ""; position: absolute; top: -5px; border: 5px solid transparent; border-bottom-color: var(--rosso); border-top: 0; }
.mc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mc-lista a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--filo); color: inherit; text-decoration: none; background: #fff; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.mc-lista a.acceso, .mc-lista a:hover, .mc-lista a[aria-current] { border-color: var(--rosso); }
.mc-lista strong { display: block; font-size: var(--t-s); }
.mc-lista small { color: var(--argento-3); font-size: var(--t-xs); }
.mc-num { width: 28px; height: 28px; border-radius: 50%; background: var(--argento); color: #fff; font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; flex-shrink: 0; }
.mc-lista a.acceso .mc-num, .mc-lista a:hover .mc-num { background: var(--rosso); }
@media (max-width: 860px) { .mappa-campi { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mc-pin.su .mc-alone { animation: none; } }

/* ---------- Il Selis in numeri ---------- */
.numeri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--filo); border: 1px solid var(--filo); border-radius: var(--r-l); overflow: hidden; }
.numeri li { background: var(--notte); padding: clamp(20px, 3vw, 32px) 20px; display: grid; gap: 4px; align-content: start; }
.numeri b { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--oro); font-variant-numeric: tabular-nums; }
.numeri span { font-weight: 800; font-size: var(--t-m); color: var(--argento); text-transform: lowercase; }
.numeri small { color: var(--argento-2); font-size: var(--t-xs); }
@media (max-width: 600px) {
  .mc-pin .mc-goccia, .mc-pin text { transform: scale(2.1); }
  .mc-pin .mc-alone { transform: scale(2.1) translateY(-20px); }
  .mc-citta text { font-size: 36px; stroke-width: 7px; }
  .mc-citta circle { r: 7px; }
}

/* ---------- App installabile ---------- */
.app-barra {
  position: fixed; z-index: 140; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border-radius: 18px;
  background: #0b1233; color: #e6ebf7; box-shadow: 0 16px 40px -12px rgba(6, 10, 34, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(120%); transition: transform 0.45s var(--ease-out);
}
.app-barra.dentro { transform: none; }
.app-barra img { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.app-barra span { flex: 1; min-width: 0; font-size: var(--t-xs); line-height: 1.35; }
.app-barra b { display: block; font-size: var(--t-s); color: #fff; }
.app-barra small { color: #a3aed0; }
.app-barra .btn { min-height: 40px; padding: 8px 16px; background: #fff; color: #0b1233; flex-shrink: 0; }
.app-x { width: 32px; height: 32px; border: 0; background: none; color: #a3aed0; font-size: 1.4rem; cursor: pointer; flex-shrink: 0; }
.guida-ios ol { margin: 8px 0 4px; padding: 0 4px 8px 1.8em; display: grid; gap: 12px; line-height: 1.5; }
.guida-ios svg { vertical-align: -3px; }
.offline-pillola {
  position: fixed; z-index: 160; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px));
  background: #3b2a00; color: #ffe7a8; font-weight: 700; font-size: var(--t-xs); padding: 7px 14px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
}
@media (display-mode: standalone) { .testata { padding-top: env(safe-area-inset-top, 0px); } }

/* ---------- Newsletter ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px 28px; align-items: center; padding: 22px 24px; border-radius: var(--r-l); position: relative; }
.nl-testo strong { display: block; font-family: var(--display); font-stretch: 115%; font-size: 1.15rem; line-height: 1.2; }
.nl-testo span { display: block; font-size: var(--t-s); margin-top: 4px; }
.nl-campi { display: flex; gap: 8px; }
.nl-email { flex: 1; min-width: 0; }
.nl-email input { width: 100%; min-height: 48px; border-radius: 999px; padding: 0 18px; font: inherit; font-size: 16px; }
.nl-campi .btn { min-height: 48px; flex-shrink: 0; }
.nl-ok { grid-column: 2; font-size: var(--t-xs); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.nl-ok input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.nl-esito { grid-column: 1 / -1; margin: 0; font-size: var(--t-s); font-weight: 700; min-height: 0; }
.nl-esito:empty { display: none; }
.nl-form.fatto .nl-campi, .nl-form.fatto .nl-ok { display: none; }
.nl-piede { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--filo); margin-bottom: 40px; }
.nl-piede .nl-testo strong { color: #fff; }
.nl-piede .nl-testo span, .nl-piede .nl-ok { color: var(--argento-2); }
.nl-piede .nl-ok a { color: inherit; }
.nl-piede .nl-email input { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.nl-piede .nl-email input::placeholder { color: #a3aed0; }
.nl-piede .btn-primario { background: #fff; color: #0b1233; }
.nl-piede .nl-esito.si { color: #8ee6b4; } .nl-piede .nl-esito.no { color: #ffb3bd; }
.nl-riquadro { margin-top: 48px; background: var(--notte-2); border: 1px solid var(--filo); }
.nl-riquadro .nl-testo span, .nl-riquadro .nl-ok { color: var(--argento-2); }
.nl-riquadro .nl-email input { background: #fff; border: 1px solid #c9d0e2; color: var(--argento); }
.nl-riquadro .nl-esito.si { color: #0b6b41; } .nl-riquadro .nl-esito.no { color: #b4142f; }
@media (max-width: 760px) {
  .nl-form { grid-template-columns: 1fr; padding: 18px; }
  .nl-ok { grid-column: 1; }
  .nl-campi { flex-direction: column; }
}

/* ---------- Archivio delle edizioni ---------- */
.albo-link { display: inline-block; margin-top: 10px; font-size: var(--t-xs); font-weight: 700; color: var(--s5); text-decoration: none; }
.albo-link:hover { text-decoration: underline; }
.arch-anni { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.arch-anno { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--filo); border-radius: var(--r-l); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--ombra); transition: border-color 160ms ease, transform 160ms var(--ease-out); position: relative; }
.arch-anno:hover { border-color: var(--s5); transform: translateY(-2px); }
.arch-num { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 2rem; line-height: 1; }
.arch-ed { font-size: var(--t-xs); color: var(--argento-3); font-weight: 600; }
.arch-vince { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.arch-vince img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--filo); }
.arch-vince small { display: block; font-size: 0.7rem; color: var(--oro); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.arch-vince b { font-size: var(--t-s); }
.arch-tag { position: absolute; top: 14px; right: 14px; font-size: 0.68rem; font-weight: 800; color: var(--s5); background: #eef3ff; padding: 3px 8px; border-radius: 999px; }
.arch-campione { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-l); border: 1px solid color-mix(in srgb, var(--oro) 45%, var(--filo)); background: linear-gradient(140deg, #fffaf0, #fff 60%); margin-bottom: 20px; }
.arch-campione img { width: 92px; height: 92px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--filo), var(--ombra); flex-shrink: 0; }
.arch-campione span { font-size: var(--t-xs); font-weight: 800; color: var(--oro); text-transform: uppercase; letter-spacing: 0.08em; }
.arch-campione strong { display: block; font-family: var(--display); font-stretch: 120%; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.1; margin: 4px 0; }
.arch-campione p { margin: 4px 0 0; color: var(--argento-2); }
.arch-nota { color: var(--argento-3); font-size: var(--t-s); }
.arch-foto-campione { margin: 0 0 32px; border-radius: var(--r-l); overflow: hidden; }
.arch-foto-campione img { width: 100%; display: block; }
.arch-blocco { margin-top: 44px; }
.arch-blocco h2 { font-size: var(--t-l); font-stretch: 120%; margin: 0 0 16px; }
.arch-turni { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.arch-turno h3 { font-size: var(--t-s); text-transform: uppercase; letter-spacing: 0.08em; color: var(--argento-3); margin: 0 0 8px; }
.arch-turno ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.arch-gara { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--filo); border-radius: var(--r-m); font-size: var(--t-s); background: #fff; }
.arch-gara span { display: flex; gap: 8px; align-items: center; min-width: 0; }
.arch-gara span:last-child { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.arch-gara .perde { color: var(--argento-3); }
.arch-gara b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.arch-gara b small { font-weight: 500; color: var(--argento-3); margin-left: 4px; }
.arch-gara img, .arch-girone img, .arch-squadre img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; background: #fff; flex-shrink: 0; }
.arch-vuoto { width: 22px; height: 22px; border-radius: 50%; background: var(--notte-3); flex-shrink: 0; display: inline-block; }
.arch-gironi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.arch-girone { border: 1px solid var(--filo); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.arch-girone h3 { margin: 0; padding: 10px 14px; font-size: var(--t-s); background: var(--notte-2); border-bottom: 1px solid var(--filo); }
.arch-girone h3 small { font-weight: 500; color: var(--argento-3); }
.arch-girone table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.arch-girone th { text-align: right; font-size: 0.72rem; color: var(--argento-3); padding: 6px 10px; font-weight: 700; }
.arch-girone th:first-child { text-align: left; }
.arch-girone td { padding: 7px 10px; border-top: 1px solid var(--filo); text-align: right; font-variant-numeric: tabular-nums; }
.arch-girone td:first-child { text-align: left; display: flex; gap: 8px; align-items: center; }
.arch-pos { width: 16px; color: var(--argento-3); font-size: var(--t-xs); }
.arch-squadre { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.arch-squadre li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--filo); border-radius: var(--r-m); background: #fff; }
.arch-squadre img { width: 30px; height: 30px; }
.arch-squadre b { display: block; font-size: var(--t-s); }
.arch-squadre small { color: var(--argento-3); font-size: var(--t-xs); }
.arch-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.arch-album a { display: grid; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--filo); color: inherit; text-decoration: none; background: #fff; }
.arch-album img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.arch-album span { padding: 10px 12px; }
.arch-album b { display: block; font-size: var(--t-s); }
.arch-album small { color: var(--argento-3); }
.arch-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--filo); }
.arch-nav a { font-weight: 700; color: var(--s5); text-decoration: none; }
@media (max-width: 600px) { .arch-campione { flex-direction: column; text-align: center; } }

/* Simbolo della 30ª edizione nel menu: dorato, senza cerchio */
.marchio.con-simbolo img { width: auto; height: 46px; border-radius: 0; background: none; padding: 0; }

/* ---------- Valori S·E·L·I·S animati: la lettera sale, si accende, poi le parole ---------- */
.valore { position: relative; transition: background-color 300ms ease; }
.valore::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--v); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.valore .lettera { display: inline-block; transition: transform 400ms var(--ease-out); }
.valore:hover { background: color-mix(in srgb, var(--v) 7%, transparent); }
.valore:hover::before { transform: scaleX(1); }
.valore:hover .lettera { transform: translateY(-4px) scale(1.04); }
.valori.pronto:not(.via) .lettera, .valori.pronto:not(.via) .valore h3, .valori.pronto:not(.via) .valore p { opacity: 0.001; }
.valori.via .lettera {
  background: linear-gradient(110deg, var(--v) 0 42%, #fff 50%, var(--v) 58% 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lettera-su 950ms var(--ease-out) backwards, lettera-luce 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 140ms), calc(var(--i) * 900ms + 1600ms);
}
.valori.via .valore h3, .valori.via .valore p { animation: sale 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 140ms + 380ms); }
.valori.via .valore p { animation-delay: calc(var(--i) * 140ms + 480ms); }
.valori.via .valore::before { animation: barra 700ms var(--ease-out); animation-delay: calc(var(--i) * 140ms + 250ms); }
@keyframes lettera-su { from { opacity: 0.001; clip-path: inset(100% -20% -20% -20%); transform: translateY(40%) scale(1.25); filter: blur(5px); } to { opacity: 1; clip-path: inset(-20% -20% -20% -20%); transform: none; filter: none; } }
@keyframes lettera-luce { 0%, 78% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes barra { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); transform-origin: left; } 61% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- Linea del tempo animata: la linea d'oro corre, i pallini si accendono, gli anni scorrono ---------- */
.anno .traccia { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--oro), #fff1c7); transform: scaleX(0); transform-origin: left; z-index: 1; }
.anno::after { z-index: 2; }
.storia.pronto .anno:not(.via)::after { transform: scale(0); }
.storia.pronto .anno:not(.via) .num, .storia.pronto .anno:not(.via) h3, .storia.pronto .anno:not(.via) p { opacity: 0.001; }
.storia .anno.via .traccia { transition: transform 1000ms cubic-bezier(.45, 0, .2, 1); transform: scaleX(1); }
.storia .anno.via::after { transition: transform 450ms cubic-bezier(.3, 1.6, .5, 1), background-color 400ms; transform: scale(1); background: var(--oro); }
.storia .anno.via .num { animation: sale 600ms var(--ease-out) both; font-variant-numeric: tabular-nums; }
.storia .anno.via h3 { animation: sale 650ms var(--ease-out) 220ms both; }
.storia .anno.via p { animation: sale 650ms var(--ease-out) 320ms both; }
.storia .anno:last-child.via::after { animation: tappa-viva 2.2s ease-out 900ms infinite; }
@keyframes tappa-viva { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--oro) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.storia .anno:last-child.via .num { color: var(--oro); transition: color 600ms 900ms; }

/* ---------- Rassegna stampa: carta di giornale ---------- */
.ras-carta-sfondo { background: #f4efe4; background-image: radial-gradient(rgba(60, 40, 10, .035) 1px, transparent 1px); background-size: 4px 4px; }
.ras-giornale { color: #1d1a14; }
.ras-testa-giornale { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; padding: 10px 0; border-top: 3px double #1d1a14; border-bottom: 1px solid #1d1a14;
  font: 700 .78rem/1.2 Georgia, "Times New Roman", serif; letter-spacing: .14em; text-transform: uppercase; }
.ras-anno { margin-top: 34px; }
.ras-anno h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(29, 26, 20, .35); font: 900 clamp(2rem, 6vw, 3.4rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.ras-anno h2 small { font: italic 400 .95rem Georgia, serif; color: #6b6355; letter-spacing: 0; }
.ras-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0; border-left: 1px solid rgba(29, 26, 20, .18); }
.ras-art { padding: 16px 18px 18px; border-right: 1px solid rgba(29, 26, 20, .18); border-bottom: 1px solid rgba(29, 26, 20, .18); display: grid; gap: 8px; align-content: start; transition: background .25s; }
.ras-art:hover { background: rgba(255, 255, 255, .55); }
.ras-testata { margin: 0; font: 700 .72rem/1.2 var(--testo); letter-spacing: .16em; text-transform: uppercase; color: #8a1d1d; }
.ras-art h3 { margin: 0; font: 700 1.2rem/1.25 Georgia, "Times New Roman", serif; letter-spacing: 0; text-wrap: balance; }
.ras-prima h3 { font-size: 1.45rem; }
.ras-art h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease-out); }
.ras-art h3 a:hover { background-size: 100% 1px; }
.ras-dati { margin: 0; font: italic .85rem/1.4 Georgia, serif; color: #6b6355; }
.ras-vai { font-style: normal; color: #8a1d1d; }
.ras-foto { display: block; padding: 0; border: 0; background: #fff; cursor: zoom-in; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 18px rgba(60, 40, 10, .12); transform: rotate(-1.2deg); transition: transform .3s var(--ease-out); }
.ras-art:nth-child(even) .ras-foto { transform: rotate(1deg); }
.ras-foto:hover { transform: rotate(0) scale(1.02); }
.ras-foto img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: top; filter: sepia(.15); }
.ras-nota { margin: 28px 0 0; font: italic .9rem/1.5 Georgia, serif; color: #6b6355; }
.ras-vuota { font: italic 1.1rem Georgia, serif; color: var(--argento-2); }

.ras-anteprima { margin: 0 0 4px; }
.ras-anteprima img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.9); }
.ras-anteprima figcaption, .rh-foto figcaption { font: italic .72rem/1.3 Georgia, serif; color: #6b6355; margin-top: 4px; }
/* "Dicono di noi" in home: una prima pagina */
.rh .rh-testa { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rh .rh-testa h2 { margin: 0; color: #1d1a14; font: 900 clamp(2.2rem, 7vw, 4rem)/.95 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.rh .link-sezione { color: #8a1d1d; }
.rh-griglia { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 0; margin-top: 18px; }
.rh-art { display: grid; gap: 8px; align-content: start; padding: 16px 18px 18px; color: #1d1a14; text-decoration: none; border-bottom: 1px solid rgba(29, 26, 20, .2); transition: background .25s; }
.rh-art:hover { background: rgba(255, 255, 255, .55); }
.rh-art strong { font: 700 1.15rem/1.25 Georgia, "Times New Roman", serif; text-wrap: balance; }
.rh-art:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rh-prima { grid-row: 1 / 4; border-right: 1px solid rgba(29, 26, 20, .2); padding-left: 0; }
.rh-prima strong { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; }
.rh-art:not(.rh-prima) { grid-column: 2 / 4; display: block; }
.rh-art:not(.rh-prima) > span, .rh-art:not(.rh-prima) > strong { display: block; margin-bottom: 8px; }
.rh-art:not(.rh-prima)::after { content: ""; display: block; clear: both; }
.rh-art:nth-child(n+2) { padding-right: 0; }
.rh-foto { margin: 0; }
.rh-foto img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rh-art:not(.rh-prima) .rh-foto { float: right; width: 38%; margin: 0 0 6px 14px; }
.rh-art:not(.rh-prima) .rh-foto img { aspect-ratio: 4 / 3; }
@media (max-width: 800px) {
  .rh-griglia { grid-template-columns: 1fr; }
  .rh-prima, .rh-art:not(.rh-prima) { grid-row: auto; grid-column: auto; border-right: 0; padding-left: 0; padding-right: 0; }
}

/* ---------- Torneo Femminile Manlio Selis ---------- */
.fem-banda, .fem-hero { --fem: #ef9de5; --fem-2: #c247b4; position: relative; overflow: hidden; isolation: isolate; }
.fem-luce { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 120% at 88% 10%, color-mix(in srgb, var(--fem-2) 55%, transparent), transparent 70%),
              radial-gradient(50% 90% at 0% 100%, color-mix(in srgb, var(--s5) 30%, transparent), transparent 70%); }
.fem-luce::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--spettro); }
.fem-banda { padding-block: clamp(40px, 6vw, 72px); }
.fem-banda-in { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.fem-banda-testo { max-width: 640px; }
.fem-occhiello { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--t-s); color: var(--argento-2); font-weight: 600; letter-spacing: 0.02em; }
.fem-nuovo { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--fem); color: #2a0626; font-weight: 800; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; }
.fem-banda h2, .fem-hero h1 { font-family: var(--display); font-weight: 900; font-stretch: 125%; line-height: 1.02; margin-top: 14px; text-wrap: balance; }
.fem-banda h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.fem-hero h1 { font-size: var(--t-xxl); max-width: 14ch; }
.fem-banda h2, .fem-hero h1 { background: linear-gradient(100deg, #fff 30%, var(--fem) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fem-quando { margin-top: 14px; font-size: var(--t-l); color: var(--argento-2); }
.fem-quando b { color: var(--fem); font-weight: 800; }
.fem-banda-azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fem-btn { background: var(--fem); color: #2a0626; }
.fem-btn:hover { background: #f7c2ef; }
.conto-fem > div:first-child b { color: var(--fem); }
.conto-fem .conto-via { color: var(--fem); }
.fem-hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.fem-hero .conto { margin-top: 28px; }
.fem-hero .hero-azioni { margin-top: 28px; }
.fem-intro { display: grid; gap: 32px 56px; }
.fem-intro.con-locandina { grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); align-items: start; }
.fem-testo { display: grid; gap: 28px; }
.fem-testo .prosa p { margin-bottom: 1em; max-width: 68ch; color: var(--argento); }
.fem-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-m); background: #000; display: block; }
.fem-video .filmato { width: 100%; }
.fem-locandina { display: block; padding: 0; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--ombra); border: 1px solid var(--filo); cursor: zoom-in; position: sticky; top: 96px; }
.fem-locandina img { display: block; width: 100%; height: auto; transition: transform 500ms var(--ease-out); }
@media (hover: hover) { .fem-locandina:hover img { transform: scale(1.03); } }
.fem-squadre { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.fem-squadre li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--filo); border-radius: var(--r-m); background: var(--notte); }
.fem-squadre img, .fem-squadre .fem-stemma-vuoto { width: 48px; height: 48px; object-fit: contain; flex: none; }
.fem-squadre strong { display: block; line-height: 1.25; }
.fem-squadre span:not(.fem-stemma-vuoto) { font-size: var(--t-s); color: var(--argento-3); }
.fem-stemma-vuoto { display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, #d65ac8 14%, var(--notte-2)); color: #a8329a; font-family: var(--display); font-weight: 900; }
.fem-presto { padding: 28px; border: 1px dashed var(--filo); border-radius: var(--r-m); color: var(--argento-2); text-align: center; }
.fem-giorno + .fem-giorno { margin-top: 32px; }
.fem-giorno h3 { font-size: var(--t-l); font-weight: 800; padding-bottom: 10px; border-bottom: 2px solid #d65ac8; margin-bottom: 4px; }
.fem-giorno ul { list-style: none; margin: 0; padding: 0; }
.fem-partita { display: grid; grid-template-columns: 64px minmax(0, 1fr) 76px minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--filo); }
.fem-ora { font-weight: 700; color: var(--argento-2); font-variant-numeric: tabular-nums; }
.fem-sq { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fem-sq.casa { justify-content: flex-end; text-align: right; }
.fem-sq b { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.fem-sq.vince b { font-weight: 800; }
.fem-sq img, .fem-sq .fem-stemma-vuoto { width: 32px; height: 32px; object-fit: contain; flex: none; font-size: 0.8rem; }
.fem-ris { justify-self: center; min-width: 64px; text-align: center; padding: 6px 10px; border-radius: var(--r-s); background: var(--notte-2); color: var(--argento-3); font-weight: 700; font-size: var(--t-s); }
.fem-partita.fatta .fem-ris { background: var(--argento); color: var(--notte); font-family: var(--display); font-weight: 900; font-size: var(--t-m); }
.fem-ris i { font-style: normal; opacity: 0.5; margin: 0 4px; }
.fem-info { font-size: var(--t-xs); color: var(--argento-3); text-align: right; }
.fem-piede { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--argento-2); }
@media (max-width: 800px) {
  .fem-intro.con-locandina { grid-template-columns: 1fr; }
  .fem-locandina { position: static; max-width: 420px; }
  .fem-partita { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); row-gap: 6px; }
  .fem-ora, .fem-info { grid-row: 1; font-size: var(--t-xs); }
  .fem-ora { grid-column: 1; } .fem-info { grid-column: 2 / -1; }
  .fem-sq { grid-row: 2; } .fem-ris { grid-row: 2; min-width: 56px; }
  .fem-sq b { font-size: var(--t-s); }
}
@media (prefers-reduced-motion: reduce) { .fem-locandina img { transition: none; } }

/* Home: il Mondiale e il Femminile si alternano nella stessa slide */
.hero { --fem: #ef9de5; --fem-2: #c247b4; }
.hero-giro { display: grid; }
.hero-pannello { grid-area: 1 / 1; display: grid; gap: 28px; align-content: start; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px); filter: blur(4px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out), filter 650ms var(--ease-out), visibility 0s linear 650ms; }
.hero-pannello.attivo { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.hero-fem-luce { z-index: 1; opacity: 0; transition: opacity 900ms ease; }
.hero-fem-luce::after { display: none; }
.hero.su-fem .hero-fem-luce { opacity: 1; }
.hero-fem .fem-occhiello { color: var(--argento-2); }
.hero-fem .fem-tit { font-family: var(--display); font-weight: 900; font-stretch: 125%; line-height: 0.98; font-size: var(--t-xxl); max-width: 13ch; text-wrap: balance;
  background: linear-gradient(100deg, #fff 30%, var(--fem) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-fem .fem-data { color: var(--fem); font-weight: 800; }
.hero-fem .conto > div:first-child b { color: var(--fem); }
.hero-punti { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-punti button { display: grid; gap: 8px; min-width: 150px; padding: 8px 0; text-align: left; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--argento-3); transition: color 200ms ease; }
.hero-punti button[aria-pressed="true"] { color: var(--argento); }
.hero-punti i { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--argento) 22%, transparent); overflow: hidden; }
.hero-punti b { display: block; height: 100%; background: var(--oro); transform: scaleX(0); transform-origin: 0 50%; transition: transform 100ms linear; }
.hero-punti .rosa b { background: var(--fem); }
.hero-punti button[aria-pressed="true"] i { background: color-mix(in srgb, var(--argento) 32%, transparent); }
@media (hover: hover) { .hero-punti button:hover { color: var(--argento); } }
@media (prefers-reduced-motion: reduce) {
  .hero-pannello { transition: none; transform: none; filter: none; }
  .hero-punti button[aria-pressed="true"] b { transform: scaleX(1) !important; }
}

/* Menu: "L'evento" raccoglie le sezioni secondarie in un sottomenu */
.menu-gruppo { position: relative; display: flex; }
.menu-apri { display: inline-flex; align-items: center; gap: 7px; 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-apri svg { transition: transform 200ms var(--ease-out); }
.menu-gruppo.aperto .menu-apri svg { transform: rotate(180deg); }
.menu-gruppo.attivo .menu-apri { color: var(--argento); }
.menu-gruppo.attivo .menu-apri::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--rosso); }
.sottomenu { display: grid; }
.sotto-filo { display: block; height: 1px; background: var(--filo); margin: 6px 10px; }
@media (min-width: 861px) {
  .sottomenu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 230px; padding: 8px; border-radius: var(--r-m);
    background: var(--notte-2); border: 1px solid var(--filo); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
    transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms; z-index: 50; }
  .sottomenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* ponte per il mouse */
  .menu-gruppo.aperto .sottomenu, .menu-gruppo:focus-within .sottomenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .sottomenu a { padding: 9px 12px; white-space: nowrap; }
  .sottomenu a[aria-current="page"]::after { left: 0; right: auto; top: 50%; bottom: auto; width: 3px; height: 16px; transform: translateY(-50%); }
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .menu-gruppo:hover .sottomenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-gruppo:hover .menu-apri svg { transform: rotate(180deg); }
  .menu-apri:hover { color: var(--argento); background: var(--notte-2); }
}
@media (min-width: 861px) and (max-width: 1240px) { .menu-apri { padding: 10px 8px; font-size: var(--t-xs); } }
@media (max-width: 860px) {
  .menu { max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .menu-gruppo { flex-direction: column; }
  .menu-apri { justify-content: space-between; width: 100%; padding: 14px 4px; font-size: var(--t-m); border-bottom: 1px solid var(--filo); border-radius: 0; }
  .menu-gruppo.attivo .menu-apri::after { display: none; }
  .sottomenu { display: none; padding: 4px 0 8px 14px; border-bottom: 1px solid var(--filo); }
  .menu-gruppo.aperto .sottomenu { display: grid; }
  .sottomenu a { padding: 11px 4px; font-size: var(--t-s); border-bottom: 0; }
  .sotto-filo { margin: 6px 4px; }
}
.fem-news-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
