/* Vola con Savini — biglietto. Token e componente .bp dal riferimento. */
:root {
  --navy: #0d1726;
  --navy-2: #14233a;
  --notte: #05090f;
  --carta: #f5f1ea;
  --ambra: #ffc46b;
  --ambra-scura: #b25e00;
  --testo-2: #5b6575;
  --verde: #1d6b3a;
  --verde-bg: #e1f1e6;
  --ambra-bg: #fff1d9;
  --ambra-fg: #7a3f00;
  --bordo: rgba(255,255,255,.18);
  --font: "Montserrat", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--navy); color: #fff; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ambra); outline-offset: 3px; }
a { color: inherit; }

.bp { position: relative; width: 342px; color: var(--navy); background: var(--carta); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.28); }
.bp__head { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.bp__brand { font-weight: 600; font-size: 11px; letter-spacing: 4px; }
.bp__volo { font-weight: 500; font-size: 11px; letter-spacing: 2px; color: var(--ambra); }
.bp__body { padding: 20px 22px 18px; }
.bp__rotta { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.bp__lab { font-weight: 600; font-size: 10px; letter-spacing: 3px; color: var(--testo-2); }
.bp__iata { font-weight: 500; font-size: 36px; line-height: 1.2; margin-top: 4px; letter-spacing: -1px; }
.bp__sub { font-size: 11px; color: var(--testo-2); margin-top: 2px; }
.bp__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px 10px; margin-top: 22px; }
.bp__k { font-weight: 600; font-size: 9px; letter-spacing: 2px; color: var(--testo-2); }
.bp__v { font-weight: 600; font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.bp__v--vuoto { color: rgba(13,23,38,.3); white-space: nowrap; font-size: 12px; }
.bp__stato { margin-top: 18px; border-radius: 10px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; background: var(--ambra-bg); }
.bp__stato i { width: 8px; height: 8px; border-radius: 50%; background: var(--ambra-scura); flex: none; }
.bp__stato span { font-weight: 600; font-size: 11px; letter-spacing: 2px; color: var(--ambra-fg); }
.bp__stato--vola { background: var(--verde-bg); }
.bp__stato--vola i { background: var(--verde); }
.bp__stato--vola span { color: var(--verde); }
.bp__perf { position: relative; height: 0; border-top: 2px dashed rgba(13,23,38,.22); margin: 0 18px; }
.bp__perf::before, .bp__perf::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--fondo, var(--navy)); }
.bp__perf::before { left: -30px; } .bp__perf::after { right: -30px; }
.bp__foot { padding: 16px 22px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.bp__barre { display: flex; height: 40px; flex: 1; max-width: 190px; align-items: center; }
.bp__mark { width: 40px; height: 40px; display: block; }
.bp__serie { text-align: right; }
.bp__serie .bp__v { font-size: 15px; letter-spacing: 1px; }

.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.steps i.on { background: var(--ambra); }
.kicker { font-weight: 600; font-size: 11px; letter-spacing: 4px; color: var(--ambra); }
.h1 { font-weight: 300; font-size: 34px; line-height: 1.12; margin: 0; }
.bp-sito-msg { justify-content: center; align-items: center; text-align: center; }
.p { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.65); margin: 0; }
.cta { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 56px; border: 0; border-radius: 4px; background: var(--ambra); color: var(--navy); font-weight: 600; font-size: 16px; cursor: pointer; }
.cta--bianco { background: #fff; }
.cta--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); height: 48px; font-size: 14px; }
.link { background: none; border: 0; color: rgba(255,255,255,.75); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; cursor: pointer; }
.field { display: block; margin-top: 22px; }
.field span { display: block; font-weight: 600; font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.5); }
.field input { width: 100%; margin-top: 8px; font-size: 26px; font-weight: 300; color: #fff; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.4); height: 54px; padding: 0; border-radius: 0; }
.field input:focus { border-bottom-color: var(--ambra); }
.field.is-bad input { border-bottom-color: #ff8b7b; }
.field .err { display: block; margin-top: 8px; color: #ffb4a8; font-size: 13px; letter-spacing: 0; font-weight: 500; }
.wallet { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.wallet small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .5px; opacity: .8; }
.wallet-row { display: flex; gap: 10px; }
.wallet-row .wallet { flex: 1; }

.scr { min-height: 100svh; }
.mob, .both { min-height: 100svh; display: flex; flex-direction: column; padding: 28px 24px 32px; position: relative; }
.desk { display: none !important; }
.bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.fine { text-align: center; font-size: 12px; color: rgba(255,255,255,.55); }
.fine b { color: #fff; font-weight: 600; }

.m-ingresso { padding: 0 0 32px; overflow: hidden; }
.m-ingresso__photo { position: absolute; left: 0; right: 0; top: 0; height: 46%; object-fit: cover; opacity: .55; }
.m-ingresso__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,38,.2) 0%, #0d1726 44%); pointer-events: none; }
.m-ingresso__kicker { position: relative; text-align: center; padding-top: 44px; }
.m-ingresso__card { position: relative; margin: 28px auto 0; width: min(342px, calc(100% - 36px)); transform: rotate(-3deg); }
.m-ingresso__card .bp { width: 100%; }
.m-ingresso__copy { position: relative; margin: 36px 28px 0; }
.m-ingresso__copy .h1 { font-size: 30px; }
.m-ingresso .bottom { position: relative; margin: 28px 24px 0; }

.pass-sm { width: min(280px, 100%); height: 400px; margin: 8px auto 0; position: relative; }
.pass-sm .bp { position: absolute; left: 50%; top: 0; transform: translateX(-50%) scale(.82); transform-origin: top center; }
.tips { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.75); }
.tips div { display: flex; gap: 12px; align-items: center; }
.tip-ico { width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.7); flex: none; }
.tip-ico--phone { height: 26px; border-radius: 4px; }
.tip-ico--dot { border-radius: 50%; }
.tip-ico--sq { border-radius: 3px; }

.preview { width: min(258px, 70%); height: min(460px, 52svh); margin: 18px auto 0; border-radius: 20px; overflow: hidden; background: #1b2230; position: relative; }
.preview video { width: 100%; height: 100%; object-fit: cover; background: #1b2230; }
.preview__time { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); border-radius: 6px; padding: 4px 8px; font-weight: 600; font-size: 12px; }
.center-note { text-align: center; margin-top: 22px; }
.long { text-align: center; color: var(--ambra); font-size: 15px; margin: 18px 0 0; }

.invio { align-items: center; justify-content: center; text-align: center; }
.invio__pct { font-weight: 300; font-size: 64px; margin-top: 16px; }
.invio__bar { width: min(100%, 420px); height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin-top: 28px; }
.invio__bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--ambra); }
.plane { transform: rotate(-35deg); }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.85); margin-top: 20px; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: #ffc46b; flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.swipe { position: relative; height: 60px; border-radius: 30px; background: rgba(255,255,255,.08); touch-action: none; }
.swipe__knob { position: absolute; left: 4px; top: 4px; width: 52px; height: 52px; border-radius: 50%; background: var(--ambra); color: var(--navy); display: flex; align-items: center; justify-content: center; border: 0; }
.swipe__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; color: rgba(255,255,255,.7); pointer-events: none; }
.swipe-note { text-align: center; font-size: 11px; color: rgba(255,255,255,.45); }

.story-prev { width: min(244px, 70%); aspect-ratio: 1080/1920; margin: 16px auto 0; border-radius: 16px; overflow: hidden; background: #111; }
.story-prev canvas, .thumbs canvas { width: 100%; height: 100%; display: block; }
.thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.thumbs button { width: 58px; height: 103px; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: #111; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border: 3px solid var(--ambra); }
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; background: #fff; color: var(--navy); border-radius: 12px; padding: 14px 16px; font-weight: 600; text-align: center; z-index: 5; }

.bp-inapp { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--ambra-bg); color: var(--ambra-fg); padding: 12px 16px; font-size: 13px; line-height: 1.4; }
.bp-inapp button { flex: none; background: var(--navy); color: #fff; border: 0; border-radius: 4px; min-height: 40px; padding: 0 12px; font-weight: 600; cursor: pointer; }
.notice { background: var(--ambra-bg); color: var(--ambra-fg); margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; }

.dnav { display: flex; justify-content: space-between; font-weight: 600; font-size: 12px; letter-spacing: 4px; padding: 36px 64px 0; }
.dnav__ig { color: rgba(255,255,255,.6); letter-spacing: 2px; }
.d-ingresso, .d-chi, .d-video, .d-done { min-height: 100svh; position: relative; overflow: hidden; }
.d-ingresso__photo { position: absolute; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; opacity: .6; }
.d-ingresso__fade { position: absolute; inset: 0; background: linear-gradient(90deg, #0d1726 42%, rgba(13,23,38,.2) 100%); }
.d-ingresso__copy { position: relative; z-index: 1; padding: 18vh 0 0 96px; width: min(680px, 48vw); }
.d-ingresso__copy .h1 { font-size: clamp(36px, 4vw, 56px); margin-top: 20px; }
.d-ingresso__row { display: flex; gap: 24px; align-items: center; margin-top: 40px; }
.d-ingresso__row .cta { width: 300px; }
.d-ingresso__card { position: absolute; z-index: 1; right: 8vw; top: 18vh; transform: rotate(-4deg); }
.d-chi { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 64px 48px; }
.d-chi__form { width: min(520px, 100%); padding-left: 32px; }
.d-chi__form .h1 { font-size: 48px; }
.d-chi__form .cta { width: 240px; margin-top: 48px; }
.d-chi__note { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.5); }
.d-video__head { padding: 40px 96px 0; }
.d-video__head .steps { width: 300px; margin-bottom: 36px; }
.d-video__head .h1 { font-size: 52px; margin-top: 16px; }
.d-video__grid { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 28px; padding: 36px 96px 48px; }
.qr-card { border-radius: 20px; background: var(--carta); color: var(--navy); padding: 40px; display: flex; gap: 28px; align-items: center; min-height: 320px; }
.qr-card h2, .drop h2 { font-size: 22px; font-weight: 600; margin: 0; }
.qr-card p, .drop p { font-size: 15px; line-height: 1.5; color: var(--testo-2); margin: 12px 0 0; }
.qr-card .wait { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--verde); }
.qr-box { width: 168px; height: 168px; flex: none; background: #fff; display: flex; align-items: center; justify-content: center; }
.qr-box canvas, .qr-box img { width: 154px !important; height: 154px !important; }
.drop { border-radius: 20px; border: 2px dashed rgba(255,255,255,.3); min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.drop.is-over { border-color: var(--ambra); }
.drop .link { color: #fff; }
.d-done { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; gap: 48px; align-items: center; padding: 24px 96px 48px; }
.d-done .h1 { font-size: 48px; }
.wallet-box { margin-top: 28px; display: flex; gap: 24px; align-items: center; background: rgba(255,255,255,.06); border-radius: 16px; padding: 24px; }
.wallet-box h2 { margin: 0; font-size: 18px; }
.stories-label { margin-top: 28px; font-weight: 600; font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.5); }
.d-done .thumbs { justify-content: flex-start; }
.d-done .thumbs button { width: 90px; height: 160px; border-radius: 10px; }
.d-actions { display: flex; gap: 12px; margin-top: 24px; }
.d-actions .cta { width: auto; padding: 0 28px; }
.field--desk input { font-size: 32px; }
.frase input { font-size: 18px; }

@media (min-width: 960px) {
  body:not(.from-phone) .mob { display: none; }
  body:not(.from-phone) .desk { display: block !important; }
  body:not(.from-phone) .d-chi,
  body:not(.from-phone) .d-done { display: grid !important; }
  body:not(.from-phone) .both { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 959px) {
  .d-chi, .d-video__grid, .d-done { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe__knob { transition: none; }
}
