@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');
:root{
  color-scheme:light;
  --bg:#EFEDE8;
  --brand:#003b5c; --brand-soft:#E4ECF1;
  --surface:#FFFFFF; --surface2:#F4F6F8; --ink:#003b5c; --muted:#566570; --line:#DAE0E5;
  --chipbg:#FFFFFF; --chipon:#003b5c; --chipon-ink:#FFFFFF;
  --brass:#8A6B2C; --brass-soft:#F1E9D6; --dot:#1257B8; --ok:#1E6B43;
  --glass:rgba(255,255,255,.74); --glass-strong:rgba(255,255,255,.92);
  --shadow:0 1px 2px rgba(0,40,60,.08),0 8px 24px rgba(0,40,60,.12);
  --shadow-lg:0 18px 50px rgba(0,40,60,.22);
  --markstroke:#FFFFFF;
}
html[data-theme="dark"]{
  /* dice al browser che siamo in scuro: cosi' il menu a tendina che apre il
     sistema, le barre di scorrimento e i campi nativi seguono il tema */
  color-scheme:dark;
  --bg:#07171F;
  --brand:#8FC5E4; --brand-soft:#123243;
  --surface:#10222C; --surface2:#18303B; --ink:#EAF3F8; --muted:#9FB6C2; --line:#2C4A58;
  --chipbg:#10222C; --chipon:#EAF3F8; --chipon-ink:#062A3D;
  --brass:#E2C57E; --brass-soft:#2E2716; --dot:#6FB4FF; --ok:#7FD3A2;
  --glass:rgba(12,30,40,.66); --glass-strong:rgba(10,26,34,.88);
  --shadow:0 1px 2px rgba(0,0,0,.45),0 8px 24px rgba(0,0,0,.55);
  --shadow-lg:0 22px 60px rgba(0,0,0,.6);
  --markstroke:#10222C;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* scrollbar non visibili: lo scroll resta attivo, è l'above-the-fold a suggerire la continuazione */
*{scrollbar-width:none;-ms-overflow-style:none}
*::-webkit-scrollbar{width:0;height:0;display:none}
html,body{height:100%;overflow:hidden}
body{font-family:'Inter','Work Sans',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--ink);font-size:15px}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
input,textarea{font:inherit;color:inherit}
a{color:inherit}
/* WCAG 2.4.7 — focus visibile da tastiera */
:focus-visible{outline:3px solid var(--dot);outline-offset:2px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--dot);outline-offset:2px;border-radius:8px}
.card:focus-visible,.lcard:focus-visible{outline:3px solid var(--dot);outline-offset:-3px}
.serif{font-family:'Cormorant Garamond',Georgia,serif}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* visibilità schermi — gestita SOLO via display (nessuna dipendenza da opacity/animazioni) */
body.home-on #col,body.home-on #filters,body.home-on #fabs,body.home-on #floatwrap,body.home-on #maplegend,body.home-on #configfab{display:none!important}

/* ===== MAPPA ===== */
#lmap{position:fixed;inset:0;background:var(--bg);z-index:1}
.leaflet-container{font:inherit}
.leaflet-control-attribution{font-size:9.5px;background:color-mix(in srgb,var(--surface) 80%,transparent)!important;color:var(--muted)!important}
.leaflet-control-attribution a{color:var(--muted)!important}
.leaflet-attribution-flag{display:none!important}   /* bandierina Leaflet: fuori */
.mk{position:relative;width:30px;height:47px}
.mk .slab{position:absolute;top:0;left:0;width:30px;height:38px;border-radius:7px 7px 9px 9px;background:var(--ink);border:2.5px solid var(--markstroke);box-shadow:0 3px 8px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;transition:transform .15s;transform-origin:50% 100%}
.mk .slab::after{content:'';position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top:8px solid var(--ink)}
.mk.premium .slab{background:var(--brass)}
.mk.premium .slab::after{border-top-color:var(--brass)}
.mk.premium::before{content:'★';position:absolute;top:-7px;right:-7px;width:16px;height:16px;border-radius:50%;background:var(--surface);color:var(--brass);font-size:10px;line-height:16px;text-align:center;box-shadow:var(--shadow);z-index:2}
.mk.laminam .slab{width:34px;height:42px;background:linear-gradient(150deg,#0a5078,#003b5c)}
.mk.laminam .slab::after{border-top-color:#003b5c}
.mk.laminam{width:34px;height:51px}
.mk.laminam::before{content:'L';font-family:'Cormorant Garamond',serif;position:absolute;top:-8px;right:-8px;width:19px;height:19px;border-radius:50%;background:var(--brass);color:#fff;font-size:13px;font-weight:700;line-height:19px;text-align:center;box-shadow:var(--shadow);z-index:2}
html[data-theme="dark"] .mk.laminam .slab{background:linear-gradient(150deg,#1d6f9e,#0a3f5c)}
/* pin dedicato ai progetti / realizzazioni (punto 5) */
.mk.project{width:34px;height:51px}
.mk.project .slab{width:34px;height:42px;background:linear-gradient(150deg,#7c4dbf,#5a2ea6)}
.mk.project .slab::after{border-top-color:#5a2ea6}
.mk.project::before{content:'';position:absolute;top:-7px;right:-7px;width:18px;height:18px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);z-index:2;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a2ea6' stroke-width='2.2'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='8.5' cy='10' r='1.6'/><path d='M21 16l-5-5L5 19'/></svg>");background-size:12px 12px;background-repeat:no-repeat;background-position:center}
.mk.sel .slab{outline:3px solid var(--dot);outline-offset:2px}
.mk:hover .slab{transform:scale(1.12)}
.mk .slab svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
/* def10 — vedi sopra: in dark il tratto si inverte, tranne sul pin Laminam che resta blu pieno */
html[data-theme="dark"] .mk .slab svg{stroke:#0B2A38}
html[data-theme="dark"] .mk.laminam .slab svg{stroke:#fff}
.clbubble{width:46px;height:46px;border-radius:50%;background:var(--ink);color:var(--chipon-ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;border:3px solid var(--markstroke);box-shadow:0 3px 10px rgba(0,0,0,.3);transition:transform .15s}
.clbubble:hover{transform:scale(1.1)}
#userdot2{position:relative;width:22px;height:22px}
#userdot2 .core{position:absolute;inset:0;border-radius:50%;background:var(--dot);border:4px solid #fff;box-shadow:0 0 0 1.5px var(--dot),0 2px 7px rgba(0,0,0,.5)}
#userdot2 .pulse{position:absolute;inset:-18px;border-radius:50%;background:var(--dot);opacity:.28;animation:pulse 2.2s infinite}
@keyframes pulse{0%{transform:scale(.5);opacity:.35}70%{transform:scale(1.25);opacity:0}100%{opacity:0}}
@keyframes fadein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* ===== HOME (stile C, immersiva) ===== */
#home{position:fixed;inset:0;z-index:2000;background:var(--bg);display:flex;flex-direction:column;overflow:hidden}
body:not(.home-on) #home{display:none}
#stage{position:absolute;inset:0;z-index:0;overflow:hidden}
#stage::after{content:'';position:absolute;inset:0;z-index:2;background:
   radial-gradient(72% 62% at 50% 30%,transparent,color-mix(in srgb,var(--bg) 50%,transparent) 76%,var(--bg) 100%),
   linear-gradient(180deg,color-mix(in srgb,var(--bg) 22%,transparent),var(--bg) 92%)}
#ambient{position:absolute;inset:-12% -6%;z-index:0;display:grid;grid-template-columns:repeat(6,1fr);gap:14px;transform:rotate(-8deg) scale(1.2);opacity:.42;filter:saturate(.92)}
html[data-theme="dark"] #ambient{opacity:.32}
#ambient .tile{border-radius:12px;height:120px;box-shadow:0 8px 22px rgba(0,40,60,.10);animation:drift var(--d,22s) ease-in-out infinite}
@keyframes drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}
/* foto reali Laminam in dissolvenza dietro la home (come il prototipo C / dettaglio showroom) */
#homeshots{position:absolute;inset:0;z-index:1}
/* crossfade su N immagini (JS gestisce l'immagine attiva via .on); zoom lento continuo */
#homeshots .shot,.sv-shots .shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.6s ease;animation:kbzoom 26s ease-in-out infinite alternate;will-change:opacity,transform}
#homeshots .shot.on{opacity:.58}
html[data-theme="dark"] #homeshots .shot.on{opacity:.62}
@keyframes kbzoom{from{transform:scale(1.05)}to{transform:scale(1.13)}}
/* l'effetto sfondo showroom (zoom+fade morbidi) resta attivo anche con reduced-motion: è una scelta di design esplicita per home e vista showroom */
@media (prefers-reduced-motion:reduce){
  #homeshots .shot,.sv-shots .shot{animation:kbzoom 26s ease-in-out infinite alternate!important;transition:opacity 1.6s ease!important}
}
.hbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:18px 22px}
.hbar .hlogo{font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;letter-spacing:.16em;font-size:22px;text-transform:uppercase}
.hbar-r{display:flex;gap:10px;align-items:center}
.langwrap{position:relative}
.langbtn{display:flex;align-items:center;gap:7px;height:42px;padding:0 12px;border-radius:21px;background:var(--glass-strong);box-shadow:var(--shadow);backdrop-filter:blur(8px);font-size:12.5px;font-weight:600;color:var(--ink)}
.langbtn .globe{width:17px;height:17px;stroke:var(--ink);fill:none;stroke-width:1.7}
.langbtn .chev{width:14px;height:14px;stroke:var(--muted);fill:none;stroke-width:2;transition:transform .2s}
.langwrap.open .chev{transform:rotate(180deg)}
.langmenu{position:absolute;top:48px;right:0;z-index:30;min-width:178px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);padding:6px;display:none;max-height:60vh;overflow-y:auto}
.langwrap.open .langmenu{display:block;animation:fadein .18s ease}
.langmenu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 11px;border-radius:10px;font-size:13.5px;color:var(--ink);text-align:left}
.langmenu button:hover{background:var(--surface2)}
.langmenu button.on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.langmenu .lshort{flex:none;width:26px;font-size:10.5px;font-weight:700;letter-spacing:.06em;color:var(--muted)}
.langmenu button.on .lshort{color:var(--brand)}
.langmenu .llabel{flex:1}
.langmenu svg{width:15px;height:15px;flex:none;stroke:var(--brand);fill:none;stroke-width:2.2}
.rbtn{width:42px;height:42px;border-radius:50%;background:var(--glass-strong);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(8px)}
.rbtn svg{width:20px;height:20px;stroke:var(--ink);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.instbtn{display:flex;align-items:center;gap:7px;height:42px;padding:0 15px;border-radius:21px;background:var(--brand);color:#fff;font-size:12.5px;font-weight:600;box-shadow:var(--shadow)}
.instbtn:hover{filter:brightness(1.08)}
.instbtn svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:560px){.instbtn span{display:none}.instbtn{padding:0;width:42px;justify-content:center}}
.hscroll{position:relative;z-index:3;flex:1;overflow-y:auto;display:flex;flex-direction:column}
.hscroll .hbar{flex:none}
.hwrap{width:100%;max-width:1040px;margin:auto;padding:10px clamp(22px,4vw,48px) 60px;text-align:center}
.eyebrow{display:inline-block;font-size:11px;letter-spacing:.24em;text-transform:uppercase;font-weight:600;color:var(--muted);opacity:.85;margin-bottom:14px}
#htitle{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(32px,6vw,58px);font-weight:600;line-height:1.04;margin-bottom:12px}
.hsub{color:var(--muted);font-size:15.5px;line-height:1.55;max-width:520px;margin:0 auto 28px}

/* profilazione */
.profrow{margin-bottom:8px;overflow:hidden;max-height:560px;opacity:1;transition:opacity .35s ease,max-height .45s ease,transform .35s ease,margin-bottom .35s ease}
.proflbl{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.profcards{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:840px;margin:0 auto}
.profcard{display:flex;gap:14px;align-items:center;text-align:left;background:var(--glass-strong);border:1.5px solid var(--line);border-radius:18px;padding:16px 18px;backdrop-filter:blur(10px);transition:transform .18s,border-color .18s,box-shadow .18s}
.profcard:hover{border-color:var(--ink);transform:translateY(-2px);box-shadow:var(--shadow)}
.profcard.sel{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
.profcard .pic{width:48px;height:48px;border-radius:13px;flex:none;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#0a5078,#003b5c)}
.profcard .pic svg{width:23px;height:23px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profcard .ptx b{display:block;font-size:16px;font-weight:600;margin-bottom:3px}
.profcard .ptx span{font-size:12.5px;color:var(--muted);line-height:1.45}

/* search block (rivelato dopo il profilo) */
.searchblock{max-width:880px;margin:18px auto 0;display:flex;flex-direction:column;align-items:center;opacity:0;max-height:0;overflow:hidden;pointer-events:none;transition:opacity .4s,max-height .5s}
.searchblock.show{opacity:1;max-height:1600px;pointer-events:auto}
/* a transizione completata libero l'overflow così il dropdown indirizzo non viene tagliato */
.searchblock.ovis{overflow:visible}
.searchblock .mode{width:100%}
.profpill{display:inline-flex;align-items:center;gap:9px;background:var(--glass-strong);border:1px solid var(--line);border-radius:20px;padding:6px 8px 6px 12px;font-size:13px;font-weight:600;margin-bottom:16px;box-shadow:var(--shadow)}
.profpill .ppic{width:22px;height:22px;border-radius:7px;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#0a5078,#003b5c)}
.profpill .ppic svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:1.9}
.profpill #profchange{font-size:11.5px;font-weight:600;color:var(--brand);border:1px solid var(--line);border-radius:13px;padding:4px 10px}
.profpill #profchange:hover{border-color:var(--brand);background:var(--brand-soft)}
@keyframes aiborder{0%{background-position:0% 0}100%{background-position:300% 0}}
@keyframes twinkle{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.12);opacity:1}}
/* Banner percorso selezionato: valorizza la scelta Privato/Professionista */
.profchosen{display:inline-flex;align-items:center;gap:13px;background:var(--glass-strong);border:1.5px solid var(--line);border-radius:18px;padding:11px 13px 11px 14px;margin-bottom:18px;box-shadow:var(--shadow);backdrop-filter:blur(10px);max-width:100%}
.profchosen .pc-ic{width:42px;height:42px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#0a5078,#003b5c)}
.profchosen .pc-ic svg{width:21px;height:21px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profchosen .pc-tx{display:flex;flex-direction:column;text-align:left;line-height:1.25;min-width:0}
.profchosen .pc-tx i{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.profchosen .pc-tx b{font-size:17px;font-weight:600;font-family:'Cormorant Garamond',serif;letter-spacing:.01em}
.profchosen #profchange{flex:none;font-size:11.5px;font-weight:600;color:var(--brand);border:1px solid var(--line);border-radius:14px;padding:6px 12px;margin-left:6px}
.profchosen #profchange:hover{border-color:var(--brand);background:var(--brand-soft)}
/* Segmented control: Ricerca standard (default) / Ricerca AI — peso bilanciato */
.modeseg{display:inline-flex;gap:4px;background:var(--surface2);border:1px solid var(--line);border-radius:24px;padding:4px;margin-bottom:18px;box-shadow:var(--shadow)}
.modeseg .seg{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 20px;border-radius:21px;font-size:14px;font-weight:600;color:var(--muted);transition:background .2s,color .2s,box-shadow .2s}
.modeseg .seg .segic{display:flex}
.modeseg .seg svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modeseg .seg:hover{color:var(--ink)}
.modeseg .seg.on{background:var(--ink);color:var(--chipon-ink);box-shadow:var(--shadow)}
.modeseg .seg.ai .sparkle svg{filter:drop-shadow(0 0 4px color-mix(in srgb,#3fe0ff 70%,transparent))}
.modeseg .seg.ai.on{background:linear-gradient(110deg,#003b5c,#0a5078 40%,#0d6491 66%,#15a0b8);background-size:220% 100%;animation:aiflow 7s ease-in-out infinite;color:#fff}
.modeseg .seg.ai.on .sparkle{animation:twinkle 2.2s ease-in-out infinite}
@media(max-width:560px){.modeseg{width:100%}.modeseg .seg{flex:1;padding:0 12px}}
.aisuggl{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-top:16px;margin-bottom:2px}
.mode{display:none}
.mode.on{display:block;animation:fadein .3s}
.prompt{display:flex;align-items:flex-end;gap:10px;border:2px solid transparent;border-radius:22px;padding:12px 12px 12px 16px;box-shadow:var(--shadow-lg),0 0 18px color-mix(in srgb,#3fe0ff 22%,transparent);backdrop-filter:blur(12px);
  background:linear-gradient(var(--glass-strong),var(--glass-strong)) padding-box,
            linear-gradient(90deg,#15a0b8,#7af0ff,#3fe0ff,#a0f7ff,#15a0b8,#7af0ff,#15a0b8) border-box;
  background-size:auto,300% 100%;animation:aiborder 3.2s linear infinite}
.prompt .pspark{width:30px;height:30px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0a5078,#15a0b8);margin-bottom:3px}
.prompt .pspark svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:1.6}
#aiq,#np-aiq{flex:1;border:none;background:none;outline:none;resize:none;overflow:hidden;font-size:16px;line-height:1.45;padding:7px 0}
.prompt .pgo{width:44px;height:44px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(110deg,#003b5c,#15a0b8);box-shadow:0 3px 12px color-mix(in srgb,#0a5078 45%,transparent)}
.prompt .pgo svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.suggs{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}
.suggs button{font-size:12.5px;color:var(--muted);background:var(--glass);border:1px solid var(--line);border-radius:16px;padding:8px 13px;backdrop-filter:blur(6px);transition:.15s}
.suggs button:hover{border-color:var(--brass);color:var(--ink)}
/* pannello tradizionale: superficie piena, niente look "suggerimenti AI" */
.tradpanel{background:var(--surface);border:1.5px solid var(--line);border-radius:20px;padding:16px;box-shadow:var(--shadow);text-align:left}
.tradsec{margin-top:16px}
.tradsec:first-child{margin-top:0}
.tradlbl{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.tradlbl .stepn{width:18px;height:18px;border-radius:50%;background:var(--brand);color:#fff;font-size:10.5px;line-height:18px;text-align:center;flex:none;letter-spacing:0}
.tradpanel .tradrow{background:var(--surface);border:1.5px solid var(--line);box-shadow:none;border-radius:14px;padding:5px 5px 5px 12px}
/* card categoria — quadrate, icona TRASPARENTE protagonista, titolo grassetto, descrizione (rif. review_home_wtb) */
.lcards{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:680px){.lcards{grid-template-columns:repeat(3,1fr)}}
.lcard{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:0;width:100%;height:100%;min-height:200px;text-align:left;background:var(--surface);border:1.5px solid var(--line);border-radius:16px;padding:20px 20px 18px;transition:border-color .15s,box-shadow .15s,transform .15s,background .15s}
.lcard:hover{border-color:var(--ink);transform:translateY(-2px);box-shadow:var(--shadow)}
.lcard.on{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 30%,transparent)}
.lcard .lic{width:auto;height:52px;flex:none;display:flex;align-items:center;justify-content:flex-start;background:transparent;border:none;margin-bottom:14px}
.lcard .lic svg{width:46px;height:46px;stroke:var(--ink);fill:none;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.lcard.lam .lic svg{stroke:var(--brand)}
.lcard .ltx{flex:1;min-width:0;padding-right:6px}
.lcard .ltx b{font-size:16px;font-weight:700;line-height:1.28;display:block;letter-spacing:-.01em}
.lcard .ltx .ld{display:block;font-size:12.5px;color:var(--muted);line-height:1.5;margin-top:8px}
.lcard .lck{position:absolute;top:14px;right:14px;width:22px;height:22px;border-radius:50%;border:1.6px solid var(--line);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s,background .15s;background:var(--surface)}
.lcard .lck svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:2.6}
.lcard.on .lck{opacity:1;background:var(--brand);border-color:var(--brand)}
/* variante compatta (percorso Professionista: tipo di partner) */
.lcards.compact{grid-template-columns:repeat(2,1fr)}
@media(min-width:680px){.lcards.compact{grid-template-columns:repeat(3,1fr)}}
.lcards.compact .lcard{min-height:0;flex-direction:row;align-items:center;gap:12px;padding:14px 14px}
.lcards.compact .lcard .lic{height:auto;margin-bottom:0}
.lcards.compact .lcard .lic svg{width:30px;height:30px}
.lcards.compact .lcard .ltx b{font-size:13.5px}
.lcards.compact .lcard .ltx .ld{display:none}
.lcards.compact .lcard .lck{top:50%;transform:translateY(-50%)}
/* mobile (Privato): card snelle — icona a sinistra, titolo+descrizione accanto */
@media(max-width:600px){
  .lcards:not(.compact){grid-template-columns:1fr;gap:10px}
  .lcards:not(.compact) .lcard{flex-direction:row;align-items:center;gap:14px;min-height:0;padding:14px 16px}
  .lcards:not(.compact) .lcard .lic{height:auto;width:auto;margin-bottom:0}
  .lcards:not(.compact) .lcard .lic svg{width:34px;height:34px}
  .lcards:not(.compact) .lcard .ltx b{font-size:14.5px}
  .lcards:not(.compact) .lcard .ltx .ld{margin-top:3px;font-size:12px}
  .lcards:not(.compact) .lcard .lck{top:50%;transform:translateY(-50%)}
}
.catpickhint{font-size:12px;color:var(--brass);margin-top:10px;display:flex;gap:7px;align-items:center}
.catpickhint svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;flex:none}
/* tradizionale */
.tradrow{display:flex;align-items:center;gap:8px;background:var(--glass-strong);border:1.5px solid var(--line);border-radius:20px;padding:7px 7px 7px 14px;box-shadow:var(--shadow-lg);backdrop-filter:blur(12px)}
.tfield{display:flex;align-items:center;gap:9px;flex:1;min-width:0;position:relative}
.tfield>svg{width:18px;height:18px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tfield input{flex:1;min-width:0;border:none;background:none;outline:none;font-size:15px;padding:10px 0}
.tfield.loc{flex:1}
.tfield #tgps{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface2)}
.tfield #tgps svg{width:17px;height:17px;stroke:var(--dot);fill:none;stroke-width:1.9}
.tdiv{width:1px;align-self:stretch;background:var(--line);margin:4px 2px}
.tgo{display:flex;align-items:center;gap:7px;height:46px;padding:0 20px;flex:none;border-radius:23px;background:var(--ink);color:var(--chipon-ink);font-weight:600;font-size:14.5px;transition:opacity .2s,filter .2s}
.tgo svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tgo:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.4)}
#tdrop{position:absolute;left:-4px;right:0;top:46px;background:var(--surface);border-radius:14px;box-shadow:var(--shadow-lg);overflow:hidden;display:none;z-index:10;text-align:left}
#tdrop button{display:flex;gap:10px;align-items:center;width:100%;padding:12px 14px;font-size:14px}
#tdrop button:hover{background:var(--surface2)}
#tdrop svg{width:15px;height:15px;stroke:var(--muted);fill:none;stroke-width:1.8;flex:none}
.catchips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}
.catchips button{display:flex;gap:6px;align-items:center;font-size:12.5px;font-weight:500;color:var(--muted);background:var(--glass);border:1px solid var(--line);border-radius:16px;padding:8px 13px;backdrop-filter:blur(6px)}
.catchips button svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8}
.catchips button.on{background:var(--chipon);color:var(--chipon-ink);border-color:var(--chipon)}
.catchips button.lam.on{background:var(--brass);border-color:var(--brass);color:#fff}
.tradcar{margin-top:16px;width:100%;max-width:560px;align-self:center}
.tcl{font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin:14px 0 4px;text-align:left}
.facetchips{display:flex;flex-direction:column;gap:9px;margin-top:6px}
.fgroup{display:flex;gap:12px;align-items:baseline}
.fgroup .fgl{flex:none;width:78px;text-align:left;font-size:11.5px;font-weight:600;color:var(--muted);padding-top:8px}
.fopts{display:flex;gap:7px;flex-wrap:wrap;flex:1}
.facetchips button{display:flex;gap:6px;align-items:center;font-size:12px;font-weight:500;color:var(--muted);background:var(--glass);border:1px solid var(--line);border-radius:14px;padding:6px 11px;backdrop-filter:blur(6px)}
.facetchips button .dotc{width:12px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.12)}
.facetchips button.on{background:var(--chipon);color:var(--chipon-ink);border-color:var(--chipon)}
#profrow.hidden{max-height:0;opacity:0;transform:translateY(-10px);margin-bottom:0;pointer-events:none}
.hmeta{display:flex;gap:clamp(12px,4vw,34px);justify-content:center;margin-top:34px;flex-wrap:nowrap}
.hmeta div{text-align:center;min-width:0}
.hmeta b{display:block;font-family:'Cormorant Garamond',serif;font-size:clamp(17px,5vw,24px);font-weight:700;line-height:1.1}
.hmeta span{font-size:clamp(9px,2.6vw,11.5px);color:var(--muted);line-height:1.25}
@media(max-width:560px){.profcards{grid-template-columns:1fr;max-width:420px}}
/* ===== COLONNA SINISTRA (ricerca + risultati) ===== */
#col{position:fixed;left:0;top:0;bottom:0;width:392px;z-index:900;background:var(--surface);box-shadow:var(--shadow);display:flex;flex-direction:column}
#colhandle{display:none}
.colhead{flex:none;padding:12px 14px 10px;border-bottom:1px solid var(--line)}
.colhead-top{display:flex;gap:10px;align-items:center;justify-content:space-between}
.chtl{display:flex;align-items:center;gap:8px}
/* "Nuova ricerca": entry point accanto al logo (apre il pannello con scelta standard/AI) */
.newsearchbtn{flex:none;display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border-radius:21px;font-size:13.5px;font-weight:600;color:#fff;background:var(--brand);box-shadow:var(--shadow);transition:filter .15s}
.newsearchbtn:hover{filter:brightness(1.08)}
.newsearchbtn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] .newsearchbtn{color:#062A3D}
html[data-theme="dark"] .newsearchbtn svg{stroke:#062A3D}
.brandbtn{flex:none;width:46px;height:46px;border-radius:14px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Cormorant Garamond',serif;font-weight:700;font-size:24px;box-shadow:var(--shadow)}
.brandbtn:hover{filter:brightness(1.08)}
.qbar{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:46px;padding:0 14px;border-radius:23px;background:var(--surface2);border:1px solid var(--line)}
.qbar svg{width:17px;height:17px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.9}
.qbar input{flex:1;min-width:0;border:none;background:none;outline:none;font-size:14px}
.aisearchbtn{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:46px;padding:0 16px;border-radius:23px;color:#fff;font-weight:600;font-size:14.5px;position:relative;overflow:hidden;background:linear-gradient(110deg,#003b5c,#0a5078 45%,#0d6491 70%,#15a0b8);background-size:220% 100%;box-shadow:0 4px 16px color-mix(in srgb,var(--brand) 40%,transparent);animation:aiflow 7s ease-in-out infinite}
@keyframes aiflow{0%,100%{background-position:0% 0}50%{background-position:100% 0}}
.aisearchbtn:hover{filter:brightness(1.08)}
.aisearchbtn .aisicon{width:28px;height:28px;flex:none;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.aisearchbtn .aisicon svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:1.7}
.aisearchbtn .aistxt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* selettore posizione — affordance "Cambia" esplicita con icona matita (punto 9) */
.locpill{flex:none;display:inline-flex;align-items:center;gap:10px;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:6px 8px 6px 8px;max-width:100%;transition:border-color .15s,background .15s}
.locpill:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent);background:var(--brand-soft)}
.locpill .lp-pin{flex:none;width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--surface)}
.locpill .lp-pin svg{width:17px;height:17px;flex:none;stroke:var(--dot);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.locpill .lp-tx{display:flex;flex-direction:column;line-height:1.2;text-align:left;min-width:0}
.locpill .lp-tx i{font-style:normal;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.locpill .lp-tx #loctxt{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:128px}
.locpill .locchg{flex:none;display:inline-flex;align-items:center;gap:5px;font-style:normal;font-size:11.5px;font-weight:700;color:var(--brand);background:var(--surface);border:1px solid color-mix(in srgb,var(--brand) 38%,transparent);border-radius:10px;padding:5px 9px}
.locpill .locchg svg{width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.locpill:hover .locchg{background:var(--brand);color:#fff;border-color:var(--brand)}
html[data-theme="dark"] .locpill:hover .locchg{color:#062A3D}
@media(max-width:560px){.locpill .locchg span{display:none}.locpill .locchg{padding:6px}}
/* testata risultati: home + barra ricerca con query + contesto (punti 3-4) */
/* selettore profilo nei risultati (pre-flaggato, editabile) */
.profsel{flex:none;display:inline-flex;gap:3px;background:var(--surface2);border:1px solid var(--line);border-radius:19px;padding:3px}
.profsel button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;font-size:12.5px;font-weight:600;color:var(--muted);white-space:nowrap;transition:background .15s,color .15s}
.profsel button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profsel button.on{background:var(--ink);color:var(--chipon-ink)}
/* searchbar = affordance AI: bordo fluo animato coerente con il prompt della home */
.searchbar{display:flex;align-items:center;gap:11px;width:100%;margin-top:10px;min-height:54px;padding:7px 12px 7px 14px;border:2px solid transparent;border-radius:16px;text-align:left;
  background:linear-gradient(var(--surface2),var(--surface2)) padding-box,
            linear-gradient(90deg,#15a0b8,#7af0ff,#3fe0ff,#a0f7ff,#15a0b8,#7af0ff,#15a0b8) border-box;
  background-size:auto,300% 100%;animation:aiborder 3.2s linear infinite;
  box-shadow:0 0 14px color-mix(in srgb,#3fe0ff 18%,transparent)}
.searchbar:hover{filter:brightness(1.02)}
.searchbar .sbic{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0a5078,#15a0b8)}
.searchbar .sbic svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.9}
.searchbar .sbtxt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.searchbar .sbtxt i{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.searchbar .sbtxt b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.searchbar .sbedit{flex:none;font-size:11.5px;font-weight:600;color:var(--brand);border:1px solid var(--line);border-radius:13px;padding:5px 11px}
.searchbar:hover .sbedit{border-color:var(--brand);background:var(--brand-soft)}
/* riepilogo "Hai cercato": rende subito visibile cosa ha cercato l'utente */
.searchsummary{display:none;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px}
.searchsummary.show{display:flex}
.searchsummary .ss-l{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.searchsummary .ss-c{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--brand);background:var(--brand-soft);border:1px solid color-mix(in srgb,var(--brand) 28%,transparent);border-radius:13px;padding:4px 10px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.searchsummary .ss-c svg{width:11px;height:11px;flex:none;stroke:currentColor;fill:none;stroke-width:2}
#themetop{position:fixed;top:12px;right:14px;z-index:1521;width:46px;height:46px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center}
#themetop:hover{background:var(--surface2)}
#themetop svg{width:21px;height:21px;stroke:var(--ink);fill:none;stroke-width:1.8;stroke-linecap:round}
body.home-on #themetop{display:none}
/* logo Laminam ufficiale (tondino): light = logo blu su bianco, dark = logo bianco su blu */
.brandbadge{position:relative;flex:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line)}
.brandbadge>svg{width:22px;height:22px}
.brandbadge>svg path{fill:#003b5c}
html[data-theme="dark"] .brandbadge{background:#003b5c;border-color:transparent}
html[data-theme="dark"] .brandbadge>svg path{fill:#fff}
/* badge "home" per rendere riconoscibile il ritorno alla home */
.brandbadge .homedot{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;border-radius:50%;background:var(--brand);border:2px solid var(--surface);display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.brandbadge .homedot svg{width:10px;height:10px;stroke:#fff;fill:none;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] .brandbadge .homedot svg{stroke:#062A3D}
/* logo LAMINAM intero (wordmark) come pulsante "torna alla home" — senza bordo né glifo casa (punto 6) */
.brandhome{position:relative;flex:none;display:inline-flex;align-items:center;height:44px;padding:0 4px;border-radius:8px;background:none;border:none;transition:opacity .15s}
.brandhome:hover{opacity:.7}
/* punto 9 — azioni risultati (Nuova ricerca / Ricerca con l'AI) sotto "Hai cercato" */
.resactions{display:flex;gap:8px;margin-top:11px}
.resactions .ract{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:42px;border-radius:21px;font-size:13px;font-weight:600;border:1px solid var(--line);background:var(--surface2);color:var(--ink);transition:border-color .15s,filter .15s}
.resactions .ract svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.resactions .ract:hover{border-color:var(--ink)}
.resactions .ract.ai{color:#fff;border:none;background:linear-gradient(110deg,#003b5c,#0a5078 45%,#0d6491 70%,#15a0b8);background-size:220% 100%;animation:aiflow 7s ease-in-out infinite}
.resactions .ract.ai svg{stroke:#fff}
.resactions .ract.ai:hover{filter:brightness(1.08)}
.colsub{flex:none;padding:10px 18px 10px}
.colsub h2{font-size:13px;font-weight:600;line-height:1.4}
.colsub h2 .res-q{font-weight:500;color:var(--brand)}
.colsub p{font-size:11.5px;color:var(--muted);margin-top:3px}
#list{flex:1;overflow-y:auto;overscroll-behavior:contain;padding-bottom:24px}
.fbnote{margin:0 14px 8px;background:var(--brass-soft);color:var(--brass);font-size:12.5px;padding:10px 13px;border-radius:12px;display:flex;gap:8px;align-items:flex-start;line-height:1.45}
.fbnote svg{width:15px;height:15px;flex:none;stroke:currentColor;fill:none;stroke-width:2;margin-top:1px}

/* card risultato — griglia uniforme (avatar · contenuto · distanza) */
.card{position:relative;overflow:hidden;padding:16px 18px;border-bottom:1px solid var(--line);cursor:pointer}
.card:hover{background:var(--surface2)}
.card.sel{background:var(--surface2);box-shadow:inset 3px 0 0 var(--brass)}
.card.lam{background:linear-gradient(180deg,color-mix(in srgb,var(--brass-soft) 60%,transparent),transparent)}
/* def8 — etichetta ordinamento risultati (distanza + rilevanza della ricerca) */
.orderlabel{display:flex;align-items:flex-start;gap:8px;margin:2px 14px 6px;padding:9px 12px;border-radius:11px;background:var(--surface2);border:1px solid var(--line);font-size:11.5px;line-height:1.4;color:var(--muted)}
.orderlabel svg{width:14px;height:14px;flex:none;stroke:var(--brand);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
/* def8 — "Campioni disponibili" (card + dettaglio): il negozio dispone di campioni fisici */
.samplecap{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--ok)}
.samplecap svg{width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2.2}
/* proprietà del negozio come ETICHETTE (no bordatura chip — punto 12) */
.cprops{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.cprop{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--muted)}
.cprop.ok{color:var(--ok)}
.cprop svg{width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2.2}
.crow{display:grid;grid-template-columns:1fr auto;gap:13px;align-items:start}
.avatar{width:46px;height:46px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Cormorant Garamond',serif;font-weight:700;font-size:22px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.avatar.lam{background:linear-gradient(140deg,#0a5078,#003b5c)!important;position:relative}
.avatar.lam::after{content:'★';position:absolute;right:-4px;top:-4px;width:17px;height:17px;border-radius:50%;background:var(--brass);color:#fff;font-size:10px;line-height:17px;text-align:center}
.card .ci{min-width:0}
.card h3{font-size:15px;font-weight:600;line-height:1.3;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.badge{display:inline-flex;align-items:center;gap:3px;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;background:var(--brass-soft);color:var(--brass);padding:3px 7px;border-radius:5px;flex:none;cursor:help}
.badge .bi{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.2;opacity:.85}
.badge[data-info]:hover{filter:brightness(.97);box-shadow:0 0 0 2px color-mix(in srgb,var(--brass) 28%,transparent)}
.badge.lam{background:var(--brass);color:#fff}
/* etichetta tipologia: chip pieno, distinto dalle CTA (telefono/email bordate) */
.ttag{display:inline-flex;align-items:center;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand);background:var(--brand-soft);padding:3px 9px;border-radius:6px;flex:none}
.card .cmeta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}
.card .caddr{font-size:12.5px;color:var(--muted);line-height:1.45;margin-top:6px}
.card .sub{font-size:12.5px;color:var(--muted);margin-top:3px}
.dist{align-self:end;font-size:13px;font-weight:700;color:var(--ink);flex:none;text-align:right;white-space:nowrap}
.tagsrow{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.tag{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:7px;padding:3px 8px;display:flex;gap:4px;align-items:center}
/* corrispondenza ai filtri categoria scelti (OR): più tag = più in alto */
.catmatch{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.cmtag{display:flex;gap:4px;align-items:center;font-size:11px;font-weight:600;color:var(--brand);background:var(--brand-soft);border:1px solid color-mix(in srgb,var(--brand) 35%,transparent);border-radius:7px;padding:3px 8px}
.cmtag svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2}
.tag.hit{border-color:var(--ok);color:var(--ok)}
.tag svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2}
.ccontacts{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.ccontacts a{display:flex;gap:5px;align-items:center;font-size:11.5px;color:var(--muted);border:1px solid var(--line);border-radius:14px;padding:5px 10px;text-decoration:none}
.ccontacts a:hover{border-color:var(--ink);color:var(--ink)}
/* superfici esposte / non comunicate (punto 6) */
.surfcap{display:flex;align-items:center;gap:6px;margin-top:11px;font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--ok)}
.surfcap svg{width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2.2}
.nostock{display:flex;align-items:center;gap:7px;margin-top:11px;font-size:12px;color:var(--muted);background:var(--surface2);border:1px dashed var(--line);border-radius:10px;padding:8px 11px;line-height:1.4}
.nostock svg{width:14px;height:14px;flex:none;stroke:var(--muted);fill:none;stroke-width:2}
/* separatore tra negozi con superfici esposte e gli altri (punto 6) */
.listdiv{display:flex;align-items:center;gap:10px;padding:13px 18px 9px;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.listdiv::before,.listdiv::after{content:'';height:1px;background:var(--line);flex:1}
.ccontacts svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.expostrip{display:flex;gap:8px;overflow-x:auto;margin-top:11px;padding-bottom:5px;scrollbar-width:none;cursor:grab;-webkit-overflow-scrolling:touch}
.expostrip.drag{cursor:grabbing}
.expostrip::-webkit-scrollbar{height:0}
.expoitem{flex:0 0 auto;width:90px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.expoitem .esw{height:50px}
.expoitem .etx{padding:6px 8px}
.expoitem .etx b{display:block;font-size:10.5px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expoitem .etx span{font-size:9.5px;color:var(--brass);cursor:pointer}
.expoitem.hit{border-color:var(--brass)}
.empty{padding:38px 26px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
.empty b{color:var(--ink)}
/* sezione ispirazione (Lasciati ispirare) */
.inspsec{padding:14px 14px 8px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--surface2),transparent)}
.insphd{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:11px}
.insphd-tx b{display:block;font-size:14px;font-weight:600}
.insphd-tx span{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.insp-all{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--brand);white-space:nowrap;flex:none}
.insp-all svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.inspstrip{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.inspstrip::-webkit-scrollbar{height:0}
.inspcard{flex:0 0 auto;width:158px;text-align:left;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface);transition:border-color .15s,transform .15s}
.inspcard:hover{border-color:var(--brass);transform:translateY(-2px)}
.inspcard .inspimg{position:relative;display:block;height:96px;background-size:cover}
.inspcard .inspimg img{width:100%;height:100%;object-fit:cover;display:block}
.inspcard .inspcat{position:absolute;top:7px;left:7px;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:rgba(0,0,0,.42);backdrop-filter:blur(4px);padding:3px 7px;border-radius:6px}
.inspcard .insptx{display:block;padding:8px 10px}
.inspcard .insptx b{display:block;font-size:12.5px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inspcard .inspc{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);margin-top:3px}
.inspcard .inspc svg{width:11px;height:11px;flex:none;stroke:currentColor;fill:none;stroke-width:2}
.inspthron{display:flex;align-items:center;gap:7px;font-size:10.5px;color:var(--muted);margin-top:9px;opacity:.85}
.inspthron svg{width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2}

/* ===== FILTRI (isole su mappa) ===== */
#filters{position:fixed;top:12px;left:404px;right:68px;z-index:1520;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px}
#filters::-webkit-scrollbar{height:0}
.chip{flex:0 0 auto;display:flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:19px;background:var(--surface);box-shadow:var(--shadow);font-size:13px;font-weight:500;white-space:nowrap;border:1px solid transparent}
.chip svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.chip.on{background:var(--chipon);color:var(--chipon-ink)}
.chip .cnt{background:var(--brass);color:#fff;border-radius:9px;font-size:10.5px;padding:1px 6px;font-weight:700}
.chip.reset{background:var(--brand-soft);color:var(--brand);border-color:var(--brand);font-weight:600}
.chip.lam.on{background:var(--brass);color:#fff;border-color:var(--brass)}
.chip.lam svg{stroke:currentColor}
/* pin posizione accanto ai filtri: città rilevata/inserita, click per cambiarla */
.chip.loc{gap:7px;padding:0 12px 0 11px;font-weight:600;border:1px solid var(--line);background:var(--surface)}
.chip.loc .lc-pin{width:15px;height:15px;flex:none;stroke:var(--dot);stroke-width:2}
.chip.loc .lc-ed{width:13px;height:13px;flex:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chip.loc #locchip-city{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip.loc:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent);background:var(--brand-soft)}
.chip.loc:hover .lc-ed{stroke:var(--brand)}
/* indicatori (mobile): filtri attivi fuori dalla vista scrollabile */
.filtind{display:none}
.filtind .fcount{min-width:14px;text-align:center}
@media(max-width:900px){
  body:not(.home-on) .filtind.show{display:inline-flex}
  .filtind{position:fixed;top:64px;z-index:1522;height:38px;align-items:center;gap:4px;padding:0 11px;border-radius:19px;background:var(--brand);color:#fff;box-shadow:0 2px 10px rgba(0,40,60,.32);font-size:12.5px;font-weight:700;animation:filtindpulse 1.9s ease-in-out infinite}
  .filtind.l{left:8px}
  .filtind.r{right:8px}
  .filtind svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
  @keyframes filtindpulse{0%,100%{box-shadow:0 2px 10px rgba(0,40,60,.32)}50%{box-shadow:0 2px 10px rgba(0,40,60,.32),0 0 0 5px color-mix(in srgb,var(--brand) 22%,transparent)}}
}

/* map fabs */
#fabs{position:fixed;right:14px;bottom:24px;z-index:870;display:flex;flex-direction:column;gap:10px}
.fab{width:46px;height:46px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center}
.fab svg{width:20px;height:20px;stroke:var(--ink);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fab.on svg{stroke:var(--dot)}
.fab span{font-size:22px;line-height:1}
/* def10 — il tooltip del pin porta la famiglia (e il Premium) sotto il nome: con 3 sole
   icone sulla mappa e' li' che si recupera il dettaglio della tipologia. */
.leaflet-tooltip .tt-fam{display:block;font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;opacity:.72;margin-top:2px}
/* legenda mappa (differenziazione cromatica Premium / Standard / Showroom) */
#maplegend{position:fixed;left:408px;bottom:18px;z-index:860;display:flex;align-items:center;gap:14px;padding:8px 14px;border-radius:14px;background:var(--glass-strong);box-shadow:var(--shadow);backdrop-filter:blur(8px);font-size:11.5px;color:var(--ink)}
#maplegend .lg-t{font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-size:9.5px;color:var(--muted)}
#maplegend .lg-i{display:flex;align-items:center;gap:6px;font-weight:500}
#maplegend .lg-pin{width:13px;height:13px;flex:none;border-radius:4px 4px 6px 6px;border:2px solid var(--markstroke);box-shadow:0 1px 3px rgba(0,0,0,.25)}
#maplegend .lg-pin.std{background:var(--ink)}
#maplegend .lg-pin.prem{background:var(--brass)}
#maplegend .lg-pin.lam{width:15px;height:15px;border-radius:50%;background:var(--brass);color:#fff;font-family:'Cormorant Garamond',serif;font-weight:700;font-size:10px;display:flex;align-items:center;justify-content:center;line-height:1}
@media(max-width:900px){#maplegend{display:none!important}}
/* Configuratore — badge laterale verticale incollato al bordo destro (punto 11) */
#configfab{position:fixed;right:0;top:50%;transform:translateY(-50%);left:auto;bottom:auto;z-index:862;display:inline-flex;flex-direction:column;align-items:center;gap:10px;padding:16px 9px;border-radius:14px 0 0 14px;background:var(--brand);color:#fff;font-size:12.5px;font-weight:700;letter-spacing:.04em;box-shadow:-4px 6px 18px color-mix(in srgb,var(--brand) 38%,transparent);transition:padding .15s,filter .15s}
#configfab .cfg-tx{writing-mode:vertical-rl;transform:rotate(180deg);text-transform:uppercase}
#configfab svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#configfab:hover{filter:brightness(1.08);padding-right:13px}
html[data-theme="dark"] #configfab{color:#062A3D}
html[data-theme="dark"] #configfab svg{stroke:#062A3D}
@media(max-width:900px){#configfab{padding:13px 7px;font-size:11.5px}}
/* ===== ISOLA DETTAGLIO (accanto alla colonna, stile Google Maps) ===== */
#iscrim{display:none}
#island{position:fixed;left:404px;top:88px;width:396px;max-height:calc(100vh - 102px);z-index:910;background:var(--surface);border-radius:18px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;overflow:hidden;transform:translateX(-18px);opacity:0;pointer-events:none;transition:transform .3s cubic-bezier(.3,.9,.3,1)}
#island.open{transform:none;opacity:1;pointer-events:auto}
#ihero{height:150px;flex:none;position:relative;display:flex;align-items:flex-end;background:var(--ink)}
html[data-theme="dark"] #ihero{background:linear-gradient(160deg,#0a4a70 0%,#062a3d 60%,#041c29 100%)}
#ihero .hgrad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.5))}
#ihero .iclose{position:absolute;top:12px;left:12px;height:36px;padding:0 13px 0 9px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;gap:5px;z-index:2;font-size:12.5px;font-weight:600}
#ihero .iclose svg{width:17px;height:17px;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#ihero .ihtxt{position:relative;padding:16px 18px;color:#fff;z-index:1}
#ihero .ihtxt h2{font-size:20px;font-weight:600}
#ihero .ihtxt p{font-size:12.5px;opacity:.92;margin-top:2px}
#ibody{flex:1 1 auto;min-height:0;overflow-y:auto;padding-bottom:14px}
.dsec{padding:16px 18px;border-bottom:1px solid var(--line)}
.dsec h4{font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:11px}
.drow{display:flex;gap:13px;align-items:flex-start;padding:6px 0;font-size:13.5px}
.drow svg{width:17px;height:17px;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;margin-top:1px}
.drow a{text-decoration:underline;text-underline-offset:2px}
.drow .ok2{color:var(--ok);font-weight:500}
.dactions{display:flex;flex-wrap:wrap;gap:9px;padding:14px 18px;border-bottom:1px solid var(--line)}
.dactions a,.dactions button{flex:1;min-width:44%;height:42px;border-radius:21px;font-size:13px;font-weight:600;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}
.dactions .pri{background:var(--ink);color:var(--chipon-ink);border:none}
.dactions .pri.brass{background:var(--brass)}
.dactions svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.svcpills{display:flex;gap:8px;flex-wrap:wrap}
/* proprietà (lista con check) come etichette, senza bordatura chip (punto 12) */
.svcpill{display:flex;gap:6px;align-items:center;font-size:12.5px;color:var(--muted);font-weight:600}
.svcpill.yes{color:var(--ok)}
.svcpill svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}
.svcpill[data-info]{cursor:help}
.svcpill .bi{width:12px;height:12px;opacity:.8}
.dexpo-desc{font-size:12.5px;color:var(--muted);line-height:1.5;margin:-2px 0 12px}
.matchnote{margin:14px 18px 0;background:var(--brass-soft);color:var(--brass);font-size:12.5px;padding:10px 13px;border-radius:12px;display:flex;gap:8px;align-items:center}
.matchnote svg{width:15px;height:15px;flex:none;stroke:currentColor;fill:none;stroke-width:2}
.expostrip.big .expoitem{width:138px}
.expostrip.big .esw{height:86px}
.expostrip.big .etx b{font-size:12px;white-space:normal}
.sapexpo .esw{background:linear-gradient(135deg,#efebe4 0%,#dcd5ca 55%,#cbc2b4 100%)}
.sapexpo .etx b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:11px}
.sapexpo .etx span{cursor:default;letter-spacing:.03em}
.realgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.realcard{border:1px solid var(--line);border-radius:13px;overflow:hidden;cursor:zoom-in}
.realcard .rimg{height:88px}
.realcard .rtxt{padding:9px 11px}
.realcard .rtxt b{font-size:12.5px;font-weight:600;display:block}
.realcard .rtxt span{font-size:11px;color:var(--muted)}
.realcard.hit{border-color:var(--brass)}

/* ===== SHOWROOM LAMINAM — vista immersiva (stile C) ===== */
/* pannello come l'isola di dettaglio del negozio, ma largo quanto tutta la mappa (no fullscreen, no bottom-dock) */
#showroom{position:fixed;left:404px;right:14px;top:88px;bottom:14px;z-index:1500;display:none;overflow:hidden;border-radius:18px;box-shadow:var(--shadow-lg)}
#showroom.open{display:block;opacity:1}
.sv-bg{position:absolute;inset:0;z-index:0;background:var(--ink)}
.sv-shots{position:absolute;inset:0;z-index:0}
.sv-shots .shot.on{opacity:.92}
.sv-bg .sv-tint{position:absolute;inset:0;z-index:1;mix-blend-mode:soft-light;opacity:.32}
.sv-bg .sv-scrim{position:absolute;inset:0;z-index:2;background:linear-gradient(105deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.6) 42%,rgba(0,0,0,.28) 70%,rgba(0,0,0,.12) 100%),linear-gradient(0deg,rgba(0,0,0,.55),transparent 45%)}
.sv-close{position:absolute;top:18px;left:18px;z-index:3;height:42px;padding:0 18px 0 13px;border-radius:21px;background:var(--glass-strong);box-shadow:var(--shadow);display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;backdrop-filter:blur(8px)}
.sv-close svg{width:18px;height:18px;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sv-panel{position:relative;z-index:2;height:100%;max-width:560px;display:flex;flex-direction:column;justify-content:center;padding:28px 44px;color:#fff;overflow-y:auto}
.sv-panel .sv-eyebrow{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:7px 14px;margin-bottom:20px;backdrop-filter:blur(6px)}
.sv-panel .sv-eyebrow svg{width:14px;height:14px;stroke:var(--brass);fill:none;stroke-width:2}
.sv-panel h2{font-family:'Cormorant Garamond',serif;font-size:clamp(32px,3.8vw,50px);font-weight:600;line-height:1.05;text-shadow:0 2px 18px rgba(0,0,0,.4)}
.sv-panel .sv-eyebrow{margin-bottom:14px}
.sv-panel .sv-addr{display:flex;gap:8px;align-items:center;font-size:14px;margin-top:11px;opacity:.95}
.sv-panel .sv-addr svg{width:17px;height:17px;stroke:var(--brass);fill:none;stroke-width:1.9;flex:none}
.sv-note{display:inline-flex;gap:8px;align-items:center;font-size:12.5px;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:9px 13px;margin-top:13px;align-self:flex-start;backdrop-filter:blur(6px)}
.sv-note svg{width:15px;height:15px;stroke:var(--brass);fill:none;stroke-width:2;flex:none}
.sv-info{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px;max-width:480px}
.sv-info .ir{display:inline-flex;width:auto;gap:9px;align-items:center;font-size:13.5px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:11px;padding:9px 13px;backdrop-filter:blur(4px)}
.sv-info .ir svg{width:16px;height:16px;stroke:var(--brass);fill:none;stroke-width:1.8;flex:none;stroke-linecap:round;stroke-linejoin:round}
.sv-info .ir a{text-decoration:underline;text-underline-offset:2px}
.sv-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.sv-cta a,.sv-cta button{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:24px;font-size:14.5px;font-weight:600}
.sv-cta .pri{background:var(--brass);color:#fff}
.sv-cta .sec{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(6px)}
.sv-cta svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ===== VISTA PROGETTO (punto 5) — overlay immersivo a tutta pagina, riusa le classi .sv- ===== */
#projview{position:fixed;inset:0;z-index:2400;display:none;overflow:hidden;background:var(--ink)}
#projview.open{display:block;animation:fadein .3s ease}
#projview .sv-panel{max-width:580px}
/* superfici usate nel progetto: più di una, ognuna linkata alla sua scheda su laminam.com */
.pv-surfhd{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:rgba(255,255,255,.72);margin-top:17px}
.pv-surfhd svg{width:14px;height:14px;stroke:var(--brass);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pv-surfs{display:flex;flex-direction:column;gap:7px;margin-top:9px;max-width:430px}
/* def10 — la riga superficie non e' piu' un link esterno ma un pulsante che porta in mappa:
   da <a> a <button>, quindi serve la larghezza piena che l'ancora prendeva dal flusso. */
.pv-surf{display:flex;align-items:center;gap:11px;width:100%;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(5px);color:#fff;text-decoration:none;text-align:left;transition:background .18s,border-color .18s,transform .18s}
.pv-surf:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.32);transform:translateX(3px)}
.pv-surf:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.pv-goto{flex:none;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brass);white-space:nowrap}
.pv-surfhint{display:block;font-size:11.5px;color:rgba(255,255,255,.6);margin-top:8px;line-height:1.4}
@media(max-width:480px){.pv-goto{display:none}}
.pv-sw{width:34px;height:34px;border-radius:8px;flex:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.pv-stx{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.pv-stx b{font-size:13.5px;font-weight:600;line-height:1.25}
.pv-stx span{font-size:11.5px;color:rgba(255,255,255,.72)}
.pv-ext{width:15px;height:15px;flex:none;stroke:var(--brass);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
@media(max-width:900px){
  #projview .sv-panel{max-width:none;padding:26px 22px calc(28px + env(safe-area-inset-bottom));justify-content:flex-end}
  #projview .sv-bg .sv-scrim{background:linear-gradient(0deg,rgba(0,0,0,.84) 0%,rgba(0,0,0,.4) 55%,rgba(0,0,0,.12) 100%)}
  .pv-surfs{max-width:none}
}

/* ===== FORM PROFESSIONISTA (SAP CX) — punto 5 ===== */
#bizscrim{position:fixed;inset:0;background:rgba(6,20,28,.5);backdrop-filter:blur(4px);z-index:2600;opacity:0;pointer-events:none;transition:opacity .25s}
#bizscrim.open{opacity:1;pointer-events:auto}
#bizform{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.97);z-index:2601;width:min(560px,94vw);max-height:90vh;overflow-y:auto;background:var(--surface);border-radius:22px;padding:26px 26px calc(24px + env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transition:transform .25s,opacity .2s}
#bizform.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
#bizform .bizclose{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center}
#bizform .bizclose:hover{background:var(--surface2)}
#bizform .bizclose svg{width:19px;height:19px;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round}
#bizform h3{font-size:19px;font-weight:600;margin-bottom:5px;padding-right:34px}
#bizform .bizsub{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:14px}
#bizform .biztag{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:700;color:var(--brand);background:var(--brand-soft);border:1px solid color-mix(in srgb,var(--brand) 30%,transparent);border-radius:9px;padding:6px 11px;margin-bottom:16px}
#bizform .biztag svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}
#bizform .biztag:empty{display:none}
.bizgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.bizfield{display:flex;flex-direction:column;min-width:0}
.bizfield.full{grid-column:1 / -1}
.bizfield label{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.bizfield input,.bizfield textarea,.bizfield select{width:100%;border:1.5px solid var(--line);background:var(--surface2);color:var(--ink);border-radius:11px;padding:11px 13px;outline:none;font-size:14.5px;resize:vertical}
.bizfield select option{background:var(--surface);color:var(--ink)}
.bizfield select{appearance:none;-webkit-appearance:none;cursor:pointer;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566570' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 11px center;background-size:16px;padding-right:34px}
.bizfield input:focus,.bizfield textarea:focus,.bizfield select:focus{border-color:var(--ink)}
.bizfield select.err{border-color:#c0392b;background-color:color-mix(in srgb,#c0392b 7%,var(--surface2))}
.bizaddr{position:relative;display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);background:var(--surface2);border-radius:11px;padding:0 11px}
.bizaddr:focus-within{border-color:var(--ink)}
.bizaddr>svg{width:17px;height:17px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.8}
.bizaddr input{border:none;background:none;padding:11px 0}
.bizaddr input:focus{border:none}
#bzdrop{position:absolute;left:-1px;right:-1px;top:46px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);overflow:hidden;display:none;z-index:5}
#bzdrop button{display:flex;gap:9px;align-items:center;width:100%;padding:11px 13px;font-size:14px;text-align:left}
#bzdrop button:hover{background:var(--surface2)}
#bzdrop svg{width:15px;height:15px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.8}
.bizflag{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:11.5px;color:var(--muted);line-height:1.5;cursor:pointer}
.bizflag input{flex:none;width:18px;height:18px;margin-top:1px;accent-color:var(--brand)}
#bizform .btnmain{margin-top:18px}
#leadform .btnmain{margin-top:18px}
/* campi obbligatori + stati di errore */
.bizfield label{display:flex;align-items:center;gap:3px}
.rq{color:#c0392b;font-style:normal;font-weight:700}
.bizfield input.err,.bizfield textarea.err,.bizaddr.err{border-color:#c0392b;background:color-mix(in srgb,#c0392b 7%,var(--surface2))}
.bizflag.err span{color:#c0392b}
.bizflag.err input{outline:2px solid #c0392b;outline-offset:1px}
@media(max-width:560px){.bizgrid{grid-template-columns:1fr}.bizfield.full{grid-column:auto}}
/* ===== FORM CONTATTO B2C (lead) — riusa l'impianto del form professionista ===== */
#leadscrim{position:fixed;inset:0;background:rgba(6,20,28,.5);backdrop-filter:blur(4px);z-index:2600;opacity:0;pointer-events:none;transition:opacity .25s}
#leadscrim.open{opacity:1;pointer-events:auto}
#leadform{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.97);z-index:2601;width:min(560px,94vw);max-height:90vh;overflow-y:auto;background:var(--surface);border-radius:22px;padding:26px 26px calc(24px + env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transition:transform .25s,opacity .2s}
#leadform.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
#leadform .bizclose{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center}
#leadform .bizclose:hover{background:var(--surface2)}
#leadform .bizclose svg{width:19px;height:19px;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round}
#leadform h3{font-size:19px;font-weight:600;margin-bottom:5px;padding-right:34px}
#leadform .bizsub{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:14px}
/* riepilogo di cosa/dove sta cercando l'utente (gli stessi dati viaggiano nei campi hidden) */
.leadctx{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.leadctx:empty{display:none}
.leadctx .lx{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--brand);background:var(--brand-soft);border:1px solid color-mix(in srgb,var(--brand) 28%,transparent);border-radius:13px;padding:5px 11px}
.leadctx .lx svg{width:12px;height:12px;flex:none;stroke:currentColor;fill:none;stroke-width:2}

/* ===== FILTER SHEET / FORM / TOAST ===== */
#fscrim,#cscrim{position:fixed;inset:0;background:rgba(10,9,7,.45);z-index:1100;opacity:0;pointer-events:none;transition:opacity .25s}
#fscrim.open,#cscrim.open{opacity:1;pointer-events:auto}
#cscrim{z-index:1600}
#fscrim{z-index:1540}
#fsheet{position:fixed;left:0;right:0;bottom:0;z-index:1541;background:var(--surface);border-radius:20px 20px 0 0;transform:translateY(105%);transition:transform .3s cubic-bezier(.3,.9,.3,1);max-height:72vh;display:flex;flex-direction:column}
#fsheet.open{transform:translateY(0)}
#fsheet .fhdr{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px;flex:none}
#fsheet .fhdr h3{font-size:15px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
#fsheet .fhdr button{font-size:13px;color:var(--muted);text-decoration:underline}
#fbody{overflow-y:auto;padding:0 20px}
#ffoot{padding:14px 20px calc(16px + env(safe-area-inset-bottom));flex:none}
.btnmain{width:100%;height:48px;border-radius:24px;background:var(--ink);color:var(--chipon-ink);font-weight:600;font-size:14.5px}
.optrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 4px;border-bottom:1px solid var(--line);font-size:14.5px}
.optrow:last-child{border-bottom:none}
.optrow .lic,.optrow .sw{width:34px;height:34px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center}
.optrow .sw{border:1px solid var(--line)}
.optrow .minislab{width:24px;height:30px;border-radius:5px;background:var(--ink);display:flex;align-items:center;justify-content:center}
.optrow .minislab svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:2}
.optrow .ck{width:21px;height:21px;border-radius:6px;border:1.8px solid var(--muted);margin-left:auto;flex:none;display:flex;align-items:center;justify-content:center}
.optrow.on .ck{background:var(--ink);border-color:var(--ink)}
.optrow.on .ck::after{content:'✓';color:var(--chipon-ink);font-size:13px;font-weight:700}
.optrow.radio .ck{border-radius:50%}
.optrow .osub{font-size:12px;color:var(--muted);display:block;margin-top:1px}
.rwrap{padding:8px 4px 18px}
.rval{font-size:30px;font-weight:600;margin-bottom:4px}
.rval small{font-size:14px;color:var(--muted);font-weight:400}
.rnote{font-size:12.5px;color:var(--muted);margin-bottom:18px}
input[type=range]{width:100%;accent-color:var(--ink);height:34px}
#cform{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);z-index:1601;width:min(440px,92vw);background:var(--surface);border-radius:20px;padding:22px 22px calc(22px + env(safe-area-inset-bottom));max-height:88vh;overflow-y:auto;opacity:0;pointer-events:none;transition:transform .25s,opacity .2s;box-shadow:var(--shadow-lg)}
#cform.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
#cform h3{font-size:17px;font-weight:600;margin-bottom:4px}
#cform .csub{font-size:13px;color:var(--muted);margin-bottom:16px;line-height:1.5}
#cform label{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}
#cform input,#cform textarea{width:100%;border:1.5px solid var(--line);background:var(--surface2);border-radius:12px;padding:12px 14px;outline:none;font-size:14.5px;resize:vertical}
#cform input:focus,#cform textarea:focus{border-color:var(--ink)}
/* L'informativa privacy del modulo showroom: le regole generali di #cform
   (etichette in maiuscolo e campi a tutta larghezza) hanno la meglio su
   .bizflag, quindi la spunta veniva stirata come un campo di testo e la riga
   scritta in maiuscoletto. Qui la si riporta com'e' negli altri due moduli. */
#cform label.bizflag{display:flex;gap:10px;align-items:flex-start;margin:16px 0 0;
  font-size:11.5px;font-weight:400;letter-spacing:normal;text-transform:none;
  color:var(--muted);line-height:1.5;cursor:pointer}
#cform label.bizflag input{flex:none;width:18px;height:18px;margin-top:1px;padding:0;
  border-radius:4px;accent-color:var(--brand)}
#cform label.bizflag.err{color:#c0392b}
#cform .btnmain{margin-top:18px}
/* cambia zona (popover nei risultati) */
#zonescrim{position:fixed;inset:0;background:rgba(10,9,7,.45);z-index:1600;opacity:0;pointer-events:none;transition:opacity .25s}
#zonescrim.open{opacity:1;pointer-events:auto}
#zonepop{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);z-index:1601;width:min(420px,92vw);background:var(--surface);border-radius:20px;padding:22px 22px calc(20px + env(safe-area-inset-bottom));opacity:0;pointer-events:none;transition:transform .25s,opacity .2s;box-shadow:var(--shadow-lg)}
#zonepop.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
#zonepop h3{font-size:16px;font-weight:600;margin-bottom:14px}
.zpfield{display:flex;align-items:center;gap:9px;background:var(--surface2);border:1.5px solid var(--line);border-radius:14px;padding:6px 6px 6px 12px}
.zpfield>svg{width:18px;height:18px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.8}
.zpfield input{flex:1;min-width:0;border:none;background:none;outline:none;font-size:15px;padding:10px 0}
.zpfield #zonegps{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface)}
.zpfield #zonegps svg{width:17px;height:17px;stroke:var(--dot);fill:none;stroke-width:1.9}
#zonedrop{margin-top:6px;display:none}
#zonedrop button{display:flex;gap:10px;align-items:center;width:100%;padding:11px 12px;font-size:14px;border-radius:10px;text-align:left}
#zonedrop button:hover{background:var(--surface2)}
#zonedrop svg{width:15px;height:15px;stroke:var(--muted);fill:none;stroke-width:1.8;flex:none}
#zonepop .btnmain{margin-top:16px}
#zoomimg{position:fixed;inset:0;z-index:1700;background:rgba(8,7,6,.85);display:none;align-items:center;justify-content:center;cursor:zoom-out;flex-direction:column;gap:14px}
#zoomimg.open{display:flex}
#zoomimg .zsw{width:min(86vw,560px);height:min(60vh,420px);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
#zoomimg p{color:#fff;font-size:13.5px;opacity:.9}
#infopop{position:fixed;z-index:1750;max-width:264px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);padding:12px 14px;font-size:12.5px;line-height:1.5;color:var(--ink);opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity .15s,transform .15s}
#infopop.show{opacity:1;transform:none;pointer-events:auto}
#infopop b{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;letter-spacing:.03em;margin-bottom:5px;color:var(--brand)}
#infopop b::before{content:'';width:9px;height:9px;border-radius:3px;background:var(--brass);flex:none}
#toast{position:fixed;left:50%;transform:translateX(-50%) translateY(20px);bottom:30px;z-index:3200;background:var(--ink);color:var(--chipon-ink);border-radius:14px;padding:12px 16px;font-size:13px;box-shadow:var(--shadow);opacity:0;transition:all .3s;max-width:88vw;pointer-events:none;line-height:1.5}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
#toast.click{pointer-events:auto;cursor:pointer}
#toast b,#toast u{color:var(--brass)}

/* ===== INTERPRETAZIONE / ELABORAZIONE RICERCA (loader stile prototipo C) ===== */
#thinking{position:fixed;inset:0;z-index:2200;display:none;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:color-mix(in srgb,var(--bg) 74%,transparent);backdrop-filter:blur(12px);text-align:center;padding:24px}
#thinking.on{display:flex;animation:fadein .25s ease}
#thinking .orb{width:84px;height:84px;border-radius:50%;background:conic-gradient(from 0deg,#15a0b8,#003b5c,#7af0ff,#3fe0ff,#15a0b8);animation:spin 1.3s linear infinite;-webkit-mask:radial-gradient(circle,transparent 54%,#000 56%);mask:radial-gradient(circle,transparent 54%,#000 56%);box-shadow:0 0 30px color-mix(in srgb,#15a0b8 45%,transparent)}
@keyframes spin{to{transform:rotate(360deg)}}
#thinking .tx{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(20px,4.5vw,26px);color:var(--ink);max-width:560px}
#thinking .understood{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:580px;min-height:34px}
#thinking .understood span{padding:6px 13px;border-radius:16px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--ink);box-shadow:var(--shadow);animation:pop .3s ease both}
@keyframes pop{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}

/* ===== OVERLAY RICERCA AI (vista risultati) ===== */
#aiscrim{position:fixed;inset:0;background:rgba(4,16,24,.55);backdrop-filter:blur(3px);z-index:1650;display:none}
#aiscrim.open{display:block}
#aipanel{position:fixed;left:50%;top:96px;transform:translateX(-50%) translateY(-12px);z-index:1651;width:min(620px,92vw);background:var(--surface);border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:transform .26s cubic-bezier(.3,.9,.3,1);overflow:hidden;border:1.5px solid color-mix(in srgb,#15a0b8 40%,transparent)}
#aipanel.open{opacity:1;pointer-events:auto;transform:translateX(-50%)}
.aihead{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 6px}
.aihtitle{display:flex;gap:12px;align-items:center}
.aispark{width:40px;height:40px;flex:none;border-radius:13px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0a5078,#15a0b8)}
.aispark svg{width:21px;height:21px;stroke:#fff;fill:none;stroke-width:1.6}
.aihtitle b{font-size:15.5px;font-weight:600;display:block}
.aihtitle small{font-size:12.5px;color:var(--muted)}
.aiclose{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.aiclose:hover{background:var(--surface2)}
.aiclose svg{width:19px;height:19px;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round}
.aisugg{padding:14px 18px 4px}
.aisl{font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.aischips{display:flex;flex-direction:column;gap:8px}
.aischips button{text-align:left;padding:12px 14px;border-radius:13px;background:var(--surface2);border:1px solid var(--line);font-size:14px;display:flex;gap:10px;align-items:center;transition:.15s}
.aischips button::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--brand);flex:none}
.aischips button:hover{border-color:var(--brand);background:var(--brand-soft)}
.aiinputwrap{padding:12px 18px 18px}
#raiq{width:100%;border:1.5px solid var(--line);background:var(--surface2);border-radius:16px;padding:14px 16px;outline:none;font-size:15.5px;line-height:1.45;resize:none;transition:border-color .15s,box-shadow .15s}
#raiq:focus{border-color:#15a0b8;box-shadow:0 0 0 4px color-mix(in srgb,#15a0b8 22%,transparent)}
.aibar{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:12px}
.aihint{font-size:11.5px;color:var(--muted)}
.aisend{flex:none;display:flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:22px;color:#fff;font-weight:600;font-size:14.5px;background:linear-gradient(110deg,#003b5c,#15a0b8)}
.aisend:hover{filter:brightness(1.08)}
.aisend svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){
  #aipanel{left:12px;right:12px;top:12px;width:auto;transform:translateY(-12px)}
  #aipanel.open{transform:none}
}
/* ===== OVERLAY NUOVA RICERCA (vista risultati, punto 5) — riquadro come la ricerca AI ===== */
#newscrim{position:fixed;inset:0;background:rgba(4,16,24,.55);backdrop-filter:blur(3px);z-index:1650;display:none}
#newscrim.open{display:block}
#newpanel{position:fixed;left:50%;top:70px;transform:translateX(-50%) translateY(-12px);z-index:1651;width:min(780px,92vw);max-height:calc(100vh - 100px);display:flex;flex-direction:column;background:var(--surface);border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:transform .26s cubic-bezier(.3,.9,.3,1);overflow:hidden;border:1.5px solid var(--line)}
#newpanel.open{opacity:1;pointer-events:auto;transform:translateX(-50%)}
#newpanel .np-spark{background:linear-gradient(135deg,#0a5078,#003b5c)}
.npbody{overflow-y:auto;padding:8px 20px 10px}
.npfoot{flex:none;padding:14px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.npfoot .btnmain{display:flex;align-items:center;justify-content:center;gap:8px}
.npfoot .btnmain svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.npfoot .btnmain:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.35)}
#newpanel .tradrow{display:flex;align-items:center;gap:8px;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:5px 5px 5px 12px}
@media(max-width:900px){
  #newpanel{left:12px;right:12px;top:12px;bottom:12px;width:auto;max-height:none;transform:translateY(-12px)}
  #newpanel.open{transform:none}
}

/* ===== MOBILE (default: nascondi elementi mobile su desktop) ===== */
#floatwrap{display:none}
@media(max-width:900px){
  /* COLONNA = bottom sheet trascinabile con la LISTA COMPLETA (stile prototipo A) */
  #col{left:0;right:0;top:auto;bottom:0;width:auto;height:86vh;border-radius:18px 18px 0 0;
       box-shadow:0 -6px 30px rgba(0,40,60,.20);z-index:900;
       transform:translateY(calc(86vh - 150px));transition:transform .3s cubic-bezier(.3,.9,.3,1)}
  #col.dragging{transition:none}
  #colhandle{display:block;flex:none;padding:9px 0 5px;cursor:grab;touch-action:none}
  #colhandle::before{content:'';display:block;width:42px;height:4px;border-radius:2px;background:var(--line);margin:0 auto}
  .colhead{padding:2px 14px 8px;border-bottom:none}
  .colhead .colhead-top{display:flex}        /* mostra solo il selettore posizione */
  .colhead .searchbar{display:none}
  #themetop{display:none}                     /* su mobile il tema è in fondo alla riga della testata */
  .colhead .locpill{margin-top:0}
  .colsub{padding:2px 16px 8px}
  #list{padding-bottom:calc(24px + env(safe-area-inset-bottom))}

  /* def9 — i filtri salgono in cima: la riga che occupava #mtop non c'è più */
  #filters{left:8px;right:8px;top:8px}

  /* FAB ancorati in basso, sopra il bordo dello sheet al peek (riposizionati via JS); 162px = 86vh-(86vh-150)+12 */
  #fabs{top:auto;right:10px;bottom:162px}

  #floatwrap{display:none}   /* niente carosello: la lista è nello sheet */

  /* dettaglio come bottom sheet sopra lo sheet-lista */
  #iscrim{display:block;position:fixed;inset:0;background:rgba(10,9,7,.5);z-index:1190;opacity:0;pointer-events:none;transition:opacity .25s}
  #iscrim.open{opacity:1;pointer-events:auto}
  #island{left:0;right:0;top:auto;bottom:0;width:auto;max-height:calc(100vh - 128px);border-radius:20px 20px 0 0;transform:translateY(100%);transition:transform .32s cubic-bezier(.3,.9,.3,1);z-index:1200}
  #island.open{transform:translateY(0)}
  .dactions a,.dactions button{min-width:46%}

  /* showroom su mobile: copre l'area mappa */
  #showroom{left:8px;right:8px;bottom:8px;top:64px}   /* i filtri sono saliti: niente banda morta sotto */
  #showroom.open{height:auto}
  .sv-panel{max-width:none;padding:26px 22px calc(24px + env(safe-area-inset-bottom));justify-content:flex-end}
  .sv-bg .sv-scrim{background:linear-gradient(0deg,rgba(0,0,0,.84) 0%,rgba(0,0,0,.4) 55%,rgba(0,0,0,.12) 100%)}
  .sv-info{max-width:none}
}
@media(min-width:901px){
  #iscrim{display:none!important}
}
/* ============================================================
   SKIN def3-b — stile delle immagini feedback 003
   Stesse funzionalità di def3, restyle di hero + ispirazione.
   (navbar rimossa: era una forzatura non funzionale)
   ============================================================ */
/* hero un filo più ariosa/editoriale */
.hwrap{padding-top:clamp(18px,5vh,52px)}
#htitle{font-size:clamp(34px,6.2vw,58px)}
/* ===== def7 — interfaccia a step (rif. reference-def7.png) ===== */
/* titolo numerato di sezione */
.stephd{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:700;letter-spacing:.02em;color:var(--ink);margin-bottom:12px}
.stephd .stepn{width:21px;height:21px;flex:none;border-radius:50%;background:var(--brand);color:#fff;font-size:11.5px;font-weight:700;line-height:21px;text-align:center}
html[data-theme="dark"] .stephd .stepn{color:#062A3D}
/* step 1 — Chi sei? : due pulsanti larghi */
.profseg{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:none;border:none;border-radius:0;padding:0;margin:0;box-shadow:none}
.profseg button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:0 18px;border-radius:14px;background:var(--surface2);border:1.5px solid var(--line);font-size:14.5px;font-weight:600;color:var(--muted);transition:background .18s,color .18s,border-color .18s}
.profseg button .segic{display:flex}
.profseg button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profseg button:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent);color:var(--ink)}
.profseg button.on{background:var(--ink);color:var(--chipon-ink);border-color:var(--ink)}
/* step 2 — Come vuoi cercare? : due card con sottotitolo */
.modeseg{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:none;border:none;border-radius:0;padding:0;margin:0;box-shadow:none}
.modeseg .seg{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:66px;padding:13px 15px;border-radius:14px;background:var(--surface2);border:1.5px solid var(--line);text-align:left;transition:background .18s,color .18s,border-color .18s}
.modeseg .seg .segic{width:34px;height:34px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--line)}
.modeseg .seg svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modeseg .seg .segtx{display:flex;flex-direction:column;gap:2px;min-width:0}
.modeseg .seg .segtx b{font-size:14px;font-weight:700;line-height:1.2}
.modeseg .seg .segtx span{font-size:11.5px;font-weight:500;color:var(--muted);line-height:1.35}
.modeseg .seg:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent)}
.modeseg .seg.on{border-color:var(--brand);background:var(--brand-soft);color:var(--ink);box-shadow:none}
.modeseg .seg.on .segtx span{color:color-mix(in srgb,var(--brand) 78%,var(--muted))}
.modeseg .seg.on .segic{background:var(--surface);border-color:color-mix(in srgb,var(--brand) 40%,transparent)}
.modeseg .seg.ai.on{background:linear-gradient(110deg,#003b5c,#0a5078 40%,#0d6491 66%,#15a0b8);background-size:220% 100%;animation:aiflow 7s ease-in-out infinite;color:#fff;border-color:transparent}
.modeseg .seg.ai.on .segtx span{color:rgba(255,255,255,.82)}
.modeseg .seg.ai.on .segic{background:rgba(255,255,255,.16);border-color:transparent}
.modeseg .seg.ai.on .sparkle{animation:twinkle 2.2s ease-in-out infinite}
@media(max-width:560px){.profseg,.modeseg{grid-template-columns:1fr}}
/* container bianco a step */
.searchcard{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(20px,3vw,30px);box-shadow:var(--shadow-lg);max-width:780px;width:100%;margin:0 auto;text-align:left}
.searchcard .prompt{box-shadow:0 0 18px color-mix(in srgb,#3fe0ff 18%,transparent)}
.searchcard .tradrow{background:var(--surface);border:1.5px solid var(--line);box-shadow:none;border-radius:14px;padding:5px 5px 5px 12px}
.tradsec{margin-top:20px}
.mode>.tradsec:first-child{margin-top:20px}
.searchcard>.tradsec:first-child,.npbody>.tradsec:first-child{margin-top:0}
/* def7bis — scelta modalità posizione (Usa la mia posizione / Inserisci un indirizzo) */
.locmodeseg{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.locmodeseg button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 14px;border-radius:12px;background:var(--surface2);border:1.5px solid var(--line);font-size:13.5px;font-weight:600;color:var(--muted);transition:background .18s,color .18s,border-color .18s}
.locmodeseg button svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.locmodeseg button:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent);color:var(--ink)}
.locmodeseg button.on{background:var(--brand-soft);border-color:var(--brand);color:var(--ink)}
.locmodeseg button.on svg{stroke:var(--brand)}
@media(max-width:560px){.locmodeseg{grid-template-columns:1fr}}
/* messaggio di stato posizione: "Calcolo in corso…" (spinner) / errore rilevazione */
.locstatus{display:flex;align-items:center;gap:11px;margin-bottom:14px;padding:13px 15px;border-radius:14px;background:var(--surface2);border:1px solid var(--line);font-size:13px;font-weight:600;line-height:1.4}
.locstatus.calc{color:var(--brand);background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand) 26%,transparent)}
.locstatus.err{color:var(--brass);background:var(--brass-soft);border-color:color-mix(in srgb,var(--brass) 32%,transparent)}
.locstatus svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.locstatus .locspin{width:18px;height:18px;flex:none;border-radius:50%;border:2.5px solid color-mix(in srgb,var(--brand) 28%,transparent);border-top-color:var(--brand);animation:spin .8s linear infinite}
@media (prefers-reduced-motion:reduce){.locstatus .locspin{animation:spin 1.4s linear infinite}}
/* riga indirizzo (step 4): campo + "usa la mia posizione" + trova */
.tgeo{flex:none;display:inline-flex;align-items:center;gap:7px;height:46px;padding:0 15px;border-radius:23px;background:var(--surface2);border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:13px;white-space:nowrap;transition:border-color .15s,background .15s}
.tgeo svg{width:17px;height:17px;flex:none;stroke:var(--dot);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tgeo:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent);background:var(--brand-soft)}
@media(max-width:640px){
  /* mobile: il pulsante "Trova punti vendita" esce dal campo — campo su una riga, pulsante pieno sotto */
  .searchcard .tradrow{flex-direction:column;align-items:stretch;gap:10px;background:none;border:none;box-shadow:none;padding:0;border-radius:0;backdrop-filter:none}
  .searchcard .tradrow .tfield.loc{flex:1 1 100%;order:1;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);padding:5px 14px}
  .searchcard .tradrow .tgo{order:2;width:100%;margin-left:0;justify-content:center;height:48px}
  #newpanel .tradrow{flex-wrap:wrap}
  #newpanel .tradrow .tfield.loc{flex:1 1 100%;order:1}
}
#advbtn{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface2)}
#advbtn svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:1.7}
#advbtn.on{background:var(--brand-soft)}#advbtn.on svg{stroke:var(--brand)}
.facetadv{margin-top:12px;padding-top:14px;border-top:1px solid var(--line)}
/* etichetta sulla modalità di rilevamento posizione (GPS/IP) — invito a correggere l'approssimata */
.locmode{display:flex;align-items:center;gap:7px;margin-top:9px;font-size:11.5px;font-weight:600;line-height:1.4}
.locmode svg{width:14px;height:14px;flex:none;fill:none;stroke-width:1.9}
.locmode.gps{color:var(--ok)}.locmode.gps svg{stroke:var(--ok)}
.locmode.ip{color:var(--brass)}.locmode.ip svg{stroke:var(--brass)}
#bizcta{margin-top:18px;display:flex;justify-content:flex-end}
#bizcta .bizgo{padding:0 24px}
/* [hidden] deve prevalere sui display espliciti (selettori ID) */
#bizcta[hidden],#locrow[hidden],#locfield[hidden],#np-locfield[hidden],#locstatus[hidden],#np-locstatus[hidden],#facetadv[hidden],#locmode[hidden],#modeseg[hidden],#modestep[hidden],#np-modestep[hidden],#np-catpickhint[hidden],#homeinsp[hidden]{display:none!important}
/* Lasciati ispirare — UNA sola riga, 4 progetti (punto 4) */
.homeinsp{max-width:1040px;margin:46px auto 8px;text-align:left}
/* def10 — testata su una riga: titolo a sinistra, "Mostra altri" a destra allineato alla
   base del titolo. Sotto la griglia il pulsante suggeriva un load-more in aggiunta, mentre
   qui i 4 progetti li rimpiazza: accanto al titolo si legge come azione sulla sezione.
   Stessa impaginazione di .insphd nei risultati mappa. */
.homeinsp .hi-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.homeinsp .hi-hd .hi-hd-tx{display:flex;flex-direction:column;gap:4px;min-width:0}
.homeinsp .hi-hd .hi-eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.homeinsp .hi-hd b{font-size:clamp(22px,3.6vw,30px);font-weight:600}
.hi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
/* mobile: carosello orizzontale, card ratio 1.5 above-the-fold, niente overflow di pagina (punto 4) */
@media(max-width:760px){
  .hi-grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px;max-width:100%}
  .hi-grid::-webkit-scrollbar{display:none}
  .hi-card{flex:0 0 66%;height:auto;aspect-ratio:1.5;scroll-snap-align:start}
}
/* card progetto con immagine reale del progetto */
.hi-card{position:relative;display:flex;align-items:flex-end;height:188px;border-radius:16px;overflow:hidden;text-decoration:none;background:var(--g);background-size:cover;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;cursor:pointer;text-align:left;width:100%}
.hi-card .hi-img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;display:block}
.hi-card::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.28) 58%,rgba(0,0,0,.72))}
.hi-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.hi-cat{position:absolute;z-index:2;top:11px;left:11px;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:rgba(0,0,0,.4);backdrop-filter:blur(4px);padding:4px 8px;border-radius:7px}
.hi-lab{position:relative;z-index:2;padding:13px 14px;color:#fff;width:100%}
.hi-lab b{display:block;font-size:14.5px;font-weight:700;line-height:1.25;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.hi-lab .hi-city{display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:500;opacity:.95;margin-top:5px}
.hi-lab .hi-city svg{width:12px;height:12px;flex:none;stroke:currentColor;fill:none;stroke-width:2}
.hi-arr{position:absolute;z-index:2;top:11px;right:11px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;transition:background .2s}
.hi-arr svg{width:16px;height:16px;stroke:#003b5c;fill:none;stroke-width:2}
.hi-card:hover .hi-arr{background:#fff}
/* def10 — "Mostra altri": la vetrina resta di 4 card, il pulsante le rimescola. */
.hi-more{flex:none;display:inline-flex;align-items:center;gap:9px;height:40px;padding:0 20px;border-radius:20px;font-size:13.5px;font-weight:600;white-space:nowrap;color:var(--brand);background:var(--surface);border:1px solid var(--line);transition:border-color .15s,background .15s,box-shadow .15s}
.hi-more:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent);background:var(--brand-soft);box-shadow:var(--shadow)}
.hi-more:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.hi-more svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .45s ease}
.hi-more:hover svg{transform:rotate(-180deg)}
/* rientro delle card dopo il rimescolo: cambia solo l'opacita', niente salti di layout */
@keyframes hiIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.hi-grid.hi-in .hi-card{animation:hiIn .34s ease both}
.hi-grid.hi-in .hi-card:nth-child(2){animation-delay:.05s}
.hi-grid.hi-in .hi-card:nth-child(3){animation-delay:.1s}
.hi-grid.hi-in .hi-card:nth-child(4){animation-delay:.15s}
@media(max-width:600px){.hi-more{height:36px;padding:0 14px;gap:7px;font-size:12.5px}.homeinsp .hi-hd{gap:12px}}
@media(prefers-reduced-motion:reduce){.hi-grid.hi-in .hi-card{animation:none}.hi-more svg{transition:none}}
/* CTA Professionista (B2B in secondo piano) — banner orizzontale in fondo alla home (rif. cta-b2b.png) */
.procta{display:flex;align-items:center;gap:18px;width:100%;max-width:1040px;margin:26px auto 8px;padding:20px 26px;border-radius:16px;background:var(--surface2);border:1px solid var(--line);text-align:left;transition:border-color .15s,background .15s,box-shadow .15s}
.procta:hover{border-color:color-mix(in srgb,var(--brand) 45%,transparent);box-shadow:var(--shadow)}
.procta .procta-ic{flex:none;width:46px;height:46px;display:flex;align-items:center;justify-content:center}
.procta .procta-ic svg{width:34px;height:34px;stroke:var(--ink);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.procta .procta-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.procta .procta-tx b{font-size:16.5px;font-weight:700;color:var(--ink);line-height:1.25}
.procta .procta-tx span{font-size:13.5px;color:var(--muted);line-height:1.45}
.procta .procta-go{flex:none;display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:var(--brand)}
.procta .procta-go span{text-decoration:underline;text-underline-offset:3px}
.procta .procta-go svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.procta:hover .procta-go svg{transform:translateX(3px);transition:transform .15s}
@media(max-width:640px){.procta{flex-wrap:wrap;gap:12px;padding:18px}.procta .procta-tx{flex:1 1 60%}.procta .procta-go{width:100%;justify-content:flex-end}}
/* pulsante GPS "approfondimento posizione precisa" dentro il campo indirizzo */
.tfield #tgps:hover{background:var(--brand-soft)}
.tfield #tgps.busy svg{animation:spin .9s linear infinite}

/* ============================================================
   def9 — revisioni su rif. review_home_wtb.png
   1) selettore di ricerca fuori dal container   2) illustrazioni sulle 3 card
   3) mappa dark "ibrida"                        4) logo Laminam ufficiale
   ============================================================ */

/* ---- 1. selettore modalità: pill centrata sotto l'introduzione, fuori dal container bianco ---- */
#modestep{margin:0 auto 22px;text-align:center}
#modestep .modeseg{display:inline-flex;width:auto;gap:6px;padding:5px;border-radius:32px;
  background:var(--glass-strong);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(10px)}
#modestep .modeseg .seg{justify-content:center;gap:10px;min-height:48px;padding:0 26px;border-radius:28px;
  background:transparent;border:1.5px solid transparent;color:var(--ink);box-shadow:none}
#modestep .modeseg .seg .segic{width:auto;height:auto;background:none;border:none;border-radius:0}
#modestep .modeseg .seg svg{width:19px;height:19px}
#modestep .modeseg .seg .segtx{gap:0}
#modestep .modeseg .seg .segtx b{font-size:14.5px;font-weight:600;line-height:1}
/* nel reference la pill porta solo l'etichetta: i sottotitoli restano nel DOM per le traduzioni */
#modestep .modeseg .seg .segtx span{display:none}
#modestep .modeseg .seg:hover{border-color:transparent;background:color-mix(in srgb,var(--ink) 7%,transparent)}
#modestep .modeseg .seg.on{background:var(--ink);border-color:transparent;color:var(--chipon-ink);box-shadow:var(--shadow)}
#modestep .modeseg .seg.on .segic{background:none;border:none}
#modestep .modeseg .seg.ai.on{background:linear-gradient(110deg,#003b5c,#0a5078 40%,#0d6491 66%,#15a0b8);
  background-size:220% 100%;animation:aiflow 7s ease-in-out infinite;color:#fff;border-color:transparent}
@media(max-width:560px){
  #modestep .modeseg{display:flex;width:100%}
  #modestep .modeseg .seg{flex:1;padding:0 10px}
}

/* ---- 2. illustrazioni di categoria (icone-review-home): tratto sottile, formato 240×200 ---- */
.lcard .lic{height:auto;min-height:56px}
.lcard .lic svg.catbig{width:auto;height:62px;color:var(--ink)}
.lcard .lic svg.catbig g{stroke:currentColor;stroke-width:3.4}
.lcard.lam .lic svg.catbig{color:var(--brand)}
.lcards.compact .lcard .lic{min-height:0}
.lcards.compact .lcard .lic svg.catbig{height:36px}
@media(max-width:600px){
  .lcards:not(.compact) .lcard .lic{min-height:0}
  .lcards:not(.compact) .lcard .lic svg.catbig{height:44px}
}

/* ---- 3. mappa in dark mode: tono "ibrido" (né nera né chiara), su richiesta cliente.
        I tile dark CARTO vengono schiariti e virati sul blu-grigio; il filtro tocca solo il
        riquadro dei tile, quindi marker, cluster e controlli restano invariati. ---- */
/* def10 — la dominante non e' piu' il grigio ma il primario #003b5c. I tile dark CARTO vengono
   schiariti, desaturati e poi ricolorati in duotono petrolio dal filtro SVG #mapblue (in fondo al body).
   Perche' un filtro e non un overlay in mix-blend-mode: il tile pane sta dentro .leaflet-map-pane, che
   e' trasformato e fa stacking context proprio — un overlay tingerebbe di blu anche marker e cluster.
   Le due righe sono una progressive enhancement: se url(#…) non fosse supportato la seconda viene
   scartata e resta il duotono grigio della prima, mappa comunque leggibile. */
/* I valori dipendono da quanto sono chiare le tessere di partenza: stanno in una
   variabile perche' cambiando fornitore vanno ritarati, e si impostano da
   data/map.json senza toccare questo file. Quelli qui sotto sono misurati sulle
   tessere in uso adesso (Esri dark gray). */
:root{--map-dark:brightness(1.15) contrast(.85) grayscale(1)}
html[data-theme="dark"] .leaflet-tile-pane{filter:var(--map-dark)}
html[data-theme="dark"] #lmap{background:#4E7B96}   /* niente lampo nero mentre i tile caricano */

/* ---- def9 — mobile, vista mappa: testata dello sheet a una riga, logo a sinistra e
        «Nuova ricerca» a destra. Prima il logo stava in una barra fissa #mtop che rubava la
        riga sopra i filtri e su mappa chiara era illeggibile.
        Il toggle tema non sta qui: sotto il grip dello sheet un pulsante finirebbe troppo
        vicino alla presa di trascinamento, quindi scende in fondo alla colonna dei fab. ---- */
#themebtn2{display:none}                      /* su desktop il tema è il tondo fisso #themetop */
@media(max-width:900px){
  #brandcol{display:inline-flex}              /* il logo torna visibile, qui dentro */
  .colhead{padding:2px 12px 8px}
  .colhead .colhead-top{gap:8px}
  .colhead .newsearchbtn{padding:0 14px}
  #themebtn2{display:flex}                    /* ultimo fab, sotto la localizzazione */
  /* il configuratore si aggancia alla colonna dei fab (bottom impostato da positionFabs);
     il valore qui è solo il fallback prima che il JS entri in gioco. */
  #configfab{top:auto;bottom:392px;transform:none}
  #configfab.mini{padding:12px 8px;border-radius:12px 0 0 12px}
  #configfab.mini .cfg-tx{display:none}
}

/* ---- 4. logo Laminam ufficiale: una sorgente inline, il colore lo dà il tema ---- */
.lamwm{display:block;width:auto;height:22px;color:#003B5C}
html[data-theme="dark"] .lamwm{color:#FFFFFF}
.hbar .hlogo{display:inline-flex;align-items:center}
.hbar .hlogo .lamwm{height:21px}
.brandhome .lamwm{height:19px}
@media(max-width:900px){#brandcol.brandhome .lamwm{height:17px}}
