/* Wayzi – introduzione animata (stile "storie") */
.intro { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #0E7C74 0%, #0A5F59 55%, #073F3B 100%); transition: background .6s ease;
  padding: max(14px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); touch-action: pan-y;
  -webkit-user-select: none; user-select: none; animation: introIn .35s ease both; }
.intro[data-s="1"] { background: linear-gradient(160deg, #1A6FA3 0%, #0E4E78 60%, #08324F 100%); }
.intro[data-s="2"] { background: linear-gradient(160deg, #0E7C74 0%, #0A5F59 60%, #063A36 100%); }
.intro[data-s="3"] { background: linear-gradient(160deg, #6A4BC4 0%, #4A2F96 60%, #2E1B63 100%); }
.intro[data-s="4"] { background: linear-gradient(160deg, #E0573A 0%, #B53D24 60%, #7A2614 100%); }
.intro[data-s="5"] { background: linear-gradient(160deg, #E3A008 0%, #B7791F 60%, #7A4A0C 100%); }
.intro.closing { animation: introOut .3s ease both; }
@keyframes introIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; transform: translateY(30px); } }

.intro-bars { display: flex; gap: 5px; }
.intro-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.intro-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.intro-bars i.done b { width: 100%; }
.intro-bars i.now b { animation: introBar var(--dur, 5.5s) linear forwards; }
.intro.paused .intro-bars i.now b { animation-play-state: paused; }
@keyframes introBar { to { width: 100%; } }

.intro-head { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.intro-logo { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.4px; }
.intro-logo span { color: #FFB59E; }
.intro-skip { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font: 600 15px Inter, sans-serif; cursor: pointer; }

.intro-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide .txt { text-align: center; max-width: 340px; }
.slide h2 { font: 700 30px/1.1 "Space Grotesk", Inter, sans-serif; letter-spacing: -.6px; margin: 0 0 10px; color: #fff; }
.slide p { margin: 0; font-size: 16.5px; line-height: 1.45; color: rgba(255,255,255,.88); }
.slide.on h2 { animation: rise .7s .15s cubic-bezier(.2,.8,.2,1) both; }
.slide.on p { animation: rise .7s .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* telefono illustrato */
.phone { width: min(250px, 66vw); height: min(330px, 40vh); background: #F6F7F9; border-radius: 30px; padding: 14px 12px; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 6px #0F172A; color: #0F172A; font-family: Inter, sans-serif; }
.slide.on .phone { animation: float .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes float { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; font: 700 15px "Space Grotesk", sans-serif; }
.ph-top span { color: #F2643D; }
.ph { margin: 0 6px; }
.ph-field { background: #fff; border: 1.5px solid #0E7C74; border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ph-field .typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid #0E7C74; }
.slide.on .ph-field .typed { animation: type 1.2s .9s steps(5) forwards, caret .7s 2.1s step-end infinite; }
@keyframes type { to { width: 5.2ch; } }
@keyframes caret { 50% { border-color: transparent; } }
.ph-chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ph-chips i { font-style: normal; font-size: 12px; padding: 5px 9px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; }
.ph-btn { margin-top: 14px; background: #0E7C74; color: #fff; text-align: center; border-radius: 12px; padding: 10px; font-weight: 600; font-size: 13px; }
.slide.on .ph-btn { animation: press .5s 2.4s ease both; }
@keyframes press { 50% { transform: scale(.94); background: #0A5F59; } }

.ph-card { background: #fff; border-radius: 12px; border: 1px solid #E2E8F0; padding: 8px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ph-card .img { width: 46px; height: 46px; border-radius: 9px; flex: none; }
.ph-card b { display: block; font-size: 12.5px; line-height: 1.2; }
.ph-card small { font-size: 11px; color: #475569; }
.ph-card .pr { margin-left: auto; font-weight: 700; font-size: 12px; color: #0E7C74; white-space: nowrap; }
.slide.on .ph-card { animation: slideIn .6s cubic-bezier(.2,.8,.2,1) both; }
.slide.on .ph-card:nth-child(2) { animation-delay: .9s; } .slide.on .ph-card:nth-child(3) { animation-delay: 1.15s; } .slide.on .ph-card:nth-child(4) { animation-delay: 1.4s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

.ph-day { font: 700 13px "Space Grotesk", sans-serif; margin: 2px 0 8px; }
.ph-stop { background: #fff; border-radius: 10px; border-left: 4px solid #0E7C74; padding: 7px 9px; font-size: 12px; margin-bottom: 7px; }
.ph-stop small { display: block; color: #475569; font-size: 10.5px; }
.ph-gap { border: 1.5px dashed #6A4BC4; color: #4A2F96; border-radius: 10px; padding: 7px 9px; font-size: 11.5px; margin-bottom: 7px; background: #F3EFFD; }
.slide.on .ph-stop, .slide.on .ph-gap { animation: drop .5s cubic-bezier(.2,.8,.2,1) both; }
.slide.on .ph-stop:nth-of-type(1) { animation-delay: .8s; } .slide.on .ph-gap { animation-delay: 1.3s, 2.1s; animation-name: drop, pulse; animation-duration: .5s, 1.2s; animation-iteration-count: 1, infinite; }
.slide.on .ph-stop.s2 { animation-delay: 1.05s; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(106,75,196,.18); } }

.ticket { position: absolute; left: 50%; top: 52px; width: 150px; margin-left: -75px; background: #fff; border-radius: 12px; padding: 10px; font-size: 11px;
  box-shadow: 0 12px 24px rgba(0,0,0,.25); border: 1px dashed #B53D24; z-index: 2; }
.ticket b { display: block; font-size: 13px; }
.slide.on .ticket { animation: scanFly 2.4s .7s cubic-bezier(.5,0,.3,1) both; }
@keyframes scanFly { 0% { opacity: 0; transform: translateY(-50px) rotate(-8deg); } 25% { opacity: 1; transform: translateY(0) rotate(-3deg); } 60% { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); } 100% { opacity: 0; transform: translateY(70px) scale(.4); } }
.scan { position: absolute; left: 0; right: 0; height: 3px; background: #F2643D; box-shadow: 0 0 12px #F2643D; top: 52px; opacity: 0; z-index: 3; }
.slide.on .scan { animation: scanLine 1s 1.4s ease-in-out both; }
@keyframes scanLine { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(80px); } }
.ph-form { margin-top: 140px; display: flex; flex-direction: column; gap: 6px; }
.ph-form div { background: #fff; border: 1px solid #E2E8F0; border-radius: 9px; padding: 6px 8px; font-size: 11.5px; position: relative; min-height: 28px; }
.ph-form div i { font-style: normal; position: absolute; left: 8px; top: 6px; color: #94A3B8; }
.ph-form div span { color: transparent; }
.slide.on .ph-form div { animation: fillBox .4s ease both; }
.slide.on .ph-form div span { animation: fill .4s ease both; animation-delay: inherit; }
.slide.on .ph-form div i { animation: hideL .2s ease both; animation-delay: inherit; }
@keyframes fillBox { to { border-color: #0E7C74; } }
.slide.on .ph-form div:nth-child(1) { animation-delay: 2.9s; } .slide.on .ph-form div:nth-child(2) { animation-delay: 3.1s; } .slide.on .ph-form div:nth-child(3) { animation-delay: 3.3s; }
@keyframes fill { to { color: #0F172A; } }
@keyframes hideL { to { opacity: 0; } }

.budget { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #E2E8F0; }
.budget small { font-size: 11.5px; color: #475569; }
.bar { height: 10px; border-radius: 10px; background: #E2E8F0; overflow: hidden; margin-top: 8px; }
.bar b { display: block; height: 100%; width: 0; background: #0E7C74; border-radius: 10px; }
.slide.on .bar b { animation: grow 2.2s .8s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes grow { 60% { background: #0E7C74; } 80% { background: #D68910; } to { width: 93%; background: #D68910; } }
.alertbox { margin-top: 12px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.18); font-size: 12px; text-align: center; opacity: 0; }
.alertbox b { display: block; font-size: 13px; margin-bottom: 4px; }
.alertbox .ok { margin-top: 8px; color: #0E7C74; font-weight: 700; border-top: 1px solid #E2E8F0; padding-top: 7px; }
.slide.on .alertbox { animation: pop .45s 3.1s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

.intro-foot { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.intro-next { background: #fff; color: #0F172A; border: 0; border-radius: 14px; padding: 15px; font: 700 16px Inter, sans-serif; cursor: pointer; }
.intro-hint { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.65); }

/* linguetta "Come funziona" in fondo alla home */
.intro-tab { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 4px; background: #0F172A; color: #fff; border: 0; border-radius: 999px;
  padding: 8px 18px 9px; font: 600 13.5px Inter, sans-serif; box-shadow: 0 8px 20px rgba(15,23,42,.25); cursor: pointer; touch-action: none; }
.intro-tab::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); }
@media (prefers-reduced-motion: reduce) { .intro *, .intro { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* slide recensioni: il dito colora le stelle, il testo si scrive, la recensione compare */
.rv { position: relative; display: flex; flex-direction: column; gap: 5px; }
.rv-l { font-size: 11px; color: #475569; }
.rv-stars { position: relative; display: flex; gap: 3px; font-size: 24px; line-height: 1; color: #D9DEE5; width: max-content; }
.rv-stars span { transition: none; }
.slide.on .rv-stars span { animation: starOn .25s ease forwards; }
.slide.on .rv-stars span:nth-child(1) { animation-delay: 1.0s; } .slide.on .rv-stars span:nth-child(2) { animation-delay: 1.25s; }
.slide.on .rv-stars span:nth-child(3) { animation-delay: 1.5s; } .slide.on .rv-stars span:nth-child(4) { animation-delay: 1.75s; }
.slide.on .rv-stars span:nth-child(5) { animation-delay: 2.0s; }
.slide.on .rv-stars.v span:nth-child(1) { animation-delay: 2.5s; } .slide.on .rv-stars.v span:nth-child(2) { animation-delay: 2.6s; }
.slide.on .rv-stars.v span:nth-child(3) { animation-delay: 2.7s; } .slide.on .rv-stars.v span:nth-child(4) { animation-delay: 2.8s; }
.slide.on .rv-stars.v span:nth-child(5) { animation-delay: 2.9s; }
@keyframes starOn { 50% { transform: scale(1.35); } to { color: #F5B301; transform: scale(1); } }
.finger { position: absolute; left: -4px; top: 14px; font-style: normal; font-size: 22px; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.slide.on .finger { animation: swipe 1.6s .8s ease-in-out both; }
@keyframes swipe { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 80% { opacity: 1; transform: translateX(118px); } 100% { opacity: 0; transform: translateX(118px); } }
.rv-text { margin-top: 4px; background: #fff; border: 1px solid #E2E8F0; border-radius: 9px; padding: 7px 9px; font-size: 12px; min-height: 30px; }
.typed2 { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; border-right: 2px solid #0E7C74; vertical-align: bottom; }
.slide.on .typed2 { animation: type2 1.2s 3.2s steps(16) forwards, caret .7s 4.4s step-end 3; }
@keyframes type2 { to { max-width: 100%; } }
.rv-btn { margin-top: 6px; padding: 8px; }
.slide.on .rv-btn { animation: press .5s 4.6s ease both; }
.rv-card { position: absolute; left: 0; right: 0; bottom: -6px; background: #fff; border-radius: 12px; padding: 9px 10px; font-size: 12px; box-shadow: 0 10px 22px rgba(0,0,0,.2); opacity: 0; }
.rv-card b { color: #F5B301; letter-spacing: 1px; }
.rv-card small { display: block; color: #0E7C74; font-weight: 600; font-size: 11px; margin-top: 2px; }
.slide.on .rv-card { animation: pop .45s 5.2s cubic-bezier(.2,1.4,.4,1) both; }

/* pass nella slide 3 */
.ph-pass { margin-top: 2px; border-left: 4px solid #6A4BC4; background: #F3EFFD; color: #4A2F96; border-radius: 10px; padding: 6px 9px; font-size: 11px; }
.slide.on .ph-pass { animation: drop .5s 1.8s cubic-bezier(.2,.8,.2,1) both; }
/* budget piccolo sotto il biglietto */
.budget.mini { margin-top: 8px; padding: 8px 10px; }
.budget.mini small { font-size: 10.5px; }
.budget.mini .bar { height: 8px; margin-top: 5px; }
.slide.on .bar.late b { animation: grow 2s 3.8s cubic-bezier(.4,0,.2,1) forwards; }
/* mappa finta con percorso, tappe, pallino e notifica */
.mapmock { position: absolute; inset: 0; border-radius: 30px; overflow: hidden;
  background: #EAF1EA repeating-linear-gradient(35deg, transparent 0 26px, rgba(255,255,255,.9) 26px 31px),
              repeating-linear-gradient(-55deg, transparent 0 40px, rgba(255,255,255,.8) 40px 44px); }
.mapmock::before { content: ""; position: absolute; left: -20px; right: -20px; top: 58%; height: 26px; background: #BFDDF2; transform: rotate(-12deg); }
.mapmock svg { position: absolute; left: 6%; top: 18%; width: 88%; height: 66%; overflow: visible; }
.mapmock .route { fill: none; stroke: #0E7C74; stroke-width: 4; stroke-dasharray: 6 6; stroke-linecap: round; stroke-dashoffset: 300; }
.slide.on .mapmock .route { animation: dash 1.6s .6s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.mpin { position: absolute; transform: translate(-50%, -50%) scale(0); width: 24px; height: 24px; border-radius: 12px; background: #0E7C74; color: #fff; border: 2px solid #fff;
  font: 600 11px Inter, sans-serif; font-style: normal; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.slide.on .mpin { animation: pinIn .4s cubic-bezier(.2,1.4,.4,1) forwards; }
.slide.on .mpin:nth-of-type(1) { animation-delay: .5s; } .slide.on .mpin:nth-of-type(2) { animation-delay: .8s; } .slide.on .mpin:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes pinIn { to { transform: translate(-50%, -50%) scale(1); } }
.medot { position: absolute; left: 22%; top: 70.6%; width: 14px; height: 14px; border-radius: 50%; background: #2563EB; border: 3px solid #fff; transform: translate(-50%, -50%); opacity: 0; box-shadow: 0 0 0 6px rgba(37,99,235,.2); }
.slide.on .medot { animation: walk 3.4s 1.6s ease-in-out forwards; }
@keyframes walk { 0% { opacity: 1; left: 22%; top: 70.6%; } 100% { opacity: 1; left: 45%; top: 53%; } }
.notif { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 3; background: rgba(255,255,255,.96); border-radius: 14px; padding: 8px 10px; font-size: 11.5px; box-shadow: 0 8px 18px rgba(0,0,0,.2); transform: translateY(-120%); }
.notif b { display: block; font-size: 10.5px; color: #475569; }
.slide.on .notif { animation: notifIn .5s 3.4s cubic-bezier(.2,1.2,.4,1) forwards; }
@keyframes notifIn { to { transform: translateY(0); } }
.legmock { position: absolute; left: 10px; right: 10px; bottom: 12px; background: #fff; border-radius: 12px; padding: 7px 10px; font-size: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.12); opacity: 0; }
.slide.on .legmock { animation: rise .5s 2.3s ease forwards; }
.ph-form { margin-top: 112px; gap: 5px; }
.ph-form div { min-height: 25px; padding: 5px 8px; }
.ph-form div i { top: 5px; }
.budget.mini { margin-top: 4px; padding: 6px 9px; }
.ph-form .budget.mini { animation: none !important; border: 1px solid #E2E8F0; min-height: 0; }
.ph-form .budget.mini .bar { border: 0; padding: 0; min-height: 0; height: 8px; border-radius: 8px; background: #E2E8F0; animation: none !important; }

.ph-who { margin-top: 8px; display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #E2E8F0; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.ph-who b { color: #0E7C74; }
.slide.on .ph-who { animation: pop .4s 2.2s cubic-bezier(.2,1.4,.4,1) both; }
.sosmock { position: absolute; right: 10px; bottom: 52px; background: #FEF2F2; color: #991B1B; font: 700 12px Inter, sans-serif; border-radius: 999px; padding: 5px 10px; box-shadow: 0 4px 10px rgba(0,0,0,.15); opacity: 0; }
.slide.on .sosmock { animation: pop .4s 4.4s cubic-bezier(.2,1.4,.4,1) forwards; }

.wxmock { position: absolute; left: 10px; bottom: 52px; background: #fff; color: #1E3A8A; font: 700 12px Inter, sans-serif; border-radius: 999px; padding: 5px 10px; box-shadow: 0 4px 10px rgba(0,0,0,.15); opacity: 0; }
.slide.on .wxmock { animation: pop .4s 4.0s cubic-bezier(.2,1.4,.4,1) forwards; }

.intro[data-s="6"] { background: linear-gradient(160deg, #5E5CE6 0%, #3F3DB8 60%, #24227A 100%); }
.hp { display: flex; flex-direction: column; gap: 10px; }
.hp-faq { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.05); font-weight: 600; font-size: 13px; }
.hp-b { max-width: 85%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; opacity: 0; }
.slide.on .hp-b { animation: hpIn .5s cubic-bezier(.2,.8,.2,1) forwards; }
.hp-b.me { align-self: flex-end; background: #0A84FF; color: #fff; border-bottom-right-radius: 4px; }
.slide.on .hp-b.me { animation-delay: .5s; }
.hp-b.bot { align-self: flex-start; background: rgba(0,0,0,.07); color: #1D1D1F; border-bottom-left-radius: 4px; }
.slide.on .hp-b.bot { animation-delay: 1.6s; }
.hp-mail { margin-top: 4px; text-align: center; font-size: 13px; font-weight: 600; color: #5E5CE6; opacity: 0; }
.slide.on .hp-mail { animation: hpIn .5s ease 2.6s forwards; }
@keyframes hpIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
