@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-display:swap;font-weight:200 800;src:url(fonts/bricolage.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/plex-400.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/plex-500.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/plex-600.woff2) format('woff2')}
/* Gavi — famiglia HomeVision (nero, bianco, cobalto, Bricolage + Plex), tono da studio legale: carta calda, molta aria, niente urla.
   Regola mobile: una schermata = una decisione. La prossima azione è sempre in basso, a portata di pollice. */
:root{
  --bg:#fafaf8; --white:#fff; --paper:#f3f3f0; --line:#ebebe7; --line2:#d9dad5; --ink:#111312; --text:#2a2d2b; --muted:#5d625e;
  --acc:#2443e6; --acc-d:#1a33b8; --acc-soft:#eef1fe; --warn:#9a5800; --warn-soft:#fcf1df; --ok:#16774a; --ok-soft:#e5f3eb; --bad:#be2d2d; --bad-soft:#fbeaea; --wa:#128c4b;
  --r:14px; --rail:84px; --top:60px; --tab:64px; --sh:0 1px 2px rgba(17,19,18,.04),0 1px 1px rgba(17,19,18,.03); --sh2:0 12px 32px rgba(17,19,18,.10);
  --f:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif; --fd:'Bricolage Grotesque',var(--f);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 var(--f);-webkit-font-smoothing:antialiased}
a{color:var(--acc);text-decoration:none}a:hover{color:var(--acc-d)}
h1,h2,h3{font-family:var(--fd);color:var(--ink);letter-spacing:-.022em;margin:0;line-height:1.12}
h1{font-size:26px;font-weight:700}h2{font-size:20px;font-weight:700}h3{font-size:14px;font-weight:600;font-family:var(--f);letter-spacing:0}
p{margin:0}small{font-size:12.5px}
.muted{color:var(--muted)}.small{font-size:13px}
svg{width:20px;height:20px;flex:none}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.mark{width:30px;height:30px;border-radius:9px;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;font:800 16px var(--fd);position:relative}
.mark::after{content:'';position:absolute;right:-3px;bottom:-3px;width:10px;height:10px;border-radius:50%;background:var(--acc);border:2px solid var(--white)}

/* Struttura */
.rail{position:fixed;inset:0 auto 0 0;width:var(--rail);background:var(--white);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;padding:14px 6px;z-index:20}
.rail .logo{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--ink);font:700 12px var(--fd);padding:2px 0 16px}
.rail nav{display:flex;flex-direction:column;gap:2px;flex:1}
.rail nav a,.rail-out,.rail-detta{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 2px;border-radius:11px;color:var(--muted);font-size:10.5px;letter-spacing:-.01em;font-weight:500;text-align:center;line-height:1.15}
.rail nav a:hover,.rail-out:hover{background:var(--paper);color:var(--ink)}
.rail nav a.on{background:var(--ink);color:#fff}
.rail .count{position:absolute;top:4px;right:9px;background:var(--acc);color:#fff;font-size:10.5px;border-radius:9px;padding:0 5px;min-width:17px;line-height:17px}
.rail-detta{color:var(--acc);background:var(--acc-soft);margin-bottom:6px}.rail-detta:hover{background:#e2e7fd;color:var(--acc-d)}
.shell{margin-left:var(--rail);min-height:100vh}
.topbar{position:sticky;top:0;z-index:10;height:var(--top);display:flex;align-items:center;gap:12px;padding:0 28px;background:rgba(250,250,248,.9);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.top-logo{display:none}
.search{flex:1;max-width:560px;display:flex;align-items:center;gap:8px;background:var(--white);border:1px solid var(--line);border-radius:11px;padding:0 12px;height:40px;color:var(--muted);box-shadow:var(--sh)}
.search:focus-within{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-soft)}
.search input{border:0;background:none;outline:none;font:inherit;width:100%;color:var(--text);height:38px;padding:0;min-height:0;box-shadow:none}
.top-new{margin-left:auto}.top-new .plus{font-size:18px;line-height:1;margin-top:-2px}
.main{padding:24px 28px 48px;max-width:1360px}
.ph{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.ph h1{margin-right:auto;min-width:0;overflow-wrap:anywhere}
.tabbar{display:none}

/* Elementi */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 15px;border-radius:10px;border:1px solid var(--line2);background:var(--white);color:var(--ink);font:500 14px var(--f);cursor:pointer;white-space:nowrap;text-decoration:none;transition:background .15s,border-color .15s}
.btn:hover{border-color:var(--ink);color:var(--ink)}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}.btn.primary:hover{background:#2b2f2d;color:#fff}
.btn.ghost{border-color:transparent;background:transparent;color:var(--muted)}.btn.ghost:hover{background:var(--paper);color:var(--ink)}
.btn.small{height:34px;padding:0 12px;font-size:13px;border-radius:9px}.btn.wide{width:100%}
.btn.wa{background:var(--wa);border-color:var(--wa);color:#fff}
.btn[disabled],.btn.disabled{opacity:.45;pointer-events:none}
.btn svg{width:17px;height:17px}
.icon-btn{border:0;background:none;color:var(--muted);font-size:20px;line-height:1;width:32px;height:32px;border-radius:8px;cursor:pointer}.icon-btn:hover{background:var(--bad-soft);color:var(--bad)}
.badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:20px;background:var(--paper);color:var(--muted);white-space:nowrap}
.badge.acc{background:var(--acc-soft);color:var(--acc)}.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.bad{background:var(--bad-soft);color:var(--bad)}
.count{background:var(--acc);color:#fff;font-size:11.5px;font-weight:600;border-radius:10px;padding:1px 7px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;min-width:0;box-shadow:var(--sh)}
.card.accent{border:1.5px solid var(--acc);padding:17.5px 19.5px}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.eyebrow{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.card-h .eyebrow{margin:0}
.flash{background:var(--acc-soft);color:#14299a;border-radius:11px;padding:11px 14px;margin-bottom:16px;font-size:14px}
.flash.err{background:var(--bad-soft);color:#8c1d1d}.flash.ok{background:var(--ok-soft);color:#0f5a36}
.empty{text-align:center;padding:56px 16px;display:flex;flex-direction:column;align-items:center;gap:10px}
.row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);color:var(--text);min-width:0}
.card .row:first-of-type{border-top:0}
a.row:hover b{color:var(--acc)}
.grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.grow b{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.grow small{color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.row form{margin:0}
.av{width:32px;height:32px;border-radius:50%;background:var(--paper);color:var(--ink);font-size:11.5px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;flex:none}
.av.big{width:44px;height:44px;font-size:14px;background:var(--ink);color:#fff}
.ftag{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--paper);color:var(--muted);border-radius:7px;padding:5px 6px;flex:none;min-width:46px;text-align:center}
.date{font-size:12px;font-weight:600;background:var(--paper);color:var(--ink);border-radius:7px;padding:3px 8px;flex:none}
.date.today{background:var(--warn-soft);color:var(--warn)}.date.late{background:var(--bad-soft);color:var(--bad)}
.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--line2);background:var(--white);border-radius:20px;padding:6px 13px;font-size:13px;color:var(--ink)}
.bad-t{color:var(--bad)!important}.warn-t{color:var(--warn)!important}.ai{color:var(--acc)!important}
.quote{margin:0;border-left:3px solid var(--line2);padding:6px 12px;color:var(--muted);font-size:14px;background:var(--paper);border-radius:0 8px 8px 0}
.ai-box{background:linear-gradient(180deg,#f6f8ff,#fff 70%);border-color:#d9e0fc}
.ai-box .eyebrow{color:var(--acc)}
.ai-box+.ai-box,.nextcard+.ai-box,.ai-box+.tabs{margin-top:14px}

/* Moduli */
label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--ink);min-width:0}
input,select,textarea{font:15px var(--f);color:var(--text);background:var(--white);border:1px solid var(--line2);border-radius:10px;padding:9px 11px;min-height:40px;width:100%;min-width:0}
textarea{resize:vertical;line-height:1.5}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-soft)}
input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--acc);flex:none;margin:0;box-shadow:none}
input[type=file]{padding:7px;font-size:13px}
.check{flex-direction:row;align-items:center;gap:9px;font-weight:400;font-size:14px}
.check.top{align-items:flex-start}.check.top input{margin-top:2px}.check .d{display:block;font-size:12.5px;margin-top:1px}
fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}legend{font:700 17px var(--fd);color:var(--ink);margin-bottom:8px}
.stack{display:flex;flex-direction:column;gap:14px}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.two-s{display:grid;grid-template-columns:1fr 170px;gap:8px}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions form{margin:0}
.inline{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.inline label{flex:1;min-width:160px}
.inline.add{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.inline.add input:not([type=checkbox]):not([type=file]){flex:1;min-width:180px}
.narrow{max-width:760px}
.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filters select,.filters input{width:auto;min-height:36px;padding:6px 10px;font-size:14px}
details>summary{cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}
.pop{position:relative}
.pop[open]>form{position:absolute;right:0;top:38px;z-index:5;background:var(--white);border:1px solid var(--line2);border-radius:12px;padding:10px;box-shadow:var(--sh2);display:flex;gap:6px;width:310px}
.more{margin-top:14px}.more>summary{font-weight:600;color:var(--ink)}.more[open]>summary{margin-bottom:12px}.more .actions{margin-top:12px}

/* Oggi */
.grid-oggi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.grid-oggi .span2{grid-column:1/-1}
.card.first{background:var(--ink);border-color:var(--ink);color:#d9dcda;display:flex;flex-direction:column;align-items:flex-start;gap:8px;box-shadow:var(--sh2)}
.card.first h2{color:#fff;font-size:22px}.card.first .eyebrow{color:#9ba09c}.card.first .muted{color:#b5b9b6}
.card.first .btn.primary{background:#fff;color:var(--ink);border-color:#fff;margin-top:8px}
.punti{margin:0 0 14px;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.kpis.k2{grid-template-columns:1fr 1fr;margin-bottom:12px}
.kpis a{background:var(--paper);border-radius:11px;padding:9px 11px;display:flex;flex-direction:column;color:var(--muted);font-size:12px;line-height:1.2}
.kpis b{font:700 22px var(--fd);color:var(--ink)}
.bar{height:5px;background:var(--line);border-radius:3px;overflow:hidden;margin-top:4px}.bar i{display:block;height:100%;background:var(--acc);border-radius:3px}.bar.big{height:8px;margin:4px 0 6px}

/* Bacheca */
.pills{display:none}
.board{display:grid;grid-template-columns:repeat(4,minmax(240px,1fr));gap:12px;align-items:start;overflow-x:auto;padding-bottom:6px}
.col{background:var(--paper);border-radius:var(--r);padding:10px;min-height:120px;display:flex;flex-direction:column}
.col header{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 10px}
.col header span{font-size:12px;font-weight:600;color:var(--muted)}
.drop{display:flex;flex-direction:column;gap:8px;min-height:60px;flex:1;border-radius:10px}
.drop.over{background:var(--acc-soft);outline:2px dashed var(--acc)}
.col-empty{color:var(--muted);font-size:12.5px;text-align:center;padding:16px 0}
.kcard{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:11px 13px;display:flex;flex-direction:column;gap:4px;color:var(--text);cursor:grab;box-shadow:var(--sh);transition:box-shadow .15s,border-color .15s}
.kcard:hover{border-color:var(--line2);box-shadow:0 6px 18px rgba(17,19,18,.08);color:var(--text)}.kcard.dragging{opacity:.4}
.k-top{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.k-tipo{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-right:auto}
.k-t{font-weight:600;color:var(--ink);font-size:14px;line-height:1.3}.k-c{font-size:13px;color:var(--muted)}
.k-foot{display:flex;align-items:center;gap:6px;margin-top:4px}.k-foot .av{margin-left:auto;width:24px;height:24px;font-size:10px}

/* Scheda pratica */
.phead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-6px 0 14px}
.who{display:flex;align-items:center;gap:11px;color:var(--text)}.who b{color:var(--ink);display:block}.who small{color:var(--muted)}
.phead .colsel{width:auto;font-weight:600;min-height:36px;padding:6px 32px 6px 12px;border-radius:20px;background-color:var(--paper);border-color:transparent}
.phead-act{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.nextcard{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line);border-left:4px solid var(--acc);border-radius:var(--r);padding:14px 18px;box-shadow:var(--sh);margin-bottom:14px}
.nextcard .eyebrow{margin:0 0 2px;color:var(--acc)}.nextcard b{font-size:16px}.nextcard form{margin:0}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:4px 0 16px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs a{padding:10px 14px;color:var(--muted);font-weight:500;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;display:flex;align-items:center;gap:6px}
.tabs a b{font-weight:600;font-size:12px;background:var(--paper);border-radius:8px;padding:0 6px;color:var(--ink)}
.tabs a.on{color:var(--ink);border-color:var(--ink)}
.dot-n{width:7px;height:7px;border-radius:50%;background:var(--acc);display:inline-block}
.panel{display:none}.panel.on{display:block}
.panel>.card+.card{margin-top:14px}
.psteps.big{margin:2px 0 4px}.psteps.big li span{font-size:12.5px}
.fasesel{margin:12px 0 2px}.fasesel select{font-weight:500}
.next{display:grid;grid-template-columns:1fr 160px auto;gap:8px;align-items:end;padding-top:14px;margin-top:12px;border-top:1px solid var(--line)}
.qa{display:flex;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid var(--line)}
.qa select{width:auto;min-height:36px;padding:5px 9px;font-size:13px}
.agg-d>summary.qa{border-bottom:1px solid var(--line)}.agg-d[open]>summary .btn{display:none}
.agg{padding:12px 0;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line)}.agg .actions{justify-content:space-between}
.prop{display:flex;flex-direction:column;gap:12px}
.pi{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--white);border:1px solid var(--line);border-radius:11px;font-weight:400}
.pi.check{flex-direction:row;align-items:center}.pi b{font-weight:600}.pi select{width:auto}
.req,.doc{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.req:first-of-type,.doc:first-of-type{border-top:0}
.req-act{display:flex;gap:4px;align-items:center}.req-act form,.doc form{margin:0}
.doc.new{background:linear-gradient(90deg,var(--acc-soft),transparent 60%);margin:0 -20px;padding:11px 20px}
.file{font-size:12.5px;display:block}
.assign select{width:auto;max-width:230px;min-height:34px;padding:5px 9px;font-size:13px}
.up input[type=file]{flex:1;min-width:200px}
.thread{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.bubble{max-width:78%;background:var(--paper);border-radius:14px;padding:10px 13px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.bubble.out{align-self:flex-end;background:var(--acc-soft)}
.b-h{font-size:12px;color:var(--muted)}.b-h b{color:var(--ink)}.b-t{font-size:14.5px;overflow-wrap:anywhere}
.composer{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);padding-top:12px}.composer .actions{justify-content:flex-end}.composer select{width:auto}
.timeline{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column}
.timeline li{display:grid;grid-template-columns:118px 1fr;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}
.timeline li:first-child{border-top:0}
.t-d{color:var(--muted);font-size:12.5px}.t-x small{display:block;color:var(--muted);margin-top:2px}
.timeline li.pub .t-x{color:var(--ink)}
.voice{display:flex;flex-direction:column;gap:12px}
.rec-on{background:var(--bad)!important;border-color:var(--bad)!important;color:#fff!important}
.vnote{margin-top:10px;display:flex;flex-direction:column;gap:6px}.vnote audio{width:100%;max-width:420px}
.mic-big{align-self:center;width:96px;height:96px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 30px rgba(17,19,18,.25),0 0 0 8px var(--acc-soft);margin:6px 0 2px}
.mic-big svg{width:38px;height:38px}.mic-big.rec-on{animation:pulse 1.4s infinite}
.mic-big[disabled]{opacity:.35}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(190,45,45,.45)}100%{box-shadow:0 0 0 22px rgba(190,45,45,0)}}
.center-t{text-align:center;max-width:440px;align-self:center}

/* Da approvare */
.approve-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.approve{display:flex;flex-direction:column;gap:10px}
.approve .to{font-size:14px}.approve textarea{font-size:14.5px}
.card.accent+.approve-list,.ai-box+.approve-list,.card.accent+.ai-box,.ai-box+.empty{margin-top:14px}

/* Impostazioni */
.tipi{display:flex;flex-direction:column;gap:10px}.tipi details[open]>summary{margin-bottom:12px}
.add-user{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}

/* Pagine semplici */
body.plain{background:var(--paper);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}
.plain-box{background:var(--white);border-radius:18px;padding:30px;width:100%;max-width:410px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--sh2)}
.plain-box.wide-box{max-width:680px}
.login .logo.big{display:flex;align-items:center;gap:10px;font:700 26px var(--fd);color:var(--ink);margin-bottom:4px}
.login .logo.big .dot{width:14px;height:14px;border-radius:50%;background:var(--acc)}
.login{display:flex;flex-direction:column;gap:14px}

/* Pagina del cliente */
body.portal{background:var(--bg);min-height:100vh}
.ptop{background:var(--white);border-bottom:1px solid var(--line);padding:13px 16px}
.ptop .logo{display:flex;align-items:center;gap:10px;font:700 17px var(--fd);color:var(--ink);max-width:880px;margin:0 auto}
.ptop .dot{width:12px;height:12px;border-radius:50%;background:var(--acc);display:inline-block}
.pmain{max-width:880px;margin:0 auto;padding:18px 16px 32px;display:flex;flex-direction:column;gap:14px}
.phero{padding:6px 2px 2px}.phero h1{font-size:30px;margin:2px 0 4px}
.pfase{font-size:14px;margin:0 0 8px;color:var(--muted)}.pfase b{color:var(--ink)}
.psteps{list-style:none;margin:4px 0 0;padding:0;display:flex;gap:4px}
.psteps li{flex:1;display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--muted);min-width:0}
.psteps li::before{content:'';height:6px;border-radius:3px;background:var(--line)}
.psteps li.done::before{background:var(--ink)}.psteps li.now::before{background:var(--acc)}
.psteps li.now{color:var(--ink);font-weight:600}.psteps li.done{color:var(--text)}
.psteps span{overflow-wrap:anywhere;line-height:1.25}
.nextstep{margin-top:14px;background:var(--acc-soft);border-radius:12px;padding:11px 13px;display:flex;flex-direction:column;gap:2px}
.nextstep .eyebrow{margin:0;color:var(--acc)}.nextstep b{color:var(--ink);font-size:15.5px}.nextstep small{color:var(--muted)}
.need{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line)}
.need:first-of-type{border-top:0}
.upl{margin:0}.upl label{cursor:pointer;flex-direction:row}
.other{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.done-msg{font-size:15px;color:var(--ok);font-weight:500;padding:4px 0}
.mandato{background:var(--paper);border-radius:12px;padding:12px;margin-bottom:10px}
.mandato[open]>summary{margin-bottom:10px}.mandato summary b{color:var(--acc)}
.mtext{background:var(--white);border:1px solid var(--line);border-radius:10px;padding:12px;max-height:260px;overflow:auto;font-size:13.5px;margin-bottom:12px}
.ptwo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.portal .bubble{max-width:100%;margin-top:10px}
.pfoot{font-size:12.5px;color:var(--muted);text-align:center;padding:10px 0 0;line-height:1.6}.pfoot b{color:var(--ink);margin-right:6px}
.center{text-align:center;align-items:center}.center form{width:100%}
.otp{font:600 28px var(--fd);letter-spacing:.3em;text-align:center;max-width:240px;margin:0 auto}

/* Telefono e tablet */
@media (max-width:1100px){.approve-list{grid-template-columns:1fr}}
@media (max-width:820px){
  body{font-size:15.5px}
  .rail{display:none}.shell{margin-left:0;padding-bottom:calc(var(--tab) + env(safe-area-inset-bottom))}
  .topbar{padding:0 14px;gap:10px;height:56px}
  .top-logo{display:inline-flex}.top-logo .mark{width:30px;height:30px}
  .search{height:40px}
  .top-new{width:40px;padding:0}.top-new .lbl{display:none}.top-new .plus{font-size:22px;font-weight:400}
  .main{padding:16px 16px 24px}
  h1{font-size:22px}
  .ph{gap:8px;margin-bottom:14px}
  .ph .filters{width:100%;flex-wrap:nowrap}.ph .filters select,.ph .filters input{flex:1;min-width:0}.ph .filters .btn{padding:0 8px}
  .tabbar{display:flex;align-items:stretch;position:fixed;inset:auto 0 0 0;height:calc(var(--tab) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-top:1px solid var(--line);z-index:30}
  .tabbar a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:11px;font-weight:500}
  .tabbar a.on{color:var(--ink)}.tabbar a.on svg{color:var(--acc)}
  .tb-n{position:absolute;top:7px;left:calc(50% + 6px);background:var(--acc);color:#fff;font-size:10px;line-height:16px;min-width:16px;padding:0 4px;border-radius:8px}
  .tb-detta .tb-mic{width:48px;height:48px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;margin-top:-22px;box-shadow:0 6px 18px rgba(17,19,18,.25),0 0 0 4px var(--white)}
  .tb-detta .tb-mic svg{color:#fff!important}
  .grid-oggi,.two,.three,.ptwo{grid-template-columns:1fr}
  .kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.kpis a{padding:7px 8px;font-size:10.5px}.kpis b{font-size:18px}
  .card{padding:16px}.card.accent{padding:15.5px}
  .pills{display:flex;gap:6px;overflow-x:auto;margin:0 -16px 12px;padding:0 16px;scrollbar-width:none}
  .pills::-webkit-scrollbar{display:none}
  .pills button{border:1px solid var(--line2);background:var(--white);border-radius:20px;padding:7px 13px;font:500 13px var(--f);color:var(--muted);white-space:nowrap;cursor:pointer}
  .pills button b{color:var(--ink);margin-left:2px}
  .pills button.on{background:var(--ink);border-color:var(--ink);color:#fff}.pills button.on b{color:#fff}
  .board{display:block;overflow:visible}.col{display:none;background:none;padding:0}.col.on{display:flex}.col header{display:none}
  /* Scheda pratica corta: intestazione compatta, azioni in una riga che scorre, prossima azione fissa in basso */
  .phead{gap:10px;margin:-4px 0 10px}.who small{font-size:12px}
  .phead-act{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px;width:calc(100% + 32px)}
  .phead-act::-webkit-scrollbar{display:none}
  .nextcard{position:fixed;left:10px;right:10px;bottom:calc(var(--tab) + env(safe-area-inset-bottom) + 8px);z-index:25;margin:0;padding:10px 10px 10px 14px;box-shadow:var(--sh2);border-left-width:4px}
  .nextcard b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nextcard small:not(.eyebrow){display:none}
  body.has-next .main{padding-bottom:96px}
  .tabs{margin:0 -16px 14px;padding:0 10px}
  .tabs a{padding:10px 11px}
  .next{grid-template-columns:1fr 1fr}.next .btn{grid-column:1/-1}
  .two-s{grid-template-columns:1fr}
  .qa{flex-wrap:wrap}.qa .grow{flex:1 1 calc(100% - 130px)}.qa select{flex:1 1 60%}
  .card.accent .row{flex-wrap:wrap}.card.accent .row .grow{flex-basis:100%}
  .psteps.big li span{display:none}
  .bubble{max-width:92%}
  .timeline li{grid-template-columns:1fr;gap:2px}
  .doc.new{margin:0 -16px;padding:11px 16px}
  .pop[open]>form{right:auto;left:0;width:min(310px,80vw)}
  .approve textarea{min-height:120px}
  .phero h1{font-size:26px}
  .psteps li span{display:none}
}

/* ===== 0.3: ambiente, accesso, Chiedi a Gavi, Numeri, Pannello, Sicurezza ===== */
.envbar{position:sticky;top:0;z-index:40;background:repeating-linear-gradient(135deg,#fcf1df,#fcf1df 12px,#f9e8c9 12px,#f9e8c9 24px);color:var(--warn);font-size:12px;font-weight:600;letter-spacing:.04em;text-align:center;padding:5px 10px;border-bottom:1px solid #f0d9ae}
body.env-prova .rail{top:27px}body.env-prova .topbar{top:27px}
.top-ask{color:var(--acc);border-color:#d9e0fc;background:var(--acc-soft)}.top-ask:hover,.top-ask.on{border-color:var(--acc);color:var(--acc-d)}
.top-ask svg{width:18px;height:18px}
/* Accesso a schermo diviso */
body.auth{background:var(--white);min-height:100vh}
.auth-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);min-height:100vh}
.auth-form{display:flex;flex-direction:column;justify-content:center;padding:40px 8vw}
.auth-in{width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px;margin:auto 0}
.auth-logo{display:flex;align-items:center;gap:10px;font:700 20px var(--fd);color:var(--ink);margin-bottom:18px}
.auth-in h1{font-size:30px}
.auth-foot{margin-top:24px}
.auth-art{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 80% 10%,#e8ecfd 0,#f3f3f0 55%,#ecebe6 100%);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px}
.art-stack{position:relative;width:min(520px,100%);height:440px}
.art-card{position:absolute;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:0 18px 40px rgba(17,19,18,.10);display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.art-card small{font-size:10px;font-weight:600;letter-spacing:.08em;color:var(--acc)}.art-card b{color:var(--ink);font-size:15px}
.art-a{left:0;top:10px;width:300px;border-left:4px solid var(--acc)}.art-a i{position:absolute;right:14px;top:22px;font-style:normal;background:var(--ink);color:#fff;border-radius:8px;padding:5px 10px;font-size:12px}
.art-b{left:30px;top:150px;width:290px;background:linear-gradient(180deg,#f6f8ff,#fff)}.art-b p{margin:2px 0 4px;color:var(--ink);font-style:italic}.art-b ul{margin:0;padding-left:16px}
.art-c{left:40px;bottom:0;width:230px}.art-c b{font:700 18px var(--fd)}
.art-phone{position:absolute;right:0;top:40px;width:200px;height:380px;background:#fff;border:8px solid var(--ink);border-radius:30px;padding:28px 14px 14px;box-shadow:0 24px 60px rgba(17,19,18,.22);display:flex;flex-direction:column;gap:8px;font-size:11.5px;color:var(--muted)}
.ap-top{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:60px;height:6px;border-radius:3px;background:var(--line)}
.art-phone b{color:var(--ink);font-size:12.5px}.ap-bar{display:flex;gap:3px}.ap-bar i{flex:1;height:5px;border-radius:3px;background:var(--ink)}.ap-bar i.now{background:var(--acc)}.ap-bar i.now~i{background:var(--line)}
.ap-need{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:8px;color:var(--ink)}.ap-need em{font-style:normal;background:var(--ink);color:#fff;border-radius:6px;padding:2px 7px;font-size:10.5px}.ap-need.ok em{background:var(--ok-soft);color:var(--ok)}
.art-claim{margin-top:28px;font:600 18px/1.35 var(--fd);color:var(--ink);text-align:center;letter-spacing:-.01em}
/* Chiedi a Gavi */
.chat{display:flex;flex-direction:column;gap:12px;max-width:900px;min-height:calc(100vh - 220px)}
.chat-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:28px 10px 10px;margin-bottom:auto}
.chat-ico{width:52px;height:52px;border-radius:16px;background:var(--acc-soft);color:var(--acc);display:flex;align-items:center;justify-content:center}.chat-ico svg{width:26px;height:26px}
.chat-empty .chips{justify-content:center;margin-top:6px}.inline-f{margin:0}.chip[disabled]{opacity:.5}
button.chip{cursor:pointer;font:inherit;font-size:13px}button.chip:hover{border-color:var(--acc);color:var(--acc)}
.bubble.q{align-self:flex-end;background:var(--ink);color:#fff;font-size:14.5px}
.bubble.a{max-width:88%}.bubble.a .b-t p+p,.bubble.a .b-t p+ul,.bubble.a .b-t ul+p{margin-top:6px}.bubble.a ul{margin:4px 0 0;padding-left:18px}.bubble.a.err{background:var(--warn-soft)}
.cite{display:inline-block;background:var(--white);border:1px solid #d9e0fc;border-radius:7px;padding:0 6px;font-size:13px;font-weight:500;margin:0 1px}
.ask{display:flex;gap:8px;align-items:flex-end;margin-top:auto;position:sticky;bottom:12px;background:var(--white);padding-top:6px}
.ask textarea{min-height:48px;resize:none}
/* Numeri */
.hero-num .big-num{font:700 64px/1 var(--fd);color:#fff;letter-spacing:-.03em}.hero-num .big-num span{font-size:22px;color:#b5b9b6}
.num{font:700 16px var(--fd);color:var(--ink)}
.hbar{display:grid;grid-template-columns:120px 1fr 32px;gap:10px;align-items:center;padding:6px 0;font-size:13.5px}.hbar b{text-align:right;color:var(--ink)}.hbar .bar{margin:0}
.note-num{margin-top:14px;max-width:760px}
/* Pannello */
.pan-k{margin-bottom:14px}
.studio-row{margin-top:10px}.studio-row>summary{display:flex;align-items:center;gap:10px}.studio-row[open]>summary{margin-bottom:12px}
.grow-l{flex:2!important}
.nuovo-studio{margin-top:14px}
.danger{border-color:#f0caca}
.steps-card{margin-top:14px}
.howto{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:14px}
code{font:13px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--paper);border-radius:6px;padding:1px 6px}
/* Sicurezza */
.qr-wrap{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
#qr{width:168px;height:168px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px}#qr svg{width:100%;height:100%}
.secret{display:block;font-size:15px;letter-spacing:.06em;margin-top:4px;word-break:break-all}
.codes{background:var(--warn-soft);border-radius:12px;padding:12px}.code-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:8px}.code-grid code{background:#fff;text-align:center;padding:5px}
.copyline{display:flex;gap:8px}.copyline input{font-size:13px;color:var(--muted)}
.export-box{margin-top:14px}
.tbl{overflow-x:auto}.tbl table{width:100%;border-collapse:collapse;font-size:14px}.tbl th{text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:6px 8px;border-bottom:1px solid var(--line)}.tbl td{padding:8px;border-bottom:1px solid var(--line)}
@media (max-width:980px){.auth-grid{grid-template-columns:1fr}.auth-art{display:none}.auth-form{padding:32px 20px}}
@media (max-width:820px){
  body.env-prova .topbar{top:24px}.envbar{font-size:11px;padding:4px 8px}
  .top-ask{width:40px;padding:0}.top-ask .lbl{display:none}
  .hero-num .big-num{font-size:52px}
  .chat{min-height:calc(100vh - 230px);padding:12px}
  .ask{bottom:calc(var(--tab) + env(safe-area-inset-bottom) + 6px)}
  .bubble.a{max-width:100%}
  .hbar{grid-template-columns:100px 1fr 28px}
  .pan-k{grid-template-columns:repeat(2,1fr)}
  .studio-row>summary{flex-wrap:wrap}
  .code-grid{grid-template-columns:1fr 1fr}
}
.val-card{display:flex;align-items:center;gap:12px;color:var(--text)}.val-card:hover{border-color:var(--line2);color:var(--text)}.val-card .eyebrow{margin:0 0 2px;color:var(--acc)}.val-card b{font-size:16px}
.art-a{padding-right:100px}
.more-min{margin-top:10px}.more-min summary{color:var(--acc);font-weight:500}
.min-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;align-items:end}.min-form label{font-size:12px;font-weight:500}.min-form .btn{grid-column:1/-1;justify-self:start}
@media (max-width:820px){.ask{position:static}.chat{min-height:0}.chat-empty{margin-bottom:6px}.min-form{grid-template-columns:1fr}}

/* ===== 0.4: movimento, primo avvio, accessibilità ===== */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(root) { animation-name: vtOut; } ::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-4px); } } @keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
.enter { animation: fadeUp .38s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 32ms); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; font: 600 11px var(--f); color: var(--muted); background: var(--white); }
.kbd-k { margin-left: auto; cursor: pointer; flex: none; }
/* Pulsanti vivi */
.btn { transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.primary:hover { box-shadow: 0 4px 14px rgba(17,19,18,.18); }
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid currentColor; border-color: var(--muted) transparent var(--muted) transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.primary.is-loading::after { border-color: #fff transparent #fff transparent; }
.card, .kcard, .val-card, .row { transition: box-shadow .18s, border-color .18s, transform .18s, background .15s; }
a.card:hover, .val-card:hover, .kcard:hover { transform: translateY(-1px); }
a.row { border-radius: 8px; } a.row:hover { background: var(--paper); box-shadow: -8px 0 0 var(--paper), 8px 0 0 var(--paper); }
.rail nav a, .rail-out, .rail-detta, .tabbar a { transition: background .15s, color .15s; }
button.rail-out { border: 0; background: none; font: inherit; font-size: 10.5px; cursor: pointer; width: 100%; }
/* Avvisi a comparsa */
.toasts { position: fixed; top: 76px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
body.env-prova .toasts { top: 100px; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 12px; box-shadow: var(--sh2); animation: pop .26s cubic-bezier(.2,.8,.2,1); font-size: 14px; }
.toast p { flex: 1; margin: 1px 0 0; }
.toast-i { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.toast.err { background: #fff; color: var(--text); border: 1px solid #f0caca; } .toast.err .toast-i { background: var(--bad); color: #fff; }
.toast-x { border: 0; background: none; color: inherit; opacity: .6; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; } .toast-x:hover { opacity: 1; }
.toast.out, .tip.out, .checklist.out { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
/* Schede con indicatore */
.tabs { position: relative; } .tabs a.on { border-color: transparent; }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1); }
.panel.on { animation: fadeUp .26s cubic-bezier(.2,.8,.2,1); }
details[open] > :not(summary) { animation: fadeUp .22s cubic-bezier(.2,.8,.2,1); }
.bar i { transform-origin: left; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
/* Approva: la card scivola via */
.approve.leaving { overflow: hidden; animation: leave .23s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(28px); height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; } }
/* Bacheca */
.kcard.dragging { opacity: .5; transform: rotate(1.5deg) scale(.98); box-shadow: var(--sh2); }
.drop.over { transition: background .15s; }
/* Chat: puntini mentre Gavi scrive */
.bubble.typing { flex-direction: row; gap: 5px; padding: 14px 16px; width: auto; align-self: flex-start; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
.bubble.a { animation: fadeUp .3s cubic-bezier(.2,.8,.2,1); }
/* Finestre: palette, aiuto, benvenuto */
.dlg-back { position: fixed; inset: 0; z-index: 80; background: rgba(17,19,18,.42); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; opacity: 0; transition: opacity .18s; }
.dlg-back.show { opacity: 1; }
.dlg-back[hidden] { display: none; }
.dlg { background: var(--white); border-radius: 18px; box-shadow: 0 30px 80px rgba(17,19,18,.3); width: min(560px, 100%); max-height: 76vh; overflow: auto; transform: translateY(8px) scale(.985); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.dlg-back.show .dlg { transform: none; }
.palette { padding: 0; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { border: 0; box-shadow: none !important; padding: 4px 0; font-size: 17px; min-height: 0; }
#pal-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
#pal-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
#pal-list li.on { background: var(--acc-soft); } #pal-list li.on b { color: var(--acc-d); }
#pal-list .pal-empty { color: var(--muted); cursor: default; }
.pi-i { width: 30px; height: 30px; border-radius: 8px; background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 14px; flex: none; }
.pi-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pal-foot { margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.help { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.help-act { display: flex; gap: 8px; flex-wrap: wrap; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; } .keys dt { display: flex; gap: 3px; align-items: center; white-space: nowrap; color: var(--muted); font-size: 12px; } .keys dd { margin: 0; }
.welcome { padding: 0; overflow: hidden; width: min(520px, 100%); }
.w-slide { padding: 0 28px 8px; text-align: center; animation: fadeUp .3s cubic-bezier(.2,.8,.2,1); }
.w-slide h2 { font-size: 24px; margin: 18px 0 8px; } .w-slide p { color: var(--muted); font-size: 15px; }
.w-art { height: 170px; margin: 0 -28px; background: radial-gradient(120% 100% at 70% 0, #e8ecfd, #f3f3f0 70%); position: relative; overflow: hidden; }
.w-art i { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(17,19,18,.12); animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.w-art i:nth-child(2) { animation-delay: .08s; } .w-art i:nth-child(3) { animation-delay: .16s; }
.w1 i:nth-child(1) { left: 12%; top: 34px; width: 46%; height: 52px; border-left: 4px solid var(--acc); }
.w1 i:nth-child(2) { left: 22%; top: 98px; width: 40%; height: 44px; }
.w1 i:nth-child(3) { right: 12%; top: 26px; width: 26%; height: 120px; border: 6px solid var(--ink); border-radius: 18px; }
.w2 i:nth-child(1) { left: 50%; top: 18px; width: 120px; height: 150px; margin-left: -60px; border: 7px solid var(--ink); border-radius: 22px; }
.w2 i:nth-child(2) { left: 50%; top: 60px; width: 84px; height: 6px; margin-left: -42px; border: 0; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 50%, var(--acc) 50% 75%, var(--line) 75%); box-shadow: none; }
.w2 i:nth-child(3) { left: 50%; top: 86px; width: 84px; height: 26px; margin-left: -42px; border-radius: 8px; background: var(--ok-soft); border-color: transparent; }
.w3 i:nth-child(1) { left: 14%; top: 30px; width: 44%; height: 110px; background: linear-gradient(180deg, #f6f8ff, #fff); }
.w3 i:nth-child(2) { right: 14%; top: 46px; width: 26%; height: 40px; background: var(--ink); border-color: var(--ink); }
.w3 i:nth-child(3) { right: 18%; top: 100px; width: 20%; height: 32px; }
.w-foot { display: flex; align-items: center; gap: 8px; padding: 16px 20px 20px; }
.w-dots { display: flex; gap: 6px; margin-right: auto; } .w-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); transition: background .25s; } .w-dots i.on { background: var(--ink); }
/* Giro guidato */
.tour-block { position: fixed; inset: 0; z-index: 89; }
.tour-hole { position: fixed; z-index: 90; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(17,19,18,.55), 0 0 0 3px var(--acc); transition: all .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour-tip { position: fixed; z-index: 91; background: var(--white); border-radius: 16px; padding: 16px 18px; box-shadow: 0 24px 60px rgba(17,19,18,.3); display: flex; flex-direction: column; gap: 6px; transition: left .3s cubic-bezier(.2,.8,.2,1), top .3s cubic-bezier(.2,.8,.2,1); animation: fadeIn .2s; }
.tour-tip h3 { font: 700 18px var(--fd); letter-spacing: -.02em; } .tour-tip p { color: var(--muted); font-size: 14px; } .tour-tip .eyebrow { margin: 0; color: var(--acc); }
.tour-act { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; } .tour-act .ghost { margin-right: auto; }
.tour-dots { display: flex; gap: 4px; justify-content: center; } .tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); } .tour-dots i.on { background: var(--ink); }
/* Suggerimenti e Primi passi */
.tip { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, var(--acc-soft), #fff); border: 1px solid #d9e0fc; border-radius: var(--r); padding: 10px 12px 10px 14px; margin-bottom: 14px; font-size: 14px; }
.tip p { flex: 1; margin: 0; } .tip-i { color: var(--acc); display: flex; } .tip-x { border: 0; background: var(--white); border-radius: 8px; padding: 6px 10px; font: 500 13px var(--f); color: var(--acc-d); cursor: pointer; white-space: nowrap; } .tip-x:hover { background: #fff; box-shadow: 0 0 0 1px #d9e0fc; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.checklist { margin-bottom: 14px; }
.pp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; } .pp-head h2 { font-size: 18px; }
.ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--acc) calc(var(--p) * 1%), var(--line) 0); display: flex; align-items: center; justify-content: center; position: relative; flex: none; animation: ringIn 1s cubic-bezier(.2,.8,.2,1); }
@keyframes ringIn { from { --p: 0; } }
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--white); } .ring b { position: relative; font: 700 13px var(--fd); color: var(--ink); }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pp-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pp-c { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; position: relative; transition: all .2s; }
.pp-list li.ok .pp-c { background: var(--ok); border-color: var(--ok); } .pp-list li.ok .pp-c::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pp-list li.ok b { color: var(--muted); text-decoration: line-through; font-weight: 500; } .pp-list li.ok small { display: none; }
/* Accessibilità: niente movimento per chi lo chiede */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
@media (max-width: 820px) {
  .toasts { top: auto; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 12px); right: 12px; left: 12px; width: auto; }
  body.has-next .toasts { bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 84px); }
  .kbd-k { display: none; }
  .btn.small { height: 40px; } .icon-btn { width: 40px; height: 40px; } .tip-x { padding: 9px 12px; }
  .pp-list { grid-template-columns: 1fr; } .pp-head .btn { padding: 0 8px; }
  .dlg-back { padding: 8vh 10px 10px; align-items: flex-start; } .dlg { max-height: 84vh; }
  .help-act .btn { flex: 1; }
  .tip { align-items: flex-start; flex-wrap: wrap; } .tip p { flex-basis: calc(100% - 40px); }
}
.help-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-6px 0 14px}.help-row .muted{margin-right:4px}

.col-t{font:600 14px var(--f);letter-spacing:0;color:var(--ink)}
.pp-toggle{display:none}
@media (max-width:820px){
  .checklist:not(.all) .pp-list li.ok,.checklist:not(.all) .pp-list li.pp-more{display:none}
  .pp-list small{display:none}.checklist.all .pp-list small{display:block}
  .pp-toggle{display:block;width:100%;margin-top:8px;border:0;background:var(--paper);border-radius:10px;padding:11px;font:500 14px var(--f);color:var(--ink);cursor:pointer}
  .pp-head small{display:none}
}
.vis-box{margin-top:14px}.vis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin-bottom:8px}
.vis-def{border-top:1px solid var(--line);padding-top:12px}
@media (max-width:820px){.vis-grid{grid-template-columns:1fr}}
.art-claim span{display:block;font:500 15px var(--f);color:var(--muted);margin-top:6px}
