/* ==========================================================================
   shop-visual-feedback-20261126 · proposal.css
   SOLO prova locale. Caricato per ultimo nel <head> da apply.py, soltanto
   nelle pagine con header principale (.site-header) e nel carrello.
   Mai su landing/, checkout, successo, download, conferma.
   Palette, font e pills approvati: invariati.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CARRELLO: header reale del sito
   La pagina carrello non carica il bundle principale (cambierebbe bottoni,
   link e margini del carrello). Qui sono replicate, con scope sulla sola
   pagina carrello, le regole dell'header gia approvate nel bundle del sito.
   Markup, sprite e nav-a.js sono quelli reali, inseriti da apply.py.
   -------------------------------------------------------------------------- */
body[data-cart-page="cart"]{
  --header-h:56px;
  --gutter:16px;
  --sh-pad:8px;
  --sh-top:4px;
  --sh-pill-h:48px;
  padding-top:var(--header-h);
}
@media (min-width:768px){
  body[data-cart-page="cart"]{--header-h:72px;--gutter:48px;--sh-pad:16px;--sh-top:8px;--sh-pill-h:56px}
}
html:has(body[data-cart-page="cart"]){scroll-padding-top:88px}

body[data-cart-page="cart"] .site-header{
  position:fixed;inset:0 0 auto 0;z-index:20;
  height:var(--header-h);
  color:#292929;
  font-size:16px;line-height:1.55;
  pointer-events:none;
}
body[data-cart-page="cart"] .sh-bar{
  position:relative;box-sizing:border-box;
  height:var(--sh-pill-h);
  margin:var(--sh-top) calc(var(--gutter) - var(--sh-pad)) 0;
  padding-inline:var(--sh-pad);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  backdrop-filter:blur(20px) saturate(180%);
  border:1px solid rgba(41,41,41,.1);border-top-color:rgba(255,255,255,.9);
  box-shadow:0 10px 30px rgba(41,41,41,.14),0 2px 6px rgba(41,41,41,.08),inset 0 1px 0 rgba(255,255,255,.85);
  pointer-events:auto;
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  body[data-cart-page="cart"] .sh-bar{background:#fff}
}
body[data-cart-page="cart"] .logo{display:flex;align-items:center;min-height:44px;flex:none;text-decoration:none}
body[data-cart-page="cart"] .logo-mark{
  display:block;width:117px;height:22px;
  background:url("/img/dott.lattuada-logo.png") left center/contain no-repeat;
}
@media (min-width:768px){body[data-cart-page="cart"] .logo-mark{width:159px;height:30px}}

body[data-cart-page="cart"] .head-actions{display:flex;align-items:center;gap:8px;flex:none}
@media (min-width:768px){body[data-cart-page="cart"] .head-actions{gap:12px}}

body[data-cart-page="cart"] .site-header .ico{display:block;width:20px;height:20px;fill:currentColor;flex:none}

body[data-cart-page="cart"] .tel{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-width:44px;min-height:44px;
  border-radius:999px;
  font-weight:600;font-size:16px;line-height:1.55;
  color:inherit;text-decoration:none;
  transition:background-color 200ms cubic-bezier(.23,1,.32,1);
}
body[data-cart-page="cart"] .tel span{display:none}
@media (min-width:1440px){
  body[data-cart-page="cart"] .tel{padding-inline:8px 12px}
  body[data-cart-page="cart"] .tel span{display:inline}
}

/* Prenota: stessa pill verde dell'header del sito (44px, 10/20). */
body[data-cart-page="cart"] .site-header .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  width:auto;height:auto;min-height:44px;max-width:100%;
  margin:0;padding:10px 20px;
  border:0;border-radius:999px;
  background:#86c05c;color:#292929;
  font-family:Poppins,sans-serif;font-size:16px;font-weight:600;line-height:1.35;
  text-align:center;text-decoration:none;
  transition:background-color 160ms ease;
}
body[data-cart-page="cart"] .site-header .btn:active{background:#69a341}
body[data-cart-page="cart"] .site-header .head-actions>.btn{display:none}
@media (min-width:768px){
  body[data-cart-page="cart"] .site-header .head-actions>.btn{display:inline-flex}
}

body[data-cart-page="cart"] .sh-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;padding:0;
  border:0;border-radius:999px;
  background:transparent;color:inherit;cursor:pointer;
  transition:background-color 200ms cubic-bezier(.23,1,.32,1),transform 100ms cubic-bezier(.23,1,.32,1);
}
body[data-cart-page="cart"] .sh-toggle:active{transform:scale(.97)}
body[data-cart-page="cart"] .site-header .sh-toggle .ico{width:24px;height:24px}
body[data-cart-page="cart"] .site-header .sh-toggle .i-x,
body[data-cart-page="cart"] .site-header .sh-toggle[aria-expanded="true"] .i-list{display:none}
body[data-cart-page="cart"] .site-header .sh-toggle[aria-expanded="true"] .i-x{display:block}

body[data-cart-page="cart"] .sh-nav{
  position:absolute;left:0;right:0;top:calc(100% + 8px);
  padding:12px;
  background:#fff;color:#292929;
  border-radius:16px;
  box-shadow:0 4px 16px rgba(41,41,41,.1),0 1px 3px rgba(41,41,41,.06);
  transition:transform 220ms cubic-bezier(.23,1,.32,1),opacity 220ms cubic-bezier(.23,1,.32,1),visibility 0s linear 220ms;
}
@media not all and (min-width:1200px){
  body[data-cart-page="cart"] .sh-nav{opacity:0;transform:translateY(-8px);visibility:hidden}
}
body[data-cart-page="cart"] .sh-nav.is-open{opacity:1;transform:none;visibility:visible;transition-delay:0s}
body[data-cart-page="cart"] .sh-nav ul{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
body[data-cart-page="cart"] .sh-nav li a{
  display:flex;align-items:center;
  min-height:48px;padding:0 16px;
  border-radius:999px;
  font-size:16px;font-weight:400;line-height:1;
  color:inherit;text-decoration:none;
}
body[data-cart-page="cart"] .site-header .sh-nav-cta{display:flex;width:100%;min-height:48px;margin-top:8px}
@media (min-width:768px){body[data-cart-page="cart"] .site-header .sh-nav-cta{display:none}}

@media (min-width:1200px){
  body[data-cart-page="cart"] .sh-toggle{display:none}
  body[data-cart-page="cart"] .sh-nav{
    position:relative;left:auto;right:auto;top:auto;
    flex:1 1 auto;min-width:0;
    padding:0;background:none;color:inherit;border-radius:0;box-shadow:none;
    opacity:1;transform:none;visibility:visible;
    transition:none;
  }
  body[data-cart-page="cart"] .sh-nav ul{flex-direction:row;justify-content:center;gap:2px}
  body[data-cart-page="cart"] .sh-nav li a{
    min-height:44px;padding:0 8px;
    font-size:15px;white-space:nowrap;
    transition:background-color 200ms cubic-bezier(.23,1,.32,1);
  }
}
@media (min-width:1200px) and (max-width:1439px){body[data-cart-page="cart"] .sh-nav li a{font-size:14px}}
@media (min-width:1200px) and (max-width:1279px){
  body[data-cart-page="cart"] .sh-nav li a{padding:0 6px}
  body[data-cart-page="cart"] .sh-nav ul{gap:0}
}
body[data-cart-page="cart"] .site-header li a[aria-current="page"]{
  font-weight:600;text-decoration:underline;text-decoration-color:#86c05c;
  text-decoration-thickness:2px;text-underline-offset:6px;
}
body[data-cart-page="cart"] .site-header :focus-visible{outline:2px solid #292929;outline-offset:3px;border-radius:4px}
body[data-cart-page="cart"] .site-header .btn:focus-visible,
body[data-cart-page="cart"] .site-header .tel:focus-visible,
body[data-cart-page="cart"] .site-header .sh-toggle:focus-visible,
body[data-cart-page="cart"] .site-header .sh-nav li a:focus-visible{border-radius:999px}
@media (hover:hover) and (pointer:fine){
  body[data-cart-page="cart"] .sh-nav li a:hover,
  body[data-cart-page="cart"] .site-header .tel:hover,
  body[data-cart-page="cart"] .site-header .sh-toggle:hover{background:rgba(134,192,92,.3)}
  body[data-cart-page="cart"] .site-header .btn:hover{background:#74b04a}
}
@media (prefers-reduced-motion:reduce){
  body[data-cart-page="cart"] .sh-nav,
  body[data-cart-page="cart"] .sh-nav li a,
  body[data-cart-page="cart"] .tel,
  body[data-cart-page="cart"] .sh-toggle,
  body[data-cart-page="cart"] .site-header .btn{transition:none!important}
}

/* --------------------------------------------------------------------------
   2. ACCESSO AL CARRELLO NELL'HEADER (tutte le pagine con .site-header)
   Un solo link 44x44, primo elemento di .head-actions: stesso posto su
   desktop e mobile (logo · carrello · telefono · Prenota/menu).
   -------------------------------------------------------------------------- */
.site-header a.lc-cart-link{
  position:relative;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:44px;height:44px;min-width:44px;min-height:44px;
  margin:0;padding:0;
  border:0;border-radius:999px;
  background:transparent;color:inherit;text-decoration:none;
  pointer-events:auto; /* .site-header ha pointer-events:none */
  -webkit-tap-highlight-color:transparent;
  transition:background-color 200ms cubic-bezier(.23,1,.32,1);
}
.site-header a.lc-cart-link>svg{
  position:relative;left:-3px;top:3px; /* lascia libero l'angolo del contatore */
  display:block;flex:none;width:24px;height:24px;
  fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
  pointer-events:none;
}
/* Contatore: sempre dentro l'area 44x44, quindi non allarga mai l'header. */
.site-header a.lc-cart-link>.lc-cart-badge{
  position:absolute;top:0;right:0;box-sizing:border-box;
  display:block;min-width:20px;height:20px;margin:0;padding:0 5px;
  border:1px solid #292929;border-radius:999px;
  background:#fff;color:#292929;
  font-family:Poppins,system-ui,sans-serif;font-size:14px;font-weight:600;line-height:18px;
  font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;
  pointer-events:none;
}
.site-header a.lc-cart-link.has-items>.lc-cart-badge{background:#86c05c;border-color:#86c05c}
.site-header a.lc-cart-link[aria-current="page"]{background:#e3eddb}
.site-header a.lc-cart-link:active{background:rgba(134,192,92,.45)}
.site-header a.lc-cart-link:focus-visible{
  outline:3px solid #292929;outline-offset:2px;border-radius:999px;
  background:rgba(134,192,92,.3);
}
@media (hover:hover) and (pointer:fine){
  .site-header a.lc-cart-link:hover{background:rgba(134,192,92,.3)}
}
@media (prefers-reduced-motion:reduce){
  .site-header a.lc-cart-link{transition:none!important}
}
/* Soglia piu stretta del menu a 8 voci: recupera 8px senza toccare menu,
   telefono (gia sola icona sotto 1440, aria-label intatto) e Prenota. */
@media (min-width:1200px) and (max-width:1279px){
  .site-header .head-actions,
  body[data-cart-page="cart"] .site-header .head-actions{gap:8px}
}

/* --------------------------------------------------------------------------
   3. STRUMENTI E BREADCRUMB (solo Shop e schede prodotto)
   proposal.js toglie il link duplicato da .caller-cart-tools e marca il
   contenitore .lc-tools-bare: resta in pagina, senza ingombro, perche
   contiene la live region #caller-cart-message.
   -------------------------------------------------------------------------- */
.caller-cart-tools.lc-tools-bare{display:block;min-height:0;margin:0;padding:0}
body.product-page main>.caller-cart-tools.lc-tools-bare{margin:0;padding:0 var(--gutter)}
.caller-cart-tools.lc-tools-bare>.caller-cart-message{margin:0;padding:12px 0 0}

.shop-hero .shop-wrap>.seo-breadcrumb,
body.product-page .pd-breadcrumb{
  font-size:14px;line-height:21px;
  min-width:0;max-width:100%;
}
.shop-hero .shop-wrap>.seo-breadcrumb{margin:0 0 16px;padding:0}
body.product-page main>.pd-breadcrumb{display:block;margin:0;padding:16px var(--gutter) 0}
body.product-page .caller-cart-tools>.pd-breadcrumb{margin:0;padding:0}
@media (min-width:768px){
  .shop-hero .shop-wrap>.seo-breadcrumb{margin-bottom:24px}
  body.product-page main>.pd-breadcrumb{padding-top:24px}
}
/* Mobile: una riga; l'ultimo elemento si abbrevia solo a video.
   Testo, title e JSON-LD restano completi. */
@media (max-width:767px){
  :is(.shop-hero .shop-wrap>.seo-breadcrumb,body.product-page .pd-breadcrumb) ol{flex-wrap:nowrap;min-width:0}
  :is(.shop-hero .shop-wrap>.seo-breadcrumb,body.product-page .pd-breadcrumb) li:not(:last-child){flex:none}
  :is(.shop-hero .shop-wrap>.seo-breadcrumb,body.product-page .pd-breadcrumb) li:last-child{
    display:flex;flex:0 1 auto;align-items:baseline;min-width:0;
  }
  :is(.shop-hero .shop-wrap>.seo-breadcrumb,body.product-page .pd-breadcrumb) li:last-child::before{flex:none}
  :is(.shop-hero .shop-wrap>.seo-breadcrumb,body.product-page .pd-breadcrumb) li:last-child>[aria-current="page"]{
    display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
}

/* --------------------------------------------------------------------------
   4. CATALOGO /shop/
   H1 40px da 768 (sotto resta 31px dalla scala del sito), 48px fra
   introduzione e griglia, descrizioni 16px intere, prezzo 20/600.
   Schede prodotto (H1, foto) non toccate.
   -------------------------------------------------------------------------- */
@media (min-width:768px){
  body.prova-footer .shop-hero{--ui-h1:40px}
}
body.prova-footer.shop-prova-r9:not(.v-a):not(.product-page) main .shop-hero h1{line-height:1.2}
body.shop-prova-r9 .shop-hero .shop-wrap{padding-top:16px;padding-bottom:0}
@media (min-width:768px){
  body.shop-prova-r9 .shop-hero .shop-wrap{padding-top:24px}
}
body.shop-prova-r9 .shop-ebook{padding-top:48px}
body.shop-prova-r9 .shop-card .shop-desc{font-size:16px;line-height:1.6}
body.shop-prova-r9 .shop-card .shop-price{font-size:20px;font-weight:600;line-height:1.4}

/* --------------------------------------------------------------------------
   5. CARRELLO: larghezza del sito, stato vuoto, suggerimenti
   -------------------------------------------------------------------------- */
/* Margini 48 desktop / 16 mobile, massimo 1920 come il sito. H1 invariato. */
body[data-cart-page="cart"] .cart-shell{width:min(1824px,calc(100% - 96px))}
@media (max-width:767px){
  body[data-cart-page="cart"] .cart-shell{width:calc(100% - 32px)}
}
/* Riepilogo: stessa misura di prima a 1280-1440, non cresce sui grandi schermi. */
@media (min-width:901px){
  body[data-cart-page="cart"] .cart-layout{grid-template-columns:minmax(0,1fr) clamp(300px,36%,480px)}
}

/* Vuoto VERIFICATO: classi messe da proposal.js solo se #cart-empty non e
   hidden e lo store e vuoto. Caricamento, non verificato ed errore restano
   come oggi, con riepilogo e messaggi. */
body.is-cart-empty .cart-summary{display:none}
body.is-cart-empty .cart-heading p{display:none}
body.is-cart-empty.is-cart-message-generic #cart-message{display:none}
body.is-cart-empty .cart-layout{grid-template-columns:minmax(0,1fr)}
body.is-cart-empty .cart-products #cart-empty{max-width:720px}

/* "Torna allo shop" primario verde (stesso verde del primario del carrello). */
body[data-cart-page="cart"] .cart-products #cart-empty .btn{
  background:#89bf51;border-color:transparent;color:#292929;
}
body[data-cart-page="cart"] .cart-products #cart-empty .btn:active{background:#80b449;border-color:transparent}
body[data-cart-page="cart"] .cart-products #cart-empty .btn:focus-visible{
  outline:3px solid #292929;outline-offset:3px;background:#89bf51;border-color:transparent;
}
@media (hover:hover){
  body[data-cart-page="cart"] .cart-products #cart-empty .btn:hover{background:#a3cf76;border-color:transparent}
}

/* Suggerimenti: cornice uguale per tutte le copertine (stessa larghezza e
   altezza, altezze di oggi: la pagina non si allunga), copertina intera. */
body[data-cart-page="cart"] .cart-suggestions .cart-suggestion img{
  display:block;width:100%;height:180px;margin-bottom:20px;
  object-fit:contain;object-position:center;
  background:#f3f5f2;border-radius:12px;
}
@media (max-width:600px){
  body[data-cart-page="cart"] .cart-suggestions .cart-suggestion img{height:150px;margin-bottom:16px}
}

/* --------------------------------------------------------------------------
   6. COOKIEBOT + BARRA MOBILE DELLA SCHEDA PRODOTTO
   Il controllo del consenso resta visibile e raggiungibile: sale sopra la
   barra (12px margine + 60px barra + 12px aria). Nessuna fascia nuova,
   nessun cambio alla barra. Pannello aperto: posizione di Cookiebot.
   -------------------------------------------------------------------------- */
@media (max-width:767px){
  body.product-page #CookiebotWidget:not(.CookiebotWidget-open){
    bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* --------------------------------------------------------------------------
   7. FIX R1
   -------------------------------------------------------------------------- */
/* R1.1 Catalogo: "Aggiungi al carrello" primario verde pieno. Stessa forma,
   misure e raggio di oggi: cambiano solo fondo, testo e colore del bordo.
   "Scopri" resta outline (nessuna regola). */
body.shop-prova-r9:not(.product-page) .caller-catalog-add.caller-catalog-add{
  background-color:#86c05c;border-color:#86c05c;color:#292929;
}
body.shop-prova-r9:not(.product-page) .caller-catalog-add.caller-catalog-add:active{
  background-color:#69a341;border-color:#69a341;color:#292929;
}
body.shop-prova-r9:not(.product-page) .caller-catalog-add.caller-catalog-add:focus-visible{
  background-color:#86c05c;border-color:#86c05c;color:#292929;
}
@media (hover:hover) and (pointer:fine){
  body.shop-prova-r9:not(.product-page) .caller-catalog-add.caller-catalog-add:hover{
    background-color:#74b04a;border-color:#74b04a;color:#292929;
  }
}

/* R1.2 Catalogo mobile: cornice copertina 200px, copertina intera (contain),
   nessun taglio. Da 768 in su invariato. */
@media (max-width:767px){
  body.shop-prova-r9:not(.product-page) .shop-card .shop-cover{
    height:200px;min-height:0;max-height:200px;aspect-ratio:auto;
  }
  body.shop-prova-r9:not(.product-page) .shop-card .shop-cover picture{
    display:block;width:100%;height:200px;
  }
  body.shop-prova-r9:not(.product-page) .shop-card .shop-cover img{
    display:block;width:100%;height:200px;max-height:200px;aspect-ratio:auto;
    object-fit:contain;object-position:center;
  }
}

/* R1.3 Scheda prodotto mobile: la barra resta nascosta finche la zona
   d'acquisto inline non e uscita sopra l'header. Classe messa e tolta da
   proposal.js (dockGate). Solo visibility/pointer-events: posizione, box e
   spazio riservato della barra restano quelli di oggi; le regole esistenti
   di scope/fine/occluded continuano a valere per conto loro. */
@media (max-width:767px){
  body.product-page .pd-dock-scope>.bar.lc-dock-wait{
    visibility:hidden!important;pointer-events:none!important;
  }
}

/* --------------------------------------------------------------------------
   8. FIX R2
   -------------------------------------------------------------------------- */
/* R2.1 Carrello, suggerimenti: stesso primario verde di "Aggiungi al
   carrello" del catalogo (R1.1). Forma, misure e raggio invariati: cambiano
   solo fondo, testo e colore del bordo. */
body[data-cart-page="cart"] .cart-suggestion .btn.btn{
  background-color:#86c05c;border-color:#86c05c;color:#292929;
}
body[data-cart-page="cart"] .cart-suggestion .btn.btn:active{
  background-color:#69a341;border-color:#69a341;color:#292929;
}
body[data-cart-page="cart"] .cart-suggestion .btn.btn:focus-visible{
  background-color:#86c05c;border-color:#86c05c;color:#292929;
}
@media (hover:hover) and (pointer:fine){
  body[data-cart-page="cart"] .cart-suggestion .btn.btn:hover{
    background-color:#74b04a;border-color:#74b04a;color:#292929;
  }
}

/* R2.2 Scheda prodotto mobile: le discendenti del titolo (g, p, q) non
   vengono piu tagliate dal wrapper .ln (overflow:hidden). Piu spazio interno
   (.2em invece di .12em) compensato da un margine negativo uguale: altezza
   e posizione del titolo restano quelle di oggi. Font, interlinea e
   animazione di entrata invariati. Solo H1 della scheda prodotto. */
@media (max-width:767px){
  body.product-page .pd-intro h1 .ln{
    padding-block:.2em;margin-block:-.2em;
  }
}
