/* ============================================================================
   KCE Racing PWA — stile 2027
   Sfondo blu KCE con texture (assets/sfondo.jpg), riquadri CIRCOLARI con bordo
   bianco e testo bianco maiuscolo, barra in alto con i loghi dei circuiti
   Misanino / Riccione (link ai siti), i social (con Messenger) e IT/EN. Contenuti e
   moduli su cartoncino bianco (leggibilita') o su "vetro" blu. Font Barlow.
   29/09/2026: home su una pagina sola. Caratteri circa x1.5 rispetto allo stile 2027
   ("se ora e' 8, fallo 12"): etichette e testi piccoli 15-18 px, testi 19-20 px, campi
   18 px (niente zoom automatico di iOS), titoli in proporzione; i riquadri usano il
   carattere piu' grande che ci sta nel cerchio (app.js, adattaRiquadri). Barra della home
   alta 80 px: i due loghi dei circuiti hanno un'area toccabile di 40 px ciascuno.
   ============================================================================ */
:root {
  --blu: #0a0ee0;                       /* blu KCE (tono medio dello sfondo) */
  --blu-scuro: #0000a8;
  --blu-vetro: rgba(0, 0, 110, .55);
  --testo: #fff;
  --testo2: rgba(255, 255, 255, .78);
  --dim: rgba(255, 255, 255, .75);           /* >= 4.5:1 anche sui punti chiari della texture */
  --bordo: rgba(255, 255, 255, .55);
  --rosso: #d91e1e;                       /* 5:1 col testo bianco */
  --verde: #19d36b;
  --ambra: #ffb000;
  --raggio: 18px;
  --ombra: 0 8px 24px rgba(0, 0, 60, .28);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; background: var(--blu); }
body { min-height: 100%; background: transparent; color: var(--testo); }
body {
  font-family: 'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
/* texture fissa dietro a tutto (non scorre col contenuto) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: var(--blu) url(../assets/sfondo.jpg) center top / cover no-repeat;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.app { min-height: 100vh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }

/* ---- boot ---- */
.boot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; min-height: 100vh; }
.boot-logo { width: 60%; max-width: 300px; }
.boot-spin { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- barra superiore: [circuiti | social | account IT EN] in home, [‹ | KCE | account IT EN] altrove ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  padding: calc(10px + var(--sat)) 10px 8px; display: flex; align-items: center; gap: 6px;
  background: rgba(4, 4, 170, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top .back { width: 40px; height: 40px; border: 2px solid #fff; border-radius: 50%; background: transparent; color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; flex: none; padding: 0 0 4px; }
.top .brand { flex: 1; display: flex; justify-content: center; min-width: 0; }
.top:not(.home) { display: grid; grid-template-columns: 1fr auto 1fr; padding-left: 14px; padding-right: 14px; }   /* logo al centro dello schermo */
.top:not(.home) .back { justify-self: start; }
.top:not(.home) .brand { flex: none; }
.top:not(.home) .top-right { justify-self: end; }
/* area toccabile >= 40px senza cambiare il disegno */
.soc, .acct, .lang button, .top .back { position: relative; }
.soc::after, .acct::after, .top .back::after { content: ''; position: absolute; inset: -7px; }
.lang button::after { content: ''; position: absolute; inset: -6px -2px; }
.top .brand img { height: 26px; width: auto; }
/* loghi dei circuiti in VERTICALE (KCE sopra, nome del circuito sotto): due link (siti
   Misanino / Riccione) affiancati, ognuno con un'area toccabile alta quanto la barra */
.top.home { padding-top: var(--sat); padding-bottom: 0; }
.circuiti { flex: none; display: flex; flex-direction: row; align-items: center; gap: 8px; }
.circuiti > * { display: flex; align-items: center; height: 64px; }
.circuiti img { height: 40px; width: auto; }
.circuiti a:focus-visible { outline: none; }
.circuiti a:focus-visible img { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
.social { flex: 1; display: flex; justify-content: center; gap: 5px; min-width: 0; }
.soc { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--blu); display: flex; align-items: center; justify-content: center; flex: none; }
.soc svg { width: 15px; height: 15px; fill: currentColor; }
.top .top-right { flex: none; display: flex; align-items: center; gap: 5px; }
.acct { width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.acct svg { width: 18px; height: 18px; fill: currentColor; }
.lang { display: flex; gap: 3px; }
.lang button { background: transparent; border: 1.5px solid #fff; color: #fff; font-weight: 800; font-size: 16px; width: 28px; height: 28px; border-radius: 4px; letter-spacing: 0; padding: 0; }
.lang button.on { background: #fff; color: var(--blu); }
.top .spacer { width: 38px; flex: none; }
@media (min-width: 421px) {
  .top { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .circuiti img { height: 48px; } .circuiti { gap: 12px; } .social { gap: 8px; } .soc { width: 28px; height: 28px; } .soc svg { width: 16px; height: 16px; }
  .lang button { width: 30px; } .top .top-right { gap: 6px; }
}
@media (min-width: 600px) { .top { border-radius: 0 0 16px 16px; } }   /* su tablet/desktop la barra e' un pannello */
@media (max-width: 349px) {
  .top { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .circuiti img { height: 32px; } .circuiti { gap: 5px; } .social { gap: 4px; } .soc { width: 24px; height: 24px; } .soc svg { width: 14px; height: 14px; }
  .lang button { width: 26px; } .acct { width: 28px; height: 28px; }
}

/* ---- contenuto ---- */
.view { flex: 1; padding: 14px 16px calc(28px + var(--sab)); animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.h1 { font-size: 32px; line-height: 1.15; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; text-align: center; margin: 6px 0 14px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,60,.45); overflow-wrap: break-word; }
.h2 { font-size: 23px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 18px 0 8px; color: #fff; }
.h3 { font-size: 21px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 6px; }
.muted { color: var(--testo2); font-size: 20px; }
.center { text-align: center; }
.sotto-h1 { margin: -4px 0 14px; line-height: 1.45; }
.intro { font-size: 20px; line-height: 1.45; margin-bottom: 12px; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1 1 0; min-width: 0; }
.row > .btn.small { flex: 1 1 45%; align-self: stretch; }                 /* 2 per riga, il terzo va sotto */
@media (max-width: 359px) { .row > .btn.small { flex-basis: 100%; } }
/* dentro i cartoncini bianchi */
.card.light .muted, .race-card .muted, .race-head .muted, .pay-block .muted, .page-html .muted, .list-item .muted { color: #555; }
.card.light .h2, .card.light .h3 { color: #000; }

/* ---- home: logo grande, gara in corso, riquadri su una pagina sola ---- */
.home-logo { width: 66%; max-width: 300px; margin: 4px auto 14px; filter: drop-shadow(0 4px 12px rgba(0,0,80,.45)); }
.gara-corso { text-align: center; color: var(--testo2); font-size: 20px; line-height: 1.4; margin: 0 0 12px; }
.gara-corso b { color: #fff; }
.gara-corso .gc-tipo { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
/* invito ad attivare le notifiche (banner chiudibile) */
.push-banner { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--blu-scuro); border-radius: 16px; padding: 8px 4px 8px 14px; margin: 0 0 14px; box-shadow: var(--ombra); font-size: 19px; font-weight: 700; line-height: 1.3; }
.push-banner .pb-testo { flex: 1 1 auto; min-width: 0; }
.push-banner .btn { flex: none; width: auto; margin: 0; background: var(--blu); color: #fff; border-color: var(--blu); padding: 8px 14px; }
.pb-x { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--blu-scuro); font-size: 30px; line-height: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pb-x:focus-visible { outline: 2px solid var(--blu); }
/* pagine scorrevoli di riquadri (scheda gara, 9 per pagina) */
.pages { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; transition: height .2s; }
.pages::-webkit-scrollbar { display: none; }
.page { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; padding: 8px 16px 12px; }
.dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 0; }
.dots button { width: 32px; height: 32px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.dots button::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #fff; opacity: .6; transition: opacity .2s; }
.dots button.on::before { opacity: 1; }

/* ---- riquadri circolari (3 per riga, bordo bianco, testo bianco) ---- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding: 4px 2px; min-width: 0; }
.tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: 50%; border: 2.5px solid #fff;
  background: rgba(255,255,255,.04); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-weight: 800; text-transform: uppercase; font-size: clamp(16.5px, 4.8vw, 21px); line-height: 1.08;
  padding: 6px; letter-spacing: 0; overflow-wrap: break-word; min-width: 0; overflow: hidden;
  transition: transform .12s, background .12s; -webkit-tap-highlight-color: transparent;
}
.tile:active { transform: scale(.94); background: rgba(255,255,255,.15); }
/* carattere normale = x1.5 dello stile 2027. Parole che non ci stanno (es. SEGNALAZIONI):
   .long (margini stretti) e app.js scende di mezzo pixel alla volta fino a farle stare intere
   nel cerchio; le misure qui sotto sono solo la stima prima della misura vera */
.tile.long { font-size: clamp(12.5px, 3.6vw, 16px); letter-spacing: -.2px; padding: 4px; }
.tile.xlong { font-size: clamp(11px, 3.2vw, 14px); }
.tile.red, .tile.red.has-img, .tile.red.has-img.contain { background: var(--rosso); }
.tile.off { opacity: .6; pointer-events: none; }
.tile .sub { display: block; font-size: 15px; font-weight: 700; margin-top: 3px; letter-spacing: .3px; line-height: 1.1; }
.tile.has-img .sub { position: absolute; left: 0; right: 0; bottom: 9%; background: rgba(0,0,0,.5); padding: 2px 0; margin: 0; }
.tile.has-img { padding: 0; background: #000; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tile.has-img.contain { background: transparent; }              /* loghi png/webp: interi, non ritagliati */
.tile.has-img.contain .tile-img { object-fit: contain; padding: 12%; }

/* ---- schede gara (cartoncino bianco) ---- */
.race-card { display: flex; gap: 12px; background: #fff; color: #000; border-radius: 16px; padding: 10px; margin-bottom: 12px; align-items: stretch; box-shadow: var(--ombra); }
.race-card img { width: 92px; height: 124px; object-fit: cover; border-radius: 10px; flex: none; background: #dfe3ff; }
.race-card .body { flex: 1; font-size: 18px; line-height: 1.35; font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.race-card .body .t { font-weight: 800; font-size: 20px; line-height: 1.2; text-transform: uppercase; margin-bottom: 2px; }
.race-card .body .price { font-weight: 800; }
.race-head { background: #fff; color: #000; border-radius: 16px; padding: 14px; box-shadow: var(--ombra); margin-bottom: 12px; }
.race-head .desc { font-size: 18px; line-height: 1.45; font-weight: 600; margin-top: 10px; }
.race-head .desc strong { font-weight: 900; }
.race-head .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.race-head .badges:first-child { margin-top: 0; }
.badge { display: inline-block; font-size: 16px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; line-height: 1.2; }
.badge.ok { background: var(--verde); color: #002; }
.badge.warn { background: var(--ambra); color: #000; }
.badge.no { background: #333; color: #fff; }
.badge.red { background: var(--rosso); color: #fff; }
/* tipo di gara: etichetta nelle schede (vicino al titolo) e in evidenza nella pagina della gara */
.chip.tipo { letter-spacing: 1px; text-transform: uppercase; margin-left: 0; margin-right: 2px; }
.tipo-endurance, .chip.tipo-endurance { background: var(--rosso); color: #fff; }
.tipo-sprint, .chip.tipo-sprint { background: var(--ambra); color: #000; }
.tipo-iron, .chip.tipo-iron { background: #1b1b1b; color: #fff; }
.tipo-altro, .chip.tipo-altro { background: #fff; color: var(--blu); box-shadow: inset 0 0 0 1.5px var(--blu); }
.tipo-gara { text-align: center; margin: 0 0 12px; }
.tipo-gara > span { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; padding: 6px 24px 8px; border-radius: 18px; border: 2px solid #fff; box-shadow: var(--ombra);
  font-size: 27px; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; line-height: 1.1; overflow-wrap: anywhere; }
.tipo-gara small { font-size: 16px; font-weight: 700; letter-spacing: 1px; opacity: .85; margin-bottom: 2px; }
.tipo-gara .tipo-altro { box-shadow: var(--ombra); }

/* ---- moduli ---- */
.card { background: var(--blu-vetro); border: 1.5px solid rgba(255,255,255,.45); border-radius: var(--raggio); padding: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card.light { background: #fff; color: #000; border-color: #fff; box-shadow: var(--ombra); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 16px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--testo2); margin-bottom: 6px; line-height: 1.3; }
.card.light .field label { color: #444; }
.field label .lab-nota, .field label .muted { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 16px; }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1.5px solid #fff; color: #000; border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 18px; outline: none; min-height: 52px;
}
.card.light .field input, .card.light .field select, .card.light .field textarea { background: #f2f3fb; border-color: #d8dbef; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blu); box-shadow: 0 0 0 3px rgba(10,14,224,.15); }
.field .hint { font-size: 17px; color: var(--dim); margin-top: 5px; line-height: 1.35; }
.card.light .field .hint { color: #555; }
.field.req label::after { content: ' *'; color: var(--rosso); }
.card:not(.light) .field.req label::after { color: #ffb3b3; }
/* campi affiancati con etichette di altezza diversa (una va a capo, es. "Nazione (codice)"):
   allineati in basso, cosi' gli input restano sulla stessa linea */
.row > .field { align-self: flex-end; }
/* riga nazione / prefisso / telefono (account e registrazione); schermi stretti: telefono sotto */
.row.tel > .f-cc { flex: 0 0 72px; }
.row.tel > .f-pref { flex: 0 0 84px; }
@media (max-width: 379px) { .row.tel { row-gap: 0; } .row.tel > .f-cc, .row.tel > .f-pref { flex: 1 1 0; } .row.tel > .f-tel { flex: 1 1 100%; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; margin: 8px 0 12px; min-height: 44px; line-height: 1.3; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--blu); }
.card:not(.light) .check input { accent-color: #fff; }
.check-hint { display: block; font-size: 17px; font-weight: 500; color: #555; margin-top: 2px; }
.card:not(.light) .check-hint { color: var(--dim); }
select, option, optgroup { color: #000; }

/* ---- bottoni: pillola bianca su blu, pillola blu sui cartoncini bianchi ---- */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; padding: 13px 18px; min-height: 52px;
  border: 2px solid #fff; border-radius: 999px; background: #fff; color: var(--blu);
  font-weight: 900; text-transform: uppercase; letter-spacing: .6px; font-size: 19px; margin-top: 6px;
  text-align: center; line-height: 1.2;
  -webkit-tap-highlight-color: transparent; transition: transform .1s;
}
.btn:active { transform: scale(.98); }
.btn.sec, .btn.ghost { background: transparent; color: #fff; }
.btn.ghost { border-width: 1.5px; border-color: rgba(255,255,255,.75); font-weight: 700; }
.btn.white { background: #fff; color: var(--blu); border-color: #fff; }
.btn.small { padding: 9px 12px; font-size: 18px; min-height: 48px; letter-spacing: .4px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.card.light .btn, .pay-block .btn, .race-head .btn, .page-html .btn, .list-item .btn, .race-card .btn { background: var(--blu); color: #fff; border-color: var(--blu); }
.card.light .btn.sec, .pay-block .btn.sec, .card.light .btn.ghost, .pay-block .btn.ghost, .race-head .btn.ghost, .list-item .btn.sec { background: transparent; color: var(--blu); border-color: var(--blu); }
/* contatti: un solo bottone "Scrivici su Messenger" */
.btn.msg-btn { gap: 10px; text-transform: none; letter-spacing: .2px; font-size: 20px; }
.btn.msg-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 20px; font-weight: 600; }
.links a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); padding: 6px 0 2px; }
.links.sx { justify-content: flex-start; margin-top: 10px; }
.links.invito-link { margin-top: 20px; }
.err { background: var(--rosso); color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 20px; font-weight: 600; margin-bottom: 12px; line-height: 1.35; }
.ok-box { background: var(--verde); color: #002; padding: 10px 12px; border-radius: 10px; font-size: 20px; font-weight: 600; margin-bottom: 12px; line-height: 1.35; }
.ok-box ul { margin: 6px 0 0 22px; font-weight: 800; }
.avviso { background: var(--ambra); color: #000; padding: 10px 12px; border-radius: 10px; font-size: 20px; font-weight: 600; margin-bottom: 12px; line-height: 1.35; }
.avviso .btn { margin: 0; }
.avviso .btn.sec { color: #000; border-color: #000; }               /* contrasto sul giallo */

/* ---- pagamento ---- */
.pay-block { background: #fff; color: #000; border-radius: 16px; padding: 14px; margin-bottom: 14px; text-align: center; box-shadow: var(--ombra); }
.pay-block .h { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.pay-block .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-block .btns .btn { margin: 0; }
/* voci (Quota, Da pagare...) sempre su una riga: con i caratteri grandi va a capo il valore (es. stato) */
.amounts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 20px; align-items: center; }
.amounts .k { color: var(--testo2); }
.card.light .amounts .k, .pay-block .amounts .k { color: #555; }
.amounts .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.amounts .v.tot { font-size: 24px; color: #8dffc2; }
.card.light .amounts .v.tot, .pay-block .amounts .v.tot { color: #0a7a36; }
.bank { font-size: 20px; line-height: 1.55; }
.bank b { font-family: ui-monospace, Consolas, monospace; font-size: 18px; word-break: break-all; }
.pay-list { margin-top: 12px; font-size: 19px; }
.pay-list .p { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.25); gap: 8px; }
.card.light .pay-list .p { border-color: #e2e4f2; }

/* ---- liste e tabelle ---- */
.list-item { background: #fff; color: #000; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; box-shadow: var(--ombra); }
.list-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; background: #dfe3ff; }
.list-item .body { flex: 1; font-size: 19px; font-weight: 600; min-width: 0; line-height: 1.35; overflow-wrap: break-word; }
.list-item .body .t { font-weight: 800; text-transform: uppercase; }
@media (max-width: 379px) { .list-item { flex-wrap: wrap; } .list-item .btn { flex: 1 0 100%; margin-top: 6px !important; } }
.table { width: 100%; border-collapse: collapse; font-size: 19px; color: #fff; }
.table th { text-align: left; font-size: 16px; letter-spacing: .6px; text-transform: uppercase; color: var(--testo2); padding: 6px; border-bottom: 1px solid rgba(255,255,255,.45); }
.table td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.18); overflow-wrap: anywhere; }
.table td.n { color: var(--testo2); width: 34px; }
.table .el-team { font-size: 17px; }
.page-html { background: #fff; color: #000; border-radius: 16px; padding: 16px; font-size: 20px; line-height: 1.5; box-shadow: var(--ombra); overflow-wrap: break-word; }
.page-html p, .page-html ul { margin-bottom: 10px; } .page-html ul { padding-left: 20px; }
.page-html a { color: var(--blu); text-decoration: underline; }

/* ---- toast e varie ---- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); background: #fff; color: var(--blu-scuro); padding: 12px 20px; border-radius: 26px; font-size: 20px; font-weight: 700; z-index: 50; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,60,.45); text-align: center; line-height: 1.3; }
.toast.err { background: var(--rosso); color: #fff; }
.empty { text-align: center; color: var(--testo2); padding: 30px 10px; font-size: 20px; }
.footer-note { text-align: center; color: var(--dim); font-size: 18px; margin-top: 26px; }
.footer-note a { color: #fff; display: inline-block; padding: 8px 2px; }

/* ---- filtri, sconto, equipaggio, calendario ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-f { border: 1.5px solid #fff; color: #fff; border-radius: 999px; padding: 9px 16px; min-height: 48px; display: inline-flex; align-items: center; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.chip-f.on { background: #fff; color: var(--blu); }
.chip { display: inline-block; font-size: 16px; font-weight: 800; letter-spacing: .5px; padding: 2px 8px; border-radius: 10px; background: var(--blu); color: #fff; vertical-align: 1px; margin-left: 4px; line-height: 1.3; }
.sconto-row { display: flex; gap: 8px; align-items: stretch; }
.sconto-row input { flex: 1 1 auto; min-width: 0; }
.sconto-row .btn { flex: 0 0 auto; width: auto; margin: 0; padding: 0 16px; }
.details { margin: 4px 0 14px; border: 1px solid #d8dbef; border-radius: 12px; padding: 4px 12px; background: #f6f7fd; }
.details summary { cursor: pointer; font-weight: 700; font-size: 20px; padding: 9px 0; line-height: 1.3; }
.details .field { margin-top: 12px; }
.pilota-row { display: grid; grid-template-columns: 38px 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; align-items: center; }
.pilota-row .num { font-weight: 800; font-size: 18px; color: #444; }
.card:not(.light) .pilota-row .num { color: var(--testo2); }
/* input diretti di .row (es. nome / cognome del team manager); i .field nelle .row restano come gli altri campi */
.card.light .pilota-row input, .card.light .row > input, .card.light .sq-riga input { width: 100%; background: #f2f3fb; border: 1.5px solid #d8dbef; color: #000; border-radius: 10px; padding: 10px 8px; font: inherit; font-size: 18px; min-width: 0; min-height: 50px; }
.card:not(.light) .pilota-row input, .card:not(.light) .row > input { width: 100%; background: #fff; border: 1.5px solid #fff; color: #000; border-radius: 10px; padding: 10px 8px; font: inherit; font-size: 18px; min-width: 0; min-height: 50px; }
.card.light .pilota-row input:focus, .card.light .row > input:focus, .card.light .sq-riga input:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 3px rgba(10,14,224,.15); }
@media (max-width: 480px) { .pilota-row { grid-template-columns: 36px 1fr 1fr; } .pilota-row input[type=date] { grid-column: 2 / -1; } }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-nav .btn { min-width: 48px; min-height: 48px; font-size: 24px; }
.cal-title { font-weight: 900; text-transform: uppercase; font-size: 22px; letter-spacing: .5px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-h { text-align: center; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--testo2); padding: 4px 0; }
.cal-d { aspect-ratio: 1 / 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; gap: 2px; }
.cal-d.vuoto { background: transparent; border-color: transparent; }
.cal-d.gara { background: #fff; color: var(--blu); cursor: pointer; font-weight: 900; border-color: #fff; }
.cal-d.gara i { width: 7px; height: 7px; border-radius: 50%; background: var(--rosso); }
.cal-d.oggi { box-shadow: 0 0 0 2px #fff; }

/* ---- squadra nell'iscrizione: "Riprendi una squadra salvata", piloti da spuntare ---- */
.sez { border: 1.5px solid #d8dbef; border-radius: 14px; padding: 6px 12px 4px; margin: 6px 0 16px; background: #fafbff; min-width: 0; }
.sez > legend { font-size: 17px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blu); padding: 0 6px; }
.sez .details { background: #fff; }
.sq-scelta { background: #eef0ff; border-radius: 12px; padding: 8px 12px 4px; margin: -4px 0 14px; }
.sq-tit { font-size: 17px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #333; margin-bottom: 2px; }
.sq-tit .muted { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 16px; }
.sq-p { margin: 0; min-height: 44px; }
.sq-p .muted { font-size: 17px; font-weight: 500; }
.sq-p input:disabled + span { opacity: .45; }
/* le mie squadre: schede e modulo con righe pilota aggiungibili */
.sq-card { margin-bottom: 12px; font-size: 20px; line-height: 1.4; }
.sq-card > div { margin-bottom: 3px; }
.sq-nome { font-size: 23px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px !important; overflow-wrap: anywhere; }
.sq-uso { margin-top: 6px; }
.sq-card .row .btn { margin-top: 0; }
.sq-riga { display: grid; grid-template-columns: 38px 1fr 1fr 44px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e2e4f2; }
.sq-riga:first-child { padding-top: 0; }
.sq-riga input[type=date] { grid-column: 2 / 4; }
.sq-n { font-weight: 800; font-size: 18px; color: #444; grid-row: 1 / 3; align-self: center; }
.sq-x { grid-column: 4; grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #e3b4b4; background: #fff; color: var(--rosso); font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.sq-x:focus-visible { outline: 3px solid rgba(217,30,30,.35); outline-offset: 2px; }
#righe + .btn { margin-top: 10px; }

/* ---- notifiche push: stato del dispositivo, inviti di una gara, pagina invito ---- */
.push-box { margin: 10px 0 4px; }
.push-stato { display: flex; align-items: flex-start; gap: 10px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.pallino { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 7px; background: rgba(255,255,255,.35); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.pallino.ok { background: var(--verde); box-shadow: none; }
.pallino.warn { background: var(--ambra); box-shadow: none; }
.push-box .btn { margin-top: 12px; }
.push-err .err { margin: 10px 0 0; }
.invito { border-top: 1px solid rgba(255,255,255,.3); padding: 12px 0; }
.invito:last-child { padding-bottom: 2px; }
.inv-testa { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 20px; }
.inv-chi { min-width: 0; overflow-wrap: anywhere; }
.inv-mail, .inv-dett { font-size: 17px; color: var(--testo2); margin-top: 2px; overflow-wrap: anywhere; }
.inv-dett b { color: #fff; }
.invito.revocato .inv-chi { opacity: .7; }
.inv-azioni { margin-top: 8px; }
.inv-azioni .btn { margin-top: 0; }
.codice { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; white-space: nowrap; }
.codice-in { font-family: ui-monospace, Consolas, monospace; font-size: 22px !important; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.codice-in::placeholder { letter-spacing: 1px; color: #999; }
.ios-box { background: #fff; color: #000; border-left: 6px solid var(--ambra); border-radius: 12px; padding: 12px 14px; font-size: 20px; line-height: 1.45; margin-bottom: 12px; }
.inv-gara img { height: 110px; }

/* ---- prove libere: carrello (fasce con − quantita' +) e ordini ---- */
.pl-giorno { font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--blu); margin: 16px 0 2px; }
.pl-fascia { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 0; border-top: 1px solid #e2e4f2; }
.pl-info { flex: 1 1 110px; min-width: 0; }
.pl-ora { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-sub { font-size: 18px; font-weight: 600; color: #555; margin-top: 2px; }
.pl-sub .badge { margin-left: 2px; vertical-align: 1px; }
.pl-fascia.scelta .pl-ora { color: var(--blu); }
.pl-fascia.esaurita .pl-ora { color: #767676; }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blu); background: #fff; color: var(--blu); font-size: 24px; font-weight: 800; line-height: 1; padding: 0 0 2px; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.stepper button[data-piu] { background: var(--blu); color: #fff; }
.stepper button:active { transform: scale(.94); }
.stepper button:focus-visible { outline: 3px solid rgba(10,14,224,.35); outline-offset: 2px; }
.stepper button[aria-disabled="true"], .stepper button[disabled] { opacity: .3; }
.stepper .st-q { width: 50px; height: 44px; padding: 0; text-align: center; font: inherit; font-size: 21px; font-weight: 800; color: #000; background: #f2f3fb; border: 1.5px solid #d8dbef; border-radius: 10px; -moz-appearance: textfield; appearance: textfield; }
.stepper .st-q::-webkit-outer-spin-button, .stepper .st-q::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .st-q:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 3px rgba(10,14,224,.15); }
.stepper .st-q:disabled { opacity: .4; }
/* riepilogo sempre a portata di pollice: resta in fondo allo schermo mentre si scorrono le fasce */
.pl-tot { position: sticky; bottom: calc(10px + var(--sab)); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 14px; padding: 12px 18px; border-radius: 999px; background: var(--blu); color: #fff; font-size: 20px; font-weight: 700; box-shadow: var(--ombra); }
.pl-tot b { font-size: 24px; font-variant-numeric: tabular-nums; }
.pl-ordine { margin-bottom: 10px; }
.pl-righe { margin-top: 8px; }
.pl-riga { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.25); font-size: 19px; }
.pl-riga > :first-child { flex: 1 1 auto; min-width: 0; }
.pl-riga > :last-child { flex: none; font-variant-numeric: tabular-nums; }
.pl-riga.tolta > :first-child { text-decoration: line-through; opacity: .75; }
.pl-riga.tot { font-weight: 800; border-top-color: rgba(255,255,255,.6); }
.btn small { display: block; width: 100%; font-weight: 600; font-size: 16px; letter-spacing: 0; text-transform: none; margin-top: 2px; }
/* ============================================================================
   04/10/2026 — gruppi multipli e PAST, foto della nota, Media TV (foto e visore), pagine di
   gara portate nell'app (kart log, team log, report, abbinamenti) e foglio dal basso
   ============================================================================ */
/* gruppi: una gara puo' avere piu' chip; i gruppi PAST <anno> sono tratteggiati */
.chip.past { border: 1.5px dashed rgba(255,255,255,.85); }
.chip-f.past { border-style: dashed; opacity: .88; }
.chip-f.past.on { opacity: 1; }
.race-card .body .t .chip { margin-top: 2px; }
/* calendario: un puntino per ogni colore di gruppo delle gare del giorno */
.cal-dots { display: flex; gap: 3px; justify-content: center; }
/* nota: foto in alto, prima del testo, con ombra morbida; immagini nel testo arrotondate */
.nota-foto { width: 100%; height: auto; border-radius: 12px; margin: 0 0 14px; box-shadow: 0 6px 18px rgba(0, 0, 40, .28); }
.page-html img { height: auto; border-radius: 10px; }
/* Media TV: foto grande nella scheda; tipo link con la sua etichetta */
.media-foto { display: block; width: 100%; background: #fff; color: #000; border: 0; border-radius: 16px; padding: 10px; margin-bottom: 12px; box-shadow: var(--ombra); font: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.media-foto img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; border-radius: 10px; background: #dfe3ff; }
.media-foto figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.media-foto .t { font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere; }
.media-foto .badge { flex: none; }
/* visore a tutto schermo */
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.viewer-x { position: absolute; top: calc(10px + var(--sat)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.5); color: #fff; font-size: 30px; line-height: 1; padding: 0 0 3px; }
.viewer-tit { position: absolute; left: 0; right: 0; bottom: calc(16px + var(--sab)); text-align: center; color: #fff; font-size: 19px; font-weight: 700; padding: 0 16px; text-shadow: 0 1px 4px #000; }
body.no-scroll { overflow: hidden; }
/* foglio dal basso (cartoncino bianco): accesso operatore, scelta del kart, partenza / fine */
.sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,40,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: #fff; color: #000; border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + var(--sab)); box-shadow: 0 -8px 30px rgba(0,0,60,.4); animation: sheetin .22s ease; }
@keyframes sheetin { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-testa { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-tit { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; overflow-wrap: anywhere; line-height: 1.2; }
.sheet-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #ccd; background: #fff; color: #000; font-size: 28px; line-height: 1; padding: 0 0 3px; }
.sheet .btn { background: var(--blu); color: #fff; border-color: var(--blu); }
.sheet .btn.sec, .sheet .btn.ghost { background: transparent; color: var(--blu); border-color: var(--blu); }
.sheet .field label { color: #444; }
.sheet .field input, .sheet .field select, .sheet .field textarea { background: #f2f3fb; border-color: #d8dbef; }
.sheet .muted, .sheet .hint { color: #555; }
.sheet .row .btn.small { margin-top: 0; }
/* ---- kart log / team log ---- */
.log-tabs { justify-content: center; }
.gara-riga { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 12px; font-size: 19px; line-height: 1.3; }
.gara-riga b { font-size: 21px; text-transform: uppercase; }
.gara-stato { font-weight: 700; color: var(--testo2); }
.gara-stato.corsa { color: #8dffc2; }
.gara-stato.fine { color: var(--ambra); }
.card.light .gara-stato { color: #555; font-size: 17px; }
.card.light .gara-stato.corsa { color: #0a7a36; }
.card.light .gara-stato.fine { color: #8a5a00; }
.log-chi { text-align: center; margin-top: 4px; }
.riep { margin-bottom: 12px; padding: 12px 14px; }
.riep-riga { padding: 8px 0; border-bottom: 1px solid #eef0f8; line-height: 1.25; }
.riep-riga:last-child { border-bottom: 0; }
.riep-chi { font-size: 19px; font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere; }
.riep-dati { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 16px; color: #555; margin-top: 2px; font-variant-numeric: tabular-nums; }
.riep-dati b { color: #000; font-size: 18px; }
.riep-giro b { font-weight: 800; }
.riep-riga.best { background: #e9fbef; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.riep-riga.best .riep-giro b { color: #0a7a36; }
.stint { background: #fff; color: #000; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; box-shadow: var(--ombra); }
.stint.fuori { opacity: .72; }
.stint.aperto { box-shadow: var(--ombra), inset 0 0 0 2px var(--verde); }
.stint-testa { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stint-chi { flex: 1 1 auto; font-size: 22px; font-weight: 900; text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.stint-ore { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stint-ore .in-corso { color: #0a7a36; text-transform: uppercase; }
.stint-dati { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 17px; color: #555; margin-top: 4px; }
.stint-dati b { color: #000; font-variant-numeric: tabular-nums; }
/* ---- report ---- */
.rep-gara { margin-bottom: 12px; padding: 12px 14px; }
.rep-gara .t { font-weight: 800; font-size: 20px; text-transform: uppercase; }
.rep-gara .muted { font-size: 17px; }
.rep-chi { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px; }
.rep-chi > div:first-child { min-width: 0; }
.rep-tipo { font-size: 15px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #555; }
.rep-nome { font-size: 22px; font-weight: 900; text-transform: uppercase; overflow-wrap: anywhere; line-height: 1.15; }
.gettoni { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 6px 12px; border-radius: 14px; background: var(--verde); color: #002; }
.gettoni.low { background: var(--rosso); color: #fff; }
.gettoni-n { font-size: 30px; font-weight: 900; line-height: 1; }
.gettoni-l { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.rep-miei-testa { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rep-item { background: #fff; color: #000; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; box-shadow: var(--ombra); }
.rep-testa { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rep-dett { font-size: 20px; font-weight: 800; line-height: 1.25; }
.rep-testa .badge { flex: none; }
.rep-sub { font-size: 18px; color: #333; margin-top: 3px; overflow-wrap: anywhere; line-height: 1.35; }
.rep-motivo { margin-top: 8px; padding: 8px 12px; border-left: 5px solid var(--rosso); background: #fff0f0; border-radius: 8px; font-size: 18px; line-height: 1.4; }
.rep-motivo b { display: block; color: var(--rosso); font-size: 14px; letter-spacing: .6px; text-transform: uppercase; }
/* ---- abbinamenti ---- */
.abb-gara { margin-bottom: 10px; padding: 12px 14px; }
.abb-gara .t { font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.2; }
.abb-gara-testa { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.abb-gara-testa > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.abb-cmd { margin-top: 10px; }
.abb-cmd .btn { margin-top: 0; }
.pr-pill { flex: none; display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 14px; background: #111; color: var(--verde); min-width: 92px; }
.pr-pill.rosso { background: var(--rosso); color: #fff; animation: prblink 1s steps(2) infinite; }
@keyframes prblink { to { opacity: .55; } }
.pr-l { font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.pr-v { font-size: 30px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.pr-v small { font-size: 16px; font-weight: 800; }
.abb-op { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; margin-bottom: 2px; font-size: 19px; }
.abb-op-nome { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.abb-row { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; color: #000; border: 0; border-radius: 16px; padding: 8px 10px 8px 14px; margin-bottom: 8px; box-shadow: var(--ombra); font: inherit; text-align: left; min-height: 64px; -webkit-tap-highlight-color: transparent; }
button.abb-row:active { transform: scale(.985); }
.abb-row.senza { background: #e6e8f3; }
.abb-n { flex: none; font-size: 20px; font-weight: 900; color: var(--blu); min-width: 40px; }
.abb-nome { flex: 1 1 auto; min-width: 0; font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }
.abb-nome small { display: block; font-size: 15px; font-weight: 600; text-transform: none; color: #555; }
.abb-row .badge { flex: none; }
.abb-kart { flex: none; min-width: 64px; padding: 6px 10px; border-radius: 12px; background: #111; color: #fff; font-size: 30px; font-weight: 900; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.abb-kart.vuoto { background: transparent; color: #999; }
.conta { font-weight: 600; color: var(--testo2); font-size: 18px; }
.kchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.kchip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; min-height: 56px; padding: 4px 10px; border-radius: 14px; border: 2px solid #fff; background: #fff; color: #000; font: inherit; -webkit-tap-highlight-color: transparent; }
button.kchip:active { transform: scale(.95); }
.kchip-n { font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.kchip-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #555; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.kchip.parcheggio { background: var(--verde); border-color: var(--verde); color: #002; }
.kchip.parcheggio .kchip-sub { color: #024; }
.kchip.pista { background: var(--ambra); border-color: var(--ambra); }
.kchip.officina { background: #444; color: #fff; border-color: #444; }
.kchip.officina .kchip-sub { color: #ddd; }
.kchip:disabled { opacity: .4; }
.kchips .muted { font-size: 18px; }
.sheet .kchip { border-color: #d8dbef; }

@media (prefers-reduced-motion: reduce) { .view, .sheet, .pr-pill.rosso { animation: none; } .boot-spin { animation-duration: 2s; } .tile, .btn, .pages, .dots button::before { transition: none; } }
.pay-block .btns .btn, .row .btn.small { flex-direction: column; line-height: 1.2; }
/* foto in mezzo al testo di una nota (oltre alla foto principale): larghe come il testo, con ombra leggera */
.page-html img.nota-testo-foto { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; box-shadow: 0 6px 18px rgba(0, 0, 40, .28); }
.page-html img { max-width: 100%; }
/* REPORT del manager: KART LOG, TEAM LOG, ABBINAMENTI in fondo alla pagina */
.rep-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.rep-widgets.due { grid-template-columns: repeat(2, 1fr); }
.rep-widget { background: #fff; color: var(--blu); border-radius: 16px; padding: 14px 6px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; box-shadow: var(--ombra); text-align: center; }
.rep-widget .rw-ico { font-size: 30px; line-height: 1; }
.rep-widget .rw-t { font-weight: 800; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.rep-widget:active { transform: scale(.98); }

/* ---- REPORT del manager: gestione delle segnalazioni della gara (26/10/2026) ---- */
button.chip-f { background: transparent; font-family: inherit; cursor: pointer; }
button.chip-f.on { background: #fff; color: var(--blu); }
.gest-filtri .chip-f { min-height: 42px; padding: 6px 12px; font-size: 16px; }
.gest-card { background: #fff; color: #000; border-radius: 16px; padding: 10px 14px 12px; margin-bottom: 10px; box-shadow: var(--ombra); border-left: 8px solid #9aa0b4; }
.gest-card.st-verde { border-left-color: var(--verde); }
.gest-card.st-giallo { border-left-color: var(--ambra); }
.gest-card.st-rosso { border-left-color: var(--rosso); }
.gest-card.nuova { box-shadow: 0 0 0 3px var(--ambra), var(--ombra); }
.gest-testa { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.gest-tit { font-size: 20px; font-weight: 800; line-height: 1.25; min-width: 0; }
.gest-id { color: var(--blu); }
.gest-testa .badge { flex: none; }
.gest-da, .gest-info { font-size: 18px; color: #333; margin-top: 4px; line-height: 1.35; overflow-wrap: anywhere; }
.gest-da .badge { font-size: 13px; padding: 2px 8px; vertical-align: 2px; }
.gest-comm { font-size: 18px; margin-top: 6px; padding: 6px 10px; background: #f2f3fb; color: #000; border-radius: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.gest-lt { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px 6px 10px; background: #fff8e0; color: #000; border: 1px solid #f1d27a; border-radius: 10px; }
.gest-lt-t { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.gest-lt .btn { flex: none; width: auto; margin: 0; min-height: 40px; padding: 6px 12px; font-size: 16px; }
.gest-crono { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gest-crono .btn { width: auto; margin: 0 0 0 auto; }
.crono-stato { font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .3px; }
.crono-stato.rosso { color: var(--rosso); }
.crono-stato.ok { color: #0a7a3e; }
.crono-cnt { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; color: #a05a00; }
.crono-cnt.scaduto { color: var(--rosso); animation: lampeggia .8s ease-in-out infinite; }
.crono-tp { font-size: 18px; color: #555; font-weight: 700; }
@keyframes lampeggia { 50% { opacity: .35; } }
.gest-motivo { margin-top: 8px; padding: 8px 12px; border-left: 5px solid var(--blu); background: #eef0ff; color: #000; border-radius: 8px; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.gest-motivo b { display: block; color: var(--blu); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; white-space: normal; }
.gest-azioni { display: flex; gap: 8px; margin-top: 10px; }
.gest-azioni .btn { flex: 1; margin: 0; }
.gest-card .btn { background: var(--blu); color: #fff; border-color: var(--blu); }
.gest-card .btn.sec { background: transparent; color: var(--blu); }
.gest-card .btn.white, .sheet .gest-lt .btn { background: #fff; color: var(--blu); border-color: var(--blu); }
.gest-resp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.gest-resp .btn { margin: 0; padding: 8px 4px; font-size: 16px; }
.sheet .gest-resp .r-verde { background: #fff; color: #0a7a3e; border-color: var(--verde); }
.sheet .gest-resp .r-giallo { background: #fff; color: #8a5a00; border-color: var(--ambra); }
.sheet .gest-resp .r-rosso { background: #fff; color: var(--rosso); border-color: var(--rosso); }
.sheet .gest-resp .r-verde.on { background: var(--verde); color: #002; }
.sheet .gest-resp .r-giallo.on { background: var(--ambra); color: #000; }
.sheet .gest-resp .r-rosso.on { background: var(--rosso); color: #fff; }
.rep-nuovo { margin-top: 14px; }
.rep-nuovo > summary { cursor: pointer; font-size: 22px; font-weight: 800; text-transform: uppercase; color: #000; padding: 4px 0; }
.rep-nuovo[open] > summary { margin-bottom: 10px; }
.rep-op-nota { font-size: 18px; margin-bottom: 12px; }
.iscr-mia .badge { display: inline-block; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .crono-cnt.scaduto { animation: none; } }
