/* Presentazione: il benvenuto, la guida vocale e la vista «La rotta».
   Stessa lingua della pagina del club: carta crema per il suo mondo, quasi-nero per la voce di Tavola56. */

.hero, .stage, .rtitle, .gtitle, .fine, .kpis { scroll-margin-top: 104px; }
@media (max-width: 760px) { .hero, .stage, .rtitle, .gtitle, .fine, .kpis { scroll-margin-top: 16px; } }

/* Riflettore: ciò di cui la guida sta parlando */
.spot { outline: 3px solid var(--saffron); outline-offset: 7px; animation: spot 3s var(--ease) forwards; }
@keyframes spot { 0% { outline-color: transparent; outline-offset: 22px; } 18% { outline-color: var(--saffron); outline-offset: 7px; } 75% { outline-color: var(--saffron); } 100% { outline-color: transparent; } }

/* Sfera piccola, nei pulsanti */
.orb-mini { width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-block; background: radial-gradient(circle at 35% 30%, #fff, var(--mint) 38%, var(--blue) 78%); box-shadow: 0 0 0 0 rgba(134,224,184,.55); animation: battito 2.4s ease-out infinite; }
@keyframes battito { 0% { box-shadow: 0 0 0 0 rgba(134,224,184,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(134,224,184,0); } }

/* ---------- Benvenuto ---------- */
.benv { position: fixed; inset: 0; z-index: 100; background: var(--blue-deep); color: var(--text); display: grid; align-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); overflow: hidden auto; transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s linear .8s; }
.benv.via { opacity: 0; transform: scale(1.04); visibility: hidden; pointer-events: none; }
.benv-art { position: absolute; right: 0; bottom: 0; width: min(52vw, 820px); height: 100%; opacity: .38; pointer-events: none; }
.benv-in { position: relative; width: min(100%, 1180px); margin: 0 auto; display: grid; gap: 16px; }
.benv-in > * { animation: sale .7s var(--ease) both; }
.benv-in > :nth-child(2) { animation-delay: .08s; } .benv-in > :nth-child(3) { animation-delay: .16s; } .benv-in > :nth-child(4) { animation-delay: .24s; } .benv-in > :nth-child(5) { animation-delay: .32s; } .benv-in > :nth-child(6) { animation-delay: .4s; } .benv-in > :nth-child(7) { animation-delay: .48s; }
@keyframes sale { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.benv-k { margin: 0; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; color: #DCE5EF; }
.benv-ciao { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 32px); }
.benv h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 9vw, 116px); line-height: .98; letter-spacing: -2px; text-wrap: balance; max-width: 12ch; }
.benv h1 em { font-weight: 400; }
.benv-p { margin: 4px 0 0; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); color: #EEF2F6; }
.benv-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.benv-go { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; font-size: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.benv .btn.ghost, .fine .btn.ghost { color: var(--text); border-color: rgba(247,245,236,.5); padding: 16px 24px; }
.benv-nota { margin: 0; font-size: 14px; color: #DCE5EF; max-width: 60ch; }
.benv-voce { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-self: start; max-width: 100%; font-size: 14px; color: #DCE5EF; }
.benv-voce select { appearance: none; -webkit-appearance: none; max-width: 100%; margin: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); background: rgba(247,245,236,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23F7F5EC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 12px; border: 1px solid rgba(247,245,236,.5); border-radius: 999px; padding: 8px 38px 8px 16px; cursor: pointer; }
.benv-voce select:focus-visible, .g-voce select:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
/* L'elenco che si apre è del sistema: testo scuro su chiaro, qualunque sia il colore del pulsante. */
.benv-voce option, .benv-voce optgroup, .g-voce option, .g-voce optgroup { color: var(--ink); background: #fff; }

/* ---------- La guida vocale ---------- */
body.guida-on { padding-bottom: 210px; }
.g-fab { position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--ink); color: var(--text); border-radius: 999px; padding: 13px 20px 13px 16px; font-weight: 600; box-shadow: 0 16px 40px rgba(33,37,41,.35); transition: transform .2s var(--ease); }
.g-fab:hover { transform: translateY(-2px); }

.guida { position: fixed; z-index: 60; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); width: min(780px, calc(100vw - 20px)); transform: translateX(-50%); animation: su .5s var(--ease); }
@keyframes su { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translateX(-50%); } }
/* I suggerimenti sotto la barra: piccoli e a capo, così nessuno resta tagliato. */
.g-chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px 4px 0; } /* relative: sopra l'ombra della barra */
.g-chips:empty { display: none; }
.g-chips button { flex: none; border: 1px solid var(--pline); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; line-height: 1.3; font-weight: 600; box-shadow: 0 4px 12px rgba(33,37,41,.14); white-space: nowrap; }
.g-chips button.primo { background: var(--saffron); border-color: var(--saffron); }
.g-bar { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 30px; padding: 10px 12px 13px; box-shadow: 0 24px 60px rgba(33,37,41,.45); overflow: hidden; }
.g-orb { --lvl: 0; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; background: transparent; display: grid; place-items: center; position: relative; }
.g-core { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--mint) 36%, var(--blue) 76%, var(--blue-deep)); transform: scale(calc(.86 + var(--lvl) * .42)); box-shadow: 0 0 calc(10px + var(--lvl) * 46px) rgba(134,224,184,calc(.35 + var(--lvl) * .5)); transition: transform .09s linear, box-shadow .12s linear, filter .3s; }
.g-orb::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 2px solid transparent; }
.guida[data-stato="collegamento"] .g-orb::after, .guida[data-stato="pensa"] .g-orb::after { border-top-color: var(--mint); animation: gira .9s linear infinite; }
.guida[data-stato="ascolta"] .g-orb::after { border-color: var(--saffron); animation: respiro 1.6s ease-in-out infinite; }
.guida[data-stato="parla"]:not([data-livello]) .g-core { animation: parla 1.1s ease-in-out infinite; }
.guida[data-stato="pausa"] .g-core, .guida[data-stato="spenta"] .g-core { filter: grayscale(.7) brightness(.8); }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes respiro { 50% { transform: scale(1.1); opacity: .5; } }
@keyframes parla { 0%, 100% { transform: scale(.86); } 30% { transform: scale(1.08); } 60% { transform: scale(.94); } 80% { transform: scale(1.14); } }
.g-text { min-width: 0; display: grid; gap: 2px; }
.g-stato { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; color: var(--mint); }
.g-cap { font-size: 16px; line-height: 1.35; min-height: 1.35em; max-height: 4.05em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-wrap: pretty; }
.g-tu { font-size: 13px; color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-tu:empty { display: none; }
.g-btns { display: flex; gap: 6px; }
.g-btns button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink3); color: var(--text); display: grid; place-items: center; padding: 0; transition: background .2s, color .2s; }
.g-btns button svg { width: 20px; height: 20px; }
#gMic[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
#gMic[aria-pressed="true"] .slash { display: none; }
#gMic[aria-pressed="false"] { background: var(--coral); border-color: var(--coral); color: #fff; }
#gScrivi[aria-expanded="true"] { background: var(--text); color: var(--ink); }
.i-play { display: none; }
.guida[data-pausa="1"] .i-play { display: block; } .guida[data-pausa="1"] .i-pausa { display: none; }
.guida[data-pausa="1"] #gPausa { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.guida[data-modo="locale"] #gMic, .guida[data-modo="locale"] #gScrivi { display: none; }
/* La voce: un menu del sistema dentro un pulsante tondo come gli altri (sul telefono si apre la ruota nativa). */
.g-voce { position: relative; flex: none; width: 42px; height: 42px; }
.g-voce select { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--ink3); color: transparent; font: inherit; font-size: 16px; cursor: pointer; }
.g-voce select:disabled { opacity: .5; cursor: progress; }
.g-voce svg { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; color: var(--text); pointer-events: none; }
/* Se la voce dal vivo cade e parte il copione, quelle voci non valgono più. */
body[data-voce="1"] .guida[data-modo="locale"] .g-voce { display: none; }
.g-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(247,245,236,.1); }
.g-prog i { display: block; height: 100%; width: 0; background: var(--saffron); transition: width .8s var(--ease); }
.g-form { display: flex; gap: 8px; margin-top: 8px; }
.g-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--ink); color: var(--text); border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 16px; box-shadow: 0 12px 30px rgba(33,37,41,.3); }
.g-form input::placeholder { color: var(--muted); }

/* Nascosto anche con visibility: il solo translate lasciava spuntare in alto il bordo del toast vuoto. */
.toast { position: fixed; z-index: 120; left: 50%; top: max(16px, env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); visibility: hidden; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; font-size: 15px; max-width: min(520px, calc(100vw - 24px)); box-shadow: 0 16px 40px rgba(33,37,41,.4); transition: transform .5s var(--ease), visibility 0s linear .5s; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }

.msg { border: 0; border-radius: 24px; padding: 24px; width: min(520px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 40px 100px rgba(33,37,41,.5); }
.msg::backdrop { background: rgba(33,37,41,.55); }
.msg h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.msg p { margin: 0 0 12px; color: var(--pmuted); font-size: 15px; }
.msg textarea { width: 100%; border: 1px solid var(--pline); background: #fff; border-radius: 14px; padding: 12px; font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
.msg-esito { min-height: 20px; margin: 8px 0 0 !important; color: var(--coral) !important; }
.msg-btns { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- La rotta ---------- */
.rtitle { margin: 60px 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.7px; line-height: 1.08; text-wrap: balance; }
.rsub { margin: 0 0 22px; max-width: 68ch; font-size: 17px; color: var(--pmuted); }
.rnote { margin: 14px 0 0; font-size: 13.5px; color: var(--pmuted); }
.js-rv .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-rv .rv.in { opacity: 1; transform: none; }

.nave-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; border-radius: 24px; }
.nave { display: grid; justify-items: center; gap: 6px; }
.fumaiolo { width: 48px; height: 46px; background: var(--ink); border-radius: 8px 8px 0 0; position: relative; margin-bottom: -1px; }
.fumaiolo i { position: absolute; left: 0; right: 0; top: 10px; height: 9px; background: var(--saffron); }
.ponte { width: var(--w); border: 0; border-radius: 14px; padding: 11px 18px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 12px; text-align: left; background: var(--blue-deep); color: var(--text); transition: transform .3s var(--ease), box-shadow .3s; }
.ponte .pk { grid-row: span 2; align-self: center; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }
.ponte .pt { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.15; }
.ponte .pz { font-size: 13.5px; }
.p7 { --w: 58%; background: var(--ink); } .p7 .pk, .p1 .pk { color: var(--mint); }
.p6 { --w: 66%; background: var(--saffron); color: var(--ink); }
.p5 { --w: 74%; }
.p4 { --w: 81%; background: var(--blue); }
.p3 { --w: 87%; }
.p2 { --w: 93%; background: var(--blue); }
.p1 { --w: 100%; background: var(--ink); border-radius: 14px 14px 0 0; clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); padding: 13px 9% 16px; }
.ponte:hover { transform: scale(1.025); box-shadow: 0 14px 30px rgba(33,37,41,.22); }
.ponte.sel { transform: scale(1.045); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--saffron), 0 18px 36px rgba(33,37,41,.25); }
.p6.sel { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink), 0 18px 36px rgba(33,37,41,.25); }
.p1.sel { box-shadow: none; filter: drop-shadow(0 0 0 var(--saffron)); background: var(--ink3); }
.chiglia { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }
.onde { width: 100%; height: 22px; color: var(--blue-light); }
.nave-det { background: var(--card); border: 1px solid var(--pline); border-radius: 24px; padding: 26px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.nd-k { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; color: var(--blue-deep); }
.nd-t { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.5px; line-height: 1.08; }
.nd-p { margin: 0; font-size: 16.5px; }
.nd-q { margin: 12px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pline); font-family: var(--serif); font-style: italic; font-size: 19px; width: 100%; }
.nd-q cite { display: block; margin-top: 4px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--pmuted); }
.nave-det.cambia > * { animation: sale .45s var(--ease) both; }

.split, .pcard { background: var(--card); border: 1px solid var(--pline); border-radius: 24px; padding: 24px; }
.split-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.split-tot { font-family: var(--serif); font-weight: 500; font-size: 60px; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.split-s { color: var(--pmuted); }
.split-bar { display: flex; gap: 3px; height: 20px; margin: 16px 0 8px; }
.split-bar i { flex: var(--w) 0 0; border-radius: 5px; transform-origin: left; transition: transform 1s var(--ease); }
.split-bar i:first-child { border-radius: 10px 5px 5px 10px; } .split-bar i:last-child { border-radius: 5px 10px 10px 5px; }
.js-rv .split:not(.in) .split-bar i { transform: scaleX(0); }
.split-bar i:nth-child(2) { transition-delay: .15s; } .split-bar i:nth-child(3) { transition-delay: .3s; } .split-bar i:nth-child(4) { transition-delay: .45s; } .split-bar i:nth-child(5) { transition-delay: .6s; }
.s1 { background: var(--blue-deep); } .s2 { background: var(--blue); } .s3 { background: var(--blue-light); } .s4 { background: var(--saffron); } .s5 { background: var(--coral); }
.srow { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 74px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--pline); }
.srow .dot { width: 14px; height: 14px; border-radius: 50%; }
.srow b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.srow small { display: block; font-size: 13.5px; color: var(--pmuted); }
.srow .soc { font-size: 12.5px; font-weight: 600; background: var(--cream); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.srow .amt { text-align: right; font-size: 18px; }

.fid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border-radius: 20px; }
.fcard { background: var(--blue-tint); border-radius: 20px; padding: 20px; }
.fcard h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--blue-deep); }
.fcard p { margin: 0; font-size: 14.5px; }

.oggi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; border-radius: 24px; }
.ocard { border-radius: 24px; padding: 24px; }
.ocard .ok { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.ocard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 16px; }
.ocard li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.ocard li::before { font-weight: 700; }
.ocard.fatto { background: var(--ink); color: var(--text); } .ocard.fatto .ok { color: var(--mint); } .ocard.fatto li::before { content: "✓"; color: var(--mint); }
.ocard.dafare { border: 1.5px dashed var(--pmuted); } .ocard.dafare .ok { color: var(--blue-deep); } .ocard.dafare li::before { content: "+"; color: var(--blue-deep); }

.porti { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.porti li { position: relative; display: grid; gap: 4px; align-content: start; }
.porti li::before { content: ""; position: absolute; top: 21px; left: 52px; right: -18px; border-top: 2px dashed var(--blue-light); }
.porti li:last-child::before { display: none; }
.pn2 { width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.porti b { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.15; }
.porti small { font-size: 14px; color: var(--pmuted); }
.tappe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tp { font-size: 13.5px; border: 1px solid var(--pline); background: var(--card); border-radius: 999px; padding: 6px 13px; }
.tp b { margin-right: 7px; color: var(--blue-deep); font-weight: 600; }
.tp.fatta { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--text); } .tp.fatta b { color: var(--text); }
.tp.corso { background: var(--saffron); border-color: var(--saffron); } .tp.corso b { color: var(--ink); }
.tp.pilota { background: var(--ink); border-color: var(--ink); color: var(--text); } .tp.pilota b { color: var(--mint); }

.prop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; border-radius: 24px; }
.pcard h4 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.pcard ul, .pcard ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.pcard.passi { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--text); }
.pcard.passi li::marker { color: var(--saffron); font-weight: 600; }

.fine { margin-top: 64px; border-radius: 28px; background: var(--blue-deep); color: var(--text); padding: 72px 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.fine h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 7.5vw, 92px); line-height: 1; letter-spacing: -1.6px; text-wrap: balance; }
.fine p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); }
.fine-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }

@media (max-width: 1100px) {
  .fid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .porti { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .porti li { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; }
  .porti li .pn2 { grid-row: span 2; margin: 0; }
  .porti li::before { top: 48px; bottom: -14px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed var(--blue-light); }
  .prop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.guida-on { padding-bottom: 250px; }
  /* Il telefono del prototipo resta intero sopra la guida (fino a 245px: didascalia su tre righe, «Tu: …», suggerimenti su due righe). */
  body.guida-on .phone { height: clamp(460px, calc(100dvh - 250px), 720px); }
  .benv h1 { letter-spacing: -1.2px; }
  .benv-art { opacity: .22; width: 120vw; }
  .benv-btns .btn { width: 100%; justify-content: center; }
  .g-bar { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; border-radius: 24px; padding: 10px 10px 12px; }
  .g-orb { width: 46px; height: 46px; } .g-core { width: 36px; height: 36px; }
  .g-btns { grid-column: 1 / -1; justify-content: flex-end; margin-top: -2px; }
  .g-btns button, .g-voce { width: 38px; height: 38px; }
  .g-cap { font-size: 15px; }
  .g-chips button { font-size: 12px; padding: 4px 9px; }
  .g-fab { padding: 12px 16px 12px 13px; }
  .rtitle { margin-top: 44px; }
  .nave-wrap, .oggi, .fid { grid-template-columns: minmax(0, 1fr); }
  .ponte { width: calc(var(--w) * .3 + 70%); grid-template-columns: 64px minmax(0, 1fr); padding: 10px 14px; }
  .p1 { padding: 12px 9% 15px; }
  .split, .pcard, .ocard, .nave-det { padding: 18px; }
  .split-tot { font-size: 46px; }
  .srow { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 10px; }
  .srow .soc { grid-column: 2; grid-row: 2; justify-self: start; }
  .srow .amt { grid-column: 3; grid-row: 1; }
  .fine { padding: 48px 20px; }
}
/* Con la guida aperta il telefono resta intero sopra la barra anche su tablet e laptop:
   104px di margine sopra (scroll-margin di .stage), fino a 186px di guida sotto. */
@media (min-width: 761px) {
  body.guida-on .phone { height: clamp(360px, calc(100dvh - 290px), 780px); }
}
/* Telefoni bassi in verticale (iPhone SE, Safari con le barre): didascalia su due righe, niente «Tu: …», telefono più basso. */
@media (max-width: 760px) and (max-height: 700px) {
  .g-cap { max-height: 2.7em; }
  .g-tu { display: none; }
  body.guida-on .phone { height: clamp(340px, calc(100dvh - 212px), 720px); }
}
/* Telefoni in orizzontale: la guida su una riga sola, il benvenuto più compatto. */
@media (max-height: 500px) {
  body.guida-on { padding-bottom: 150px; }
  .g-chips { padding-top: 6px; }
  .g-bar { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px 10px; }
  .g-orb { width: 46px; height: 46px; } .g-core { width: 36px; height: 36px; }
  .g-btns { grid-column: auto; margin-top: 0; }
  .g-btns button, .g-voce { width: 38px; height: 38px; }
  .g-cap { max-height: 2.7em; font-size: 15px; }
  .benv-in { gap: 10px; }
  .benv-ciao { margin-top: 0; }
  .benv h1 { font-size: clamp(36px, 13vh, 64px); }
  .benv-btns { margin-top: 4px; }
  .benv-btns .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js-rv .rv { opacity: 1; transform: none; }
  .js-rv .split:not(.in) .split-bar i { transform: none; }
}
