/* 🎨 Nuova grafica (stile pulito, ispirata a Trainline) — vale SOLO con <html class="tg-nuova">.
   Non cambia le funzioni: colori, spazi, bordi e caratteri. Restano com'erano tabellone nero, ledwall e foto. */
html.tg-nuova{--n-ink:#192325;--n-sub:#5d6b70;--n-navy:#0f2a4d;--n-blu:#2a46c8;--n-blu-l:#eef0fc;--n-cta:#0e9f86;--n-campo:#f1f3f3;--n-riga:#dde2e3;--n-bg:#ffffff;--n-card:#ffffff;
 --n-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
html.tg-nuova[data-theme="dark"]{--n-ink:#e7ecef;--n-sub:#9aa8b0;--n-navy:#eef2f5;--n-blu:#8c9bff;--n-blu-l:#1f2550;--n-cta:#12b394;--n-campo:#1d2630;--n-riga:#2c3742;--n-bg:#121a22;--n-card:#121a22}
html.tg-nuova,html.tg-nuova body.eav{background:var(--n-bg)!important}
html.tg-nuova body.eav,html.tg-nuova body.eav button,html.tg-nuova body.eav input,html.tg-nuova body.eav select{font-family:var(--n-font)!important}
html.tg-nuova body.eav{color:var(--n-ink)!important}
html.tg-nuova body.eav main{background:var(--n-bg)!important}

/* ---------- testata: bianca, logo blu notte ---------- */
html.tg-nuova body.eav header.eav-top{background:var(--n-bg)!important;color:var(--n-navy)!important;border-bottom:1px solid var(--n-riga)!important;box-shadow:none!important}
html.tg-nuova body.eav header.eav-top h1{color:var(--n-navy)!important;font-weight:700!important}
html.tg-nuova body.eav header.eav-top small{color:var(--n-sub)!important}
html.tg-nuova body.eav header.eav-top .eav-net{background:transparent!important;color:var(--n-sub)!important}
html.tg-nuova body.eav header.eav-top .eav-ciao{background:var(--n-campo)!important;color:var(--n-ink)!important}
html.tg-nuova body.eav header.eav-top .eav-ciao b{color:var(--n-ink)!important}
html.tg-nuova body.eav header.eav-top button.eav-act{background:var(--n-campo)!important;color:var(--n-ink)!important;border:0!important;box-shadow:none!important}
html.tg-nuova body.eav header.eav-top button.eav-act small{color:var(--n-ink)!important}
html.tg-nuova body.eav header.eav-top button.eav-act-inst{background:var(--n-cta)!important;color:#fff!important}
html.tg-nuova body.eav header.eav-top button.eav-act-inst small{color:#fff!important}

/* ---------- schede in alto (PC): testo semplice, sottolineata quella attiva ---------- */
html.tg-nuova body.eav nav#tabs{background:var(--n-bg)!important;border-bottom:1px solid var(--n-riga)!important;box-shadow:none!important;gap:4px!important}
html.tg-nuova body.eav nav#tabs>button{background:transparent!important;color:var(--n-sub)!important;border:0!important;border-radius:0!important;box-shadow:none!important;border-bottom:3px solid transparent!important;font-weight:600!important}
html.tg-nuova body.eav nav#tabs>button .tab-lab,html.tg-nuova body.eav nav#tabs>button small{color:inherit!important}
html.tg-nuova body.eav nav#tabs>button.on{color:var(--n-blu)!important;border-bottom-color:var(--n-blu)!important;background:transparent!important}
html.tg-nuova body.eav nav#tabs>button:hover{color:var(--n-ink)!important;background:var(--n-campo)!important}
html.tg-nuova body.eav nav#tabs .tab-ico svg,html.tg-nuova body.eav .eav-bn-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}

/* ---------- barra in basso (telefono): bianca, voce attiva in blu ---------- */
html.tg-nuova body.eav nav.eav-bnav{background:var(--n-bg)!important;border-top:1px solid var(--n-riga)!important;border-radius:0!important;box-shadow:0 -2px 10px rgba(0,0,0,.04)!important}
html.tg-nuova body.eav nav.eav-bnav button.eav-bn{background:transparent!important;color:var(--n-sub)!important;box-shadow:none!important}
html.tg-nuova body.eav nav.eav-bnav button.eav-bn .eav-bn-lab{color:inherit!important;font-weight:600!important}
html.tg-nuova body.eav nav.eav-bnav button.eav-bn.on{background:transparent!important;color:var(--n-blu)!important}
html.tg-nuova body.eav nav.eav-bnav button.eav-bn.on .eav-bn-lab{font-weight:800!important}
html.tg-nuova body.eav nav.eav-bnav button.eav-bn.on::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--n-blu)}
html.tg-nuova body.eav nav.eav-bnav button.eav-bn{position:relative!important}

/* ---------- le sezioni: niente "scatole", pagina bianca pulita ---------- */
html.tg-nuova body.eav #trainLive>section{background:var(--n-bg)!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html.tg-nuova body.eav #trainLive h3{color:var(--n-navy)!important;font-weight:700!important;letter-spacing:-.2px}
html.tg-nuova body.eav #trainLive p,html.tg-nuova body.eav #trainLive small{border-color:var(--n-riga)}

/* campi di testo e menu a tendina: grigi, piatti */
html.tg-nuova body.eav #trainLive input[type=search],html.tg-nuova body.eav #trainLive input[type=text],html.tg-nuova body.eav #trainLive input:not([type]),html.tg-nuova body.eav #trainLive input[type=number],html.tg-nuova body.eav #trainLive input[type=time],html.tg-nuova body.eav #trainLive input[inputmode],html.tg-nuova body.eav #trainLive select{background:var(--n-campo)!important;color:var(--n-ink)!important;border:1px solid transparent!important;border-bottom:1px solid var(--n-riga)!important;border-radius:6px!important;box-shadow:none!important}
html.tg-nuova body.eav #trainLive input:focus,html.tg-nuova body.eav #trainLive select:focus{outline:2px solid var(--n-blu)!important;outline-offset:0!important}

/* ---------- Home ---------- */
html.tg-nuova body.eav #trainLive .hm-vai2{background:var(--n-campo)!important;color:var(--n-ink)!important;border-radius:6px!important;box-shadow:none!important;border:0!important}
html.tg-nuova body.eav #trainLive .hm-vai2 b{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive .hm-vai2 small{color:var(--n-sub)!important}
html.tg-nuova body.eav #trainLive .hm-vai2-i{background:var(--n-cta)!important;color:#fff!important;border-radius:6px!important}
html.tg-nuova body.eav #trainLive .hm-vai2-go{color:var(--n-blu)!important}
html.tg-nuova body.eav #trainLive .hm-sez-t b{color:var(--n-sub)!important;font-weight:600!important}
html.tg-nuova body.eav #trainLive .hm-staz{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive .hm-cambia{background:transparent!important;color:var(--n-blu)!important;border:0!important;box-shadow:none!important}
html.tg-nuova body.eav #trainLive .hm-cambia span{color:var(--n-blu)!important}
html.tg-nuova body.eav #trainLive button.fx-card,html.tg-nuova body.eav #trainLive .hm-fx{background:var(--n-card)!important;border:1px solid var(--n-riga)!important;border-left:4px solid var(--c)!important;border-radius:8px!important;box-shadow:none!important;color:var(--n-ink)!important}
html.tg-nuova body.eav #trainLive .fx-t{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive .fx-r2 span{color:var(--n-sub)!important}
html.tg-nuova body.eav #trainLive .hm-link{color:var(--n-blu)!important}
html.tg-nuova body.eav #trainLive .hm-intro-t{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive button.hm-cs{background:var(--n-card)!important;border:1px solid var(--n-riga)!important;border-radius:8px!important;box-shadow:none!important;color:var(--n-ink)!important}
html.tg-nuova body.eav #trainLive .hm-cs-t{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive .hm-cs-d{color:var(--n-sub)!important}
html.tg-nuova body.eav #trainLive details.eav-leg{background:var(--n-card)!important;border:1px solid var(--n-riga)!important;border-radius:8px!important;box-shadow:none!important}

/* La mia linea: scheda bianca bordata, ora grande blu notte (come l'anteprima) */
html.tg-nuova body.eav #trainLive .ln button.ln-d{background:var(--n-bg)!important;color:var(--n-sub)!important;border:1.5px solid var(--n-riga)!important;border-radius:6px!important}
html.tg-nuova body.eav #trainLive .ln button.ln-d.on{background:var(--n-blu-l)!important;color:var(--n-blu)!important;border-color:var(--n-blu)!important}
html.tg-nuova body.eav #trainLive .ln button.ln-ed{background:var(--n-bg)!important;border:1.5px solid var(--n-riga)!important;border-radius:6px!important}
html.tg-nuova body.eav #trainLive .ln-hero{background:var(--n-card)!important;color:var(--n-ink)!important;border:1px solid var(--n-riga)!important;border-left:4px solid var(--c,var(--n-blu))!important;border-radius:8px!important;box-shadow:none!important}
html.tg-nuova body.eav #trainLive .ln-h-k,html.tg-nuova body.eav #trainLive .ln-num{color:var(--n-sub)!important}
html.tg-nuova body.eav #trainLive .ln-ora{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive .ln-tra,html.tg-nuova body.eav #trainLive .ln-h-v{color:var(--n-ink)!important}
html.tg-nuova body.eav #trainLive .ln-poi{border-top-color:var(--n-riga)!important;color:var(--n-ink)!important}
html.tg-nuova body.eav #trainLive .ln-poi span{color:var(--n-sub)!important}
html.tg-nuova body.eav #trainLive .ln button.ln-h-go{background:var(--n-cta)!important;color:#fff!important;border-radius:6px!important}
html.tg-nuova body.eav #trainLive .ln-sez{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive .ln button.ln-tr{background:var(--n-card)!important;color:var(--n-ink)!important;border:1px solid var(--n-riga)!important;border-left:4px solid var(--c)!important;border-radius:8px!important;box-shadow:none!important}
html.tg-nuova body.eav #trainLive .ln-inv{background:var(--n-blu-l)!important;color:var(--n-blu)!important;border-radius:8px!important}
html.tg-nuova body.eav #trainLive .ln-inv small{color:var(--n-ink)!important}
html.tg-nuova body.eav #trainLive .ln button.ln-sc{background:var(--n-blu)!important;border-radius:6px!important}
html.tg-nuova body.eav #trainLive .ln button.ln-bt{border-radius:10px!important}

/* ---------- interruttore Adesso / Tutto il giorno: segmenti con bordo blu ---------- */
html.tg-nuova body.eav #trainLive .sg{background:transparent!important;border:1.5px solid var(--n-riga)!important;border-radius:6px!important;padding:0!important;gap:0!important;overflow:hidden}
html.tg-nuova body.eav #trainLive .sg button.sg-b{border-radius:0!important;color:var(--n-sub)!important;background:transparent!important}
html.tg-nuova body.eav #trainLive .sg button.sg-b.on{background:var(--n-blu-l)!important;color:var(--n-blu)!important;box-shadow:inset 0 0 0 1.5px var(--n-blu)!important}

/* ---------- Partenze: testata pulita, il tabellone nero resta com'è ---------- */
html.tg-nuova body.eav #trainLive .train-board-head h3{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive button.train-board-star{background:var(--n-campo)!important;border:0!important;box-shadow:none!important}

/* ---------- Il mio treno ---------- */
html.tg-nuova body.eav #trainLive .tf-disp{background:var(--n-card)!important;color:var(--n-ink)!important;border:1px solid var(--n-riga)!important;border-left:4px solid var(--n-blu)!important;border-radius:8px!important;box-shadow:none!important}
html.tg-nuova body.eav #trainLive .tf-disp-l{color:var(--n-sub)!important}
html.tg-nuova body.eav #trainLive .tf-disp-s{color:var(--n-navy)!important}
html.tg-nuova body.eav #trainLive .tf-disp-t{color:var(--n-ink)!important}
html.tg-nuova body.eav #trainLive .tf-prog{background:var(--n-riga)!important}
html.tg-nuova body.eav #trainLive .tf-prog i{background:var(--n-blu)!important}
html.tg-nuova body.eav #trainLive .tf-prog-e{color:var(--n-sub)!important}
html.tg-nuova body.eav #trainLive button.tf-mappa{background:var(--n-bg)!important;color:var(--n-blu)!important;border:1.5px solid var(--n-blu)!important;border-radius:6px!important}
html.tg-nuova body.eav #trainLive .train-find-head,html.tg-nuova body.eav #trainLive .train-find-result>.train-find-head{background:var(--n-card)!important;box-shadow:none!important}

/* pulsanti principali (Cerca): verde, angoli poco arrotondati */
html.tg-nuova body.eav #trainLive form button[type=submit],html.tg-nuova body.eav #trainLive .rt-cerca,html.tg-nuova body.eav #trainLive button.tt-cerca{background:var(--n-cta)!important;color:#fff!important;border-radius:6px!important;box-shadow:none!important;border:0!important}

/* interruttore della prova */
.ng-box{margin:18px 0 6px;padding:12px 14px;border-radius:8px;border:1px dashed #9aa8b0;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.ng-box span{font-size:14px;font-weight:600;color:inherit}
html body.eav #trainLive button.ng-b{min-height:40px!important;padding:6px 14px!important;border-radius:6px!important;border:0!important;background:#2a46c8!important;color:#fff!important;font-weight:800!important;cursor:pointer!important;width:auto!important}

/* ---------- scelte attive (chip/filtri): blu chiaro con bordo blu, come i segmenti ---------- */
html.tg-nuova body.eav #trainLive button.rete-modo.on,html.tg-nuova body.eav #trainLive button.tt-kind.on,html.tg-nuova body.eav #trainLive button.fx-g.on,html.tg-nuova body.eav #trainLive button.ps-chip.on,html.tg-nuova body.eav #trainLive button.lx-f.on,html.tg-nuova body.eav #trainLive button.sc-filter.on,html.tg-nuova body.eav #trainLive button.fs-staz-b.on{background:var(--n-blu-l)!important;color:var(--n-blu)!important;border:1.5px solid var(--n-blu)!important;box-shadow:none!important}
html.tg-nuova body.eav #trainLive button.rete-modo.on *,html.tg-nuova body.eav #trainLive button.tt-kind.on *,html.tg-nuova body.eav #trainLive button.fx-g.on *{color:var(--n-blu)!important}
html.tg-nuova body.eav #trainLive button.rete-modo,html.tg-nuova body.eav #trainLive button.tt-kind,html.tg-nuova body.eav #trainLive button.fx-g,html.tg-nuova body.eav #trainLive button.ps-chip,html.tg-nuova body.eav #trainLive button.lx-f,html.tg-nuova body.eav #trainLive button.sc-filter,html.tg-nuova body.eav #trainLive button.fs-staz-b{border-radius:6px!important;box-shadow:none!important}
/* pulsante ⇅ per scambiare partenza e arrivo: tondo bianco con freccia blu */
html.tg-nuova body.eav #trainLive button.rete-inv,html.tg-nuova body.eav #trainLive button.bs2-inv{background:var(--n-bg)!important;color:var(--n-blu)!important;border:1px solid var(--n-riga)!important;box-shadow:none!important}
/* testata: scritte scure */
html.tg-nuova body.eav header.eav-top .eav-ciao *,html.tg-nuova body.eav header.eav-top .eav-net b{color:var(--n-ink)!important}
html.tg-nuova body.eav header.eav-top .eav-net i{background:#1aa36b!important}

/* le parti dei bus (gialle nella grafica di prima) prendono lo stesso stile blu delle altre scelte */
html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-modo.rete-modo-rete,html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-modo{background:var(--n-bg)!important;color:var(--n-ink)!important;border:1.5px solid var(--n-riga)!important;border-radius:6px!important}
html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-modo *{color:inherit!important}
html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-modo.on,html.tg-nuova.tg-nuova body.eav #trainLive .eav-bus .tt-kind.on,html.tg-nuova.tg-nuova body.eav #trainLive .eav-bus .fx-g.on,html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-box .tt-kind.on,html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-box .fx-g.on{background:var(--n-blu-l)!important;color:var(--n-blu)!important;border:1.5px solid var(--n-blu)!important}
html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-modo.on *,html.tg-nuova.tg-nuova body.eav #trainLive .eav-bus .fx-g.on *,html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-box .fx-g.on *{color:var(--n-blu)!important}
html.tg-nuova.tg-nuova body.eav #trainLive .eav-bus .bs2-inv,html.tg-nuova.tg-nuova body.eav #trainLive .eav-bus .rete-inv,html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-box .bs2-inv,html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-box .rete-inv,html.tg-nuova.tg-nuova body.eav #trainLive .eav-route .rete-inv{background:var(--n-bg)!important;color:var(--n-blu)!important;border:1px solid var(--n-riga)!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn.on{background:transparent!important;color:var(--n-blu)!important}
html.tg-nuova.tg-nuova body.eav .eav-ciao-m,html.tg-nuova.tg-nuova body.eav .eav-ciao-m *{color:var(--n-ink)!important}
html.tg-nuova.tg-nuova body.eav .eav-ciao-m{background:var(--n-campo)!important}

/* ================= versione 2 dell'anteprima: struttura come il disegno ================= */
/* testata compatta: logo + pulsanti tondi (le funzioni restano tutte) */
@media (max-width:760px){html.tg-nuova.tg-nuova body.eav header.eav-top button.eav-act:not(.eav-act-inst){width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important}}
html.tg-nuova.tg-nuova body.eav header.eav-top button.eav-act-inst{border-radius:999px!important}

/* Home: il modulo di ricerca prende il posto della scheda «Dove vuoi andare?» (stessa funzione) */
html.tg-nuova.tg-nuova body.eav #trainLive .eav-home .hm-azioni{display:none!important}
.ng-form{display:flex;flex-direction:column;gap:12px;margin:16px 0 8px}
html body.eav #trainLive .ng-form h2{margin:0!important;font-size:24px!important;line-height:1.2!important;color:var(--n-navy)!important;font-weight:800!important;letter-spacing:-.3px}
.ng-seg{display:flex;border:1.5px solid var(--n-riga);border-radius:6px;overflow:hidden}
html body.eav #trainLive button.ng-sb{flex:1!important;display:flex!important;gap:6px!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:6px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--n-sub)!important;font-size:15px!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap!important;cursor:pointer!important;width:auto!important}
html body.eav #trainLive button.ng-sb.on{background:var(--n-blu-l)!important;color:var(--n-blu)!important;box-shadow:inset 0 0 0 1.5px var(--n-blu)!important;font-weight:800!important}
html body.eav #trainLive .ng-form svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;flex:0 0 auto!important;max-width:22px!important;max-height:22px!important}
.ng-campi{position:relative;background:var(--n-campo);border-radius:6px}
.ng-c{display:flex;align-items:center;gap:12px;padding:10px 60px 10px 14px;color:var(--n-ink)}
.ng-c+.ng-c{border-top:1px solid var(--n-riga)}
.ng-c label{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;font-size:12.5px;color:var(--n-sub);font-weight:600}
html body.eav #trainLive .ng-c input{width:100%!important;min-width:0!important;border:0!important;outline:0!important;background:transparent!important;padding:2px 0!important;font-size:17px!important;font-weight:700!important;color:var(--n-ink)!important;box-shadow:none!important;min-height:0!important;border-radius:0!important}
html body.eav #trainLive .ng-c input::placeholder{color:var(--n-sub);font-weight:500}
html body.eav #trainLive button.ng-sw{position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;width:42px!important;height:42px!important;min-height:0!important;border-radius:50%!important;border:1px solid var(--n-riga)!important;background:var(--n-bg)!important;color:var(--n-blu)!important;display:grid!important;place-items:center!important;padding:0!important;cursor:pointer!important}
html body.eav #trainLive button.ng-quando{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;text-align:left!important;padding:10px 14px!important;border:0!important;border-radius:6px!important;background:var(--n-campo)!important;color:var(--n-ink)!important;cursor:pointer!important;box-shadow:none!important}
.ng-quando span{display:flex;flex-direction:column;font-size:12.5px;color:var(--n-sub);font-weight:600}.ng-quando b{font-size:17px;color:var(--n-ink)}
html body.eav #trainLive button.ng-cerca{width:100%!important;min-height:52px!important;border:0!important;border-radius:6px!important;background:var(--n-cta)!important;color:#fff!important;font-size:18px!important;font-weight:800!important;cursor:pointer!important;box-shadow:none!important}
.ng-msg{margin:-4px 2px 0;color:#c62828;font-weight:700;font-size:14px;min-height:0}
/* PC: Home su due colonne, ricerca a sinistra */
@media (min-width:1000px){
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home{display:grid!important;grid-template-columns:minmax(0,420px) minmax(0,1fr)!important;column-gap:34px!important;align-items:start!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>*{grid-column:2!important;min-width:0}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>.ng-form{grid-column:1!important;grid-row:1/span 40!important;position:sticky;top:12px;margin-top:0}
 html.tg-nuova.tg-nuova body.eav[data-tab="home"] #trainLive,html.tg-nuova.tg-nuova body.eav[data-tab="home"] main{max-width:1240px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home{max-width:none!important}
}
/* PC: in alto solo Home · Viaggio · Partenze · Il mio treno · Da visitare · Altro (le altre schede sono in «Altro») */
html.tg-nuova.tg-nuova body.eav nav#tabs>button[data-tab="passa"],html.tg-nuova.tg-nuova body.eav nav#tabs>button[data-tab="mappa"],html.tg-nuova.tg-nuova body.eav nav#tabs>button[data-tab="orario"],html.tg-nuova.tg-nuova body.eav nav#tabs>button[data-tab="fare"],html.tg-nuova.tg-nuova body.eav nav#tabs>button[data-tab="fs"],html.tg-nuova.tg-nuova body.eav nav#tabs>button[data-tab="strike"]{display:none!important}
html.tg-nuova.tg-nuova body.eav nav#tabs>button.ng-altro.on{color:var(--n-blu)!important;border-bottom-color:var(--n-blu)!important}
html body.eav nav#tabs>button.ng-altro{display:none}
html.tg-nuova body.eav nav#tabs>button.ng-altro{display:inline-flex!important;align-items:center;gap:6px}
html.tg-nuova body.eav nav#tabs>button.ng-altro em{font-style:normal;background:#e0313f;color:#fff;border-radius:999px;font-size:11px;padding:0 6px}

/* Il mio treno: fermate su una linea verticale, pallini blu */
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop{position:relative!important;grid-template-columns:22px 1fr auto!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop-ico{display:none!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop-extra{grid-column:2/-1!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop::before{content:"";position:absolute;left:8px;top:0;bottom:0;width:3px;background:var(--n-riga)}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop:first-child::before{top:50%}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop.ultima::before{bottom:50%}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop-dot{position:relative!important;z-index:1;display:block!important;width:13px!important;height:13px!important;margin-left:3px!important;border-radius:50%!important;background:var(--n-bg)!important;border:2.5px solid var(--n-riga)!important;box-shadow:none!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop.done .train-stop-dot{background:var(--n-blu)!important;border-color:var(--n-blu)!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop.now .train-stop-dot{border-color:var(--n-blu)!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop.done .train-stop-name,html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop.done .train-stop-time{color:var(--n-sub)!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop.now{background:var(--n-blu-l)!important;border-radius:6px!important}
html.tg-nuova.tg-nuova body.eav .train-stops.tf-timeline .train-stop.now .train-stop-name{color:var(--n-blu)!important;font-weight:800!important}

/* 🎨 barra in basso: icone colorate e Partenze LIVE più grande al centro (bnav-colori) */
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn{--bc:#2f6fed;--bt:rgba(47,111,237,.12);color:#3c4a5c!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="home"]{--bc:#2f6fed;--bt:rgba(47,111,237,.13)}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="route"]{--bc:#0f9d76;--bt:rgba(15,157,118,.13)}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="find"]{--bc:#8e44ad;--bt:rgba(142,68,173,.13)}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="altro"]{--bc:#e67700;--bt:rgba(230,119,0,.13)}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn .eav-bn-ico{filter:none!important;opacity:1!important;color:var(--bc)!important;display:inline-flex!important;align-items:center;justify-content:center;width:46px;height:30px;border-radius:15px;transition:background .2s}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn .eav-bn-ico svg{width:24px!important;height:24px!important;stroke-width:2.1!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn.on{color:var(--bc)!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn.on .eav-bn-ico{background:var(--bt)!important;transform:none!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn.on::before{background:var(--bc)!important}
/* Partenze LIVE: pulsante rotondo rosso, più grande, che esce dalla barra */
html.tg-nuova.tg-nuova body.eav nav.eav-bnav{overflow:visible!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"]{--bc:#e0313f;overflow:visible!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"] .eav-bn-ico{width:58px!important;height:58px!important;border-radius:50%!important;margin-top:-26px!important;background:linear-gradient(160deg,#ff4d5a,#d0202f)!important;color:#fff!important;box-shadow:0 6px 16px rgba(224,49,63,.45),0 0 0 4px var(--n-bg,#fff)!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"] .eav-bn-ico svg{width:30px!important;height:30px!important;stroke:#fff!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"]::before{display:none!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"] .eav-bn-lab{color:#e0313f!important;font-weight:800!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"].on .eav-bn-ico{box-shadow:0 6px 18px rgba(224,49,63,.6),0 0 0 4px var(--n-bg,#fff)!important;transform:scale(1.04)!important}
/* tema scuro: colori più chiari e scritte ben leggibili */
html[data-theme="dark"].tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn{color:#dbe4ef!important}
html[data-theme="dark"].tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="home"]{--bc:#7fa8ff;--bt:rgba(127,168,255,.18)}
html[data-theme="dark"].tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="route"]{--bc:#3fd6a6;--bt:rgba(63,214,166,.18)}
html[data-theme="dark"].tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="find"]{--bc:#c99bf2;--bt:rgba(201,155,242,.18)}
html[data-theme="dark"].tg-nuova.tg-nuova body.eav nav.eav-bnav button[data-nav="altro"]{--bc:#ffb44d;--bt:rgba(255,180,77,.18)}
html[data-theme="dark"].tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn.on{color:var(--bc)!important}
html[data-theme="dark"].tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"] .eav-bn-lab{color:#ff6b75!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn.on .eav-bn-live{background:#e0313f!important;color:#fff!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn.on .eav-bn-live::before{background:#fff!important}
html.tg-nuova.tg-nuova body.eav nav.eav-bnav button.eav-bn[data-nav="board"] .eav-bn-lab{margin-top:3px!important}

/* 🎨 Home «Treno + bus / Treni / Bus»: pulsanti a pillola con icone colorate in un tondino (seg-icone) */
html.tg-nuova.tg-nuova body.eav #trainLive .ng-seg{border:0!important;border-radius:14px!important;background:var(--n-campo)!important;padding:4px!important;gap:4px!important;overflow:visible!important}
html.tg-nuova.tg-nuova body.eav #trainLive button.ng-sb{border-radius:11px!important;min-height:50px!important;gap:8px!important;color:var(--n-ink)!important;font-weight:700!important;transition:background .2s,box-shadow .2s}
html.tg-nuova.tg-nuova body.eav #trainLive button.ng-sb.on{background:var(--n-bg)!important;color:var(--n-blu)!important;box-shadow:0 2px 6px rgba(15,30,60,.14),0 0 0 1.5px var(--n-blu)!important;font-weight:800!important}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-ico{flex:0 0 auto;width:30px;height:30px;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center;padding:0!important;box-shadow:0 2px 5px rgba(0,0,0,.18)!important;transition:transform .2s,filter .2s}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-ico.tr{background:linear-gradient(150deg,#4f8dff,#1f56d6)!important}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-ico.bu{background:linear-gradient(150deg,#ffb020,#f06a0f)!important}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-ico svg{width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;stroke:#fff!important;stroke-width:2!important}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-duo{display:inline-flex;align-items:center;flex:0 0 auto}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-duo .ng-ico{width:26px;height:26px;border:2px solid var(--n-campo)!important}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-duo .ng-ico+.ng-ico{margin-left:-9px}
html.tg-nuova.tg-nuova body.eav #trainLive .ng-duo .ng-ico svg{width:14px!important;height:14px!important;max-width:14px!important;max-height:14px!important}
html.tg-nuova.tg-nuova body.eav #trainLive button.ng-sb.on .ng-duo .ng-ico{border-color:var(--n-bg)!important}
html.tg-nuova.tg-nuova body.eav #trainLive button.ng-sb:not(.on) .ng-ico{filter:saturate(.75);opacity:.9}
html.tg-nuova.tg-nuova body.eav #trainLive button.ng-sb.on .ng-ico{transform:scale(1.08)}
@media (max-width:380px){html.tg-nuova.tg-nuova body.eav #trainLive button.ng-sb{font-size:13.5px!important;gap:5px!important}html.tg-nuova.tg-nuova body.eav #trainLive .ng-ico{width:26px;height:26px}}

/* 🖥️ home-pc: riquadri della Home che non si schiacciano più (a 4 colonne solo se c'è spazio, altrimenti 2×2)
   e su PC «La mia linea» con i riquadri va a sinistra sotto la ricerca (niente spazio vuoto) */
@media (min-width:761px){
 html.tg-nuova.tg-nuova body.eav #trainLive .ln-big{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .ln button.ln-bt{min-height:118px!important;min-width:0!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .ln-bt b{font-size:16px!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .ln-bt small{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .ln-bt-i{font-size:28px!important}
}
@media (min-width:1000px){
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>.ng-form{grid-row:1!important;position:static!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>.ln{grid-column:1!important;grid-row:2/span 40!important;align-self:start!important;margin-top:14px!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>.ln .ln-big{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>.ln .ln-inv{flex-wrap:wrap!important}
}
/* PC: gli avvisi (rosso del pannello e «Avviso EAV») vanno in alto su tutta la larghezza, così sotto non resta uno spazio vuoto */
@media (min-width:1000px){
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>:is(.hm-avviso,.eav-avv-gruppo){grid-column:1/-1!important;grid-row:1!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home>.eav-avv-gruppo{margin-bottom:14px!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home:has(>.hm-avviso)>.eav-avv-gruppo{grid-row:2!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home:has(>.hm-avviso,>.eav-avv-gruppo)>.ng-form{grid-row:2!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home:has(>.hm-avviso,>.eav-avv-gruppo)>.ln{grid-row:3/span 40!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home:has(>.hm-avviso):has(>.eav-avv-gruppo)>.ng-form{grid-row:3!important}
 html.tg-nuova.tg-nuova body.eav #trainLive .eav-home:has(>.hm-avviso):has(>.eav-avv-gruppo)>.ln{grid-row:4/span 40!important}
}
/* la Home ha l'attributo hidden quando apri un'altra scheda: su PC la griglia non deve farla ricomparire (es. sotto Partenze) */
html.tg-nuova.tg-nuova body.eav #trainLive .eav-home[hidden]{display:none!important}
/* 🖥️ Partenze LIVE su PC: tabellone largo, ricerca e scelta stazione affiancate */
@media (min-width:1000px){
 html.tg-nuova.tg-nuova body.eav[data-tab="board"] #trainLive,html.tg-nuova.tg-nuova body.eav[data-tab="board"] main{max-width:1180px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
 html.tg-nuova.tg-nuova body.eav[data-tab="board"] #trainLive .train-board{max-width:none!important;width:100%!important}
}

/* esci-chiaro: pulsante «🚪 Esci» leggibile anche con il tema chiaro (l'intestazione ora è bianca) */
html.tg-nuova.tg-nuova:not([data-theme="dark"]) body.eav .eav-esci-top{color:#c62828!important;border:1.5px solid #c62828!important;background:#fff!important}
html.tg-nuova.tg-nuova:not([data-theme="dark"]) body.eav .eav-esci-top:hover{background:#c62828!important;color:#fff!important}
/* ⚠️ cambio stretto nei risultati di Viaggio */
html body.eav #trainLive .rt-stretto{display:block;flex-basis:100%;margin-top:4px;font-size:12.5px;font-weight:800;color:#b45309}
html[data-theme="dark"] body.eav #trainLive .rt-stretto{color:#fbbf24}
/* vg-rit-b: ritardo accanto alla prossima fermata (Sono sul treno) */
html body.eav .vg-big .vg-nome{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;flex-wrap:wrap}
html body.eav .vg-big .vg-nome>b{display:inline-block!important}
html body.eav .vg-big .vg-rit-b{display:inline-block;padding:3px 12px;border-radius:999px;background:#e0313f;color:#fff;font-weight:900;font-size:22px;line-height:1.2;letter-spacing:.02em}
/* ✅ sei sul treno giusto */
html body.eav .vg-ok{margin:8px 0!important;padding:10px 14px!important;border-radius:12px!important;background:#e8f5e9!important;color:#1b5e20!important;font-weight:800!important}
html[data-theme="dark"] body.eav .vg-ok{background:#16341d!important;color:#a5d6a7!important}
/* 👁️ Segui questo treno (Il mio treno) */
html body.eav #trainLive button.tf-segui{display:flex!important;align-items:center!important;gap:14px!important;width:100%!important;margin:10px 0 0!important;padding:12px 16px!important;border-radius:16px!important;border:2px solid #1565c0!important;background:transparent!important;color:#1565c0!important;text-align:left!important;cursor:pointer;box-shadow:none!important}
html body.eav #trainLive .tf-segui-i{font-size:26px;line-height:1}
html body.eav #trainLive .tf-segui b{display:block;font-size:17px;font-weight:800}
html body.eav #trainLive .tf-segui small{display:block;font-size:13px;font-weight:600;opacity:.85}
html[data-theme="dark"] body.eav #trainLive button.tf-segui{border-color:#90caf9!important;color:#90caf9!important}
/* 🔔 invito ad attivare i suoni (il telefono blocca l'audio finché non tocchi l'app) */
.eav-suono-tocca{position:fixed;left:50%;bottom:calc(110px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:2147483000;max-width:min(92vw,460px);padding:14px 18px;border:0;border-radius:16px;background:#e0313f;color:#fff;font:800 16px system-ui,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.35);cursor:pointer}

/* ritlab: scritta "Ritardo" sotto il +N */
html body.eav .vg-big .vg-rit-w{display:inline-flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;line-height:1}
html body.eav .vg-big .vg-rit-w>small.vg-rit-l{display:block!important;margin:0!important;padding:0!important;font-size:12px!important;font-weight:800!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:#e0313f!important;opacity:1!important}
html[data-theme="dark"] body.eav .vg-big .vg-rit-w>small.vg-rit-l{color:#ff8a8a!important}

/* gia-bordo: Accompagnami quando sei già sul treno */
html body.eav .gd-gia{display:flex!important;gap:8px!important;margin:0 0 10px!important}
html body.eav .gd-gia-b{flex:1 1 0!important;min-height:44px!important;padding:8px 10px!important;border-radius:12px!important;border:2px solid #cfd8e3!important;background:#f4f7fb!important;color:#37474f!important;font-weight:800!important;font-size:14px!important;cursor:pointer!important}
html body.eav .gd-gia-b.on{border-color:#2e7d32!important;background:#e8f5e9!important;color:#1b5e20!important}
html body.eav .gd-az .gd-gia-x{background:#e3f2fd!important;color:#0d47a1!important;border-color:#90caf9!important}
html[data-theme="dark"] body.eav .gd-gia-b{border-color:#344456!important;background:#1b1f23!important;color:#cfd8dc!important}
html[data-theme="dark"] body.eav .gd-gia-b.on{border-color:#66bb6a!important;background:#16341d!important;color:#a5d6a7!important}
html[data-theme="dark"] body.eav .gd-az .gd-gia-x{background:#14263f!important;color:#90caf9!important;border-color:#2c4a73!important}

/* ln-bin: binario del prossimo treno in La mia linea */
html body.eav .ln-h-r .ln-bin{display:inline-block!important;padding:4px 10px!important;border-radius:999px!important;font-size:13px!important;font-weight:900!important;background:#ffd600!important;color:#1a1a1a!important;white-space:nowrap!important}
html body.eav .ln-h-r .ln-bin[hidden]{display:none!important}
html body.eav .ln-h-r .ln-bin.vuoto{background:#eceff1!important;color:#546e7a!important;font-weight:800!important}
html[data-theme="dark"] body.eav .ln-h-r .ln-bin.vuoto{background:#263238!important;color:#b0bec5!important}

/* orig-rit: orario originale + ritardo nell'elenco fermate di In viaggio */
html body.eav .vg-stops li{grid-template-columns:minmax(52px,auto) 1fr auto!important}
html body.eav .vg-stops .vg-t{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
html body.eav .vg-stops .vg-t-r{display:inline-block!important;padding:1px 7px!important;border-radius:999px!important;background:#e0313f!important;color:#fff!important;font-size:12px!important;font-weight:900!important;line-height:1.4!important}

/* rit-staz: ritardo registrato nelle stazioni passate */
html body.eav .vg-stops .vg-t-r.giu{background:#2e7d32!important}
html body.eav .vg-recupero{margin:0 0 8px!important;padding:8px 12px!important;border-radius:12px!important;background:#e8f5e9!important;color:#1b5e20!important;font-weight:800!important;font-size:14px!important}
html body.eav .vg-recupero.su{background:#ffebee!important;color:#b71c1c!important}
html[data-theme="dark"] body.eav .vg-recupero{background:#16341d!important;color:#a5d6a7!important}
html[data-theme="dark"] body.eav .vg-recupero.su{background:#3a1a1d!important;color:#ff8a80!important}

/* scegli-modo: prima scelta in Viaggio */
html body.eav .rt-scegli-t{margin:4px 0 12px!important;font-size:17px!important;font-weight:800!important;color:var(--n-sub,#455a64)!important}
html body.eav .rt-scegli{display:grid!important;gap:12px!important;grid-template-columns:1fr!important;max-width:720px}
@media (min-width:900px){html body.eav .rt-scegli{grid-template-columns:repeat(3,1fr)!important}}
html body.eav .rt-scegli-b{display:flex!important;align-items:center!important;gap:14px!important;padding:18px 16px!important;min-height:84px!important;border-radius:16px!important;border:2px solid #cfd8e3!important;background:#fff!important;color:#10233f!important;text-align:left!important;cursor:pointer!important}
html body.eav .rt-scegli-b:hover,html body.eav .rt-scegli-b:focus-visible{border-color:#1565c0!important}
html body.eav .rt-scegli-i{font-size:34px!important;line-height:1!important;flex:none!important}
html body.eav .rt-scegli-b b{display:block!important;font-size:19px!important;font-weight:900!important}
html body.eav .rt-scegli-b small{display:block!important;margin-top:3px!important;font-size:13.5px!important;font-weight:600!important;color:#546e7a!important}
html body.eav .rt-scegli-rete{border-color:#1565c0!important;background:#e8f1fc!important}
html[data-theme="dark"] body.eav .rt-scegli-b{background:#1b1f23!important;border-color:#344456!important;color:#e3eaf3!important}
html[data-theme="dark"] body.eav .rt-scegli-b small{color:#b0bec5!important}
html[data-theme="dark"] body.eav .rt-scegli-rete{background:#14263f!important;border-color:#42a5f5!important}
html[data-theme="dark"] body.eav .rt-scegli-t{color:#cfd8dc!important}

/* no-form-tel: sul telefono la Home non ha il riquadro "Dove vuoi andare?" (si cerca dalla scheda Viaggio) */
@media (max-width:999px){html body.eav #trainLive .eav-home>.ng-form{display:none!important}}
