:root{--navy:#073852;--blue:#146f8d;--blue2:#0b5c7a;--green:#2d9678;--aqua:#e8f6f3;--sky:#eaf7fb;--yellow:#fff3cc;--paper:#fff;--ink:#082f47;--muted:#5e7480;--line:#bad6dd;--soft:#f6fbfc;--danger:#a63d34;--shadow:0 18px 44px rgba(7,56,82,.14);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#eef8fa}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;min-height:100%;background:linear-gradient(180deg,#f6fcfd,#eaf6f8)}button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:min(100%,430px);min-height:100svh;margin:auto;background:var(--paper);box-shadow:var(--shadow);position:relative;overflow:hidden}.screen{min-height:100svh;padding:max(20px,env(safe-area-inset-top)) 20px max(22px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;background:linear-gradient(180deg,#fff,#f9fcfd)}.screen.scroll{display:block;overflow:visible}.screen>*{flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;color:var(--navy);font-weight:900;letter-spacing:3px;font-size:22px}.brand-mark{width:29px;height:17px;border-radius:100% 0 100% 0;background:var(--green);transform:rotate(-13deg)}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:46px}.back{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);font-size:24px;font-weight:800}.progress-label{font-size:12px;font-weight:800;color:var(--muted)}.progress{height:6px;border-radius:99px;background:#dfebee;overflow:hidden}.progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--green),var(--blue));transition:width .3s ease}.kicker{text-align:center;color:var(--green);font-size:13px;font-weight:900;letter-spacing:1.8px;text-transform:uppercase}.title{margin:0;color:var(--navy);font-size:34px;line-height:1.06;letter-spacing:-.8px;text-align:center}.title.small{font-size:28px}.lead{margin:0;color:var(--muted);font-size:17px;line-height:1.4;text-align:center}.button{width:100%;min-height:54px;border:0;border-radius:15px;background:linear-gradient(130deg,var(--navy),var(--blue));color:#fff;font-weight:900;padding:12px 16px;box-shadow:0 8px 18px rgba(7,56,82,.16)}.button.secondary{background:#fff;color:var(--blue2);border:1.5px solid var(--blue2);box-shadow:none}.button:disabled{background:#bcced3;color:#f7fbfc;box-shadow:none;cursor:not-allowed}.muted{color:var(--muted)}.trust{margin:0;text-align:center;color:var(--navy);font-size:13px;font-weight:800}.panel{border-radius:20px;padding:18px;background:var(--aqua)}.panel.yellow{background:var(--yellow)}.panel.white{background:#fff;border:1px solid #d6e6e9}.footer-links{text-align:center;margin-top:18px;padding:16px 0 4px;color:var(--muted);font-size:12px;font-weight:700}.footer-links a,.footer-links button{border:0;background:none;color:var(--blue2);text-decoration:underline;padding:3px}

.home-hero{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:12px;padding:18px;border-radius:22px;background:linear-gradient(135deg,var(--sky),var(--aqua))}.home-hero h1{margin:7px 0 8px;color:var(--navy);font-size:26px;line-height:1.08}.home-hero p{margin:0;color:var(--muted);font-size:14px;line-height:1.35}.glass{position:relative;width:82px;height:128px;margin:auto;border:5px solid rgba(23,123,155,.48);border-top-width:3px;border-radius:7px 7px 22px 22px;overflow:hidden;background:rgba(255,255,255,.58)}.water{position:absolute;left:0;right:0;bottom:0;height:62%;background:linear-gradient(#a7ebf4,#4fc0dc)}.water:before{content:"";position:absolute;left:-8%;top:-6px;width:116%;height:12px;border-radius:50%;background:#b8f2f7}.quick-label{text-align:center;color:var(--green);font-size:15px;font-weight:900;letter-spacing:1.1px}.city-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.city-card{position:relative;min-height:128px;border:1.5px solid var(--line);border-radius:17px;background:#fff;color:var(--navy);padding:76px 8px 10px;box-shadow:0 6px 15px rgba(7,56,82,.06);transition:.2s}.city-card:nth-child(1){animation:nudge 4s .2s infinite}.city-card:nth-child(2){animation:nudge 4s 1s infinite}.city-card:nth-child(3){animation:nudge 4s 1.8s infinite}.city-card:nth-child(4){animation:nudge 4s 2.6s infinite}@keyframes nudge{0%,12%,100%{transform:none;background:#fff}6%{transform:translateY(-3px) scale(1.015);background:var(--sky);box-shadow:0 8px 20px rgba(20,111,141,.16)}}.city-card strong{display:block;font-size:17px}.city-card small{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:700}.landmark{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:72px;height:57px;color:var(--blue)}.landmark:before,.landmark:after{content:"";position:absolute}.landmark.parma:before{left:16px;top:4px;width:38px;height:47px;border:4px solid currentColor;clip-path:polygon(50% 0,88% 16%,100% 100%,0 100%,12% 16%)}.landmark.parma:after{left:32px;top:7px;width:4px;height:43px;background:currentColor}.landmark.piacenza:before{left:5px;top:19px;width:62px;height:34px;border:4px solid currentColor;background:repeating-linear-gradient(90deg,transparent 0 9px,currentColor 10px 13px,transparent 14px 19px)}.landmark.piacenza:after{left:3px;top:8px;width:67px;height:13px;background:currentColor;clip-path:polygon(0 100%,10% 0,20% 100%,30% 0,40% 100%,50% 0,60% 100%,70% 0,80% 100%,90% 0,100% 100%)}.landmark.reggio:before{left:7px;top:18px;width:58px;height:35px;border:4px solid currentColor;background:repeating-linear-gradient(90deg,transparent 0 8px,currentColor 9px 12px,transparent 13px 17px)}.landmark.reggio:after{left:3px;top:3px;width:66px;height:18px;background:currentColor;clip-path:polygon(50% 0,100% 100%,0 100%)}.landmark.mantova:before{left:10px;top:18px;width:52px;height:36px;border:4px solid currentColor;background:linear-gradient(90deg,currentColor 0 17%,transparent 18% 42%,currentColor 43% 57%,transparent 58% 82%,currentColor 83%)}.landmark.mantova:after{left:5px;top:5px;width:62px;height:17px;background:currentColor;clip-path:polygon(0 45%,12% 45%,12% 0,24% 0,24% 45%,76% 45%,76% 0,88% 0,88% 45%,100% 45%,100% 72%,0 72%)}.search-area{position:relative;scroll-margin-top:12px}.search-area label{display:block;margin-bottom:7px;font-size:14px;font-weight:800}.field,.search-input{width:100%;min-height:50px;border:1.5px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;color:var(--navy);font-size:16px}.suggestions{position:relative;z-index:4;margin-top:7px;border:1.5px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 10px 22px rgba(7,56,82,.12)}.suggestion{width:100%;min-height:47px;padding:10px 14px;border:0;border-bottom:1px solid #dbe9ec;background:#fff;color:var(--navy);text-align:left;font-weight:800}.suggestion:last-child{border-bottom:0}.suggestion small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.home-note{text-align:center;margin:0 4px;color:var(--navy);font-size:13px;line-height:1.35;font-weight:800}.keyboard-mode .home-hero,.keyboard-mode .quick-label,.keyboard-mode .city-grid{display:none}

.result-hero{display:grid;grid-template-columns:.9fr 1.1fr;gap:10px;align-items:center;padding:15px 13px;border-radius:22px;background:var(--sky);min-height:250px}.result-city{font-size:29px;font-weight:900;color:var(--navy);line-height:1}.hardness{margin:8px 0 7px;font-size:47px;line-height:.95;font-weight:900;color:var(--green)}.hardness-label{display:inline-block;border-radius:99px;background:#ffe09b;color:#704500;padding:7px 10px;font-size:11px;font-weight:900;text-transform:uppercase}.glass-zone{position:relative;height:205px}.result-glass{position:absolute;left:50%;bottom:17px;transform:translateX(-50%);width:94px;height:150px;border:5px solid rgba(87,139,156,.7);border-top-width:3px;border-radius:7px 7px 24px 24px;overflow:hidden;background:linear-gradient(90deg,rgba(255,255,255,.7),rgba(214,241,248,.35),rgba(255,255,255,.7));box-shadow:inset 10px 0 14px rgba(255,255,255,.6),0 12px 18px rgba(8,47,71,.12)}.result-glass .water{height:8%;animation:fill 1.05s .15s forwards ease-out}@keyframes fill{to{height:72%}}.mineral{position:absolute;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px 6px;color:var(--navy);font-size:9px;line-height:1.15;font-weight:800;opacity:0;animation:pop .3s forwards}.mineral b{display:block;color:var(--green);font-size:10px}.m1{left:0;top:16px;animation-delay:.65s}.m2{right:0;top:8px;animation-delay:.8s}.m3{left:-3px;bottom:0;animation-delay:.95s}.m4{right:-2px;bottom:12px;animation-delay:1.1s}@keyframes pop{to{opacity:1;transform:translateY(-2px)}}.change-city{padding:11px 12px;border-radius:14px;background:var(--aqua);text-align:center;color:var(--green);font-size:13px;font-weight:900}.change-city button{display:block;width:100%;margin-top:7px;border:1.5px solid var(--blue2);border-radius:11px;background:#fff;color:var(--blue2);padding:10px;font-weight:900}.source{padding:10px;border-radius:12px;background:#f2f8f9;color:var(--muted);font-size:12px;line-height:1.35}.data-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.data-row{display:flex;justify-content:space-between;gap:7px;padding:8px;border-radius:10px;background:#f0f7f8;font-size:11px;font-weight:700}.data-row strong{color:var(--green);white-space:nowrap}.scale{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;margin-top:9px}.scale span{height:7px;background:#dcebed}.scale span.on{background:var(--green)}

.process{padding:18px 12px;border-radius:19px;background:var(--aqua)}.process h1{margin:7px 0 19px;color:var(--navy);font-size:27px;line-height:1.1}.nodes{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;position:relative}.nodes:before{content:"";position:absolute;left:9%;right:9%;top:18px;height:3px;background:#a8cbd1}.node{text-align:center;position:relative;font-size:10px;line-height:1.1;font-weight:800}.node i{position:relative;z-index:2;display:grid;place-items:center;width:37px;height:37px;margin:0 auto 8px;border-radius:50%;background:var(--blue2);color:#fff;font-style:normal}.node:nth-child(1) i{animation:pulse 3s 0s infinite}.node:nth-child(2) i{animation:pulse 3s .58s infinite}.node:nth-child(3) i{animation:pulse 3s 1.16s infinite}.node:nth-child(4) i{animation:pulse 3s 1.74s infinite}@keyframes pulse{0%,18%,100%{transform:scale(1);box-shadow:none}8%{transform:scale(1.13);box-shadow:0 0 0 8px rgba(45,150,120,.14);background:var(--green)}}.reflection{flex:1;display:flex;flex-direction:column;justify-content:center;padding:18px 14px;border-radius:19px;background:var(--yellow);text-align:center}.reflection h2{margin:6px 0 13px;font-size:24px;line-height:1.12}.reflection h2 span{display:block}.route-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:13px 0 15px}.route-icon{font-size:9px;font-weight:900}.route-icon i{display:grid;place-items:center;width:49px;height:49px;margin:0 auto 7px;border-radius:50%;background:#e7f5fa;font-style:normal;font-size:22px}.route-icon:last-child i{background:#dcf7ee;animation:tap 1.5s infinite}@keyframes tap{50%{transform:scale(1.09);box-shadow:0 0 0 8px rgba(45,150,120,.12)}}.big-question{font-size:21px;line-height:1.18;font-weight:900}.big-question span{display:block}

.path-image{position:relative;flex:1;min-height:0}.path-image img{width:100%;height:100%;display:block;object-fit:contain}.hotspot{position:absolute;left:4%;right:4%;border:0;background:transparent;color:transparent}.hotspot.hard{top:61%;height:9.5%}.hotspot.drink{top:71%;height:9.5%}.question-title{margin:14px 0 5px;text-align:center;color:var(--navy);font-size:28px;line-height:1.12}.options{display:flex;flex-direction:column;gap:10px}.option{width:100%;min-height:58px;border:1.5px solid #b4d3dc;border-radius:14px;background:#fff;color:var(--ink);padding:13px;text-align:left;font-size:15px;font-weight:800}.option:before{content:"";display:inline-block;width:18px;height:18px;margin-right:10px;border:2px solid #5ba8bc;border-radius:50%;vertical-align:-4px}.option.selected{background:#e5f5f0;border-color:var(--green)}.option.selected:before{border:5px solid var(--green)}.helper{margin-top:auto;text-align:center;color:var(--muted);font-size:12px;font-weight:700}.answer-card{text-align:center;padding:20px 16px;border-radius:19px;background:var(--aqua)}.answer-card .icon{width:58px;height:58px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:28px}.answer-card h2{margin:0 0 8px;font-size:26px;line-height:1.08}.answer-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.4}.insight{padding:15px;border-radius:17px;background:var(--yellow);text-align:center}.insight strong{display:block;font-size:17px}.insight p{margin:7px 0 0;color:#66561f;font-size:13px;line-height:1.4}.dual{display:flex;flex-direction:column;gap:9px;margin-top:auto}

.form-group{margin-top:10px}.form-group label{display:block;margin-bottom:5px;font-size:12px;font-weight:800}.channel-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.channel{min-height:44px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);font-weight:800}.channel.selected{background:var(--blue2);border-color:var(--blue2);color:#fff}.booking{display:grid;grid-template-columns:1fr 1fr;gap:8px}.consent{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-size:12px;line-height:1.35;font-weight:650}.consent input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--green)}.form-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.3}.method{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}.method li{font-size:13px;line-height:1.35;font-weight:650}.method li:before{content:"✓";margin-right:8px;color:var(--green);font-weight:900}.faq{padding:10px 0;border-top:1px solid rgba(8,47,71,.13)}.faq summary{color:var(--navy);font-size:13px;font-weight:850}.faq p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.4}.guide{text-align:center}.guide .book{font-size:48px}.guide h2{margin:4px 0 9px}.missing-manager{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--sky)}.manager-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:20px}.missing-manager small,.missing-manager strong{display:block}.missing-manager small{color:var(--green);font-size:11px;font-weight:900;letter-spacing:1px}.missing-manager strong{font-size:17px}.missing-card{text-align:center;padding:20px 18px;border-radius:22px;background:linear-gradient(145deg,var(--sky),var(--aqua))}.missing-card .pin{width:52px;height:52px;margin:0 auto 10px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:25px}.missing-card h2{margin:0;font-size:23px;line-height:1.15}.missing-card p{margin:10px 0 0;color:var(--muted);font-size:15px;line-height:1.4}.missing-help{padding:14px 16px;border-left:4px solid var(--green);background:rgba(232,246,243,.65)}.missing-help p{margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.35}

.consent-banner{position:fixed;left:10px;right:10px;bottom:10px;z-index:100;max-width:620px;margin:auto;padding:13px 14px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 14px 40px rgba(8,59,85,.22);display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.consent-banner p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.3}.consent-actions{display:flex;gap:6px}.consent-actions .button{width:auto;min-height:40px;padding:8px 10px;font-size:12px}

@media(max-width:360px){.screen{padding-left:15px;padding-right:15px;gap:11px}.title{font-size:30px}.home-hero{padding:14px}.city-card{min-height:120px}.result-hero{min-height:230px}.question-title{font-size:25px}.option{min-height:52px;font-size:14px}.consent-banner{grid-template-columns:1fr}.consent-actions{justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Logo visibile e modulo principale compatto anche sulle schermate più piccole. */
.topbar{gap:8px}.topbar .brand{font-size:16px;letter-spacing:2px}.topbar .brand-mark{width:23px;height:14px}.topbar .back{width:40px;height:40px;flex:0 0 auto}.topbar .progress-label{font-size:11px;white-space:nowrap}
.contact-screen{padding-bottom:28px}.contact-panel{padding:14px}.contact-panel .title{font-size:25px}.contact-lead{font-size:12px!important;line-height:1.25}.contact-panel .form-group{margin-top:7px}.contact-panel .field{min-height:43px;padding:9px 11px}.contact-panel .channel{min-height:39px}.contact-panel .consent{margin-top:7px;font-size:10.5px}.contact-panel .form-note{margin:5px 0}.contact-panel .button{min-height:49px}


/* Logo ufficiale ZENOLIS: goccia + wordmark, compatto e coerente su tutte le pagine. */
.brand.brand-logo{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:3px 8px 3px 5px;border-radius:999px;background:#fbfaf8;color:transparent;font-size:0;letter-spacing:0;line-height:1;box-shadow:0 0 0 1px rgba(7,56,82,.04)}
.brand-logo-symbol,.brand-logo-word{display:block;flex:none;background-image:url("assets/zenolis-logo-official.png");background-repeat:no-repeat}
.brand-logo-symbol{width:28px;height:37px;background-size:85.2px 85.2px;background-position:-28.5px -5.3px}
.brand-logo-word{width:90px;height:22px;background-size:125.4px 125.4px;background-position:-18px -61px}
.topbar .brand.brand-logo{font-size:0;letter-spacing:0}


/* Home compatta, cookie non coprente e navigazione percorso sempre visibile. */
#home-screen{gap:8px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}
#home-screen>.brand-logo{transform:scale(.88);transform-origin:left center;margin-bottom:-3px}
#home-screen .home-hero{min-height:0;padding:11px 14px;border-radius:18px}
#home-screen .home-hero h1{margin:4px 0 5px;font-size:23px}
#home-screen .home-hero p{font-size:12.5px;line-height:1.25}
#home-screen .glass{width:57px;height:86px;border-width:4px;border-top-width:2px;border-radius:6px 6px 16px 16px}
#home-screen .quick-label{font-size:13px}
#home-screen .city-grid{gap:7px}
#home-screen .city-card{min-height:82px;padding:48px 6px 7px;border-radius:13px}
#home-screen .city-card strong{font-size:15px}
#home-screen .city-card small{font-size:9.5px}
#home-screen .landmark{top:5px;transform:translateX(-50%) scale(.66);transform-origin:center top}
#home-screen .search-area label{margin-bottom:4px;font-size:12px}
#home-screen .search-input{min-height:43px;padding:9px 12px}
#home-screen .home-note{font-size:11.5px;line-height:1.25}
#home-screen .footer-links{margin-top:0;padding:2px 0 0;font-size:11px}
body:has(#consent-banner:not([hidden])) #home-screen{padding-bottom:max(88px,env(safe-area-inset-bottom))}
.consent-banner{bottom:6px;max-width:410px;padding:8px 10px;border-radius:12px;gap:8px}
.consent-banner strong{font-size:12px}
.consent-banner p{margin-top:2px;font-size:9.5px;line-height:1.2}
.consent-actions{gap:5px}
.consent-actions .button{min-height:34px;padding:6px 8px;font-size:10.5px}
.path-screen .topbar{flex:0 0 auto}
.path-screen .path-image{min-height:0}
@media(max-width:360px){.consent-banner{grid-template-columns:1fr auto}.consent-actions{flex-direction:column;justify-content:center}}


/* Schermata finale stabile: contenuto centrato, messaggio chiave evidente, azioni sempre in fondo. */
.answer-screen{height:100svh;min-height:100svh;overflow:hidden}
.answer-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:14px}
.answer-actions{flex:0 0 auto;margin-top:0}
.decision-message{text-align:center}
.decision-message>strong{display:block;margin-bottom:9px;color:var(--navy);font-size:18px;line-height:1.2}
.decision-question{padding:18px 16px;border:2px solid rgba(45,150,120,.38);border-radius:18px;background:linear-gradient(145deg,#fff6ce,#ffedaa);box-shadow:0 9px 22px rgba(7,56,82,.12);color:var(--navy);font-size:19px;line-height:1.28;font-weight:900;text-align:center}
@media(max-height:720px){.answer-screen{gap:8px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}.answer-body{gap:8px}.answer-screen .answer-card{padding:13px 12px}.answer-screen .answer-card .icon{width:46px;height:46px;margin-bottom:7px;font-size:23px}.answer-screen .answer-card h2{font-size:22px}.answer-screen .answer-card p{font-size:12px;line-height:1.3}.decision-message>strong{margin-bottom:6px;font-size:16px}.decision-question{padding:12px 13px;font-size:16px}.answer-actions{gap:7px}.answer-actions .button{min-height:48px}}


/* Pagina conclusiva Book centrata e stabile. */
.final-guide-screen{height:100svh;min-height:100svh;overflow:hidden}
.final-guide-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:14px}
.final-guide-screen .footer-links{flex:0 0 auto;margin-top:0;padding-top:2px}
@media(max-height:720px){.final-guide-screen{gap:8px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}.final-guide-body{gap:8px}.final-guide-screen .title.small{font-size:24px}.final-guide-screen .lead{font-size:14px}.final-guide-screen .panel{padding:13px}.final-guide-screen .guide .book{font-size:38px}.final-guide-screen .guide h2{font-size:20px}.final-guide-screen .button{min-height:48px}}


/* Layout mobile unificato: schermate stabili, leggibili e coerenti */
:root{--muted:#49636f}
.screen{min-height:100dvh;padding:max(14px,env(safe-area-inset-top)) 16px max(14px,env(safe-area-inset-bottom));gap:10px;background:linear-gradient(180deg,#fff,#f9fcfd)}
.topbar{min-height:42px;gap:8px}
.topbar .progress-label:empty{width:40px}
.lead,.muted,.source,.form-note{color:#49636f}
.panel,.answer-card,.source{border-radius:18px}

.analysis-screen{display:flex;flex-direction:column;overflow:visible}
.analysis-content{display:flex;flex-direction:column;gap:10px}
.analysis-screen .title.small{font-size:27px}
.analysis-screen .data-grid{gap:6px}
.analysis-screen .data-row{border:1px solid #dbe9ec;background:#f5fafb;font-size:11.5px}
.analysis-source{font-size:12.5px;color:#3f5965}
.analysis-context{padding:14px 15px;border:1.5px solid rgba(45,150,120,.34);border-radius:17px;background:linear-gradient(145deg,#fff8dc,#fff0b5);text-align:center}
.analysis-context strong{display:block;color:var(--navy);font-size:17px;line-height:1.2}
.analysis-context p{margin:7px 0 0;color:var(--navy);font-size:14px;line-height:1.4;font-weight:700}
.analysis-extra{display:flex;flex-direction:column;gap:10px;padding-top:8px}
.continuation-action{margin-top:2px}

.reflection-screen{height:100dvh;min-height:100dvh;overflow:hidden}
.journey-card{flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #d8e8e8;border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(7,56,82,.10)}
.journey-card .process,.journey-card .reflection{border-radius:0}
.journey-card .process{padding:13px 12px}
.journey-card .process h1{margin:5px 0 12px;font-size:24px}
.journey-card .reflection{padding:13px 14px;justify-content:flex-start}
.journey-card .reflection h2{margin:4px 0 8px;font-size:23px}
.journey-card .reflection .lead{font-size:14px;line-height:1.35;color:#415d68}
.journey-card .route-icons{margin:9px 0}
.journey-card .route-icon i{width:44px;height:44px;margin-bottom:5px;font-size:20px}
.journey-card .big-question{font-size:20px}
.reflection-action{margin-top:auto!important}
.journey-card .reflection>small{margin-top:5px}

.path-screen{height:100dvh;min-height:100dvh;padding:0;gap:0;overflow:hidden;background:#fff}
.path-screen .path-image{height:100%;min-height:100%;flex:1}
.path-screen .path-image img{object-fit:contain}
.path-back-button{position:absolute;z-index:3;left:7%;right:7%;bottom:max(12px,env(safe-area-inset-bottom));min-height:46px;border:1.5px solid var(--blue2);border-radius:14px;background:rgba(255,255,255,.97);color:var(--blue2);font-weight:900;box-shadow:0 7px 18px rgba(7,56,82,.12);cursor:pointer}

.question-screen{height:100dvh;min-height:100dvh;overflow:hidden}
.question-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
.question-screen .question-title{margin:5px 0 0;font-size:28px}
.question-screen .options{flex:1;display:grid;grid-template-rows:repeat(4,minmax(56px,70px));align-content:center;gap:10px}
.question-screen .option{min-height:56px}
.question-screen .helper{margin:0;padding:10px 12px;border-radius:12px;background:var(--sky);color:var(--navy);font-size:14px;line-height:1.25;font-weight:850}

.answer-screen{height:100dvh;min-height:100dvh;overflow:hidden}
.answer-body{flex:1;min-height:0;justify-content:flex-start;gap:10px;padding-top:5px}
.answer-card{padding:18px 15px;border:1px solid #d7e7e8;box-shadow:0 8px 20px rgba(7,56,82,.08)}
.answer-card p{color:#415d68;font-size:14.5px;line-height:1.4}
.answer-actions{margin-top:auto}
.decision-message>strong{font-size:18px}
.decision-question{padding:16px;font-size:18px}

.contact-screen{display:flex;flex-direction:column;gap:10px;overflow:visible;padding-bottom:max(20px,env(safe-area-inset-bottom))}
.contact-panel{padding:15px;border-color:#d4e5e8;box-shadow:0 8px 22px rgba(7,56,82,.07)}
.contact-panel .title{font-size:26px}
.contact-lead{margin:6px 0 10px!important;color:var(--navy)!important;font-size:15px!important;line-height:1.38!important;font-weight:750}
.contact-panel .consent{font-size:12px;line-height:1.38}
.contact-panel .form-note{font-size:12px;color:#49636f}

.final-guide-screen{min-height:100dvh;height:auto;overflow:visible}
.final-guide-body{flex:1;min-height:0;justify-content:center;gap:11px}
.final-guide-screen .guide{border:1px solid #d7e7e8;box-shadow:0 8px 22px rgba(7,56,82,.08)}
.final-guide-screen .footer-links{margin-top:0}

@media(max-height:720px){
  .reflection-screen,.question-screen,.answer-screen{gap:7px;padding-top:max(9px,env(safe-area-inset-top));padding-bottom:max(9px,env(safe-area-inset-bottom))}
  .journey-card .process{padding:9px 10px}
  .journey-card .process h1{font-size:21px;margin-bottom:8px}
  .journey-card .node i{width:32px;height:32px;margin-bottom:4px}
  .journey-card .reflection{padding:9px 11px}
  .journey-card .reflection h2{font-size:20px}
  .journey-card .route-icons{margin:6px 0}
  .journey-card .route-icon i{width:38px;height:38px}
  .journey-card .big-question{font-size:18px}
  .question-screen .question-title{font-size:24px}
  .question-screen .options{grid-template-rows:repeat(4,minmax(50px,58px));gap:7px}
  .question-screen .helper{padding:8px;font-size:12.5px}
  .answer-card{padding:12px}
  .answer-card .icon{width:44px;height:44px;margin-bottom:6px}
  .answer-card h2{font-size:21px}
  .answer-card p{font-size:12.5px}
  .decision-question{padding:11px 12px;font-size:16px}
  .answer-actions .button{min-height:47px}
}


/* Elimina lo spazio anonimo creato dai nodi vuoti prima dell'app */
body{font-size:0}
.app-shell,.consent-banner{font-size:16px}


/* Il messaggio centrale resta unito e stabile nella schermata */
.answer-body{justify-content:center}


/* Rifinitura leggibilità e navigazione mobile */
:root{--muted:#3c5662}

.topbar{min-height:44px;padding:0 2px}
.topbar .brand.brand-logo{padding-left:2px}
.progress-label{color:#405965;font-size:12px}

.flow-back{
  position:fixed;
  z-index:40;
  left:max(12px,calc(50vw - 203px));
  bottom:max(14px,env(safe-area-inset-bottom));
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1.5px solid #6c9eac;
  border-radius:50%;
  background:rgba(255,255,255,.97);
  color:var(--navy);
  font-size:28px;
  line-height:1;
  font-weight:900;
  box-shadow:0 7px 18px rgba(7,56,82,.16);
  backdrop-filter:blur(6px)
}
.flow-screen:not(.path-screen){padding-bottom:max(72px,calc(env(safe-area-inset-bottom) + 56px))}

/* Apertura: la ricerca è la quinta scelta importante */
#home-screen .search-area{padding-top:2px}
#home-screen .search-area label{
  margin-bottom:7px;
  color:var(--navy);
  font-size:17px;
  line-height:1.2;
  font-weight:900
}
#home-screen .search-input{
  min-height:56px;
  border:2px solid #8ebdc8;
  color:var(--navy);
  font-size:17px;
  font-weight:750;
  box-shadow:0 6px 15px rgba(7,56,82,.07);
  animation:searchNudge 4s 3.25s infinite
}
#home-screen .search-input:focus{animation:none;border-color:var(--green);box-shadow:0 0 0 4px rgba(45,150,120,.15)}
#home-screen .home-hero p{color:#3b5561;font-size:14px;line-height:1.32;font-weight:560}
#home-screen .city-card small{color:#465f6b;font-size:12px}
#home-screen .home-note{color:#294956;font-size:13.5px;line-height:1.38}
@keyframes searchNudge{
  0%,12%,100%{transform:none;background:#fff;box-shadow:0 6px 15px rgba(7,56,82,.07)}
  6%{transform:translateY(-3px) scale(1.012);background:var(--sky);box-shadow:0 9px 21px rgba(20,111,141,.18)}
}

/* Analisi: il percorso principale resta visibile, l'approfondimento segue */
.analysis-screen{padding-top:max(10px,env(safe-area-inset-top))}
.analysis-content{gap:6px}
.analysis-screen .topbar{min-height:38px}
.analysis-screen .title.small{font-size:25px;line-height:1.04}
.analysis-screen .data-grid{gap:4px}
.analysis-screen .data-row{padding:6px 7px;border-radius:9px;font-size:11.2px;line-height:1.15}
.analysis-source{padding:8px 10px;font-size:12px;line-height:1.25}
.analysis-context{padding:9px 12px;border-radius:15px}
.analysis-context strong{font-size:16px}
.analysis-context p{margin-top:4px;font-size:13.5px;line-height:1.28}
.analysis-screen .continuation-action{min-height:50px;margin-top:0}
.analysis-screen .button.secondary{margin-top:2px}
.analysis-extra{padding-top:6px}

/* Percorso: logo ufficiale e ritorno discreto */
.path-screen.flow-screen{padding:0}
.path-brand-shell{
  position:absolute;
  z-index:4;
  top:0;
  left:0;
  right:0;
  min-height:67px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fff 78%,rgba(255,255,255,.93) 90%,rgba(255,255,255,0))
}
.path-brand-shell .brand-logo{transform:scale(1.08);transform-origin:center}
.path-screen .flow-back{bottom:max(14px,env(safe-area-inset-bottom))}
.path-screen .path-image img{object-position:center top}

/* Schermata di riflessione: testi secondari realmente leggibili */
.answer-screen{height:auto;min-height:100dvh;overflow:visible}
.answer-body{flex:0 0 auto;justify-content:flex-start;gap:12px;padding-top:8px}
.answer-actions{margin-top:0;gap:9px}
.answer-card{padding:17px 15px;background:#e3f3f0;border:1px solid #b9dcd7}
.answer-card .icon{width:50px;height:50px;margin-bottom:9px;font-size:24px}
.answer-card h2{font-size:24px}
.answer-card p{color:#294b58;font-size:15.5px;line-height:1.43;font-weight:620}
.decision-message>strong{font-size:19px}
.decision-question{font-size:18px;line-height:1.3}

/* Consulenza e Book in un unico scorrimento */
.contact-screen{gap:12px}
.contact-panel .form-group label{color:var(--navy);font-size:13.5px}
.contact-panel .consent{color:#294955;font-size:13px;line-height:1.42}
.contact-panel .form-note{color:#3c5662;font-size:13px;line-height:1.4}
.contact-screen .method li{color:#294955;font-size:14px;line-height:1.42}
.contact-screen .faq summary{font-size:14px;line-height:1.35}
.contact-screen .faq p{color:#3a5561;font-size:14px;line-height:1.48}
.book-flow-section{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:22px 0 8px;
  border-top:2px solid #d6e8e8;
  scroll-margin-top:12px
}
.book-flow-section .title.small{font-size:27px}
.book-flow-section>.lead{color:#34515d;font-size:15.5px;line-height:1.45}
.book-flow-section .guide{border:1px solid #cce1e3;box-shadow:0 9px 24px rgba(7,56,82,.09)}
.book-flow-section .guide .muted{color:#34515d;font-size:15px;line-height:1.45}

/* Dati da recuperare: tutti i testi hanno contrasto sufficiente */
.missing-manager strong{color:var(--navy);font-size:18px}
.missing-card p{color:#34515d;font-size:16px;line-height:1.45;font-weight:560}
.missing-help strong{color:var(--navy);font-size:17px}
.missing-help p{color:#34515d;font-size:15px;line-height:1.45;font-weight:560}
.missing-form-lead{color:#34515d!important;font-size:16px!important;line-height:1.43!important;font-weight:560}
.missing-form-screen .form-group label{color:var(--navy);font-size:13.5px}
.missing-form-screen .consent{color:#294955;font-size:13px;line-height:1.42}
.missing-form-screen .form-note{color:#3c5662;font-size:13.5px;line-height:1.42}
.field::placeholder,.search-input::placeholder{color:#657b85;opacity:1}
.footer-links{color:#465f6b;font-size:13px}

@media(max-height:880px){
  .reflection-screen{gap:7px;padding-top:max(9px,env(safe-area-inset-top))}
  .journey-card .process{padding:9px 10px}
  .journey-card .process h1{margin:4px 0 8px;font-size:21px}
  .journey-card .node i{width:32px;height:32px;margin-bottom:4px}
  .journey-card .reflection{padding:9px 11px}
  .journey-card .reflection h2{font-size:20px}
  .journey-card .reflection .lead{font-size:13.5px;line-height:1.3}
  .journey-card .route-icons{margin:6px 0}
  .journey-card .route-icon i{width:38px;height:38px;margin-bottom:4px}
  .journey-card .big-question{font-size:18px}
  .reflection-action{min-height:49px;padding:9px 12px}
  .question-screen .options{gap:7px}
}

@media(max-width:360px){
  #home-screen .search-area label{font-size:16px}
  .analysis-screen .title.small{font-size:23px}
  .analysis-screen .data-row{padding:5px 6px;font-size:10.7px}
  .flow-back{left:10px;width:43px;height:43px}
}


/* Allineamento finale della gerarchia in apertura */
#home-screen .city-card strong{font-size:17px}
#home-screen .footer-links{font-size:12.5px}

/* Analisi completa: più spazio verticale senza separare domanda e risposta */
.analysis-screen .topbar{
  display:none;
}
.analysis-screen{
  padding-top:max(6px,env(safe-area-inset-top));
  padding-bottom:max(72px,calc(env(safe-area-inset-bottom) + 56px));
}
.analysis-screen .progress{
  margin-top:0;
}
@media(max-height:760px){
  .analysis-screen{gap:5px}
  .analysis-screen .analysis-content{gap:4px}
  .analysis-screen .title.small{font-size:24px}
  .analysis-screen .data-grid{gap:3px}
  .analysis-screen .data-row{min-height:0;padding:5px 6px}
  .analysis-screen .analysis-source{padding:6px 9px}
  .analysis-screen .analysis-context{padding:7px 10px}
  .analysis-screen .analysis-context p{margin-top:3px;line-height:1.22}
  .analysis-screen .continuation-action{position:static;min-height:48px;margin-top:0}
}

/* Mantova AqA: mostra subito che sono disponibili altri parametri */
.analysis-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  background:#e8f6f3;
  color:var(--navy);
  font-size:12px;
  line-height:1.2;
}
.analysis-summary strong{font-size:13px}
.analysis-summary span{color:var(--green);font-weight:900;text-align:right}
.analysis-more{margin:0}
.analysis-more small{display:block;margin-top:3px;font-size:11px;line-height:1.2}
.analysis-extra h2{margin:0;color:var(--navy);font-size:22px;line-height:1.15;text-align:center}
@media(max-height:760px){
  .analysis-summary{padding:6px 9px}
  .analysis-more{min-height:48px;padding:8px 12px}
}



/* Mantova AqA su iPhone bassi: CTA visibile al primo colpo */
@media (max-width: 430px) and (max-height: 760px) {
  .analysis-screen:has(.analysis-more) {
    padding-top: max(0px, env(safe-area-inset-top));
    gap: 2px;
  }

  .analysis-screen:has(.analysis-more) .analysis-content {
    gap: 2px;
    transform: translateY(-4px);
  }

  .analysis-screen:has(.analysis-more) .title.small {
    font-size: 23px;
    line-height: 1;
  }

  .analysis-screen:has(.analysis-more) .analysis-summary {
    padding: 4px 8px;
  }

  .analysis-screen:has(.analysis-more) .analysis-more {
    min-height: 44px;
    padding: 6px 10px;
  }

  .analysis-screen:has(.analysis-more) .analysis-more small {
    margin-top: 1px;
  }

  .analysis-screen:has(.analysis-more) .data-grid {
    gap: 2px;
  }

  .analysis-screen:has(.analysis-more) .data-row {
    padding: 4px 6px;
  }

  .analysis-screen:has(.analysis-more) .analysis-source {
    padding: 5px 8px;
    line-height: 1.18;
  }

  .analysis-screen:has(.analysis-more) .analysis-context {
    padding: 6px 9px;
  }

  .analysis-screen:has(.analysis-more) .analysis-context p {
    margin-top: 2px;
    line-height: 1.18;
  }

  .analysis-screen:has(.analysis-more) .continuation-action {
    min-height: 46px;
  }
}
