/* La presentazione per il telefono. I colori e i caratteri sono quelli dell'app (aspetto "Slope"); gli stili dell'app stessa sono in app.css. */
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(../fonts/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(../fonts/roboto-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/roboto-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/roboto-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Literata; font-weight: 400; font-display: swap; src: url(../fonts/literata-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Literata; font-weight: 600; font-display: swap; src: url(../fonts/literata-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }

:root { --bg: #080e18; --surface: #111b2b; --ink: #f5f8fc; --muted: #a9bbd1; --line: #25354d; --accent: #ffc21a; --accent-ink: #0a0f18; --fd: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif; --fb: Roboto, system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #04070c; }
body { margin: 0 auto; max-width: 460px; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--fb); -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

/* i pulsanti grandi della presentazione */
.d-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 10px 20px; border-radius: 16px; border: 2px solid transparent; font: 700 20px/1.15 var(--fd); letter-spacing: .05em; text-transform: uppercase; text-align: center; transition: transform .12s ease; }
.d-btn:active { transform: scale(.98); }
.d-btn--pri { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px rgba(255, 194, 26, .22); }
.d-btn--line { background: transparent; border-color: #4a5d7c; color: var(--ink); }
.d-btn:focus-visible, .t-home:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.d-note { margin: 0; color: #8194ad; font-size: 13.5px; line-height: 1.4; text-align: center; }
.d-icon { width: 84px; height: 84px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .5)); }
.d-icon--s { width: 46px; height: 46px; filter: none; flex: none; }
.d-peaks { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30vh; height: 30dvh; fill: #0d1726; pointer-events: none; }

/* ---- apertura e chiusura */
.d-intro, .d-fine { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); background: radial-gradient(130% 60% at 50% 0%, #17304f 0%, #0b1524 48%, #080e18 100%); position: relative; overflow: hidden; }
.d-intro-in, .d-fine-in { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; animation: d-rise .7s ease both; }
.d-intro h1 { margin: 6px 0 0; font: 700 clamp(40px, 12.5vw, 56px)/.98 var(--fd); text-transform: uppercase; letter-spacing: .01em; }
.d-tag { margin: 0; color: var(--accent); font: 600 clamp(21px, 6vw, 26px)/1.22 var(--fd); letter-spacing: .01em; }
.d-lead { margin: 0 0 10px; color: #d2deec; font-size: 17.5px; line-height: 1.55; }
.d-intro .d-note, .d-fine .d-note { justify-self: stretch; }
.d-fine-in { justify-items: stretch; gap: 16px; }
.d-msg { margin: 0 0 6px; font: 700 clamp(34px, 10.5vw, 46px)/1.04 var(--fd); text-transform: uppercase; letter-spacing: .01em; }
.d-msg span { display: block; } .d-msg span + span { color: var(--accent); margin-top: 6px; }
.d-sign { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 27, 43, .7); }
.d-sign p { margin: 0; display: grid; gap: 3px; } .d-sign b { font: 700 21px/1.1 var(--fd); letter-spacing: .03em; text-transform: uppercase; } .d-sign span { color: var(--muted); font-size: 15px; }
@keyframes d-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---- il percorso: testo sopra, l'app vera sotto, due pulsanti in basso */
.d-tour { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--bg); }
.t-head { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 6px; }
.t-home { width: 44px; height: 44px; padding: 5px; border: 0; border-radius: 12px; background: none; flex: none; } .t-home svg { width: 34px; height: 34px; display: block; }
.t-bar { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.t-bar i { height: 5px; border-radius: 3px; background: #25354d; transition: background-color .3s ease; } .t-bar i.on { background: var(--accent); }
.t-count { color: var(--muted); font: 600 14px/1 var(--fb); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.t-text { padding: 4px 20px 12px; min-height: 148px; opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }
.t-text.on { opacity: 1; transform: none; }
.t-k { margin: 0; color: var(--accent); font: 700 13px/1.2 var(--fd); letter-spacing: .16em; text-transform: uppercase; }
.t-text h2 { margin: 5px 0 0; font: 700 clamp(24px, 7.2vw, 30px)/1.06 var(--fd); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.t-text h2:empty { display: none; }
.t-d { margin: 8px 0 0; color: #d2deec; font-size: 16px; line-height: 1.42; }
.t-app { margin: 0 10px; border: 1px solid #2e4160; border-radius: 22px; overflow: hidden; background: var(--bg); box-shadow: 0 -6px 30px rgba(0, 0, 0, .35); min-height: 0; }
#app { height: 100%; }
.t-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 10px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
body[data-free="1"] .t-nav { grid-template-columns: 1fr; }
body[data-free="1"] .t-text { min-height: 0; }
@media (max-height: 700px) { .t-text { min-height: 126px; padding-bottom: 8px; } .t-text h2 { font-size: 23px; } .t-d { font-size: 15px; line-height: 1.36; margin-top: 5px; } .d-btn { min-height: 54px; font-size: 18px; } }

/* ---- l'app dentro il riquadro (come nel telefono) */
.sl-app { box-sizing: border-box; position: relative; height: 100%; overflow: hidden; container-type: inline-size; background: var(--bg); color: var(--ink); font: 16px/1.35 var(--font-b); text-align: left; }
.sl-app .sl-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sl-app .sl-scroll::-webkit-scrollbar { display: none; }
.sl-app .toast { animation: sl-up .25s ease-out; }
.sl-app a.pbtn { text-decoration: none; box-sizing: border-box; }
.sl-app .sl-ph-thumb { width: 72px; height: 96px; border: 1px dashed var(--muted); border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: 10.5px; line-height: 1.2; color: var(--muted); padding: 4px; }
.sl-app .sl-ph-thumb--doc { border-style: solid; background: #fff; color: #b3261e; font: 700 15px/1 var(--font-b); }
.sl-app .entry:disabled { opacity: .45; }
.sl-app h3.lab { margin: 6px 0 0; }
.sl-app .info b { font-weight: 700; }
.sl-app .st-focus { outline: 3px solid var(--accent); outline-offset: 3px; animation: d-pulse 1.6s ease-in-out 3; }
@keyframes sl-up { from { transform: translateY(8px); opacity: 0; } }
@keyframes d-pulse { 50% { outline-offset: 7px; outline-color: rgba(255, 194, 26, .45); } }
@media (prefers-reduced-motion: reduce) { .d-intro-in, .d-fine-in, .sl-app .st-focus, .sl-app .toast { animation: none; } .t-text, .d-btn { transition: none; } }
@media (min-width: 461px) { body { box-shadow: 0 0 0 1px #1b2a40, 0 30px 90px rgba(0, 0, 0, .6); } }
