/* ============================================================
   HO UN AMICO — stile del sito
   Tema chiaro: sfondo bianco, azzurro dominante
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f8fd;
  --line: rgba(15, 50, 80, .12);
  --line-2: rgba(15, 50, 80, .22);
  --text: #0f1c26;
  --muted: #4f5f6b;
  --dim: #6a7884;
  --orange: #38B6FF;
  --orange-2: #8AD8FF;
  --ember: #0E7FC7;
  --blue: #1E6BFF;
  --blue-2: #6FA0FF;
  --sky: #38B6FF;
  --sky-2: #0A6FB0;
  --sky-rgb: 56, 182, 255;
  --ok: #12A150;
  --accent: var(--orange);
  --accent-2: #0A6FB0;
  --accent-rgb: 56, 182, 255;
  --radius: 22px;
  --radius-s: 14px;
  --hdr-h: 68px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #000; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

main { position: relative; z-index: 1; }
section { position: relative; }
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 110px 0; } }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 8vw, 5.6rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-2); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px; margin-bottom: 40px; }
.sec-head h2 { margin: 0; max-width: 16ch; }
.sec-head .lead { margin: 0; }

/* testo "rovente": gradiente che scorre come calore */
.hot {
  background: linear-gradient(100deg, #0A5F96 0%, var(--orange) 30%, var(--ember) 50%, var(--orange) 70%, #0A5F96 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: heat 7s linear infinite;
}
.cold {
  background: linear-gradient(100deg, #0A6FB0 0%, var(--sky-2) 30%, var(--sky) 50%, var(--sky-2) 70%, #0A6FB0 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: heat 8s linear infinite;
}
@keyframes heat { to { background-position: -250% 0; } }

.todo {
  display: inline; font-family: var(--f-mono); font-size: .82em; color: #0A5F96;
  background: rgba(138, 216, 255, .1); border: 1px dashed rgba(138, 216, 255, .45); border-radius: 6px; padding: 1px 6px;
}

/* ---------- pulsanti con effetto luce ---------- */
.btn {
  --b: var(--accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 800; font-size: .96rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn:hover::after { transform: translateX(120%); } }
.btn-primary {
  background: linear-gradient(135deg, var(--orange-2), var(--accent) 45%, color-mix(in srgb, var(--accent) 80%, #0A6FB0));
  color: #04202f;
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { box-shadow: 0 18px 46px -10px rgba(var(--accent-rgb), .95), 0 0 0 1px rgba(15, 50, 80, .12) inset; transform: translateY(-2px); } }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(15, 50, 80, .03); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .08); transform: translateY(-2px); } }
.btn-blue { background: linear-gradient(135deg, #5d93ff, var(--blue)); color: #fff; box-shadow: 0 10px 30px -10px rgba(30, 107, 255, .9); }
@media (hover: hover) and (pointer: fine) { .btn-blue:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -10px rgba(30, 107, 255, 1); } }
.btn-orange { background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #04202f; box-shadow: 0 10px 30px -10px rgba(56, 182, 255, .9); }
@media (hover: hover) and (pointer: fine) { .btn-orange:hover { transform: translateY(-2px); } }
.btn-wa { background: #25d366; color: #052e16; }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .9); } }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent-2); }
.link-arrow span { transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover span { transform: translateX(5px); } }

/* ---------- striscia "sito in allestimento" ---------- */
.demo-strip {
  position: relative; z-index: 40;
  background: #eaf6fe;
  color: #0A5F96; font-size: .8rem; text-align: center; padding: 7px 44px 7px 16px; border-bottom: 1px solid rgba(138, 216, 255, .25);
}
.demo-strip b { color: var(--text); }
.demo-strip button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; color: #0A5F96; }
@media (hover: hover) and (pointer: fine) { .demo-strip button:hover { background: rgba(15, 50, 80, .08); } }

/* ---------- header con blur ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr-h);
  background: var(--bg); border-block: 1px solid var(--line);
  transition: box-shadow .35s;
}
.hdr.scrolled { box-shadow: 0 10px 30px -22px rgba(15, 50, 80, .5); }
.hdr-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--sky)); box-shadow: 0 0 12px rgba(var(--sky-rgb), .8); }
.hdr-inner { height: 100%; display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; flex: none; }
.logo-mark { width: auto; max-width: 100%; height: 30px; flex: none; transition: transform .5s var(--ease-back); }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo-mark { transform: scale(1.04); } }


.hdr-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); transition: background .25s, transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(15, 50, 80, .07); } }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #04202f; font-size: .68rem; font-weight: 900; display: grid; place-items: center;
  transform: scale(0); transition: transform .4s var(--ease-back);
}
.icon-btn .badge.has { transform: scale(1); }
.icon-btn.bump { animation: bump .6s var(--ease-back); }
.badge.pop { animation: pop .5s var(--ease-back); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } }
@keyframes pop { 40% { transform: scale(1.6); } }
.hide-xs { display: none; }
@media (min-width: 400px) { .hide-xs { display: grid; } }
@media (max-width: 719px) { .hdr-inner { gap: 8px; } .icon-btn { width: 40px; height: 40px; } }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: grid; } }
.burger { display: grid; }

/* menu mobile */
.mnav { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.mnav-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s; }
.mnav-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw); background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; padding: 18px 20px 28px; overflow-y: auto;
}
.mnav.open { pointer-events: auto; }
.mnav.open .mnav-bg { opacity: 1; }
.mnav.open .mnav-panel { transform: none; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mnav-group { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 18px 0 6px; }
.mnav a.mlink { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .5s var(--ease), color .2s; }
@media (hover: hover) and (pointer: fine) { .mnav a.mlink:hover { color: var(--accent-2); } }
.mnav.open a.mlink { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 120ms); }
.mnav a.mlink.b2b-link { color: var(--accent-2); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ricerca con suggerimenti */
.search { position: relative; max-width: 560px; }
.search-box {
  display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(15, 50, 80, .045); border: 1px solid var(--line-2);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.search-box:focus-within { border-color: rgba(var(--accent-rgb), .75); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .12), 0 20px 50px -24px rgba(var(--accent-rgb), .8); background: rgba(15, 50, 80, .06); }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 1rem; font-weight: 600; }
.search-box input::placeholder { color: var(--dim); }
.search-box .btn { min-height: 44px; padding: 0 18px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: min(60svh, 440px); overflow-y: auto;
  background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: 18px; padding: 8px; box-shadow: 0 30px 70px -20px rgba(15, 50, 80, .22);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.suggest.open { opacity: 1; transform: none; pointer-events: auto; }
.suggest-group { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 4px; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; }
.suggest a[aria-selected="true"] { background: rgba(var(--accent-rgb), .12); }
@media (hover: hover) and (pointer: fine) { .suggest a:hover { background: rgba(var(--accent-rgb), .12); } }
.suggest .s-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; overflow: hidden; }
.suggest .s-ico svg { width: 30px; height: 30px; }
.suggest .s-t { font-weight: 700; font-size: .93rem; line-height: 1.25; }
.suggest .s-s { font-size: .78rem; color: var(--muted); }
.suggest mark { background: none; color: var(--accent-2); }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: .9rem; }
.search-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: .82rem; color: var(--dim); }
.search-hints button { color: var(--muted); padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: .8rem; transition: color .2s, border-color .2s; }
@media (hover: hover) and (pointer: fine) { .search-hints button:hover { color: var(--accent-2); border-color: var(--accent); } }

/* ---------- card prodotto ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .products { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1080px) { .products { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.pcard {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .35s;
  --mx: 50%; --my: 50%;
}
.pcard::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .22), transparent 60%);
}
@media (hover: hover) and (pointer: fine) { .pcard:hover { transform: translateY(-8px); border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 30px 60px -28px rgba(var(--accent-rgb), .75), 0 0 0 1px rgba(var(--accent-rgb), .15); } }
@media (hover: hover) and (pointer: fine) { .pcard:hover::before { opacity: 1; } }
.pcard-media { position: relative; aspect-ratio: 1 / 1.05; border-radius: calc(var(--radius) - 6px); margin: 6px; overflow: hidden; background: radial-gradient(80% 60% at 50% 100%, rgba(var(--accent-rgb), .22), transparent 70%), var(--surface-2); }
.pcard-art { position: absolute; inset: 8% 14%; display: grid; place-items: center; transition: transform .8s var(--ease); }
.pcard-art svg { width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(15, 50, 80, .22)); }
.pcard-media::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 4%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .7), transparent); filter: blur(10px); opacity: .5; transition: opacity .5s; }
@media (hover: hover) and (pointer: fine) { .pcard:hover .pcard-media::after { opacity: 1; } }
.pcard-flags { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.flag { font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2); }
.flag.example { color: #0A5F96; border-style: dashed; border-color: rgba(138, 216, 255, .5); }
.flag.sale { background: var(--ember); border-color: transparent; color: #fff; }
.flag.grade { background: rgba(30, 107, 255, .25); border-color: rgba(30, 107, 255, .5); color: #1a4fb0; }
.fav {
  position: absolute; z-index: 3; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s var(--ease-back), background .25s;
}
.fav svg { width: 18px; height: 18px; transition: fill .25s, color .25s; }
@media (hover: hover) and (pointer: fine) { .fav:hover { transform: scale(1.12); } }
.fav.on { background: rgba(14, 127, 199, .2); border-color: rgba(14, 127, 199, .6); }
.fav.on svg { fill: var(--ember); color: var(--ember); }
.fav.burst { animation: bump .6s var(--ease-back); }
.spark { position: fixed; z-index: 120; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-2); pointer-events: none; box-shadow: 0 0 8px var(--orange); }
.quick {
  position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  transform: translateY(calc(100% + 12px)); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.pcard:focus-within .quick { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .pcard:hover .quick { transform: none; opacity: 1; } }
.quick button { min-height: 40px; border-radius: 12px; font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; transition: transform .25s, background .25s; }
.quick .q-view { background: rgba(255, 255, 255, .78); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.quick .q-add { background: var(--accent); color: #04202f; }
@media (hover: hover) and (pointer: fine) { .quick button:hover { transform: translateY(-2px); } }
.quick svg { width: 15px; height: 15px; }
.pcard-body { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-brand { font-size: .72rem; color: var(--dim); font-weight: 700; }
.pcard-name { font-family: var(--f-display); font-size: .94rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.pcard-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pcard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; color: var(--text); }
.price-old { color: var(--dim); text-decoration: line-through; font-size: .84rem; }
.price-note { font-size: .7rem; color: var(--dim); width: 100%; }
.swatches { display: flex; gap: 5px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(15, 50, 80, .25); }

/* ---------- banda B2B ---------- */
.band-b2b {
  position: relative; overflow: hidden; border-radius: 32px; padding: 34px 22px;
  background: radial-gradient(70% 90% at 100% 0%, rgba(56, 182, 255, .28), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(14, 127, 199, .16), transparent 60%), var(--surface);
  border: 1px solid rgba(56, 182, 255, .28);
}
@media (min-width: 720px) { .band-b2b { padding: 56px; } }
.band-b2b .grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(138, 216, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 216, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
}
.band-grid { position: relative; display: grid; gap: 34px; }
@media (min-width: 980px) { .band-grid { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.fact { padding: 14px; border-radius: 16px; background: rgba(56, 182, 255, .06); border: 1px solid rgba(138, 216, 255, .18); transition: border-color .3s, transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .fact:hover { border-color: rgba(56, 182, 255, .5); transform: translateY(-3px); } }
.fact b { display: block; font-family: var(--f-display); font-size: 1rem; margin-bottom: 2px; }
.fact span { font-size: .8rem; color: var(--muted); }
.tag-fan { position: relative; height: 380px; }
.tag-fan .ltag { position: absolute; width: min(270px, 70%); transition: transform .7s var(--ease); }
.tag-fan .ltag:nth-child(1) { left: 2%; top: 30px; transform: rotate(-9deg); }
.tag-fan .ltag:nth-child(2) { left: 22%; top: 0; transform: rotate(2deg); z-index: 2; }
.tag-fan .ltag:nth-child(3) { right: 0; top: 50px; transform: rotate(10deg); }
@media (hover: hover) and (pointer: fine) { .tag-fan:hover .ltag:nth-child(1) { transform: rotate(-14deg) translate(-14px, 6px); } }
@media (hover: hover) and (pointer: fine) { .tag-fan:hover .ltag:nth-child(3) { transform: rotate(15deg) translate(14px, 6px); } }
@media (hover: hover) and (pointer: fine) { .tag-fan:hover .ltag:nth-child(2) { transform: rotate(0) translateY(-10px); } }

/* ---------- cartellino lotto (stile magazzino) ---------- */
.lots { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .lots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lots { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ltag {
  position: relative; display: flex; flex-direction: column; color: #14130f;
  background: linear-gradient(180deg, #f6f1e7, #ece4d4); border-radius: 16px 16px 16px 16px;
  padding: 22px 18px 16px; box-shadow: 0 24px 50px -24px rgba(15, 50, 80, .22), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
}
@media (hover: hover) and (pointer: fine) { .lots .ltag:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 40px 70px -30px rgba(30, 107, 255, .8); } }
.ltag-hole { position: absolute; top: 9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.ltag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 8px; padding-bottom: 10px; border-bottom: 2px solid #14130f; }
.ltag-no { font-family: var(--f-mono); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.ltag-no b { display: block; font-family: var(--f-display); font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; }
.ltag-cat { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: #14130f; color: #f6f1e7; }
.ltag-title { font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -.01em; margin: 12px 0 8px; }
.ltag-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ltag-rows { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed rgba(20, 19, 15, .35); margin-top: auto; }
.ltag-rows div { padding: 8px 0; border-bottom: 1px dashed rgba(20, 19, 15, .35); }
.ltag-rows div:nth-child(odd) { padding-right: 8px; border-right: 1px dashed rgba(20, 19, 15, .35); }
.ltag-rows div:nth-child(even) { padding-left: 10px; }
.ltag-rows small { display: block; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #6d665a; }
.ltag-rows strong { font-size: .92rem; }
.ltag-price strong { font-family: var(--f-display); font-size: 1.05rem; color: #0a3fb3; }
.ltag-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.barcode { position: relative; height: 34px; flex: 1; max-width: 150px; overflow: hidden; }
.barcode svg { width: 100%; height: 100%; }
.barcode::after { content: ""; position: absolute; top: -10%; bottom: -10%; width: 3px; left: -6px; background: #0E7FC7; box-shadow: 0 0 10px 2px rgba(14, 127, 199, .8); opacity: 0; }
@media (hover: hover) and (pointer: fine) { .ltag:hover .barcode::after { animation: scan 1.1s var(--ease) 1; opacity: 1; } }
@keyframes scan { 0% { left: -6px; } 100% { left: 100%; } }
.ltag-add { position: relative; z-index: 2; min-height: 36px; padding: 0 12px; border-radius: 10px; background: #14130f; color: #f6f1e7; font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; transition: background .25s, transform .25s; }
@media (hover: hover) and (pointer: fine) { .ltag-add:hover { background: var(--blue); transform: translateY(-2px); } }
.ltag-add.in { background: var(--blue); }
.ltag-add svg { width: 14px; height: 14px; }
.ltag.sold { filter: grayscale(.9) brightness(.85); }
.stamp {
  position: absolute; z-index: 3; top: 42%; left: 50%; padding: 6px 16px; border: 4px solid #d6261b; border-radius: 10px;
  color: #d6261b; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .08em;
  transform: translate(-50%, -50%) rotate(-14deg); opacity: .9; mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ltag.sold.in .stamp, .reveal-done .ltag.sold .stamp { animation: thump .6s var(--ease-back) both; animation-delay: .25s; }
@keyframes thump { 0% { transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); opacity: 0; } 100% { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: .9; } }

/* ---------- passi ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .step:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-4px); } }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1.2px rgba(var(--accent-rgb), .8); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }
.step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0; background: linear-gradient(90deg, var(--accent), transparent); transition: transform .8s var(--ease); }
.step.in::after { transform: scaleX(1); transition-delay: calc(var(--i, 0) * 120ms + 300ms); }

/* ---------- blocchi vari ---------- */
.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 60px; } }
.panel { border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: 26px; }
@media (min-width: 720px) { .panel { padding: 40px; } }
.panel-hot { background: radial-gradient(80% 80% at 0% 100%, rgba(56, 182, 255, .2), transparent 60%), var(--surface); }
.repair-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 26px; }
.repair-list div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(15, 50, 80, .03); border: 1px solid var(--line); font-weight: 700; font-size: .88rem; }
.repair-list svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 800; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i { background: var(--accent); color: #04202f; transform: rotate(180deg); }
.faq[open] summary i::after { transform: rotate(0); }
.faq .faq-a { color: var(--muted); padding: 0 2px 20px; max-width: 70ch; animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

.contact-cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.ccard { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { a.ccard:hover { border-color: rgba(var(--accent-rgb), .55); transform: translateY(-3px); } }
.ccard-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent-2); flex: none; }
.ccard-ico svg { width: 22px; height: 22px; }
.ccard small { display: block; color: var(--dim); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ccard b { font-size: .98rem; word-break: break-word; }

/* ---------- intestazione pagine interne ---------- */
.page-hero { padding: 40px 0 26px; }
@media (min-width: 900px) { .page-hero { padding: 70px 0 40px; } }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--dim); margin-bottom: 18px; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--accent-2); } }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.info-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.info-strip > span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; padding: 8px 13px; border-radius: 999px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .25); }
.info-strip > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ---------- filtri ---------- */
.toolbar { position: sticky; top: var(--hdr-h); z-index: 20; padding: 12px 0; margin-bottom: 22px; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: .86rem; color: var(--muted); white-space: nowrap; transition: color .3s; }
.tabs button[aria-pressed="true"] { color: #04202f; }
.tabs-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .5); transition: transform .45s var(--ease), width .45s var(--ease); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 700; color: var(--muted); transition: all .25s; }
@media (hover: hover) and (pointer: fine) { .chip:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .5); } }
.chip[aria-pressed="true"] { background: rgba(var(--accent-rgb), .15); border-color: var(--accent); color: var(--text); }
.mini-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex: 1 1 220px; max-width: 360px; transition: border-color .25s; }
.mini-search:focus-within { border-color: var(--accent); }
.mini-search svg { width: 17px; height: 17px; color: var(--dim); flex: none; }
.mini-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-weight: 600; font-size: .92rem; }
.select { height: 44px; padding: 0 36px 0 14px; border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2a396' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; border: 1px solid var(--line); font-weight: 700; font-size: .86rem; -webkit-appearance: none; appearance: none; }
.result-count { font-size: .84rem; color: var(--dim); margin-left: auto; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); grid-column: 1 / -1; }

/* ---------- scheda prodotto ---------- */
.pdp { display: grid; gap: 30px; padding-bottom: 60px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; } }
.pdp-media { position: relative; border-radius: 30px; aspect-ratio: 1; background: radial-gradient(60% 50% at 50% 85%, rgba(var(--accent-rgb), .35), transparent 70%), var(--surface); border: 1px solid var(--line); overflow: hidden; perspective: 900px; }
@media (min-width: 960px) { .pdp-media { position: sticky; top: calc(var(--hdr-h) + 20px); } }
.pdp-art { position: absolute; inset: 10% 20%; display: grid; place-items: center; transition: transform .3s var(--ease); transform-style: preserve-3d; }
@keyframes swapIn { from { opacity: 0; transform: scale(.85) rotate(-6deg); } }
.pdp h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; }
.pdp-price .price { font-size: 2.1rem; }
.opt-label { font-weight: 800; font-size: .86rem; margin: 22px 0 10px; display: flex; justify-content: space-between; }
.opt-label span { color: var(--muted); font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 700; font-size: .9rem; transition: all .25s; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.color-opt { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; padding: 3px; transition: transform .3s var(--ease-back), border-color .25s; }
.color-opt i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 50, 80, .25); }
.color-opt[aria-pressed="true"] { border-color: var(--accent); transform: scale(1.1); }
.opt-label .opt-title { color: inherit; font-weight: inherit; }
.opt.is-out { color: var(--dim); border-style: dashed; }
.color-opt:disabled { position: relative; cursor: not-allowed; }
.color-opt:disabled i { filter: grayscale(1); opacity: .35; }
.color-opt:disabled::after { content: ""; position: absolute; left: 50%; top: 10%; width: 2px; height: 80%; background: var(--muted); transform: rotate(45deg); }
.opt-note { margin: 10px 0 0; font-size: .84rem; color: var(--accent-2); }
.opt-note:empty { display: none; }
.price-out { color: var(--muted); }
.pdp-price .price-out { font-size: 1.5rem; }
.qv-price { margin: 0; }
.qv-price .price { font-size: 1.6rem; }
.li-warn { margin-top: 4px; font-size: .76rem; color: var(--accent-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 50px; }
.qty button { width: 44px; height: 100%; font-size: 1.2rem; font-weight: 700; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .qty button:hover { color: var(--accent-2); } }
.qty input { width: 40px; text-align: center; background: none; border: 0; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.buy-row .btn-primary { flex: 1; min-width: 200px; }
.perks { display: grid; gap: 8px; margin-top: 24px; }
.perk { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.perk svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; margin-top: 2px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .92rem; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 40%; padding-right: 12px; }

/* ---------- cassetti (carrello, preferiti, preventivo) ---------- */
.drawer { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .5s var(--ease);
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: itemIn .45s var(--ease); }
@keyframes itemIn { from { opacity: 0; transform: translateX(20px); } }
.line-item .li-art { width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; padding: 6px; }
.line-item .li-art svg { width: 100%; height: 100%; }
.line-item .li-t { font-weight: 800; font-size: .9rem; line-height: 1.25; }
.line-item .li-s { font-size: .76rem; color: var(--muted); }
.li-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 999px; }
.li-qty button { width: 28px; height: 28px; color: var(--muted); font-weight: 800; }
.li-qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: .86rem; }
.li-qty input { width: 64px; height: 28px; text-align: center; background: none; border: 0; font-weight: 800; font-size: .86rem; }
.li-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.li-del { font-size: .74rem; color: var(--dim); text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .li-del:hover { color: var(--ember); } }
.totals { display: grid; gap: 6px; font-size: .92rem; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.drawer-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.drawer-empty svg { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--dim); }

/* ---------- modale (vista rapida, avvisi) ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: end center; pointer-events: none; }
@media (min-width: 720px) { .modal { place-items: center; } }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(900px, 100%); max-height: 92svh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 28px 28px 0 0; padding: 22px; transform: translateY(40px); opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
@media (min-width: 720px) { .modal-box { border-radius: 28px; padding: 32px; transform: translateY(20px) scale(.96); } }
.modal.open { pointer-events: auto; }
.modal.open .modal-bg { opacity: 1; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.qv { display: grid; gap: 22px; }
@media (min-width: 720px) { .qv { grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; } }
.qv-media { position: relative; aspect-ratio: 1; border-radius: 22px; background: radial-gradient(60% 50% at 50% 85%, rgba(var(--accent-rgb), .35), transparent 70%), var(--surface); display: grid; place-items: center; padding: 14%; }
.modal-small .modal-box { width: min(520px, 100%); }

/* ---------- moduli ---------- */
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: .82rem; font-weight: 800; color: var(--muted); }
.field label em { font-style: normal; color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; background: rgba(15, 50, 80, .035); border: 1px solid var(--line-2);
  outline: 0; font-size: 1rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2a396' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); background: rgba(15, 50, 80, .05); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff5a4a; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-2); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 14px; font-size: .92rem; font-weight: 700; display: none; }
.form-msg.ok { display: block; background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .4); color: #0d7a4a; }
.form-msg.err { display: block; background: rgba(255, 90, 74, .1); border: 1px solid rgba(255, 90, 74, .4); color: #b3261e; }
.radio-cards { display: grid; gap: 10px; }
@media (min-width: 640px) { .radio-cards.three { grid-template-columns: repeat(3, 1fr); } .radio-cards.two { grid-template-columns: 1fr 1fr; } }
.rcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(15, 50, 80, .02); cursor: pointer; transition: all .25s; }
.rcard input { position: absolute; opacity: 0; }
.rcard b { font-size: .98rem; }
.rcard span { font-size: .8rem; color: var(--muted); }
.rcard:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.rcard:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pay-logo { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }

/* ---------- checkout ---------- */
.co { display: grid; gap: 26px; padding-bottom: 80px; }
@media (min-width: 980px) { .co { grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; } }
.co-step { margin-bottom: 18px; }
.co-step h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.co-step h2 i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #04202f; font-size: .9rem; }
.co-sum { position: sticky; top: calc(var(--hdr-h) + 20px); }
.notice { padding: 16px 18px; border-radius: 16px; background: rgba(138, 216, 255, .08); border: 1px dashed rgba(138, 216, 255, .45); color: #0A5F96; font-size: .9rem; }
.notice.blue { background: rgba(30, 107, 255, .08); border-color: rgba(111, 160, 255, .45); color: #1a4fb0; }

/* ---------- pulsante WhatsApp flottante ---------- */
.wa-float {
  position: fixed; z-index: 80; right: 16px; bottom: 16px; height: 58px; min-width: 58px; border-radius: 999px; padding: 0 17px;
  display: flex; align-items: center; gap: 10px; background: #25d366; color: #052e16; font-weight: 800;
  box-shadow: 0 16px 40px -10px rgba(37, 211, 102, .7); transition: transform .4s var(--ease-back), box-shadow .3s;
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: translateY(-3px) scale(1.03); } }
@media (hover: hover) and (pointer: fine) { .wa-float:hover span { max-width: 160px; } }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 130; left: 50%; bottom: 90px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 13px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96); border: 1px solid rgba(var(--accent-rgb), .45); box-shadow: 0 20px 50px -20px rgba(15, 50, 80, .3); font-weight: 700; font-size: .9rem; display: flex; gap: 10px; align-items: center; animation: toastIn .5s var(--ease-back); pointer-events: auto; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast a { margin-left: auto; color: var(--accent-2); text-decoration: underline; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* volo verso il carrello */
.fly { position: fixed; z-index: 140; pointer-events: none; width: 80px; height: 80px; margin: -40px 0 0 -40px; left: 0; top: 0; }
.fly svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), .9)); }

/* ---------- footer ---------- */
.ftr { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(56, 182, 255, .05)); padding: 56px 0 100px; overflow: hidden; }
.ftr-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr-grid > div:first-child { grid-column: auto; } }
.ftr h4 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.ftr ul a { color: var(--muted); transition: color .2s; }
@media (hover: hover) and (pointer: fine) { .ftr ul a:hover { color: var(--accent-2); } }
.ftr-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pay-row span { font-size: .72rem; font-weight: 800; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- testi lunghi / legali ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }

/* ---------- comparsa allo scroll, a cascata ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .pcard[data-reveal].in, .js .ltag[data-reveal].in { transition: opacity .8s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .35s; transition-delay: calc(var(--i, 0) * 70ms), 0s, 0s, 0s; }
.js .ltag[data-reveal].in { transition-delay: calc(var(--i, 0) * 70ms), 0s, 0s; }

/* magnetico */
.magnet { transition: transform .5s var(--ease); }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .ticker-track { animation: none; }
}
.hero h1 .line > span.hot { animation: rise 1s var(--ease) forwards, heat 7s linear infinite; animation-delay: calc(var(--i) * 120ms + 150ms), 0s; }

/* ============================================================
   TELEFONO — barra in basso, spazi, tocco
   ============================================================ */
.ds-short { display: none; }
.tabbar { display: none; }
.tabbar .badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #04202f; font-size: .64rem; font-weight: 900; font-style: normal; display: grid; place-items: center;
  transform: scale(0); transition: transform .4s var(--ease-back);
}
.tabbar .badge.has { transform: scale(1); }

@media (max-width: 719px) {
  :root { --hdr-h: 60px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .ds-long { display: none; }
  .ds-short { display: inline; }
  .demo-strip { font-size: .74rem; padding: 6px 40px 6px 12px; }

  /* header essenziale: logo, Privati/B2B, menu (il resto è nella barra in basso) */
  .hdr-actions .icon-btn:not(.burger) { display: none; }

  .tabbar {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--line-2);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 50px; border-radius: 14px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent; transition: color .25s, background .25s, transform .2s;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a:active, .tabbar button:active { transform: scale(.9); background: rgba(15, 50, 80, .05); }
  .tabbar [aria-current="page"] { color: var(--sky-2); }
  .tabbar [aria-current="page"]::before { content: ""; position: absolute; top: -7px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
  .tabbar .bump { animation: bump .6s var(--ease-back); }

  .wa-float { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); height: 50px; min-width: 50px; padding: 0 12px; }
  .wa-float svg { width: 24px; height: 24px; }
  .toasts { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .ftr { padding-bottom: 40px; }

  /* niente zoom automatico di iPhone sui campi */
  input, select, textarea { font-size: 16px !important; }

  /* spazi più compatti */
  .sec { padding: 56px 0; }
  .sec-head { margin-bottom: 26px; }
  .page-hero { padding: 26px 0 18px; }
  .panel { padding: 22px 18px; border-radius: 22px; }
  .hero { padding: 22px 0 20px; }
  .hero-tags { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .stage { height: 360px; margin-top: -6px; }
  .rings { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .chip-float { font-size: .7rem; padding: 7px 10px; }
  .cf2 { top: 0; }
  .cat { min-height: 150px; padding: 14px; }
  .band-b2b { border-radius: 24px; }

  /* cartellini della home: fila scorrevole invece del ventaglio */
  .tag-fan { height: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px; padding: 12px 22px 18px; scrollbar-width: none; }
  .tag-fan::-webkit-scrollbar { display: none; }
  .tag-fan .ltag { position: relative; inset: auto; flex: 0 0 82%; transform: none !important; scroll-snap-align: center; }
@media (hover: hover) and (pointer: fine) { .tag-fan:hover .ltag { position: relative; inset: auto; flex: 0 0 82%; transform: none !important; scroll-snap-align: center; } }

  /* filtri non fissi, così lasciano spazio ai prodotti */
  .toolbar { position: static; padding: 0; background: none; }
  .mini-search { max-width: none; flex-basis: 100%; order: 3; }
  .toolbar-row .select { order: 2; }
  .result-count { margin-left: 0; }

  /* card prodotto più compatte */
  .pcard-body { padding: 8px 10px 12px; }
  .pcard-name { font-size: .86rem; }
  .price { font-size: 1rem; }
  .pcard .fav { width: 34px; height: 34px; }
  .flag { font-size: .6rem; padding: 3px 6px; }

  /* scheda prodotto: pulsante grande su una riga sola */
  .pdp { gap: 20px; }
  .pdp-media { border-radius: 22px; }
  .buy-row .btn-primary { flex: 1 1 100%; order: -1; }
  .buy-row .qty { flex: 1; justify-content: space-between; }
  .spec-table td:first-child { width: 36%; }

  /* checkout: riepilogo prima del modulo */
  .co-sum { position: static; order: -1; }
  .co-step h2 { font-size: 1.1rem; }

  /* menu laterale a tutta larghezza */
  .mnav-panel { width: 100vw; }
  .drawer-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}


/* ============================================================
   LOTTI B2B come card prodotto
   ============================================================ */
.band-grid:has(> .lot-row) { grid-template-columns: 1fr; }
@media (min-width: 900px) { .band-grid:has(> .lot-row) .facts { grid-template-columns: repeat(4, 1fr); } }
.lot-row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 719px) {
  .lot-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px; padding: 4px 22px 14px; scrollbar-width: none; }
  .lot-row::-webkit-scrollbar { display: none; }
  .lot-row > .pcard { flex: 0 0 72%; scroll-snap-align: center; }
}
.lcard .pcard-media { aspect-ratio: 1 / .9; }
.lcard .pcard-art { inset: 16% 10% 18%; }
.lot-art { inset: 18% 10%; }
.flag.lotno { font-family: var(--f-mono); letter-spacing: .04em; color: var(--accent-2); border-color: rgba(138, 216, 255, .4); }
.flag.grade { background: rgba(56, 182, 255, .14); border-color: rgba(56, 182, 255, .45); color: #0A5F96; }
.lot-qty {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 8px;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 700; background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2);
  transition: opacity .3s;
}
.pcard:focus-within .lot-qty { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .pcard:hover .lot-qty { opacity: 0; } }
.quick > a { min-height: 40px; border-radius: 12px; font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; transition: transform .25s; }
@media (hover: hover) and (pointer: fine) { .quick > a:hover { transform: translateY(-2px); } }
.quick .q-add.in { background: var(--ok); color: #04210f; }

/* lotto venduto: immagine spenta e timbro */
.lcard.sold .pcard-art, .lot-sold .pdp-art { filter: grayscale(1) brightness(.55); }
.lcard .stamp, .lot-sold .stamp { mix-blend-mode: normal; color: #ff4a3d; border-color: #ff4a3d; background: rgba(255, 255, 255, .45); font-size: 1.35rem; text-shadow: 0 0 18px rgba(14, 127, 199, .6); box-shadow: 0 0 24px rgba(14, 127, 199, .35); }
.lot-sold .stamp { font-size: 2.4rem; }
.lcard.sold.in .stamp, .lot-sold .stamp { animation: thump .6s var(--ease-back) both; animation-delay: .3s; }
.lcard.sold .price { color: var(--dim); }
@media (max-width: 719px) {
  .cat .cat-art { width: auto; height: 78px; max-width: none; }
  .cat .cat-art svg, .cat .cat-art img { height: 100%; width: auto; }
  .cat h3, .cat p { position: relative; z-index: 1; }
}

/* ============================================================
   FOTO PRODOTTO
   ============================================================ */
.ph { display: block; width: 100%; height: 100%; }
.ph-cover { object-fit: cover; }
.ph-contain { object-fit: contain; filter: drop-shadow(0 22px 26px rgba(15, 50, 80, .22)); }
.flag.photo { color: var(--muted); font-weight: 700; text-transform: none; letter-spacing: 0; }
.pcard.is-photo .pcard-art, .pdp-media.is-photo .pdp-art { inset: 0; }
.pcard.is-photo .pcard-art::after, .pdp-media.is-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 8, 6, .35) 0%, transparent 28%, transparent 70%, rgba(11, 8, 6, .35) 100%); }
.pdp-media.is-photo::after { z-index: 1; }
.pcard.is-photo .pcard-media::after { display: none; }
.pcard-flags, .fav, .quick, .lot-qty { z-index: 3; }
.pdp-media .pcard-flags { position: absolute; z-index: 2; top: 14px; left: 14px; }
.qv-media.is-photo { padding: 0; overflow: hidden; }
.qv-media img { border-radius: inherit; }
.line-item .li-art { overflow: hidden; }
.line-item .li-art img.ph-cover { border-radius: 10px; }
.suggest .s-ico img { width: 100%; height: 100%; object-fit: cover; }
.fly img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 0 30px rgba(var(--accent-rgb), .9); }
.cat .cat-art img { width: 100%; height: auto; }

/* telefoni veri nella home (foto scontornate) */

/* ============================================================
   PANNELLO ADMIN — stesso stile del sito, pensato per l'uso quotidiano
   ============================================================ */
body.adm { padding-bottom: 60px; }
.adm-hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.adm-hdr-in { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.adm-badge { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.adm-state { font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.adm-state.ok { color: #0d7a4a; background: rgba(61, 220, 151, .1); }
.adm-state.dirty { color: #0A5F96; background: rgba(56, 182, 255, .14); animation: admPulse 2.4s ease-in-out infinite; }
@keyframes admPulse { 50% { box-shadow: 0 0 0 6px rgba(56, 182, 255, .08); } }
.adm-hdr-act { margin-left: auto; display: flex; gap: 8px; }
.adm-tabs { display: flex; gap: 6px; padding-top: 18px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; font-weight: 800; font-size: .9rem; color: var(--muted); border: 1px solid transparent; transition: all .25s; }
.adm-tabs button svg { width: 18px; height: 18px; }
.adm-tabs button b { font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: rgba(15, 50, 80, .08); }
@media (hover: hover) and (pointer: fine) { .adm-tabs button:hover { color: var(--text); background: rgba(15, 50, 80, .04); } }
.adm-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: rgba(56, 182, 255, .45); box-shadow: 0 10px 30px -18px rgba(56, 182, 255, .9); }
.adm-tabs button[aria-selected="true"] svg { color: var(--accent-2); }
.adm-main { padding-top: 20px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.adm-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 6px; }
.adm-head p { margin: 0; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.adm-stat { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.adm-stat b { display: block; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.adm-stat span { font-size: .8rem; color: var(--muted); }
.adm-stat.warn { border-color: rgba(138, 216, 255, .4); border-style: dashed; }
.adm-stat.warn b { color: #0A5F96; }
.adm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.adm-list { display: grid; gap: 8px; }
.adm-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, opacity .3s; animation: itemIn .4s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .adm-row:hover { border-color: rgba(56, 182, 255, .4); } }
.adm-row.off { opacity: .55; }
.adm-row.sold .adm-thumb { filter: grayscale(1) brightness(.6); }
.adm-thumb { width: 64px; height: 64px; border-radius: 14px; background: radial-gradient(80% 60% at 50% 100%, rgba(56, 182, 255, .25), transparent 70%), var(--surface-2); display: grid; place-items: center; padding: 6px; overflow: hidden; }
.adm-thumb.photo { padding: 0; }
.adm-thumb svg { width: 100%; height: 100%; }
.adm-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-info b { font-size: .96rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-info span { font-size: .8rem; color: var(--muted); }
.adm-lotno { font-family: var(--f-mono); color: var(--accent-2); margin-right: 4px; }
.adm-price { font-family: var(--f-display); font-weight: 700; font-size: .98rem; text-align: right; white-space: nowrap; }
.adm-price s { display: block; font-family: var(--f-body); font-size: .74rem; font-weight: 600; color: var(--dim); }
.adm-act { display: flex; gap: 2px; }
.adm-act .icon-btn { width: 40px; height: 40px; }
.adm-act .icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .icon-btn.danger:hover, .btn.danger:hover { color: #c62d1f; } }
/* interruttore */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: rgba(15, 50, 80, .12); transition: background .3s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-back); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch input:checked + i { background: linear-gradient(135deg, var(--orange-2), var(--orange)); box-shadow: 0 0 14px rgba(56, 182, 255, .5); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--orange-2); outline-offset: 3px; }
.switch span { min-width: 64px; }
.switch.big { align-items: flex-start; font-size: .95rem; color: var(--text); }
.switch.big span { min-width: 0; }
/* selettore In vendita / Venduto */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(15, 50, 80, .05); border: 1px solid var(--line); }
.seg button { padding: 7px 10px; border-radius: 9px; font-size: .76rem; font-weight: 800; color: var(--muted); transition: all .25s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--orange); color: #04202f; }
.seg button[aria-pressed="true"]:last-child { background: #ff4a3d; color: #fff; }
/* editor */
.adm-editor .drawer-panel { width: min(620px, 100vw); }
.adm-ed-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.field small { font-size: .76rem; }
.adm-colors { display: grid; gap: 8px; margin-bottom: 8px; }
.adm-color { display: grid; grid-template-columns: 50px 1fr auto 40px; gap: 8px; align-items: center; }
.adm-color-photo.on { border-color: var(--ok); color: var(--ok); }
.adm-variants { display: grid; gap: 8px; margin-bottom: 8px; }
.adm-variant { display: grid; grid-template-columns: .8fr 1.7fr .8fr .8fr auto 40px; gap: 6px; align-items: center; }
.adm-variant .check { white-space: nowrap; font-size: .8rem; }
.adm-variant input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border-radius: 12px; background: rgba(15, 50, 80, .035); border: 1px solid var(--line-2); outline: 0; }
@media (max-width: 720px) {
  .adm-variant { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
}
.adm-color input[type="color"] { width: 50px; height: 46px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 50, 80, .035); cursor: pointer; }
.adm-color input[type="text"] { min-height: 46px; padding: 10px 14px; border-radius: 12px; background: rgba(15, 50, 80, .035); border: 1px solid var(--line-2); outline: 0; }
.adm-photo { position: relative; aspect-ratio: 4 / 3; max-height: 260px; border-radius: 16px; border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, rgba(56, 182, 255, .2), transparent 70%), var(--surface-2); padding: 14px; }
.adm-photo.photo { padding: 0; border-style: solid; }
.adm-photo .flag { position: absolute; top: 10px; left: 10px; }
.adm-photo-btns { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.adm-more summary { cursor: pointer; font-weight: 800; color: var(--muted); font-size: .9rem; }
/* pubblica e guida */
.adm-pub { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 900px) { .adm-pub { grid-template-columns: repeat(3, 1fr); } }
.adm-step { display: flex; gap: 16px; align-items: flex-start; }
.adm-step > i { font-style: normal; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #04202f; box-shadow: 0 0 20px rgba(56, 182, 255, .45); }
.adm-step h3 { margin-bottom: 6px; }
.adm-step code, .adm-guide code { font-family: var(--f-mono); font-size: .85em; color: var(--accent-2); }
.adm-opts { display: grid; gap: 18px; }
.adm-opt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-guide { display: grid; gap: 12px; }
@media (min-width: 720px) { .adm-guide { grid-template-columns: repeat(2, 1fr); } }
.adm-guide .panel { padding: 22px; }
.adm-gn { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: transparent; -webkit-text-stroke: 1px rgba(56, 182, 255, .8); display: block; margin-bottom: 8px; }
.adm-guide h3 { margin-bottom: 6px; }
.adm-guide p { margin: 0; }
@media (max-width: 719px) {
  body.adm { padding-bottom: 30px; }
  .adm-hdr-act .btn-ghost { display: none; }
  .adm-badge { display: none; }
  .adm-state { order: 3; width: 100%; text-align: center; }
  .adm-head .btn { width: 100%; }
  .adm-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "t i p" "s s a"; gap: 10px 12px; }
  .adm-thumb { grid-area: t; width: 56px; height: 56px; }
  .adm-info { grid-area: i; }
  .adm-info b { white-space: normal; }
  .adm-price { grid-area: p; }
  .adm-row > .switch, .adm-row > .seg { grid-area: s; justify-self: start; }
  .adm-act { grid-area: a; }
  .adm-ed-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* rifiniture: telefoni veri inclinati anche senza animazione, statistiche admin compatte su telefono */
.f2 .bob, .f3 .bob { --r: 0deg; }
.f2 .real { transform: rotate(-11deg); }
.f3 .real { transform: rotate(11deg); }
@media (max-width: 719px) { .adm-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .adm-stat { padding: 10px 12px; } .adm-stat b { font-size: 1.2rem; } .adm-stat span { font-size: .72rem; } }

/* ============================================================
   V3 — TELEFONO: stabilità, tocco, foto reali
   (gli effetti :hover sono tutti dentro @media (hover: hover) and (pointer: fine))
   ============================================================ */

/* ---------- scorrimento orizzontale: cause corrette alla radice ---------- */
.ticker { margin: 10px 0; }                                   /* era -10px: usciva di 20px dallo schermo */
.ftr-grid > div { min-width: 0; }                             /* l'email lunga allargava la colonna */
.ftr ul a, .ccard b, .pcard-name, .li-t { overflow-wrap: anywhere; }
.mnav, .drawer, .sheet { overflow: hidden; }                  /* pannelli chiusi fuori schermo */
.lot-row, .tag-fan, .gal-track, .chips, .tabs { overscroll-behavior-x: contain; }
/* rete di sicurezza finale (clip non crea un contenitore di scorrimento: l'header resta fisso) */
html, body { overflow-x: clip; }

/* ---------- tocco: niente ritardo né zoom col doppio tocco ---------- */
html { touch-action: manipulation; }   /* niente zoom col doppio tocco in tutta la pagina; lo zoom con due dita resta */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }   /* iPhone non ingrandisce i campi */
a, button, label, summary, select, input[type="checkbox"], input[type="radio"], [data-zoom] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn { will-change: auto; }

/* ---------- foto prodotto: riquadro 4:5 uguale per tutti ---------- */
.pcard-media, .lcard .pcard-media {
  aspect-ratio: 4 / 5; isolation: isolate;
  background: radial-gradient(70% 38% at 50% 96%, rgba(var(--accent-rgb), .22), transparent 72%), radial-gradient(65% 50% at 50% 42%, #ffffff, transparent 78%), #f1f8fd;
}
.pcard-art, .lcard .pcard-art, .pcard.is-photo .pcard-art { position: absolute; inset: 0; z-index: 1; display: block; transition: none; }
.pcard-media::after, .pcard.is-photo .pcard-media::after { display: block; z-index: 0; filter: none; left: 20%; right: 20%; bottom: 6%; height: 6%; opacity: 1; background: radial-gradient(closest-side, rgba(15, 50, 80, .16), transparent); }
.pcard.is-photo .pcard-art::after { display: none; }
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
picture { display: contents; }
.ph-cut { object-fit: contain; padding: 9% 12% 13%; filter: drop-shadow(0 18px 16px rgba(15, 50, 80, .22)); }
.ph-back { opacity: 0; transition: opacity .35s ease; }
.pcard-media.flipped .ph-back { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .pcard:hover .has-back .ph-back { opacity: 1; } }
.ph-flip {
  position: absolute; z-index: 3; left: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2); color: var(--text);
}
.ph-flip svg { width: 20px; height: 20px; }
.ph-flip[aria-pressed="true"] { background: var(--accent); color: #04202f; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .ph-flip { display: none; } }

/* segnaposto finché non arriva la foto reale */
.ph-empty {
  position: absolute; inset: 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 1.5px dashed rgba(138, 216, 255, .3); border-radius: 14px; color: var(--muted); padding: 10px;
}
.ph-empty-ico { width: 34%; max-width: 54px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(56, 182, 255, .1); color: var(--accent-2); }
.ph-empty-ico svg { width: 56%; height: 56%; }
.ph-empty b { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: #0A5F96; }
.ph-empty small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.pcard .ph-empty { justify-content: flex-end; padding-bottom: 14%; }
.pcard .ph-empty b { font-size: .6rem; }
.pcard .ph-empty-ico { display: none; }
.pcard-flags { flex-direction: row; flex-wrap: wrap; right: 56px; }
.ph-empty.small { inset: 6%; border-radius: 10px; padding: 0; }
.ph-empty.small .ph-empty-ico { width: 70%; max-width: none; background: none; }
.line-item .li-art, .suggest .s-ico, .fly, .adm-thumb, .qv-media { position: relative; }
.line-item .li-art { padding: 0; overflow: hidden; background: #f1f8fd; }
.fly { border-radius: 16px; overflow: hidden; background: #f1f8fd; box-shadow: 0 0 30px rgba(var(--accent-rgb), .8); }
.qv-media, .qv-media.is-photo { aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: radial-gradient(70% 38% at 50% 96%, rgba(var(--accent-rgb), .25), transparent 72%), #f1f8fd; }
.flag.line { color: var(--text); background: rgba(255, 255, 255, .92); }
.flag.line-nuovo { border-color: rgba(61, 220, 151, .55); color: #0d7a4a; }
.flag.line-usato { border-color: rgba(138, 216, 255, .6); color: #0A5F96; }

/* ---------- galleria della scheda prodotto ---------- */
.pdp-media { aspect-ratio: auto; perspective: none; background: var(--surface); }
.pdp-art, .pdp-art.lot-art, .pdp-media.is-photo .pdp-art { position: relative; inset: auto; display: block; transform: none; transition: none; }
.gal { width: 100%; }
@media (min-width: 960px) { .gal { max-width: min(100%, calc((100svh - var(--hdr-h) - 130px) * .8)); margin: 0 auto; } }
.gal-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 30px 30px 0 0;
  background: radial-gradient(70% 38% at 50% 96%, rgba(var(--accent-rgb), .25), transparent 72%), radial-gradient(65% 50% at 50% 42%, #ffffff, transparent 78%), #f1f8fd;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 5; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.gal-slide[data-zoom] { cursor: zoom-in; }
.gal-slide::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 5%; background: radial-gradient(closest-side, rgba(15, 50, 80, .16), transparent); z-index: 0; }
.gal-slide .ph, .gal-slide .ph-empty { z-index: 1; }
.gal .ph-empty b { font-size: .86rem; }
.gal .ph-empty small { font-size: .82rem; }
.gal-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px; }
.gal-nav::-webkit-scrollbar { display: none; }
.gal-chip { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; font-weight: 700; color: var(--muted); }
.gal-chip[aria-current="true"] { color: #04202f; background: var(--accent); border-color: transparent; }
.opt-static { display: inline-flex; align-items: center; cursor: default; border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.color-opt[aria-pressed="true"] { transform: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }

/* foto a tutto schermo: lo zoom con due dita vale solo qui dentro */
.zoom { position: fixed; inset: 0; z-index: 150; background: #050302; display: grid; place-items: center; touch-action: none; overflow: hidden; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.zoom-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 48px; height: 48px; background: rgba(0, 0, 0, .6); border: 1px solid var(--line-2); }
.zoom-hint { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: .86rem; color: var(--muted); pointer-events: none; }

/* ---------- menu laterale: i due percorsi ben separati ---------- */
.mnav-path { margin-top: 14px; padding: 4px 14px; border-radius: 18px; border: 1px solid rgba(56, 182, 255, .3); background: linear-gradient(160deg, rgba(56, 182, 255, .1), transparent 65%); }
.mnav-path.b2b { border-color: rgba(14, 127, 199, .35); background: linear-gradient(160deg, rgba(14, 127, 199, .12), transparent 65%); }
.mnav-path .mnav-group { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 2px; font-family: var(--f-body); font-size: .84rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.mnav-path .mnav-group b { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--accent-2); }
.mnav-path.b2b .mnav-group b { color: #0A6FB0; }
.mnav-path a.mlink:last-child { border-bottom: 0; }
.mnav a.mlink { min-height: 50px; padding: 10px 2px; }
.mnav a.mlink.b2b-link { color: var(--text); }

/* ---------- pannelli che salgono dal basso (categorie, filtri) ---------- */
.sheet { position: fixed; inset: 0; z-index: 96; pointer-events: none; visibility: hidden; transition: visibility 0s .4s; }
.sheet.open { pointer-events: auto; visibility: visible; transition: none; }
body:has(.sheet-filters.open) main { z-index: 100; }   /* il pannello filtri sta dentro main: va sopra la barra in basso */
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; max-height: 86svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0; padding: 6px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.sheet-panel::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px auto 4px; }
.sheet.open .sheet-panel { transform: none; }
@media (min-width: 720px) { .sheet-panel { left: 50%; right: auto; width: 560px; margin-left: -280px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 6px; }
.sheet-head h2 { font-size: 1.2rem; margin: 0; }
.sheet-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); margin: 8px -16px 0; padding: 12px 16px 0; background: var(--bg-2); }
.cat-path { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 10px; font-size: 1.05rem; }
.cat-path b { color: var(--accent-2); }
.cat-path.b2b b { color: #0A6FB0; }
.cat-path span { font-family: var(--f-body); font-size: .84rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cat-tile .ct-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent-2); }
.cat-tile .ct-ico svg { width: 22px; height: 22px; }
.cat-tile b { font-size: .95rem; line-height: 1.2; }
.cat-tile small { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.cat-tiles.b2b .ct-ico { background: rgba(14, 127, 199, .12); color: #0A6FB0; }

/* filtri: in riga su computer, pannello dal basso su telefono */
.filters-btn { display: none; }
@media (min-width: 720px) {
  .sheet-filters, .sheet-filters .sheet-panel, .sheet-filters .f-row { display: contents; visibility: visible; pointer-events: auto; }
  .sheet-filters .sheet-bg, .sheet-filters .sheet-head, .sheet-filters .sheet-foot { display: none; }
  .sheet-filters .chips { flex: 1 1 60%; min-width: 0; }
}
@media (max-width: 719px) {
  .toolbar-row { gap: 8px; }
  .toolbar .tabs { flex: 1 1 100%; }
  .filters-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 800; font-size: .95rem; }
  .filters-btn svg { width: 18px; height: 18px; }
  .filters-btn b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #04202f; font-size: .74rem; display: grid; place-items: center; }
  .result-count { margin-left: auto; font-size: .95rem; }
  .sheet-filters .f-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 8px 0 12px; }
  .sheet-filters label:not(.mini-search) { display: block; }
  .sheet-filters .mini-search { display: flex; }
  .sheet-filters .mini-search, .sheet-filters .select { width: 100%; height: 52px; max-width: none; flex: none; order: 0; }
  .sheet-filters .chips { flex-wrap: wrap; overflow: visible; }
}

/* ---------- card: azioni sempre visibili al tocco ---------- */
.pcard-buy { display: none; }
@media (hover: none), (pointer: coarse) {
  .quick { display: none !important; }
  .pcard-buy { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; margin-top: 10px; position: relative; z-index: 2; }
  .pcard-buy > * { min-height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: .9rem; padding: 0 8px; white-space: nowrap; overflow: hidden; }
  .pcard-buy svg { width: 18px; height: 18px; flex: none; }
  .pb-view { border: 1px solid var(--line-2); background: rgba(15, 50, 80, .04); }
  .pb-add { background: var(--accent); color: #04202f; }
  .pb-add.in { background: var(--ok); color: #04210f; }
  .pcard-foot { padding-top: 6px; }

  /* nessuna card o immagine che si ingrandisce, si sposta o si inclina: solo un leggero riscontro alla pressione */
  .pcard, .cat, .step, a.ccard, .fact, .ltag { transition: transform .15s ease, border-color .2s; }
  /* riscontro al tocco senza cambiare misura: lo :active scatta anche quando il dito inizia a scorrere */
  .pcard:active, .cat:active:active, a.ccard:active { border-color: rgba(var(--accent-rgb), .45); }
  .pcard, .pcard-art, .pcard-art .ph, .pcard-media .ph-empty, .pcard-buy > *, .fav, .ph-flip { transform: none !important; }
  .btn:active { filter: brightness(.9); }
  .btn::after { display: none; }
  .fav, .icon-btn { transition: background .2s; }
}

/* ---------- telefono: animazioni continue ferme, sfocature ridotte ---------- */
@media (hover: none), (pointer: coarse), (max-width: 719px) {
  .stamp, .icon-btn.bump, .tabbar .bump, .badge.pop, .fav.burst { animation: none !important; }   /* timbro VENDUTO e icone: niente ingrandimenti */
  .hero h1 .line > span.hot { animation: rise 1s var(--ease) forwards !important; animation-delay: calc(var(--i) * 120ms + 150ms) !important; }
  .js [data-reveal], .js [data-reveal="left"], .js [data-reveal="scale"] { transform: none; transition: opacity .5s ease; transition-delay: 0s; }
  .js .pcard[data-reveal].in, .js .ltag[data-reveal].in { transition: opacity .5s ease, transform .15s ease; transition-delay: calc(var(--i, 0) * 40ms), 0s; }
  .fav, .quick .q-view, .chip-float, .drawer-bg, .modal-bg, .suggest { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- misure per il pollice (360–414 px) ---------- */
@media (max-width: 719px) {
  :root { --tab-h: calc(62px + env(safe-area-inset-bottom)); }
  .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
  .tabbar a, .tabbar button { font-size: .7rem; }
  .tabbar a:active, .tabbar button:active { transform: none; background: rgba(15, 50, 80, .07); }

  /* header: logo, scelta Privati/B2B, ricerca, carrello, menu */
  .hdr-inner { gap: 6px; }
  .hdr-actions { gap: 0; }
  .hdr-actions .icon-btn[data-open-search], .hdr-actions .icon-btn#cartBtn { display: grid; }
  .icon-btn { width: 44px; height: 44px; }
  .mnav-panel { width: min(400px, 88vw); }

  /* testo leggibile e aree da toccare di almeno 44 px */
  .small, .muted, .notice, .perk, .faq-a, .step p, .cat p, .spec-table, .li-t, .totals, .toast, .lead p, .checks li, .ccard b { font-size: 1rem; }
  .pcard-name { font-size: 1rem; }
  .pcard-meta { font-size: .9rem; }
  .price-note, .pcard-brand { font-size: .8rem; }
  .flag { font-size: .66rem; padding: 4px 7px; }
  .pcard-body { padding: 10px 10px 12px; }
  .pcard .fav { width: 44px; height: 44px; top: 4px; right: 4px; }
  .chip, .tabs button, .search-hints button li { min-height: 44px; display: inline-flex; align-items: center; }
  .chip { font-size: .9rem; }
  .tabs button { font-size: .9rem; }
  .demo-strip button { width: 44px; height: 44px; right: 0; }
  .demo-strip { padding-right: 48px; }
  .li-qty button { width: 44px; height: 40px; }
  .li-del { min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center; }
  .ftr ul { gap: 0; }
  .ftr ul a { display: inline-block; padding: 11px 0; }
  .faq summary { min-height: 56px; }
  .opts { gap: 10px; }
  .opt { min-height: 50px; padding: 0 18px; font-size: 1rem; }
  .color-opt { width: 50px; height: 50px; }
  .opt-label { font-size: 1rem; }
  .qty { height: 52px; }
  .qty button { width: 52px; }
  .rcard { padding: 18px; min-height: 64px; }
  .rcard b, .rcard .pay-logo { font-size: 1.2rem; }
  .field input, .field select, .field textarea { min-height: 52px; }

  /* lotto: tabella dei dati a schede impilate */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: auto; }
  .spec-table tbody { display: grid; gap: 8px; }
  .spec-table tr { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .spec-table td { padding: 0; border: 0; }
  .spec-table td:first-child { width: auto; padding: 0 0 2px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

  /* carosello dei lotti: scorrimento nativo col dito */
  .lot-row { -webkit-overflow-scrolling: touch; }
  .lot-row > .pcard { flex-basis: 78%; }

  /* WhatsApp sopra la barra in basso, piccolo, senza coprire il carrello */
  .wa-float { right: 12px; bottom: calc(var(--tab-h) + 12px); height: 48px; min-width: 48px; padding: 0 12px; }
  .toasts { bottom: calc(var(--tab-h) + 72px); }
}

/* ---------- barra fissa "Aggiungi al carrello" nella scheda prodotto ---------- */
.buybar { display: none; }
@media (max-width: 959px) {
  .buybar {
    display: flex; position: fixed; z-index: 69; left: 0; right: 0; bottom: 0; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .buybar.show { transform: none; }
  .bb-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .bb-info b { font-family: var(--f-display); font-size: 1.1rem; }
  .bb-info span { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { flex: 1; min-height: 50px; padding: 0 14px; }
  body:has(.buybar.show) .wa-float { transform: translateY(-72px); }
}
@media (max-width: 719px) {
  .buybar { bottom: var(--tab-h); padding-bottom: 10px; }
  body.has-buybar { padding-bottom: calc(var(--tab-h) + 72px); }
  body:has(.buybar.show) .toasts { bottom: calc(var(--tab-h) + 140px); }
}

@media (prefers-reduced-motion: reduce) {
  .gal-track { scroll-behavior: auto; }
}

/* aree da toccare di almeno 44 px su ogni schermo touch (anche tablet) */
@media (pointer: coarse) {
  .logo { min-height: 44px; min-width: 44px; }
  .chip, .tabs button, .search-hints button, .adm-tabs button { min-height: 44px; }
  .fav, .pcard .fav { width: 44px; height: 44px; }
  .demo-strip button { width: 44px; height: 44px; right: 0; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .search-box input, .mini-search input { align-self: stretch; }
  .link-arrow { padding-block: 10px; }
}

/* pannello admin da /admin: pulsante Esci e pubblicazione diretta */
.adm-logout { display: contents; }
.adm-hdr-act .adm-logout .btn-ghost { display: inline-flex; }
.adm-step i svg { width: 18px; height: 18px; }
.adm-live { border-color: rgba(56, 182, 255, .45); }

/* ============================================================
   iPhone/Safari: niente deve cambiare misura quando la barra del browser compare o scompare
   ============================================================ */
/* livelli fissi a tutto schermo: altezza stabile (svh), non legata alla barra di Safari */
@media (hover: none), (pointer: coarse), (max-width: 1023px) {
  /* alone: non più fisso allo schermo, scorre con la pagina e ha un'altezza fissa in px */
  .ticker { transform: none; }
  .ticker-track { animation: none !important; transform: none !important; }
  .hdr-progress { display: none; }                   /* barra di avanzamento legata allo scroll */
  /* comparsa allo scroll: solo opacità, una volta sola, niente scale né spostamenti */
  .js [data-reveal], .js [data-reveal="left"], .js [data-reveal="scale"] { transform: none !important; transition: opacity .5s ease; transition-delay: 0s; }
  .js .pcard[data-reveal].in, .js .ltag[data-reveal].in { transition: opacity .5s ease; transition-delay: 0s; }
  .hero h1 .line > span, .hero h1 .line > span.hot { transform: none !important; animation: fadeIn .8s ease both !important; animation-delay: calc(var(--i) * 120ms + 100ms) !important; }
  .step::after { transform: scaleX(1); transition: none; }
  .pcard, .pcard-media, .pcard-art, .pcard-art .ph, .lcard, .cat, .gal-slide .ph { transform: none !important; animation: none !important; }
  .f2 .real { transform: rotate(-11deg); }
  .f3 .real { transform: rotate(11deg); }
}
@keyframes fadeIn { from { opacity: 0; } }

/* logo orizzontale: sui telefoni ricerca e carrello restano nella barra in basso */
@media (max-width: 479px) {
  .hdr-actions .icon-btn[data-open-search], .hdr-actions .icon-btn#cartBtn { display: none; }
}

/* ---------- testata: logo grande; sotto la barra Vendi / ricerca / Ripara ---------- */
.mast { background: var(--bg); display: flex; justify-content: center; padding: 26px 16px; }
.mast-logo { width: min(900px, 100%); }
.mast-logo .logo-mark { height: auto; width: 100%; }
.mast-logo { max-width: 100%; }
.hdr { height: auto; }
/* tre colonne: le due laterali larghe uguali, così Ripara / ricerca / Vendi restano al centro sotto il logo */
.hdr-inner { --hdr-side: 160px; max-width: 1560px; display: grid; grid-template-columns: var(--hdr-side) minmax(0, 1fr) var(--hdr-side); align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.hdr-main { grid-column: 2; justify-self: center; width: 100%; max-width: 860px; display: grid; grid-template-columns: minmax(96px, 160px) minmax(0, 1fr) minmax(96px, 160px); align-items: center; gap: 12px; }
.hdr-main .hdr-cta { width: 100%; max-width: none; }
.hdr-inner .search { width: 100%; max-width: none; }
.hdr-inner .search-box { height: 48px; padding: 0 20px; }
.hdr-side-r { grid-column: 3; justify-self: end; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.hdr-side-r .hdr-actions { justify-content: space-between; gap: 2px; }
.hdr-cta { min-height: 48px; padding: 0 16px; font-size: .9rem; line-height: 1.15; white-space: normal; text-align: center; }
.hdr-sort .select { height: 34px; width: 100%; padding: 0 28px 0 12px; background-position: right 9px center; font-size: .78rem; }
@media (max-width: 1099px) { .hdr-inner { --hdr-side: 140px; } }
.page-hero h1.stock-title { margin: 0; font: 700 .76rem/1.4 var(--f-mono); letter-spacing: .14em; }
.contact-big h2 { font-size: clamp(2.6rem, 8vw, 6rem); }
.contact-big .contact-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.home-products { padding-top: 28px; }
.home-all { margin: 22px 0 0; text-align: center; }
.zoom-close { color: #fff; }
.zoom-hint { color: #fff; }

@media (max-width: 719px) {
  .mast { padding: 16px 12px; }
  .hdr-inner { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hdr-main { grid-column: 1; grid-template-columns: 92px minmax(0, 1fr) 92px; gap: 6px; }
  .hdr-inner .search-box { height: 46px; padding: 0 14px; }
  .hdr-inner .search-box input { font-size: 1rem; }
  .hdr-cta { min-height: 46px; padding: 0 8px; font-size: .72rem; }
  .hdr-side-r { display: none; }
  .hdr-inner .suggest { left: -98px; right: -98px; }
}
.toast svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 720px) { .sheet-filters .sheet-panel::before { display: none; } }

/* ---------- consigliati nel carrello e nel riepilogo ---------- */
.reco { margin-bottom: 14px; }
.reco-t { margin: 0 0 8px; font-weight: 800; font-size: .86rem; }
.reco-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.reco-item { flex: 0 0 214px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); }
.reco-art { position: relative; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.reco-art .ph { width: 100%; height: 100%; object-fit: cover; }
.reco-name { display: block; font-size: .8rem; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reco-price { font-size: .78rem; color: var(--muted); }
.reco-add { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #04202f; }
.reco-add svg { width: 18px; height: 18px; }
.co-sum .reco { margin: 18px 0 0; }
.co-sum .reco-row { flex-direction: column; overflow: visible; }
.co-sum .reco-item { flex: none; }
.acc-logo .logo-mark { height: auto; width: 100%; }
.reco-art .ph-empty { padding: 0; border: 0; }
.reco-art .ph-empty-ico { width: 28px; height: 28px; }
.reco-art .ph-empty-ico svg { width: 16px; height: 16px; }

/* ---------- proposta sul lotto ---------- */
.lot-offer { display: block; width: 100%; min-height: 40px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 700; font-size: .84rem; color: var(--accent-2); }
@media (hover: hover) and (pointer: fine) { .lot-offer:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); } }

/* ---------- recensioni ---------- */
.rev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.rev-score { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rev-score b { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.stars { color: #e8a200; letter-spacing: .08em; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 22px; }
.rev-card { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rev-card blockquote { margin: 10px 0 12px; }
.rev-card figcaption { font-size: .86rem; color: var(--muted); }
.adm-rev { display: grid; grid-template-columns: 1.2fr 80px 1fr 40px; gap: 8px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.adm-rev textarea { grid-column: 1 / -1; }
.adm-rev input, .adm-rev textarea, .adm-rev-top input { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; background: rgba(15, 50, 80, .035); border: 1px solid var(--line-2); outline: 0; }
.adm-rev-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-rev-list { display: grid; gap: 10px; margin-bottom: 14px; }
.adm-qty { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; color: var(--muted); }
.adm-qty input { width: 92px; min-height: 40px; padding: 6px 10px; border-radius: 10px; background: rgba(15, 50, 80, .035); border: 1px solid var(--line-2); font-size: .95rem; font-weight: 700; color: var(--text); }
@media (min-width: 960px) { .adm-row-lot { grid-template-columns: 64px minmax(0, 1fr) auto auto auto auto; } }

/* ---------- quantità disponibile (negozio privati) ---------- */
.stock-left { margin: 12px 0 0; font-size: .88rem; font-weight: 700; color: var(--accent-2); }
.stock-left:empty { display: none; }
.adm-qty-note { font-size: .95rem; font-weight: 700; color: var(--text); min-height: 40px; display: flex; align-items: center; }
.adm-variant { grid-template-columns: .75fr 1.4fr .75fr .75fr .6fr auto 40px; }
@media (max-width: 720px) { .adm-variant { grid-template-columns: 1fr 1fr; } }

/* ---------- box delle inserzioni azzurrini (prodotti e lotti) ---------- */
.pcard { background: #e3f4fe; border-color: rgba(56, 182, 255, .35); }
.pcard .price-note, .pcard .price-old { color: var(--muted); }

/* varianti nel pannello: memoria e colore sopra, prezzi e pezzi sotto */
.adm-variant, .adm-variant:nth-child(n) { grid-template-columns: repeat(8, minmax(0, 1fr)); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.adm-variant > [data-v="memoria"] { grid-column: span 3; }
.adm-variant > [data-v="colore"] { grid-column: span 4; }
.adm-variant > [data-rmvariant] { grid-column: 8; grid-row: 1; justify-self: end; }
.adm-variant > [data-v="prezzo"], .adm-variant > [data-v="prezzoBarrato"], .adm-variant > [data-v="quantita"], .adm-variant > .check { grid-column: span 2; }
.adm-variant > .check { gap: 6px; font-size: .78rem; }

/* ---------- stato del salvataggio automatico ---------- */
.adm-state.err { color: #b3261e; background: rgba(255, 90, 74, .1); }
.adm-retry { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: #b3261e; color: #fff; font-weight: 800; font-size: .76rem; }
/* sopra il link che copre tutta la card */
.lot-offer { position: relative; z-index: 3; }
/* i pulsanti sulla foto stanno sopra il link della card; il resto della foto continua ad aprire la scheda */
.pcard-media { z-index: 2; pointer-events: none; }
.pcard-media .fav, .pcard-media .ph-flip, .pcard-media .quick, .pcard-media .quick * { pointer-events: auto; }
