/* Caratteri ospitati sul sito (font variabili, sottoinsieme latino): caricamento immediato e in cache tra le pagine */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 200 700; font-display: swap; src: url(fonts/oswald.woff2) format('woff2') }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope.woff2) format('woff2') }

:root {
    --display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
    --black: #050505;
    --ink: #111214;
    --card: #17181b;
    --line: #2a2b2f;
    --gold: #ffd60a;
    --gold-dim: #b89a06;
    --green: #009246;
    --white: #f4f5f0;
    --red: #ce2b37;
    --muted: #9a9b95;
    --radius: 14px;
    --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box }
[hidden] { display: none !important }

/* Spazio della barra di scorrimento sempre riservato: il layout non si sposta tra pagine corte e lunghe */
html { scroll-behavior: smooth; scrollbar-gutter: stable; background: var(--black); color-scheme: dark }

/* Dissolvenza tra una pagina e l'altra (browser che supportano le View Transitions) */
@view-transition { navigation: auto }
::view-transition-old(root) { animation: vt-out .18s ease both }
::view-transition-new(root) { animation: vt-in .28s ease both }
@keyframes vt-out { to { opacity: 0 } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px) } }
/* Intestazione ferma durante il cambio pagina */
.site-header { view-transition-name: site-header }
::view-transition-group(site-header) { animation: none }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.05;
}

a { color: inherit }

img, svg { display: block; max-width: 100% }

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

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--black); padding: 10px 16px;
    border-radius: 8px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px }

.tri { height: 5px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%) }

.kicker {
    font-size: .78rem; font-weight: 800; letter-spacing: .3em;
    text-transform: uppercase; color: var(--gold);
}

.section { padding: 80px 0 }
.section.alt { background: var(--ink); border-block: 1px solid var(--line) }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem) }

.link-more { color: var(--gold); font-weight: 800; text-decoration: none; white-space: nowrap }
.link-more:hover { text-decoration: underline }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    font: inherit; font-weight: 800; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px) }
.btn svg { width: 20px }
.btn-gold { background: var(--gold); color: var(--black) }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent }
.btn-ghost:hover { background: var(--white); color: var(--black) }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--green) }
.empty { color: var(--muted); padding: 20px 0 }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5, 5, 5, .78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; white-space: nowrap }
.brand b { color: var(--gold) }
.logo-sm { width: 40px; height: 40px; border-radius: 50% }
.nav ul { display: flex; gap: 22px; list-style: none }
.nav ul a { text-decoration: none; font-weight: 600; font-size: .9rem; opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent }
.nav ul a:hover { opacity: 1; color: var(--gold) }
.nav ul a[aria-current="page"] { opacity: 1; color: var(--gold); border-bottom-color: var(--gold) }
.menu-btn { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px }

@media (max-width: 1020px) {
    .nav ul {
        position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
        background: var(--black); border-bottom: 1px solid var(--line);
        transform: translateY(calc(-100% - 68px)); visibility: hidden; transition: transform .3s, visibility .3s;
    }
    .nav ul.open { transform: none; visibility: visible }
    .nav ul a { display: block; padding: 14px 16px; border-top: 1px solid var(--line); border-bottom: 0 }
    .menu-btn { display: block }
    .nav .btn { display: none }
}

/* ===== PAGE HERO (pagine interne) ===== */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 50px; border-bottom: 1px solid var(--line) }
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 300px at 85% 30%, rgba(255, 214, 10, .14), transparent 70%),
        repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 255, 255, .025) 120px 121px);
}
.page-hero .wrap { position: relative }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin: 12px 0 }
.page-hero p { color: #c9cac4; max-width: 640px; font-size: 1.05rem }

/* ===== HOME HERO ===== */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px 400px at 78% 40%, rgba(255, 214, 10, .18), transparent 70%),
        repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 255, 255, .025) 120px 121px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); margin: 18px 0 }
.hero h1 span { color: var(--gold); display: block }
.hero p.lead { font-size: 1.15rem; color: #c9cac4; max-width: 520px; margin-bottom: 30px }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap }
/* Video dorati su fondo nero: "screen" rende trasparente il nero, la maschera sfuma i bordi */
.hero-clip { position: relative; width: 100% }
.hero-clip video { display: block; width: 135%; max-width: none; margin-left: -17.5%; aspect-ratio: 16 / 9; object-fit: cover; mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%) }
.page-hero .hero-bg { position: absolute; top: 5%; right: 0; height: 90%; width: auto; aspect-ratio: 16 / 9; max-width: none; mix-blend-mode: screen; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(transparent, #000 15%, #000 85%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-composite: intersect }
/* Campo di notte (scena reale): su desktop inquadratura intera a destra, sfumata nel nero verso il titolo */
.page-hero:has(.hero-full) { min-height: 380px; display: flex; flex-direction: column; justify-content: center }
.page-hero .hero-full { position: absolute; top: 0; right: 0; height: 100%; width: auto; aspect-ratio: 16 / 9; max-width: none; object-fit: cover; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%) }
/* Scheda partita e telefono: sfondo pieno scurito, il testo sta sopra */
.match-hero .hero-full { inset: 0; width: 100%; aspect-ratio: auto; object-position: 50% 40%; filter: brightness(.35) saturate(.8); -webkit-mask-image: none; mask-image: none }
.page-hero:has(.hero-full).match-hero { min-height: 0; display: block }
@media (max-width: 900px) { .page-hero .hero-full { inset: 0; width: 100%; aspect-ratio: auto; object-position: 50% 45%; filter: brightness(.45) } }
@media (max-width: 700px) { .page-hero .hero-bg { right: -60px; opacity: .35 } }
.crest { width: min(400px, 85%); height: auto; margin-inline: auto; border-radius: 50%; box-shadow: 0 20px 80px rgba(255, 214, 10, .22); animation: float 6s ease-in-out infinite }
@keyframes float { 50% { transform: translateY(-14px) } }

.stats-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--line) }
.stats-strip div { padding: 22px 0 }
.stats-strip strong { font-family: var(--display); font-size: 2.6rem; color: var(--gold); display: block; line-height: 1 }
.stats-strip span { font-size: .85rem; color: var(--muted) }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr }
    .hero-grid > :last-child { order: -1 }
    .crest { width: 200px }
    .hero-clip { max-width: 420px; margin: -20px auto -30px }
    .stats-strip { grid-template-columns: repeat(2, 1fr) }
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: wrap }
.tabs button { font: inherit; font-weight: 800; border: 0; background: none; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--black) }
.tabs.small button { padding: 5px 14px; font-size: .85rem }

/* ===== PARTITE ===== */
.match-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px }
.next .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; text-align: center; margin: 22px 0 }
.team-badge { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; border: 3px solid var(--line) }
.team-badge.us { border-color: var(--gold); background: var(--black) }
.team-badge img { width: 100%; height: 100%; object-fit: contain }
.team-badge .ini { font-family: var(--display); font-size: 1.4rem; color: var(--black) }
.vs { font-family: var(--display); font-size: 1.6rem; color: var(--muted) }
.countdown { display: flex; justify-content: center; gap: 10px }
.countdown div { background: var(--black); border-radius: 10px; padding: 10px 14px; min-width: 70px; text-align: center }
.countdown b { font-family: var(--display); font-size: 1.8rem; display: block; color: var(--gold); line-height: 1.1 }
.countdown small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em }
.meta-line { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px }
.meta-line a { color: var(--gold) }
.cal-actions { display: grid; justify-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line) }
.cal-actions .btn { padding: 11px 18px; font-size: .9rem }
.cal-dl { font-size: .78rem; color: var(--muted) }
.cal-dl:hover { color: var(--gold) }

/* Barra di scorrimento sottile e in tinta, con sfumatura in fondo all'elenco */
.scroll-box, .table-wrap { scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent }
.scroll-box::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { width: 6px; height: 6px }
.scroll-box::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px }
.scroll-box::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track { background: transparent }
.scroll-box {
    -webkit-mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 36px), transparent);
    padding: 14px 6px 24px 0;
}

.side-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.league { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; margin: 14px 0 8px }
.standing { display: block; font-family: 'Manrope'; text-transform: none; font-size: .82rem; color: var(--gold); font-weight: 800; margin-top: 4px }
.scroll-box { position: relative; max-height: 420px; overflow-y: auto; overflow-x: auto; padding-right: 6px }

.fixtures { list-style: none; display: grid; gap: 8px }
.fx {
    position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center;
    padding: 10px 12px 10px 10px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid transparent;
    transition: background .2s, border-color .2s;
}
.fx:hover { background: rgba(255, 255, 255, .05) }
.fx-date { display: grid; place-items: center; height: 52px; border-radius: 10px; background: var(--black); line-height: 1 }
.fx-date b { font-family: var(--display); font-size: 1.45rem; font-weight: 700 }
.fx-date span { font-size: .62rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 2px }
.fx-main { display: grid; gap: 3px; min-width: 0 }
.fx-meta { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em }
.fx-meta .home { color: var(--gold) }
.fx-opp { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; min-width: 0 }
.fx-opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.fx-logo { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center }
.fx-logo img { width: 100%; height: 100%; object-fit: contain }
.fx-logo .ini { font-family: var(--display); font-size: .6rem; color: var(--black) }
.fx.past { opacity: .62 }
.fx.past:hover { opacity: 1 }
.fx.is-next { background: linear-gradient(90deg, rgba(255, 214, 10, .14), rgba(255, 214, 10, .03)); border-color: rgba(255, 214, 10, .35) }
.fx.is-next .fx-date { background: var(--gold); color: var(--black) }
.fx.is-next .fx-date span { color: var(--black) }
.fx.is-next::before { content: "Prossima"; position: absolute; top: -8px; right: 12px; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--black); padding: 2px 8px; border-radius: 999px }

.ha { font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: var(--line); white-space: nowrap; min-width: 52px; text-align: center }
.ha.time { background: transparent; border: 1px solid var(--line); color: var(--white) }
.ha.res-V { background: var(--green) }
.ha.res-P { background: var(--red) }
.ha.res-N { background: #6b6a65 }

/* Riga cliccabile verso la scheda partita */
.fx-hit { position: absolute; inset: 0; border-radius: 12px }
.fx:has(.fx-hit:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px }
.fx-hit:focus-visible { outline: 0 }
.fx:has(.fx-hit):hover { border-color: var(--line); cursor: pointer }

/* Forma: pallini V/N/P */
.form { display: inline-flex; gap: 3px; vertical-align: middle }
.form i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .58rem; font-weight: 800; color: #fff }
.f-V { background: var(--green) } .f-N { background: #6b6a65 } .f-P { background: var(--red) }
b.f-V, b.f-N, b.f-P { background: none; color: var(--white) }
b.f-V { color: #3ecf7f } b.f-P { color: #ff6b75 }
@media (max-width: 520px) { .hide-sm { display: none } .form i { width: 14px; height: 14px; font-size: 0 } }

/* Precedenti nella card della prossima partita */
.h2h { display: grid; justify-items: center; gap: 2px; margin-top: 14px; font-size: .85rem; text-align: center }
.h2h:empty { display: none }
.h2h-title { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold) }
.h2h-sum b { font-family: var(--display); font-size: 1.2rem }
.h2h-last { color: var(--muted); font-size: .78rem }

/* Grafico andamento */
.chart { width: 100%; height: auto; overflow: visible }
.chart .g { stroke: var(--line); stroke-dasharray: 3 4 }
.chart text { fill: var(--muted); font-size: 11px; font-family: 'Manrope', sans-serif; font-weight: 700 }
.chart text.now { fill: var(--gold); font-family: var(--display); font-size: 15px }
.chart polyline { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round }
.chart circle { fill: var(--black); stroke: var(--gold); stroke-width: 3 }

/* ===== SCHEDA PARTITA ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.back-link { display: inline-block; color: var(--gold); font-weight: 800; text-decoration: none; margin-bottom: 18px }
.back-link:hover { text-decoration: underline }
.match-hero { padding-bottom: 40px }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 26px 0 10px; text-align: center }
.sb-team { display: grid; justify-items: center; gap: 4px; min-width: 0 }
.sb-team .team-badge { width: clamp(72px, 16vw, 120px); height: clamp(72px, 16vw, 120px) }
.sb-team strong { font-family: var(--display); text-transform: uppercase; font-size: clamp(1rem, 2.6vw, 1.5rem); line-height: 1.15 }
.sb-team.us strong { color: var(--gold) }
.sb-score { display: grid; justify-items: center; gap: 10px }
.sb-score b { font-family: var(--display); font-size: clamp(3.2rem, 12vw, 6.4rem); line-height: 1; color: var(--white); display: flex; gap: .15em }
.sb-score b i { font-style: normal; color: var(--muted) }
.sb-score.upcoming b { color: var(--gold); font-size: clamp(2.2rem, 8vw, 4rem) }
.sb-score.upcoming span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 800 }
.sb-score .ha { font-size: .8rem; padding: 6px 14px }
.mh-meta { text-align: center; margin: 14px auto 0 !important; color: var(--muted) !important; font-size: .95rem !important }
.mh-meta em { color: var(--gold) }

.match-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start }
.match-col { display: grid; gap: 20px; min-width: 0 }
.card-title { font-size: 1.6rem; margin: 6px 0 14px }
.note-sm { font-size: .75rem; color: var(--muted); margin-top: 10px }
@media (max-width: 860px) { .match-layout { grid-template-columns: 1fr } }

.ev-period { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; display: flex; align-items: center; gap: 10px }
.ev-period::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.ev-period:first-child { margin-top: 0 }
.events { list-style: none; display: grid; gap: 6px }
.ev { display: grid; grid-template-columns: 40px 26px 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025) }
.ev.ours { background: linear-gradient(90deg, rgba(255, 214, 10, .12), rgba(255, 214, 10, .02)) }
.ev-away { direction: rtl } .ev-away > * { direction: ltr }
.ev-away .ev-txt { text-align: right }
.ev-min { font-family: var(--display); color: var(--gold); font-size: 1.05rem }
.ev-ico svg { width: 22px; height: 22px }
.card-ico { display: block; width: 14px; height: 19px; border-radius: 3px; margin-inline: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .5) }
.card-ico.y { background: #ffcf1a } .card-ico.r { background: #e5333f }
.ev-txt small { color: var(--muted); font-weight: 700 }
.ev-score { display: inline-block; margin-inline: 6px; font-family: var(--display); font-size: .85rem; padding: 1px 8px; border-radius: 6px; background: var(--black); color: var(--white) }

.h2h-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px }
.h2h-big div { background: var(--black); border-radius: 12px; padding: 12px; text-align: center; display: grid }
.h2h-big b { font-family: var(--display); font-size: 2.2rem; line-height: 1 }
.h2h-big small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800 }
.h2h-list { list-style: none; display: grid; gap: 6px }
.h2h-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: .88rem }
.h2h-date { display: grid; font-weight: 800; font-size: .8rem; line-height: 1.2 }
.h2h-date small { color: var(--muted); font-weight: 600; font-size: .68rem }
.h2h-teams { display: grid; min-width: 0 }
.h2h-teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9cac4 }
.h2h-teams .ath { color: var(--gold); font-weight: 800 }

.osm { position: relative; height: 260px; border-radius: 12px; overflow: hidden; background: #ddd; margin: 6px 0 14px }
.osm-tiles img { position: absolute; width: 256px; height: 256px; max-width: none }
.osm-pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4) }
.osm-attr { position: absolute; right: 0; bottom: 0; font-size: .65rem; background: rgba(255, 255, 255, .85); color: #222; padding: 1px 6px }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px }
.venue-actions .btn { padding: 11px 18px; font-size: .9rem }
.venue-actions .btn:disabled { opacity: .5; cursor: progress }

.linked-news { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; text-decoration: none }
.linked-news img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px }
.linked-news span { display: grid; gap: 4px }
.linked-news time { color: var(--gold); font-size: .75rem; font-weight: 800; text-transform: uppercase }
.linked-news em { color: var(--gold); font-style: normal; font-weight: 800; font-size: .85rem }
.linked-news:hover strong { text-decoration: underline }

.match-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.match-nav a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .2s }
.match-nav a:hover { border-color: var(--gold-dim) }
.match-nav a.next { text-align: right }
.match-nav small { color: var(--gold); font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em }
.match-nav span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

.story-dialog { border: 0; padding: 18px; background: var(--card); border-radius: var(--radius); margin: auto; max-width: min(440px, 94vw) }
.story-dialog::backdrop { background: rgba(0, 0, 0, .85) }
.story-dialog img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; margin: 0 auto }
.story-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px }
.story-actions .btn { padding: 10px 18px; font-size: .9rem }

/* Mini-card prossime partite (home) */
.next-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.next-mini .card { display: grid; gap: 10px; text-decoration: none; transition: border-color .2s, transform .2s }
.next-mini .card:hover { border-color: var(--gold-dim); transform: translateY(-3px) }
.next-mini .row { display: flex; align-items: center; gap: 12px }
.next-mini .team-badge { width: 48px; height: 48px; margin: 0; border-width: 2px; flex: none }
.next-mini h3 { font-size: 1.15rem }
.next-mini .when { color: var(--gold); font-weight: 800 }
.next-mini .where { color: var(--muted); font-size: .85rem }

@media (max-width: 860px) { .match-grid, .next-mini { grid-template-columns: 1fr } }

/* ===== TABELLE ===== */
.table { width: 100%; border-collapse: collapse; font-size: .88rem }
.table th { text-align: left; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px 6px; position: sticky; top: 0; background: var(--card); white-space: nowrap }
.table th button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit }
.table th button[aria-sort="descending"]::after { content: " ▼"; color: var(--gold) }
.table th button[aria-sort="ascending"]::after { content: " ▲"; color: var(--gold) }
.table td { padding: 9px 6px; border-bottom: 1px solid var(--line) }
.table .c { text-align: center }
.table tr.us td { color: var(--gold); font-weight: 800 }
.table-wrap { overflow-x: auto; max-height: 640px; overflow-y: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card) }

/* ===== FILTRI ===== */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px }
.input {
    font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--card); color: var(--white); min-width: 0;
}
.input:focus { border-color: var(--gold) }
.filters .input[type="search"] { flex: 1 1 240px }
.count { color: var(--muted); font-size: .85rem }

/* Ricerca con icona */
.search { position: relative; flex: 1 1 260px; display: flex }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none }
.search .input { width: 100%; padding-left: 42px; border-radius: 999px }

/* Filtri a pulsanti (al posto dei menu a tendina) */
.chips {
    display: flex; gap: 8px; overflow-x: auto; flex: 1 1 100%; padding: 2px 2px 6px;
    scrollbar-width: none; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.chips::-webkit-scrollbar { display: none }
.chip {
    flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px;
    font: inherit; font-size: .85rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--card); color: #c9cac4; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: #4a4b50; color: var(--white) }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black) }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor }
.chip .n { font-size: .72rem; opacity: .7 }
.chip[data-v="Portiere"] .dot { background: #e8a33a }
.chip[data-v="Difensore"] .dot { background: #2f6fd6 }
.chip[data-v="Centrocampista"] .dot { background: var(--green) }
.chip[data-v="Attaccante"] .dot { background: var(--red) }
.chip[data-v="Mister"] .dot, .chip[data-v="Dirigente"] .dot { background: var(--gold) }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--black) }

/* ===== RUOLI ===== */
.role { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--white) }
.role.Portiere { background: #e8a33a; color: var(--black) }
.role.Difensore { background: #2f6fd6 }
.role.Centrocampista { background: var(--green) }
.role.Attaccante { background: var(--red) }
.role.Mister, .role.Dirigente { background: var(--gold); color: var(--black) }

/* ===== ROSA ===== */
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px }
.player { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 22px }
.player::after { content: ""; position: absolute; right: -24px; top: -24px; width: 110px; height: 110px; border-radius: 50%; background: url(logo.jpg) center/cover; opacity: .08 }
.player .role { justify-self: start }
.player-top { display: flex; gap: 14px; align-items: center }
.player-top > div:last-child { display: grid; gap: 4px; min-width: 0 }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--black); border: 2px solid var(--line) }
.avatar span { font-family: var(--display); font-size: 1.4rem; color: var(--gold) }
.avatar img { width: 100%; height: 100%; object-fit: cover }
.avatar.has-photo { border-color: var(--gold) }
.player h3 { font-size: 1.25rem }
.player .meta { color: var(--muted); font-size: .82rem }
.player dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px }
.player dl div { background: var(--black); border-radius: 10px; padding: 8px 10px }
.player dt { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em }
.player dd { font-family: var(--display); font-size: 1.4rem; color: var(--gold); line-height: 1.1 }
.staff { display: flex; flex-wrap: wrap; gap: 10px }
.staff .card { padding: 12px 16px; display: flex; gap: 10px; align-items: center }
.staff .coach { padding: 16px 22px; border-color: var(--gold-dim); font-size: 1.1rem }

/* ===== STATISTICHE ===== */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px }
.bars { list-style: none; display: grid; gap: 10px; margin-top: 16px }
.bars li { display: grid; grid-template-columns: 22px 1fr 48px; gap: 10px; align-items: center; font-size: .9rem }
.bars .pos { color: var(--muted); font-weight: 800; font-size: .8rem }
.bars .bar { position: relative; height: 30px; border-radius: 6px; background: var(--black); overflow: hidden }
.bars .bar > span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 6px; transform-origin: left; transition: transform 1s ease }
.bars .bar em { position: relative; z-index: 1; font-style: normal; font-weight: 800; padding-left: 10px; line-height: 30px; color: var(--white); text-shadow: 0 1px 3px #000, 0 0 2px #000; white-space: nowrap }
.bars .val { font-family: var(--display); font-size: 1.2rem; color: var(--gold); text-align: right }
@media (max-width: 860px) { .leaders { grid-template-columns: 1fr } }

/* ===== LEGGENDE ===== */
.legends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.legend {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: linear-gradient(160deg, #1d1e22, #0d0d0f); border: 1px solid var(--line);
    padding: 28px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
    transition: transform .3s, border-color .3s;
}
.legend:hover { transform: translateY(-6px); border-color: var(--gold-dim) }
.legend::before { content: ""; position: absolute; top: 18px; right: 18px; width: 90px; height: 90px; background: url(logo.jpg) center/cover; border-radius: 50%; opacity: .12 }
.legend .num { font-family: var(--display); font-size: 3.8rem; color: var(--gold); line-height: 1 }
.legend .what { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 14px }
.legend h3 { font-size: 1.6rem }
.legend p { color: var(--muted); font-size: .9rem }
.legend .tri { position: absolute; left: 0; right: 0; bottom: 0; height: 4px }
@media (max-width: 860px) { .legends { grid-template-columns: 1fr } .legend { min-height: 220px } }

/* ===== STORIA ===== */
.timeline { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px }
.timeline::-webkit-scrollbar { height: 6px }
.timeline::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px }
.step { scroll-snap-align: start; flex: 0 0 240px; border-top: 3px solid var(--gold); padding-top: 18px }
.step .year { font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1 }
.step h3 { font-size: 1.05rem; margin: 8px 0 6px }
.step p { font-size: .9rem; color: var(--muted) }

.prose { max-width: 760px; font-size: 1.05rem; color: #dcddd6 }
.prose p { margin-bottom: 1.1em }
.prose p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 4.2rem; line-height: .85; padding: 6px 10px 0 0; color: var(--gold) }
.prose img { border-radius: 10px; margin: 16px 0; height: auto }
.prose a { color: var(--gold) }
.prose ul { padding-left: 1.2em; margin-bottom: 1em }
.signature { color: var(--gold); font-weight: 800; margin-top: 10px }
.legal h2 { font-size: 1.5rem; margin: 28px 0 10px; color: var(--white) }
.legal p:first-of-type::first-letter { all: unset }
.legal li { margin-bottom: 6px }

/* ===== PALMARÈS ===== */
.trophies { display: flex; flex-wrap: wrap; gap: 10px }
.trophy { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 10px; font-size: .88rem; font-weight: 600 }
.trophy svg { width: 20px; color: var(--gold) }
.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px }
.win { display: grid; gap: 6px; text-align: left; background: linear-gradient(160deg, #22200f, #121212); border-color: #3b3413 }
.win svg { width: 34px; color: var(--gold) }
.win .yr { font-family: var(--display); font-size: 2.2rem; color: var(--gold); line-height: 1 }
.win h3 { font-size: 1.05rem; text-transform: none; font-family: 'Manrope'; font-weight: 800; letter-spacing: 0 }
.placings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.placings h3 { font-size: 1.3rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px }
.placings .medal { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: .95rem; color: var(--black) }
.placings ul { list-style: none; display: grid; gap: 8px }
.placings li { font-size: .92rem; color: #c9cac4; padding-bottom: 8px; border-bottom: 1px solid var(--line) }
@media (max-width: 860px) { .placings { grid-template-columns: 1fr } }

/* ===== GALLERIA ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px }
.gallery button { border: 0; padding: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--card) }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s }
.gallery button:hover img { transform: scale(1.05) }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; margin: auto }
.lightbox::backdrop { background: rgba(0, 0, 0, .9) }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; margin: auto }
.lightbox p { color: var(--white); text-align: center; margin-top: 8px; font-size: .9rem }
.lightbox .lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; cursor: pointer }
.lightbox .lb-prev { left: 12px }
.lightbox .lb-next { right: 12px }
.lightbox .lb-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; cursor: pointer }

/* ===== NOTIZIE ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px }
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; transition: transform .2s, border-color .2s }
.news-card:hover { transform: translateY(-4px); border-color: var(--gold-dim) }
.news-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1f2a22, #0e0f10); overflow: hidden }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover }
.news-card .thumb.noimg { display: grid; place-items: center }
.news-card .thumb.noimg img { width: 70px; height: 70px; border-radius: 50%; opacity: .5 }
.news-card .body { padding: 18px 20px 22px; display: grid; gap: 8px }
.news-card time { color: var(--gold); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em }
.news-card h3 { font-size: 1.2rem; text-transform: none; font-family: 'Manrope'; font-weight: 800; letter-spacing: 0; line-height: 1.3 }
.news-card p { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.more-wrap { display: flex; justify-content: center; margin-top: 32px }

.article { max-width: 780px; margin-inline: auto }
.article .back { display: inline-block; color: var(--gold); text-decoration: none; font-weight: 800; margin-bottom: 20px }
.article h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 10px 0 16px; text-transform: none }
.article .by { color: var(--muted); font-size: .9rem; margin-bottom: 26px }
.article .cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 26px; height: auto }
.article .prose p:first-of-type::first-letter { all: unset }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line) }
.article-nav a { color: var(--gold); text-decoration: none; font-weight: 800; max-width: 45% }

/* ===== INSTAGRAM / COMMUNITY ===== */
.ig-band {
    display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
    border-radius: var(--radius); padding: 36px;
    background: linear-gradient(120deg, rgba(245, 133, 41, .18), rgba(221, 42, 123, .18) 50%, rgba(129, 52, 175, .18)), var(--card);
    border: 1px solid var(--line);
}
.ig-band img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--gold) }
.ig-band h3 { font-size: 1.8rem }
.ig-band p { color: #c9cac4 }
@media (max-width: 860px) { .ig-band { grid-template-columns: 1fr; text-align: center } .ig-band img { margin-inline: auto } }

.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px }
.ig-post { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card) }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s }
.ig-post span {
    position: absolute; inset: auto 0 0 0; display: flex; gap: 6px; align-items: center; padding: 28px 10px 8px;
    font-size: .75rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    opacity: 0; transition: opacity .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-post span svg { width: 14px; flex: none }
.ig-post:hover img { transform: scale(1.06) }
.ig-post:hover span, .ig-post:focus-visible span { opacity: 1 }
@media (max-width: 860px) { .ig-grid { grid-template-columns: repeat(3, 1fr) } }

.community { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.social-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: transform .2s, border-color .2s }
.social-card:hover { transform: translateY(-4px); border-color: var(--gold-dim) }
.social-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center }
.social-card .ico svg { width: 24px }
.social-card h3 { font-size: 1.3rem }
.social-card p { color: var(--muted); font-size: .92rem }
.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af) }
.wa { background: #25d366 }
@media (max-width: 860px) { .community { grid-template-columns: 1fr } }

/* ===== SPONSOR ===== */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px }
.sponsor { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; transition: border-color .2s, transform .2s }
.sponsor:hover { border-color: var(--gold-dim); transform: translateY(-3px) }
.sp-logo { width: 88px; height: 88px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--gold), var(--gold-dim)) }
.sp-logo:has(img) { background: #fff; padding: 6px }
.sp-logo img { width: 100%; height: 100%; object-fit: contain }
.sp-logo span { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--black) }
.sp-body { display: grid; gap: 4px; min-width: 0 }
.sp-type { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) }
.sp-body h3 { font-size: 1.45rem }
.sp-owner { color: #c9cac4; font-size: .9rem }
.sp-addr { color: var(--muted); font-size: .88rem }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.sp-actions a { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--black); transition: border-color .2s, color .2s }
.sp-actions a:hover { border-color: var(--gold); color: var(--gold) }
.sp-actions svg { width: 15px }
@media (max-width: 480px) { .sponsor { grid-template-columns: 64px 1fr } .sp-logo { width: 64px; height: 64px; border-radius: 14px } .sp-logo span { font-size: 1.5rem } }

.map-link { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line) }
.map-link img { width: 100%; height: clamp(220px, 40vw, 380px); object-fit: cover; transition: transform .5s }
.map-link:hover img { transform: scale(1.03) }
.map-link .btn { position: absolute; left: 18px; bottom: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35) }

/* ===== ENTRA IN SQUADRA ===== */
.join { background: var(--gold); color: var(--black) }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center }
.join h2 { font-size: clamp(2.2rem, 5vw, 3.6rem) }
.join .kicker { color: var(--black) }
.join p { font-size: 1.05rem; margin-top: 14px }
.join form { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px }
.join label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; display: grid; gap: 6px }
.join input, .join select {
    font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--card); color: var(--white);
}
.join .note { font-size: .78rem; color: var(--muted) }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr } }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; color: var(--muted); font-size: .9rem }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px }
.site-footer ul { list-style: none; display: grid; gap: 6px }
.site-footer a { text-decoration: none }
.site-footer a:hover { color: var(--gold) }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr } }

.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.wa-float svg { width: 28px; color: #fff }

/* ===== ANIMAZIONI ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease }
.reveal.in { opacity: 1; transform: none }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    *, *::before, *::after { animation: none !important; transition: none !important }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important }
    .reveal { opacity: 1; transform: none }
}
