/* ============ Token ============ */
:root {
  --bg: #f2f6f1;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --sunken: #e4ece2;
  --ink: #0f1512;
  --ink-2: #4a524d;
  --ink-3: #7b827d;
  --line: #d9e3d7;
  --line-2: #c4d1c3;
  --accent: #1f8a3c;
  --accent-ink: #1a7a34;
  --on-accent: #ffffff;
  --stage: #1b7a35;
  --maglia: #1f8a3c;
  --stage-ink: #f2f5f1;
  --stage-ink-2: rgba(242, 245, 241, .62);
  --stage-line: rgba(255, 255, 255, .1);
  --win: #178a4c;
  --loss: #cf3b3b;
  --draw: #8b918d;
  --gold: #c9971c;
  --zone-b: #6f8fb3;
  --shadow: 0 1px 2px rgba(15, 21, 18, .05), 0 10px 30px -14px rgba(15, 21, 18, .22);
  --shadow-lg: 0 2px 4px rgba(15, 21, 18, .06), 0 24px 60px -20px rgba(15, 21, 18, .35);
  --r: 16px;
  --fc: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --fb: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gut: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1a0f; --surface: #102417; --surface-2: #142c1c; --sunken: #183320; --ink: #edf2ee; --ink-2: #aab4ae; --ink-3: #75807a;
    --line: #1f3a27; --line-2: #2a4a33; --accent-ink: #5fcf7c; --stage: #1b7a35; --maglia: #1f8a3c; --zone-b: #7d9cc0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1a0f; --surface: #102417; --surface-2: #142c1c; --sunken: #183320; --ink: #edf2ee; --ink-2: #aab4ae; --ink-3: #75807a;
  --line: #1f3a27; --line-2: #2a4a33; --accent-ink: #5fcf7c; --stage: #1b7a35; --maglia: #1f8a3c; --zone-b: #7d9cc0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--fb); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--fc); font-weight: 800; line-height: 1; letter-spacing: .01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 720px) { :root { --gut: 28px; } }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
#app { outline: none; min-height: 70vh; }

/* ============ Top bar ============ */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; }
.brand__txt { display: grid; line-height: 1.05; min-width: 0; }
.brand__txt b, .brand__txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__txt b { font-family: var(--fc); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: .03em; }
.brand__txt small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
@media (max-width: 520px) { .brand__txt b { font-size: 16px; letter-spacing: 0; } .topbar__in { gap: 12px; } }
.nav { display: none; margin-left: auto; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav a.is-on { background: var(--ink); color: var(--bg); }
.topbar__act { display: flex; gap: 6px; margin-left: auto; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
@media (min-width: 1000px) { .nav { display: flex; } .topbar__act { margin-left: 8px; } .only-m { display: none; } }

.sheet { position: fixed; inset: 64px 0 0; z-index: 39; background: rgba(0, 0, 0, .35); }
.sheet__panel { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; display: grid; box-shadow: var(--shadow-lg); animation: drop .2s ease; }
.sheet__panel a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--fc); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.sheet__panel a:last-child { border: 0; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }

.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 0; border-radius: 10px; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.is-on { color: var(--ink); }
.tabbar a.is-on svg { stroke: var(--ink); fill: color-mix(in srgb, var(--accent) 70%, transparent); }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ============ Elementi comuni ============ */
.crest { --s: 40px; display: inline-grid; width: var(--s); height: var(--s); flex: none; }
.crest svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .18)); }
.crest--xs { --s: 22px; } .crest--sm { --s: 28px; } .crest--lg { --s: 64px; } .crest--xl { --s: 72px; } .crest--xxl { --s: 84px; } .crest--hero { --s: 104px; }
@media (min-width: 720px) { .crest--xl { --s: 96px; } .crest--xxl { --s: 132px; } .crest--hero { --s: 156px; } }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--fb); letter-spacing: .06em; text-transform: uppercase; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.pill--accent { background: var(--accent); color: var(--on-accent); }
.pill--gold { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 0; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .9; }
.btn--on { background: var(--tt); color: var(--t1); }
.btn--ghost-on { background: transparent; color: var(--tt); box-shadow: inset 0 0 0 1.5px var(--tt); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.numtag { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 5px; border-radius: 7px; background: var(--t1, var(--ink)); color: var(--tt, var(--bg)); font: 700 15px/1 var(--fc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.card-y, .card-r { display: inline-block; width: 10px; height: 14px; border-radius: 2px; background: #f2c230; vertical-align: -2px; margin-left: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.card-r { background: #d33; }
.ball { display: inline-block; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.6' fill='%23fff' stroke='%23222' stroke-width='1.4'/%3E%3Cpath d='M10 6.2l3.3 2.4-1.3 3.9H8l-1.3-3.9z' fill='%23222'/%3E%3C/svg%3E") center / contain no-repeat; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 64ch; margin: 18px 0; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.empty { color: var(--ink-3); padding: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card--pad { padding: 16px; }
.back { display: inline-block; font-weight: 600; font-size: 14px; color: var(--stage-ink-2); margin-bottom: 18px; }
.back:hover { color: var(--stage-ink); }
.back--on { color: inherit; opacity: .75; }
.count { color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* Sezioni */
.sec { margin-top: 44px; }
.sec__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.sec__head h2 { font-size: 30px; text-transform: uppercase; }
.more { margin-left: auto; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.grid-2, .grid-3 { display: grid; gap: 0 28px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--uneven { grid-template-columns: 1fr 1.15fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-2--tight { gap: 16px; }
@media (min-width: 640px) { .grid-2--tight { grid-template-columns: 1fr 1fr; } }

/* Page head */
.phead { padding: 40px 0 8px; }
.phead h1 { font-size: clamp(48px, 9vw, 88px); text-transform: uppercase; }
.phead__sub { color: var(--ink-2); margin-top: 12px; font-size: 17px; }

/* ============ Stage (aree verdi, colore delle maglie) ============ */
.stage { position: relative; isolation: isolate; overflow: hidden; color: var(--stage-ink);
  background: linear-gradient(165deg, #24974a 0%, var(--maglia, #1f8a3c) 45%, #156b2d 100%); }
.pitch { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 80% 20%, rgba(255, 255, 255, .10), transparent 70%); }
.match .pitch { background:
    radial-gradient(45% 80% at 10% 40%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 70%),
    radial-gradient(45% 80% at 90% 40%, color-mix(in srgb, var(--c2) 40%, transparent), transparent 70%); }

/* Acqua: onde in basso e cerchi di una goccia */
.acqua { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.acqua__luce { position: absolute; inset: 0; background: radial-gradient(55% 60% at 78% 18%, rgba(255, 255, 255, .13), transparent 70%); }
.acqua__onde { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; }
.acqua__onde svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.acqua__onde svg:nth-child(1) { animation: onda 34s linear infinite; }
.acqua__onde svg:nth-child(2) { animation: onda 24s linear infinite reverse; bottom: -6px; }
.acqua__onde svg:nth-child(3) { animation: onda 18s linear infinite; bottom: -14px; }
@keyframes onda { to { transform: translateX(-50%); } }
.acqua__cerchi { position: absolute; right: -6%; top: 6%; width: min(560px, 90vw); aspect-ratio: 1; }
.acqua__cerchi i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); transform: scale(.25); opacity: 0; animation: cerchio 9s ease-out infinite; }
.acqua__cerchi i:nth-child(2) { animation-delay: 3s; } .acqua__cerchi i:nth-child(3) { animation-delay: 6s; }
.acqua__cerchi b { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
@keyframes cerchio { 10% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .acqua__cerchi i { opacity: .6; transform: scale(.7); } }

/* ============ Home ============ */
.hero__in { display: grid; gap: 28px; padding: 40px var(--gut) 72px; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 96px; gap: 48px; } }
.hero__title { font-size: clamp(54px, 18vw, 150px); line-height: .84; text-transform: uppercase; margin: 0 0 18px; letter-spacing: -.005em; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { color: var(--stage-ink-2); font-size: 16px; font-weight: 500; max-width: 46ch; }

.next { display: block; border-radius: 24px; padding: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--stage-line), 0 30px 80px -30px rgba(0, 0, 0, .8); position: relative; overflow: hidden; isolation: isolate; transition: transform .2s; }
.next:hover { transform: translateY(-3px); }
.next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 0% 40%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 70%), radial-gradient(60% 60% at 100% 40%, color-mix(in srgb, var(--c2) 40%, transparent), transparent 70%); }
@media (min-width: 720px) { .next { padding: 28px; } }
.next__label { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; color: var(--stage-ink-2); font-weight: 500; }
.next__label b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--fb); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); }
.next__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 26px 0; }
.next__team { display: grid; justify-items: center; gap: 12px; text-align: center; }
.next__team b { font: 700 20px/1.05 var(--fc); text-transform: uppercase; letter-spacing: .02em; }
@media (min-width: 720px) { .next__team b { font-size: 26px; } }
.next__vs { font: 800 26px/1 var(--fc); color: var(--stage-ink-2); }
.countdown { padding: 14px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--stage-line); text-align: center; font-size: 16px; color: var(--stage-ink-2); }
.countdown b { font: 800 24px/1 var(--fc); color: var(--accent); }
.countdown--sm { margin: 10px auto 0; max-width: 340px; font-size: 14px; padding: 10px 12px; }
.countdown--sm b { font-size: 20px; }

.steps { list-style: none; margin: -36px 0 0; padding: 14px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.step { display: grid; gap: 2px; padding: 6px 10px; border-radius: 12px; min-width: 0; }
.step b { font: 700 17px/1.1 var(--fc); text-transform: uppercase; }
.step small { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.step--now { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.step--now small { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) { .step { text-align: center; padding: 6px 4px; } .step b { font-size: 14px; } .step small { font-size: 12px; } }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 14px; margin: 0 calc(var(--gut) * -1); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 8px; transition: transform .15s, border-color .15s; }
.rcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.rcard__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.rcard__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: var(--ink-2); }
.rcard__row span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__row b { font: 800 26px/1 var(--fc); font-variant-numeric: tabular-nums; }
.rcard__row.is-win { color: var(--ink); }
.rcard__note { font-size: 12px; color: var(--accent-ink); font-weight: 600; }

.scorers { list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.scorers a { display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.scorers a:hover { background: var(--surface-2); }
.scorers li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.scorers__pos { font: 800 20px/1 var(--fc); color: var(--ink-3); text-align: center; }
.scorers li:first-child .scorers__pos { color: var(--gold); }
.scorers__who { display: grid; line-height: 1.2; }
.scorers__who b { font-weight: 700; }
.scorers__who small { color: var(--ink-3); font-size: 13px; }
.scorers__n { font: 800 30px/1 var(--fc); display: flex; align-items: baseline; gap: 4px; }
.scorers__n small { font: 600 12px var(--fb); color: var(--ink-3); }

.feature { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: 22px; color: var(--tt); position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); height: 100%;
  background: radial-gradient(80% 120% at 0% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--t1), color-mix(in srgb, var(--t1) 70%, #000)); }
.feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px); }
.feature h3 { font-size: clamp(34px, 5vw, 48px); text-transform: uppercase; margin: 0 0 8px; }
.feature p { opacity: .85; max-width: 38ch; }
.feature__crest .crest { --s: 96px; }
@media (min-width: 720px) { .feature__crest .crest { --s: 150px; } }
.feature__shirts { display: flex; gap: 6px; margin: 16px 0; }
.mini-shirt { width: 54px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; } .mini-shirt { width: 46px; } }

.news { display: grid; gap: 16px; }
@media (min-width: 800px) { .news { grid-template-columns: repeat(2, 1fr); } }
.news__i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.news__cover { height: 150px; display: flex; align-items: center; justify-content: center; gap: 18px; background: var(--stage); position: relative; overflow: hidden; isolation: isolate; }
.news__cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 40px, transparent 40px 80px); }
.news__cover--0::after { content: 'VS'; position: absolute; font: 800 22px var(--fc); color: var(--accent); }
.news__cover--0 { gap: 64px; }
.news__cover--1 { background: linear-gradient(135deg, #1d7a35, #0c3f1a); }
.news__body { padding: 16px 18px 20px; }
.news__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.news__body h3 { font-size: 24px; margin: 12px 0 8px; line-height: 1.05; }
.news__body p:last-child { color: var(--ink-2); font-size: 15px; }

/* ============ Tabelle ============ */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sec .tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card .tbl-wrap { border: 0; box-shadow: none; border-radius: 0; }
.tbl th { font: 700 11px/1 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 8px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .c-team { text-align: left; width: 100%; }
.tbl .c-team a, .tbl .c-sq a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.tbl .c-sq { text-align: left; }
.tbl .c-pos { width: 44px; padding-left: 12px; }
.tbl .c-pos span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 800 15px/1 var(--fc); color: var(--ink-2); }
.tbl .c-pt { font: 800 20px/1 var(--fc); color: var(--ink); padding-right: 14px; }
.tbl .c-dr { color: var(--ink-3); }
.tbl tr.z-a .c-pos span { background: var(--accent); color: var(--on-accent); }
.tbl tr.z-b .c-pos span { background: color-mix(in srgb, var(--zone-b) 22%, transparent); color: var(--zone-b); }
.tbl tr.z-semi .c-pos span { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); }
.tbl tr.z-a + tr.z-b td { border-top: 2px dashed var(--line-2); }
.tbl--compact td { padding: 8px 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.legend__i { display: inline-flex; align-items: center; gap: 6px; }
.legend__i i { width: 12px; height: 12px; border-radius: 4px; }
.legend__i.z-a i { background: var(--accent); } .legend__i.z-b i { background: var(--zone-b); } .legend__i.z-semi i { background: var(--gold); }
.card + .note, .card .legend { padding: 0 14px 14px; }
.forma { display: inline-flex; gap: 3px; }
.forma__d { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 700 11px/1 var(--fb); color: #fff; }
.forma__d--V { background: var(--win); } .forma__d--N { background: var(--draw); } .forma__d--P { background: var(--loss); }
@media (max-width: 640px) {
  .hide-s { display: none; }
  .tbl th, .tbl td { padding-left: 5px; padding-right: 5px; }
  .tbl .c-pos { width: 36px; padding-left: 8px; }
  .tbl .c-team a > span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
  .tbl .c-pt { padding-right: 10px; }
}
@media (max-width: 900px) { .hide-m { display: none; } }

/* Tabs e filtri */
.tabs { display: flex; gap: 4px; padding: 4px; margin-top: 18px; background: var(--sunken); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 10px 18px; border-radius: 10px; font: 700 18px/1 var(--fc); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); white-space: nowrap; }
.tab.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.select select { appearance: none; -webkit-appearance: none; font: 600 14px var(--fb); color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237b827d' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 36px 8px 14px; }

/* ============ Partite ============ */
.day { margin-top: 28px; }
.day__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 24px; text-transform: uppercase; margin-bottom: 10px; }
.day__h small { font: 500 14px var(--fb); color: var(--ink-3); text-transform: none; }
.day__h em { font-style: normal; color: var(--accent-ink); font-weight: 700; }
.day__list, .list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.day--next .day__list { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.day__turno { padding: 10px 16px 0; font: 700 13px/1 var(--fb); color: var(--ink-3); }
.day__turno ~ .day__turno { border-top: 1px solid var(--line); padding-top: 14px; }
.mrow { display: grid; grid-template-columns: 72px 1fr 92px 1fr; align-items: center; gap: 12px; padding: 12px 16px; transition: background .12s; }
.mrow + .mrow, .withbadge + .withbadge { border-top: 1px solid var(--line); }
.mrow:hover { background: var(--surface-2); }
.mrow__meta { display: grid; font: 700 16px/1.1 var(--fc); color: var(--ink); }
.mrow__meta small { font: 500 12px var(--fb); color: var(--ink-3); }
.mrow__team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; color: var(--ink); }
.mrow__team--h { justify-content: flex-end; text-align: right; }
.mrow__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__team.is-loss { color: var(--ink-3); font-weight: 500; }
.mrow__team.is-win .mrow__name { font-weight: 700; }
.mrow__mid { display: grid; justify-items: center; gap: 2px; }
.mrow__dcr { font-size: 11px; color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.score { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; background: var(--ink); color: var(--bg); font: 800 22px/1 var(--fc); font-variant-numeric: tabular-nums; }
.score i { font-style: normal; opacity: .5; }
.score--next { background: transparent; color: var(--ink-3); font-size: 18px; padding: 6px 10px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
@media (max-width: 640px) {
  .mrow { grid-template-columns: 52px 1fr auto; grid-template-areas: "meta h hs" "meta a as" "meta d d"; gap: 6px 12px; padding: 12px 14px; }
  .mrow__meta { grid-area: meta; align-self: center; font-size: 15px; }
  .mrow__team--h { grid-area: h; flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
  .mrow__team--a { grid-area: a; }
  .mrow__mid, .mrow__mid .score:not(.score--next) { display: contents; }
  .mrow__mid .score:not(.score--next) i { display: none; }
  .mrow__mid .score:not(.score--next) b { font: 800 22px/1 var(--fc); text-align: right; min-width: 22px; color: var(--ink-3); }
  .mrow:has(.mrow__team--h.is-win) .score b:first-child, .mrow:has(.mrow__team--a.is-win) .score b:last-child, .mrow:not(:has(.is-win)) .score b { color: var(--ink); }
  .mrow__mid .score:not(.score--next) b:first-child { grid-area: hs; }
  .mrow__mid .score:not(.score--next) b:last-child { grid-area: as; }
  .score--next { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .mrow__dcr { grid-area: d; justify-self: end; }
}
.withbadge { position: relative; }
.badge { position: absolute; top: 6px; right: 10px; font: 700 10px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 4px 6px; border-radius: 6px; }

/* Pagina partita */
.match__in { padding-top: 22px; padding-bottom: 36px; text-align: center; }
.match .back { display: block; text-align: left; }
.match__when { color: var(--stage-ink-2); margin-top: 10px; font-weight: 500; }
.match__board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 26px 0 8px; }
.match__team { display: grid; justify-items: center; gap: 12px; transition: opacity .2s; }
.match__team b { font: 700 clamp(18px, 3vw, 30px)/1.05 var(--fc); text-transform: uppercase; }
.match__team.is-loss { opacity: .6; }
.match__score { display: grid; justify-items: center; gap: 8px; }
.score--big { background: none; color: var(--stage-ink); font-size: clamp(72px, 15vw, 132px); padding: 0; gap: clamp(8px, 2vw, 22px); line-height: .85; box-shadow: none; }
.score--big i { opacity: .3; }
.match__vs { font: 800 clamp(40px, 8vw, 72px)/1 var(--fc); color: var(--stage-ink-2); }
.match__dcr { font-weight: 700; color: var(--accent); font-size: 14px; }
.match__status { font: 600 13px/1 var(--fb); color: var(--stage-ink-2); }
.match__scorers { display: grid; grid-template-columns: 1fr 24px 1fr; font-size: 14px; color: var(--stage-ink-2); max-width: 720px; margin: 16px auto 0; }
.match__scorers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.match__scorers ul:first-child { text-align: right; }
.match__scorers ul:last-child { text-align: left; }
.match__scorers a { color: var(--stage-ink); font-weight: 600; }
.match__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; }
.mvp { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--stage-line); height: 44px; }
.mvp b { font: 700 18px/1 var(--fc); text-transform: uppercase; }
.mvp small { color: var(--stage-ink-2); font-size: 13px; }
@media (max-width: 560px) { .match__actions .btn { flex: 1 1 100%; } .mvp { flex: 1 1 100%; justify-content: center; } }

.tl { list-style: none; margin: 0; padding: 12px 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tl::before { content: ''; position: absolute; left: 50%; top: 16px; bottom: 16px; width: 2px; background: var(--line); transform: translateX(-1px); }
.tl__ev { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; padding: 6px 12px; position: relative; }
.tl__min { grid-column: 2; grid-row: 1; justify-self: center; font: 800 15px/1 var(--fc); background: var(--surface); padding: 6px 4px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-2); min-width: 40px; text-align: center; }
.tl__ev--gol .tl__min { background: var(--ink); color: var(--bg); box-shadow: none; }
.tl__body { grid-row: 1; display: flex; align-items: center; gap: 10px; }
.tl__body > span { display: grid; line-height: 1.15; }
.tl__body small { color: var(--ink-3); font-size: 12px; }
.tl__ev--h .tl__body { grid-column: 1; justify-content: flex-start; text-align: right; flex-direction: row-reverse; padding-right: 8px; }
.tl__ev--a .tl__body { grid-column: 3; padding-left: 8px; }
.tl__half { text-align: center; padding: 10px 0; position: relative; }
.tl__half span { display: inline-block; background: var(--sunken); color: var(--ink-2); font: 600 13px/1 var(--fb); padding: 7px 12px; border-radius: 999px; position: relative; }
.tl__half--end span { background: var(--accent); color: var(--on-accent); }

.lineup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.lineup h3 { padding: 14px 16px; font-size: 20px; text-transform: uppercase; border-bottom: 3px solid var(--t1); }
.lineup h3 a { display: flex; gap: 10px; align-items: center; }
.lineup ul { list-style: none; margin: 0; padding: 4px 0; }
.lineup li a { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.lineup li a:hover { background: var(--surface-2); }
.lineup li span:nth-child(2) { font-weight: 600; }
.lineup li small { color: var(--ink-3); font-size: 13px; margin-right: auto; }
.lineup__gol { font-size: 13px; font-weight: 600; }
.lineup__mvp { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 11px/1 var(--fb); letter-spacing: .06em; }

/* ============ Fase finale ============ */
.bracket { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; overflow: hidden; position: relative; }
.bracket--A { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface) 45%); }
.bracket__h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bracket__h h2 { font-size: 34px; text-transform: uppercase; }
.bracket__grid { display: grid; gap: 18px; }
.bracket__col { display: grid; gap: 14px; position: relative; }
.bslot { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); transition: transform .15s; }
.bslot:hover { transform: translateY(-2px); }
.bslot--next { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.bslot__top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.bslot__top span:first-child { font-weight: 700; color: var(--ink-2); }
.bslot__row { display: grid; grid-template-columns: 18px auto 1fr auto; align-items: center; gap: 8px; padding: 5px 0; }
.bslot__row + .bslot__row { border-top: 1px solid var(--line); }
.bslot__seed { font: 700 13px/1 var(--fc); color: var(--ink-3); text-align: center; }
.bslot__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bslot__row b { font: 800 22px/1 var(--fc); font-variant-numeric: tabular-nums; }
.bslot__row sup { font-size: 12px; color: var(--accent-ink); margin-left: 2px; }
.bslot__row.is-loss { color: var(--ink-3); }
.bslot__row.is-loss .bslot__name { font-weight: 500; }
.champ { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px; border-radius: 16px; border: 2px dashed var(--line-2); }
.champ svg { width: 54px; height: 54px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 4px; }
.bracket--B .champ svg { stroke: var(--ink-3); }
.champ small { font-size: 13px; color: var(--ink-3); }
.champ b { font: 800 30px/1 var(--fc); text-transform: uppercase; }
.champ span { font-size: 13px; color: var(--ink-3); }
.champ.is-set { border-style: solid; border-color: var(--gold); }
@media (min-width: 820px) {
  .bracket { padding: 28px; }
  .bracket__grid { grid-template-columns: 1.15fr 1.15fr .8fr; gap: 48px; align-items: center; }
  .bracket__col--semi { gap: 40px; }
  .bracket__col--semi::after { content: ''; position: absolute; right: -25px; top: 25%; bottom: 25%; width: 24px; border: 2px solid var(--line-2); border-left: 0; border-radius: 0 12px 12px 0; }
  .bracket__col--fin::before, .bracket__col--fin::after { content: ''; position: absolute; top: 50%; width: 24px; height: 2px; background: var(--line-2); }
  .bracket__col--fin::before { left: -24px; } .bracket__col--fin::after { right: -48px; width: 48px; }
}

/* ============ Squadre ============ */
.teams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
@media (min-width: 720px) { .teams { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1040px) { .teams { grid-template-columns: repeat(4, 1fr); } }
.tcard { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; isolation: isolate; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tcard__band { position: absolute; inset: 0 0 auto; height: 52%; z-index: -1; background: linear-gradient(160deg, var(--t1), color-mix(in srgb, var(--t1) 75%, #000)); }
.tcard__band::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 10px, transparent 10px 20px); }
.tcard .crest { --s: 76px; }
.tcard b { font: 800 21px/1.05 var(--fc); text-transform: uppercase; margin-top: 6px; }
.tcard__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); font-weight: 600; }
@media (min-width: 720px) { .tcard .crest { --s: 96px; } .tcard b { font-size: 24px; } }

.thero { position: relative; isolation: isolate; overflow: hidden; color: var(--tt); background: linear-gradient(160deg, var(--t1), color-mix(in srgb, var(--t1) 68%, #000)); }
.thero__pattern { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 90% at 85% 10%, rgba(255, 255, 255, .16), transparent 60%),
  repeating-linear-gradient(115deg, color-mix(in srgb, var(--t2) 12%, transparent) 0 18px, transparent 18px 36px); }
.thero__in { padding-top: 22px; padding-bottom: 28px; }
.thero__main { display: flex; align-items: center; gap: 20px; }
.thero__sup { font-weight: 600; font-size: 15px; opacity: .85; }
.thero__sup a { text-decoration: underline; text-underline-offset: 3px; }
.thero h1 { font-size: clamp(44px, 9vw, 96px); text-transform: uppercase; margin-top: 6px; line-height: .9; }
.thero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.thero__chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--tt) 14%, transparent); }
.thero__chips .is-hot { background: var(--accent); color: var(--on-accent); }
.thero__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 0; border-top: 1px solid color-mix(in srgb, var(--tt) 25%, transparent); }
.thero__stats div { padding: 14px 0 0; display: grid; }
.thero__stats dt { order: 2; font-size: 13px; font-weight: 600; opacity: .8; }
.thero__stats dd { margin: 0; font: 800 38px/1 var(--fc); }
.thero__stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 720px) { .thero__stats { grid-template-columns: repeat(6, 1fr); } .thero__stats--4 { grid-template-columns: repeat(4, 1fr); } .thero__in { padding-bottom: 36px; } }
@media (max-width: 560px) { .thero__main { flex-direction: column; align-items: flex-start; } }

.roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .roster { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.pcard { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard__shirt { padding: 18px 22% 12px; background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--t1) 16%, var(--surface-2)), var(--surface-2)); }
.pcard__shirt svg { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); transition: transform .25s; }
.pcard:hover .pcard__shirt svg { transform: translateY(-3px) rotate(-1.5deg); }
.pcard__info { padding: 12px 14px 0; display: grid; }
.pcard__info b { font: 800 22px/1 var(--fc); text-transform: uppercase; }
.pcard__info small { color: var(--ink-3); font-size: 13px; }
.pcard__stats { display: flex; gap: 14px; padding: 8px 14px 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pcard__stats b { font: 800 18px/1 var(--fc); color: var(--ink); margin-right: 4px; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bars a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 6px 4px; border-radius: 8px; }
.bars a:hover { background: var(--surface-2); }
.bars__lbl { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__track { height: 10px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.bars__track span { display: block; height: 100%; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.bars b { font: 800 20px/1 var(--fc); text-align: right; white-space: nowrap; }
.sec > .bars { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; }
.card .bars a { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }

/* Giocatore */
.player { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .player { grid-template-columns: 300px 1fr; gap: 48px; } }
.player__shirt { width: min(260px, 68vw); margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-1deg); } }
.player h1 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.player__num { font-size: .6em; opacity: .5; }
.player__rank { margin-top: 10px; font-weight: 700; display: inline-block; background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.player__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Statistiche */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; margin-top: 24px; }
.podium__i { display: grid; justify-items: center; text-align: center; gap: 2px; }
.podium__shirt { width: 70%; max-width: 150px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .25)); margin-bottom: 8px; transition: transform .2s; }
.podium__i:hover .podium__shirt { transform: translateY(-4px); }
.podium__i b { font: 800 clamp(18px, 3vw, 26px)/1 var(--fc); text-transform: uppercase; }
.podium__i small { color: var(--ink-3); font-size: 13px; margin-bottom: 10px; }
.podium__step { width: 100%; display: grid; place-items: center; gap: 2px; border-radius: 14px 14px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; font: 700 15px/1 var(--fb); color: var(--ink-2); padding-top: 14px; }
.podium__step em { font: 800 clamp(34px, 6vw, 56px)/1 var(--fc); font-style: normal; color: var(--ink); }
.podium__i--1 .podium__step { height: 130px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--surface))); border-color: transparent; color: var(--on-accent); }
.podium__i--1 .podium__step em { color: var(--on-accent); }
.podium__i--2 .podium__step { height: 100px; } .podium__i--3 .podium__step { height: 76px; }
.tbl .c-team .numtag { margin-right: 2px; }

/* Formula */
.flow { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow__i { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); position: relative; }
.flow__n { position: absolute; top: 18px; right: 20px; font: 800 64px/1 var(--fc); color: var(--sunken); }
.flow__i h3 { font-size: 26px; text-transform: uppercase; max-width: 80%; }
.flow__i p { color: var(--ink-2); margin: 10px 0 18px; }
.flow__viz { display: flex; flex-wrap: wrap; gap: 6px; }
.flow__viz i { width: 22px; height: 22px; border-radius: 7px; }
.flow__viz i.a { background: var(--accent); } .flow__viz i.b { background: var(--zone-b); }
.flow__viz--12 i { background: var(--ink-3) !important; opacity: .55; }
.flow__viz--12 i:nth-child(-n+6) { background: var(--ink) !important; opacity: 1; }
.flow__viz--split { gap: 14px; }
.flow__viz--split div { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; align-items: center; }
.flow__viz--split b { font: 700 16px/1 var(--fc); text-transform: uppercase; width: 68px; }
.flow__viz--ko { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 22px 22px; gap: 8px 14px; align-items: center; max-width: 260px; }
.flow__viz--ko span { height: 22px; border-radius: 7px; background: var(--sunken); }
.flow__viz--ko span:nth-child(2) { grid-row: 2; grid-column: 1; }
.flow__viz--ko .fin { grid-column: 2; grid-row: 1 / span 2; background: var(--ink); height: 52px; }
.flow__viz--ko .cup { display: none; }
.rules { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.rules li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rules li:last-child { border: 0; }
.rules b { font: 700 18px/1.2 var(--fc); text-transform: uppercase; }
.rules span { color: var(--ink-2); }
.venue { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.venue__map { display: flex; gap: 14px; justify-content: center; padding: 28px; background: repeating-linear-gradient(90deg, #237a3c 0 26px, #1f7035 26px 52px); }
.venue__field { width: 42%; max-width: 180px; aspect-ratio: 1.6; border: 2px solid rgba(255, 255, 255, .75); border-radius: 4px; position: relative; }
.venue__field::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid rgba(255, 255, 255, .75); }
.venue__field i { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .75); border-radius: 50%; transform: translate(-50%, -50%); }
.venue__body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.venue__body b { font: 800 24px/1.1 var(--fc); text-transform: uppercase; }
.venue__body p { color: var(--ink-2); }
.venue__tel a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Pagine di testo */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; text-transform: uppercase; margin: 28px 0 8px; }
.prose p { color: var(--ink-2); }
.prose .lead { margin-top: 8px; }

/* ============ Modal card social ============ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(4, 8, 6, .72); backdrop-filter: blur(6px); }
.modal__panel { position: relative; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px; max-height: calc(100vh - 32px); overflow: auto; width: min(760px, 100%); animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.sc { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .sc { grid-template-columns: 300px 1fr; } }
.sc__prev { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--stage); display: grid; place-items: center; max-height: 62vh; margin: 0 auto; }
.sc__prev canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc__loading { color: var(--stage-ink-2); font-size: 14px; }
.sc__side h3 { font-size: 30px; text-transform: uppercase; }
.sc__side p { color: var(--ink-2); margin: 8px 0 18px; }
.sc__btns { display: grid; gap: 8px; }

/* ============ Footer ============ */
.footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__in { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.footer b { font: 800 22px var(--fc); text-transform: uppercase; }
.footer p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.footer__credit { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer__in { grid-template-columns: 1fr auto; align-items: start; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============ Sito della squadra ============ */
.brand__crest { width: 40px; height: 40px; flex: none; }
.brand__crest svg { width: 100%; height: 100%; }
.hero__crest { margin-bottom: 18px; }
.hero__crest .crest { --s: 96px; }
@media (min-width: 720px) { .hero__crest .crest { --s: 128px; } }

.teamphoto { margin: 32px 0 0; border-radius: 22px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); background: var(--stage); }
.teamphoto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .teamphoto img { aspect-ratio: 16 / 8; object-position: center 35%; } }
.teamphoto figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 48px 20px 16px; color: #fff; background: linear-gradient(transparent, rgba(4, 8, 6, .85)); }
.teamphoto figcaption b { font: 800 26px/1 var(--fc); text-transform: uppercase; }
.teamphoto figcaption .more { color: #fff; }
.teamphoto--rosa { margin-top: 18px; }
.teamphoto--rosa figcaption { font-size: 14px; line-height: 1.4; }

.avatar { --a: 44px; display: inline-grid; place-items: center; width: var(--a); height: var(--a); border-radius: 50%; overflow: hidden; flex: none; background: var(--sunken); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--vuoto { background: #0a1a0f; }
.avatar--vuoto svg { width: 72%; height: 72%; }
.avatar--sm { --a: 40px; } .avatar--xs { --a: 30px; }
.scorers a { grid-template-columns: 22px auto 1fr auto; }

.pcard__photo { position: relative; aspect-ratio: 1; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--t1) 16%, var(--surface-2)), var(--surface-2)); display: grid; place-items: center; }
.pcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .pcard__photo img { transform: scale(1.04); }
.pcard__photo .pcard__shirt { width: 62%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.pcard__num { position: absolute; left: 10px; bottom: 8px; font: 800 40px/1 var(--fc); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

.esito { font-weight: 700; }
.esito--V { color: var(--win); } .esito--N { color: var(--ink-3); } .esito--P { color: var(--loss); }
.mrow { position: relative; }
.mrow--V::before, .mrow--N::before, .mrow--P::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.mrow--V::before { background: var(--win); } .mrow--N::before { background: var(--draw); } .mrow--P::before { background: var(--loss); }

.tbl tr.is-fav td { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tbl tr.is-fav .c-team__in span { font-weight: 800; }
.tbl .c-team__in { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.tbl .c-ruolo { text-align: left; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) { .tbl .c-team__in > span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 40vw; } }
.bslot__row.is-fav .bslot__name { color: var(--accent-ink); font-weight: 800; }

.tl__ev.is-nostro .tl__body b { color: var(--accent-ink); }
.lineup li a .avatar { margin-right: 2px; }

.player__media { position: relative; display: grid; justify-items: center; }
.player__photo { width: min(240px, 60vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--accent), 0 24px 50px -16px rgba(0, 0, 0, .6); }
.player__photo img { width: 100%; height: 100%; object-fit: cover; }
.player__shirt--mini { position: absolute; right: 4%; bottom: -6%; width: 34%; animation: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.player__nome { font-size: .45em; opacity: .85; align-self: center; }

.podium__photo { width: 64%; max-width: 130px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 10px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line-2); }
.podium__i--1 .podium__photo { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); }
.podium__photo img { width: 100%; height: 100%; object-fit: cover; }

.numeri { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
@media (min-width: 720px) { .numeri { grid-template-columns: repeat(6, 1fr); } }
.numeri div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: grid; }
.numeri dt { order: 2; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.numeri dd { margin: 0; font: 800 40px/1 var(--fc); }
.numeri small { order: 3; font-size: 12px; color: var(--ink-3); }
.demo-pill { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); padding: 3px 9px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.numeri--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 720px) { .numeri--3 { grid-template-columns: repeat(3, 1fr); } }
.step--next b { color: var(--ink-3); }
.attesa .lead { margin-bottom: 16px; }
.sopr { font-size: .8em; color: var(--ink-3); font-weight: 500; }
.roster--top { margin-top: 28px; }

/* Schieramento in campo */
.campo-wrap { display: grid; gap: 18px; align-items: center; }
@media (min-width: 820px) { .campo-wrap { grid-template-columns: minmax(0, 420px) 1fr; gap: 32px; } }
.campo { position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg);
  background: repeating-linear-gradient(180deg, #1f7a3a 0 11%, #1b6f34 11% 22%); border: 3px solid rgba(255, 255, 255, .8); }
.campo i { position: absolute; border: 2px solid rgba(255, 255, 255, .75); }
.campo__centro { left: 50%; top: -2px; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.campo__area { left: 22%; right: 22%; bottom: -2px; height: 26%; border-radius: 50% 50% 0 0 / 70% 70% 0 0; }
.campo__porta { left: 42%; right: 42%; bottom: -2px; height: 2.5%; border-bottom: 0; background: rgba(255, 255, 255, .25); }
.campo__g { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; gap: 2px; width: 120px; color: #fff; }
.campo__g b { font: 800 17px/1 var(--fc); text-transform: uppercase; margin-top: 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.campo__g small { font-size: 12px; line-height: 1.2; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.avatar--campo { --a: 58px; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .4); }
.campo__g:hover .avatar--campo { box-shadow: 0 0 0 3px var(--accent), 0 6px 14px rgba(0, 0, 0, .4); }
.campo__nota { color: var(--ink-2); font-size: 16px; max-width: 52ch; }

/* Avatar illustrati */
.avatar--disegno { background: none; }
.avatar--disegno svg { width: 100%; height: 100%; display: block; }

/* Sponsor */
.sponsor { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-radius: var(--r); background: #fff; color: #2b2b2b; box-shadow: var(--shadow); }
.sponsor__logo img { width: 150px; display: block; }
.sponsor__txt { display: grid; gap: 2px; }
.sponsor__txt small { font: 700 12px/1 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: #c8102e; }
.sponsor__txt b { font: 800 24px/1 var(--fc); text-transform: uppercase; color: #1d1d1d; }
.sponsor__txt span { font-size: 14px; color: #555; }
@media (max-width: 520px) { .sponsor { grid-template-columns: 1fr; justify-items: start; } .sponsor__logo img { width: 170px; } }
.footer__sponsor { display: inline-grid; gap: 6px; justify-items: start; padding: 10px 14px; background: #fff; border-radius: 12px; }
.footer__sponsor small { font: 700 11px/1 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: #c8102e; }
.footer__sponsor img { width: 120px; display: block; }

/* Voto MVP */
.voto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; }
.voto__stato, .voto__info { color: var(--ink-3); font-size: 14px; }
.voto__vince { font: 700 22px/1.1 var(--fc); text-transform: uppercase; }
.voto__vince b { color: var(--accent-ink); }
.voto__avviso { font-weight: 600; color: var(--accent-ink); font-size: 14px; }
.voto__scelte { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.voto__g { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); transition: border-color .15s, transform .15s; }
.voto__g:hover { transform: translateY(-2px); }
.voto__g b { font: 700 15px/1 var(--fc); text-transform: uppercase; }
.voto__g.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.avatar--voto { --a: 58px; }
.voto__ok { justify-self: start; }
.voto__ris { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.voto__ris li { display: grid; grid-template-columns: auto 90px 1fr 28px; align-items: center; gap: 10px; }
.voto__nome { font-weight: 600; }
.voto__barra { height: 10px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.voto__barra span { display: block; height: 100%; border-radius: 999px; background: var(--maglia, #1f8a3c); }
.voto__ris li.is-mio .voto__barra span { background: var(--accent); }
.voto__ris li.is-mio .voto__nome { color: var(--accent-ink); }
.voto__ris b { font: 800 18px/1 var(--fc); text-align: right; }

/* Hero sul verde maglia */
.hero .next { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 60px -30px rgba(0, 40, 15, .7); }
.hero .next::before { display: none; }
.hero .countdown { background: rgba(0, 50, 20, .3); }
.hero__in { padding-bottom: 150px; }
@media (min-width: 960px) { .hero__in { padding-bottom: 150px; } }
@media (max-width: 720px) { .acqua__cerchi { right: -38%; top: 1%; width: 110vw; } }

/* Evidenziazioni: verde maglia sulle superfici, bianco sulle aree verdi (come lo stemma) */
.stage, .thero { --accent: #ffffff; --on-accent: #17702f; --accent-ink: #ffffff; }
.hero__title { color: rgba(255, 255, 255, .8); }
.hero__title em { color: #ffffff; }
.dot-live { background: #fff; }

/* ============ Home premium ============ */
.hx { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: min(88vh, 860px); display: grid; grid-template-rows: 1fr auto; padding: 0 var(--gut);
  background: radial-gradient(120% 80% at 50% 0%, #10301c 0%, #07160d 55%, #040b07 100%); }
.hx::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; z-index: -1; background: linear-gradient(transparent, rgba(4, 11, 7, .9)); }
.ca { position: absolute; z-index: -2; left: 50%; top: 58%; width: max(1500px, 150vw); height: auto; transform: translate(-50%, -50%) perspective(1400px) rotateX(62deg); transform-origin: 50% 50%; }
.ca__linee { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.ca__punto { fill: rgba(255, 255, 255, .35); stroke: none; }
.ca__onda { fill: none; stroke: #2fb35a; stroke-width: 2.5; opacity: 0; transform-box: view-box; animation: ca-onda 9s cubic-bezier(.2, .6, .3, 1) infinite; }
.ca__onda--centro { transform-origin: 800px 450px; }
.ca__onda--sx { transform-origin: 100px 450px; }
.ca__onda--dx { transform-origin: 1500px 450px; }
.ca__onda * { vector-effect: non-scaling-stroke; }
@keyframes ca-onda { 0% { transform: scale(1); opacity: 0; } 8% { opacity: .85; } 100% { transform: scale(3.4); opacity: 0; } }
.ca__onda--sx, .ca__onda--dx { animation-name: ca-onda-area; }
@keyframes ca-onda-area { 0% { transform: scale(1); opacity: 0; } 8% { opacity: .7; } 100% { transform: scale(2.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ca__onda { opacity: .25; } }

.hx__in { align-self: center; display: grid; justify-items: center; text-align: center; padding: 96px 0 40px; }
.hx__crest .crest { --s: 84px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
@media (min-width: 720px) { .hx__crest .crest { --s: 104px; } }
.hx__title { margin: 26px 0 10px; font: 800 clamp(64px, 12.5vw, 176px)/.86 var(--fc); text-transform: uppercase; letter-spacing: .01em; color: #fff; text-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.hx__sub { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .62); letter-spacing: .02em; }

.hx__next { justify-self: center; width: min(760px, 100%); margin-bottom: 36px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 22px; padding: 16px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s; }
.hx__next:hover { background: rgba(255, 255, 255, .07); }
.hx__nextlbl { display: grid; font: 700 13px/1.2 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hx__nextlbl small { font: 500 13px/1.3 var(--fb); letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .55); margin-top: 3px; }
.hx__match { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 20px/1 var(--fc); text-transform: uppercase; white-space: nowrap; min-width: 0; }
.hx__match i { font: 500 13px var(--fb); font-style: normal; text-transform: none; color: rgba(255, 255, 255, .5); }
.hx__match b { overflow: hidden; text-overflow: ellipsis; }
.hx__cd { font-size: 13px; color: rgba(255, 255, 255, .6); text-align: right; }
.hx__cd b { color: #fff; }
@media (max-width: 720px) {
  .hx__next { grid-template-columns: 1fr; text-align: center; justify-items: center; margin-bottom: 24px; }
  .hx__match { font-size: 18px; flex-wrap: wrap; }
  .hx__cd { text-align: center; }
  .ca { width: 260vw; top: 62%; }
}

.steps--hx { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; gap: 0; }
.steps--hx .step { padding: 18px 0 16px; border-radius: 0; border-top: 2px solid transparent; text-align: left; background: none; }
.steps--hx .step--now { border-top-color: var(--accent); background: none; }
.steps--hx .step b { font-size: 15px; letter-spacing: .04em; }
.steps--hx .step small { color: var(--ink-3); }
.steps--hx .step--now small { color: var(--accent-ink); }

.squadra { margin-top: 48px; display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .squadra { grid-template-columns: 1.35fr 1fr; gap: 44px; } }
.squadra__foto { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.squadra__foto img { display: block; width: 100%; height: auto; }
.squadra__txt h2 { font-size: clamp(34px, 4vw, 48px); text-transform: uppercase; }
.squadra__txt > p { color: var(--ink-2); margin: 10px 0 18px; }
.squadra__lista { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.squadra__lista a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.squadra__lista span { display: grid; line-height: 1.15; min-width: 0; }
.squadra__lista b { font-weight: 700; }
.squadra__lista small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squadra__lista em { font: 800 20px/1 var(--fc); font-style: normal; color: var(--ink-3); }
.squadra__lista a:hover b { color: var(--accent-ink); }
.squadra .more { margin-left: 0; }

.sponsor { margin-top: 56px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; grid-template-columns: auto 1fr; padding: 18px 22px; }
.sponsor__logo { background: #fff; border-radius: 12px; padding: 10px 14px; }
.sponsor__logo img { width: 130px; }
.sponsor__txt small { color: var(--ink-3); }
.sponsor__txt span { color: var(--ink-2); font-size: 15px; }
.ca { width: max(1400px, 120vw); top: 60%; }
@media (max-width: 720px) {
  .hx { min-height: 0; }
  .hx__in { padding: 56px 0 36px; }
  .hx__crest .crest { --s: 76px; }
  .ca { width: 230vw; top: 64%; transform: translate(-50%, -50%) perspective(900px) rotateX(58deg); }
}
.footer__sponsor { grid-column: 1 / -1; justify-self: start; justify-items: center; width: fit-content; padding: 8px 12px; border-radius: 10px; }
.footer__sponsor img { width: 96px; }
.hx.is-ferma .ca__onda { animation-play-state: paused; }

/* Il campo è centrato sullo stemma: lo stemma riempie il cerchio di centrocampo. */
.hx { --crest: 104px; }
@media (min-width: 720px) { .hx { --crest: 181px; } }
.hx__crest { position: relative; width: var(--crest); height: var(--crest); }
.hx__crest .crest { --s: var(--crest); position: relative; }
/* raggio del cerchio = raggio esterno dello stemma (48 su 100); nel disegno il raggio è 105 su 1600 */
.hx__crest .ca { position: absolute; left: 50%; top: 50%; width: calc(var(--crest) * .48 * 1600 / 105); max-width: none;
  transform: translate(-50%, -50%) perspective(3200px) rotateX(32deg); }
.hx__in { padding-top: 120px; }
@media (max-width: 720px) { .hx__in { padding-top: 84px; } }

/* Campo intero anche su telefono */
.ca--tel { display: none; }
@media (max-width: 720px) {
  .ca--pc { display: none; }
  .ca--tel { display: inline; }
  .hx { --crest: 26vw; }
  /* raggio del cerchio su telefono: 145 su 1600 unità, pari al raggio esterno dello stemma */
  .hx__crest .ca { width: calc(var(--crest) * .48 * 1600 / 132); }
  .hx__in { padding-top: 64px; }
  .hx__title { margin-top: 34px; }
}


/* Onde d'acqua: anelli bianchi sottili che si allargano e svaniscono lentamente */
.ca__onda { stroke: #fff; stroke-width: 1; animation: ca-onda 10.8s cubic-bezier(.15, .55, .35, 1) infinite; }
.ca__onda--sx, .ca__onda--dx { animation-name: ca-onda-area; }
@keyframes ca-onda { 0% { transform: scale(1); opacity: 0; } 6% { opacity: .55; } 40% { opacity: .22; } 100% { transform: scale(3.6); opacity: 0; } }
@keyframes ca-onda-area { 0% { transform: scale(1); opacity: 0; } 6% { opacity: .4; } 40% { opacity: .14; } 100% { transform: scale(2.4); opacity: 0; } }

.crest--neg svg { filter: none; }
.hx__crest .crest--neg { filter: none; }
/* espansione più contenuta */
@keyframes ca-onda { 0% { transform: scale(1); opacity: 0; } 6% { opacity: .55; } 40% { opacity: .22; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes ca-onda-area { 0% { transform: scale(1); opacity: 0; } 6% { opacity: .4; } 40% { opacity: .14; } 100% { transform: scale(1.7); opacity: 0; } }
/* il bordo dello stemma fa da cerchio di centrocampo: la linea sotto non serve */
.ca__linee .ca--pc, .ca__linee .ca--tel { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ca__onda { display: none; } }

/* Pagina partita: fondo normale del sito, niente fondale verde */
.match.stage { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); --accent: #1f8a3c; --on-accent: #ffffff; --accent-ink: #5fcf7c; }
.match.stage .pitch { display: none; }

/* Profilo giocatore: fondo normale del sito, niente verde a righe */
.thero--player { background: var(--bg); color: var(--ink); --tt: var(--ink) !important; --accent: #1f8a3c; --on-accent: #ffffff; --accent-ink: #1f8a3c; }
.thero--player .thero__pattern { display: none; }
.thero--player .player__photo { box-shadow: 0 0 0 5px #fff, 0 24px 50px -16px rgba(0, 0, 0, .6); }
.thero--player .back { color: var(--ink-3); }
.thero--player .back:hover { color: var(--ink); }
.match .match__when, .match .match__status, .match .match__scorers, .match .back { color: var(--ink-3); }
.match .score--big, .match .match__team b, .match .match__scorers a, .match .mvp b { color: var(--ink); }
.match .match__vs { color: var(--ink-3); }
.match .mvp { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.match .mvp small { color: var(--ink-3); }

/* Sponsor nella barra in alto */
.topbar__act { align-items: center; }
.topbar__sponsor { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 12px; background: #fff; margin-right: 4px; transition: transform .15s; }
.topbar__sponsor:hover { transform: translateY(-1px); }
.topbar__sponsor small { font: 700 9px/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a; }
.topbar__sponsor img { height: 26px; width: auto; display: block; }
@media (max-width: 520px) {
  .topbar__sponsor { height: 36px; padding: 0 8px; margin-right: 0; }
  .topbar__sponsor small { display: none; }
  .topbar__sponsor img { height: 22px; }
}

/* Ultima e prossima partita nell'hero */
.hx__barre { justify-self: center; width: min(1100px, 100%); display: grid; gap: 12px; margin-bottom: 36px; }
@media (min-width: 900px) { .hx__barre { grid-template-columns: 1fr 1fr; } }
.hx__barre .hx__next { width: 100%; margin: 0; grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 10px; }
.hx__barre .hx__next:only-child { grid-column: 1 / -1; justify-self: center; width: min(760px, 100%); }
.hx__match strong { font: 800 26px/1 var(--fc); color: #fff; padding: 0 4px; font-variant-numeric: tabular-nums; }
.hx__nextlbl em { font-style: normal; font-weight: 700; }
.hx .esito--V { color: #5fcf7c; } .hx .esito--P { color: #ff8a8a; } .hx .esito--N { color: rgba(255, 255, 255, .7); }
@media (max-width: 720px) { .hx__barre { margin-bottom: 24px; } .hx__barre .hx__next { padding: 14px 16px; } .hx__match strong { font-size: 22px; } }
