/* HubShop — tema minimale, mobile first */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #151515;
  --ink-2: #55534e;
  --line: #e2e0d9;
  --accent: #151515;          /* colore del negozio (Impostazioni → Colore): barra in alto e dettagli */
  --sale: #c8371c;            /* prezzi scontati e badge sconto */
  --ok: #2f7a3e;
  --warn: #a8640a;
  --bad: #b3261e;
  --radius: 2px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.pre { white-space: pre-line; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }

/* ---------- Bottoni e form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); font-weight: 600;
  font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-ghost { border-color: transparent; text-decoration: underline; }
.btn-ghost:hover { background: transparent; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; background: var(--ink); color: #fff; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--ink-2); }

input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 16px; /* 16px: niente zoom su iOS */ }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 90px; resize: vertical; }

/* ---------- Header ---------- */
.site-header { border-top: 4px solid var(--accent); position: sticky; top: 0; z-index: 30; background: rgba(247, 246, 242, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; text-decoration: none; }
.main-nav { display: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-tools .search { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-switch a { padding: 6px; text-decoration: none; color: var(--ink-2); }
.lang-switch a.on { color: var(--ink); text-decoration: underline; }

.search { display: flex; position: relative; }
.search input { min-height: 40px; padding-right: 40px; border-color: transparent; background: rgba(0, 0, 0, .045); }
.search button { position: absolute; right: 0; top: 0; height: 100%; width: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.search-big { max-width: 560px; margin: 0 0 32px; gap: 8px; }
.search-big input { min-height: 48px; border-color: var(--line); background: var(--surface); padding-right: 12px; }
.search-big .btn { position: static; width: auto; height: auto; }
.center .search-big { margin-inline: auto; }

@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .main-nav { display: flex; gap: 4px; margin-left: 24px; }
  .nav-item { position: relative; }
  .nav-item > a { display: block; padding: 10px 12px; font-weight: 500; font-size: 15px; text-decoration: none; }
  .nav-item > a:hover { text-decoration: underline; }
  .nav-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 10px 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .06); }
  .nav-drop a { display: block; padding: 8px 18px; text-decoration: none; font-size: 15px; }
  .nav-drop a:hover { background: var(--bg); }
  .nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: block; }
  .header-tools .search { display: flex; width: 240px; margin-right: 8px; }
}

/* ---------- Drawer mobile ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .35); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: var(--bg); overflow-y: auto; padding: 0 20px 32px; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.drawer-search { margin-bottom: 16px; }
.drawer-search input { border-color: var(--line); background: var(--surface); }
.drawer nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 17px; }
.drawer nav a.sub { font-weight: 400; font-size: 16px; padding-left: 16px; color: var(--ink-2); }
.drawer nav .drawer-all { font-weight: 700; }
body.no-scroll { overflow: hidden; }

/* ---------- Home ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.hero h1 { font-size: clamp(38px, 8vw, 96px); font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; line-height: .95; margin: 0 0 16px; }
.hero .lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 560px; }
.lines { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .lines { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lines-4 { grid-template-columns: repeat(4, 1fr); } .lines-4 .line-tile { aspect-ratio: 3 / 4; } .lines-4 .line-name { font-size: 24px; } }
.line-tile { position: relative; display: block; overflow: hidden; background: #ebe9e2; aspect-ratio: 4 / 5; text-decoration: none; }
@media (min-width: 700px) { .line-tile { aspect-ratio: 1 / 1; } }
.line-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.line-tile:hover img { transform: scale(1.03); }
.line-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: grid; gap: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; }
.line-name { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.line-subs { font-size: 14px; opacity: .9; }
.line-cta { font-weight: 600; font-size: 15px; margin-top: 6px; }
.usp { display: grid; gap: 16px; padding-block: 28px; margin-block: 24px; border-block: 1px solid var(--line); }
@media (min-width: 700px) { .usp { grid-template-columns: repeat(3, 1fr); } }
.usp div { display: grid; gap: 2px; }
.usp span { color: var(--ink-2); font-size: 15px; }

/* ---------- Sezioni e griglie ---------- */
.page { padding-block: 20px 64px; }
.section { padding-block: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: 15px; white-space: nowrap; }
.grid { display: grid; gap: 28px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #ebe9e2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .card:hover .card-media .alt { opacity: 1; } }
.card.is-sold .card-media img { opacity: .55; }
.tag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; background: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tag-sale { background: var(--sale); color: #fff; }
.card-body { padding-top: 10px; display: grid; gap: 2px; }
.card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.card-title { font-size: 15px; font-weight: 500; margin: 0; line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.price { font-weight: 600; font-size: 15px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.price .from { font-weight: 400; color: var(--ink-2); font-size: .9em; }
.price .was { color: var(--ink-2); font-weight: 400; }
.price .sale { color: var(--sale); }
.price-lg { font-size: 24px; margin-top: 8px; }

/* ---------- Breadcrumb, chips, toolbar, pager ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.cat-intro { max-width: 720px; color: var(--ink-2); margin-bottom: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1) 20px; padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; background: var(--surface); }
.chips a:hover, .chips a.on { border-color: var(--ink); }
.chips a.on { background: var(--ink); color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; margin-bottom: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { min-height: 38px; width: auto; padding: 6px 30px 6px 10px; font-size: 14px; }
.empty { padding: 40px 0; color: var(--ink-2); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; background: var(--surface); }
.pager a:hover { border-color: var(--ink); }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Scheda prodotto ---------- */
.pdp { display: grid; gap: 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; background: #ebe9e2; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .25); transition: background .2s, transform .2s; }
.gallery-dots span.on { background: var(--ink); transform: scale(1.2); }
@media (min-width: 900px) {
  .gallery { margin-inline: 0; }
  .gallery-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; }
  .gallery-main img:first-child { grid-column: 1 / -1; }
  .gallery-main img:only-child { grid-column: 1 / -1; }
  .gallery-dots { display: none; }
}
.buybox { display: grid; gap: 6px; }
@media (min-width: 900px) { .buybox { position: sticky; top: calc(var(--header-h) + 20px); } }
.pdp-title { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.pdp-short { color: var(--ink-2); margin: 10px 0 0; }
.buy-form { display: grid; gap: 18px; margin-top: 18px; }
.opt { border: 0; padding: 0; margin: 0; }
.opt legend { font-size: 14px; margin-bottom: 10px; padding: 0; color: var(--ink-2); }
.opt legend strong { color: var(--ink); font-weight: 600; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch, .size { position: relative; cursor: pointer; }
.swatch input, .size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span:not(.sr-only) { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.swatch input:checked + span { outline: 2px solid var(--ink); }
.swatch input:focus-visible + span { outline: 2px dashed var(--ink); }
.size span { display: grid; place-items: center; min-width: 52px; height: 46px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500; }
.size:hover span { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.size.na span { color: #a9a69e; background: repeating-linear-gradient(135deg, transparent 0 6px, #f0eee8 6px 7px), var(--surface); text-decoration: line-through; }
.js .variant-select:has(select) { display: none; }
.stock-msg { margin: 0; min-height: 1.5em; font-size: 14px; font-weight: 500; }
.buy-row { display: flex; gap: 8px; }
.qty input { width: 76px; text-align: center; }
.pdp-usp { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pdp-usp li::before { content: "✓"; margin-right: 8px; color: var(--ink); }
.accordion { margin-top: 22px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; padding: 16px 0; font-weight: 600; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: "−"; }
.accordion .prose, .accordion .specs { padding-bottom: 18px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }

.prose { font-size: 16px; }
.prose h2 { font-size: 20px; margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- Carrello e checkout ---------- */
.alert { padding: 12px 16px; margin-bottom: 20px; border-left: 3px solid var(--ink); background: var(--surface); }
.alert-error { border-color: var(--bad); color: var(--bad); }
.cart-layout, .checkout { display: grid; gap: 32px; }
@media (min-width: 900px) { .cart-layout, .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: "img info total" "img qty qty"; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-of-type { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .cart-line { grid-template-columns: 100px 1fr 120px 100px; grid-template-areas: "img info qty total"; align-items: center; } }
.cart-img { grid-area: img; aspect-ratio: 4 / 5; background: #ebe9e2; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { grid-area: info; display: grid; gap: 2px; }
.cart-name { font-weight: 600; text-decoration: none; }
.cart-qty { grid-area: qty; display: flex; align-items: center; gap: 14px; }
.cart-qty input { width: 72px; min-height: 40px; text-align: center; }
.cart-total { grid-area: total; text-align: right; font-weight: 600; }
.summary { background: var(--surface); padding: 24px; border: 1px solid var(--line); display: grid; gap: 12px; }
@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h2, .box h2 { font-size: 18px; margin: 0 0 4px; }
.summary dl, .box dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; font-size: 15px; }
.summary dd, .box dd { margin: 0; text-align: right; }
.grand { font-weight: 700; font-size: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-lines { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; font-size: 14px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines small { display: block; }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.checkout legend { font-size: 18px; font-weight: 700; margin-bottom: 14px; padding: 0; }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; }
.field .err { color: var(--bad); font-size: 13px; }
.has-error input, .has-error select { border-color: var(--bad); }
.row2, .row3 { display: grid; gap: 0 12px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 120px 1fr 100px; } }
.radio-card { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin-bottom: 8px; }
.radio-card:has(input:checked) { border-color: var(--ink); }
.radio-card > span { display: grid; gap: 2px; }
.radio-card input, .check input { accent-color: var(--ink); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.check { display: flex; gap: 10px; font-size: 15px; margin-bottom: 8px; }
.check.has-error { color: var(--bad); }
.hp { position: absolute; left: -9999px; }
.thanks { text-align: center; padding: 20px 0 32px; }
.thanks svg { margin: 0 auto 12px; color: var(--ok); }
.box { background: var(--surface); border: 1px solid var(--line); padding: 24px; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 48px; margin-top: 40px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid a, .footer-grid span { display: block; padding: 4px 0; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.foot-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 28px; margin-top: 40px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; font-size: 15px; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px); }
.toast a { color: #fff; font-weight: 600; }
.toast.is-error { background: var(--bad); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .buy-form, .toast { display: none; } }

/* ---------- Coupon e sconto ---------- */
.summary .discount { color: var(--sale); }
.coupon { border-top: 1px solid var(--line); padding-top: 12px; }
.coupon summary { cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.coupon summary::-webkit-details-marker { display: none; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row input { min-height: 40px; text-transform: uppercase; letter-spacing: .04em; }
.coupon-row .btn { flex: none; min-height: 40px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px dashed var(--line); font-size: 14px; }
.coupon p { margin: 0 0 8px; }
.alert-success { border-color: var(--ok); color: var(--ok); }

/* =====================================================================
   Componenti condivisi dai due temi (colori e caratteri nei file theme-*.css)
   ===================================================================== */
:root { --font-display: var(--font); --radius-lg: 4px; --topbar-bg: var(--ink); --topbar-fg: #fff; }
h1, h2, h3, .logo { font-family: var(--font-display); }

/* barra in alto */
.topbar { background: var(--topbar-bg); color: var(--topbar-fg); font-size: 13px; }
.topbar-row { display: flex; gap: 24px; justify-content: center; align-items: center; min-height: 34px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.topbar-row::-webkit-scrollbar { display: none; }
.topbar a { color: inherit; text-decoration: none; }

/* logo */
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo-svg { height: 34px; width: auto; display: block; }
.logo-img { max-height: 44px; width: auto; }
.drawer .logo-svg { height: 28px; }

/* ricerca mobile sotto l'header */
.mobile-search { padding-bottom: 10px; }
.mobile-search .search input { background: var(--surface); border-color: var(--line); }
@media (min-width: 1000px) { .mobile-search { display: none; } }

/* menu a pannelli */
@media (min-width: 1000px) {
  .main-nav .nav-item { position: static; }
  .site-header { position: sticky; }
  .site-header .header-row, .site-header .nav-row .wrap { position: relative; }
  .nav-drop { left: 0; right: 0; min-width: 0; padding: 0; border-left: 0; border-right: 0; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .25); }
  .nav-drop-inner { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 28px; }
  .nav-col { display: grid; align-content: start; gap: 2px; }
  .nav-drop a { padding: 4px 0; font-size: 14px; }
  .nav-drop a:hover { background: none; text-decoration: underline; }
  .nav-col-head { font-weight: 700; }
  .nav-all { grid-column: 1 / -1; font-weight: 600; margin-top: 6px; }
  .nav-brands { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .nav-sale { color: var(--sale) !important; font-weight: 700 !important; }
}

/* suggerimenti (ricerca e indirizzo) */
.search { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .3); max-height: min(70vh, 520px); overflow-y: auto; text-align: left; }
@media (min-width: 1000px) { .header-tools .suggest { left: auto; width: 420px; } }
.sg-head { padding: 10px 14px 4px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; text-decoration: none; color: var(--ink); cursor: pointer; font-size: 15px; }
.sg-row.on, .sg-row:hover { background: var(--bg); }
.sg-row mark { background: none; color: inherit; font-weight: 700; }
.sg-prod img { width: 40px; height: 50px; object-fit: cover; background: #eee; flex: none; }
.sg-prod > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.sg-brand { font-size: 12px; color: var(--ink-2); }
.sg-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-price { font-weight: 600; white-space: nowrap; font-size: 14px; }
.sg-price s { color: var(--ink-2); font-weight: 400; }
.sg-all { border-top: 1px solid var(--line); font-weight: 600; }
.sg-empty { padding: 12px 14px; color: var(--ink-2); font-size: 14px; }
.suggest-addr { top: 100%; }

/* slider della home */
.slider { position: relative; overflow: hidden; background: #e9e9e7; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; color: #fff; text-decoration: none; aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .slide { aspect-ratio: 16 / 7; } }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vw, 64px); display: grid; gap: 10px; max-width: 640px; }
.slide.text-dark { color: var(--ink); }
.slide.text-light .slide-text { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.slide-title { font-family: var(--font-display); font-size: clamp(34px, 6vw, 72px); line-height: .95; font-weight: 800; }
.slide-sub { font-size: clamp(16px, 1.6vw, 20px); }
.slide-cta { justify-self: start; display: inline-block; padding: 12px 20px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-shadow: none; }
.text-dark .slide-cta { background: var(--ink); color: #fff; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); cursor: pointer; display: none; place-items: center; }
@media (min-width: 900px) { .slider-btn { display: grid; } }
.slider-btn.prev { left: 16px; } .slider-btn.next { right: 16px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0; }
.slider-dots button.on { background: #fff; }

/* banner */
.banners { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 800px) { .banners-2 { grid-template-columns: 1fr 1fr; } .banners-3 { grid-template-columns: repeat(3, 1fr); } }
.banner { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none; background: #e9e9e7; }
.banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.banner:hover img { transform: scale(1.03); }
.banner-text { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.banner.text-dark { color: var(--ink); }
.banner-title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1; }

/* marche */
.brand-index { columns: 2 220px; column-gap: 32px; }
.brand-index section { break-inside: avoid; margin-bottom: 22px; }
.brand-index h2 { font-size: 22px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.brand-index a { display: flex; justify-content: space-between; padding: 6px 0; text-decoration: none; }
.brand-title { font-size: clamp(40px, 7vw, 80px); }

/* fattura */
.invoice-box { border: 1px solid var(--line) !important; background: var(--surface); padding: 16px !important; }
.js [data-invoice-fields][data-closed] { display: none; }
[data-invoice-fields] { margin-top: 14px; }
.btn-quote { white-space: nowrap; }
.norm-chip { justify-self: start; font-size: 12px; padding: 2px 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); margin-top: 2px; }
.quote-form .check { margin: 4px 0 16px; }
