@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
.page,.topbar,.hero{width:100%;box-sizing:border-box}
:root{--sky-50:#f5fbfe;--sky-100:#e5f5fb;--sky-200:#cbeaf5;--sky-300:#9fd7e9;--sky-500:#39a8cb;--blue-700:#176b8b;--navy:#173b50;--ink:#1b3b4d;--muted:#647d8a;--white:#fff;background:var(--sky-50);color:var(--ink);font-family:'DM Sans',sans-serif}.page{overflow:auto;background:linear-gradient(180deg,#fff 0,#f4fbfe 75%)}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1120px)/2));background:#ffffffee;border-bottom:1px solid var(--sky-200);box-sizing:border-box;backdrop-filter:blur(10px)}.logo-link{height:64px;display:flex;align-items:center}.logo-link img{width:230px;max-height:64px;object-fit:contain;object-position:left center}.topbar nav{display:flex;align-items:center;gap:8px}.topbar nav a{display:flex;align-items:center;gap:7px;color:var(--ink);text-decoration:none;font-weight:700;padding:10px 14px;border-radius:999px}.topbar nav a:hover{background:var(--sky-100);color:var(--blue-700)}.topbar nav svg{width:17px}.hero{padding:68px max(24px,calc((100vw - 900px)/2)) 42px;background:radial-gradient(circle at 85% 0,#dff6ff 0,transparent 35%),linear-gradient(145deg,#effaff,#ccecf7);border-bottom:1px solid var(--sky-200);color:var(--ink)}.hero-copy{text-align:center;max-width:720px;margin:0 auto}.kicker{display:inline-flex;padding:6px 12px;border-radius:999px;background:#ffffffb8;border:1px solid #abdceb;color:var(--blue-700);font-size:12px;font-weight:800;letter-spacing:.14em}.hero h1{font:800 clamp(37px,5.4vw,58px)/1.06 Manrope;margin:17px 0 12px;color:var(--navy);letter-spacing:-.035em}.hero-copy p{font-size:19px;color:#527585;margin:0 0 32px}.search-box{background:#fff;padding:8px;border:1px solid #b9dfec;border-radius:17px;box-shadow:0 18px 45px #3484a026;align-items:center}.search-box vaadin-text-field{--vaadin-input-field-background:transparent;--vaadin-input-field-border-width:0;width:100%}.search-box vaadin-button{height:50px;border-radius:11px;background:var(--blue-700);color:#fff;font-weight:700}.suggestions{justify-content:center;flex-wrap:wrap;margin-top:16px;gap:3px}.suggestions vaadin-button{color:#3f7185;border-radius:999px;font-size:13px}.suggestions vaadin-button:hover{background:#fff}.hero>.horizontal-layout:last-child{width:100%;justify-content:space-between;align-items:end;margin-top:38px}.stats{gap:34px}.stats div{display:flex;flex-direction:column}.stat-number{font:800 25px Manrope;color:var(--navy)}.stats div>span:last-child{font-size:11px;color:#668695;text-transform:uppercase;letter-spacing:.08em}.mode{display:inline-flex;background:#ffffffa3;border:1px solid #aedbe9;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:700;color:#467586}.mode:before{content:'●';color:#67b6cd;margin-right:7px}.mode.ai:before{color:#21a881}.content{width:min(900px,calc(100% - 48px));margin:27px auto 0;padding:0}.answer-card{background:#fff;border:1px solid var(--sky-200);border-left:5px solid var(--sky-500);border-radius:14px;padding:22px 24px;box-shadow:0 8px 26px #26688112;white-space:pre-line}.answer-card p{margin:8px 0 0;line-height:1.7}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:var(--blue-700)}.content h2{font:800 23px Manrope;margin:8px 0 14px;color:var(--navy)}.hit{background:#fff;border:1px solid #d2eaf2;border-radius:13px;margin-bottom:11px;box-shadow:0 5px 18px #245f7610;overflow:hidden}.hit::part(summary){padding:17px}.hit p{margin:0;padding:0 22px 12px 66px;line-height:1.7;color:#466474;white-space:pre-line}.ref{background:#dff3fa;color:var(--blue-700);min-width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-weight:800}.hit-labels{display:flex;flex-direction:column;gap:4px}.hit-title{font:700 15px Manrope;color:var(--navy)}.hit-labels span:last-child{font-size:13px;color:var(--muted)}.source-link{display:inline-flex;align-items:center;gap:6px;margin:0 22px 20px 66px;color:var(--blue-700);font-weight:700;text-decoration:none;font-size:13px}.source-link svg{width:15px}.page footer{width:min(900px,calc(100% - 48px));margin:52px auto 0;padding:24px 0 30px;border-top:1px solid var(--sky-200);display:flex;justify-content:space-between;color:var(--muted);font-size:13px}.page footer span:first-child{font-weight:800;color:var(--navy)}
@media(max-width:650px){.topbar{height:76px}.logo-link img{width:178px}.topbar nav a:first-child{display:none}.topbar nav a{font-size:0;padding:10px}.topbar nav a svg{width:20px;height:20px}.hero{padding-top:44px}.hero h1{font-size:39px}.hero-copy p{font-size:16px}.search-box{flex-direction:column;padding:8px}.search-box vaadin-button{width:100%}.suggestions{display:none}.hero>.horizontal-layout:last-child{flex-direction:column;align-items:flex-start;gap:20px}.stats{width:100%;justify-content:space-between;gap:10px}.hit p{padding-left:22px}.source-link{margin-left:22px}.page footer{flex-direction:column;gap:6px}}

/* Manuale editoriale: indice a sinistra, contenuti e risultati illustrati a destra. */
.manual-shell{width:min(1180px,calc(100% - 48px));margin:38px auto 0;display:grid;grid-template-columns:300px minmax(0,1fr);gap:54px;align-items:start}.manual-shell aside{position:sticky;top:20px;padding:25px 20px;background:#eaf7fc;border:1px solid #c7e7f2;border-radius:20px}.manual-shell aside>span,.overview-card>span{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--blue-700)}.manual-shell aside h2,.overview-card h2{font:800 25px Manrope;color:var(--navy);margin:7px 0 8px}.manual-shell aside>p{color:var(--muted);line-height:1.55;margin:0 0 17px}.chapter-link{width:100%;height:auto;min-height:70px;margin:4px 0;padding:10px!important;border-radius:13px;display:flex;align-items:flex-start;justify-content:flex-start;text-align:left;white-space:normal;color:var(--ink)}.chapter-link:hover{background:#fff;box-shadow:0 5px 18px #245f7614}.chapter-link>span{flex:0 0 auto}.chapter-link>div{min-width:0;display:flex;flex-direction:column;gap:3px}.chapter-number{width:31px;height:31px;display:grid;place-items:center;background:#fff;border:1px solid #b9dfec;border-radius:9px;color:var(--blue-700);font-weight:800}.chapter-title{font:700 14px Manrope;color:var(--navy)}.chapter-link p{font-size:12px;line-height:1.35;color:#6b8490;margin:0}.manual-work{min-width:0;padding-left:8px}.overview-card{padding:27px 29px;margin-bottom:24px;border:1px solid var(--sky-200);border-radius:18px;background:linear-gradient(135deg,#fff,#effaff)}.overview-card p{margin:0;color:#557583;line-height:1.7}.manual-work .answer{margin-bottom:24px}.manual-work h2{font:800 24px Manrope;color:var(--navy)}.result-card{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:225px;margin-bottom:18px;background:#fff;border:1px solid #cee8f1;border-radius:17px;overflow:hidden;box-shadow:0 8px 26px #26688112}.page-preview{display:block;width:220px;height:100%;min-height:225px;object-fit:cover;object-position:top center;background:#dceef5;border-right:1px solid #cee8f1}.result-body{min-width:0;padding:22px 24px;display:flex;flex-direction:column;align-items:flex-start}.result-head{display:flex;align-items:flex-start;gap:12px}.result-body p{color:#496775;line-height:1.68;white-space:pre-line;margin:13px 0 17px}.result-body .source-link{margin:auto 0 0}.page footer{width:min(1180px,calc(100% - 48px))}
@media(max-width:900px){.manual-shell{grid-template-columns:1fr;gap:25px}.manual-shell aside{position:static}.manual-work{padding-left:0}.chapter-link{min-height:58px}.chapter-link p{display:none}}
@media(max-width:600px){.manual-shell{width:min(100% - 28px,1180px)}.result-card{grid-template-columns:1fr}.page-preview{width:100%;height:210px;min-height:210px;border-right:0;border-bottom:1px solid #cee8f1}.result-body{padding:19px}.overview-card{padding:22px}.manual-shell aside{padding:19px}}
.result-card{min-height:260px}.page-preview{height:260px;min-height:260px}
@media(max-width:600px){.page-preview{height:210px;min-height:210px}}
.topbar{height:112px}.logo-link{height:92px}.logo-link img{width:320px;max-height:92px}.procedure-label{display:inline-block;margin-top:18px;font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--blue-700)}
@media(max-width:650px){.topbar{height:86px}.logo-link{height:68px}.logo-link img{width:215px;max-height:68px}}
.topbar{height:140px}.logo-link{height:125px}.logo-link img{width:340px;max-height:none}.topbar nav a{font-size:16px}
@media(max-width:650px){.topbar{height:94px}.logo-link{height:78px}.logo-link img{width:220px;max-height:none}.topbar nav a{font-size:0}}
.page-preview{object-fit:contain;cursor:zoom-in;padding:8px;box-sizing:border-box}.clickable-labels{cursor:pointer;padding:3px 7px;margin:-3px -7px;border-radius:8px}.clickable-labels:hover{background:#e9f7fc}.open-procedure{margin-top:auto!important;background:#e7f6fb!important;color:var(--blue-700)!important;font-weight:800}.procedure-dialog-layout{display:grid;grid-template-columns:minmax(320px,46%) minmax(0,1fr);gap:28px;height:100%;min-height:0}.procedure-full-image{width:100%;height:100%;max-height:72vh;object-fit:contain;object-position:top center;background:#eef7fa;border:1px solid #cbe5ee;border-radius:14px}.procedure-full-text{overflow:auto;padding:4px 16px 24px 0}.procedure-full-text>span{font-size:11px;font-weight:800;letter-spacing:.13em;color:var(--blue-700)}.procedure-full-text h2{font:800 25px Manrope;color:var(--navy);margin:7px 0 18px}.formatted-procedure p{font-size:16px;line-height:1.75;color:#405f6d;margin:0 0 16px}.formatted-procedure .procedure-step{padding:12px 15px;background:#eff9fc;border-left:4px solid var(--sky-500);border-radius:7px;color:#294f61}.procedure-dialog::part(content){overflow:hidden}@media(max-width:760px){.procedure-dialog-layout{grid-template-columns:1fr;overflow:auto}.procedure-full-image{height:300px}.procedure-full-text{overflow:visible;padding-right:0}.formatted-procedure p{font-size:15px}}
.topbar{height:148px;min-height:148px;flex:0 0 148px;overflow:hidden}.logo-link{height:122px}.logo-link img{width:320px;max-height:122px;object-fit:contain}.hero{flex-shrink:0}@media(max-width:650px){.topbar{height:100px;min-height:100px;flex-basis:100px}.logo-link{height:82px}.logo-link img{width:220px;max-height:82px}}
.formatted-procedure h3{font:800 17px Manrope;color:var(--navy);margin:26px 0 10px;padding-bottom:7px;border-bottom:1px solid #d8edf4}.formatted-procedure h3:first-child{margin-top:0}.formatted-procedure .procedure-step{position:relative;padding:12px 15px 12px 42px}.formatted-procedure .procedure-step:before{content:'✓';position:absolute;left:15px;top:12px;width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--blue-700);font-weight:900}.formatted-procedure .procedure-path{padding:12px 15px;background:#f6f8fa;border:1px solid #dbe7eb;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;color:#31596b}
.curated-card{border-color:#acd9c9;box-shadow:0 8px 26px #28785a12}.curated-card .procedure-label{color:#24785c}.editorial-procedure .editorial-item{position:relative;margin:7px 0;padding-left:24px}.editorial-procedure .editorial-item:before{content:'•';position:absolute;left:7px;color:var(--sky-500);font-weight:900}.editorial-note{margin:18px 0;padding:15px 17px;background:#fff8e7;border-left:4px solid #e8ad36;border-radius:8px}.editorial-note p{margin:0;color:#655229}.editorial-procedure .procedure-step{counter-increment:editorial-step}.editorial-procedure{counter-reset:editorial-step}.editorial-procedure .procedure-step:before{content:counter(editorial-step)}
.chapter-link.locked{border:1px dashed #d7b468;background:#fff9eb}.chapter-link.locked:hover{background:#fff4d6}.chapter-link.locked .chapter-number{border-color:#e1bd6b;color:#936716}.locked-badge{display:inline-flex;align-items:center;gap:5px;width:max-content;margin-top:4px;padding:4px 7px;border-radius:999px;background:#f9e8ba;color:#7d5a14;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.locked-badge svg{width:12px;height:12px}.locked-access-card{border-left-color:#d5a43c;background:linear-gradient(135deg,#fff,#fff9e9)}.locked-access-card h2{margin:10px 0 8px}.locked-access-card vaadin-button{margin-top:18px}.locked-access-badge{display:inline-flex;align-items:center;gap:7px;color:#8a6214;font-size:11px;font-weight:800;letter-spacing:.12em}.locked-access-badge svg{width:15px;height:15px}
