/* VDS Mondo Vivo V01 — identità: bianco, blu #1e3250, oro #bea05a, Prata + DM Sans, nessun corsivo */
@font-face { font-family: "Prata"; src: url(../font/prata-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../font/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../font/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../font/dm-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --blu: #1e3250; --oro: #bea05a; --oro-scuro: #8f7636; --bianco: #ffffff;
  --blu-70: rgba(30, 50, 80, .7); --blu-50: rgba(30, 50, 80, .5); --blu-12: rgba(30, 50, 80, .12); --blu-06: rgba(30, 50, 80, .06);
  --oro-14: rgba(190, 160, 90, .14);
  --ombra: 0 10px 40px rgba(30, 50, 80, .14), 0 2px 8px rgba(30, 50, 80, .06);
  --pannello-l: 420px;
  --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px);
  --dolce: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bianco); overscroll-behavior: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; }
body { font-family: "DM Sans", system-ui, sans-serif; color: var(--blu); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-style: normal; }
em, i, cite, address { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: 6px; }

.prata { font-family: "Prata", Georgia, serif; font-weight: 400; letter-spacing: .005em; }
.marchio { font-family: "Prata", Georgia, serif; font-size: 26px; letter-spacing: .14em; color: var(--oro); padding: 6px 4px 6px 8px; line-height: 1; }

#testata { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: calc(56px + var(--sa-t)); padding: var(--sa-t) 14px 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
#testata > * { pointer-events: auto; }
.testata-destra { display: flex; gap: 8px; align-items: center; }
.tondo { width: 40px; height: 40px; border-radius: 50%; background: var(--bianco); box-shadow: 0 2px 10px rgba(30, 50, 80, .12), 0 0 0 1px var(--blu-06); display: grid; place-items: center; color: var(--blu); font-size: 20px; line-height: 1; }
.tondo svg { width: 20px; height: 20px; }
.pillola { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--bianco); box-shadow: 0 2px 10px rgba(30, 50, 80, .12), 0 0 0 1px var(--blu-06); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.pillola.oro { background: var(--blu); color: var(--bianco); box-shadow: var(--ombra); letter-spacing: .02em; font-weight: 500; }
.tondo .segno { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--oro); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
#apri-spazio { position: relative; }

#comandi-mappa { position: fixed; z-index: 20; right: 14px; top: calc(64px + var(--sa-t)); display: flex; flex-direction: column; gap: 8px; }
#riprendi { position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); top: calc(64px + var(--sa-t)); padding: 0 16px; }
#avviso-prova { position: fixed; z-index: 60; left: 50%; transform: translate(-50%, 12px); top: calc(60px + var(--sa-t)); max-width: min(92vw, 420px); background: var(--blu); color: #fff; font-size: 13.5px; padding: 10px 14px; border-radius: 12px; box-shadow: var(--ombra); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--dolce); }
#avviso-prova.su { opacity: 1; transform: translate(-50%, 0); }
.solo-desktop { display: none; }

/* ingresso: il marchio compare per primo, poi tutto il resto */
body.avvio #testata .testata-destra, body.avvio #pannello, body.avvio #comandi-mappa { opacity: 0; pointer-events: none; }
body.avvio #marchio { opacity: 0; transform: translateY(6px); }
body.avvio.passo-1 #marchio { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--dolce); }
#testata .testata-destra, #comandi-mappa { transition: opacity .6s ease; }
body.avvio.passo-3 #pannello { opacity: 1; transform: none; pointer-events: auto; }
body.avvio.passo-4 #testata .testata-destra, body.avvio.passo-4 #comandi-mappa { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .solo-desktop { display: grid; }
  #testata { right: var(--pannello-l); padding: 0 22px; height: 64px; }
  .marchio { font-size: 30px; }
  #comandi-mappa { right: calc(var(--pannello-l) + 18px); top: 76px; }
  #riprendi, #avviso-prova { left: calc((100vw - var(--pannello-l)) / 2); }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
