/* =====================================================================
   MSP Verona — sito pubblico
   Linea grafica "sportiva americana" (demo7): blu notte, azzurro, giallo,
   titoli Barlow Condensed in maiuscolo, fasce diagonali.
   Colori e misure si cambiano dalle variabili qui sotto.
   ===================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
    --notte: #06111f;          /* testata, footer */
    --blu: #0b1d36;            /* pannelli */
    --blu-2: #102847;          /* righe, hover */
    --blu-3: #17345a;          /* bordi su scuro */
    --azzurro: #1ba6ec;        /* colore principale */
    --azzurro-2: #5cc6ff;
    --giallo: #ffb81c;         /* capolista, voce attiva */
    --verde: #22c55e;
    --rosso: #ef4444;
    --grigio: #64748b;
    --sfondo: #edf1f6;         /* area contenuti */
    --carta: #ffffff;
    --testo: #0f1d30;
    --testo-chiaro: #dbe6f3;
    --tenue: #8ea3bf;
    --bordo: #d8e0ea;
    --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --condensato: "Barlow Condensed", "Arial Narrow", sans-serif;
    --larghezza: 1300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--testo); background: var(--sfondo); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azzurro); }
a:hover { color: var(--azzurro-2); }
h1, h2, h3, h4 { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; line-height: 1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.35rem; }
.contenitore { width: min(100% - 2.5rem, var(--larghezza)); margin-inline: auto; }
.sr, .salta:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta:focus { position: fixed; top: .5rem; left: .5rem; z-index: 200; background: #fff; padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 2px; }
.condensato { font-family: var(--condensato); }

/* --- Ticker "LIVE" ------------------------------------------------------ */
.ticker { display: flex; align-items: stretch; background: var(--azzurro); color: var(--notte); font-family: var(--condensato); font-weight: 700; font-size: .95rem; letter-spacing: .02em; overflow: hidden; }
.ticker__live { flex: none; background: var(--notte); color: var(--azzurro); padding: .4rem 1.1rem; display: flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .12em; }
.ticker__live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--giallo); animation: lampeggio 1.4s infinite; }
.ticker__finestra { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__nastro { display: flex; width: max-content; animation: scorri 60s linear infinite; }
.ticker:hover .ticker__nastro { animation-play-state: paused; }
.ticker a { color: inherit; text-decoration: none; white-space: nowrap; padding: 0 1.1rem; border-right: 2px solid rgb(6 17 31 / .25); }
@keyframes scorri { to { transform: translateX(-50%); } }
@keyframes lampeggio { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .ticker__nastro, .ticker__live::before { animation: none; } }

/* --- Testata ------------------------------------------------------------ */
.testata { background: var(--notte); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--azzurro); }
.testata__riga { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.logo { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; flex: none; }
.logo:hover { color: #fff; }
.logo img { height: 46px; width: auto; }
.logo__segno { font-family: var(--condensato); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -.02em; font-style: italic; }
.logo__testo { display: flex; flex-direction: column; line-height: 1; }
.logo__testo strong { font-family: var(--condensato); font-size: 1.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.logo__testo small { font-family: var(--condensato); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--giallo); margin-top: .3rem; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; align-items: center; gap: .15rem; }
.menu > ul > li { position: relative; }
.menu a { display: block; color: #c9d6e6; text-decoration: none; font-family: var(--condensato); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; padding: 1.55rem .85rem; position: relative; }
.menu a:hover { color: #fff; }
.menu > ul > li > a[aria-current] { color: #fff; }
.menu > ul > li > a[aria-current]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -3px; height: 3px; background: var(--azzurro-2); }
.menu .menu__cta > a { background: var(--azzurro); color: var(--notte); padding: .75rem 1.5rem; margin-left: 1rem; transform: skewX(-12deg); }
.menu .menu__cta > a > span { display: inline-block; transform: skewX(12deg); }
.menu .menu__cta > a:hover { background: var(--giallo); color: var(--notte); }
.menu .ha-figli > ul { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--blu); border-top: 3px solid var(--azzurro); box-shadow: 0 18px 40px rgb(0 0 0 / .35); padding: .4rem 0; display: none; }
.menu .ha-figli:hover > ul, .menu .ha-figli:focus-within > ul { display: block; }
.menu .ha-figli > ul a { padding: .6rem 1.1rem; font-size: .98rem; }
.menu .ha-figli > ul a:hover { background: var(--blu-2); }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; width: 28px; height: 3px; background: #fff; margin: 6px 0; transition: .2s; }
@media (max-width: 1100px) {
    .menu-toggle { display: block; }
    .menu { position: fixed; inset: 81px 0 0; background: var(--notte); overflow-y: auto; padding: 1rem 1.25rem 2rem; display: none; }
    .menu.aperto { display: block; }
    .menu > ul { flex-direction: column; align-items: stretch; }
    .menu a { padding: .9rem .5rem; font-size: 1.3rem; border-bottom: 1px solid var(--blu-3); }
    .menu > ul > li > a[aria-current]::after { display: none; }
    .menu > ul > li > a[aria-current] { color: var(--azzurro-2); }
    .menu .ha-figli > ul { position: static; display: block; background: none; box-shadow: none; border: 0; padding-left: 1rem; }
    .menu .menu__cta > a { margin: 1rem 0 0; text-align: center; transform: none; }
    .menu .menu__cta > a > span { transform: none; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* --- Testata di pagina (hero) -------------------------------------------- */
.hero-pagina { position: relative; overflow: hidden; color: #fff; padding: 3.2rem 0 2.6rem;
    background:
        repeating-linear-gradient(135deg, rgb(255 255 255 / .022) 0 2px, transparent 2px 46px),
        linear-gradient(120deg, var(--notte) 0%, var(--blu) 60%, #0e2748 100%); }
.hero-pagina .contenitore { position: relative; z-index: 1; }
.hero-pagina__filigrana { position: absolute; right: 2%; bottom: -.12em; font-family: var(--condensato); font-weight: 800; font-size: clamp(7rem, 16vw, 15rem); line-height: 1; color: rgb(255 255 255 / .045); pointer-events: none; user-select: none; }
.briciole ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 1.1rem; padding: 0; font-family: var(--condensato); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.briciole li + li::before { content: "/"; margin: 0 .55rem; color: var(--tenue); }
.briciole a { color: var(--azzurro); text-decoration: none; }
.briciole a:hover { color: var(--azzurro-2); }
.briciole [aria-current] { color: #fff; }
.hero-pagina h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 800; line-height: .92; margin: 0; letter-spacing: -.01em; }
.hero-pagina h1 .evidenza { display: block; color: var(--azzurro); }
.hero-pagina__sotto { font-family: var(--condensato); font-weight: 600; font-size: 1.2rem; color: #b8c7da; margin: 1.1rem 0 0; }
.schede { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.schede a { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; color: #c9d6e6; text-decoration: none; border: 2px solid var(--blu-3); padding: .55rem 1.2rem; }
.schede a:hover { border-color: var(--azzurro); color: #fff; }
.schede a[aria-current] { border-color: var(--azzurro); color: var(--azzurro); background: rgb(27 166 236 / .08); }

/* --- Pulsanti ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .98rem; padding: .8rem 1.6rem; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: .15s; }
.btn--azzurro { background: var(--azzurro); color: var(--notte); }
.btn--azzurro:hover { background: var(--azzurro-2); color: var(--notte); }
.btn--giallo { background: var(--giallo); color: var(--notte); }
.btn--giallo:hover { background: #ffc94d; color: var(--notte); }
.btn--contorno { border-color: currentColor; color: #fff; background: transparent; }
.btn--contorno:hover { background: #fff; color: var(--notte); }
.btn--scuro { background: var(--blu); color: #fff; }
.btn--scuro:hover { background: var(--blu-2); color: #fff; }
.btn--piccolo { padding: .45rem .9rem; font-size: .85rem; }
.pulsanti { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.btn--primario { background: var(--azzurro); color: var(--notte); }
.btn--primario:hover { background: var(--azzurro-2); color: var(--notte); }
.etichetta { display: inline-block; font-family: var(--condensato); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .55rem; background: rgb(27 166 236 / .14); color: var(--azzurro); }
.etichetta--avviso { background: rgb(239 68 68 / .15); color: var(--rosso); }
.etichetta--ok { background: transparent; border: 1.5px solid var(--verde); color: var(--verde); }
.etichetta--ok::before { content: "● "; }

/* --- Area contenuti ------------------------------------------------------- */
.corpo { padding: 2.5rem 0 4rem; }
.colonne { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.6rem; align-items: start; }
@media (max-width: 1100px) { .colonne { grid-template-columns: 1fr; } }
.principale > * + * { margin-top: 1.6rem; }
.laterale > * + * { margin-top: 1.6rem; }

/* Riquadri statistici */
.riquadri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .riquadri { grid-template-columns: repeat(2, 1fr); } }
.riquadro { background: var(--blu); color: #fff; border-top: 3px solid var(--azzurro); padding: 1.2rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.riquadro--giallo { border-top-color: var(--giallo); }
.riquadro__etichetta { font-family: var(--condensato); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
.riquadro__valore { font-family: var(--condensato); font-weight: 700; font-size: 2.35rem; line-height: 1; color: var(--azzurro); margin: .3rem 0 .2rem; }
.riquadro--giallo .riquadro__valore { color: var(--giallo); }
.riquadro__nota { font-family: var(--condensato); font-weight: 700; font-size: 1.05rem; color: #fff; }
.riquadro__nota a { color: #fff; text-decoration: none; }
.riquadro__nota a:hover { color: var(--azzurro-2); }
.riquadro__nota--ok { color: var(--verde); font-size: .9rem; }
.riquadro__nota--tenue { color: var(--tenue); font-size: .9rem; }

/* Pannelli scuri */
.pannello { background: var(--blu); color: var(--testo-chiaro); border-top: 3px solid var(--azzurro); }
.pannello--giallo { border-top-color: var(--giallo); }
.pannello__testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 1.5rem 1.1rem; border-bottom: 1px solid var(--blu-3); }
.pannello__testa h2, .pannello__testa h3 { color: #fff; margin: 0; font-size: 1.75rem; }
.pannello__testa h3 { font-size: 1.4rem; display: flex; align-items: center; gap: .55rem; }
.pannello__testa .link-tutto { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; text-decoration: none; }
.occhiello { display: flex; align-items: center; gap: .6rem; font-family: var(--condensato); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azzurro); margin: 0 0 .35rem; }
.occhiello::before { content: ""; width: 1.6rem; height: 2px; background: var(--azzurro); }
.pannello__corpo { padding: 1.4rem 1.5rem; }
.pannello__piede { padding: 1rem 1.5rem; border-top: 1px solid var(--blu-3); display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--condensato); font-weight: 600; font-size: .92rem; color: var(--tenue); }
.vuoto { color: var(--tenue); font-style: italic; padding: 1.2rem 1.5rem; margin: 0; }

/* Tabelle sportive (su fondo scuro) */
.tabella-scorrevole { overflow-x: auto; }
.tabella { width: 100%; border-collapse: collapse; font-family: var(--condensato); font-weight: 600; font-size: 1.05rem; color: var(--testo-chiaro); }
.tabella thead th { background: var(--notte); color: var(--tenue); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .9rem .6rem; text-align: left; }
.tabella td, .tabella tbody th { padding: .8rem .6rem; border-bottom: 1px solid var(--blu-3); text-align: left; vertical-align: middle; }
.tabella tbody tr:hover { background: var(--blu-2); }
.tabella .num { text-align: center; width: 1%; white-space: nowrap; padding-inline: .7rem; }
.tabella a { color: #fff; text-decoration: none; }
.tabella a:hover { color: var(--azzurro-2); }
.tabella .squadra { font-weight: 700; font-size: 1.12rem; color: #fff; white-space: nowrap; }
.tabella .squadra-cella { display: flex; align-items: center; gap: .75rem; }
.tabella .punti { font-size: 1.6rem; font-weight: 700; color: var(--azzurro); }
.tabella .verde { color: var(--verde); }
.tabella .rosso { color: var(--rosso); }
.tabella .tenue { color: var(--tenue); }
.tabella tr.primo { background: rgb(255 184 28 / .07); }
.tabella tr.primo .punti { color: var(--giallo); }
.tabella tr.ultimo { box-shadow: inset 3px 0 var(--rosso); }
.pos { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1.5px solid var(--azzurro); color: var(--azzurro); font-weight: 700; font-size: 1.1rem; }
.primo .pos { background: var(--giallo); border-color: var(--giallo); color: var(--notte); }
.stemma { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid var(--blu-3); background: var(--notte); color: var(--azzurro-2); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.primo .stemma { color: var(--giallo); border-color: rgb(255 184 28 / .5); }
.forma { display: flex; gap: .3rem; justify-content: center; }
.forma span { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; font-size: .78rem; font-weight: 800; color: #fff; }
.f-V { background: var(--verde); }
.f-N { background: var(--grigio); }
.f-P { background: var(--rosso); }
.f-vuoto { background: var(--blu-3); }
.legenda { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.legenda span { display: inline-flex; align-items: center; gap: .45rem; }
.legenda i { width: .8rem; height: .8rem; display: inline-block; }
.risultato { font-family: var(--condensato); font-weight: 700; font-size: 1.3rem; color: #fff; white-space: nowrap; }

/* Elenco partite (ultima giornata, calendario) */
.partite { list-style: none; margin: 0; padding: 0; }
.partita { display: grid; grid-template-columns: 7.5rem 1fr 5.5rem 1fr 9rem; align-items: center; gap: 1rem; padding: .95rem 1.5rem; border-bottom: 1px solid var(--blu-3); font-family: var(--condensato); }
.partita:last-child { border-bottom: 0; }
.partita__quando { font-weight: 600; font-size: .9rem; color: var(--tenue); text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.partita__quando strong { display: block; color: var(--testo-chiaro); font-size: 1rem; }
.partita__squadra { font-weight: 700; font-size: 1.12rem; color: #fff; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.partita__squadra a { color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partita__squadra a:hover { color: var(--azzurro-2); }
.partita__squadra--casa { justify-content: flex-end; text-align: right; }
.partita__ris { text-align: center; font-weight: 700; font-size: 1.45rem; color: #fff; background: var(--notte); padding: .2rem .4rem; }
.partita__ris--vs { color: var(--tenue); font-size: 1rem; letter-spacing: .1em; }
.partita__ris.vince-casa, .partita__ris.vince-ospite { color: #fff; }
.partita__dove { font-size: .85rem; color: var(--tenue); text-align: right; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.partita__nota { grid-column: 1 / -1; color: var(--giallo); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-top: -.4rem; }
.giornata-titolo { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--azzurro); background: var(--notte); padding: .65rem 1.5rem; margin: 0; }
@media (max-width: 760px) {
    .partita { grid-template-columns: 1fr 4.5rem 1fr; padding: .9rem 1rem; gap: .6rem; }
    .partita__quando, .partita__dove { grid-column: 1 / -1; text-align: left; }
    .partita__dove { order: 5; }
    .partita__squadra { font-size: 1rem; }
}

/* Statistiche a righe */
.dati { list-style: none; margin: 0; padding: 0; }
.dati li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.5rem; border-bottom: 1px solid var(--blu-3); font-family: var(--condensato); font-weight: 600; font-size: 1.05rem; }
.dati li:last-child { border-bottom: 0; }
.dati li span { color: var(--tenue); text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; }
.dati li strong { color: #fff; text-align: right; }
.dati li strong em { font-style: normal; color: var(--azzurro); margin-left: .35rem; }

/* Barra laterale: elenco link */
.lista-link { list-style: none; margin: 0; padding: .4rem 1.5rem 1rem; }
.lista-link li { border-bottom: 1px solid var(--blu-3); }
.lista-link li:last-child { border-bottom: 0; }
.lista-link a { display: flex; align-items: center; gap: .75rem; padding: .78rem 0; color: var(--testo-chiaro); text-decoration: none; font-family: var(--condensato); font-weight: 600; font-size: 1.12rem; }
.lista-link a:hover { color: #fff; }
.lista-link a[aria-current] { color: var(--giallo); }
.lista-link svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--azzurro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lista-link a[aria-current] svg { stroke: var(--giallo); }
.icona { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--azzurro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Carte chiare (news, pagine di testo) ------------------------------------ */
.carta { background: var(--carta); border: 1px solid var(--bordo); }
.carta--corpo { padding: clamp(1.4rem, 3vw, 2.5rem); }
.griglia { display: grid; gap: 1.4rem; }
.griglia--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.griglia--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.griglia--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card-news { background: var(--carta); border: 1px solid var(--bordo); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card-news:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(6 17 31 / .12); }
.card-news__img { aspect-ratio: 16 / 9; background: var(--blu) center / cover; position: relative; display: block; }
.card-news__img img { width: 100%; height: 100%; object-fit: cover; }
.card-news__img .etichetta { position: absolute; left: 1rem; bottom: -.75rem; background: var(--azzurro); color: var(--notte); }
.card-news__corpo { padding: 1.4rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-news__data { font-family: var(--condensato); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grigio); }
.card-news h3 { font-size: 1.45rem; margin: 0; line-height: 1.05; }
.card-news h3 a { color: var(--testo); text-decoration: none; }
.card-news h3 a:hover { color: var(--azzurro); }
.card-news p { margin: 0; color: #46566b; font-size: .97rem; }
.link-freccia { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; text-decoration: none; margin-top: auto; }

.card-link { display: block; text-decoration: none; background: var(--blu); color: var(--testo-chiaro); border-top: 3px solid var(--azzurro); padding: 1.4rem 1.4rem 1.2rem; transition: .15s; }
.card-link:hover { background: var(--blu-2); color: #fff; }
.card-link h3 { color: #fff; margin: .5rem 0 .4rem; font-size: 1.5rem; }
.card-link p { margin: 0 0 .8rem; color: var(--tenue); font-size: .97rem; }

.testo { font-size: 1.07rem; line-height: 1.7; }
.testo h2 { margin: 1.5em 0 .5em; }
.testo h3 { margin: 1.3em 0 .4em; }
.testo img { margin: 1rem 0; }
.testo table { border-collapse: collapse; width: 100%; }
.testo td, .testo th { border: 1px solid var(--bordo); padding: .5rem; }
.testo blockquote { border-left: 4px solid var(--azzurro); margin: 1.5rem 0; padding: .6rem 1.3rem; background: var(--sfondo); }
.testo a { color: #0a7fc0; }
.immagine-pagina { width: 100%; margin-bottom: 1.6rem; }

.filtri { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filtri a { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; padding: .5rem 1.1rem; background: var(--carta); border: 1px solid var(--bordo); color: var(--testo); text-decoration: none; }
.filtri a:hover { border-color: var(--azzurro); }
.filtri a[aria-current] { background: var(--blu); border-color: var(--blu); color: var(--azzurro); }

.allegati { margin-top: 2rem; }
.allegati h2 { font-size: 1.5rem; }
.allegati ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.allegati a { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--bordo); background: var(--sfondo); color: var(--testo); text-decoration: none; font-weight: 600; }
.allegati a:hover { border-color: var(--azzurro); }
.allegati small { display: block; color: var(--grigio); font-weight: 400; }
.allegati__tipo { background: var(--blu); color: var(--azzurro); font-family: var(--condensato); font-weight: 700; font-size: .8rem; padding: .45rem .5rem; min-width: 3rem; text-align: center; }

.paginazione { display: flex; justify-content: center; gap: .4rem; margin-top: 2.2rem; flex-wrap: wrap; font-family: var(--condensato); font-weight: 700; }
.paginazione a, .paginazione span { padding: .5rem .95rem; border: 1px solid var(--bordo); background: var(--carta); color: var(--testo); text-decoration: none; }
.paginazione span { background: var(--blu); color: var(--azzurro); border-color: var(--blu); }

.elenco-documenti { list-style: none; margin: 0; padding: 0; }
.elenco-documenti li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.5rem; border-bottom: 1px solid var(--blu-3); font-family: var(--condensato); font-weight: 600; font-size: 1.1rem; }
.elenco-documenti a { color: #fff; text-decoration: none; }
.elenco-documenti a:hover { color: var(--azzurro-2); }
.elenco-documenti time { color: var(--tenue); font-size: .95rem; }

.contatti { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; margin-top: 2rem; }
.contatti__mappa { width: 100%; aspect-ratio: 4 / 3; border: 0; }
@media (max-width: 800px) { .contatti { grid-template-columns: 1fr; } }
.rassegna { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.rassegna li { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--bordo); }
.rassegna time { color: var(--grigio); font-family: var(--condensato); font-weight: 600; }

/* --- Rosa (pagina squadra) ----------------------------------------------------- */
.rosa-gruppo + .rosa-gruppo { border-top: 1px solid var(--blu-3); }
.rosa-gruppo h3 { font-size: .9rem; letter-spacing: .14em; color: var(--azzurro); padding: 1rem 1.5rem .2rem; margin: 0; display: flex; gap: .5rem; }
.rosa-gruppo h3 small { color: var(--tenue); }
.rosa { list-style: none; margin: 0; padding: .3rem 1.5rem 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .2rem 1.5rem; }
.rosa a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--blu-3); color: #fff; text-decoration: none; font-family: var(--condensato); font-weight: 600; font-size: 1.12rem; }
.rosa a:hover { color: var(--azzurro-2); }
.rosa a small { color: var(--tenue); font-size: .9rem; white-space: nowrap; }
.esito { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-weight: 800; font-size: .85rem; color: #fff; }

/* --- Home --------------------------------------------------------------------- */
.hero { position: relative; background: var(--notte); color: #fff; overflow: hidden; }
.hero__binario { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__binario::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(460px, 72vh, 680px); display: flex; align-items: center; padding: 4rem 0 6rem;
    background:
        linear-gradient(90deg, rgb(6 17 31 / .96) 0%, rgb(6 17 31 / .7) 55%, rgb(6 17 31 / .25)),
        repeating-linear-gradient(135deg, rgb(255 255 255 / .025) 0 2px, transparent 2px 46px),
        var(--sfondo-slide, linear-gradient(120deg, var(--notte), var(--blu))) center / cover; }
.hero__occhiello { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--giallo); margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem; }
.hero__occhiello::before { content: ""; width: 2.4rem; height: 3px; background: var(--giallo); }
.hero__titolo { font-size: clamp(3.2rem, 8.5vw, 7rem); font-weight: 800; line-height: .88; margin: 0; max-width: 13ch; }
.hero__titolo em { font-style: normal; color: var(--azzurro); }
.hero__testo { font-size: 1.2rem; max-width: 52ch; color: #c3d1e2; margin: 1.3rem 0 0; }
.hero__punti { position: absolute; bottom: 5.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero__punti button { width: 2.2rem; height: 4px; border: 0; background: rgb(255 255 255 / .3); padding: 0; cursor: pointer; }
.hero__punti button[aria-selected="true"] { background: var(--azzurro); }
.numeri { position: relative; z-index: 2; margin-top: -3.5rem; }
.numeri .riquadro { text-align: left; }
.sezione { padding: 3.5rem 0; }
.sezione__testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sezione__testa h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.sezione__testa .link-freccia { margin: 0; }
.sezione--scura { background: var(--notte); color: var(--testo-chiaro); }
.sezione--scura h2 { color: #fff; }
.sport-card .card-link { height: 100%; position: relative; overflow: hidden; }
.sport-card__sigla { position: absolute; right: .6rem; bottom: -.6rem; font-family: var(--condensato); font-weight: 800; font-size: 5rem; line-height: 1; color: rgb(255 255 255 / .05); }
.cta { background: var(--giallo); color: var(--notte); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(6 17 31 / .05) 0 2px, transparent 2px 40px); pointer-events: none; }
.cta__riga { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 3rem 0; position: relative; z-index: 1; }
.cta h2 { margin: 0 0 .3rem; font-size: clamp(2rem, 4vw, 3rem); }
.cta p { margin: 0; font-weight: 500; }
.cta .btn--scuro { background: var(--notte); }
.partner { text-align: center; }
.partner h2 { font-size: 1rem; letter-spacing: .2em; color: var(--grigio); }
.partner ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3.5rem; font-family: var(--condensato); font-weight: 700; font-size: 1.4rem; color: var(--grigio); }
.partner a { color: inherit; text-decoration: none; }
.partner img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .7; transition: .2s; }
.partner a:hover img { filter: none; opacity: 1; }

/* --- Footer ---------------------------------------------------------------- */
.piede { background: var(--notte); color: var(--tenue); border-top: 3px solid var(--azzurro); padding-top: 3.5rem; }
.piede a { color: var(--testo-chiaro); text-decoration: none; }
.piede a:hover { color: var(--azzurro-2); }
.piede__griglia { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.2rem; padding-bottom: 2.8rem; }
.piede h2 { color: #fff; font-size: 1.15rem; letter-spacing: .12em; margin-bottom: 1rem; }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede__colonna li { margin-bottom: .45rem; font-family: var(--condensato); font-weight: 600; font-size: 1.05rem; }
.piede address { font-style: normal; margin: 1.2rem 0; line-height: 1.7; }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { border: 1.5px solid var(--blu-3); padding: .3rem .85rem; font-family: var(--condensato); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.social a:hover { border-color: var(--azzurro); }
.piede__fondo { border-top: 1px solid var(--blu-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.3rem 0; font-size: .9rem; }
.piede__fondo p { margin: 0; }
.piede__fondo ul { display: flex; gap: 1.5rem; }
@media (max-width: 1000px) { .piede__griglia { grid-template-columns: 1fr 1fr; } .piede__contatti { grid-column: 1 / -1; } }

/* --- Errori -------------------------------------------------------------------- */
.errore-pagina { text-align: center; padding: 5rem 0; }
.errore-pagina__codice { font-family: var(--condensato); font-weight: 800; font-size: 8rem; line-height: 1; color: var(--azzurro); margin: 0; }

/* --- Comunicato ufficiale (pagina web) ----------------------------------------- */
.comunicato { color: var(--testo); }
.c-girone, .c-serie { margin-bottom: 2.6rem; }
.c-titolo { font-size: 1.8rem; margin: 0; }
.c-sottotitolo { font-family: var(--condensato); font-weight: 700; color: var(--grigio); margin: .3rem 0 1rem; text-transform: uppercase; letter-spacing: .06em; }
.c-squadre { font-size: .95rem; color: var(--grigio); }
.c-cap { font-family: var(--condensato); font-weight: 700; text-transform: uppercase; font-size: .9rem; letter-spacing: .1em; padding: .55rem .9rem; background: var(--blu); color: var(--azzurro); }
.c-tabella { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .97rem; background: var(--carta); }
.c-tabella th { background: var(--sfondo); font-family: var(--condensato); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .5rem .6rem; text-align: left; }
.c-tabella td { padding: .5rem .75rem; border-bottom: 1px solid var(--bordo); }
.c-num, .c-ris { text-align: center; white-space: nowrap; }
.c-ris { font-weight: 800; font-family: var(--condensato); font-size: 1.1rem; }
.c-sq { width: 40%; }
.c-sq2 { width: 28%; }
.c-nome { width: 36%; }
.c-vuoto { color: var(--grigio); font-style: italic; text-align: center; }
.c-nota { font-size: .95rem; margin: -1rem 0 1.5rem; }
.c-piccolo { font-size: .85rem; color: var(--grigio); }
.c-colonne { width: 100%; border-collapse: collapse; }
.c-colonna { width: 50%; vertical-align: top; padding: 0; }
.c-colonna:first-child { padding-right: 1rem; }
.c-comunicazioni { border-left: 4px solid var(--azzurro); background: var(--sfondo); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
@media (max-width: 760px) { .c-colonna { display: block; width: 100%; padding: 0 !important; } }

/* --- Area dirigenti ------------------------------------------------------------ */
.area-dirigenti__barra { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.area-dirigenti__barra .filtri { margin: 0; }
.area-dirigenti__utente { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-family: var(--condensato); font-weight: 700; font-size: 1.05rem; }
.area-dirigenti__utente form { margin: 0; }
.area-dirigenti__utente select { padding: .45rem; border: 1px solid var(--bordo); font: inherit; font-weight: 600; max-width: 380px; }
.link-esci { background: none; border: 0; color: #0a7fc0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
.avviso { padding: .95rem 1.15rem; margin: 0 0 1.4rem; font-weight: 600; border-left: 4px solid; }
.avviso ul { margin: 0; padding-left: 1.2rem; }
.avviso--successo { background: #e3f7ec; color: #11703f; }
.avviso--errore { background: #fdeaea; color: #b42323; }
.avviso--info { background: #fff5dc; color: #855800; }
.modulo-sito { display: grid; gap: 1rem; }
.login-dirigenti { max-width: 460px; margin: 0 auto; }
.campo-sito { display: flex; flex-direction: column; gap: .3rem; font-family: var(--condensato); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.campo-sito input, .campo-sito select { font: 500 1rem var(--font); text-transform: none; letter-spacing: 0; padding: .7rem .8rem; border: 1px solid var(--bordo); background: #fff; }
.nota { font-size: .95rem; color: var(--grigio); }
.tabella-chiara { width: 100%; border-collapse: collapse; background: var(--carta); font-size: .97rem; }
.tabella-chiara th { background: var(--blu); color: var(--testo-chiaro); font-family: var(--condensato); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; padding: .75rem .6rem; text-align: left; }
.tabella-chiara td, .tabella-chiara tbody th { padding: .6rem; border-bottom: 1px solid var(--bordo); text-align: left; vertical-align: middle; }
.tabella-chiara tbody th { font-weight: 700; }
.tabella-chiara input, .tabella-chiara select { font: inherit; padding: .35rem .5rem; border: 1px solid var(--bordo); width: 100%; min-width: 7rem; }
.tabella-chiara input.cap { min-width: 4.5rem; width: 4.5rem; }
.tabella-chiara .azioni { white-space: nowrap; text-align: right; }
.tabella-chiara .azioni a { margin-left: .8rem; font-weight: 700; }
.tabella-chiara--distinta td { text-align: center; }
.tabella-chiara--distinta input[type=checkbox], .tabella-chiara--distinta input[type=radio] { width: 1.25rem; height: 1.25rem; min-width: 0; }
.numero-maglia { width: 4.5rem !important; min-width: 0 !important; text-align: center; }
.distinta fieldset { border: 0; padding: 0; margin: 0; }
.distinta__contatore { font-weight: 700; margin-left: .5rem; }
.distinta__contatore.troppi { color: var(--rosso); }
.riga-avviso th { color: var(--rosso); }

@media print {
    .ticker, .testata, .piede, .btn, .schede, .filtri, .laterale { display: none !important; }
    .hero-pagina { background: none; color: #000; padding: 0; }
    .hero-pagina h1, .hero-pagina h1 .evidenza { color: #000; }
    .colonne { grid-template-columns: 1fr; }
}
abbr[title] { text-decoration: none; cursor: help; }
.dati a { color: #fff; text-decoration: none; }
.dati a:hover { color: var(--azzurro-2); }
.pannello__piede{display:flex;gap:1.5rem;flex-wrap:wrap}
.pannello__piede a{font-family:var(--condensato);font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem;color:var(--azzurro-2);text-decoration:none}
.pannello__piede a:hover{color:var(--giallo)}

/* Foto dei giocatori */
.hero-pagina--foto .contenitore { padding-right: clamp(0px, 22vw, 260px); min-height: 230px; }
.hero-pagina__ritratto { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%) rotate(2deg); margin: 0; width: clamp(130px, 17vw, 210px); aspect-ratio: 5 / 6; background: var(--blu-2); border: 4px solid #fff; box-shadow: 10px 10px 0 var(--azzurro); overflow: hidden; }
.hero-pagina__ritratto img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
    .hero-pagina--foto .contenitore { padding-right: 0; min-height: 0; }
    .hero-pagina__ritratto { position: static; transform: rotate(2deg); width: 120px; margin: 0 0 1.4rem; box-shadow: 6px 6px 0 var(--azzurro); }
}
.rosa--foto { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; padding-top: .8rem; }
.rosa--foto a { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; border: 1px solid var(--blu-3); background: var(--notte); }
.rosa--foto a:hover { border-color: var(--azzurro); }
.rosa__foto { aspect-ratio: 5 / 6; background: linear-gradient(160deg, var(--blu-3), var(--notte)); display: grid; place-items: center; overflow: hidden; }
.rosa__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.rosa--foto a:hover .rosa__foto img { transform: scale(1.04); }
.rosa__foto span { font-family: var(--condensato); font-weight: 800; font-size: 2.6rem; color: rgb(255 255 255 / .18); }
.rosa--foto .rosa__testo { padding: .6rem .7rem .7rem; display: flex; flex-direction: column; gap: .15rem; line-height: 1.1; }
.rosa--foto .rosa__testo small { white-space: normal; }
/* area dirigenti */
.miniatura-foto { width: 46px; height: 55px; object-fit: cover; display: grid; place-items: center; background: #dde4ee; color: #6b7a90; font-family: var(--condensato); font-weight: 700; margin-bottom: .3rem; }
.azioni-foto { display: flex; gap: .6rem; font-size: .8rem; }
.link-foto { cursor: pointer; color: var(--azzurro); font-weight: 600; text-decoration: underline; }
.griglia-foto { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin: 1rem 0; }
.griglia-foto figure { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.griglia-foto img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; background: #dde4ee; }
.griglia-foto select { width: 100%; }
