/* Aggiunte del sito vero ai mockup: pagine di testo, pagine dei risultati, cassa come pagina, stato di caricamento. */
.infopage { max-width: 780px; margin: 40px auto 80px; }
.infopage h1 { font-size: clamp(34px, 4vw, 54px); margin: 14px 0 20px; }
.infopage p { color: var(--muted); }
.prose { font-size: 16px; line-height: 1.65; }
.prose h3, .prose h4 { margin: 28px 0 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover, .foot li button:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot li button { font: inherit; color: inherit; text-align: left; }
.pag { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 8px; }
.pag button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.pag button[aria-current="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.cmd-all { justify-content: space-between; }
.co-def { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.co-page { overflow: hidden; }
body.co-page .drawer.xp > * { animation: none; }
#app.loading { opacity: .55; transition: opacity .2s .1s; }
button[disabled] { cursor: not-allowed; opacity: .5; }

/* Area cliente: comune a tutti i layout, prende colori, caratteri e angoli dal tema. */
.ac-pg { width: 100%; max-width: 1120px; margin: 34px auto 80px; display: grid; gap: 22px; }
.ac-pg h1.d { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
.ac-pg h2.d { margin: 0; font-size: 21px; }
.ac-pg h3.d { margin: 10px 0 0; font-size: 16px; }
.ac-pg a { color: inherit; }
.ac-head { display: grid; gap: 6px; }
.ac-head p, .ac-sub { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ac-card { background: var(--surface); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); padding: clamp(20px, 3vw, 32px); }
.ac-form { display: grid; gap: 14px; align-content: start; }
.ac-form .btn { justify-self: start; }
.ac-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.ac-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-3 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; }
.ac-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ac-tabs { display: none; }
.ac-narrow { max-width: 520px; width: 100%; margin: 0 auto; display: grid; gap: 16px; }
.ac-lnk { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); background: none; padding: 0; justify-self: start; cursor: pointer; }
.ac-lnk.bad, .ac-note.bad { color: #B3261E; }
.ac-hint { font-size: 12.5px; color: var(--muted); }
.co-f small { font-weight: 400; }
.ac-chk { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.ac-chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.ac-chk a { text-decoration: underline; text-underline-offset: 2px; }
.ac-chk em { grid-column: 2; color: #B3261E; font-style: normal; font-size: 12.5px; }
.ac-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; border-radius: var(--r); background: var(--soft); font-size: 14px; line-height: 1.5; }
.ac-note svg.i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ac-note a { text-decoration: underline; font-weight: 600; }
.ac-in { grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.ac-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.ac-me { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ac-me > span:last-child { min-width: 0; display: grid; }
.ac-me b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-me small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 18px; }
.ac-side nav { display: grid; gap: 2px; }
.ac-side nav a, .ac-out button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--ink); width: 100%; text-align: left; }
.ac-side nav a:hover, .ac-out button:hover { background: var(--soft); }
.ac-side nav a[aria-current="page"] { background: var(--soft); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }
.ac-side svg.i { width: 18px; height: 18px; }
.ac-out { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.ac-out button { color: var(--muted); }
.ac-main { display: grid; gap: 22px; min-width: 0; align-content: start; }
.ac-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ac-sec { display: grid; gap: 12px; }
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.ac-tile { display: grid; gap: 4px; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ac-tile svg.i { width: 20px; height: 20px; color: var(--acc-t, var(--primary)); }
.ac-tile b { font-family: var(--f-d); font-size: 28px; line-height: 1.1; }
.ac-tile span { color: var(--muted); font-size: 13.5px; }
a.ac-tile:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ac-list { display: grid; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ac-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 18px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.ac-row:first-child { border-top: 0; }
a.ac-row:hover { background: var(--soft); }
.ac-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.ac-row small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-row svg.i { width: 16px; height: 16px; color: var(--muted); }
.ac-st { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; background: var(--soft); white-space: nowrap; }
.ac-st.ok { background: color-mix(in oklab, var(--ok, #2E7D32) 16%, transparent); color: color-mix(in oklab, var(--ok, #2E7D32) 80%, var(--ink)); }
.ac-st.bad { background: color-mix(in oklab, #B3261E 14%, transparent); color: #B3261E; }
.ac-empty { margin: 0; padding: 22px; border-radius: var(--r); background: var(--soft); color: var(--muted); font-size: 14.5px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ac-box { margin: 0; display: grid; gap: 3px; align-content: start; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.ac-box.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ac-box small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.ac-box span { color: var(--muted); }
.ac-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ac-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ac-inline { display: inline; }
.ac-track { grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; }
.ac-track span { display: grid; color: var(--ink); }
.ac-track small { text-transform: none; letter-spacing: 0; }
.ac-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); justify-self: start; }
.ac-back svg.i { width: 16px; height: 16px; }
.ac-pg .co-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 12.5px; color: var(--muted); }
.ac-pg .co-steps li { position: relative; padding-top: 16px; }
.ac-pg .co-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 6px; height: 4px; border-radius: 2px; background: var(--line); }
.ac-pg .co-steps li.co-on { color: var(--ink); font-weight: 600; }
.ac-pg .co-steps li.co-on::before { background: var(--primary); }
.ac-items { display: grid; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ac-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.ac-item:first-child { border-top: 0; }
.ac-item img, .ac-noimg { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--soft); display: block; }
.ac-item > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.ac-item small { color: var(--muted); font-size: 13px; }
.ac-item small .avail { font-size: inherit; }
.ac-fav { grid-template-columns: 64px minmax(0, 1fr) auto auto; }
.ac-fav .ac-acts { margin: 0; }
.ac-fav .btn { height: 40px; padding: 0 16px; }
.ac-tot { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 14px; }
.ac-tot > div { display: flex; justify-content: space-between; gap: 12px; }
.ac-tot .tt { font-size: 16px; padding-top: 4px; }
/* resi: form per prodotto, soluzione, stato e storico */
.ac-rq { display: grid; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ac-rq:first-child { border-top: 0; }
.ac-rq-hd { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ac-rq-hd > span { display: grid; gap: 2px; min-width: 0; }
.ac-rq small { color: var(--muted); font-size: 13px; }
.ac-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ac-rq select { height: 42px; min-width: 72px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); background: var(--surface); color: var(--ink); font: inherit; }
.ac-rq .co-f select { width: 100%; }
.ac-res { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.ac-res legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.ac-res > em { color: #B3261E; font-style: normal; font-size: 12.5px; }
.ac-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ac-opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.ac-opt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ac-opt input { margin: 3px 0 0; accent-color: var(--primary); flex: none; }
.ac-opt span { display: grid; gap: 2px; }
.ac-opt small { color: var(--muted); font-size: 12.5px; }
.ac-next { font-size: 14.5px; line-height: 1.5; background: var(--soft); box-shadow: none; }
.ac-instr div { color: var(--ink); line-height: 1.55; }
.ac-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ac-hist li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; position: relative; }
.ac-hist li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.ac-dot { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--line); }
.ac-hist li:first-child .ac-dot { box-shadow: inset 0 0 0 4px var(--primary); }
.ac-hist li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.ac-hist small { color: var(--muted); font-size: 12.5px; }
.ac-hnote { margin-top: 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ac-wide { max-width: 760px; }
.ac-cancel { padding-top: 4px; border-top: 1px solid var(--line); }
.ac-email { margin: 0; display: grid; gap: 2px; font-size: 14px; }
.ac-email small { color: var(--muted); }
.ac-stack { display: grid; gap: 20px; max-width: 720px; }
.co-accok { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); background: var(--soft); font-size: 14px; line-height: 1.5; text-align: left; }
.co-accok svg.i { width: 18px; height: 18px; flex: none; }
.co-accok a { text-decoration: underline; font-weight: 600; }
@media (max-width: 860px) {
  .ac-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ac-side { position: static; }
  .ac-side nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .ac-side nav a, .ac-out button { flex: none; width: auto; height: 40px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); }
  .ac-side nav a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .ac-out { margin: 0; border: 0; padding: 0; }
  .ac-duo { grid-template-columns: minmax(0, 1fr); }
  .ac-tabs { display: flex; gap: 6px; }
  .ac-tabs a { flex: 1; height: 44px; display: grid; place-items: center; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; }
  .ac-tabs a[aria-current="page"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }
  .ac-duo > .ac-card:not(.on) { display: none; }
}
@media (max-width: 560px) {
  .ac-pg { margin-top: 20px; }
  .ac-2, .ac-3 { grid-template-columns: minmax(0, 1fr); }
  .ac-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ac-row > :nth-child(3) { grid-column: 2; }
  .ac-row > svg.i, .ac-row > :nth-child(4) { display: none; }
  .ac-fav { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .ac-fav .ac-acts { grid-column: 2 / -1; }
  .ac-pg .co-steps { font-size: 11px; }
}
.co-hd .co-me { font-size: 13px; color: var(--muted); }
.co-done .co-okc.co-wait { background: var(--soft); color: var(--ink); }
/* conferma dell'età in qualsiasi layout; il layout 10 la ridisegna nel suo CSS */
:where(.gate) { position: fixed; inset: 0; z-index: 54; display: grid; place-items: center; padding: 16px; background: rgb(10 8 12 / .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
:where(.gate) :where(.box) { width: min(440px, 100%); padding: 34px 30px; border-radius: var(--r-xl, 22px); background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .6); display: grid; gap: 16px; text-align: center; }
:where(.gate) :where(h2) { margin: 0; font-size: 26px; }
:where(.gate) :where(p) { margin: 0; color: var(--muted); font-size: 14px; }
:where(.gate) :where(.bt) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.gate .gate-logo { font-size: 28px; }
.gate .gate-note { font-size: 12.5px; }
.gate[hidden] { display: none; }

/* titoli di sezione: il link «Vedi tutto» resta su una riga accanto al titolo */
:where(.sh) > :is(button, a) { white-space: nowrap; flex-shrink: 0; }

/* occhielli vuoti (il negozio non li ha scritti): niente etichetta vuota */
:is(.k, .chip, .eyebrow, .kick, .stk, .mono, .gchip):empty { display: none; }

/* avvisi più grandi e leggibili */
.toast { min-height: 60px; padding: 12px 24px 12px 12px; font-size: 15.5px; font-weight: 600; gap: 14px; border-radius: var(--r-xl, 22px); animation: toast-in .25s ease-out; }
.toast img { width: 48px; height: 48px; border-radius: var(--r-sm, 10px); }
.toast:not(:has(img)) { padding-left: 24px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* carrello: conferma del prodotto appena aggiunto, in basso al centro */
.added-pop { position: fixed; z-index: 95; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(420px, calc(100% - 32px)); pointer-events: none; }
.added-pop[hidden] { display: none; }
.added-pop .added { margin: 0; padding: 12px 14px; border-radius: var(--r, 14px); display: grid; grid-template-columns: auto 56px minmax(0, 1fr); align-items: center; gap: 12px; background: color-mix(in oklab, var(--ok) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ok) 40%, transparent), 0 18px 48px rgb(0 0 0 / .22); animation: added-in .45s cubic-bezier(.2, .8, .2, 1); }
.added-pop .added .ok { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #FFFFFF; }
.added-pop .added .ok .i { width: 18px; height: 18px; stroke-width: 2.6; }
.added-pop .added img { width: 56px; height: 56px; border-radius: var(--r-sm, 10px); object-fit: cover; background: var(--soft); }
.added-pop .added b { display: block; font-size: 16px; }
.added-pop .added small { display: block; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes added-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* newsletter: rimando all'informativa sotto il modulo */
.nl-priv { margin: 8px 0 0; font-size: 12.5px; opacity: .78; flex-basis: 100%; }
.nl-priv a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* cassa e indirizzi: tendine e note con lo stesso aspetto dei campi */
.co-f select, .co-f textarea { width: 100%; min-width: 0; border-radius: var(--r-sm); border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.co-f select { height: 46px; padding: 0 36px 0 14px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.co-f textarea { padding: 12px 14px; resize: vertical; min-height: 84px; line-height: 1.45; }
.co-f select:focus, .co-f textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent); }
.co-f.co-err select { border-color: #D93025; box-shadow: 0 0 0 3px rgb(217 48 37 / .14); }
.co-f[hidden] { display: none; }
.co-notes { margin-top: 14px; }

/* ricerca rapida: «Tutti i risultati» su una riga, a tutta larghezza */
.cmd-res .r.cmd-all { grid-template-columns: minmax(0, 1fr) auto; margin-top: 6px; min-height: 48px; background: var(--soft); font-weight: 600; }
.cmd-res .r.cmd-all span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-res .r.cmd-all:hover { background: color-mix(in oklab, var(--ink) 9%, var(--soft)); }

/* confronto: pagina intera con header e footer del layout; la tabella scorre solo di lato se i prodotti non ci stanno */
.cmp-page { padding: 18px 0 56px; min-width: 0; }
.cmp-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 0 22px; }
.cmp-hd h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); }
.cmp-hd .btn { white-space: nowrap; }
.cmp-page .cv-x { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; }
.cmp-page .cv-t thead th { vertical-align: top; }
.cmp-page .cv-t .btn { white-space: normal; height: auto; min-height: 42px; padding-block: 8px; }
.cmp-page .cv-t .cv-p img { width: auto; max-width: 100%; height: 200px; aspect-ratio: 1; }
.cmp-page .cv-t th { text-align: left; }
.cmp-empty { padding: 30px; border-radius: var(--r-xl); background: var(--surface); display: grid; gap: 16px; justify-items: start; }
.cmp-empty p { margin: 0; color: var(--muted); }

/* scheda prodotto: lente sulle foto grandi e foto a schermo intero */
img[data-zm] { cursor: zoom-in; }
.zl { position: fixed; inset: 0; z-index: 90; background: rgb(8 8 10 / .94); color: #FFFFFF; }
.zl[hidden] { display: none; }
html.zl-on { overflow: hidden; }
.zl-stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; padding: 56px 72px; }
.zl-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; border-radius: 6px; }
.zl.zoomed .zl-stage { overflow: auto; display: block; padding: 0; }
.zl.zoomed .zl-img { max-width: none; max-height: none; width: 230%; cursor: zoom-out; border-radius: 0; }
.zl-x, .zl-nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .14); color: #FFFFFF; }
.zl-x:hover, .zl-nav:hover { background: rgb(255 255 255 / .26); }
.zl-x { top: 14px; right: 14px; }
.zl-nav { top: 50%; transform: translateY(-50%); }
.zl-pv { left: 14px; } .zl-nx { right: 14px; }
.zl-nav[hidden] { display: none; }
.zl .i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.zl-n, .zl-hint { position: absolute; z-index: 2; left: 18px; font-size: 13px; opacity: .8; }
.zl-n { top: 26px; } .zl-hint { bottom: 18px; }
.zl.zoomed .zl-nav, .zl.zoomed .zl-hint { display: none; }
@media (max-width: 640px) { .zl-stage { padding: 64px 10px; } .zl-nav { top: auto; bottom: 14px; transform: none; } .zl-pv { left: auto; right: 70px; } }

/* pannello Aspetto: barra di scorrimento sottile e discreta, intestazione sempre in vista */
.panel { scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--ink) 20%, transparent) transparent; overscroll-behavior: contain; padding-top: 0; }
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.panel::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--ink) 20%, transparent); border-radius: 8px; border: 2px solid var(--surface); }
.panel > header { position: sticky; top: 0; z-index: 2; margin: 0 -22px; padding: 22px 22px 12px; background: var(--surface); border-bottom: 1px solid transparent; }

/* schermi molto larghi: nei layout a contenitore gli sfondi vanno a tutta larghezza e il contenuto resta nel contenitore;
   i layout fluidi (3, 4, 8) si fermano a 1920 px nel proprio CSS; il 16 resta fluido senza limite, centrati, con lo stesso fondo ai lati */
html { background: var(--canvas); }
.ac-pname:hover b { text-decoration: underline; }

/* vendita spenta (modalità vetrina o negozio sul sottodominio provvisorio): niente carrello né aggiunte */
.sell-off { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--ink, #141414); color: var(--canvas, #fff); font-size: 14px; text-align: center; }
.sell-off svg { flex: none; width: 18px; height: 18px; }
.no-sell [data-add], .no-sell [data-addp], .no-sell [data-addkit], .no-sell [data-cart], .no-sell [data-checkout], .no-sell .step:has([data-qty]) { display: none !important; }

/* Banner dei cookie: in basso, sopra la pagina ma senza bloccarla; Rifiuta e Accetta con lo stesso peso. */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 56; width: min(460px, calc(100% - 32px)); }
.ck-box { position: relative; display: grid; gap: 12px; padding: 22px 22px 18px; border-radius: var(--r-xl, 20px); background: var(--surface, #fff); color: var(--ink, #141414); box-shadow: inset 0 0 0 1px var(--line, rgb(0 0 0 / .1)), 0 30px 70px -30px rgb(0 0 0 / .45); max-height: calc(100dvh - 32px); overflow: auto; }
.ck-box h2 { margin: 0; font-size: 19px; padding-right: 36px; }
.ck-box p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted, #555); }
.ck-box p a { color: var(--ink, #141414); text-decoration: underline; text-underline-offset: 3px; }
.ck-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink, #141414); }
.ck-x:hover { background: color-mix(in oklab, var(--ink, #141414) 8%, transparent); }
.ck-x svg { width: 18px; height: 18px; }
.ck-cats { display: grid; gap: 8px; }
.ck-cats[hidden] { display: none; }
.ck-cat { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: var(--r-sm, 10px); box-shadow: inset 0 0 0 1px var(--line, rgb(0 0 0 / .1)); cursor: pointer; }
.ck-cat span { display: grid; gap: 2px; }
.ck-cat b { font-size: 14px; }
.ck-cat small { font-size: 12.5px; color: var(--muted, #555); line-height: 1.4; }
.ck-cat input { flex: none; width: 20px; height: 20px; accent-color: var(--primary, #141414); }
.ck-bt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.ck-bt .btn { justify-content: center; width: 100%; }
.ck-bt [hidden] { display: none; }
.ck-lnk, .ck-save { grid-column: 1 / -1; }
.ck-lnk { justify-self: center; padding: 6px 4px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink, #141414); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .ck { left: 8px; bottom: 8px; width: calc(100% - 16px); } .ck-box { padding: 18px 16px 14px; } }

/* Tendina della lingua nell'intestazione: il pulsante ha la classe dei pulsanti del layout, il menu prende colori e angoli dal tema. */
.lsw { position: relative; display: inline-flex; }
.lsw > button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.lsw > button.circle, .lsw > button.icb, .lsw > button.ico { width: auto; min-width: 0; padding-inline: 14px; }
/* i pulsanti tondi dei layout hanno il 50%: sul pulsante più largo diventerebbe un ovale */
.lsw > button.circle { border-radius: 999px; }
.lsw > button svg { width: 18px; height: 18px; flex: none; }
.lsw .lc { font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.lsm { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; min-width: 170px; padding: 6px; display: grid; gap: 2px; background: var(--surface); color: var(--ink); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line), 0 14px 40px rgba(0, 0, 0, .14); text-align: left; }
.lsm[hidden] { display: none; }
.lsm small { padding: 8px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lsm button { font: inherit; text-align: left; cursor: pointer; }
.lsm a, .lsm button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; color: inherit; text-decoration: none; white-space: nowrap; }
.lsm a b, .lsm button b { min-width: 30px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.lsm a:hover, .lsm button:hover { background: var(--soft); }
.lsm [aria-current] { font-weight: 600; background: var(--soft); }
/* i pulsanti del menu non prendono gli stili dei pulsanti dell'intestazione del layout (maiuscole, spaziatura, misure fisse) */
.lsw .lsm a, .lsw .lsm button { width: auto; min-width: 0; height: auto; padding: 9px 10px; font-size: 14px; font-weight: 400; border-radius: var(--r-sm); justify-content: flex-start; text-transform: none; letter-spacing: normal; font-family: var(--f-b); line-height: 1.3; box-shadow: none; border: 0; background: transparent; }
.lsw .lsm a:hover, .lsw .lsm button:hover, .lsw .lsm [aria-current] { background: var(--soft); }
.lsw .lsm [aria-current] { font-weight: 600; }
.lsw .lsm { width: max-content; font-family: var(--f-b); text-transform: none; letter-spacing: normal; }
.mg-lang { display: flex; gap: 4px; margin-left: auto; margin-right: 10px; }
.mg-lang a { min-width: 40px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--pill); font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.mg-lang select { height: 34px; padding: 0 8px; border-radius: var(--pill); border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; }
.mg-lang a[aria-current] { background: var(--ink); color: var(--surface); box-shadow: none; }
@media (max-width: 760px) {
  .lsw { display: none; }
}

/* Altra valuta: il prezzo convertito ha sempre accanto quello in euro, che è quello che si paga */
.fxref { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
p.fxref { margin: 10px 0 0; line-height: 1.45; }
.co-fx { display: grid !important; grid-template-columns: 1fr auto; gap: 2px 10px; padding-top: 6px; font-size: 14px; }
.co-fx small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* Modulo della pagina Contatti: campi come quelli della cassa, colori e angoli dal tema */
.ct-box { margin-top: 34px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ct-box h2 { margin: 0 0 4px; font-size: clamp(24px, 2.4vw, 32px); }
.ct-intro { margin: 0 0 18px; color: var(--muted); }
.ct-form { display: grid; gap: 14px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ct-form small { font-weight: 400; }
.ct-form select, .ct-form textarea { width: 100%; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.ct-form select { height: 46px; }
.ct-form textarea { min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.ct-form select:focus, .ct-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent); }
.co-f.co-err select, .co-f.co-err textarea { border-color: #D93025; box-shadow: 0 0 0 3px rgb(217 48 37 / .14); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-chk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; font-size: 14px; color: var(--muted); }
.ct-chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.ct-chk a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ct-chk em { grid-column: 2; font-style: normal; font-size: 12.5px; color: #D93025; }
.ct-chk.co-err span { color: #D93025; }
.ct-form .btn { justify-self: start; }
.ct-done { padding: 18px 20px; border-radius: var(--r-sm); background: var(--soft); }
.ct-done b { font-size: 18px; }
.ct-done p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 640px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct-form .btn { justify-self: stretch; }
}

/* Pannello Aspetto dell'anteprima: colori e caratteri suoi, non cambia con la palette, la modalità o i caratteri che prova */
#panel.panel { --surface: #FFFFFF; --ink: #17181C; --muted: #6B6F78; --line: rgb(23 24 28 / .1); --soft: #F1F2F4; --primary: #17181C; --on-primary: #FFFFFF; --shadow-pop: 0 30px 80px -20px rgb(0 0 0 / .35); background: #FFFFFF; color: #17181C; color-scheme: light; font-family: "Geist", system-ui, sans-serif; border-radius: 26px; }
#panel.panel h2, #panel.panel h3 { font-family: inherit; }
#panel.panel h2 { font-weight: 600; }
#panel.panel button { font-family: inherit; color: inherit; }
#panel.panel .chips button[aria-pressed="true"], #panel.panel .asp-opts button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
#panel .asp-ptabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
#panel .asp-ptabs button { height: 36px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
#panel .asp-ptabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
#panel [data-pt][hidden] { display: none; }

/* Piè di pagina sui telefoni: ogni colonna a tutta larghezza con le voci in riga, così nessuna voce va a capo a metà */
@media (max-width: 560px) {
  div.fcol { grid-column: 1 / -1; flex: 1 1 100%; }
  div.fcol ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  div.fcol li { white-space: nowrap; }
}

/* scheda prodotto: riepilogo fisso che compare quando il pulsante principale esce dallo schermo (site.js) */
.sbuy { position: fixed; z-index: 50; left: 0; right: 0; top: 0; background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 14px 30px -18px rgb(0 0 0 / .35); transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
.sbuy.card { border-radius: var(--r-xl, 22px); box-shadow: 0 0 0 1px var(--line), var(--shadow-pop, 0 20px 50px -20px rgb(0 0 0 / .35)); }
.sbuy.on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s ease, opacity .25s ease; }
.sbuy .sbuy-in { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; }
.sbuy .sbuy-i { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: var(--r-sm, 10px); background: var(--soft); }
.sbuy .sbuy-t { min-width: 0; flex: 1 1 auto; display: grid; gap: 2px; line-height: 1.25; }
.sbuy .sbuy-t strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbuy .sbuy-t span { font-size: 12.5px; color: color-mix(in oklab, currentColor 62%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbuy .sbuy-p { flex: none; font-size: 17px; font-weight: 700; white-space: nowrap; }
.sbuy .btn.sbuy-b { flex: none; height: 46px; min-height: 0; width: auto; padding: 0 22px; font-size: 14.5px; gap: 8px; margin: 0; }
.sbuy .btn.sbuy-b .i { width: 18px; height: 18px; }
.sbuy .btn.sbuy-b .s { display: none; }
.sbuy .btn.sbuy-b:disabled { opacity: .5; cursor: not-allowed; }
/* scelta delle varianti evidenziata quando il riepilogo ci riporta */
.sb-hl { animation: sb-hl 1.6s ease-out 1; border-radius: var(--r-sm, 10px); }
@keyframes sb-hl { 0%, 40% { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 6px var(--accent, var(--primary)); } 100% { box-shadow: 0 0 0 3px transparent, 0 0 0 6px transparent; } }
@media (max-width: 760px) {
  .sbuy { top: auto; bottom: 0; transform: translateY(14px); box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -18px rgb(0 0 0 / .35); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sbuy .sbuy-in { padding: 8px 12px; gap: 10px; }
  .sbuy .sbuy-i { width: 44px; height: 44px; }
  .sbuy .sbuy-t strong { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2; }
  .sbuy .sbuy-t span { font-size: 12px; }
  .sbuy .sbuy-p { font-size: 15px; }
  .sbuy .btn.sbuy-b { height: 44px; padding: 0 14px; }
  .sbuy .btn.sbuy-b .l { display: none; }
  .sbuy .btn.sbuy-b .s { display: inline; }
  .sbuy .btn.sbuy-b .i { width: 20px; height: 20px; }
  /* le barre in basso (anteprima, confronto, cookie, avvisi) salgono sopra il riepilogo */
  body.sb-on .mock { bottom: calc(var(--sbh, 60px) + 10px + env(safe-area-inset-bottom, 0px)); }
  body.sb-on .cmpbar, body.sb-on .ck { bottom: calc(var(--sbh, 60px) + 10px + env(safe-area-inset-bottom, 0px)); }
  body.sb-on .toast { bottom: calc(var(--sbh, 60px) + 76px + env(safe-area-inset-bottom, 0px)); }
  body.sb-on { padding-bottom: calc(88px + var(--sbh, 60px)); }
  /* il carrello aperto occupa già lo schermo: niente avviso verde di aggiunta sopra */
  .added-pop { display: none !important; }
}
@media (max-width: 380px) {
  /* telefoni stretti: pulsante del riepilogo con la sola icona, il nome ha più spazio */
  .sbuy .btn.sbuy-b .s { display: none; }
  .sbuy .btn.sbuy-b { width: 46px; padding: 0; }
}

/* newsletter su telefono (tutti i layout): quando campo e pulsante vanno uno sotto l'altro hanno la stessa altezza */
@media (max-width: 760px) {
  form[data-news] input[type="email"] { min-height: 46px; flex-shrink: 0; }
  form[data-news] button { min-height: 46px; }
}
/* strisce a scorrimento laterale: il bordo sfuma dove ci sono altre voci nascoste (classi messe da site.js) */
.sx-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.sx-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.sx-l.sx-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
/* pannello Aspetto: schede Layout/Stile ferme in alto con il titolo, riquadri dei layout con l'anteprima (Marco 31/10) */
#panel.panel > header { flex-wrap: wrap; row-gap: 14px; }
#panel.panel > header .asp-ptabs { flex: 1 0 100%; }
#panel .asp-lays button { gap: 4px; padding: 6px 6px 10px; }
#panel .asp-lays button img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 8px; margin-bottom: 4px; background: var(--soft); }
#panel .asp-lays button b, #panel .asp-lays button small { padding: 0 4px; }

/* il pannello Aspetto è uno strumento: aspetto fisso, uguale in tutti i 20 layout (Marco 31/10) */
#panel.panel { font: 400 14px/1.45 "Geist", system-ui, sans-serif; letter-spacing: normal; text-transform: none; width: min(380px, calc(100% - 20px)); padding-left: 22px; padding-right: 22px; }
#panel.panel :where(*:not(svg, path)) { font-family: "Geist", system-ui, sans-serif; letter-spacing: normal; text-transform: none; }
#panel.panel h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
#panel.panel h3 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#panel .asp-ptabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 0; overflow: visible; border-radius: 999px; background: var(--soft); }
#panel .asp-ptabs button { height: 36px; padding: 0; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; }
#panel .asp-ptabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
#panel .asp-lays button b { font-size: 13.5px; font-weight: 600; }
#panel .asp-lays button small { font-size: 11.5px; line-height: 1.3; }
