/* =====================================================================
   MyFISI 2026 · foglio di stile unico della nuova app (WebView Android/iOS)
   Palette: ghiaccio + blu FISI, tricolore solo come dettaglio.
   ===================================================================== */
:root {
    --ink: #0A1A33;
    --navy: #0E2A5C;
    --navy-2: #18499D;
    --blu: #1A56C4;
    --ghiaccio: #EEF3F9;
    --ghiaccio-2: #DFE7F1;
    --bianco: #fff;
    --linea: #E1E8F2;
    --linea-2: #D5DEEA;
    --muted: #5B6B85;
    --muted-2: #93A3BC;
    --azzurro: #9FB8E0;
    --azzurro-2: #C9D6EE;
    --rosso: #E0263A;
    --rosso-txt: #B3192B;
    --verde: #0A8F4E;
    --verde-txt: #0A7A43;
    --oro: #E3A400;
    --it-verde: #009246;
    --it-bianco: #F4F5F0;
    --it-rosso: #CE2B37;
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --disp: "Barlow Condensed", "Arial Narrow", sans-serif;
    --r: 20px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ghiaccio); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; }
body.scuro { background: #071530; color: #fff; }
a { color: var(--blu); text-decoration: none; }
img { max-width: 100%; }
button, input, select { font-family: inherit; }
h1, h2, h3, p { margin: 0; }

.app { max-width: 560px; margin: 0 auto; padding-bottom: calc(110px + var(--safe-b)); min-height: 100vh; }
body.senza-barra .app { padding-bottom: 32px; }
.pad { padding-left: 20px; padding-right: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.disp { font-family: var(--disp); }
.muted { color: var(--muted); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* barra di caricamento tra le pagine */
#mf-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--blu); z-index: 9999; transition: width .4s ease, opacity .3s; opacity: 0; }
#mf-progress.on { opacity: 1; width: 70%; transition: width 6s cubic-bezier(.1,.7,.2,1); }

/* ------------------------------------------------------------- intestazioni */
.top { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.top__logo { width: 40px; height: 40px; }
.marchio { display: flex; flex-direction: column; gap: 2px; }
.marchio b { font: italic 800 27px/1 var(--disp); color: var(--navy); letter-spacing: .01em; }
.marchio small { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.spazio { flex: 1 1 auto; }

.btn-tondo { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--linea); background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 44px; }
.btn-tondo--vetro { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); color: #fff; }
.btn-tondo .pallino { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 5px; background: var(--rosso); border: 2px solid #fff; }

.saluto { padding: 14px 20px 0; }
.saluto p { font-size: 13px; font-weight: 500; color: var(--muted); }
.saluto h1 { margin-top: 2px; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }

.testata { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.testata__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testata__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,51,.35) 0%, rgba(14,42,92,.55) 45%, rgba(14,42,92,.97) 100%); }
.testata__barra { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 0; }
.testata__corpo { position: relative; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--azzurro); text-transform: uppercase; }
.titolone { font: italic 800 40px/.95 var(--disp); letter-spacing: .01em; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--azzurro-2); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

.pagina-titolo { padding: 22px 20px 0; }
.pagina-titolo h1 { font: italic 800 40px/1 var(--disp); color: var(--navy); text-transform: uppercase; }
.pagina-titolo p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.barra-semplice { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.barra-semplice b { font-size: 16px; }

/* ------------------------------------------------------------- sezioni */
.sezione { padding: 26px 20px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.sec-h h2 { font: 800 22px/1 var(--disp); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.sec-h a { font-size: 13px; font-weight: 700; }
body.scuro .sec-h h2 { color: #fff; }

/* ------------------------------------------------------------- chip, badge, avatar */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: #EEF1F6; color: #3A4660; white-space: nowrap; }
.chip--blu { background: #E6EEFB; color: var(--navy-2); }
.chip--verde { background: #E4F5EC; color: var(--verde-txt); }
.chip--rosso { background: #FDE8EA; color: var(--rosso-txt); }
.chip--oro { background: #FFF2DE; color: #8A4E00; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--rosso); animation: pulsa 1.4s infinite; }
.chip--disc { padding-left: 3px; background: #fff; border: 1px solid var(--linea); color: var(--ink); height: 28px; border-radius: 14px; }
.chip--disc .badge { border-radius: 7px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
@keyframes pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.badge img { display: block; }
.avatar--q { border-radius: 16px !important; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 800; flex: 0 0 auto; letter-spacing: .02em; }

/* ------------------------------------------------------------- schede (card) */
.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); }
.lista { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; }
.lista > * + * { border-top: 1px solid #EEF1F6; }
.riga { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); }
.riga__testo { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.riga__testo b { font-size: 14px; line-height: 1.25; }
.riga__testo small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.riga .ico.freccia { color: var(--muted-2); }
.tronca { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tessera nella home */
.mini-tessera { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 20px; border-radius: 22px; background: var(--navy); color: #fff; overflow: hidden; }
.mini-tessera__tri { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; display: flex; flex-direction: column; }
.mini-tessera__tri i { flex: 1; }
.mini-tessera__logo { position: absolute; right: -26px; bottom: -34px; width: 150px; height: 150px; opacity: .1; }
.mini-tessera__testo { position: relative; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.mini-tessera__testo b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mini-tessera__testo small { font-size: 12px; color: var(--azzurro-2); }
.pill-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; border: 0; cursor: pointer; }
.tri-verde { background: var(--it-verde); } .tri-bianco { background: var(--it-bianco); } .tri-rosso { background: var(--it-rosso); }

/* notizie */
.carosello { display: flex; gap: 12px; padding: 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carosello::-webkit-scrollbar { display: none; }
.news-hero { position: relative; flex: 0 0 86%; max-width: 420px; height: 236px; border-radius: 24px; overflow: hidden; color: #fff; background: var(--ink); scroll-snap-align: start; }
.news-hero img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-hero .velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,51,0) 30%, rgba(10,26,51,.92) 100%); }
.news-hero .chip { position: absolute; top: 14px; left: 14px; }
.news-hero__testo { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.news-hero__testo small { font-size: 11px; font-weight: 600; color: var(--azzurro-2); }
.news-hero__testo b { font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.puntini { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.puntini i { width: 6px; height: 6px; border-radius: 3px; background: #B9C6D9; transition: width .2s; }
.puntini i.on { width: 22px; background: var(--navy); }

.news-riga { display: flex; gap: 12px; padding: 12px; color: var(--ink); align-items: center; }
.news-riga img { width: 96px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--ghiaccio-2); flex: 0 0 96px; }
.news-riga b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-riga small { font-size: 11px; color: var(--muted); font-weight: 600; }

.articolo { padding: 0 20px; }
.articolo__foto { width: 100%; height: 240px; object-fit: cover; display: block; }
.articolo h1 { margin: 18px 0 8px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.articolo__testo { font-size: 16px; line-height: 1.65; color: #1F2D45; }
.articolo__testo img, .articolo__testo iframe { max-width: 100%; height: auto; border-radius: 14px; }
.articolo__testo a { color: var(--blu); text-decoration: underline; }
.articolo__testo p { margin: 0 0 14px; }
.legale { padding-top: 16px; }
.legale .articolo__testo { font-size: 14px; line-height: 1.6; }
.legale__titolo { margin: 0 0 6px; font-size: 19px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.legale__sotto { font-size: 12px; color: var(--muted); }
.legale__fine { margin: 10px 0 24px; display: flex; }

/* servizi */
.servizi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.servizio { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--linea); color: var(--ink); min-height: 96px; }
.servizio b { font-size: 13px; line-height: 1.2; }
.servizio small { font-size: 11px; line-height: 1.3; color: var(--muted); }
.servizio__ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

/* discipline */
.discipline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.disc { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; color: var(--ink); }
.disc .badge { box-shadow: 0 6px 14px rgba(10,26,51,.08); }
.disc span.nome { font-size: 11px; font-weight: 600; line-height: 1.2; min-height: 26px; }
.badge--bordo { border: 1px solid var(--linea); }

/* gare */
.gara { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--linea); color: var(--ink); }
.gara--alta { align-items: flex-start; padding: 14px; border-radius: 20px; }
.data-box { width: 58px; height: 62px; flex: 0 0 58px; border-radius: 14px; background: var(--ghiaccio); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gara--alta .data-box { background: transparent; height: auto; padding-top: 2px; }
.data-box b { font: 800 28px/1 var(--disp); }
.gara--alta .data-box b { font-size: 32px; }
.data-box small { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.gara__testo { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.gara__testo b { font-size: 15px; line-height: 1.25; }
.gara__luogo { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.mese { margin: 22px 0 10px; font: 800 15px/1 var(--disp); letter-spacing: .12em; color: var(--muted); }

/* tab segmentate e filtri */
.segmenti { display: flex; gap: 4px; padding: 4px; border-radius: 15px; background: var(--ghiaccio-2); }
.segmenti a { flex: 1 1 0; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.segmenti a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(10,26,51,.12); }
.filtri { display: flex; gap: 8px; padding: 14px 20px 0; overflow-x: auto; scrollbar-width: none; }
.filtri::-webkit-scrollbar { display: none; }
.filtro { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--linea-2); background: #fff; font-size: 12px; font-weight: 600; color: #3A4660; white-space: nowrap; flex: 0 0 auto; }
.filtro.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filtro--disc { padding-left: 4px; }
.filtro--disc .badge { border-radius: 9px !important; }

/* classifica */
.avviso-live { margin: -12px 20px 0; position: relative; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #F5C6CC; display: flex; align-items: center; gap: 12px; }
.podio { display: flex; align-items: flex-end; gap: 8px; }
.podio a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; flex: 1 1 0; min-width: 0; color: var(--ink); }
.podio b { font-size: 13px; line-height: 1.15; }
.podio .tempo { font: 700 16px/1 var(--disp); }
.gradino { width: 100%; border-radius: 14px 14px 0 0; display: flex; justify-content: center; padding-top: 8px; font: italic 800 30px/1 var(--disp); color: #fff; }
.classifica { margin: 0 20px; border-radius: 0 0 20px 20px; background: #fff; border: 1px solid var(--linea); border-top: 0; overflow: hidden; }
.classifica--sola { border-radius: 20px; border-top: 1px solid var(--linea); }
.cl-riga { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid #EEF1F6; color: var(--ink); }
.cl-riga:first-child { border-top: 0; }
.cl-riga--testa { background: #F6F8FB; padding-top: 9px; padding-bottom: 9px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.cl-riga--mia { background: #FFF8E6; }
.cl-pos { font: 800 20px/1 var(--disp); text-align: center; }
.cl-nome { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-nome b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.cl-nome small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tempo { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cl-tempo b { font: 700 17px/1 var(--disp); letter-spacing: .02em; }
.cl-tempo small { font-size: 11px; font-weight: 600; color: var(--rosso-txt); }
.cl-tempo small.ok { color: var(--muted); }

/* KPI e punti */
.kpi3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--linea); }
.kpi b { font: 800 28px/1 var(--disp); }
.kpi small { font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--muted); }
.pt { display: grid; grid-template-columns: 110px 1fr 58px; align-items: center; gap: 12px; padding: 12px 14px; }
.pt b { font-size: 13px; }
.barra { height: 8px; border-radius: 4px; background: #E6EEFB; overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 4px; background: var(--blu); }
.pt .val { font: 700 18px/1 var(--disp); text-align: right; }
.rank { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font: italic 800 22px/1 var(--disp); background: #EEF1F6; color: #3A4660; }
.rank--1 { background: var(--navy); color: #fff; } .rank--2 { background: #DDE4EE; color: var(--navy); } .rank--3 { background: #F3E3D6; color: #7A4A22; }
.rank--top { background: #FFF3D6; color: #8A5A00; }

/* profilo atleta */
.profilo-testa { position: relative; margin-top: -52px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.profilo-testa .avatar { border: 4px solid var(--ghiaccio); box-shadow: 0 8px 24px rgba(10,26,51,.18); background: #fff !important; color: var(--navy); }
.profilo-testa h1 { margin-top: 6px; font: italic 800 34px/1 var(--disp); text-transform: uppercase; }
.profilo-testa p { font-size: 13px; color: var(--muted); }

/* ricerca */
.campo-cerca { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 16px; border-radius: 18px; background: #fff; border: 2px solid var(--linea-2); }
.campo-cerca:focus-within { border-color: var(--blu); box-shadow: 0 0 0 4px rgba(26,86,196,.12); }
.campo-cerca input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); }
.campo-cerca .ico { color: var(--blu); }
.btn-x { width: 38px; height: 38px; border-radius: 19px; border: 0; background: #EEF1F6; color: #3A4660; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.preferiti { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.preferiti::-webkit-scrollbar { display: none; }
.pref { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex: 0 0 64px; color: var(--ink); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }
.pref .avatar--vuoto { background: #fff !important; color: var(--blu); border: 2px dashed var(--azzurro); }
.stella { color: var(--muted-2); background: none; border: 0; padding: 8px; margin: -8px; cursor: pointer; }
.stella.on { color: #C98B00; }
.stella.on .ico { fill: var(--oro); }

/* tessera ufficiale FISI (grafiche app/img/tessera, fronte/retro) */
.carta-blocco { display: flex; flex-direction: column; gap: 10px; }
.carta-blocco__testa { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.carta-blocco__testa b { min-width: 0; font: 800 19px/1.1 var(--disp); letter-spacing: .02em; text-transform: uppercase; }
.carta-blocco__intera { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font: 600 12px/1 var(--testo, inherit); cursor: pointer; }
.carta { position: relative; width: 100%; height: 0; padding-top: 70%; perspective: 1400px; -webkit-perspective: 1400px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.carta__in { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.carta.girata .carta__in { transform: rotateY(180deg); }
.carta__faccia { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; border-radius: 16px; overflow: hidden; background: #fff;
    border: 1px solid #337ab7; box-shadow: 0 22px 44px rgba(0,0,0,.45); backface-visibility: hidden; -webkit-backface-visibility: hidden; object-fit: cover; }
.carta__retro { transform: rotateY(180deg); }
.carta__retro svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .carta__in { transition: none; } }
/* tessere delle qualifiche (grafica MyFISI): misure in cqw = % della larghezza tessera, con riserva in px */
.carta { container-type: inline-size; }
.ruolo { --c1: #2347C6; --c2: #0B1F5C; color: #fff; border-color: rgba(255,255,255,.18); background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 55%), linear-gradient(140deg, var(--c1), var(--c2)); }
.ruolo--allenatori { --c1: #2D57E0; --c2: #0B1F5C; }
.ruolo--istruttori { --c1: #1FAE55; --c2: #07462A; }
.ruolo--omologatori { --c1: #E2B320; --c2: #7A5200; }
.ruolo--ufficialedigara { --c1: #E2463A; --c2: #6E1410; }
.ruolo__monti { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.ruolo__filigrana { position: absolute; right: -9%; top: 6%; width: 58%; opacity: .1; transform: rotate(-8deg); }
.ruolo__tri { position: absolute; left: 0; top: 0; bottom: 0; width: 2.2%; display: flex; flex-direction: column; }
.ruolo__tri i, .ruolo-r__tri i { flex: 1; }
.ruolo__alto { position: absolute; left: 6.5%; right: 5%; top: 6.5%; display: flex; align-items: center; gap: 2.4cqw; }
.ruolo__alto img { width: 9%; height: auto; }
.ruolo__alto small { display: block; font-size: 9px; font-size: 2.3cqw; font-weight: 700; letter-spacing: .14em; line-height: 1.35; opacity: .9; }
.ruolo__stagione { margin-left: auto; font: italic 800 20px/1 var(--disp); font-size: 5.6cqw; }
.ruolo__centro { position: absolute; left: 6.5%; right: 5%; top: 34%; display: flex; flex-direction: column; gap: .8cqw; }
.ruolo__centro small { font-size: 9px; font-size: 2.5cqw; font-weight: 800; letter-spacing: .2em; opacity: .85; }
.ruolo__centro b { font: italic 800 40px/.92 var(--disp); font-size: 11.5cqw; letter-spacing: .005em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ruolo__centro--lungo b { font-size: 30px; font-size: 8.8cqw; }
.ruolo__basso { position: absolute; left: 6.5%; right: 5%; bottom: 6.5%; display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; }
.ruolo__persona { display: flex; flex-direction: column; gap: .6cqw; min-width: 0; }
.ruolo__persona b { font: 800 20px/1 var(--disp); font-size: 6.2cqw; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruolo__persona small { font-size: 9px; font-size: 2.4cqw; font-weight: 700; letter-spacing: .14em; opacity: .85; }
.ruolo__persona em { font: 800 13px/1 var(--disp); font-size: 3.8cqw; font-style: normal; letter-spacing: .06em; margin-left: .8cqw; }
.ruolo__stato { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 2.6cqw; border-radius: 999px; background: rgba(255,255,255,.95); color: #0A7A43; font-size: 10px; font-size: 2.6cqw; font-weight: 800; letter-spacing: .08em; }
.ruolo__stato i { width: 1.8cqw; height: 1.8cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #0A8F4E; }
.ruolo__stato--no { color: #B3261E; }
.ruolo__stato--no i { background: #D93025; }
/* retro */
.ruolo-r { background: #F7F9FC; color: var(--ink); display: flex; flex-direction: column; padding: 4.5% 5.5% 4% 6.5%; border-color: rgba(255,255,255,.18); }
.ruolo-r::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.2%; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.ruolo-r__tri { position: absolute; left: 0; top: 0; bottom: 0; width: 2.2%; display: flex; flex-direction: column; }
.ruolo-r__testa { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding-bottom: 2.2cqw; border-bottom: 1px solid #E1E8F2; }
.ruolo-r__testa span { display: flex; flex-direction: column; gap: .5cqw; min-width: 0; }
.ruolo-r__testa small { font-size: 9px; font-size: 2.4cqw; font-weight: 800; letter-spacing: .16em; color: var(--c2); }
.ruolo-r__testa b { font: 800 18px/1 var(--disp); font-size: 5.4cqw; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruolo-r__testa img { width: 8%; height: auto; }
.ruolo-r__righe { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 1.6cqw; padding-top: 2.4cqw; min-height: 0; }
.ruolo-r__riga { display: flex; align-items: center; gap: 2.4cqw; }
.ruolo-r__disc { flex: 0 0 auto; width: 6.6cqw; height: 6.6cqw; min-width: 20px; min-height: 20px; border-radius: 30%; display: flex; align-items: center; justify-content: center; }
.ruolo-r__disc img { width: 72%; height: 72%; }
.ruolo-r__testo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .3cqw; }
.ruolo-r__testo b { font-size: 12px; font-size: 3.3cqw; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruolo-r__testo small { font-size: 10px; font-size: 2.7cqw; color: var(--muted, #5B6B85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruolo-r__fine { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; font: 800 14px/1 var(--disp); font-size: 4cqw; color: #0A7A43; }
.ruolo-r__fine small { font: 700 8px/1.3 Inter, sans-serif; font-size: 2cqw; letter-spacing: .1em; color: var(--muted, #5B6B85); }
.ruolo-r__fine--no { color: #D93025; }
.ruolo-r__altre { font-size: 10px; font-size: 2.6cqw; font-weight: 600; color: var(--muted, #5B6B85); }
.ruolo-r__piede { display: flex; justify-content: space-between; gap: 3cqw; padding-top: 2cqw; border-top: 1px solid #E1E8F2; font-size: 9px; font-size: 2.3cqw; font-weight: 700; letter-spacing: .12em; color: var(--muted, #5B6B85); }
.ruolo-r__piede b { color: var(--ink); letter-spacing: .04em; margin-left: .6cqw; }
/* schermo intero: tessera ruotata di 90° come nella vecchia app */
.carta-schermo { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; background: #040C1C; display: flex; align-items: center; justify-content: center; }
.carta-schermo[hidden] { display: none; }
.carta-schermo__chiudi { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; }
.carta-schermo__posto { flex: 0 0 auto; width: min(calc(100vh - 96px), calc((100vw - 20px) * 10 / 7)); transform: rotate(90deg); }
.carta-schermo__posto .carta-blocco__testa { display: none; }
.qr-box { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px; background: #fff; color: var(--ink); }
.qr-box #qr { width: 116px; height: 116px; flex: 0 0 116px; }
.qr-box #qr svg { width: 100%; height: 100%; display: block; }
.bottoni { display: flex; gap: 10px; }
.btn { flex: 1 1 0; height: 50px; min-height: 50px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; border: 0; background: var(--navy); color: #fff; text-align: center; padding: 0 16px; }
.btn--bianco { background: #fff; color: var(--ink); }
.btn--bordo { background: transparent; border: 1px solid var(--linea-2); color: var(--navy); }
body.scuro .btn--bordo { border-color: rgba(255,255,255,.24); color: #fff; }
.btn--rosso { background: #fff; border: 1px solid #F5C6CC; color: var(--rosso-txt); }
.btn--rosso-pieno { background: #C81E31; border: 1px solid #C81E31; color: #fff; }
.btn--pieno-largo { width: 100%; }
.conferma { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-color: #F5C6CC; background: #FFF7F8; }
.conferma[hidden] { display: none; }
.conferma b { font-size: 16px; color: var(--ink); }
.conferma p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* moduli */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 12px; font-weight: 700; color: #3A4660; }
.campo input { height: 52px; border-radius: 14px; border: 2px solid var(--linea-2); padding: 0 14px; font-size: 16px; font-weight: 600; color: var(--ink); background: #fff; outline: 0; text-transform: uppercase; }
.campo input:focus { border-color: var(--blu); box-shadow: 0 0 0 4px rgba(26,86,196,.12); }
.campo small { font-size: 12px; color: var(--muted); }

/* avvisi e stati vuoti */
.avviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13px; background: #E6EEFB; color: #234B7D; }
.avviso--ok { background: #E4F5EC; color: #00592B; }
.avviso--errore { background: #FDE8EA; color: #8C0018; }
.avviso--oro { background: #FFF2DE; color: #7A4A00; }
.vuoto { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 34px 20px; border-radius: var(--r); background: #fff; border: 1px dashed var(--linea-2); }
.vuoto__ico { width: 54px; height: 54px; border-radius: 27px; background: var(--ghiaccio); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.vuoto b { font-size: 15px; }
.vuoto p { font-size: 13px; color: var(--muted); max-width: 300px; }

/* barra in basso */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: flex-start; height: calc(70px + var(--safe-b)); padding: 0 10px var(--safe-b); background: rgba(255,255,255,.96); border-top: 1px solid var(--linea); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; font-size: 10px; font-weight: 600; color: var(--muted); max-width: 112px; margin: 0 auto; }
.tab.on { color: var(--navy); }
.tab--centro { padding-top: 0; }
.tab__tondo { width: 56px; height: 56px; margin-top: -18px; border-radius: 28px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; border: 4px solid var(--ghiaccio); box-shadow: 0 6px 16px rgba(14,42,92,.3); }
body.scuro .tabbar { background: #0B1C3D; border-top-color: rgba(255,255,255,.08); }
body.scuro .tab { color: #8FA3C4; }
body.scuro .tab.on { color: #fff; }
body.scuro .tab__tondo { background: #fff; color: var(--navy); border-color: #071530; }

@media (min-width: 520px) {
    .discipline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ===================================================================== Live */
.live-testata { background: linear-gradient(160deg, #0E2A5C 0%, #18499D 60%, #B3192B 140%); }
.live-elenco { display: flex; flex-direction: column; gap: 18px; }
.live-ev { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; }
.live-ev--on { border-color: #F3B8BF; box-shadow: 0 6px 20px rgba(224,38,58,.10); }
.live-ev__testa { display: flex; align-items: center; gap: 12px; padding: 14px; }
.live-ev__testo { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.live-ev__testo b { font-size: 15px; line-height: 1.25; }
.live-ev__testo small { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.live-ev__testo small > span, .live-ev__testo small { align-items: center; }
.live-ev__testo .ico { vertical-align: -2px; margin-right: 3px; }
.live-ev__gare { border: 0; border-top: 1px solid #EEF1F6; border-radius: 0; }
.live-cat--incorso b { color: var(--rosso-txt); }
.live-cat--ufficiale, .live-cat--conclusa { opacity: .78; }
.live-stato--conclusa { background: rgba(255,255,255,.22); }

.live-stato { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.18); color: #fff; }
.live-stato--incorso { background: var(--rosso); }
.live-stato--incorso::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: #fff; animation: pulsa 1.4s infinite; }
.live-stato--ufficiale { background: var(--verde); }
.live-agg { text-align: center; font-size: 11px; color: var(--muted-2); padding: 14px 20px 0; }
.live-agg.lv-off { color: var(--rosso-txt); font-weight: 700; }
button.filtro { cursor: pointer; font-family: inherit; }

.lv-sez { padding-top: 18px; }
.lv-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lv-tit h2 { font: italic 800 20px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; color: var(--navy); }
.lv-nota { font-size: 11px; color: var(--muted); }
.lv-bib { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 20px; padding: 0 5px; margin-right: 7px; border-radius: 6px; background: var(--navy); color: #fff; font: 700 13px/1 var(--disp); letter-spacing: .02em; flex: 0 0 auto; }
.lv-punto { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--rosso); animation: pulsa 1.4s infinite; flex: 0 0 auto; }
.filtro.on .lv-punto { background: #fff; }

/* pista: ultimo arrivato, in pista, prossimo al via */
.lv-pista { display: flex; flex-direction: column; gap: 10px; }
.lv-card { background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 10px 14px 12px; }
.lv-card--arrivo { background: linear-gradient(135deg, #0E2A5C, #18499D); border-color: transparent; color: #fff; }
.lv-card--arrivo .lv-bib { background: #fff; color: var(--navy); }
.lv-card--arrivo small { color: var(--azzurro-2) !important; }
.lv-card--pista { border-color: #F3B8BF; }
.lv-etic { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lv-card--arrivo .lv-etic { color: var(--azzurro); }
.lv-card--pista .lv-etic { color: var(--rosso-txt); }
.lv-card__riga { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.lv-card__riga + .lv-card__riga { border-top: 1px solid #F1F4F8; padding-top: 8px; margin-top: 4px; }
.lv-card__nome { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.lv-card__nome b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-card__nome small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-card__tempo { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.lv-card__tempo b { font: 700 22px/1 var(--disp); letter-spacing: .02em; }
.lv-card__tempo small { font-size: 11px; font-weight: 700; color: var(--muted); }
.lv-int { color: var(--navy) !important; }
.lv-int em, .lv-inter em { font-style: normal; color: var(--rosso-txt); }

/* classifica */
.lv-cls { position: relative; }
.lv-riga { position: relative; background: #fff; }
.lv-riga .cl-nome b { display: flex; align-items: center; }
.lv-pos--1 { color: #C98B00; } .lv-pos--2 { color: #7D8BA3; } .lv-pos--3 { color: #A8642A; }
.lv-riga--apri { cursor: pointer; }
.lv-inter { grid-column: 1 / -1; display: none; flex-wrap: wrap; gap: 6px; padding: 2px 0 2px 44px; font-size: 11px; color: var(--muted); }
.lv-inter span { background: var(--ghiaccio); border-radius: 8px; padding: 3px 7px; }
.lv-riga.aperta .lv-inter { display: flex; }
.lv-nuovo { animation: lvNuovo 8s ease-out; }
@keyframes lvNuovo { 0%, 25% { background: #FFF3C4; } 100% { background: #fff; } }
.lv-su .cl-pos { animation: lvSu 1.6s ease-out; }
@keyframes lvSu { 0%, 40% { color: var(--verde); } }
.lv-fuori .lv-bib, .lv-start--dns .lv-bib, .lv-start--dnf .lv-bib, .lv-start--dsq .lv-bib { background: var(--muted-2); }

/* start list e info */
.lv-ord { width: 22px; text-align: right; font: 700 15px/1 var(--disp); color: var(--muted-2); flex: 0 0 auto; }
.lv-ora { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.lv-ora b { font: 700 15px/1 var(--disp); color: var(--navy); font-variant-numeric: tabular-nums; }
.lv-ora small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lv-start--arrivato { opacity: .62; }
.lv-start--pista { background: #FFF6F7; }
.lv-voce { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13px; }
.lv-voce small { color: var(--muted); }
.lv-voce b { text-align: right; }

/* messaggi della giuria / speaker */
.lv-msg { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #FFF2DE; color: #6B3D00; font-size: 13px; font-weight: 600; line-height: 1.35; }
.lv-msg + .lv-msg { margin-top: 8px; }
.lv-msg::before { content: "📣"; font-size: 16px; }
.lv-msg--startinfo { background: #E6EEFB; color: var(--navy-2); }
.lv-msg--startinfo::before { content: "🚦"; }
@media (prefers-reduced-motion: reduce) { .lv-nuovo, .lv-su .cl-pos, .lv-punto, .live-stato--incorso::before { animation: none; } }
.live-segui { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; }
.live-segui--incorso { background: var(--rosso); }
.live-segui--incorso .lv-punto { background: #fff; }

/* ===================================================================== Webcam */
.wc-testata { background: linear-gradient(160deg, #0E2A5C 0%, #4A3A8C 70%, #6A4FA3 120%); }
.wc-cerca { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid var(--linea-2); color: var(--muted); }
.wc-cerca input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font); color: var(--ink); }
.wc-cerca:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(24,73,157,.12); }
.wc-tit { display: flex; align-items: center; gap: 6px; font: italic 800 19px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; color: var(--navy); margin-bottom: 10px; }
.wc-pref .wc-tit { color: #C98B00; }
.wc-ico { width: 38px; height: 38px; border-radius: 12px; background: #EEEAF7; color: #6A4FA3; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wc-loc[hidden], .wc-reg[hidden] { display: none !important; }
.wc-stella.on { background: #fff; color: #C98B00; border-color: #fff; }
.wc-stella.on svg { fill: currentColor; }
.wc-camere { display: flex; flex-direction: column; gap: 12px; }
.wc-cam { background: #fff; border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; }
.wc-cam.on { border-color: #CFC4EA; box-shadow: 0 8px 22px rgba(74,58,140,.12); }
.wc-cam__testa { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.wc-cam__testa b { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.wc-cam__azione { flex: 0 0 auto; height: 30px; padding: 0 12px; border-radius: 15px; background: #6A4FA3; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; }
.wc-cam.on .wc-cam__azione { background: var(--ghiaccio-2); color: var(--navy); }
.wc-cam__video { display: none; }
.wc-cam.on .wc-cam__video { display: block; position: relative; aspect-ratio: 16 / 9; background: #0A1A33; }
.wc-cam__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wc-nota { font-size: 11px; color: var(--muted-2); text-align: center; padding: 4px 10px 0; }

/* ===================================================================== Meteo (ilMeteo.it) */
.mt-testata { background: linear-gradient(165deg, #0E2A5C 0%, #1A6FC4 75%, #4FA8E8 130%); }
.mt-ico-box { width: 38px; height: 38px; border-radius: 12px; background: #E6F1FB; color: #1A6FC4; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mt-loc[hidden], #mt-sci[hidden], #mt-mie[hidden] { display: none !important; }
.mt-altre { display: block; width: 100%; margin-top: 10px; height: 42px; border: 1px solid var(--linea-2); border-radius: 14px; background: #fff; font: 700 13px var(--font); color: var(--navy); cursor: pointer; }
.mt-giorni { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mt-giorno { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; border: 1px solid var(--linea); border-radius: 16px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.mt-giorno small { font-size: 11px; color: var(--muted); }
.mt-giorno__nome { font-size: 13px; font-weight: 800; }
.mt-giorno__t { font-size: 12px; color: var(--muted); }
.mt-giorno__t b { font-size: 15px; color: var(--ink); }
.mt-giorno.on { border-color: #1A6FC4; box-shadow: 0 0 0 2px rgba(26,111,196,.25); background: #F3F8FE; }
.mt-ora-ora { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 20px; background: linear-gradient(135deg, #fff, #EAF3FC); border: 1px solid #D6E6F7; }
.mt-ora-ora__testo { display: flex; flex-direction: column; gap: 2px; }
.mt-ora-ora__testo small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mt-ora-ora__testo b { font: 800 46px/1 var(--disp); color: var(--navy); }
.mt-ora-ora__testo span { font-size: 14px; font-weight: 600; }
.mt-dati { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.mt-dati span { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid #DCE7F3; border-radius: 10px; padding: 4px 8px; }
.mt-dati b { color: var(--ink); }
.mt-riga { display: grid; grid-template-columns: 46px 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 14px; }
.mt-riga__ora { font: 700 15px/1 var(--disp); color: var(--navy); }
.mt-riga__desc { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; min-width: 0; }
.mt-riga__desc small { font-size: 11px; font-weight: 500; color: var(--muted); }
.mt-riga__t { font: 800 22px/1 var(--disp); color: var(--navy); }
.mt-ico { flex: 0 0 auto; }
.mt-fonte { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--linea); color: var(--ink); }
.mt-fonte__logo { flex: 0 0 auto; padding: 8px 10px; border-radius: 12px; background: #0B5CAD; color: #fff; font: 600 16px/1 var(--font); letter-spacing: -.01em; }
.mt-fonte__logo b { font-weight: 800; color: #FFD45A; }
.mt-fonte__testo { display: flex; flex-direction: column; gap: 3px; }
.mt-fonte__testo b { font-size: 14px; }
.mt-fonte__testo small { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* loghi dei fornitori (ilMeteo.it, Feratel): in testata, sotto i pulsanti, e nel riquadro in fondo */
.partner { position: absolute; z-index: 2; right: 16px; top: 72px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 4px 14px rgba(10,26,51,.18); }
.partner img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.partner span { display: flex; flex-direction: column; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.15; }
.partner b { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.mt-fonte__img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; flex: 0 0 auto; }

/* ===================================================================== Trofei */
.tr-testata { background: linear-gradient(160deg, #0E2A5C 0%, #6B4E00 80%, #C98B00 130%); }
.tr-coppa { position: absolute; right: 10px; top: 46px; width: 120px; height: 120px; opacity: .16; }
.tr-voce[hidden], .tr-com[hidden] { display: none !important; }
.tr-somma { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr-somma span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: #fff; border: 1px solid var(--linea); }
.tr-somma small { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tr-somma b { font: 800 30px/1 var(--disp); color: var(--navy); }
.tr-somma span:first-child b { color: #C98B00; }
.tr-gara { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.tr-gara .data-box { flex: 0 0 auto; }
/* gara scartata nel trofeo (validoScarto = 1): etichetta rossa e punti barrati in rosso */
.tr-scarto { display: inline-block; margin-bottom: 3px; padding: 2px 7px; border-radius: 8px; background: #FDE8EA; color: #C8102E; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tr-nota { display: block; margin-top: 5px; padding: 5px 8px; border-left: 3px solid #C8102E; border-radius: 0 8px 8px 0; background: #FDF1F2; color: #8E0B21; font-size: 12px; font-weight: 600; line-height: 1.35; }
.tr-scartato { color: #C8102E !important; text-decoration: line-through; text-decoration-thickness: 2px; }

/* Live: in pista compatto in cima, prossimo al via su una riga, ultimo arrivato sopra la classifica */
.lv-inpista { padding-top: 14px; }
.lv-inpista .lv-tit h2 { display: flex; align-items: center; gap: 8px; color: var(--rosso-txt); }
.lv-pr-box { background: #fff; border: 1px solid #F3B8BF; border-radius: 14px; overflow: hidden; }
.lv-pr { display: flex; align-items: center; gap: 8px; padding: 7px 12px; min-height: 40px; }
.lv-pr + .lv-pr { border-top: 1px solid #F6E3E6; }
.lv-pr__nome { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-pr__nome small { font-size: 11px; font-weight: 500; color: var(--muted); }
.lv-pr__t { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.lv-netto { font: 800 22px/1 var(--disp); color: var(--rosso-txt); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.lv-pr__t small { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.lv-pross { display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.lv-pross .lv-etic { margin: 0; flex: 0 0 auto; }
.lv-pross__ora { flex: 0 0 auto; font: 700 14px/1 var(--disp); color: var(--navy); }
.lv-arr { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: linear-gradient(135deg, #0E2A5C, #18499D); color: #fff; cursor: pointer; animation: lvArr .5s ease-out; }
@keyframes lvArr { from { transform: scale(.98); opacity: .6; } }
.lv-arr__pos { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 14px; background: #fff; color: var(--navy); }
.lv-arr__pos small { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lv-arr__pos b { font: 800 28px/1 var(--disp); }
.lv-arr__nome { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.lv-arr__nome .lv-etic { color: var(--azzurro); margin: 0; }
.lv-arr__nome b { display: flex; align-items: center; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-arr__nome .lv-bib { background: #fff; color: var(--navy); }
.lv-arr__nome small { font-size: 11px; color: var(--azzurro-2); }
.lv-arr__t { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.lv-arr__t b { font: 800 26px/1 var(--disp); letter-spacing: .02em; }
.lv-arr__t small { font-size: 12px; font-weight: 800; color: #FFB3BC; }
.lv-arr__t small.ok { color: #9BE7B8; }

/* ---- tessere della famiglia (famiglia.aspx, tessera.aspx?cod=, Home) ---- */
.fam-scelta { display: flex; gap: 8px; padding: 4px 20px 0; overflow-x: auto; scrollbar-width: none; }
.fam-scelta::-webkit-scrollbar { display: none; }
.fam-chip { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; height: 40px; padding: 0 14px 0 5px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #DCE6F7; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.fam-chip.on { background: #fff; border-color: #fff; color: var(--navy); }
.fam-chip__av { width: 30px; height: 30px; border-radius: 15px; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.fam-chip--piu { padding: 0; width: 40px; justify-content: center; }
.fam-chip--chiaro { background: #fff; border-color: var(--linea-2); color: var(--navy); }
.fam-chip__nota { font-style: normal; font-weight: 600; font-size: 11px; color: #A85F00; }
.fam-invito { display: inline-flex; align-items: center; gap: 6px; color: #9FB8E0; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.fam-home { display: flex; align-items: center; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.fam-home::-webkit-scrollbar { display: none; }
.fam-home__tit { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fam-voce { position: relative; }
.fam-voce > .riga { padding-right: 56px; }
.fam-togli { position: absolute; right: 10px; top: 32px; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 18px; border: 0; background: #F3F5F9; color: #6B7891; display: grid; place-items: center; cursor: pointer; }
.fam-voce > .conferma { margin: 8px 0 4px; }
