/* CSP Center - child di Toolgard. Header a 3 livelli, footer, cassetti, bottom nav.
   Usa SOLO i token di csp-tokens.css (generato da design/tokens.css). Non esiste custom.css nel child: coprirebbe quello del parent. */

/* ---- base: font self-hosted, focus, utility ---- */
html body{font-family:var(--font)}
html body button,html body input,html body select,html body textarea{font-family:inherit}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.csp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.csp-skip{position:absolute;left:8px;top:-80px;z-index:200;background:var(--navy);color:#fff;padding:12px 16px;border-radius:var(--r-sm);font-weight:600;text-decoration:none}
.csp-skip:focus{top:8px;color:#fff}
.csp-container{width:100%;max-width:calc(var(--container) + 2*var(--gutter-m));margin-inline:auto;padding-inline:var(--gutter-m)}
/* Icone Lucide (sprite). Scala: 16 (xs) / 20 (sm) / 24 (default) / 32 (lg). Su sfondi scuri (testata, piede, barra arancio, pulsanti, tasti icona scuri) 20 px per il peso ottico. */
:root{--ico-stroke:var(--icon-stroke,1.75)}
.csp-ico{width:24px;height:24px;flex:none;stroke:currentColor;fill:none;stroke-width:var(--ico-stroke);stroke-linecap:round;stroke-linejoin:round}
:where(.csp-hdr,.csp-footer,.csp-topbar,.csp-btn,.csp-act,.csp-iconbtn:not(.csp-iconbtn--light)) .csp-ico{width:20px;height:20px}
.csp-ico--xs{width:16px;height:16px;--ico-stroke:2}
.csp-ico--sm{width:20px;height:20px}
.csp-ico--lg{width:32px;height:32px;--ico-stroke:1.5}
.csp-dm{display:none}
.csp-muted{color:var(--text-muted-strong)}
.csp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--tap);padding:10px 20px;border-radius:var(--r-sm);border:2px solid transparent;font-weight:600;font-size:var(--fs-base);line-height:1.2;cursor:pointer;text-decoration:none;transition:background .15s,color .15s,border-color .15s}
.csp-btn--primary{background:var(--brand-aa);color:#fff}
.csp-btn--primary:hover,.csp-btn--primary:focus-visible{background:var(--brand-aa-hover);color:#fff}
.csp-btn--outline{background:transparent;color:var(--navy);border-color:var(--navy)}
.csp-btn--outline:hover{background:var(--navy);color:#fff}
.csp-btn--ghost{background:transparent;color:var(--brand-aa)}
.csp-btn--block{width:100%}
.csp-iconbtn{display:inline-grid;place-items:center;width:var(--tap);height:var(--tap);padding:0;border:0;border-radius:var(--r-sm);background:transparent;color:#fff;cursor:pointer}
.csp-iconbtn:hover{background:var(--navy-2)}
.csp-iconbtn--light{color:var(--navy);border:1px solid var(--border);border-radius:var(--r-pill);background:#fff}
.csp-count{min-width:20px;height:20px;padding:0 6px;display:inline-grid;place-items:center;border-radius:var(--r-pill);background:#fff;color:var(--navy);font-size:12px;font-weight:700;line-height:1}

/* ---- livello 1: barra arancione (AA: #B8501A con testo bianco 5.0:1) ---- */
.csp-topbar{background:var(--brand-aa);color:#fff;font-size:var(--fs-sm)}
.csp-topbar__row{display:flex;justify-content:center;align-items:center;min-height:44px;gap:var(--s-3)}
.csp-topbar p{margin:0}
.csp-topbar__msg{display:flex;align-items:center;gap:8px}
.csp-topbar a{color:#fff;display:inline-flex;align-items:center;gap:6px;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.csp-topbar__links{display:none;gap:var(--s-4)}
.csp-topbar__links a{text-decoration:none}
.csp-topbar__links a:hover{text-decoration:underline}
.csp-topbar :focus-visible,.csp-hdr :focus-visible,.csp-footer :focus-visible,.csp-footer-before .csp-news :focus-visible{outline-color:#fff;box-shadow:none}

/* ---- livello 2: header blu notte ---- */
.csp-hdr{background:var(--navy);color:#fff}
.csp-hdr__row{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"menu logo actions" "search search search";align-items:center;gap:8px var(--s-2);padding-block:10px}
.csp-hdr__row>*{min-width:0}
.csp-hdr__menu{grid-area:menu}
.csp-logo{grid-area:logo;display:inline-flex;align-items:center;min-height:var(--tap)}
.csp-logo picture{display:block;line-height:0}
.csp-logo img{display:block;width:120px;height:40px;max-width:100%}
@media (min-width:768px){.csp-logo img{width:180px;height:58px}}
.csp-hdr__search{grid-area:search}
.csp-hdr__actions{grid-area:actions;display:flex;align-items:center;gap:4px;justify-self:end}
.csp-act{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:var(--tap);min-height:var(--tap);padding:0 8px;color:#fff;font-weight:600;font-size:var(--fs-sm);text-decoration:none;border-radius:var(--r-sm);white-space:nowrap}
.csp-act:hover,.csp-act:focus-visible{background:var(--navy-2);color:#fff}
.csp-act--cart{background:var(--brand-aa)}
.csp-act--cart:hover,.csp-act--cart:focus-visible{background:var(--brand-aa-hover)}
.csp-hide-m{display:none}
.csp-cart-wrap{display:contents}
.csp-cart{position:relative}
.csp-search{width:100%;background:transparent;padding:0;margin:0;float:none}
.csp-search__form{display:flex;background:#fff;border-radius:var(--r-sm);overflow:hidden;min-height:48px;margin:0}
.csp-search__form input[type=text]{flex:1;min-width:0;min-height:48px;border:0;border-radius:0;padding:0 16px;color:var(--text);background:#fff;box-shadow:none;height:48px}
.csp-search__form input::placeholder{color:var(--text-muted);opacity:1}
.csp-search__form input:focus-visible{outline-offset:-3px}
.csp-search__form button{display:flex;align-items:center;gap:8px;min-width:var(--tap);min-height:48px;padding:0 18px;border:0;border-radius:var(--r-control);background:var(--brand-aa);color:#fff;font-weight:600;cursor:pointer}
.csp-search__form button:hover{background:var(--brand-aa-hover)}
.csp-search__lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} /* nome accessibile del bottone anche a <1024 */
.ui-autocomplete{z-index:120}

/* ---- livello 3: barra categorie ---- */
.csp-catnav{display:none;background:#fff;border-bottom:1px solid var(--border)}
.csp-catnav ul{display:flex;gap:14px;align-items:center;overflow-x:auto;scrollbar-width:none;margin:0;padding:0;list-style:none}
.csp-catnav a{display:inline-flex;align-items:center;gap:8px;min-height:48px;color:var(--navy);font-weight:500;font-size:14px;text-decoration:none;border-bottom:3px solid transparent;white-space:nowrap}
.csp-catnav a:hover{color:var(--brand-aa)}
.csp-catnav a[aria-current=page]{border-bottom-color:var(--brand);font-weight:600}
.csp-catnav__all{font-weight:700!important}
/* Voci dalla 6a: per larghezza, cosi' la riga non si schiaccia e non si taglia (il resto sta in "Tutte le categorie"). Sotto 1024 la barra non c'e'. */
.csp-catnav__t6,.csp-catnav__t7,.csp-catnav__t8{display:none}
.csp-catnav li{flex:0 0 auto}
.csp-catnav__offers{color:var(--brand-aa)!important;font-weight:700!important}

/* ---- cassetti (menu categorie e mini-carrello) ---- */
.csp-drawer{position:fixed;inset:0;z-index:10000} /* sopra banner cookie (99) e bolla becontact (9999) */
.csp-drawer[hidden]{display:none}
.csp-drawer__scrim{position:absolute;inset:0;background:rgba(35,47,62,.55)}
.csp-drawer__panel{position:absolute;top:0;bottom:0;left:0;width:min(88vw,380px);background:#fff;color:var(--text);display:flex;flex-direction:column;box-shadow:var(--sh-3)}
.csp-drawer--right .csp-drawer__panel{left:auto;right:0}
.csp-drawer__head{display:flex;justify-content:space-between;align-items:center;padding:var(--s-2) var(--s-3);border-bottom:1px solid var(--border)}
.csp-drawer__head h2{font-size:var(--fs-lg);margin:0;line-height:1.2}
.csp-drawer__body{flex:1;overflow:auto;padding:var(--s-2) var(--s-3)}
.csp-drawer__foot{padding:var(--s-3);border-top:1px solid var(--border);display:grid;gap:var(--s-2)}
.csp-cats,.csp-mini{list-style:none;margin:0;padding:0}
.csp-cats a{display:flex;align-items:center;gap:12px;min-height:52px;color:var(--navy);font-weight:600;text-decoration:none;border-bottom:1px solid var(--line-soft)}
.csp-cats .csp-ico{color:var(--brand-aa)}
.csp-mini__line{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.csp-mini__line img{width:56px;height:auto;object-fit:contain}
.csp-mini__info{display:grid;gap:2px;font-size:var(--fs-sm)}
.csp-mini__info a{color:var(--navy);font-weight:600;text-decoration:none}
.csp-mini__total{display:flex;justify-content:space-between;margin:0}
.csp-drawer--cart .csp-drawer__panel{width:min(100vw,420px)}
html body .csp-drawer--cart :is(.csp-mini__info a,.csp-rec__name){color:var(--navy);font-weight:600;text-decoration:none}
.csp-mini__row{display:flex;justify-content:space-between;gap:var(--s-2);margin:0;font-size:var(--fs-body)}
.csp-drawer--cart .csp-drawer__foot{gap:var(--s-1);padding-block:var(--s-2)}
html body .csp-drawer--cart .csp-drawer__foot .csp-mini__note{margin:0;line-height:1.35} /* piede entro 190 px a 360x640 */
.csp-drawer--cart .csp-drawer__foot .csp-btn{min-height:48px}
.csp-mini__cartlink{display:flex;align-items:center;justify-content:center;min-height:44px;color:var(--brand-aa);font-weight:600;text-decoration:underline}
.csp-mini__flash{margin:0 0 var(--s-2);padding:8px 12px;border-radius:var(--r-sm);background:var(--brand-tint);color:var(--navy);font-weight:600}
.csp-mini__flash:empty{display:none}
.csp-mini__pickup{display:flex;align-items:center;gap:var(--s-1);margin:var(--s-3) 0 0;padding:10px 12px;border-radius:var(--r-sm);background:#e8f5ec;color:#14532d;font-weight:600}
.csp-mini__rate{margin:var(--s-2) 0 0;font-size:var(--fs-sm)}
.csp-mini__rate a{color:var(--brand-aa);text-decoration:underline}
.csp-mini__secure{margin-top:var(--s-3);padding-top:var(--s-3);border-top:1px solid var(--line-soft);font-size:var(--fs-sm)}
.csp-mini__secure h3{display:flex;align-items:center;gap:var(--s-1);margin:0 0 var(--s-1);font-size:var(--fs-body)}
.csp-mini__secure p{margin:0 0 var(--s-2)}
.csp-pay--mini .csp-pay__list{justify-content:flex-start}
.csp-rec{margin-top:var(--s-3);padding-top:var(--s-3);border-top:1px solid var(--line-soft)}
.csp-rec[data-state="loading"]{min-height:210px}
.csp-rec__t{margin:0 0 var(--s-2);font-size:var(--fs-body)}
.csp-rec__row{display:flex;gap:var(--s-2);margin:0;padding:0;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;min-height:200px}
.csp-rec__item{flex:0 0 150px;scroll-snap-align:start}
.csp-rec__card{display:grid;gap:6px;height:100%;padding:8px;border:1px solid var(--border);border-radius:var(--r-md);font-size:var(--fs-sm)}
.csp-rec__card img{display:block;width:74px;height:85px;margin:0 auto;object-fit:contain}
.csp-rec__name{color:var(--navy);font-weight:600;text-decoration:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.csp-rec__card .csp-pc__cart{margin-top:auto}
html body .csp-rec__card .csp-pc__btn{width:100%;min-width:0;min-height:44px;padding:0 12px}
body.csp-noscroll{overflow:hidden}

/* ---- sottocategorie (riportate dal parent live) ---- */
.csp-subcats{display:flex;flex-wrap:wrap;gap:var(--s-2);list-style:none;margin:0 0 var(--s-3);padding:0}

/* ---- newsletter (displayFooterBefore) ---- */
.csp-footer-before{margin-top:var(--s-8)}
.csp-news{display:grid;gap:var(--s-3);background:var(--navy);color:var(--on-navy-muted);border-radius:var(--r-lg);padding:var(--s-4)}
.csp-news h2{color:#fff;font-size:var(--fs-xl);margin:0 0 var(--s-1)}
.csp-news p{margin:0}
.csp-news__txt{display:flex;gap:var(--s-3);align-items:center}
.csp-news__ico{flex:none;display:inline-grid;place-items:center;width:56px;height:56px;border-radius:var(--r-md);background:var(--brand-aa);color:#fff}
.csp-news__row{display:flex;gap:var(--s-2);flex-wrap:wrap}
.csp-news__row input[type=email]{flex:1;min-width:200px;min-height:48px;padding:0 16px;border:0;border-radius:var(--r-sm);color:var(--text);background:#fff}
.csp-news__row input[type=submit]{min-height:48px}
.csp-news__msg{margin-top:var(--s-2)!important;padding:8px 12px;border-radius:var(--r-sm);font-weight:600}
.csp-news__msg.is-ok{background:var(--success-tint);color:var(--success)}
.csp-news__msg.is-error{background:var(--danger-tint);color:var(--danger)}
.csp-news__cond{margin-top:var(--s-2)!important;font-size:var(--fs-sm)}
.csp-news a{color:#fff;text-decoration:underline;display:inline-flex;align-items:center;min-height:44px;margin-right:var(--s-3)}

/* ---- footer a 5 colonne ---- */
.csp-footer{background:var(--navy);color:var(--on-navy-muted);padding-top:var(--s-7);margin-top:var(--s-5)}
.csp-footer a{color:var(--on-navy-muted);text-decoration:none}
.csp-footer a:hover{color:#fff;text-decoration:underline}
.csp-footer h2{font-size:var(--fs-base);color:#fff;margin:0 0 var(--s-2);text-transform:none;letter-spacing:0}
.csp-fgrid{display:grid;gap:var(--s-5);grid-template-columns:repeat(2,minmax(0,1fr))}
.csp-fgrid>*{min-width:0}
.csp-fgrid>.csp-fcol--brand,.csp-fgrid>.csp-fcol--contact{grid-column:1/-1}
.csp-fcol ul{list-style:none;margin:0;padding:0}
.csp-fcol li a{display:inline-flex;align-items:center;min-height:44px}
.csp-fcol--brand img{margin-bottom:var(--s-3);width:172px;height:64px}
.csp-fcol address{font-style:normal;color:var(--on-navy-muted);margin:0 0 var(--s-2)}
.csp-fcol address a{display:inline}
.csp-fcol__dir{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--on-navy-accent)!important}
.csp-fcta{display:grid;gap:var(--s-2)}
.csp-fcta .csp-btn{justify-content:flex-start;min-height:44px}
.csp-footer .csp-btn--primary,.csp-footer .csp-btn--primary:hover{color:#fff}
.csp-footer .csp-btn--outline{color:#fff;border-color:#5A6779}
.csp-footer .csp-btn--outline:hover{background:#fff;color:var(--navy);text-decoration:none}
.csp-legal{display:grid;grid-template-columns:1fr;justify-items:center;text-align:center;gap:var(--s-2) var(--s-3);margin-top:var(--s-5);padding-block:var(--s-3);border-top:1px solid var(--line-on-navy);font-size:var(--fs-sm)}
.csp-legal a{display:inline-flex;align-items:center;min-height:44px}
.csp-legal__pay{display:flex;align-items:center;gap:var(--s-2);flex-wrap:wrap}

/* ---- bottom nav mobile e WhatsApp fisso ---- */
.csp-bottomnav{position:fixed;left:0;right:0;bottom:0;height:var(--bn-h);background:#fff;border-top:1px solid var(--border);z-index:var(--z-bottomnav);box-shadow:var(--sh-up)}
.csp-bottomnav ul{display:grid;grid-template-columns:repeat(5,1fr);height:100%;margin:0;padding:0;list-style:none}
.csp-bottomnav a{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;color:var(--text-muted);text-decoration:none;min-width:var(--tap)}
.csp-bottomnav a[aria-current=page]{color:var(--navy)}
.csp-bottomnav a[aria-current=page]::before{content:"";position:absolute;top:0;width:32px;height:3px;background:var(--brand);border-radius:0 0 3px 3px}
.csp-bottomnav .csp-ico{width:24px;height:24px}
.csp-bottomnav .csp-count{position:absolute;top:6px;left:calc(50% + 6px);background:var(--brand-aa);color:#fff}
.csp-bottomnav .csp-count[data-csp-count-mirror="0"],.csp-bottomnav .csp-count:empty{display:none}
.csp-wa-fab{position:fixed;right:var(--gutter-m);bottom:calc(var(--bn-h) + var(--csp-cookie-h,0px) + 12px);z-index:var(--z-fab);display:inline-flex;align-items:center;gap:8px;min-height:52px;min-width:52px;justify-content:center;padding:0 14px;border-radius:var(--r-pill);background:#0E7A40;color:#fff;font-weight:700;text-decoration:none;box-shadow:var(--sh-3)}
.csp-wa-fab:hover,.csp-wa-fab:focus-visible{background:#0B6B38;color:#fff}
.csp-wa-fab__lbl{display:none}
body#product .csp-wa-fab{display:none} /* ADR-1: sulla scheda prodotto c'e' "Chiedi al tecnico" */
.csp-pause{position:absolute;top:12px;left:12px;z-index:5;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:#fff;color:var(--navy);font-weight:600;cursor:pointer}

@media (min-width:768px){
  .csp-dm{display:inline}
  .csp-wa-fab__lbl{display:inline}
  .csp-wa-fab{padding:0 18px 0 14px}
  .csp-news{padding:var(--s-5)}
}
@media (min-width:1024px){
  .csp-container{padding-inline:var(--gutter)}
  .csp-topbar__row{justify-content:space-between}
  .csp-topbar__links{display:flex}
  .csp-hdr__row{grid-template-columns:200px minmax(0,1fr) auto;grid-template-areas:"logo search actions";gap:var(--s-4);padding-block:14px}
  .csp-hdr__menu{display:none}
  .csp-hide-m{display:inline-flex}
  .csp-hdr__actions{gap:var(--s-2)}
  .csp-search__lbl{position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .csp-catnav{display:block}
  .csp-news{grid-template-columns:1fr 1fr;align-items:center}
  .csp-fgrid{grid-template-columns:1.4fr 1fr 1fr 1fr 1.3fr}
  .csp-fgrid>.csp-fcol--brand,.csp-fgrid>.csp-fcol--contact{grid-column:auto}
  .csp-bottomnav{display:none}
  .csp-wa-fab{bottom:calc(24px + var(--csp-cookie-h,0px));right:24px}
}
@media (min-width:1024px) and (max-width:1279px){
  .csp-act--cart .csp-hide-m{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} /* barra azioni compatta: resta il nome accessibile */
}
@media (min-width:1152px){.csp-catnav__t6{display:list-item}}
@media (min-width:1280px){
  .csp-catnav ul{justify-content:space-between}
  .csp-catnav__t7{display:list-item}
}
@media (min-width:1366px){.csp-catnav__t8{display:list-item}}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
}

/* ADR-6: main#wrapper riceve il focus dallo skip link, senza anello sull'intera pagina */
main#wrapper:focus{outline:0}

/* ---- Wave 1b: moduli esterni che il tema non controlla ---- */
/* Banner cookie (czuecookie): fisso, fuori dal flusso (nessun CLS), sopra la bottom nav, sotto i cassetti; --csp-cookie-h lo imposta csp.js */
html body #cookie_notice{position:fixed;left:0;right:0;bottom:0;z-index:80;padding:8px var(--gutter-m);font-size:var(--fs-sm);line-height:1.4}
html body #cookie_notice .cookie-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 12px}
html body #cookie_notice a{display:inline-flex;align-items:center;min-height:44px}
html body #cookie_notice .cookie-button{min-height:44px;min-width:44px;padding:0 20px;margin:0;font-weight:600}
html body #footer{margin-bottom:0} /* czuecookie aggiunge 56px di margine: la riserva e' ora nel padding del footer */
.csp-footer{padding-bottom:calc(var(--s-3) + var(--csp-cookie-h,0px))}
@media (max-width:1023px){
  html body #cookie_notice{bottom:var(--bn-h)}
  .csp-footer{padding-bottom:calc(var(--s-3) + var(--bn-h) + var(--csp-cookie-h,0px))}
  /* PROVVISORIO, da confermare col cliente: la bolla becontact duplica il WhatsApp fisso e copriva "Home" nella bottom nav. Per ripristinarla togliere questa regola */
  #becontact{display:none!important}
}
@media (min-width:1024px){
  #becontact{bottom:calc(10px + var(--csp-cookie-h,0px))!important}
}

/* focus visibile su sfondo scuro (logo) e dentro il campo bianco della ricerca */
html body .csp-logo:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:none}
.csp-search__form input[type=text]:focus-visible{outline:0;box-shadow:none}

/* carrello nell'header: stessa riga e stesso asse di menu e logo */
.csp-hdr__actions{align-self:center;height:var(--tap)}
html body #header .csp-hdr .csp-cart{float:none;position:static;display:flex;align-items:center;width:auto;height:var(--tap);margin:0;padding:0;line-height:1;background:none}
.csp-hdr .csp-act{height:var(--tap)}

/* footer: telefono nell'indirizzo, metodi di pagamento */
.csp-fcol address a{display:inline-flex;align-items:center;min-height:44px}
.csp-nw{white-space:nowrap}
/* metodi di pagamento: loghi SVG (img/pay.svg) su pillole bianche; il blocco intero e' un link (area 44 px grazie al padding) */
.csp-legal .csp-pay{display:inline-flex;align-items:center;min-height:44px;padding-block:8px;color:var(--ink)}
.csp-pay__list{display:flex;flex-wrap:wrap;align-items:center;justify-content:inherit;gap:var(--s-2);list-style:none;margin:0;padding:0}
.csp-pay__i{display:inline-flex;align-items:center;gap:6px;height:28px;padding-inline:8px;background:#fff;border:1px solid var(--line);border-radius:var(--r-control);color:var(--ink);font-size:var(--fs-sm);font-weight:var(--fw-semibold);line-height:1}
.csp-pay__logo{display:block;flex:none}
.csp-pay__t{white-space:nowrap}
.csp-legal .csp-pay:hover .csp-pay__i{border-color:var(--brand-vivid)}
/* riga loghi + Bonifico: riepilogo carrello/checkout e scheda prodotto (_partials/csp-pay-row.tpl) */
.csp-pay--box{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.csp-pay--box .csp-pay__list{display:contents}
.csp-pay--box .csp-pay__i,.csp-pay__bank{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:28px;margin:0;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;list-style:none}
.csp-pay--box .csp-pay__logo{max-height:16px;width:auto}
.csp-pay__bank{font-size:12px;font-weight:var(--fw-semibold);color:var(--ink)}

/* font: stesse @font-face del parent ma con font-display:swap (il parent non lo imposta) */
@font-face{font-family:'FontAwesome';font-weight:normal;font-style:normal;font-display:swap;src:url('../../../Toolgard/assets/img/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../../../Toolgard/assets/img/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff')}

/* ---- CLS: spazio riservato per i blocchi che si assestano dopo il caricamento (altezze finali misurate, home) ---- */
.page-home .flexslider .slides img{aspect-ratio:2170/725;width:100%;height:auto} /* hero cz_imageslider: immagini 2170x725 senza width/height */

/* ---- Wave 4c ---- */
/* spazio riservato al banner cookie prima che csp.js misuri (evita lo shift di FAB e footer); csp.js sovrascrive con il valore reale */
html:has(#cookie_notice){--csp-cookie-h:96px}
@media (min-width:1024px){html:has(#cookie_notice){--csp-cookie-h:60px}}
/* banner cookie piu' compatto su mobile: meno area, e non e' piu' l'elemento piu' grande della pagina (LCP) */
@media (max-width:1023px){
  html:has(#cookie_notice){--csp-cookie-h:50px}
  html body #cookie_notice{font-size:var(--fs-xs);line-height:1.25;padding:2px 12px;text-align:left}
  html body #cookie_notice .cookie-inner{display:block;padding-right:104px;min-height:44px}
  html body #cookie_notice .cookie-inner span,html body #cookie_notice a{display:inline;min-height:0}
  html body #cookie_notice .cookie-button{position:absolute;right:12px;top:50%;transform:translateY(-50%);padding:0 14px}
}
/* elementi che ricevono focus o scroll non finiscono sotto barra prodotto, banner cookie e bottom nav */
html{scroll-padding-bottom:calc(var(--bn-h) + var(--csp-cookie-h,0px) + 88px)}
@media (min-width:1024px){html{scroll-padding-bottom:calc(var(--csp-cookie-h,0px) + 96px)}}
:is(input,select,textarea,button,a,[role=status],[tabindex]){scroll-margin-bottom:calc(var(--bn-h) + 96px)}
/* la barra prodotto resta visibile: sale sopra il banner con --csp-cookie-h (vedi csp-product.css) */
/* target >= 44px: breadcrumb, link brevi del core */
/* ---- breadcrumb unica per tutto il sito (templates/_partials/breadcrumb.tpl): una riga sopra l'H1, altezza fissa (CLS 0) ---- */
#wrapper:has(>nav.csp-bc){padding-top:0}
/* nav alta --tap, chip alte --bc-chip: il margine compensa, cosi' sopra e sotto le chip resta lo stesso --bc-space */
nav.csp-bc.breadcrumb{--bc-chip:32px;--bc-space:var(--s-3);--bc-pad:calc((var(--tap) - var(--bc-chip))/2);display:block;width:auto;height:var(--tap);margin:calc(var(--bc-space) - var(--bc-pad)) 0;padding:0;overflow:visible;background:none!important;text-align:left;border:0}
nav.csp-bc .csp-bc__in{padding-block:0}
/* row-reverse: l'origine dello scorrimento e' a destra (fine del percorso). I 6px di margine negativo lasciano spazio all'anello di focus */
nav.csp-bc .csp-bc__scroll{display:flex;flex-direction:row-reverse;height:var(--tap);margin-inline:calc(-1*var(--bc-pad));padding-inline:var(--bc-pad);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-padding-inline:var(--s-5)}
nav.csp-bc .csp-bc__scroll::-webkit-scrollbar{display:none}
nav.csp-bc .csp-bc__scroll.is-clip-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 40px);mask-image:linear-gradient(90deg,transparent,#000 40px)}
nav.csp-bc .csp-bc__scroll.is-clip-r{-webkit-mask-image:linear-gradient(270deg,transparent,#000 40px);mask-image:linear-gradient(270deg,transparent,#000 40px)}
nav.csp-bc .csp-bc__scroll.is-clip-l.is-clip-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent)}
nav.csp-bc .csp-bc__list{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;height:var(--tap);margin:0 auto 0 0;padding:0;float:none;list-style:none;font-size:var(--fs-sm);line-height:var(--lh-small)}
nav.csp-bc .csp-bc__item{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;height:var(--tap);color:var(--ink-muted);white-space:nowrap}
nav.csp-bc .csp-bc__item::after{content:none;display:none}
nav.csp-bc .csp-bc__chip{position:relative;display:inline-flex;align-items:center;justify-content:center;height:var(--bc-chip);min-height:0;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--bg-soft);color:var(--ink-muted);text-decoration:none}
nav.csp-bc .csp-bc__chip::after{content:"";position:absolute;inset:calc(-1*var(--bc-pad) - 1px) -1px}
nav.csp-bc .csp-bc__chip--home{width:var(--bc-chip);padding:0}
nav.csp-bc .csp-bc__chip--home::after{inset:calc(-1*var(--bc-pad) - 1px) calc(-1*var(--bc-pad) - 1px)}
nav.csp-bc .csp-bc__chip:hover{background:var(--brand-tint);border-color:var(--brand-aa);color:var(--brand-aa);text-decoration:none}
nav.csp-bc .csp-bc__chip span:hover{text-decoration:none}
nav.csp-bc .csp-bc__chip:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
nav.csp-bc .csp-bc__sep{width:14px;height:14px;margin-inline:var(--s-2);color:var(--line-strong)}
nav.csp-bc .csp-bc__current{display:block;min-height:0;max-width:48ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--navy);font-weight:600}
@media (max-width:767px){nav.csp-bc .csp-bc__current{max-width:62vw}}
a.all-product-link,a.label{display:inline-flex;align-items:center;min-height:var(--tap)}

/* ---- focus: l'anello compare solo da tastiera (:focus-visible); il clic del mouse non lascia riquadri (il parent aveva a:focus{outline}) ---- */
:focus:not(:focus-visible){outline:none;box-shadow:none}

/* riga legale a 3 zone (>= 1024: copyright | crediti con logo | pagamenti); su mobile in colonna centrata */
.csp-legal__made{gap:8px;white-space:nowrap}
.csp-legal__made img{display:inline-block;width:120px;height:auto;vertical-align:middle}
@media (min-width:768px){
  .csp-legal{grid-template-columns:1fr auto 1fr;justify-items:start;text-align:left}
  .csp-legal__made{justify-self:center}
  .csp-legal__pay{justify-self:end;justify-content:flex-end;text-align:right}
}
@media (min-width:768px) and (max-width:1023px){
  .csp-legal{grid-template-columns:1fr 1fr}
  .csp-legal__copy{grid-column:1/-1;justify-self:center;text-align:center}
  .csp-legal__made{justify-self:start}
}
.csp-fcol--brand img{width:180px;height:auto;max-width:100%}

/* ---- Wave 8: "Torna su" (creato da csp.js). Pila SOPRA il WhatsApp fisso (52 px + 12), che sale col banner cookie (--csp-cookie-h); in scheda prodotto il WhatsApp non c'e', si sta sopra la barra d'acquisto (--csp-sticky-h) ---- */
body#product{--csp-sticky-h:64px}
.csp-totop{position:fixed;right:calc(var(--gutter-m) + 2px);bottom:calc(var(--bn-h) + var(--csp-cookie-h,0px) + 84px);z-index:var(--z-fab);display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--navy);box-shadow:var(--sh-pop),0 0 0 1px var(--line);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility 0s linear .2s}
.csp-totop.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .2s}
.csp-totop:hover{background:var(--bg-soft)}
.csp-totop:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.csp-totop__ring{position:absolute;inset:0;width:48px;height:48px;transform:rotate(-90deg);pointer-events:none}
.csp-totop__trk,.csp-totop__bar{fill:none;stroke-width:3}
.csp-totop__trk{stroke:var(--line)}
.csp-totop__bar{stroke:var(--brand);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100}
.csp-totop .csp-ico{position:relative;width:20px;height:20px}
@media(prefers-reduced-motion:reduce){.csp-totop,.csp-totop.is-on{transition:none;transform:none}}
body#product .csp-totop{bottom:calc(var(--bn-h) + var(--csp-cookie-h,0px) + var(--csp-sticky-h) + 12px)}
@media(min-width:1024px){
  .csp-totop{right:26px;bottom:calc(24px + var(--csp-cookie-h,0px) + 52px + 20px)}
  body#product .csp-totop{bottom:calc(var(--csp-cookie-h,0px) + var(--csp-sticky-h) + 12px)}
}

/* Richiesta Gennaro: sotto 768 px il WhatsApp fisso va a SINISTRA (stesso margine), "Torna su" resta a destra allo stesso livello (nessuna pila). ADR-1: in scheda prodotto il WhatsApp resta nascosto. */
@media(max-width:767px){
  .csp-wa-fab{right:auto;left:var(--gutter-m)}
  .csp-totop{bottom:calc(var(--bn-h) + var(--csp-cookie-h,0px) + 12px)}
  body#product .csp-totop{bottom:calc(var(--bn-h) + var(--csp-cookie-h,0px) + var(--csp-sticky-h) + 12px)}
}

/* 2026-12-03: pulsanti-icona. Hover sempre leggibile; su fondo chiaro niente fondo navy; il click col mouse non lascia fondo ne' anello (solo tastiera, anello brand) */
html body .csp-iconbtn:focus:not(:focus-visible){outline:0;box-shadow:none}
html body .csp-iconbtn:focus:not(:focus-visible):not(:hover){background-color:transparent}
html body .csp-iconbtn--light:focus:not(:focus-visible):not(:hover),html body .csp-hero__ctrl .csp-iconbtn:focus:not(:focus-visible):not(:hover){background-color:#fff}
html body .csp-iconbtn--light:is(:hover,:focus-visible,:active),html body .csp-hero__ctrl .csp-iconbtn:is(:hover,:focus-visible,:active){background:var(--brand-tint);border-color:var(--brand-aa);color:var(--navy)}
html body .csp-iconbtn--light:focus-visible,html body .csp-hero__ctrl .csp-iconbtn:focus-visible{outline:3px solid var(--brand-aa);outline-offset:2px;box-shadow:none}
/* 2026-12-03: pannello carrello, proporzioni e leggibilita' */
.csp-drawer--cart .csp-drawer__body{min-height:0;padding-bottom:var(--s-4)}
.csp-mini__title{display:inline-flex;align-items:center;gap:var(--s-1);min-height:var(--tap);color:inherit;text-decoration:none}
.csp-mini__title:hover{text-decoration:underline}
html body .csp-drawer--cart .csp-mini__line{grid-template-columns:96px minmax(0,1fr);gap:var(--s-3);align-items:start;padding:var(--s-3) 0}
html body .csp-drawer--cart .csp-mini__line img{width:96px;height:96px;object-fit:contain;border:1px solid var(--line-soft);border-radius:var(--r-control);background:#fff}
html body .csp-drawer--cart .csp-mini__info{gap:var(--s-2);font-size:var(--fs-small)}
html body .csp-drawer--cart .csp-mini__info a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.4}
.csp-mini__pq{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s-2)}
.csp-mini__pq strong{font-size:var(--fs-h4);line-height:1.3;color:var(--navy);font-variant-numeric:tabular-nums}
html body .csp-drawer--cart :is(.csp-mini__rate,.csp-mini__secure p){line-height:1.5}
html body .csp-drawer--cart .csp-rec__row{min-height:0;padding-bottom:var(--s-2);align-items:stretch}
html body .csp-drawer--cart .csp-rec__item{flex:0 0 168px}
html body .csp-drawer--cart .csp-rec__card{display:flex;flex-direction:column;gap:var(--s-2);font-size:var(--fs-small)}
html body .csp-drawer--cart .csp-rec__card img{width:120px;height:120px;object-fit:contain}
html body .csp-drawer--cart .csp-rec__name{display:-webkit-box;-webkit-line-clamp:3;line-height:1.4;min-height:calc(1.4em * 3)}
html body .csp-drawer--cart .csp-rec__card>strong{font-size:var(--fs-body);color:var(--navy)}
html body .csp-drawer--cart .csp-rec__card .csp-pc__btn .csp-pc__btn-t{display:inline;position:static;width:auto;height:auto;clip:auto;overflow:visible;color:#fff;font-size:var(--fs-small)} /* "Aggiungi" sempre scritto */
html body :is(.csp-drawer--cart,#blockcart-modal) a.csp-mini__title:is(:link,:visited,:hover,:focus){color:var(--navy)}
/* breadcrumb: lo spazio sotto lo da' la nav (testate di lista senza margine proprio); account allineato alla colonna da 960px */
html body #wrapper:has(>nav.csp-bc) #product-list-header.csp-lhead{margin-top:0}
:is(body.page-customer-account,body#order-detail) nav.csp-bc .csp-bc__in{max-width:calc(960px + 2*var(--gutter))}
html body #wrapper:has(>nav.csp-bc) .csp-info__head{margin-top:0}
/* 2026-12-03: pannello carrello, card del ritiro allineata ai paragrafi e consigliati leggibili nella prima vista */
html body .csp-drawer--cart .csp-mini__pickup{margin-inline:-12px;padding-inline:12px}
html body .csp-drawer--cart .csp-drawer__body{padding-bottom:var(--s-5);scroll-padding-bottom:var(--s-5)}
html body .csp-drawer--cart .csp-rec{margin-top:var(--s-2);padding-top:var(--s-2)}
html body .csp-drawer--cart .csp-rec[data-state="loading"]{min-height:180px}
html body .csp-drawer--cart .csp-rec__item{flex:0 0 272px}
html body .csp-drawer--cart .csp-rec__card{display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto 1fr auto;column-gap:var(--s-2);row-gap:var(--s-1);align-content:start}
html body .csp-drawer--cart .csp-rec__card>a:first-child{grid-row:1/3}
html body .csp-drawer--cart .csp-rec__card img{width:80px;height:80px;margin:0}
html body .csp-drawer--cart .csp-rec__name{grid-column:2;grid-row:1;-webkit-line-clamp:3;min-height:0;line-height:1.35}
html body .csp-drawer--cart .csp-rec__card>strong{grid-column:2;grid-row:2;align-self:end}
html body .csp-drawer--cart .csp-rec__card .csp-pc__cart{grid-column:1/-1;margin-top:var(--s-1)}
/* footer ridotto (checkout): una sola riga ordinata, senza il vuoto del footer completo */
html body .csp-footer.csp-footer--min{padding-top:var(--s-2);padding-bottom:calc(var(--s-2) + var(--csp-cookie-h,0px));margin-top:0}
.csp-footer--min .csp-legal{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:var(--s-5);row-gap:0;margin-top:0;border-top:0;text-align:center}
.csp-footer--min .csp-legal__copy{flex:1 0 100%}
@media (min-width:992px){.csp-footer--min .csp-legal{justify-content:flex-start}.csp-footer--min .csp-legal__copy{flex:0 0 auto;margin-right:auto}}
/* giro generale 3/12: se nessun modulo scrive nella colonna sinistra, la colonna (20%) non deve restare vuota e spingere il contenuto a destra */
html body.layout-left-column #columns_inner:not(:has(#left-column *)){display:block}
html body.layout-left-column #columns_inner:not(:has(#left-column *))>#left-column{display:none}
html body.layout-left-column #columns_inner:not(:has(#left-column *))>#content-wrapper{width:100%!important;max-width:100%;float:none;padding:0}
html body:is(#password,#guest-tracking,#sitemap,#discount,#order-slip).layout-left-column #columns_inner:not(:has(#left-column *)) #main{max-width:960px;margin-inline:auto}
/* giro generale 3/12: elenco marchi a card, al posto delle righe del parent */
html body #brand_list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-3);margin:0 0 var(--s-6);padding:0;list-style:none}
@media (min-width:768px){html body #brand_list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1200px){html body #brand_list{grid-template-columns:repeat(6,minmax(0,1fr))}}
html body #brand_list .brand{display:flex;margin:0;padding:0;border:0;width:auto;float:none}
html body #brand_list .csp-brandcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-2);width:100%;min-height:140px;padding:var(--s-3);border:1px solid var(--line);border-radius:var(--r-card);background:#fff;color:var(--ink);text-align:center;text-decoration:none}
html body #brand_list .csp-brandcard:hover{border-color:var(--brand-aa);text-decoration:none}
html body #brand_list .csp-brandcard__img{width:56px;height:56px;object-fit:contain}
html body #brand_list .csp-brandcard__n{margin:0;font-size:var(--fs-body);line-height:var(--lh-body);font-weight:var(--fw-semibold);text-transform:none;overflow-wrap:anywhere}
html body #brand_list .csp-brandcard__c{font-size:var(--fs-small);color:var(--ink-muted)}
html body #brand_list .csp-brandcard__go{font-size:var(--fs-small);font-weight:var(--fw-semibold);color:var(--brand-aa)}
