/* =====================================================================
   CASA E DECORO — negozio. Nero, bianco e giallo; Google Sans ovunque.
   Nessuna build: questo file è già quello di produzione.
   ===================================================================== */
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/google-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Frecce, pallini, spunte (symbols) e lettere greche (es. «μm»): stessi file di Google Fonts, scaricati solo se servono */
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/google-sans-symbols.woff2") format("woff2");
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF;
}
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/google-sans-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/google-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #0f1111;
  --ink: #131921;
  --ink-2: #232f3e;
  --text: #0f1111;
  --muted: #565959;
  --line: #e3e6e6;
  --bg: #ffffff;
  --bg-soft: #f5f6f6;
  /* Nomi della 3.1: il giallo non c'è più, chi li usa ancora (codice aggiunto a mano) prende il rosso del marchio. */
  --yellow: var(--red);
  --yellow-hover: var(--red-hover);
  --yellow-border: var(--red);
  --green: #007600;
  --red: #a01916; /* rosso del marchio CASA E DECORO (dal logo) */
  --red-hover: #7f1311;
  --red-soft: #fbeaea;
  --link: #0f1111;
  --radius: 12px;
  --shadow: 0 2px 5px rgba(15, 17, 17, .12);
  --font: "Google Sans", Arial, sans-serif; /* Google Sans ovunque; Arial solo se il file del font non arriva */
  --wrap: 1740px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, pre, samp { font-family: var(--font); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Bottoni ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--red); background: var(--red); color: #fff;
  font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--red); border-color: var(--red); color: #fff; }
.btn-orange:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2f2f; color: #fff; }
.btn-ghost { background: #fff; border-color: #d5d9d9; color: var(--text); box-shadow: var(--shadow); }
.btn-ghost:hover { background: #f7fafa; border-color: #c4c9c9; color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Testata ---------------------------------------------------------------- */
.header { background: #fff; color: var(--text); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 34px; padding: 14px 0; }
.logo { color: var(--ink); font-size: 27px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: baseline; line-height: 1; }
.logo-stack { flex-direction: column; align-items: center; gap: 5px; font-size: 34px; letter-spacing: .06em; }
.logo-stack small { font-size: 9.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.logo:hover { color: var(--ink); }
.logo span span, .logo > span:not(.logo-name) { color: var(--red); }
.search { flex: 1; position: relative; display: flex; min-width: 0; }
.search input {
  flex: 1; min-width: 0; height: 46px; border: 2px solid var(--red); border-right: 0; border-radius: 999px 0 0 999px; padding: 0 20px; font-size: 16px; background: #fff; color: var(--text);
}
.search input:focus { outline: 0; box-shadow: inset 0 0 0 2px rgba(160, 25, 22, .25); }
.search button { width: 58px; border: 0; border-radius: 0 999px 999px 0; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--red-hover); }
.suggest { position: absolute; left: 0; right: 0; top: 52px; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0, 0, 0, .28); overflow: hidden; display: none; z-index: 60; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.suggest a:hover, .suggest a.active { background: var(--red-soft); color: var(--text); }
.suggest img { width: 46px; height: 46px; border-radius: 6px; }
.suggest .n { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .pr { font-weight: 700; white-space: nowrap; }
.suggest .all { justify-content: center; font-weight: 600; border-bottom: 0; background: var(--bg-soft); }
.header-links { display: flex; align-items: center; gap: 6px; }
.header-link { display: flex; align-items: center; gap: 9px; color: var(--text); padding: 8px 12px; border-radius: 10px; font-weight: 600; position: relative; }
.header-link:hover { color: var(--text); background: var(--bg-soft); }
.header-link small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.1; }
.cart-icon { position: relative; display: inline-flex; }
.header-cart .icon { width: 26px; height: 26px; }
.header-link .icon { width: 23px; height: 23px; }
.header-cart small { margin-top: 2px; color: var(--text); font-size: 13px; }
.cart-count { position: absolute; top: -9px; left: 12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* Barra gialla ---------------------------------------------------------------- */
.topline { background: var(--red); color: #fff; font-size: 13px; font-weight: 600; }
.topline-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 30px; }
.topline-msg { grid-column: 2; display: inline-flex; align-items: center; gap: 9px; text-align: center; }
.topline-msg .icon { width: 19px; height: 19px; }
.topline-links { grid-column: 3; justify-self: end; display: flex; gap: 22px; font-weight: 500; font-size: 12.5px; }
.topline-links a { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.topline-links a:hover { text-decoration: underline; color: #fff; }
.topline-links .icon { width: 15px; height: 15px; }

/* Menu dei reparti: chiaro, con icone ------------------------------------------- */
.nav { background: #f3f4f4; color: var(--text); border-bottom: 1px solid var(--line); }
.nav-wrap { position: relative; display: flex; align-items: stretch; gap: 6px; }
.nav-list { flex: 1; min-width: 0; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.nav-item > a { display: flex; align-items: center; gap: 8px; padding: 14px 12px; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-item > a .icon { width: 19px; height: 19px; }
.nav-item > a:hover, .nav-item.active > a { border-bottom-color: var(--red); color: var(--text); background: #fff; }
.nav-item.hot > a { color: var(--red); font-weight: 600; }
.nav-badge { background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.nav-all { flex: none; display: flex; }
.nav-all > a { font-weight: 700; font-size: 15px; padding-left: 4px; padding-right: 18px; margin-right: 8px; position: relative; }
.nav-all > a::after { content: ""; position: absolute; right: 0; top: 13px; bottom: 13px; width: 1px; background: #cfd4d4; }
.nav-all > a .icon { width: 21px; height: 21px; }
.mega { display: none; position: absolute; left: 20px; right: 20px; top: 100%; background: #fff; color: var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .2); z-index: 40; border-top: 3px solid var(--red); border-radius: 0 0 14px 14px; max-height: min(72vh, 640px); overflow: auto; overscroll-behavior: contain; }
/* Senza script il sottomenu si apre al passaggio del mouse; con lo script lo apre shop.js (classe is-open), con un attimo di ritardo. */
html:not(.nav-ready) .nav-item:hover > .mega, html:not(.nav-ready) .nav-item:focus-within > .mega, .nav-item.is-open > .mega { display: block; }
.mega-inner { display: grid; grid-template-columns: minmax(240px, max-content) minmax(0, 1fr); gap: 30px; padding: 22px 26px 26px; }
.mega-main { max-width: 520px; min-width: 0; }
.mega-links a, .mega-cols a { padding: 6px 0; font-size: 14.5px; display: block; color: var(--text); }
.mega-links a:hover, .mega-cols a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mega-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 19px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.mega-title span { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--red); }
.mega-title .icon { width: 15px; height: 15px; }
.mega-title:hover span { text-decoration: underline; }
.mega-intro { margin: 2px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 62ch; }
.mega-links { columns: 2 200px; column-gap: 26px; margin-top: 8px; }
.mega-links a { break-inside: avoid; }
.mega-cta { margin-top: 8px; }
.mega-picks { border-left: 1px solid var(--line); padding-left: 26px; min-width: 0; }
.mega-picks[data-state="empty"] { visibility: hidden; }
.mega-picks-title { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.mega-picks-list { display: grid; grid-template-columns: repeat(4, minmax(0, 168px)); gap: 8px 12px; }
.mega-picks[data-state="loading"] .mega-picks-list, .mega-picks:not([data-state]) .mega-picks-list { min-height: 176px; border-radius: 10px; background: linear-gradient(90deg, #f3f4f4 25%, #fafafa 50%, #f3f4f4 75%) 0 0 / 200% 100%; animation: mega-wait 1.2s linear infinite; }
@keyframes mega-wait { to { background-position: -200% 0; } }
.mega-pick { display: grid; gap: 8px; align-content: start; padding: 8px; border-radius: 10px; color: var(--text); }
.mega-pick:hover { background: #f7f7f5; color: var(--text); }
.mega-pick img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mega-pick strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.mega-pick small { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 700; }
.mega-cols { columns: 5 200px; column-gap: 28px; padding: 22px 24px 26px; max-height: min(74vh, 640px); overflow: auto; }
.mega-cols > div { break-inside: avoid; margin-bottom: 18px; }
.mega-head { font-weight: 700; font-size: 15.5px !important; }

/* Messaggi ------------------------------------------------------------------ */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; border: 1px solid; }
.flash-success { background: #f0fff0; border-color: #9fd39f; color: #0b5d0b; }
.flash-error { background: var(--red-soft); border-color: #e7b3b1; color: var(--red); }
.flash-info { background: #eef2f7; border-color: #cfd8e3; }
.flash-warning { background: #fff6e0; border-color: #f2d48a; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: 13px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

.save-badge { display: inline-block; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.price-note { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* Tondi con la freccia ---------------------------------------------------------- */
.round-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d5d9d9; background: #fff; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, border-color .15s; padding: 0; }
.round-btn .icon { width: 17px; height: 17px; }
.round-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.round-btn.on-dark { background: rgba(15, 17, 17, .45); border-color: rgba(255, 255, 255, .75); color: #fff; }
.round-btn.on-dark:hover { background: #fff; color: var(--red); border-color: #fff; }
.round-btn[disabled] { opacity: .35; cursor: default; background: #fff; border-color: #d5d9d9; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; font-weight: 700; }
.btn-white { background: #fff; border-color: #fff; color: var(--red); }
.btn-white:hover { background: #fbeaea; border-color: #fbeaea; color: var(--red-hover); }
.btn .icon { width: 19px; height: 19px; }

/* Home --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; margin: 14px 0 0; padding: 40px 80px 34px 108px; min-height: 344px; color: #fff; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; align-items: center;
  background: radial-gradient(900px 420px at 86% 12%, rgba(255, 255, 255, .14), transparent 62%), radial-gradient(700px 500px at 20% 120%, rgba(19, 25, 33, .35), transparent 60%), linear-gradient(115deg, #7c1310 0%, #a01916 52%, #b9221c 100%); }
/* Sul rosso del marchio: bottone principale bianco con testo rosso, il secondo solo contornato */
.hero .btn:not(.btn-white) { background: #fff; border-color: #fff; color: var(--red); }
.hero .btn:not(.btn-white):hover { background: #fbeaea; border-color: #fbeaea; color: var(--red-hover); }
.hero .btn-white { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.hero .btn-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.hero-photo .btn:not(.btn-white) { background: var(--red); border-color: var(--red); color: #fff; }
.hero-photo .btn:not(.btn-white):hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-photo { background: #1b1b1b; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 17, 17, .93) 0%, rgba(15, 17, 17, .82) 30%, rgba(15, 17, 17, .28) 58%, rgba(15, 17, 17, .12) 100%); }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; margin-bottom: 8px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 62px); letter-spacing: -.025em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.hero p { font-size: 18px; line-height: 1.45; color: #f1f3f3; margin: 16px 0 24px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-side { justify-self: end; width: 100%; max-width: 550px; display: flex; flex-direction: column; gap: 14px; }
.hero-tiles { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-tiles.is-active { display: grid; animation: hero-in .35s ease; }
@keyframes hero-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.hero-tile { background: #fff; border-radius: 12px; padding: 14px 16px 12px 14px; color: var(--text); display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 4px 14px; align-items: start; min-height: 116px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .15s, box-shadow .15s; }
.hero-tile img { grid-row: 1 / -1; align-self: center; width: 84px; height: 84px; object-fit: contain; border-radius: 8px; }
.hero-tile-name { font-size: 14.5px; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-tile strong { font-size: 17px; }
.hero-tile:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, .28); }
.hero-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hero-dots { display: inline-flex; gap: 9px; margin-right: 12px; align-items: center; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s, background .2s; }
.hero-dots button.is-active { width: 18px; background: #fff; }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 18px 0 4px; }
.perk { display: flex; align-items: center; gap: 22px; padding: 12px 22px 12px 40px; border-radius: var(--radius); background: #f7f7f5; border: 1px solid #f0f0ee; }
.perk-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.perk-icon .icon { width: 30px; height: 30px; }
.perk strong { display: block; font-size: 17px; line-height: 1.25; }
.perk div > span { font-size: 14.5px; color: var(--muted); }

.section { margin: 30px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-head h2 { font-size: 30px; letter-spacing: -.02em; }
.section-tools { display: inline-flex; align-items: center; gap: 10px; }
.more-link { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-size: 14.5px; font-weight: 500; white-space: nowrap; margin-right: 8px; }
.more-link .icon { width: 16px; height: 16px; }
.more-link:hover { color: var(--red-hover); text-decoration: underline; }

.dept-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 18px) / 6); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 8px; scroll-behavior: smooth; }
.dept-rail::-webkit-scrollbar { display: none; }
.dept { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text); transition: box-shadow .15s, border-color .15s, transform .15s; }
.dept:hover { color: var(--text); border-color: var(--red); box-shadow: 0 8px 22px rgba(15, 17, 17, .14); transform: translateY(-2px); }
.dept-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; background: #f7f7f5; overflow: hidden; }
.dept-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.dept.has-photo .dept-img { aspect-ratio: 16 / 5.6; }
.dept.has-photo .dept-img img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.dept-img .icon { width: 40px; height: 40px; color: #b8bcbc; }
.dept-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 14px 20px; }
.dept-body strong { display: block; font-size: 15.5px; line-height: 1.3; }
.dept-body small { color: var(--muted); font-size: 14.5px; }
.dept:hover .round-btn { background: var(--red); border-color: var(--red); color: #fff; }

/* Griglia prodotti ----------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.rail .card { scroll-snap-align: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s; position: relative; }
.card:hover { box-shadow: 0 6px 20px rgba(15, 17, 17, .14); border-color: #cfd4d4; }
.card-img { display: block; aspect-ratio: 1; background: #fff; padding: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; color: var(--text); }
.card-title:hover { color: var(--red); }
.price { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.stock { font-size: 12.5px; color: var(--green); font-weight: 500; }
.stock.low { color: var(--red); }
.card form { margin-top: auto; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 1; }
.badge.new { background: var(--ink); color: #fff; }

/* Elenco con filtri ----------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.page-title { font-size: clamp(24px, 3vw, 32px); }
.page-intro { color: var(--muted); max-width: 80ch; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid #d5d9d9; background: #fff; font-size: 14px; font-weight: 500; }
.chip:hover, .chip.active { background: var(--black); border-color: var(--black); color: #fff; }
.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; margin-top: 22px; align-items: start; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow: auto; }
.filters h3 { font-size: 15px; margin: 0 0 8px; }
.filters .group + .group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.filters a.opt { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14px; }
.filters a.opt.active { font-weight: 700; }
.filters a.opt span { color: var(--muted); font-size: 12.5px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; height: 38px; border: 1px solid #d5d9d9; border-radius: 8px; padding: 0 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { height: 40px; border-radius: 999px; border: 1px solid #d5d9d9; padding: 0 14px; background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.filters-toggle { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 30px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid #d5d9d9; display: grid; place-items: center; font-weight: 600; background: #fff; }
.pager a:hover { background: var(--bg-soft); color: var(--text); }
.pager .current { background: var(--black); border-color: var(--black); color: #fff; }
.pager .gap { border: 0; min-width: 20px; padding: 0; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed #d5d9d9; border-radius: var(--radius); }
.empty h2 { font-size: 22px; margin-bottom: 8px; }

/* Scheda prodotto ------------------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 320px; gap: 34px; margin-top: 10px; align-items: start; }
.gallery { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; position: sticky; top: 132px; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.thumbs button { border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.thumbs button.active { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.25; }
.product-brand { color: var(--red); font-size: 14px; display: inline-block; margin-bottom: 6px; }
.product-meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.product-info hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.product-price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.product-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.bullets { padding-left: 18px; margin: 12px 0 0; }
.bullets li { margin-bottom: 6px; }
.buybox { border: 1px solid #d5d9d9; border-radius: var(--radius); padding: 18px; position: sticky; top: 132px; display: flex; flex-direction: column; gap: 12px; }
.buybox .in-stock { color: var(--green); font-size: 18px; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d5d9d9; border-radius: 999px; background: var(--bg-soft); overflow: hidden; box-shadow: var(--shadow); }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; }
.qty button:hover { background: #e3e6e6; }
.qty input { width: 48px; height: 40px; border: 0; background: #fff; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.trust { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13.5px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.trust .icon { width: 18px; height: 18px; margin-top: 2px; }
.desc { margin-top: 34px; max-width: 900px; }
.desc h2 { font-size: 22px; margin-bottom: 12px; }
.desc table { border-collapse: collapse; width: 100%; max-width: 620px; }
.desc td, .desc th { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.desc tr td:first-child { color: var(--muted); width: 38%; }
.sticky-buy { display: none; }

/* Carrello e checkout ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 20px; align-items: start; }
.box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.box h2 { font-size: 19px; margin-bottom: 14px; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { border: 1px solid var(--line); border-radius: 8px; }
.cart-line .t { font-weight: 600; font-size: 15.5px; }
.cart-line .actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; color: var(--red-hover); }
.summary { position: sticky; top: 132px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.ship-bar { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.ship-bar .bar { height: 8px; border-radius: 999px; background: #e3e6e6; overflow: hidden; margin-top: 8px; }
.ship-bar .bar span { display: block; height: 100%; background: var(--red); border-radius: inherit; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { height: 46px; border: 1px solid #888c8c; border-radius: 8px; padding: 0 12px; background: #fff; width: 100%; }
.field textarea { height: 90px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: #e77600; box-shadow: 0 0 0 3px rgba(228, 121, 17, .35); }
.field .err { color: var(--red); font-size: 13px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #d5d9d9; border-radius: 10px; cursor: pointer; }
.choice + .choice { margin-top: 10px; }
.choice:has(input:checked) { border-color: var(--red); background: #fdf4f3; box-shadow: 0 0 0 1px var(--red); }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--black); }
.choice small { display: block; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--black); flex: none; }
.mini-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 13.5px; }
.mini-line img { border: 1px solid var(--line); border-radius: 6px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.tag-link { color: var(--red); }
.tag-link:hover { color: var(--red-hover); text-decoration: underline; }
.tag-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-opt { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid #d5d9d9; border-radius: 999px; font-size: 13.5px; background: #fff; }
.tag-opt span { color: var(--muted); font-size: 12px; }
.tag-opt:hover { border-color: var(--black); }
.tag-opt.active { background: var(--black); border-color: var(--black); color: #fff; }
.active-filters { margin: 0 0 14px; align-items: center; }
.chip-on { background: var(--black); color: #fff; border-color: var(--black); }
.text-link { color: var(--red); text-decoration: underline; }
.text-link:hover { color: var(--red-hover); }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth { max-width: 460px; padding-top: 28px; padding-bottom: 40px; }
.auth .box { padding: 26px; }
.auth-alt { margin-top: 22px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.auth-alt span { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.auth-alt span::before, .auth-alt span::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.account-nav { display: flex; gap: 10px; align-items: center; }
.order-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 16px; align-items: center; padding: 14px 18px; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row:hover { background: #fafafa; }
.order-row small { display: block; color: var(--muted); font-size: 13px; }
.order-row > strong { text-align: right; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #f0f2f2; white-space: nowrap; }
.pill-new, .pill-confirmed, .pill-processing { background: var(--red-soft); color: var(--red); }
.pill-shipped, .pill-delivered { background: #e6f6e6; color: #0b5d0b; }
.pill-cancelled { background: var(--red-soft); color: var(--red); }
.sum-discount { color: var(--green); font-weight: 600; }
.coupon-box { margin: 4px 0 14px; padding: 12px 14px; border: 2px dashed var(--red); border-radius: 12px; background: #fdf4f3; }
.coupon-box[hidden], .coupon-box [hidden] { display: none !important; }
.coupon-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.coupon-title .icon, .coupon-lead .icon { width: 20px; height: 20px; flex: none; }
.coupon-row { display: flex; align-items: center; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; width: 100%; height: 42px; border: 1px solid #888c8c; border-radius: 10px; padding: 0 12px; background: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.coupon-row input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.coupon-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(160, 25, 22, .2); }
.coupon-row input[aria-invalid="true"] { border-color: var(--red); }
.coupon-apply { flex: none; height: 42px; padding: 0 18px; }
.coupon-box.is-on { border-style: solid; border-color: #9fd39f; background: #f0fff0; }
.coupon-box.is-skipped { border-style: solid; }
.coupon-applied { display: flex; align-items: center; gap: 10px; margin: 0; }
.coupon-mark .icon { width: 26px; height: 26px; color: var(--green); display: block; }
.coupon-box.is-skipped .coupon-mark .icon { color: var(--text); }
.coupon-text { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 14.5px; line-height: 1.35; }
.coupon-text small { color: var(--muted); font-size: 13px; }
.coupon-text small strong { color: var(--green); }
.coupon-code { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fff; border: 1px solid #9fd39f; letter-spacing: .05em; }
.coupon-remove { flex: none; background: none; border: 0; padding: 8px 4px; color: var(--red); font-size: 14px; cursor: pointer; text-decoration: underline; }
.coupon-remove:hover { color: var(--text); }
.coupon-box .coupon-msg { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.35; }
.coupon-msg.is-error { color: var(--red); }
.coupon-msg.is-success { color: var(--green); }
/* Nel carrello laterale: una riga sola, lo spazio è poco */
.coupon-drawer { margin: 0 0 12px; padding: 8px 10px; }
.coupon-drawer .coupon-lead { display: grid; place-items: center; color: var(--text); }
.coupon-drawer .coupon-row input, .coupon-drawer .coupon-apply { height: 40px; }
.pay-banner { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px; }
@media (max-width: 720px) { .header-help { display: none; } .order-row { grid-template-columns: minmax(0, 1fr) auto; } .order-row > strong { grid-column: 1 / -1; text-align: left; } }
.notice { background: #fdf4f3; border: 1px solid #efc6c3; border-radius: 10px; padding: 14px 16px; }
.ok-banner { background: #f0fff0; border: 1px solid #9fd39f; border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: center; }
.ok-banner .icon { width: 42px; height: 42px; color: var(--green); }

/* Pagine di testo --------------------------------------------------------------------- */
.prose { max-width: 820px; margin-top: 12px; font-size: 16px; }
.prose h2 { font-size: 20px; margin: 26px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }

/* Piè di pagina ------------------------------------------------------------------------ */
.footer { background: var(--ink); color: #dddddd; margin-top: 60px; }
.back-top { display: block; text-align: center; padding: 14px; background: #37475a; color: #fff; font-size: 14px; }
.back-top:hover { background: #485769; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 30px; padding: 40px 0 34px; }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer a { color: #dddddd; display: block; padding: 3px 0; font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { font-size: 24px; margin-bottom: 10px; }
.newsletter { display: flex; margin-top: 12px; max-width: 360px; }
.newsletter input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 999px 0 0 999px; padding: 0 16px; }
.newsletter button { height: 42px; border: 0; border-radius: 0 999px 999px 0; background: var(--red); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; }
.footer-bottom { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .1); color: #999; font-size: 12.5px; padding: 18px 0; text-align: center; }
.footer-bottom a { display: inline; color: #bbb; }
.hp { position: absolute; left: -9999px; }

/* Responsive ------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 1 / -1; position: static; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-picks-list { grid-template-columns: repeat(3, minmax(0, 150px)); }
  .mega-pick:nth-child(4) { display: none; }
  .mega-links { columns: 1; }
  .hero { padding: 34px 40px 30px 48px; gap: 24px; }
  .hero-tile { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; }
  .hero-tile img { width: 64px; height: 64px; }
  .perk { padding: 12px 16px; gap: 14px; }
  .dept-rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
  .topline-links a:first-child { display: none; }
  .header-main { gap: 20px; }
}
@media (max-width: 900px) {
  .header-main { flex-wrap: wrap; gap: 10px 12px; padding: 10px 0; }
  .menu-toggle { display: inline-flex; order: 1; }
  .logo { order: 2; font-size: 23px; flex: 1; }
  .logo-stack { align-items: flex-start; font-size: 24px; gap: 3px; }
  .logo-stack small { font-size: 7.5px; letter-spacing: .26em; }
  .topline-inner { display: flex; justify-content: center; }
  .topline-links { display: none; }
  .topline-msg { font-size: 12px; padding: 5px 0; }
  .nav-wrap { display: block; }
  .nav-all > a::after { display: none; }
  .nav-all { display: block; }
  .nav.open .nav-all > a { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 16px; margin: 0; }
  .header-cart .label { display: none; }
  .hero-side { display: none; }
  .dept-rail { grid-auto-columns: 42%; gap: 12px; }
  .section-head h2 { font-size: 24px; }
  .section-tools .round-btn { display: none; }
  .header-links { order: 3; }
  .header-link small, .header-link .label { display: none; }
  .search { order: 4; flex: 1 0 100%; }
  .nav { display: none; }
  .nav.open { display: block; position: fixed; inset: 0; z-index: 80; overflow: auto; background: #fff; color: var(--text); }
  .nav.open .wrap { padding: 0; }
  .nav.open .nav-list { flex-direction: column; overflow: visible; }
  .nav.open .nav-item > a { color: var(--text); padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; white-space: normal; }
  .nav.open .nav-item.hot > a { color: var(--red); background: var(--red-soft); }
  .nav-close { display: flex !important; }
  .hero { grid-template-columns: 1fr; padding: 34px 24px; min-height: 0; }
  .hero-photo::before { background: rgba(15, 17, 17, .72); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; max-height: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product { grid-template-columns: 1fr; gap: 18px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; max-height: none; }
  .thumbs button { width: 60px; flex: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; z-index: 45; box-shadow: 0 -6px 18px rgba(0, 0, 0, .12); }
  .sticky-buy .price { flex: 1; }
  body.has-sticky { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 46%; }
  .card-body { padding: 2px 10px 10px; }
  .card-title { font-size: 13.5px; }
  .price { font-size: 18px; }
  .card .btn { padding: 0 10px; font-size: 13.5px; min-height: 40px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perk { padding: 12px 8px; flex-direction: column; text-align: center; gap: 8px; }
  .perk-icon { width: 44px; height: 44px; }
  .perk-icon .icon { width: 24px; height: 24px; }
  .perk strong { font-size: 14.5px; }
  .perk div > span { font-size: 13px; }
  .dept-rail { grid-auto-columns: 62%; }
  .dept-body { padding: 10px 12px 12px 14px; }
  .hero p { font-size: 16px; }
  .btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line .tot { grid-column: 2; font-weight: 700; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-head h2 { font-size: 20px; }
}
.nav-close { display: none; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; position: sticky; top: 0; }
.nav-close button { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Rifiniture: margini, allineamenti, telefono. Sta in fondo perché
   corregge le regole sopra a ogni larghezza.
   ===================================================================== */
html { scroll-padding-top: 160px; }
.wrap { padding-left: 24px; padding-right: 24px; }
.header-main { padding: 14px 24px; }
.footer-grid { padding: 40px 24px 34px; }
.logo-stack { align-items: flex-start; }
.logo-stack small { align-self: center; white-space: nowrap; }
.search input { text-overflow: ellipsis; }
.header-links { gap: 2px; }
.header-cart { gap: 16px; }
.cart-count { top: -8px; left: auto; right: -11px; border: 2px solid var(--ink); min-width: 22px; height: 22px; box-sizing: border-box; line-height: 1; }
.nav-sub-toggle, .nav-extra, .nav-backdrop { display: none; }
.nav-item > a span:not(.nav-badge) { display: inline; }

/* Schede prodotto: stesse altezze, righe allineate */
.card-brand { display: block; min-height: 16px; line-height: 16px; }
.card-title { min-height: calc(2 * 1.35em); }
.card .price { min-height: 1.5em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; }
.card .stock { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card form { margin-top: auto; padding-top: 4px; }

/* File di prodotti: schede intere, frecce al posto della barra di scorrimento */
.rail { grid-auto-columns: calc((100% - 5 * 14px) / 6); scrollbar-width: none; padding: 2px 2px 10px; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.dept-img { aspect-ratio: 16 / 9; }
.dept-img img { padding: 12px; }
.dept.has-photo .dept-img img { padding: 0; }
.dept-body { align-items: flex-start; padding: 14px 16px 16px 18px; }
.dept-text { min-width: 0; }
.dept-body strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.dept-body .round-btn { margin-top: 2px; }

/* Elementi che restano fermi sotto la testata */
.filters, .gallery, .buybox, .summary { top: 154px; }
.filters { max-height: calc(100vh - 172px); }
.buybox-price { font-size: 28px; }
.cart-line:first-of-type { padding-top: 4px; }
.cart-line:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.prose-wide { max-width: 1120px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 16px; }
.contact-side h2 { font-size: 18px; margin: 0 0 12px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; margin: 0; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list .icon { margin-top: 3px; color: var(--black); }
.contact-list strong { display: block; font-size: 14px; }
.contact-list a { text-decoration: underline; text-underline-offset: 2px; font-size: 14.5px; }

/* Piè di pagina */
.footer a { padding: 5px 0; }
.footer-pay { border-top: 1px solid rgba(255, 255, 255, .12); color: #c9cccf; font-size: 13.5px; }
.footer-pay .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding-top: 16px; padding-bottom: 16px; }
.pay-chip { background: #fff; color: var(--black); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 6px; }
.footer-pay-note { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.footer-pay-note .icon { width: 18px; height: 18px; color: #fff; }
.footer-bottom .wrap { line-height: 1.6; }

@media (max-width: 1280px) {
  .rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
  .dept-rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); }
  .header-help { display: none; }
}
@media (max-width: 1100px) {
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .dept-rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 130px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topline-inner { min-height: 28px; }
  .topline-msg { font-size: 12.5px; padding: 0; white-space: nowrap; overflow: hidden; }
  .topline-msg > span { overflow: hidden; text-overflow: ellipsis; }
  .topline-msg .icon { width: 17px; height: 17px; }
  .topline-extra { display: none; }

  .header-main { padding: 8px 16px 10px; gap: 6px 4px; }
  .menu-toggle { width: 44px; height: 44px; margin-left: -10px; align-items: center; justify-content: center; }
  .menu-toggle .icon { width: 24px; height: 24px; }
  .logo-stack { font-size: 23px; gap: 4px; }
  .logo-stack small { font-size: 9px; letter-spacing: .18em; align-self: flex-start; }
  .header-links { margin-right: -8px; }
  .header-link { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .header-link .icon, .header-cart .icon { width: 25px; height: 25px; }
  .cart-count { top: -7px; right: -9px; }
  .search { max-height: 46px; transition: max-height .2s ease, opacity .15s ease, margin .2s ease; }
  .search input { height: 44px; padding: 0 16px; }
  .search button { width: 52px; }
  .header.is-compact .search { max-height: 0; opacity: 0; margin-top: -6px; overflow: hidden; pointer-events: none; }

  /* Menu: pannello che entra da sinistra, con le sottocategorie */
  .nav { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); z-index: 90; overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--text); border: 0; transform: translateX(-104%); visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); }
  .nav.open { inset: 0 auto 0 0; z-index: 90; transform: none; visibility: visible; transition: transform .24s ease; }
  .nav.open + .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 17, 17, .55); z-index: 85; }
  .nav-close { display: flex !important; position: sticky; top: 0; z-index: 2; padding: 12px 8px 12px 20px; }
  .nav-close button { width: 44px; height: 44px; display: grid; place-items: center; }
  .nav .wrap, .nav.open .wrap { padding: 0; }
  .nav .nav-all { display: none; }
  .nav-list, .nav.open .nav-list { flex-direction: column; overflow: visible; gap: 0; -webkit-mask-image: none; mask-image: none; }
  .nav-item { display: grid; grid-template-columns: minmax(0, 1fr) 56px; border-bottom: 1px solid var(--line); }
  .nav-item > a, .nav.open .nav-item > a { padding: 15px 8px 15px 20px; font-size: 16px; font-weight: 600; white-space: normal; border: 0; background: none; gap: 14px; }
  .nav-item > a .icon { width: 22px; height: 22px; color: var(--muted); }
  .nav-item.hot > a, .nav.open .nav-item.hot > a { color: var(--red); background: none; }
  .nav-item.hot > a .icon { color: var(--red); }
  .nav-item.active > a { background: var(--red-soft); }
  .nav-sub-toggle { display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; color: var(--text); }
  .nav-sub-toggle .icon { transition: transform .2s; }
  .nav-item.sub-open .nav-sub-toggle .icon { transform: rotate(180deg); }
  .nav .mega, .nav-item:hover .mega, .nav-item:focus-within .mega { display: none; position: static; grid-column: 1 / -1; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #f7f7f5; }
  .nav .nav-item.sub-open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 0; padding: 6px 20px 10px 56px; }
  .mega-inner a { padding: 10px 0; font-size: 15px; }
  .mega-title { font-size: 15px; margin: 0; }
  .mega-title span { font-size: 13px; }
  .mega-links { columns: auto; margin: 0; }
  .mega-intro, .mega-picks, .mega-cta, .nav-overflow { display: none !important; }
  .nav .mega { max-height: none; overflow: visible; }
  .nav-extra { display: block; padding: 10px 0 30px; background: #f7f7f5; }
  .nav-extra a, .nav-extra .nav-a11y { display: flex; align-items: center; gap: 14px; padding: 13px 20px; font-size: 15px; font-weight: 500; }
  .nav-extra .nav-a11y { width: 100%; border: 0; background: none; font-family: inherit; color: inherit; text-align: left; cursor: pointer; }
  .nav-extra .icon { color: var(--muted); }

  .hero { margin-top: 12px; padding: 30px 22px 28px; border-radius: 16px; }
  .hero-kicker { font-size: 11px; letter-spacing: .26em; }
  .hero-actions { gap: 10px; }
  .rail { grid-auto-columns: calc((100% - 2 * 12px) / 3.15); gap: 12px; }
  .dept-rail { grid-auto-columns: calc((100% - 2 * 12px) / 3.15); }
  .section { margin-top: 28px; }
  .more-link { margin-right: 0; padding: 8px 0; }

  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; padding: 9px 16px; }
  .toolbar { gap: 10px; }
  .toolbar > span:last-child { width: 100%; }
  .toolbar > span:last-child form { flex: 1; }
  .toolbar select { width: 100%; height: 44px; }
  .filters-toggle { min-height: 44px; }
  .filters { margin-bottom: 4px; }
  .tag-opt { padding: 8px 13px; font-size: 14px; }
  .filters a.opt { padding: 9px 0; }

  .buybox-price { display: none; }
  .crumbs { margin-top: 14px; }
  .product-brand { padding: 6px 0; margin-bottom: 0; }
  .sticky-buy { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .field input, .field select, .field textarea, .price-range input, .coupon-row input, .newsletter input, .toolbar select, .qty input { font-size: 16px; }
  .price-range input { height: 44px; }

  .footer-grid { padding: 30px 16px 24px; gap: 24px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer a { padding: 9px 0; font-size: 15px; }
  .footer .newsletter { max-width: none; }
  .newsletter input, .newsletter button { height: 46px; }
  .footer-pay-note { margin-left: 0; width: 100%; }
  .back-top { padding: 14px; }
}
@media (max-width: 560px) {
  .rail { grid-auto-columns: calc((100% - 12px) / 2.12); }
  .dept-rail { grid-auto-columns: calc((100% - 12px) / 2.12); }
  .dept-body { padding: 10px 10px 12px 12px; gap: 6px; }
  .dept-body strong { font-size: 14.5px; }
  .dept-body small { font-size: 13px; }
  .dept-body .round-btn { width: 30px; height: 30px; }
  .hero { padding: 26px 20px 24px; }
  .hero h1 { font-size: 31px; }
  .hero p { margin: 12px 0 20px; }
  .hero-actions .btn { flex: 1 1 0; padding: 0 12px; white-space: nowrap; }
  .page-title { font-size: 25px; }
  .card-body { padding: 2px 10px 12px; gap: 5px; }
  .card .btn { min-height: 42px; }
  .card .stock { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .box { padding: 16px; }
  .auth { padding-top: 18px; }
  .auth .box { padding: 20px 18px; }
  .order-row { padding: 14px; }
  .pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; }
}
@media (max-width: 380px) {
  .logo-stack { font-size: 21px; }
  .hero h1 { font-size: 28px; }
  .hero-actions .btn { font-size: 15px; }
  .card .btn { font-size: 13px; padding: 0 6px; }
}

/* =====================================================================
   Cura dei dettagli: superfici, schede, pagine interne.
   ===================================================================== */
:root { --tile: #f5f5f2; --radius-lg: 16px; --shadow-lift: 0 10px 28px rgba(15, 17, 17, .12); --ease: cubic-bezier(.2, .7, .2, 1); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.btn { box-shadow: 0 1px 0 rgba(15, 17, 17, .06); transition: background .15s, box-shadow .15s, transform .08s var(--ease); }
.btn:hover { box-shadow: 0 3px 10px rgba(15, 17, 17, .14); }
.btn:focus-visible, .round-btn:focus-visible, .chip:focus-visible, .tag-opt:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.footer :focus-visible, .hero :focus-visible, .topline :focus-visible { outline-color: #fff; }
.header :focus-visible { outline-color: var(--red); }

/* Titoli di sezione con il segno giallo */
.section-head h2 { position: relative; padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 5px; border-radius: 3px; background: var(--red); }

/* Schede prodotto: foto su un fondo uniforme, anche quando l'originale ha il bianco "sporco" */
.card { border-radius: 14px; transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d9dcdc; }
.card-img { margin: 8px 8px 0; padding: 12px; border-radius: 10px; background: var(--tile); overflow: hidden; }
.card-img img { mix-blend-mode: multiply; transition: transform .35s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 10px 14px 14px; }
.card-title { font-weight: 500; }
.card .price { font-size: 22px; }
.card .stock { display: inline-flex; align-items: center; gap: 6px; }
.card .stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.card .btn .icon { width: 17px; height: 17px; }
.lbl-short { display: none; }
.badge { top: 16px; left: 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }

.hero-tile img { background: var(--tile); mix-blend-mode: normal; padding: 6px; }
.hero-tile { border-radius: 14px; }
.perk { transition: border-color .2s, background .2s; }
.perk:hover { background: #fdf4f3; border-color: #efc6c3; }
.dept { border-radius: 14px; }
.dept-img { background: var(--tile); }

/* Elenco: filtri e barra */
.filters { border-radius: 14px; padding: 18px; scrollbar-width: thin; }
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toolbar { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.crumbs { align-items: center; }
.crumbs a:last-of-type, .crumbs span:last-child { color: var(--text); }
.page-title { letter-spacing: -.02em; }
.page-intro { font-size: 16px; }
.chip { transition: background .15s, border-color .15s, color .15s; }
.pager { margin-top: 36px; }
.pager a { transition: background .15s, border-color .15s; }
.pager a:hover { border-color: var(--black); }
.empty { border-radius: var(--radius-lg); background: #fcfcfb; }
.empty-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: inline-grid; place-items: center; margin-bottom: 14px; }
.empty-icon .icon { width: 34px; height: 34px; }

/* Scheda prodotto */
.gallery-main { background: var(--tile); border-color: transparent; border-radius: var(--radius-lg); padding: 22px; }
.gallery-main img { mix-blend-mode: multiply; }
.thumbs button { background: var(--tile); border-color: transparent; border-radius: 10px; overflow: hidden; transition: box-shadow .15s; }
.thumbs img { mix-blend-mode: multiply; }
.product { gap: 40px; margin-top: 14px; }
.product-info h1 { font-weight: 700; letter-spacing: -.015em; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.bullets { list-style: none; padding: 0; margin-top: 16px; }
.bullets li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg) scale(.8); transform-origin: left; }
.bullets-text { font-size: 16px; line-height: 1.55; }
.buybox { border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 6px 22px rgba(15, 17, 17, .07); border-color: var(--line); }
.buybox .btn { min-height: 48px; font-size: 16px; }
.trust { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.product-more { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 34px; margin-top: 40px; align-items: start; }
.product-more .desc { margin-top: 0; max-width: none; }
.product-more .desc h2 { font-size: 22px; margin-bottom: 14px; padding-left: 16px; position: relative; }
.product-more .desc h2::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 5px; border-radius: 3px; background: var(--red); }
.product-more .prose { max-width: none; font-size: 16px; line-height: 1.65; }
.details-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.details-card table { max-width: none; }
.details-card tr:last-child td { border-bottom: 0; }
.details-card td a { text-decoration: underline; text-underline-offset: 2px; }

/* Carrello, checkout, ordine */
.box { border-radius: var(--radius-lg); }
.cart-line img { background: var(--tile); border-color: transparent; mix-blend-mode: normal; padding: 6px; }
.mini-line img { background: var(--tile); border-radius: 8px; padding: 3px; }
.summary { box-shadow: 0 6px 22px rgba(15, 17, 17, .07); }
.step-title { display: flex; align-items: center; gap: 12px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: 15px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.field input, .field textarea, .field select { border-color: #b4b9b9; transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #6f7373; }
.choice { transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: #9aa0a0; }
.stages { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: none; }
.stages li { position: relative; text-align: center; font-size: 13.5px; color: var(--muted); padding-top: 44px; }
.stages li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: #e9ecec; color: var(--muted); font-weight: 700; display: grid; place-items: center; z-index: 1; }
.stages li span .icon { width: 17px; height: 17px; stroke-width: 3; }
.stages li::before { content: ""; position: absolute; top: 16px; left: -50%; right: 50%; height: 3px; background: #e9ecec; }
.stages li:first-child::before { display: none; }
.stages li.done, .stages li.now { color: var(--text); font-weight: 600; }
.stages li.done span { background: var(--green); color: #fff; }
.stages li.now span { background: var(--red); color: #fff; box-shadow: 0 0 0 5px #f6d3d1; }
.stages li.done::before, .stages li.now::before { background: var(--green); }

/* Account */
.auth-wide { max-width: 940px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 44px; align-items: start; }
.auth-side { padding-top: 26px; }
.auth-side h2 { font-size: 26px; margin-bottom: 18px; }
.auth-side ul { list-style: none; margin: 0; padding: 0; }
.auth-side li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.auth-side .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.auth-side strong { display: block; font-size: 16px; }
.auth-side span { color: var(--muted); }
.auth-side span strong { color: var(--text); }
.auth-main { grid-column: 2; }
.order-list { border-radius: var(--radius-lg); }

/* Pagine informative */
.page-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 14px; }
.page-grid-single { grid-template-columns: minmax(0, 1fr); }
.page-nav { position: sticky; top: 154px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.page-nav a { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; }
.page-nav a:hover { background: var(--bg-soft); color: var(--text); }
.page-nav a.active { background: var(--black); color: #fff; font-weight: 600; }
.page-grid .prose { margin-top: 0; line-height: 1.65; }
.prose h2 { font-size: 21px; margin: 30px 0 10px; }
.prose p { margin-bottom: 14px; }

/* Pagina d'errore */
.error-page { padding-top: 48px; padding-bottom: 60px; max-width: 760px; }
.error-code { font-size: clamp(64px, 12vw, 110px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--ink); text-shadow: 5px 5px 0 var(--red-soft); margin-bottom: 14px; }
.error-search { max-width: 520px; margin: 20px auto; }
.error-search input { border: 1px solid #b4b9b9; border-right: 0; }

/* Piè di pagina */
.footer h4 { letter-spacing: .02em; }
.footer a { transition: color .15s; }
.back-top { transition: background .15s; }

@media (max-width: 1100px) {
  .product-more { grid-template-columns: 1fr; gap: 26px; }
  .auth-wide { grid-template-columns: 1fr; max-width: 460px; gap: 0; }
  .auth-side { display: none; }
  .auth-main { grid-column: 1; }
}
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border: 0; padding: 0; margin: 0 -16px; padding: 2px 16px; gap: 8px; }
  .page-nav::-webkit-scrollbar { display: none; }
  .page-nav a { flex: none; white-space: nowrap; border: 1px solid #d5d9d9; border-radius: 999px; padding: 9px 16px; }
  .gallery-main { padding: 14px; }
  .product { gap: 18px; }
  .product-more { margin-top: 28px; }
  .details-card { padding: 16px; }
  .buybox { padding: 18px; }
  .card:hover { transform: none; }
  .toolbar { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 560px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .card-img { margin: 6px 6px 0; padding: 8px; }
  .card .price { font-size: 19px; }
  .section-head h2 { padding-left: 13px; }
  .stages li { font-size: 12px; padding-top: 40px; }
  .stages li span { width: 30px; height: 30px; }
  .stages li::before { top: 14px; }
  .step-num { width: 28px; height: 28px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .card:hover, .card:hover .card-img img { transform: none; } }

.cart-line .link-btn { padding: 10px 4px; margin: -10px -4px; }
@media (max-width: 900px) {
  .buybox .buybox-price { display: none; }
}

/* =====================================================================
   2.0 — logo, carrello laterale, avvisi, filtri, paese di spedizione
   ===================================================================== */
/* Logo disegnato */
.logo-img { display: inline-flex; align-items: center; flex: none; }
.logo-img img { height: 40px; width: auto; }
.footer .logo-img img { height: 30px; }
/* Nel piede scuro il logo originale sta su una targhetta bianca: il rosso del marchio sul blu notte non si leggerebbe. */
.footer .logo-plate { display: inline-flex; align-items: center; background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: inset 0 -3px 0 var(--red); }
.error-page .logo-img img { height: 44px; }
@media (max-width: 900px) { .logo-img { flex: 1; } .logo-img img { height: 30px; } }
@media (max-width: 380px) { .logo-img img { height: 26px; } }

/* Avviso a comparsa */
.toast { bottom: 24px; padding: 12px 18px 12px 14px; border-radius: 14px; gap: 10px; font-size: 14.5px; line-height: 1.35; border: 1px solid rgba(255, 255, 255, .12); z-index: 140; }
.toast .icon { width: 22px; height: 22px; color: #6ee7a0; }
.toast-error .icon { color: #ffb4a8; }
@media (max-width: 560px) { .toast { left: 16px; right: 16px; bottom: 16px; transform: translateY(20px); max-width: none; } .toast.show { transform: none; } }

/* Carrello laterale */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 17, 17, .55); opacity: 0; transition: opacity .25s; z-index: 119; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 120; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); box-shadow: -18px 0 50px rgba(15, 17, 17, .22); }
.drawer.open { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.drawer-count { color: var(--muted); font-weight: 500; }
.drawer-head .round-btn { width: 40px; height: 40px; }
.drawer-added { display: flex; align-items: center; gap: 10px; padding: 11px 20px; background: #eaf7ee; color: #0b5a1d; font-weight: 600; font-size: 14.5px; animation: drawer-in .3s ease; }
.drawer-added .icon { color: var(--green); }
.drawer-free { padding: 14px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.drawer-free p { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; font-size: 14.5px; }
.drawer-free .bar { height: 8px; border-radius: 999px; background: #e3e6e6; overflow: hidden; }
.drawer-free .bar span { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width .45s ease; }
.drawer-free.reached { background: #eaf7ee; }
.drawer-free.reached p { color: #0b5a1d; }
.drawer-free.reached .icon { color: var(--green); }
.drawer-free.reached .bar span { background: var(--green); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; scrollbar-width: thin; transition: opacity .15s; }
.drawer.is-busy .drawer-lines { opacity: .55; pointer-events: none; }
.drawer-lines { list-style: none; margin: 0; padding: 0; transition: opacity .15s; }
.drawer-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.drawer-line:last-child { border-bottom: 0; }
.drawer-thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--bg-soft); overflow: hidden; display: block; }
.drawer-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.drawer-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drawer-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.drawer-total { font-size: 15px; white-space: nowrap; }
.qty-sm { box-shadow: none; }
.qty-sm button { width: 36px; height: 36px; font-size: 18px; }
.qty-sm input { width: 40px; height: 36px; }
.qty button[disabled] { opacity: .35; cursor: default; background: none; }
.drawer .link-btn { padding: 8px 2px; }
.drawer-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff8e1; border: 1px solid #f5e1a4; font-size: 13.5px; }
.drawer-empty { text-align: center; padding: 56px 12px; }
.drawer-empty h3 { font-size: 19px; margin-bottom: 6px; }
.drawer-empty .btn { margin-top: 10px; }
.empty-icon.warn { background: var(--red-soft); color: var(--red); }
.drawer-loading { display: grid; gap: 16px; padding: 18px 0; }
.drawer-loading span { height: 72px; border-radius: 10px; background: linear-gradient(90deg, #f0f2f2 25%, #e3e6e6 37%, #f0f2f2 63%); background-size: 400% 100%; animation: drawer-shimmer 1.3s ease infinite; }
.drawer-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 20px rgba(15, 17, 17, .05); display: grid; gap: 8px; }
.drawer-foot .sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.drawer-foot .drawer-subtotal { font-size: 18px; }
.drawer-foot [data-drawer-discount] { color: var(--green); }
.drawer-foot p { margin: 0 0 4px; }
.btn.is-loading { opacity: .7; cursor: progress; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes drawer-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (max-width: 560px) {
  .drawer-head, .drawer-added, .drawer-free { padding-left: 16px; padding-right: 16px; }
  .drawer-body { padding: 4px 16px; }
  .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .drawer-line { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .drawer-thumb { width: 64px; height: 64px; }
  .drawer-total { grid-column: 2; }
  .qty-sm button { width: 44px; height: 44px; }
  .qty-sm input { height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .drawer-added, .drawer-loading span { animation: none; } }

/* Filtri laterali */
.filters { background: #fff; }
.filters-head { display: none; }
.filters h3 { color: #3d4040; }
.filters a.opt { align-items: center; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); transition: background .15s; }
.filters a.opt:hover { background: var(--bg-soft); color: var(--text); }
.filters a.opt:focus-visible { outline: 3px solid var(--black); outline-offset: -2px; }
.filters a.opt span { color: var(--muted); font-size: 12.5px; flex: none; }
.filters a.opt.active { background: var(--black); color: #fff; font-weight: 600; }
.filters a.opt.active span { color: #d5d9d9; }
.filter-reset { display: inline-block; margin: 8px 0 4px; font-size: 13.5px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.price-range .btn { grid-column: 1 / -1; min-height: 40px; }
.price-field { position: relative; display: block; }
.price-field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.price-field input { width: 100%; height: 42px; border: 1px solid #888c8c; border-radius: 8px; padding: 0 28px 0 12px; background: #fff; color: var(--text); font-weight: 600; -moz-appearance: textfield; transition: border-color .15s, box-shadow .15s; }
.price-field input::-webkit-outer-spin-button, .price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-field input::placeholder { color: #767a7a; font-weight: 400; opacity: 1; }
.price-field input:hover { border-color: var(--black); }
.price-field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(160, 25, 22, .2); }
.price-field i { position: absolute; right: 11px; bottom: 0; height: 42px; display: grid; place-items: center; font-style: normal; color: var(--muted); pointer-events: none; }
.tag-opt { transition: background .15s, border-color .15s, color .15s; color: var(--text); }
.tag-opt:hover { background: var(--bg-soft); color: var(--text); }
.tag-opt.active:hover { background: #2b2f2f; color: #fff; }
.tag-opt.active span { color: #d5d9d9; }
@media (max-width: 900px) {
  .filters.open { position: fixed; inset: 0; z-index: 115; border: 0; border-radius: 0; margin: 0; padding: 0 16px 24px; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 14px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 18px; z-index: 1; }
  .filters-head .round-btn { width: 44px; height: 44px; }
  .filters a.opt { padding: 11px 10px; }
  .price-field input { height: 46px; font-size: 16px; }
  .price-field i { height: 46px; }
  .price-range .btn { min-height: 46px; }
}

/* Paese di spedizione al checkout */
.country-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin-bottom: 18px; }
.country-pick label { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.country-pick select { height: 44px; min-width: 200px; border-radius: 8px; border: 1px solid #888c8c; padding: 0 12px; background: #fff; cursor: pointer; }
@media (max-width: 560px) { .country-pick select { width: 100%; font-size: 16px; } }

/* Anteprima della home aperta da LOKI */
.preview-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff8e1; border: 1px solid #f5e1a4; font-weight: 600; font-size: 14px; }
.country-pick { margin-top: 14px; }

/* =====================================================================
   2.1 — rifiniture: logo, avvisi, carrello laterale, quantità, torna su,
   marchi dei pagamenti
   ===================================================================== */
/* Logo e scritta sotto: un blocco solo, la scritta centrata sul logo */
.logo-stack.logo-img { flex-direction: column; align-items: center; gap: 5px; flex: none; }
.logo-stack.logo-img small { align-self: center; }
@media (max-width: 900px) {
  .logo-stack.logo-img { flex: none; margin-right: auto; gap: 3px; }
  .logo-stack.logo-img small { align-self: center; font-size: 8.5px; letter-spacing: .2em; }
}

/* Marchi dei pagamenti */
.pay-marks { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.pay-marks svg { width: 42px; height: 28px; display: block; flex: none; }
.trust-pay span { display: flex; flex-direction: column; gap: 7px; }
.footer-pay .pay-marks svg { width: 45px; height: 30px; }
.summary-pay { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.summary-pay .pay-marks svg { width: 38px; height: 25px; }

/* Avviso a comparsa: una scheda chiara, in alto a destra (in alto su telefono, dove in basso c'è la barra d'acquisto) */
.toast { left: auto; right: 24px; top: 132px; bottom: auto; transform: translateY(-12px); width: min(400px, calc(100vw - 32px)); max-width: none;
  background: #fff; color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 14px; padding: 12px 40px 12px 12px;
  box-shadow: 0 14px 40px rgba(15, 17, 17, .2); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 400; line-height: 1.35; z-index: 140; transition: opacity .22s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.toast.show { transform: none; }
.toast-warning { border-left-color: #e0a100; }
.toast-error { border-left-color: var(--red); }
.toast-icon { width: 36px; height: 36px; border-radius: 50%; background: #eaf7ee; color: var(--green); display: grid; place-items: center; flex: none; }
.toast-warning .toast-icon { background: #fff3dc; color: #b45309; }
.toast-error .toast-icon { background: var(--red-soft); color: var(--red); }
.toast .toast-icon .icon { width: 20px; height: 20px; color: inherit; }
.toast-thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--bg-soft); flex: none; }
.toast-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; mix-blend-mode: multiply; }
.toast-thumb i { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.toast-warning .toast-thumb i { background: #e0a100; color: #fff; }
.toast .toast-thumb .icon { width: 12px; height: 12px; color: inherit; stroke-width: 3; }
.toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.toast-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-text span { color: #3d4040; }
.toast-action { flex: none; border: 1px solid var(--black); background: #fff; color: var(--black); font-weight: 600; font-size: 13px; padding: 0 12px; height: 34px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.toast-close { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.toast-close:hover { background: var(--bg-soft); color: var(--text); }
.toast .toast-close .icon { width: 15px; height: 15px; color: inherit; }
@media (max-width: 900px) {
  .toast { top: 12px; left: 12px; right: 12px; bottom: auto; width: auto; transform: translateY(-16px); }
  .toast.show { transform: none; }
}
.header-cart.bump .icon { animation: cart-bump .45s ease; }
@keyframes cart-bump { 0%, 100% { transform: none; } 35% { transform: scale(1.22) rotate(-8deg); } 70% { transform: scale(.96); } }

/* Quantità minima e limiti */
.min-note { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff8e1; border: 1px solid #f0d58a; font-size: 14px; line-height: 1.35; color: var(--text); }
.min-note .icon { width: 18px; height: 18px; color: #b45309; margin-top: 1px; }
.qty-hint { color: #b45309; font-weight: 600; }
.badge-min { left: auto; right: 16px; background: var(--ink); color: #fff; }
.qty button { display: grid; place-items: center; padding: 0; color: var(--text); }
.qty button[disabled] { opacity: .3; }
.qty button .icon { width: 16px; height: 16px; }

/* Carrello laterale: righe compatte, totale accanto alla quantità */
.drawer-head { padding: 14px 20px; }
.drawer-free p { font-size: 14px; line-height: 1.35; }
.drawer-free .icon { flex: none; }
.drawer-line { grid-template-columns: 64px minmax(0, 1fr) 32px; grid-template-areas: "thumb info remove" "thumb actions actions"; gap: 6px 12px; padding: 14px 0; align-items: start; }
.drawer-thumb { grid-area: thumb; width: 64px; height: 64px; }
.drawer-info { grid-area: info; gap: 2px; }
.drawer-name { font-size: 14px; color: var(--text); }
.drawer-meta { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.drawer-meta .stock { font-size: inherit; }
.drawer-min { color: #b45309; font-weight: 600; }
.drawer-remove { grid-area: remove; width: 32px; height: 32px; margin: -4px -6px 0 0; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.drawer-remove:hover { background: var(--red-soft); color: var(--red); }
.drawer-remove .icon { width: 17px; height: 17px; }
.drawer-actions { grid-area: actions; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.drawer-total { font-size: 15.5px; white-space: nowrap; grid-column: auto; }
.qty-sm { border-color: #d5d9d9; background: #fff; }
.qty-sm button { width: 38px; height: 36px; font-size: 18px; }
.qty-sm input { width: 40px; height: 36px; font-size: 15px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; padding: 0; }
.qty-sm button:hover:not([disabled]) { background: var(--bg-soft); }
.qty-sm [data-line-remove]:hover { background: var(--red-soft); color: var(--red); }
.drawer-line.is-updating { opacity: .5; }
.drawer-foot { gap: 10px; padding-top: 12px; }
.drawer-foot p { margin: -6px 0 0; font-size: 12.5px; }
.drawer-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-link { font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.drawer-foot .pay-marks svg { width: 34px; height: 23px; }
@media (max-width: 560px) {
  .drawer-head { padding: 12px 16px; }
  .drawer-head h2 { font-size: 18px; }
  .drawer-line { grid-template-columns: 60px minmax(0, 1fr) 32px; }
  .drawer-thumb { width: 60px; height: 60px; }
  .drawer-total { grid-column: auto; }
  .qty-sm button { width: 42px; height: 40px; }
  .qty-sm input { width: 42px; height: 40px; font-size: 16px; }
}

/* Pagina del carrello su telefono: il totale della riga sta accanto alla quantità */
@media (max-width: 900px) {
  .cart-line { position: relative; padding-bottom: 14px; }
  .cart-line .tot { position: absolute; right: 0; bottom: 22px; font-size: 17px !important; }
  .cart-line .actions { gap: 12px; padding-right: 84px; }
}

/* Torna su */
.to-top { position: fixed; right: 20px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--red); border: 2px solid #fff; color: #fff; display: grid; place-items: center; z-index: 44;
  box-shadow: 0 6px 18px rgba(15, 17, 17, .25); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s, background .15s; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--red-hover); color: #fff; transform: translateY(-2px); }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2.5; }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
body.drawer-open .to-top { display: none; }
@media (max-width: 900px) {
  .to-top { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  /* Sulla scheda prodotto in basso c'è la barra d'acquisto: il tondino le sta sopra. */
  body:has(.sticky-buy) .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Articoli assortiti e dettagli delle rifiniture */
.assorted-note { background: #eef6ff; border-color: #bcd7f5; }
.assorted-note .icon { color: var(--red); }
.assorted-tag { color: var(--red); font-weight: 600; }
.min-note + .min-note { margin-top: 8px; }
.trust-pay span { display: block; }
.trust-pay > span { display: flex; flex-direction: column; gap: 7px; }
.trust-pay .pay-marks { display: inline-flex; flex-direction: row; }
.qty-hint { display: block; margin-top: -4px; }
.field textarea::placeholder { color: #767a7a; }

.toast { align-items: flex-start; padding: 14px 40px 14px 14px; }
.toast-icon { margin-top: 1px; }
.toast-text { gap: 3px; }
.toast-action { align-self: flex-start; margin-top: 8px; height: 32px; }
@media (max-width: 900px) { .footer-bottom .wrap { padding-right: 68px; padding-left: 68px; } }
.order-notes { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }

/* Avviso nei colori del negozio: fondo scuro, giallo per ciò che conta, e una barra che dice quando sparisce */
.toast { background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-left: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 44px rgba(15, 17, 17, .38); }
.toast-text strong { color: #fff; }
.toast-text span { color: #d5d9d9; }
.toast-thumb { background: #fff; }
.toast-thumb img { mix-blend-mode: normal; padding: 3px; }
.toast-thumb i { background: var(--red); color: #fff; border-color: #fff; }
.toast-warning .toast-thumb i { background: #e0a100; color: #fff; border-color: #fff; }
.toast-error .toast-thumb i { background: var(--red); color: #fff; }
.toast-icon { background: var(--red); color: #fff; }
.toast-warning .toast-icon { background: #e0a100; color: #fff; }
.toast-error .toast-icon { background: var(--red); color: #fff; }
.toast-action { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.toast-action:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.toast-close { color: #c9cccf; }
.toast-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.toast-bar span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; animation: toast-countdown linear forwards; }
.toast-warning .toast-bar span { background: #e0a100; }
.toast-error .toast-bar span { background: #ff8a75; }
.toast.paused .toast-bar span { animation-play-state: paused; }
.toast:not(.show) .toast-bar span { animation: none; }
@keyframes toast-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast-bar { display: none; } }

/* =====================================================================
   2.2 — accessibilità (linguetta e pannello), cookie, tabelle informative
   ===================================================================== */
/* Linguetta sul bordo destro */
.a11y-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); width: 46px; height: 52px; padding: 0 0 0 4px; border: 2px solid #fff; border-right: 0; border-radius: 26px 0 0 26px;
  background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 46; box-shadow: -4px 6px 18px rgba(15, 17, 17, .28); transition: width .18s, background .15s; }
.a11y-tab:hover { width: 54px; background: var(--red-hover); }
.a11y-tab .icon { width: 26px; height: 26px; stroke-width: 2.1; }
.a11y-tab.is-active::after { content: ""; position: absolute; top: 6px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.a11y-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body.drawer-open .a11y-tab { display: none; }

/* Pannello */
.a11y-panel { position: fixed; right: 12px; top: 50%; width: min(360px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 24px)); transform: translate(calc(100% + 24px), -50%); background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 17, 17, .32); z-index: 130; display: flex; flex-direction: column; overflow: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.a11y-panel.open { transform: translate(0, -50%); }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; }
.a11y-head h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; color: #fff; }
.a11y-head h2 .icon { color: #fff; width: 24px; height: 24px; }
.a11y-head .round-btn { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; width: 38px; height: 38px; }
.a11y-head .round-btn:hover { background: #fff; border-color: #fff; color: var(--red); }
.a11y-body { padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
.a11y-intro { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.a11y-size-label { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; }
.a11y-size-buttons { display: inline-flex; align-items: center; gap: 6px; }
.a11y-size-buttons button { width: 42px; height: 40px; border-radius: 10px; border: 1px solid #888c8c; background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.a11y-size-buttons button:hover:not([disabled]) { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.a11y-size-buttons button[disabled] { opacity: .35; cursor: default; }
.a11y-size-buttons output { min-width: 48px; text-align: center; font-weight: 600; font-size: 14px; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 84px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-align: left; font-weight: 600; font-size: 14px; line-height: 1.25; cursor: pointer; transition: background .15s, border-color .15s; }
.a11y-opt > .icon { width: 24px; height: 24px; }
.a11y-opt:hover { border-color: var(--ink); background: var(--bg-soft); }
.a11y-opt i { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c2c7c7; display: grid; place-items: center; color: transparent; }
.a11y-opt i .icon { width: 13px; height: 13px; stroke-width: 3; }
.a11y-opt[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.a11y-opt[aria-pressed="true"] i { background: var(--red); border-color: var(--red); color: #fff; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-soft); flex-wrap: wrap; }
.a11y-foot a { text-decoration: underline; text-underline-offset: 3px; }
.a11y-foot .btn[disabled] { opacity: .45; cursor: default; }
@media (max-width: 900px) {
  /* Su telefono la linguetta fissa coprirebbe sempre un po' di contenuto: le opzioni si aprono dal menu. */
  .a11y-tab { display: none; }
  .a11y-panel { top: auto; bottom: 12px; transform: translate(calc(100% + 24px), 0); max-height: calc(100vh - 24px); }
  .a11y-panel.open { transform: none; }
}

/* Effetti delle opzioni */
html.a11y-size-1 body > .topline, html.a11y-size-1 body > .header, html.a11y-size-1 body > main, html.a11y-size-1 body > .footer, html.a11y-size-1 .drawer { zoom: 1.1; }
html.a11y-size-2 body > .topline, html.a11y-size-2 body > .header, html.a11y-size-2 body > main, html.a11y-size-2 body > .footer, html.a11y-size-2 .drawer { zoom: 1.2; }
html.a11y-size-3 body > .topline, html.a11y-size-3 body > .header, html.a11y-size-3 body > main, html.a11y-size-3 body > .footer, html.a11y-size-3 .drawer { zoom: 1.3; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-contrast { --muted: #1c1c1c; --line: #4a4a4a; --bg-soft: #fff; --green: #005200; --red: #8f1d00; --link: #000; }
html.a11y-contrast body, html.a11y-contrast main { color: #000; background: #fff; }
html.a11y-contrast .card, html.a11y-contrast .box, html.a11y-contrast .filters, html.a11y-contrast .buybox, html.a11y-contrast .perk, html.a11y-contrast .dept { border-color: #000 !important; }
html.a11y-contrast .btn { border: 2px solid #000 !important; }
html.a11y-contrast .muted, html.a11y-contrast .small, html.a11y-contrast .card-brand, html.a11y-contrast .drawer-meta, html.a11y-contrast ::placeholder { color: #1c1c1c !important; opacity: 1; }
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea { border-color: #000 !important; }
html.a11y-contrast main a:not(.btn):not(.card-img):not(.dept), html.a11y-contrast .footer a { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-contrast .footer, html.a11y-contrast .footer-bottom, html.a11y-contrast .footer-pay { background: #000; color: #fff; }
html.a11y-contrast .footer a, html.a11y-contrast .footer p, html.a11y-contrast .footer-pay, html.a11y-contrast .footer-bottom { color: #fff !important; }
html.a11y-contrast :focus-visible { outline: 4px solid #000 !important; outline-offset: 2px; box-shadow: 0 0 0 7px #fff; }
html.a11y-links main a:not(.btn), html.a11y-links .footer a, html.a11y-links .topline a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html.a11y-links main a:not(.btn):not(.card-img):not(.dept):not(.drawer-thumb) { background: #fff3b0; color: #000 !important; border-radius: 3px; box-shadow: 0 0 0 2px #fff3b0; }
html.a11y-font body, html.a11y-font button, html.a11y-font input, html.a11y-font select, html.a11y-font textarea { font-family: var(--font) !important; letter-spacing: .035em; word-spacing: .14em; }
html.a11y-font p, html.a11y-font li, html.a11y-font .prose { line-height: 1.8 !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 3l14 9.5-6 1.3 3.6 6.6-2.7 1.4-3.5-6.7L5 19z' fill='%23131921' stroke='%23ffd814' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 7 5, auto !important; }

/* Cookie */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 980px; margin: 0 auto; background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 18px 52px 18px 20px;
  box-shadow: 0 24px 60px rgba(15, 17, 17, .45); z-index: 150; display: flex; align-items: center; gap: 20px; transform: translateY(24px); opacity: 0; transition: opacity .24s, transform .24s; }
.cookie-banner.open { transform: none; opacity: 1; }
.cookie-text strong { display: flex; align-items: center; gap: 9px; font-size: 16px; margin-bottom: 4px; }
.cookie-text strong .icon { color: #fff; }
.cookie-text p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #d5d9d9; }
.cookie-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { min-height: 42px; padding: 0 18px; }
.cookie-actions .btn-dark { background: #fff; border-color: #fff; color: var(--ink); }
.cookie-actions .btn-dark:hover { background: #e3e6e6; color: var(--ink); }
.cookie-actions .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; box-shadow: none; }
.cookie-actions .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cookie-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #c9cccf; cursor: pointer; display: grid; place-items: center; }
.cookie-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cookie-x .icon { width: 17px; height: 17px; }
.cookie-modal { position: fixed; inset: 0; background: rgba(15, 17, 17, .6); z-index: 160; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.cookie-modal.open { opacity: 1; }
.cookie-box { width: min(560px, 100%); max-height: calc(100vh - 32px); background: #fff; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.cookie-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cookie-box-head h2 { font-size: 19px; }
.cookie-box-body { padding: 6px 20px; overflow-y: auto; }
.cookie-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: default; }
label.cookie-cat { cursor: pointer; }
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat strong { font-size: 15px; }
.cookie-cat p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cookie-always { flex: none; font-size: 12.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.cookie-switch { position: relative; flex: none; width: 50px; height: 30px; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.cookie-switch i { position: absolute; inset: 0; border-radius: 999px; background: #c2c7c7; transition: background .15s; pointer-events: none; }
.cookie-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.cookie-switch input:checked + i { background: var(--ink); }
.cookie-switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.cookie-switch input:focus-visible + i { outline: 3px solid #fff; outline-offset: 2px; }
.cookie-box-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-link { display: block; background: none; border: 0; padding: 5px 0; color: #dddddd; font-size: 14px; cursor: pointer; text-align: left; }
.footer-link:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 10px; right: 10px; bottom: 10px; padding: 16px 16px 14px; }
  .cookie-text strong { padding-right: 34px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions .btn-ghost { grid-column: 1 / -1; order: 3; }
  .cookie-box-foot .btn { flex: 1 1 100%; }
  .footer-link { padding: 9px 0; font-size: 15px; }
  /* Finché il riquadro dei cookie è aperto, linguetta e tondino non gli stanno davanti. */
  body.has-cookie-banner .a11y-tab, body.has-cookie-banner .to-top { display: none; }
}

/* Tabelle nelle pagine informative */
.table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.info-table th, .info-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { background: var(--bg-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.info-table tr:last-child td { border-bottom: 0; }
.info-table code { font-size: 13px; background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; }
/* Le tabelle larghe scorrono dentro il loro riquadro, senza allargare la pagina */
.prose, .prose > *, .table-scroll { min-width: 0; max-width: 100%; }
/* Testo ingrandito su telefono: passi più corti, e la pagina non scorre mai di lato */
@media (max-width: 560px) {
  html.a11y-size-1 body > .topline, html.a11y-size-1 body > .header, html.a11y-size-1 body > main, html.a11y-size-1 body > .footer, html.a11y-size-1 .drawer { zoom: 1.06; }
  html.a11y-size-2 body > .topline, html.a11y-size-2 body > .header, html.a11y-size-2 body > main, html.a11y-size-2 body > .footer, html.a11y-size-2 .drawer { zoom: 1.12; }
  html.a11y-size-3 body > .topline, html.a11y-size-3 body > .header, html.a11y-size-3 body > main, html.a11y-size-3 body > .footer, html.a11y-size-3 .drawer { zoom: 1.18; }
}
html[class*="a11y-size-"] body { overflow-x: clip; }
html[class*="a11y-size-"] .section-head, html[class*="a11y-size-"] .toolbar { flex-wrap: wrap; }

/* L'arancione non si usa più: i bottoni d'azione sono gialli come tutti gli altri */
.thumbs button.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.choice:has(input:checked) { border-color: var(--red); background: #fdf4f3; box-shadow: 0 0 0 1px var(--red); }
.toast-warning .toast-bar span { background: #e0a100; }

/* Scelta dei file (foto del reso): un bottone nello stile del negozio */
input[type="file"] { display: block; width: 100%; max-width: 100%; padding: 6px; border: 1px dashed #888c8c; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
input[type="file"]:hover { border-color: var(--ink); background: #fff; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 10px 18px; border: 1px solid var(--red); border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--red-hover); }

/* Pagina di manutenzione e avviso per chi è entrato in LOKI */
.maint-page { background: var(--ink); color: #fff; min-height: 100vh; margin: 0; }
.maint { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px; background: radial-gradient(900px 500px at 50% 0%, rgba(160, 25, 22, .35), transparent 70%), var(--ink); }
.maint-card { width: min(560px, 100%); text-align: center; padding: 44px 36px 38px; border: 0; border-top: 6px solid var(--red); border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.maint-logo { height: 52px; width: auto; margin: 0 auto 26px; }
.maint-name { font-size: 34px; font-weight: 700; letter-spacing: .05em; margin-bottom: 22px; color: var(--red); }
.maint-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; }
.maint-badge .icon { width: 16px; height: 16px; animation: maint-spin 6s linear infinite; }
.maint-card h1 { font-size: clamp(30px, 6vw, 42px); margin: 20px 0 12px; color: var(--ink); letter-spacing: -.02em; }
.maint-card p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; }
.maint-contacts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.maint-contacts a { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-weight: 600; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.maint-contacts a:hover { color: var(--red-hover); text-decoration: underline; }
.maint-foot { font-size: 13px; color: #aab1b9; margin: 0; }
@keyframes maint-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .maint-badge .icon { animation: none; } }
@media (max-width: 560px) { .maint-card { padding: 34px 22px 30px; } .maint-logo { height: 42px; } .maint-card p { font-size: 16px; } }
.maint-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 9px 16px; background: var(--red); color: #fff; font-size: 14px; text-align: center; }
.maint-bar .icon { width: 18px; height: 18px; flex: none; }
.maint-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Newsletter nel piè di pagina: esito e nota sul consenso */
.newsletter-msg { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; max-width: 360px; }
.newsletter-msg.is-ok { background: rgba(110, 231, 160, .16); color: #b9f5cf; border: 1px solid rgba(110, 231, 160, .4); }
.newsletter-msg.is-error { background: rgba(255, 138, 117, .16); color: #ffd0c7; border: 1px solid rgba(255, 138, 117, .45); }
.newsletter-note { margin: 10px 0 0; font-size: 12px !important; line-height: 1.45; color: #aab0b6; max-width: 360px; }
.footer .newsletter-note a { display: inline; padding: 0; font-size: inherit; color: #dddddd; text-decoration: underline; text-underline-offset: 2px; }
.newsletter button[disabled] { opacity: .6; cursor: progress; }

/* Club Casa e Decoro: posto per la pillola del prezzo personale. Esiste solo per chi è iscritto
   (attributo sul body): lo spazio è già riservato, così la pillola non sposta la scheda. */
.club-slot { display: none; }
/* contain: la pillola non allarga mai la colonna che la contiene (nomi di livello lunghi, prezzi a 4 cifre). */
body[data-club-prices] .club-slot { display: block; min-height: 52px; min-width: 0; container: clubslot / inline-size; }
body[data-club-prices] .club-slot-lg { min-height: 96px; margin-top: 12px; }

/* Area cliente: password da cambiare (impostata dal servizio clienti) */
.box-attention { border-color: var(--red); box-shadow: 0 0 0 3px rgba(160, 25, 22, .2); scroll-margin-top: 140px; }

/* Menu della testata su desktop: tutta la barra visibile (quel che non entra va in «Altro»), un sottomenu per voce */
@media (min-width: 901px) {
  html.nav-ready .nav-list { overflow: visible; }
  .nav-item { flex: none; }
  .nav-item[hidden] { display: none; }
  .nav-item.is-open > a { border-bottom-color: var(--red); background: rgba(255, 255, 255, .1); color: #fff; }
  .nav-overflow > a .icon { width: 16px; height: 16px; }
  .nav-overflow.active > a { border-bottom-color: var(--red); background: rgba(255, 255, 255, .1); color: #fff; }
}
/* Da tastiera: si apre la voce col fuoco visibile (non dopo un clic del mouse); Esc la richiude */
@media (min-width: 901px) {
  html.nav-ready .nav-item:not(.is-shut):has(:focus-visible) > .mega { display: block; }
}

/* Menu delle categorie su computer: barra blu notte del marchio, testo bianco, voce attiva sottolineata in rosso */
@media (min-width: 901px) {
  .nav { background: var(--ink); color: #fff; border-bottom: 0; }
  .nav-item > a, .nav-all > a { color: #fff; }
  .nav-item > a:hover, .nav-item.active > a { color: #fff; background: rgba(255, 255, 255, .1); border-bottom-color: var(--red); }
  .nav-all > a::after { background: rgba(255, 255, 255, .25); }
  .nav-item.hot > a, .nav-item.hot > a .icon { color: #fff; }
  .nav-item.hot > a { font-weight: 700; }
}
.header-error { border-top: 4px solid var(--red); }

/* Il comando «Accessibilità» del menu serve solo su telefono: su computer c'è la linguetta. */
.nav-a11y { display: none; }
