:root{--blue:#1b4277;--deep:#142e50;--ink:#21364c;--muted:#576b7f;--line:#dce4ed;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f7f9fc;font-size:16px}*{box-sizing:border-box}body{margin:0}button,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--blue)}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #4b82ba;outline-offset:3px}[hidden]{display:none!important}.preview-bar{padding:10px 4vw;background:var(--deep);color:#fff;font-size:.8rem;display:flex;justify-content:space-between;gap:20px}.site-header{max-width:1280px;padding:16px 36px;display:flex;justify-content:space-between;align-items:center;margin:auto;border-bottom:1px solid var(--line)}.brand{width:180px;height:90px;object-fit:contain}.site-header>a:last-child{font-size:.95rem;font-weight:650;text-underline-offset:5px}main{max-width:1100px;margin:50px auto 70px;padding:0 36px}.eyebrow{font-size:.8rem;color:var(--blue);letter-spacing:.07em;font-weight:700}h1{font-size:clamp(2rem,3.5vw,3rem);line-height:1.16;letter-spacing:-.025em;margin:20px 0}.lead{max-width:760px;color:var(--muted);font-size:1.1rem;line-height:1.8}.topics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:36px 0}.topics>a{padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px;text-decoration:none}.topics h2{font-size:1.05rem;margin:0 0 10px}.topics p{font-size:.95rem;line-height:1.6;color:var(--muted);margin:0}.topics>a:hover{border-color:var(--blue)}.trial-note{max-width:720px;padding:22px 0;border-top:1px solid var(--line)}.trial-note h2{font-size:1.1rem}.trial-note p{font-size:.95rem;line-height:1.75;color:var(--muted)}#open-main,#send{background:var(--blue);color:white;border:0;border-radius:7px;padding:11px 15px;font-weight:650}footer{max-width:1208px;padding:24px 36px;margin:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:.85rem;color:var(--muted)}#launcher{position:fixed;right:24px;bottom:24px;display:flex;align-items:center;gap:14px;padding:11px 18px 11px 12px;border:1px solid #c7d7e7;border-radius:12px;background:white;color:var(--blue);box-shadow:0 5px 25px #142e5020;font-weight:700;z-index:999}#launcher img{object-fit:contain}.chat-card{position:fixed;right:24px;bottom:24px;width:440px;max-width:calc(100vw - 32px);height:720px;max-height:calc(100dvh - 36px);display:flex;flex-direction:column;background:white;border:1px solid #cbd9e8;border-radius:15px;box-shadow:0 12px 60px #142e5033;overflow:hidden;z-index:1000}.chat-header{background:var(--blue);color:white;padding:18px 19px;display:flex;gap:14px;align-items:center;flex-shrink:0}.chat-header h2{font-size:1.02rem;margin:0 0 6px}.chat-header p{font-size:.8rem;color:#e2eaf5;margin:0}.quiet{background:transparent;color:inherit;border:1px solid currentColor;border-radius:6px;padding:7px 9px;font-size:.75rem;white-space:nowrap}.chat-header .quiet{margin-left:auto;border-color:#a7bed8}.chat-toolbar{display:flex;justify-content:space-between;gap:12px;padding:11px 18px;border-bottom:1px solid var(--line);align-items:center;font-size:.75rem;color:var(--muted);flex-shrink:0}.chat-toolbar .quiet{border-color:var(--line)}.chat-messages{flex:1;min-height:100px;overflow-y:auto;padding:20px 16px;overscroll-behavior:contain}.message{margin-bottom:20px;max-width:96%}.message-label{font-size:.75rem;font-weight:650;color:var(--muted);margin:0 0 6px}.message-body{background:#f0f4f9;border-radius:0 11px 11px;padding:12px 14px;font-size:.94rem;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}.message-body p{margin:0 0 12px}.message-body p:last-child{margin-bottom:0}.message.user{margin-left:auto}.message.user .message-label{text-align:right}.message.user .message-body{background:var(--blue);color:#fff;border-radius:11px 0 11px 11px}.source-cards{display:grid;gap:7px;margin-top:10px}.source-card{border:1px solid #c9d8e7;border-radius:7px;padding:9px 11px;background:white;font-size:.85rem;text-decoration:none;line-height:1.5}.source-card small{display:block;color:var(--muted);font-size:.7rem;letter-spacing:.02em}.citations{margin-top:12px;font-size:.78rem;line-height:1.6;color:var(--muted)}.citations summary{cursor:pointer;color:var(--blue);font-weight:600}.citations a{display:block;margin:9px 0;overflow-wrap:anywhere}.citation-mark{font-size:.75rem;color:var(--blue);white-space:nowrap}.suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 13px;flex-shrink:0}.suggestions button{background:white;border:1px solid var(--line);border-radius:16px;padding:7px 9px;font-size:.73rem;color:var(--blue)}form{padding:0 16px 10px;flex-shrink:0}.input-row{display:flex;gap:8px;align-items:center;border:1px solid #aebfd1;border-radius:9px;padding:7px}textarea{resize:none;min-width:0;flex:1;border:0;padding:5px;background:white;color:var(--ink);font-size:1rem;line-height:1.5}textarea:focus{outline:0}textarea:focus-visible{outline:2px solid #4b82ba;outline-offset:0;border-radius:3px}#send{padding:10px 13px;font-size:.9rem}button:disabled{opacity:.55;cursor:wait}.input-note{font-size:.72rem;color:var(--muted);line-height:1.5;margin:7px 0 0}.chat-contact{display:flex;justify-content:space-around;gap:12px;padding:14px 16px;border-top:1px solid var(--line);background:#f7f9fc;flex-shrink:0}.chat-contact a{font-size:.82rem;font-weight:650;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:650px){.preview-bar{display:block;font-size:.7rem;line-height:1.6}.preview-bar span{display:block}.site-header{padding:12px 20px}.brand{width:140px;height:70px}main{padding:0 22px;margin:30px auto 40px}h1{font-size:2.1rem}.lead{font-size:1rem}.topics{grid-template-columns:1fr;gap:10px;margin:26px 0}.topics>a{padding:17px}.topics h2{margin-bottom:5px}footer{display:block;padding:20px 22px 100px}footer a{display:block;margin-top:12px}#launcher{right:16px;bottom:16px}.chat-card{right:8px;bottom:8px;max-width:none;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:none;border-radius:12px}.chat-header{padding:16px}.chat-header h2{font-size:1rem}.chat-header p{font-size:.75rem}.chat-messages{padding:16px 12px}.message{max-width:100%}.suggestions{padding:0 12px 10px}form{padding:0 12px 9px}.chat-contact{padding:13px 12px}.chat-toolbar{padding:9px 14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Mascotte approvata: il marchio viene dal PNG ufficiale, separato dall'illustrazione. */
#launcher{padding:0;gap:10px;background:transparent;border:0;border-radius:999px;box-shadow:none;bottom:max(16px,env(safe-area-inset-bottom));right:max(20px,env(safe-area-inset-right))}
.launcher-label{display:block;padding:11px 16px;background:white;border:1px solid #c7d7e7;border-radius:24px;box-shadow:0 3px 16px #142e5020;font-size:.9rem;line-height:1.3}
.mascot{position:relative;display:block;width:96px;height:96px;flex:0 0 96px;filter:drop-shadow(0 3px 5px #142e5020)}
#launcher .mascot-art{display:block;width:100%;height:100%;object-fit:contain}
#launcher .mascot-brand{position:absolute;left:22%;top:46%;width:55%;height:27.5%;object-fit:contain}
#launcher:hover .launcher-label{border-color:var(--blue)}
@media(max-width:650px){#launcher{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));gap:7px}.mascot{width:80px;height:80px;flex-basis:80px}.launcher-label{font-size:.85rem;padding:10px 13px}footer{padding-bottom:120px}}
.contact-next-step{margin-top:12px}.contact-next-step>a{display:block;background:var(--blue);color:#fff;padding:11px 13px;border-radius:8px;text-decoration:none;font-weight:650;font-size:.85rem;line-height:1.5}.contact-next-step>small{display:block;margin-top:6px;color:var(--muted);font-size:.72rem;line-height:1.5}
/* Chat morbida: bordi continui, tinte leggere e contatti dentro le risposte. */
.chat-card{width:460px;height:740px;border:1px solid #e3ebf4;border-radius:30px;background:#fbfcff;box-shadow:0 18px 65px #18385624,0 3px 12px #1838560a}
.chat-header{padding:18px 20px;gap:12px;background:linear-gradient(125deg,#edf3fb,#f7faff);color:var(--deep)}
.chat-header h2{font-size:1rem;line-height:1.35;margin-bottom:4px}.chat-header p{color:#5c738d;font-size:.75rem;line-height:1.5}
.chat-avatar{display:block;position:relative;width:54px;height:54px;flex:0 0 54px}.chat-avatar .mascot-art{display:block;width:100%;height:100%;object-fit:contain}.chat-avatar .mascot-brand{position:absolute;left:22%;top:46%;width:55%;height:27.5%;object-fit:contain}
#close-chat{border:0;border-radius:50%;background:#ffffffc9;color:var(--blue);width:34px;height:34px;padding:0;font-size:1.5rem;line-height:1;flex:0 0 34px;box-shadow:0 2px 7px #1b42770a}
.chat-toolbar{margin:0 20px;padding:10px 0;border-bottom:1px solid #e9eff6;color:#687e94}.chat-toolbar .quiet{border:0;border-radius:18px;background:#eef3f9;padding:7px 11px;color:#4e6781}
.chat-messages{padding:22px 18px 18px;scrollbar-width:thin;scrollbar-color:#d1deed transparent}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-thumb{background:#d1deed;border-radius:10px}
.message{margin-bottom:22px}.message-label{padding:0 5px;margin-bottom:7px;font-size:.72rem;color:#6b7f94}.message-body{padding:14px 16px;border:1px solid #e7eef6;border-radius:22px 22px 22px 7px;background:#f0f5fb;box-shadow:0 2px 7px #18385604;line-height:1.7}
.message.user .message-body{border-color:transparent;border-radius:22px 22px 7px 22px;background:#244e80}.inline-contact{font-weight:650;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#8ca8c8;overflow-wrap:anywhere}.inline-contact:hover{text-decoration-thickness:2px}
.source-cards{gap:8px;margin-top:11px}.source-card{border-color:#e1eaf4;border-radius:17px;padding:11px 13px;background:#fff}.source-card small{color:#75889d}.citations{padding:0 5px;font-size:.74rem}.citations summary{font-weight:500;color:#657f9d}
.suggestions{gap:7px;padding:0 18px 14px}.suggestions button{border:1px solid #e7eef6;border-radius:22px;padding:8px 11px;background:#f5f8fc;color:#3c5f85;line-height:1.4}
#chat-form{padding:0 16px 15px}.input-row{padding:7px 8px 7px 12px;border:1px solid #dce6f2;border-radius:25px;background:white;box-shadow:0 3px 12px #18385607}.input-row:focus-within{border-color:#92afce;box-shadow:0 0 0 3px #eaf1f9}#question{background:transparent;font-size:.95rem;line-height:1.55}#question:focus-visible{outline:none}#send{padding:11px 16px;border-radius:22px;background:#244e80}.input-note{margin:9px 5px 0;font-size:.7rem;color:#73869b}
@media(max-width:650px){.chat-card{right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:26px}.chat-header{padding:16px;gap:10px}.chat-avatar{width:46px;height:46px;flex-basis:46px}.chat-header h2{font-size:.95rem}.chat-header p{font-size:.7rem}.chat-toolbar{margin:0 16px}.chat-messages{padding:18px 12px}.message-body{padding:13px 14px}.suggestions{padding:0 12px 12px;gap:6px}.suggestions button{font-size:.7rem;padding:8px 9px}#chat-form{padding:0 12px 12px}}
.chat-toolbar,.source-card small,.message-label,.input-note{color:#5e7289}
.inline-contact{white-space:nowrap}
