/* ==========================================================================
   MC Group Shop - foglio di stile del negozio
   Direzione: "il banco della tipografia". Carta bianca, inchiostro blu-nero,
   blu e arancio del marchio MC Group. Titoli in Archivo espanso (il carattere
   dei manifesti), testo in Archivo normale. L'elemento distintivo e' il
   "buono di lavorazione" del configuratore; il resto resta sobrio.
   ========================================================================== */

/* Archivo (SIL Open Font License), ospitato sul nostro server: niente
   richieste a Google Fonts, pagine piu' veloci e nessun problema GDPR. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-var.woff2") format("woff2-variations"), url("/fonts/archivo-var.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --stock: #eef1f5;
  --stock-2: #e2e7ee;
  --ink: #172036;
  --ink-2: #47516a;
  --ink-3: #69728a;
  --rule: #d5dbe4;
  --blue: #1f3a8f;
  --blue-deep: #142a68;
  --blue-wash: #e9eef9;
  --orange: #cf4a12;
  --orange-deep: #b23c0c;
  --ok: #1d7448;
  --err: #b42318;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: "wdth" 118;
  --wider: "wdth" 125;

  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }

/* ---- Tipografia ---------------------------------------------------------- */
.display {
  font-size: clamp(2.35rem, 1.2rem + 4.4vw, 4.9rem);
  font-weight: 820;
  font-variation-settings: var(--wider);
  line-height: 0.97;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.display-s {
  font-size: clamp(1.85rem, 1.25rem + 2.3vw, 3.1rem);
  font-weight: 800;
  font-variation-settings: var(--wide);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-title {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
  font-weight: 760;
  font-variation-settings: var(--wide);
  letter-spacing: -0.006em;
}
.text-link { font-weight: 600; white-space: nowrap; }

/* ---- Pulsanti ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--r-m);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-buy { background: var(--orange); color: #fff; width: 100%; font-size: 1.06rem; min-height: 54px; }
.btn-buy:hover { background: var(--orange-deep); color: #fff; }
.btn-buy[aria-disabled="true"] { background: var(--stock-2); color: var(--ink-3); cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }

/* ---- Intestazione ------------------------------------------------------- */
.topline { background: var(--ink); color: #c9d1e2; font-size: 0.82rem; }
.topline-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topline p { margin: 0; }
.topline a { color: #fff; text-decoration: none; margin-left: 18px; }
.topline a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 760px) { .topline-inner > p:first-child { display: none; } .topline-contacts { margin: 0 auto !important; } .topline a:first-child { margin-left: 0; } }

.masthead { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: 72px; }

.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; line-height: 1; font-variation-settings: var(--wider); flex: none; }
.wm-mc { font-weight: 900; font-size: 1.55rem; color: var(--blue); letter-spacing: -0.02em; }
.wm-group { font-weight: 900; font-size: 1.55rem; color: var(--orange); letter-spacing: -0.02em; }
.wm-shop { font-weight: 500; font-size: 0.95rem; color: var(--ink-2); margin-left: 6px; font-variation-settings: "wdth" 100; }
.wordmark-light .wm-mc { color: #fff; }
.wordmark-light .wm-shop { color: #b9c3d8; }

/* ricerca grande al centro, come nelle tipografie online */
.mh-search { flex: 1; display: flex; max-width: 560px; margin: 0 auto; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--stock); transition: border-color 150ms ease, background-color 150ms ease; }
.mh-search:focus-within { border-color: var(--blue); background: #fff; }
.mh-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 6px 11px 20px; font-size: 1rem; outline: none; }
.mh-search input::-webkit-search-cancel-button { display: none; }
.mh-search button { flex: none; width: 46px; margin: 3px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.mh-search button:hover { background: var(--blue-deep); }
.mh-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.masthead-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.masthead-actions a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; border-radius: var(--r-s); }
.masthead-actions a:hover { background: var(--stock); color: var(--ink); }
.masthead-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: 0.78rem; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

.nav-toggle { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 10px; border: 0; background: none; border-radius: var(--r-s); font-weight: 650; color: var(--ink); margin-left: -10px; }
.nav-toggle:hover { background: var(--stock); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform 200ms var(--ease-out); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* barra dei reparti sotto la testata */
.catbar { border-top: 1px solid var(--stock-2); }
.catbar ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; }
.catbar ul::-webkit-scrollbar { display: none; }
.catbar a { display: block; white-space: nowrap; padding: 11px 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.93rem; border-bottom: 2px solid transparent; }
.catbar a:hover { color: var(--ink); border-bottom-color: var(--orange); }

/* menu "Tutti i prodotti": pannello a colonne */
.mega { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px rgba(23, 32, 54, 0.14); max-height: calc(100vh - 140px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s 160ms; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 32px; padding-top: 26px; padding-bottom: 30px; }
.mega-head { display: block; font-weight: 760; font-variation-settings: var(--wide); font-size: 1.06rem; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
a.mega-head:hover { color: var(--blue); }
.mega-col ul { display: grid; gap: 2px; }
.mega-col li a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.mega-col li a:hover { color: var(--blue); text-decoration: underline; }
.mega-col-wide { grid-column: span 3; }
.mega-col-wide ul { display: block; columns: 3 180px; column-gap: 28px; }
.mega-col-wide li { break-inside: avoid; }
@media (max-width: 960px) { .mega-col-wide { grid-column: 1 / -1; } .mega-col-wide ul { columns: 2 150px; } }
.mega-help { background: var(--blue-wash); border-radius: var(--r-l); padding: 16px 18px; align-self: start; }
.mega-help p { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 8px; }
.mega-help a { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mega, .mega.is-open { transition: none; transform: none; } }

@media (max-width: 960px) {
  .masthead-inner { flex-wrap: wrap; gap: 6px 10px; min-height: 0; padding-top: 8px; padding-bottom: 10px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0 10px; }
  .wordmark { margin-right: auto; }
  .wm-shop { display: none; }
  .mh-search { order: 5; flex-basis: 100%; max-width: none; }
  .masthead-actions a span:not(.cart-count) { display: none; }
  .masthead-actions a { padding: 10px; }
  .catbar { display: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
}
@media (max-width: 520px) { .mega-grid { grid-template-columns: 1fr; } }

/* ---- Home: carosello in apertura --------------------------------------- */
.hero-carousel { padding-top: clamp(14px, 2vw, 24px); }
.hc-viewport { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--blue-deep); }
.hc-track { display: flex; transition: transform 600ms var(--ease-out); will-change: transform; }
.hc-slide { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); min-height: clamp(300px, 34vw, 430px); text-decoration: none; color: #fff; background: var(--blue); }
.hc-slide:hover { color: #fff; }
.hc-band { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(24px, 4vw, 52px); padding-left: clamp(24px, 5vw, 64px); }
.hc-kicker { font-size: 0.9rem; font-weight: 600; color: #c9d4f2; }
.hc-title { font-weight: 820; font-variation-settings: "wdth" 110; font-size: clamp(1.6rem, 0.95rem + 1.9vw, 2.6rem); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.hc-sub { color: #dbe3f7; font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.12rem); max-width: 40ch; }
.hc-cta { margin-top: 6px; display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 750; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.hc-slide:hover .hc-cta { background: var(--orange-deep); }
.hc-slide:active .hc-cta { transform: scale(0.97); }
.hc-media { position: relative; overflow: hidden; background: var(--stock); }
.hc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 14px rgba(15, 25, 50, 0.18); display: grid; place-items: center; color: var(--ink); }
.hc-arrow:hover { background: #fff; }
.hc-arrow svg, .rail-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hc-prev { left: 12px; } .hc-next { right: 12px; }
.hc-dots { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
.hc-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--rule); transition: width 250ms var(--ease-out), background-color 200ms ease; }
.hc-dots button[aria-selected="true"] { width: 28px; background: var(--blue); }
@media (max-width: 760px) {
  .hc-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hc-media { order: -1; aspect-ratio: 16 / 9; }
  .hc-band { padding: 20px 20px 24px; gap: 8px; }
  .hc-arrow { top: 28%; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .hc-track { transition: none; } }

/* ---- Home: punti di forza --------------------------------------------- */
.trust { border-bottom: 1px solid var(--stock-2); }
.trust-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--ink-3); line-height: 1.3; }
.trust-list svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust-list strong { display: block; color: var(--ink); font-size: 0.95rem; }
@media (max-width: 1100px) { .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .trust-list svg { width: 28px; height: 28px; } }

/* ---- Home: riquadri delle categorie ------------------------------------ */
.home-h1 { font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2rem); text-wrap: balance; }
.band.band-cats { padding-top: clamp(30px, 4vw, 52px); padding-bottom: clamp(16px, 2vw, 28px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tiles:has(> li:nth-child(9)) { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); text-align: center; }
.tile-media { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--stock); border: 1px solid var(--stock-2); transition: border-color 200ms ease, box-shadow 200ms ease; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.tile-name { font-weight: 700; font-size: 0.98rem; line-height: 1.2; margin-top: 10px; }
.tile-meta { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-media { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); } .tile:hover img { transform: scale(1.05); } .tile:hover .tile-name { color: var(--blue); } }
@media (max-width: 560px) { .tiles, .tiles:has(> li:nth-child(9)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile-name { font-size: 0.86rem; } }

/* ---- Home: file di prodotti scorrevoli --------------------------------- */
.band.rail { padding: clamp(26px, 3.5vw, 44px) 0; }
.band.rail + .band.rail { padding-top: 0; }
.rail-tools { display: flex; align-items: center; gap: 8px; }
.rail-tools .text-link { margin-right: 6px; }
.rail-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--ink); display: grid; place-items: center; transition: border-color 150ms ease, opacity 150ms ease; }
.rail-btn:hover:not(:disabled) { border-color: var(--ink); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-static .rail-btn { display: none; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * clamp(14px, 2vw, 22px)) / 5); gap: clamp(14px, 2vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; } }
@media (max-width: 760px) { .rail-track { grid-auto-columns: 42%; gap: 12px; } .rail-btn { display: none; } }

/* ---- Sezioni ------------------------------------------------------------ */
.band { padding: clamp(40px, 6vw, 80px) 0; }
.band + .band-lane { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.lane-intro { color: var(--ink-2); max-width: 70ch; margin: -10px 0 24px; }

.band-steps { background: var(--blue); color: #fff; }
.band-steps .section-title { margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.steps li { counter-increment: step; padding: 22px 26px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.steps li + li { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, 0.3); }
.steps li::before { content: counter(step); font-weight: 850; font-variation-settings: var(--wider); font-size: 2.6rem; line-height: 1; color: #ffb48f; margin-bottom: 8px; }
.steps strong { font-size: 1.15rem; }
.steps span { color: #d5ddf1; font-size: 0.98rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
  .steps li { flex-direction: row; flex-wrap: wrap; column-gap: 16px; }
  .steps li::before { font-size: 2rem; margin: 0; }
  .steps strong { align-self: center; }
  .steps span { flex-basis: 100%; }
}

/* ---- Schede prodotto ------------------------------------------------------ */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.pcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.pcard-media { display: block; aspect-ratio: 1; background: var(--stock); border-radius: var(--r-l); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pcard-link:hover .pcard-media img { transform: scale(1.04); } .pcard-link:hover .pcard-name { text-decoration: underline; text-underline-offset: 0.16em; } }
.pcard-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 2px 0; }
.pcard-cat { font-size: 0.82rem; color: var(--ink-3); }
.pcard-name { font-weight: 700; font-size: 1.04rem; line-height: 1.25; }
.pcard-price { font-size: 0.93rem; color: var(--ink-2); }
.pcard-price strong { color: var(--orange-deep); font-size: 1.06rem; font-variant-numeric: tabular-nums; }
.pcard-swatches { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.pcard-swatches .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(23, 32, 54, 0.22); }
.pcard-swatches .more { font-size: 0.78rem; color: var(--ink-3); margin-left: 2px; }
.pcard-min { font-size: 0.82rem; color: var(--ink-3); }

/* ---- Chi siamo, FAQ ----------------------------------------------------- */
.band-about { background: var(--stock); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-grid p { max-width: 62ch; color: var(--ink-2); }
.about-sub { font-size: 1.15rem; color: var(--ink) !important; margin: 10px 0 14px; }
.facts li { padding: 16px 0; border-top: 1px solid var(--rule); font-weight: 700; font-variation-settings: var(--wide); font-size: 1.15rem; }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.clients { margin-top: 44px; }
.clients-title { font-size: 1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.clients-list { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.clients-list li { font-weight: 780; font-variation-settings: var(--wide); font-size: 1.12rem; color: var(--ink-2); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 5vw, 80px); }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); max-width: 66ch; padding-bottom: 6px; }

/* ---- Catalogo ------------------------------------------------------------ */
.crumbs { padding: 18px 0 6px; font-size: 0.88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.catalog-head { padding: 18px 0 18px; max-width: 760px; }
.catalog-intro { font-size: 1.1rem; color: var(--ink-2); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.chip { padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; background: #fff; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.result-count { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 14px; }
.catalog-help { margin: 60px 0 70px; padding: 28px; background: var(--stock); border-radius: var(--r-l); max-width: 760px; }
.catalog-help h2 { font-size: 1.25rem; margin-bottom: 8px; }
.catalog-help p { margin: 0; color: var(--ink-2); }
.empty-state { padding: 60px 0 80px; max-width: 640px; }
.empty-state h1 { margin-bottom: 14px; }

/* ---- Pagina prodotto ------------------------------------------------------ */
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 64px); padding: 10px 0 40px; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.product-visual { position: sticky; top: 92px; }
@media (max-width: 900px) { .product-visual { position: static; } }

.stage { position: relative; aspect-ratio: 1; background: var(--stock); border-radius: var(--r-l); overflow: hidden; touch-action: pan-y pinch-zoom; }
.stage-photo { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.stage-art { position: absolute; inset: 0; display: none; }
.stage-art svg { width: 100%; height: 100%; }
.js .stage-mockup .stage-photo { opacity: 0; }
.stage-mockup.is-drawn .stage-photo { display: none; }
.stage-mockup.is-drawn .stage-art { display: block; }
.stage-mockup { background: radial-gradient(circle at 50% 42%, #fff 0, var(--stock) 70%); }
/* segni di taglio della tipografia agli angoli */
.crop { position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink-3); opacity: 0.55; }
.crop::before { width: 18px; height: 1px; } .crop::after { width: 1px; height: 18px; }
.crop-tl { top: 12px; left: 12px; } .crop-tr { top: 12px; right: 12px; } .crop-bl { bottom: 12px; left: 12px; } .crop-br { bottom: 12px; right: 12px; }
.crop-tr::before, .crop-br::before { right: 0; } .crop-tr::after, .crop-br::after { right: 0; }
.crop-bl::before, .crop-br::before { bottom: 0; } .crop-bl::after, .crop-br::after { bottom: 0; }
.stage-logo { position: absolute; z-index: 2; cursor: grab; outline: 1px dashed rgba(31, 58, 143, 0.55); outline-offset: 3px; transform: translate(-50%, -50%); touch-action: none; }
.stage-logo:active { cursor: grabbing; }
.stage-logo img { width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.stage-note { font-size: 0.86rem; color: var(--ink-3); margin: 10px 2px 0; }
.logo-tools { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 0.9rem; flex-wrap: wrap; }
.logo-tools input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--blue); }
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-m); overflow: hidden; background: var(--stock); width: 72px; height: 72px; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-current { border-color: var(--ink); }

.product-cat { margin: 0 0 8px; font-size: 0.92rem; }
.product-cat a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.product-cat a:hover { color: var(--blue); }
.product-lead { font-size: 1.1rem; color: var(--ink-2); margin: 14px 0 0; }
.product-from { margin: 14px 0 6px; color: var(--ink-2); }
.product-from strong { color: var(--orange-deep); font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* configuratore */
.cfg { margin-top: 18px; }
.cfg-group { border: 0; padding: 22px 0 0; margin: 0; min-width: 0; }
.cfg-group + .cfg-group { border-top: 1px solid var(--stock-2); margin-top: 22px; }
.cfg-group legend, .cfg-note > label { float: left; width: 100%; font-weight: 720; font-size: 1.04rem; margin-bottom: 12px; padding: 0; }
.cfg-group legend + * { clear: both; }
.optional { font-weight: 450; color: var(--ink-3); font-size: 0.9rem; margin-left: 4px; }
.cfg-help { clear: both; font-size: 0.9rem; color: var(--ink-3); margin: 10px 0 0; }
.cfg-rows .cfg-help:first-of-type { margin: -4px 0 12px; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-face { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-m); background: #fff; cursor: pointer; min-height: 46px; justify-content: center; transition: border-color 140ms ease, background-color 140ms ease, transform 140ms var(--ease-out); }
.opt:active .opt-face { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .opt:hover .opt-face { border-color: var(--ink-2); } }
.opt input:checked + .opt-face { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.opt input:focus-visible + .opt-face { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt-label { font-weight: 600; line-height: 1.2; }
.opt-hint { font-size: 0.82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opts-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.opts-cards .opt-face { height: 100%; padding: 12px 14px; }
.opts-cards .opt-face img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-s); margin-bottom: 6px; }
.opts-swatch .opt-face { flex-direction: row; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; }
.opts-swatch .opt-hint { margin-left: 2px; }
.swatch-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(23, 32, 54, 0.25); flex: none; display: inline-block; }
.cfg-d-select + .cfg-d-select { border-top: 0; margin-top: 4px; padding-top: 10px; }
.cfg-d-select legend { margin-bottom: 8px; font-size: 0.98rem; }
.cfg-select { width: 100%; max-width: 460px; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-m); background: #fff; }

/* colori e taglie */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; font-weight: 600; transition: border-color 140ms ease, transform 140ms var(--ease-out); }
.swatch:active { transform: scale(0.97); }
.swatch[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.swatch .opt-hint { margin-left: -2px; }
.size-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.size-row { border: 1px solid var(--rule); border-radius: var(--r-m); padding: 12px 14px 14px; background: #fff; }
.size-row-name { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; }
.size-row-name .swatch-dot { width: 18px; height: 18px; }
.size-row-total { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.size-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.size-cell { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 650; text-align: center; }
.size-cell small { order: 3; font-weight: 450; color: var(--ink-3); font-size: 0.75rem; margin-top: -2px; }
.size-cell input { order: 2; width: 100%; min-height: 46px; text-align: center; border: 1.5px solid var(--rule); border-radius: var(--r-s); font-size: 1.05rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0 4px; }
.size-cell input::-webkit-inner-spin-button, .size-cell input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.size-cell input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 58, 143, 0.18); }
.size-cell input.has-qty { border-color: var(--blue); background: var(--blue-wash); }

/* quantita' */
.qty-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stepper { display: inline-flex; border: 1.5px solid var(--rule); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.stepper-btn { width: 48px; border: 0; background: var(--stock); font-size: 1.3rem; font-weight: 600; }
.stepper-btn:active { background: var(--stock-2); }
.stepper input { width: 96px; border: 0; text-align: center; font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; min-height: 48px; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; background: var(--blue-wash); }
.qty-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { padding: 8px 12px; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.preset[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* file */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--rule); border-radius: var(--r-m); background: var(--stock); text-align: center; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-wash); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font-weight: 650; }
.drop-title u { color: var(--blue); text-underline-offset: 0.16em; }
.drop-sub { font-size: 0.85rem; color: var(--ink-3); }
.files { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-m); font-size: 0.93rem; }
.files .f-thumb { width: 40px; height: 40px; border-radius: var(--r-s); background: var(--stock) center / contain no-repeat; flex: none; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: var(--ink-3); }
.files .f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .f-state { font-size: 0.82rem; color: var(--ink-3); }
.files .f-state.is-err { color: var(--err); }
.files button { border: 0; background: none; color: var(--ink-3); padding: 6px; font-size: 0.86rem; text-decoration: underline; }
.cfg-note textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-m); resize: vertical; min-height: 64px; }
.cfg-note textarea:focus { border-color: var(--blue); outline: none; }

/* ---- Il buono di lavorazione (elemento distintivo) ----------------------- */
.ticket {
  position: relative;
  margin-top: 30px;
  padding: 26px 24px 22px;
  background: #f5f7fc;
  border: 1px solid #cfd8ea;
  border-top: 0;
  border-radius: 0 0 var(--r-m) var(--r-m);
  }
/* bordo superiore perforato, come un foglio staccato dal blocco */
.ticket::before {
  content: "";
  position: absolute; left: -1px; right: -1px; top: -9px; height: 10px;
  background: radial-gradient(circle at 7px 0, transparent 5px, #f5f7fc 5.5px) 0 0 / 14px 10px repeat-x;
  filter: drop-shadow(0 -1px 0 #cfd8ea);
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ticket-head h2 { font-size: 1.15rem; font-weight: 780; font-variation-settings: var(--wide); }
.ticket-ref { margin: 0; font-size: 0.82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ticket-lines { margin: 8px 0 0; }
.ticket-lines div { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 0.95rem; }
.ticket-lines dt { color: var(--ink-2); display: flex; flex: 1; align-items: baseline; gap: 8px; min-width: 0; }
.ticket-lines dt::after { content: ""; flex: 1; border-bottom: 1.5px dotted #a9b4c8; transform: translateY(-4px); min-width: 16px; }
.ticket-lines dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.ticket-lines .t-sub dt, .ticket-lines .t-sub dd { font-size: 0.88rem; color: var(--ink-3); font-weight: 450; }
.ticket-lines .t-save dd { color: var(--ok); }
.ticket-total { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 2px; padding-top: 12px; border-top: 2px solid var(--ink); }
.ticket-total span { font-weight: 650; }
.ticket-total strong {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 850; font-variation-settings: var(--wider);
  color: var(--orange-deep); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; margin-left: auto;
  transition: transform 220ms var(--ease-out);
}
.ticket-total strong.is-bump { transform: translateY(-2px); }
.ticket-vat { text-align: right; font-size: 0.86rem; color: var(--ink-3); margin: 0 0 16px; }
.ticket-error { background: #fdecea; color: var(--err); padding: 10px 12px; border-radius: var(--r-s); font-size: 0.92rem; margin: 0 0 12px; }
.ticket-error.is-info { background: #fff; color: var(--ink-2); border: 1px dashed #b8c3d8; }
.ticket-foot { font-size: 0.84rem; color: var(--ink-3); margin: 12px 0 0; text-align: center; }

/* barra di acquisto su telefono */
.buybar { display: none; }
@media (max-width: 900px) {
  .buybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--rule); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); transform: translateY(0); transition: transform 220ms var(--ease-out); box-shadow: 0 -8px 24px rgba(23, 32, 54, 0.08); }
  .buybar.is-away { transform: translateY(110%); }
  .buybar-inner { display: flex; align-items: center; gap: 14px; }
  .buybar p { margin: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
  .buybar span { font-size: 0.84rem; color: var(--ink-3); }
  .buybar strong { font-size: 1.3rem; font-weight: 820; font-variation-settings: var(--wide); color: var(--orange-deep); font-variant-numeric: tabular-nums; }
  .buybar .btn-buy { width: auto; min-height: 48px; padding: 10px 20px; }
  .page-product .colophon { padding-bottom: 90px; }
}

/* informazioni sotto il configuratore */
.product-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding: 40px 0 20px; border-top: 1px solid var(--rule); }
@media (max-width: 980px) { .product-info { grid-template-columns: 1fr; } }
.info-block .section-title { margin-bottom: 14px; font-size: 1.3rem; }
.info-block h3 { font-size: 1rem; margin: 18px 0 8px; }
.prose { color: var(--ink-2); }
.spec-list li { padding: 8px 0; border-bottom: 1px solid var(--stock-2); color: var(--ink-2); font-size: 0.96rem; }
.spec-list strong { color: var(--ink); }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.96rem; }
.price-table th { text-align: left; font-size: 0.85rem; color: var(--ink-3); font-weight: 600; padding: 8px 0; border-bottom: 2px solid var(--ink); }
.price-table td { padding: 9px 0; border-bottom: 1px solid var(--stock-2); }
.price-table th:not(:first-child), .price-table td:not(:first-child) { text-align: right; }
.band-related { padding-top: 30px; }
.band-related .section-title { margin-bottom: 20px; }

/* ---- Carrello ------------------------------------------------------------ */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: 10px 0 70px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-head { padding: 18px 0 22px; }
.cart-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cart-item-media { width: 96px; height: 96px; border-radius: var(--r-m); background: var(--stock); overflow: hidden; }
.cart-item-media img, .cart-item-media svg { width: 100%; height: 100%; object-fit: cover; }
.cart-item h2 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.cart-item h2 a { color: var(--ink); text-decoration: none; }
.cart-item h2 a:hover { text-decoration: underline; }
.cart-item-meta { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.cart-item-meta li { margin: 2px 0; }
.cart-item-lines { font-size: 0.88rem; color: var(--ink-3); margin-top: 6px; }
.cart-item-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item-price strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.cart-item-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 0.9rem; }
.cart-item-actions a, .cart-item-actions button { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.16em; font-size: inherit; }
.cart-item-warn { color: var(--err); font-size: 0.88rem; margin-top: 6px; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 72px 1fr; } .cart-item-media { width: 72px; height: 72px; } .cart-item-price { grid-column: 2; align-items: flex-start; text-align: left; } }
.summary { position: sticky; top: 92px; }
.summary .ticket { margin-top: 10px; }
.coupon { display: flex; gap: 8px; margin: 14px 0 4px; }
.coupon input { flex: 1; min-width: 0; padding: 11px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-m); text-transform: uppercase; }
.coupon button { padding: 0 16px; border: 1.5px solid var(--ink); border-radius: var(--r-m); background: #fff; font-weight: 650; }
.coupon-msg { font-size: 0.88rem; min-height: 1.2em; margin: 0 0 6px; }
.coupon-msg.is-ok { color: var(--ok); } .coupon-msg.is-err { color: var(--err); }
.pay-methods { margin: 14px 0 16px; }
.pay-methods .opt-face { flex-direction: row; align-items: center; gap: 10px; }
.order-note { width: 100%; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-m); margin: 4px 0 14px; min-height: 60px; }
.checkout-who { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 12px; }
.done { max-width: 680px; padding: 30px 0 80px; }
.done h1 { margin-bottom: 14px; }
.bank { margin: 22px 0; }
.bank .ticket-lines dd { user-select: all; }

/* ---- Piè di pagina ------------------------------------------------------- */
.colophon { background: var(--ink); color: #c4cce0; padding: 56px 0 24px; margin-top: 30px; font-size: 0.95rem; }
.colophon a { color: #fff; text-decoration: none; }
.colophon a:hover { text-decoration: underline; color: #fff; }
.colophon-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .colophon-grid { grid-template-columns: 1fr 1fr; } .colophon-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .colophon-grid { grid-template-columns: 1fr; } }
.colophon-brand p { margin-top: 14px; max-width: 42ch; }
.colophon-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.colophon li { margin: 7px 0; }
.colophon address { font-style: normal; line-height: 1.7; }
.colophon-hours { margin: 10px 0; }
.colophon-social a { margin-right: 16px; }
.colophon-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 18px; font-size: 0.84rem; color: #9aa6c2; }
.colophon-legal p { margin: 0; }

/* ---- Avvisi --------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 0); background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-m); box-shadow: 0 12px 30px rgba(23, 32, 54, 0.28); display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 32px); font-size: 0.96rem; transition: opacity 200ms ease, transform 260ms var(--ease-out); }
.toast a { color: #ffb48f; font-weight: 700; white-space: nowrap; }
.toast.is-hiding { opacity: 0; transform: translate(-50%, 12px); }
@starting-style { .toast { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 900px) { .page-product .toast { bottom: 96px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* nomi account lunghi: la testata non va mai a capo */
.mh-account span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 961px) { .mh-account span { max-width: 110px; } }

.product-stock { margin: 4px 0 0; font-size: 0.92rem; color: var(--ok); font-weight: 600; }
.product-stock.is-out { color: var(--orange-deep); }
.product-stock.is-warn { color: #9a5b00; }

/* ---- Griglia prezzi quantità × consegna (prodotti stampati) ------------ */
.cfg-legend { font-weight: 700; margin: 0 0 10px; }
.pgt-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-m); }
.pgt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.pgt th, .pgt td { padding: 0; border-bottom: 1px solid var(--stock-2); text-align: center; }
.pgt tr:last-child th, .pgt tr:last-child td { border-bottom: 0; }
.pgt thead th { background: var(--stock); padding: 8px 6px; font-weight: 700; font-size: 0.85rem; }
.pgt thead th:first-child, .pgt tbody th { text-align: left; padding-left: 12px; }
.pgt tbody th { font-weight: 650; white-space: nowrap; padding-right: 8px; }
.pgt-date { display: block; text-transform: capitalize; }
.pgt-sub { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.78rem; }
.pgt button { width: 100%; border: 0; background: transparent; padding: 8px 6px; font-weight: 650; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 1px; transition: background-color 120ms ease; }
.pgt button small { font-weight: 500; color: var(--ink-3); font-size: 0.74rem; }
.pgt button:hover { background: var(--blue-wash); }
.pgt button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.pgt button[aria-pressed="true"] small { color: #dbe3f7; }

/* ---- Configuratore a passi (prodotti stampati) ------------------------- */
.product-steps { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.product-steps .product-main { order: 1; }
.steps-aside { order: 2; position: sticky; top: 92px; display: grid; gap: 14px; max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; }
.product-steps .product-visual { position: static; }
.product-steps .stage { aspect-ratio: 16 / 9; border-radius: var(--r-m); }
@media (max-height: 820px) { .product-steps .product-visual { display: none; } }
.product-steps .stage-note, .product-steps .logo-tools, .product-steps .thumbs { display: none; }
.product-steps .ticket { margin-top: 0; }
@media (max-width: 900px) {
  .product-steps { grid-template-columns: 1fr; }
  .steps-aside { position: static; max-height: none; overflow: visible; }
  .product-steps .product-visual, .steps-summary { display: none; }
}
.steps-hidden { display: none !important; }
.csteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cstep { border: 1.5px solid var(--rule); border-radius: var(--r-m); background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.cstep.is-open { border-color: var(--ink); box-shadow: 0 8px 24px -16px rgba(23, 32, 54, 0.35); }
.cstep-head { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; background: none; border: 0; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.cstep-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--stock); font-weight: 760; font-variant-numeric: tabular-nums; transition: background-color 160ms ease, color 160ms ease; }
.cstep.is-done .cstep-num { background: var(--blue); color: #fff; }
.cstep.is-open .cstep-num { background: var(--orange); color: #fff; }
.cstep-text { display: grid; gap: 2px; min-width: 0; }
.cstep-title { font-weight: 750; font-size: 1.04rem; }
.cstep-val { font-size: 0.9rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cstep.is-open .cstep-val { display: none; }
.cstep-edit { font-size: 0.86rem; font-weight: 650; color: var(--blue); }
.cstep.is-open .cstep-edit { visibility: hidden; }
.cstep-body { display: none; padding: 0 16px 18px; }
.cstep.is-open .cstep-body { display: block; animation: cstep-in 200ms var(--ease-out); }
@keyframes cstep-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cstep.is-open .cstep-body { animation: none; } }
.cstep-body .cfg-group { padding-top: 4px; }
.cstep-body .cfg-group + .cfg-group { margin-top: 18px; padding-top: 18px; }
.cstep-body .cstep-solo > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.product-steps .opts:not(.opts-delivery) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.product-steps .opts .opt-face { height: 100%; padding: 12px; }
.opts-ico .opt-face { align-items: flex-start; }
.opt-ico { width: 40px; height: 40px; margin-bottom: 6px; fill: #fff; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.opt-ico-fold polygon:nth-child(odd) { fill: var(--stock); }
.opt input:checked + .opt-face .opt-ico { stroke: var(--blue); }
.opt input:checked + .opt-face .opt-ico rect, .opt input:checked + .opt-face .opt-ico ellipse { fill: #fff; }
.steps-summary { border: 1.5px solid var(--rule); border-radius: var(--r-m); padding: 14px 16px; background: #fff; }
.steps-summary-title { font-size: 1rem; font-weight: 760; margin: 0 0 6px; }
.steps-summary dl { margin: 0; }
.steps-summary dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--stock-2); font-size: 0.9rem; }
.steps-summary dl > div:first-child { border-top: 0; }
.steps-summary dt { color: var(--ink-3); }
.steps-summary dd { margin: 0; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.steps-jump { font-size: 0.8rem; font-weight: 600; flex: none; }
.steps-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px -12px rgba(23, 32, 54, 0.4); }
.steps-bar[hidden] { display: none; }
.steps-bar span { display: grid; line-height: 1.2; }
.steps-bar small { color: var(--ink-3); font-size: 0.78rem; }
.steps-bar strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.steps-bar .btn-buy { width: auto; min-height: 46px; padding: 0 18px; font-size: 0.98rem; }
body.has-steps-bar { padding-bottom: 76px; }
.h-progress { margin-top: 14px; }
.h-bar { height: 10px; border-radius: 5px; background: var(--stock); overflow: hidden; }
.h-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 300ms ease; }

/* ---- Pulsanti PayPal ---- */
.pp-box, .pp-account { max-width: 420px; margin-top: 12px; }
.pp-msg { font-size: 14px; margin: 8px 0; }
.pp-msg.is-err { color: #b42318; }
.pp-msg[hidden] { display: none; }

/* ---- Safari (iPhone/iPad/Mac): le foto dei fornitori (900px e oltre) non
   devono allargare le colonne della griglia, altrimenti la pagina esce dallo
   schermo e bisogna rimpicciolire. Le foto riempiono il loro riquadro senza
   contare nella larghezza. ---- */
.pgrid > *, .product > *, .cart-layout > *, .product-info > *, .about-grid > *, .faq-grid > *, .mega-grid > *, .tiles > *, .cart-item > *, .product-steps > * { min-width: 0; }
@media (max-width: 900px) { .product, .cart-layout, .product-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mega-grid { grid-template-columns: minmax(0, 1fr); } }
.pcard-media, .tile-media, .stage, .thumb, .cart-item-media { position: relative; }
.pcard-media img, .tile-media img, .thumb img, .cart-item-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* Safari vecchi senza aspect-ratio: riquadro quadrato con il vecchio metodo */
@supports not (aspect-ratio: 1) {
  .pcard-media, .tile-media, .stage { height: 0; padding-bottom: 100%; }
  .product-steps .stage { padding-bottom: 56.25%; }
}
html, body { max-width: 100%; overflow-x: clip; }
/* telefono: spazio sotto la pagina prodotto per la barra fissa del prezzo,
   e foto un po' piu' bassa cosi' resta spazio per scorrere */
@media (max-width: 900px) {
  body:has(.buybar), body:has(.steps-bar) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .product:not(.product-steps) .stage { aspect-ratio: 4 / 3.4; }
}

/* ---- suggerimenti di ricerca ---- */
.ss-box { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 18px 44px rgba(23, 32, 54, .18); padding: 8px; max-height: min(70vh, 560px); overflow-y: auto; text-align: left; }
.ss-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.ss-cat { font-size: .85rem; font-weight: 700; color: var(--blue); background: var(--blue-wash, #eef1fb); padding: 5px 11px; border-radius: 999px; text-decoration: none; }
.ss-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ss-item:hover, .ss-item.is-active { background: var(--stock); }
.ss-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--stock); flex: none; position: static; }
.ss-txt { min-width: 0; display: flex; flex-direction: column; }
.ss-name { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-meta { font-size: .8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-all { display: block; text-align: center; padding: 10px; margin-top: 4px; font-weight: 700; color: var(--blue); border-top: 1px solid var(--rule); text-decoration: none; }
.ss-empty { padding: 12px; color: var(--ink-3); font-size: .92rem; }
.ss-empty a { color: var(--blue); font-weight: 700; }

/* ---- pagine per zona e settore ---- */
.landing-head { max-width: 860px; padding: 10px 0 26px; }
.landing-kicker { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep, #c2410c); margin: 0 0 8px; }
.landing-intro { font-size: 1.08rem; color: var(--ink-2, #3a4152); margin: 12px 0 0; max-width: 72ch; }
.landing-points { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.landing-points li { position: relative; padding-left: 26px; color: var(--ink-2, #3a4152); }
.landing-points li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.landing-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.landing-products { padding: 10px 0 30px; }
.landing-products .section-title, .landing-faq .section-title { margin-bottom: 18px; }
.landing-products .chips { margin-top: 22px; }
.landing-faq { max-width: 860px; padding: 10px 0 30px; }
.landing-faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.landing-faq summary { font-weight: 700; cursor: pointer; }
.landing-faq details p { margin: 10px 0 0; color: var(--ink-2, #3a4152); }
.colophon-zones { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; padding-bottom: 6px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.colophon-zones a { color: rgba(255,255,255,.7); text-decoration: none; }
.colophon-zones a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .landing-points { grid-template-columns: minmax(0, 1fr); } }

/* ---- Chiedi un preventivo ---- */
.btn-quote { display: block; width: 100%; margin-top: 10px; background: none; border: 0; padding: 8px 4px; color: var(--ink-2, #3a4152); font: inherit; font-size: .92rem; cursor: pointer; text-align: center; }
.btn-quote strong { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }
.qmodal { position: fixed; inset: 0; z-index: 200; background: rgba(15, 22, 40, .55); display: grid; place-items: center; padding: 16px; }
.qmodal[hidden] { display: none; }
.qmodal-card { position: relative; background: #fff; border-radius: 18px; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 26px 22px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.qmodal-card h2 { margin: 0 0 6px; font-size: 1.4rem; }
.qmodal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink-3); }
.qmodal-sub { color: var(--ink-3); margin: 0 0 14px; font-size: .95rem; }
.qmodal-sum { background: var(--stock); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; line-height: 1.5; }
.qmodal-sum:empty { display: none; }
#quoteForm label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
#quoteForm input, #quoteForm textarea { font: inherit; font-weight: 400; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
#quoteForm input:focus, #quoteForm textarea:focus { outline: none; border-color: var(--blue); }
#quoteForm label .optional { font-weight: 400; margin-left: 4px; padding: 0; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.qhp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qmodal-foot { font-size: .8rem; color: var(--ink-3); margin: 10px 0 0; text-align: center; }
.qmodal-ok { font-size: 1.05rem; margin: 6px 0 18px; }
@media (max-width: 560px) { .qgrid { grid-template-columns: minmax(0, 1fr); } .qmodal-card { padding: 22px 18px 18px; } }
