/* ERA AI Mobile, avvio app e robot SVG originali · nessun CDN */
.avatar-scene{position:relative;max-width:485px;margin:0 auto;height:clamp(295px,42vh,465px);display:grid;place-items:center;isolation:isolate}.back-ring{position:absolute;left:50%;top:50%;width:min(100%,410px);aspect-ratio:1/1;border-radius:50%;transform:translate(-50%,-50%);border:1px solid rgba(66,171,253,.18)}.back-ring-a:before,.back-ring-b:after{content:"";position:absolute;inset:18px;border-radius:50%;border:1px dashed rgba(66,171,253,.21)}.back-ring-b{width:min(76%,315px);border-color:rgba(73,194,248,.3);box-shadow:0 0 35px #138def13, inset 0 0 50px #138def0e}.hero-glow{position:absolute;inset:7% 6%;border-radius:50%;background:radial-gradient(circle,#1192ef39,transparent 68%);filter:blur(18px)}.avatar-body{width:min(100%,310px);height:min(100%,360px);transform-origin:50% 75%;animation:float 5.2s ease-in-out infinite;z-index:1;filter:drop-shadow(0 27px 22px #00102490)}.avatar-svg{height:100%;width:100%;display:block;overflow:visible}.eye-set{transform-box:fill-box;transform-origin:center;animation:blink 6.4s infinite}.ear-left,.ear-right{animation:earFlick 6s infinite alternate}.chest-light{animation:chestPulse 2.6s infinite}.mouth-vowel,.mouth-wide,.mouth-close{display:none}.avatar-scene[data-viseme="open"] .mouth-idle,.avatar-scene[data-viseme="wide"] .mouth-idle,.avatar-scene[data-viseme="closed"] .mouth-idle{display:none}.avatar-scene[data-viseme="open"] .mouth-vowel{display:block}.avatar-scene[data-viseme="wide"] .mouth-wide{display:block}.avatar-scene[data-viseme="closed"] .mouth-close{display:block}.avatar-scene[data-state="speaking"] .avatar-body{animation:talkNod 1.25s ease-in-out infinite}.avatar-scene[data-state="listening"] .back-ring-b{border-color:#42e9cc;box-shadow:0 0 40px #2fe9ce2e}.avatar-scene[data-state="listening"] .eye-set{filter:brightness(1.4)}.sparkle{position:absolute;color:#50d9ff;font-size:25px;animation:twinkle 3.3s ease-in-out infinite;z-index:2}.star-a{left:10%;top:28%}.star-b{right:11%;top:20%;font-size:16px;animation-delay:1s}.star-c{right:13%;bottom:27%;font-size:21px;animation-delay:1.7s}.sound-wave{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;height:27px;gap:5px;opacity:.52}.sound-wave i{height:5px;width:4px;border-radius:5px;background:#4dd5ff;box-shadow:0 0 8px #38baff}.avatar-scene[data-state="speaking"] .sound-wave i,.avatar-scene[data-state="listening"] .sound-wave i{animation:wave .7s ease-in-out infinite alternate}.sound-wave i:nth-child(2n){animation-delay:-.18s!important}.sound-wave i:nth-child(3n){animation-delay:-.39s!important}.sound-wave i:nth-child(5n){animation-delay:-.62s!important}.assistant-copy{margin-top:-3px}.assistant-badge{color:#84b9d3;font-size:10px;font-weight:800;letter-spacing:.17em}.assistant-badge .pulse-dot{height:6px;width:6px}.assistant-copy h1{font-size:clamp(35px,4.6vw,59px);line-height:1.03;letter-spacing:-.055em;margin:9px 0 10px;font-weight:810}.assistant-copy em{font-style:normal;background:linear-gradient(95deg,#64e7f7,#4e8fff 69%,#bdacff);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.assistant-copy p{margin:0 auto;color:#a6bada;font-size:14px;max-width:440px;line-height:1.62}.welcome-actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:19px;min-height:77px}.primary-btn{display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(105deg,#33bdf4,#5178ff);border:0;border-radius:15px;padding:16px 20px;color:#fff;font-size:14px;font-weight:790;box-shadow:0 10px 30px #148dfb2c}.primary-btn:hover{filter:brightness(1.1)}.start-btn{width:min(100%,313px)}.round-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#ffffff27;font-size:10px}.btn-arrow{margin-left:auto}.welcome-actions small{font-size:10px;color:#86a0bf}.welcome-actions.is-started{display:none}

@keyframes float{0%,100%{transform:translateY(4px) rotate(-.6deg)}50%{transform:translateY(-5px) rotate(.6deg)}}@keyframes talkNod{0%,100%{transform:translateY(3px) rotate(0)}50%{transform:translateY(-3px) rotate(.9deg)}}@keyframes blink{0%,44%,47%,88%,91%,100%{transform:scaleY(1)}45%,89%{transform:scaleY(.1)}}@keyframes wave{from{height:4px}to{height:23px}}@keyframes twinkle{0%,100%{opacity:.25;transform:scale(.8) rotate(0)}50%{opacity:1;transform:scale(1.12) rotate(22deg)}}@keyframes chestPulse{0%,100%{opacity:.55}50%{opacity:1}}@keyframes earFlick{0%,96%,100%{opacity:1}98%{opacity:.7}}@keyframes micPulse{0%,100%{box-shadow:0 0 0 0 #1be6c642}50%{box-shadow:0 0 0 9px #1be6c600}}

.avatar-scene[data-viseme="small"] .mouth-idle{display:none}
.avatar-scene[data-viseme="small"] .mouth-vowel{display:block;transform:scale(.5,.45);transform-origin:center}
.avatar-scene[data-state="unsure"] .back-ring-b{border-color:#f9bc72;box-shadow:0 0 38px #a05b1620}
.avatar-scene[data-state="unsure"] .eye-set{filter:brightness(.9)}
.avatar-scene[data-state="happy"] .chest-light{fill:#51ffe2}
.avatar-scene[data-state="listening"] .back-ring-a{animation:ringBreath 1.4s ease-in-out infinite}
@keyframes ringBreath{0%,100%{opacity:.52}50%{opacity:1}}
/* L'immersione è una scelta esplicita; non lancia il microfono da sola. */

:root{color-scheme:dark;--bg:#051127;--surface:#0a1c36;--surface2:#102643;--line:#204667;--text:#f2f9ff;--soft:#a6bfda;--aqua:#65f1df;--blue:#1577f6;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 30% -10%,#123b65,#06172e 44%,#040e21 90%);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.46;cursor:not-allowed}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #74ffdc;outline-offset:3px}
.app{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;max-width:950px;margin:auto;border-left:1px solid #143250;border-right:1px solid #143250;box-shadow:0 0 90px #0005}
.topbar{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:68px;padding:10px max(14px,env(safe-area-inset-left)) 10px max(14px,env(safe-area-inset-right));background:#06182eeb;border-bottom:1px solid #244263;z-index:3}.brand{display:flex;gap:10px;align-items:center;min-width:0}.logo-box{display:grid;place-items:center;width:43px;height:43px;background:linear-gradient(135deg,#43e4f1,#1862ec);border-radius:12px;flex:none;overflow:hidden}.logo-box img{display:none;width:100%;height:100%;object-fit:cover}.logo-box img.loaded{display:block}.logo-box span{font-size:16px;font-weight:900;color:#031629}.brand-words strong{font-size:16px;display:block;letter-spacing:.01em}.brand-words small{font-size:11px;color:var(--soft);display:flex;align-items:center;gap:7px}.online-dot,.live-dot{width:7px;height:7px;border-radius:50%;background:#33e3ae;display:inline-block;box-shadow:0 0 10px #34ffc2}.top-actions{display:flex;gap:8px}.icon-btn{background:#112b4a;border:1px solid #244a71;color:#e2faff;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:20px}
.experience{flex:1;min-height:0;display:flex;flex-direction:column}.voice-stage{flex:none;min-height:0;max-height:240px;padding:3px 8px 4px;background:linear-gradient(180deg,#071d3d,#061b35);border-bottom:1px solid #224b77;overflow:hidden}.voice-stage #voice-robot-slot{position:relative;width:100%;height:calc(100% - 29px)}.voice-stage .avatar-scene{height:180px;width:100%;max-width:none;margin:auto}.voice-stage .avatar-body{height:176px;width:175px;max-width:none}.voice-stage .back-ring{width:202px}.voice-stage .back-ring-b{width:165px}.voice-stage .sparkle{font-size:16px}.voice-stage .sound-wave{bottom:4px}.voice-stage-foot{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.1em;font-weight:850;color:#99c4df;justify-content:center;min-height:27px}.voice-stage-foot .stage-icon{margin-left:7px;width:26px;height:26px;border-radius:50%;background:#15395e;border:1px solid #36769c;color:#c7faff}.voice-stage #voice-robot-slot .avatar-scene[data-state=speaking] .chest-light{fill:#79ffe3}
body:not(.voice-mode) .voice-stage{display:none}.voice-mode .voice-stage{display:block}.robot-motion-off .avatar-body,.robot-motion-off .chest-light,.robot-motion-off .eye-set,.robot-motion-off .back-ring,.robot-motion-off .sparkle{animation:none!important}.robot-motion-off .sound-wave{display:none!important}
.conversation{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative;background:linear-gradient(180deg,#07162b,#06142a 100%)}.messages-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 13px 12px;scrollbar-width:thin;scrollbar-color:#2a5988 transparent}.day-marker{width:fit-content;margin:1px auto 19px;color:#8ab7dd;font-size:10px;letter-spacing:.09em;font-weight:800;background:#0b233f;padding:7px 15px;border-radius:99px}.history-items{display:flex;flex-direction:column;gap:14px}.message{max-width:min(87%,540px);display:flex;align-items:flex-end;gap:7px;min-width:0}.message.bot{align-self:flex-start}.message.user{align-self:flex-end;justify-content:flex-end}.message-avatar{flex:none;width:32px;height:32px;border-radius:10px;background:radial-gradient(circle,#1a87c5,#082f5c);display:grid;place-items:center;border:1px solid #3495be;color:#77f8ff;font-weight:850;font-size:14px}.message-bubble{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;line-height:1.46;font-size:14px;border-radius:17px 17px 17px 5px;background:#112642;border:1px solid #204769;box-shadow:0 7px 15px #0002}.message.user .message-bubble{border-radius:17px 17px 5px 17px;background:linear-gradient(135deg,#127bfa,#1254c9);border-color:#367fea;color:#fff}.history-line{display:block}.answer-panel{max-width:min(89%,560px);margin:12px 0 0 39px;padding:9px 11px;background:#0a233a;border:1px solid #1c4f6e;border-radius:14px;color:#dbeefa}.answer-top{display:none}.evidence-strip{display:flex;align-items:center;gap:5px}.evidence-tag{display:inline-block;color:#91dfdc;font-size:9px;font-weight:850;letter-spacing:.02em}.evidence-tag.uncertain{color:#ffd08b}.source-links{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.source-links:empty{display:none}.source-links a{font-size:11px;text-decoration:underline;color:#7edfff}.answer-cta{display:grid;gap:7px;margin-top:11px;padding:10px;border-radius:11px;border:1px solid #2b5780;font-size:12px}.answer-cta a{display:inline-block;background:#12516b;color:#e1ffff;border-radius:10px;padding:9px 12px;font-weight:800;text-align:center}.brain-actions{padding:3px 0;margin-top:6px}.brain-actions>label{display:block;font-size:12px;font-weight:800;margin:9px 0 5px}.brain-actions textarea{width:100%;min-height:132px;max-height:32vh;padding:11px;border:1px solid #55bccc;background:#e8f5ff;color:#112c43;border-radius:10px;font:inherit;font-size:14px;resize:vertical}.brain-action-row{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.brain-action-row button,.brain-contact-link{border:1px solid #44cdbc;border-radius:11px;background:#125068;color:#efffff;font-size:12px;padding:10px;min-height:38px}.contact-warning{font-size:11px;line-height:1.4;color:#bed4df}
.chat-bottom{flex:none;background:#071a33f4;border-top:1px solid #173c64;padding:8px 10px calc(8px + var(--safe));z-index:2}.question-pills{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 10px}.question-pills::-webkit-scrollbar{display:none}.question-pills button{border:1px solid #266b9e;background:#102c4a;color:#d2ebff;white-space:nowrap;font-size:12px;padding:8px 13px;border-radius:99px;flex:none;max-width:82vw;overflow:hidden;text-overflow:ellipsis}.composer{display:flex;gap:8px;align-items:center}.add-btn{flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#10385b;border:1px solid #286999;color:#9de6ff;font-size:27px;font-weight:300}.input-form{display:flex;flex:1;align-items:center;gap:5px;min-width:0}.input-form input{min-width:0;flex:1;height:45px;border-radius:24px;border:1px solid #275175;background:#091a30;color:#e8f7ff;font-size:16px;padding:0 14px;outline-offset:1px}.input-form input::placeholder{color:#879cb5}.kbd-btn{flex:none;width:33px;height:41px;border:0;background:transparent;color:#b3ddf5;font-size:19px}.send-btn{flex:none;width:43px;height:43px;border:1px solid #2680f8;background:linear-gradient(130deg,#268cff,#135bd7);border-radius:50%;color:#fff;font-size:26px;display:grid;place-items:center;line-height:1}.app-footer{display:flex;gap:8px;justify-content:space-around;padding:8px 12px calc(8px + var(--safe));border-top:1px solid #203b5b;background:#061529;min-height:47px;align-items:center}.footer-link{border:0;background:transparent;color:#a9c7e6;font-size:11px;display:flex;align-items:center;gap:5px;white-space:nowrap}.footer-link span{background:#19375b;padding:1px 5px;border-radius:6px}.commercial-link{color:#7beedc}
/* Landing: fills the screen, original robot remains the hero */
.choice-overlay{position:fixed;z-index:200;inset:0;width:100vw;height:100vh;height:100dvh;background:radial-gradient(ellipse at 50% 35%,#0d386c 0%,#07192e 58%,#030a1c 100%);display:flex;align-items:center;justify-content:center;overflow-y:auto;padding:10px 14px}.gate-inner{max-width:480px;width:100%;max-height:100%;text-align:center;overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:10px 0}.gate-mark{font-size:10px;font-weight:850;letter-spacing:.16em;color:#87cfe9;white-space:nowrap}.gate-mark span{color:#77ebd5;padding:0 5px}.gate-robot-slot{flex:none;width:100%;height:clamp(210px,41dvh,355px)}.gate-robot-slot .avatar-scene{height:100%;max-width:450px;width:100%}.gate-robot-slot .avatar-body{height:100%;width:min(72vw,310px)}.gate-robot-slot .back-ring{width:min(82vw,390px)}.gate-robot-slot .back-ring-b{width:min(65vw,300px)}.gate-inner h1{font-size:clamp(30px,6.5vw,42px);letter-spacing:-.04em;margin:0;color:#eaf6ff}.gate-inner h1 em{font-style:normal;color:#56e5fa}.gate-inner>p{font-size:14px;color:#b3cce3;margin:6px 0 12px}.gate-choices{width:100%;max-width:350px;display:grid;gap:10px;margin:6px auto 10px}.gate-btn{background:linear-gradient(115deg,#135ab0,#1465e5);color:white;border:1px solid #3689eb;border-radius:15px;min-height:57px;display:flex;align-items:center;gap:11px;text-align:left;font-weight:800;font-size:16px;padding:10px 17px}.gate-btn span{font-size:21px}.gate-btn b{margin-left:auto;font-size:26px;font-weight:400}.gate-voice{background:linear-gradient(115deg,#064f62,#063e59);border-color:#3dd8ce;color:#9efcec}.gate-privacy{max-width:380px;font-size:10px;line-height:1.5;color:#a9c2d5;margin:7px auto 0}.gate-privacy a{text-decoration:underline;color:#83eadb}.gate-error{background:#4b2835;border-radius:13px;padding:15px;font-size:13px}.gate-error button{background:#155d77;color:white;border:1px solid #69eadd;border-radius:10px;padding:9px;margin-top:10px}
/* Bottom-sheet dialogs (desktop centered) */
.sheet{border:1px solid #285272;border-radius:23px 23px 0 0;background:linear-gradient(160deg,#0d2747,#07182d);color:#f1f9ff;width:100%;max-width:510px;max-height:min(86dvh,740px);margin:auto auto 0;padding:0;box-shadow:0 -24px 80px #0009}.sheet::backdrop{background:#0009;backdrop-filter:blur(4px)}.sheet-shell{padding:13px 16px calc(20px + var(--safe));max-height:min(86dvh,740px);overflow-y:auto;scrollbar-width:thin}.sheet-handle{width:35px;height:4px;background:#476982;border-radius:6px;margin:0 auto 15px}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}.sheet-head h2{font-size:19px;margin:0;letter-spacing:-.02em}.sheet-close{width:36px;height:36px;flex:none;border-radius:50%;border:0;background:#112e4d;color:#cce4f8;font-size:18px}.sheet-sub{color:#aec9db;font-size:13px;margin:3px 0 15px}.sheet-row{width:100%;display:flex;align-items:center;gap:12px;min-height:59px;text-align:left;background:#0b203b;border:1px solid #214765;border-radius:13px;color:#fff;padding:10px 12px;margin:8px 0;font-size:14px}.sheet-row>span:nth-of-type(1):not(.sheet-icon){flex:1}.sheet-row span small{display:block;color:#91b1c9;font-size:12px;margin-top:3px}.sheet-row b{margin-left:auto;font-size:22px;font-weight:400;color:#94c4df}.sheet-icon{display:grid;place-items:center;width:37px;height:37px;flex:none;border-radius:11px;font-size:20px;font-weight:850;background:#18579c}.sheet-icon.wa{background:#0cb86d}.sheet-icon.call{background:#1478e5}.sheet-icon.appointment{background:#824adb}.sheet-icon.contact{background:#2879c9}.sheet-small{text-align:center;margin-top:18px;font-size:11px;color:#a7c8da}.sheet-small a{text-decoration:underline;margin-inline:4px}.setting-group{padding:14px 0;border-bottom:1px solid #214563}.setting-label{font-size:13px;font-weight:750;display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:12px}.setting-label output{color:#88e5e6;font-size:12px}.voice-picker{display:flex;gap:8px}.voice-picker select{min-height:44px;min-width:0;flex:1;border:1px solid #32678b;background:#0c2642;color:#fff;padding:9px 11px;border-radius:11px;font-size:14px}.test-btn{width:44px;border:1px solid #3aa1d1;border-radius:11px;background:#153d61;color:#8eeefe;font-size:20px}.setting-hint{margin:9px 0 0;font-size:11px;color:#a6bfd6;line-height:1.4}.setting-group input[type=range]{width:100%;accent-color:#16adfb}.range-hints{display:flex;justify-content:space-between;color:#91afc6;font-size:11px}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #234361;font-size:14px;gap:8px}.toggle-row>span{display:block}.toggle-row small{display:block;color:#98b6cc;font-size:11px;margin:4px 0 0 26px}.toggle-row input{accent-color:#0a9fff;width:19px;height:19px;flex:none}.privacy-voice-note{font-size:11px;line-height:1.6;color:#9dbbd0;margin-top:12px}.privacy-voice-note a{text-decoration:underline;color:#83edda}.settings-actions{display:flex;gap:8px;margin-top:17px}.secondary-action,.save-action{min-height:45px;border-radius:12px;font-size:14px;font-weight:800;padding:9px 16px}.secondary-action{border:1px solid #32678d;color:#b7d5eb;background:#0f2d49}.save-action{background:#59e4d9;color:#082535;border:0;flex:1}
@media(min-width:720px){.experience{flex-direction:row}.voice-mode .voice-stage{flex:0 0 35%;max-height:none;display:flex;flex-direction:column;align-items:center;justify-content:center}.voice-stage #voice-robot-slot{height:275px}.voice-stage .avatar-scene{height:275px}.voice-stage .avatar-body{height:275px;width:250px}.voice-stage .back-ring{width:300px}.voice-stage .back-ring-b{width:235px}.conversation{min-width:0}.sheet{border-radius:22px;margin:auto}.app-footer{min-height:50px}}
@media(max-width:440px){.topbar{min-height:61px;padding:8px 12px}.logo-box{width:38px;height:38px}.voice-stage{max-height:180px}.voice-stage .avatar-scene{height:144px}.voice-stage .avatar-body{height:142px;width:145px}.voice-stage .back-ring{width:166px}.voice-stage .back-ring-b{width:130px}.messages-scroll{padding:12px 9px}.message-bubble{font-size:13px;padding:10px 12px}.gate-mark{font-size:8px}.gate-robot-slot{height:clamp(205px,34dvh,292px)}.gate-robot-slot .avatar-body{width:min(73vw,262px)}.gate-inner h1{font-size:32px}.gate-btn{min-height:54px}.gate-privacy{font-size:10px}.app-footer{padding:6px 6px calc(6px + var(--safe))}.footer-link{font-size:10px}.answer-panel{max-width:calc(100% - 37px)}.sheet{max-height:90dvh}.sheet-shell{max-height:90dvh}}
@media(max-width:360px){.gate-robot-slot{height:190px}.gate-inner h1{font-size:29px}.gate-btn{min-height:49px;font-size:14px}.gate-inner>p{font-size:12px}.footer-link{font-size:9px}.voice-stage{max-height:154px}.voice-stage .avatar-scene{height:117px}.voice-stage .avatar-body{height:116px;width:118px}.voice-stage .back-ring{width:145px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Revisione contatti: tre azioni realmente leggibili a portata di pollice. */
.app-footer{flex:none;display:grid;grid-template-columns:1.07fr .82fr 1.45fr;gap:7px;min-height:69px;padding:7px 10px calc(7px + var(--safe));background:#07182f;border-top:1px solid #31587c}
.app-footer .footer-link{min-width:0;width:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 7px;min-height:52px;border-radius:13px;border:1px solid #32628d;color:#d7edff;font-size:12px;font-weight:780;line-height:1.18;white-space:normal;text-align:center;background:#112a47;transition:filter .15s ease,transform .15s ease}
.app-footer .footer-link:active{transform:scale(.98)}
.app-footer .footer-contacts{background:linear-gradient(145deg,#0d7c95,#066a89);border-color:#4de7e2;box-shadow:0 0 0 1px #43e5df20,0 0 22px #08d9d324;color:#fff}
.app-footer .footer-call{border-color:#2b8cda;color:#dcf2ff}
.app-footer .footer-card{background:#123851;border-color:#33aebd;color:#9affed;font-size:11px}
.app-footer .footer-symbol{font-size:19px;line-height:1;display:inline-block;flex:none;background:none;border-radius:0;padding:0}
.identity-hint{font-size:12px;line-height:1.5;color:#c7e2ee;margin:7px 0}
.identity-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:11px 0 2px}
.identity-actions button{min-height:43px;white-space:normal;text-align:center;line-height:1.25;padding:9px 7px}
.identity-actions button:first-child{grid-column:1 / -1;background:#146783;border-color:#61dddf;font-weight:750}
@media(max-width:440px){.app-footer{padding:7px 7px calc(7px + var(--safe));gap:6px}.app-footer .footer-link{padding:7px 5px;font-size:11px;min-height:51px}.app-footer .footer-card{font-size:10px}.app-footer .footer-symbol{font-size:18px}}
@media(max-width:360px){.app-footer{grid-template-columns:1fr .83fr 1.42fr}.app-footer .footer-link{font-size:10px;gap:4px}.app-footer .footer-card{font-size:9px}.app-footer .footer-symbol{font-size:16px}}


/* 2026-10-12 · correzione tastiera mobile, chat e avvio a schermo pieno.
   Si usa il visualViewport reale: 100dvh in Chrome Android non garantisce
   che la barra di composizione risalga sopra le tastiere virtuali. */
:root{--era-visible-height:100dvh;--era-visible-top:0px}
html,body{height:100%;width:100%;margin:0;overflow:hidden;overscroll-behavior:none}
.app{
  position:fixed;top:var(--era-visible-top);left:0;right:0;
  width:100%;height:var(--era-visible-height);max-height:var(--era-visible-height);
  min-height:0;overflow:hidden;margin:0 auto;
}
.choice-overlay{
  position:fixed;top:var(--era-visible-top);bottom:auto;
  height:var(--era-visible-height);max-height:var(--era-visible-height);
  overflow:auto;
}
.experience,.conversation,.messages-scroll{min-height:0}
.conversation{overflow:hidden}
.messages-scroll{
  flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;
  scroll-behavior:auto;scroll-padding-bottom:12px;
}
.chat-bottom{flex:0 0 auto;position:relative;z-index:4}
/* Con la tastiera aperta rimangono visibili i messaggi e l'input;
   scompaiono SOLO controlli accessori temporanei. */
body.keyboard-open .app-footer{display:none!important}
body.keyboard-open .question-pills{display:none!important}
body.keyboard-open .chat-bottom{padding:6px 8px calc(6px + var(--safe));}
body.keyboard-open .voice-stage{display:none!important}
body.keyboard-open .topbar{min-height:49px;padding-top:5px;padding-bottom:5px}
body.keyboard-open .logo-box{height:32px;width:32px}
body.keyboard-open .icon-btn{height:34px;width:34px;font-size:18px}
body.keyboard-open .message-bubble{line-height:1.4}
body.keyboard-open .composer{gap:5px}
body.keyboard-open .input-form input{height:43px;min-width:0}
body.keyboard-open .send-btn{width:41px;height:41px}
body.keyboard-open .add-btn{width:35px;height:35px}
@media(max-height:500px){
 body.keyboard-open .topbar{min-height:42px}
 body.keyboard-open .brand-words small{display:none}
 body.keyboard-open .top-actions{gap:5px}
}

/* CTA risposta: apre il pannello Contatti interno (non naviga fuori dalla chat). */
.answer-cta #cta-contact{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:40px;padding:9px 12px;border:1px solid #35b4d0;border-radius:10px;background:#12516b;color:#e1ffff;font:inherit;font-size:12px;font-weight:800;text-align:center;cursor:pointer;}
.answer-cta #cta-contact:focus-visible{outline:2px solid #74ffdc;outline-offset:2px;}

/* Nessun comando microfono dell'assistente: dettatura soltanto dalla tastiera del dispositivo. */
