/* =========================================================
   Salpie · demo di restyling (The Francy)
   Design system: chiaro, blu Salpie, Inter, raggi ampi,
   vetro sfocato solo su header e barra statistiche.
   ========================================================= */

:root {
  /* Colori (dal brief) */
  --white: #ffffff;
  --ice-1: #f2f7ff;
  --ice-2: #e3eefc;
  --blue: #1456c4;
  --navy: #0a2559;
  --ink: #071327;
  --electric: #2f7bff;
  --red: #d42f29;          /* #e5352f scurito per contrasto AA con testo bianco */
  --green: #12805c;
  --muted: #4a5874;        /* testo secondario, 7:1 su bianco */
  --line: #dbe5f3;
  --line-strong: #c4d3ea;

  /* Tipografia */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Forme */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 1px 2px rgba(7, 19, 39, .06), 0 4px 14px rgba(7, 19, 39, .05);
  --shadow-md: 0 2px 6px rgba(7, 19, 39, .05), 0 18px 40px -12px rgba(10, 37, 89, .18);
  --shadow-lg: 0 30px 80px -24px rgba(10, 37, 89, .35);

  /* Spaziature */
  --gutter: 40px;
  --container: 1240px;
  --section: 120px;

  /* Movimento */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms;
  --t-med: 320ms;

  --header-h: 76px;
}

@media (max-width: 1100px) { :root { --gutter: 32px; --section: 96px; } }
@media (max-width: 640px)  { :root { --gutter: 16px; --section: 72px; --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--blue); border-radius: 2px; }
.eyebrow--light { color: #a9c6ff; }
.eyebrow--light::before { background: #a9c6ff; }

.display { font-size: clamp(42px, 5.2vw, 76px); font-weight: 900; line-height: .98; letter-spacing: -.045em; }
.h2 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 850; line-height: 1.02; letter-spacing: -.04em; }
.h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); line-height: 1.6; }
.grad {
  background: linear-gradient(95deg, var(--blue) 10%, var(--electric) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head .h2 { margin-top: 14px; }
.section-head p { max-width: 440px; }
@media (max-width: 760px) { .section-head { flex-wrap: wrap; align-items: start; margin-bottom: 32px; } }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), box-shadow var(--t-med) var(--ease), color var(--t-fast);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(20, 86, 196, .7); }
.btn--primary:hover { background: #0f49a9; box-shadow: 0 16px 30px -12px rgba(20, 86, 196, .8); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--ice-1); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .i { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  transition: background-color var(--t-fast);
}
.icon-btn:hover { background: var(--ice-2); }

/* ---------- Barra utility ---------- */
.utility { background: var(--ink); color: #c9d6ee; font-size: 13px; }
.utility .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.utility a { color: #fff; font-weight: 600; }
.utility a:hover { text-decoration: underline; }
@media (max-width: 640px) { .utility__right { display: none; } .utility .container { justify-content: center; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(196, 211, 234, .6);
  transition: box-shadow var(--t-med);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10, 37, 89, .35); }
.header__row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; min-height: 48px; flex: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #2a3854;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a:hover { color: var(--blue); background: var(--ice-1); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue); }

.search {
  position: relative; flex: 1; max-width: 340px; margin-left: auto;
}
.search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--line);
  background: rgba(242, 247, 255, .9); padding: 0 18px 0 46px; font-size: 15px;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.search input::placeholder { color: #5b6982; }
.search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 123, 255, .18); }
.search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-login { min-height: 46px; padding: 0 18px; }
.btn-cart { position: relative; min-height: 46px; padding: 0 18px 0 16px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--electric); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center;
}
.cart-count.bump { animation: bump 420ms var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.burger { display: none; }

.mobile-panel { display: none; }

@media (max-width: 1100px) {
  .nav, .header .search { display: none; }
  .burger { display: inline-grid; }
  .header__actions { margin-left: auto; }
  .mobile-panel {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(10, 37, 89, .4);
    padding: 16px var(--gutter) 24px;
  }
  .mobile-panel[hidden] { display: none; }
  .mobile-panel .search { display: block; max-width: none; margin: 0 0 12px; }
  .mobile-panel nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--ice-2); }
  .mobile-panel nav a[aria-current="page"] { color: var(--blue); }
}
@media (max-width: 640px) {
  .logo img { height: 38px; }
  .header__row { gap: 12px; }
  .header__actions { gap: 6px; }
  .btn-login .label, .btn-cart .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-login, .btn-cart { padding: 0; width: 46px; }
  .btn-cart .cart-count { position: absolute; top: -4px; right: -4px; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 760px;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(227, 238, 252, .9), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--ice-1) 100%);
}
.hero__media {
  position: absolute; z-index: -1;
  top: 3%; height: min(84%, 680px);
  /* ancorata a destra, oltre il bordo: la flip key resta a destra del testo */
  left: max(510px, calc(50% + 10px));
  aspect-ratio: 1132 / 724;
}
.hero__media img {
  height: 100%; width: 100%; object-fit: cover;
  /* sfumature su tutti i lati per nascondere i bordi della foto */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
/* sfumatura bianca che fonde la foto con il testo */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.85) calc(max(510px, 50% + 10px) - 120px), rgba(255,255,255,0) calc(max(510px, 50% + 10px) + 10px));
}
.hero__inner { position: relative; padding-top: 108px; padding-bottom: 210px; }
.hero__copy { max-width: 620px; }
.hero__copy .display .grad { white-space: nowrap; }
.hero__copy .display { margin: 22px 0 26px; }
.hero__copy .lead { max-width: 500px; color: #3b4964; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stats {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2;
}
.stats__bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.stat { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.stat + .stat { border-left: 1px solid rgba(196, 211, 234, .7); }
.stat__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--ice-2); color: var(--blue); display: grid; place-items: center; }
.stat strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.stat span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

@media (max-width: 1100px) {
  .hero__copy { max-width: 470px; }
  .stats__bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(196, 211, 234, .7); }
  .hero__inner { padding-bottom: 260px; }
  /* tablet orizzontale: foto più piccola così chiave e radiocomando restano entrambi visibili */
  .hero__media { height: 470px; top: 140px; }
}
/* Tablet / mobile: foto sopra, testo sotto */
@media (max-width: 900px) {
  .hero { min-height: 0; background: linear-gradient(180deg, #fff 0, var(--ice-1) 100%); }
  .hero::before { display: none; }
  .hero__media { position: relative; z-index: 0; inset: auto; left: auto; top: auto; height: auto; width: 100%; aspect-ratio: 4 / 3; max-height: 460px; }
  .hero__media img { object-position: 0% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 100%); }
  .hero__inner { padding-top: 0; padding-bottom: 56px; margin-top: -24px; }
  .hero__copy { max-width: 620px; }
  .stats { position: static; margin-top: 40px; }
  .stats .container { padding: 0; }
}
@media (max-width: 640px) {
  .stats__bar { grid-template-columns: 1fr; }
  .stat { padding: 18px 20px; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(196, 211, 234, .7); }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- Marquee marchi ---------- */
.brands { background: var(--ink); color: #fff; overflow: hidden; padding: 30px 0; }
.brands__label { color: #9fb2d4; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-bottom: 14px; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; padding: 0 34px; color: #dbe6fb; display: flex; align-items: center; gap: 68px; white-space: nowrap; }
.marquee li::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); margin-right: -34px; }
.brands:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tile foto prodotto ---------- */
.tile {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #fff 0%, var(--ice-1) 55%, var(--ice-2) 100%);
}
.tile img {
  mix-blend-mode: multiply; max-width: min(100%, 400px); width: 78%; height: auto; aspect-ratio: 1;
  object-fit: contain; transition: transform 600ms var(--ease);
}

/* ---------- Bento categorie ---------- */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 20px; }
.bcard {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #fff 0%, var(--ice-1) 60%, var(--ice-2) 100%);
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bcard--big { grid-row: span 2; }
.bcard__text { position: relative; z-index: 1; max-width: 58%; }
.bcard--big .bcard__text { max-width: 360px; }
.bcard__count { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
.bcard h3 { font-size: 26px; font-weight: 850; letter-spacing: -.03em; line-height: 1.08; margin-top: 8px; }
.bcard--big h3 { font-size: clamp(32px, 3.2vw, 44px); }
.bcard p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.bcard__img { position: absolute; right: -6px; bottom: -6px; width: 44%; height: auto; aspect-ratio: 1; mix-blend-mode: multiply; transition: transform 700ms var(--ease); }
.bcard--big .bcard__img { width: 84%; right: -4%; bottom: -6%; }
.bcard:hover .bcard__img { transform: scale(1.05) rotate(-1deg); }
.arrow-circle {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease), box-shadow var(--t-fast);
}
.bcard:hover .arrow-circle { background: var(--blue); color: #fff; box-shadow: none; transform: rotate(45deg); }
.bcard--dark { background: radial-gradient(120% 120% at 100% 100%, #123a85 0%, var(--navy) 45%, var(--ink) 100%); border-color: transparent; color: #fff; }
.bcard--dark p { color: #b9c9e6; }
.bcard--dark .bcard__count { color: #a9c6ff; }
.bcard--dark .bcard__img { mix-blend-mode: normal; background: #fff; border-radius: 22px; width: 36%; right: 24px; bottom: 24px; padding: 6px; box-shadow: var(--shadow-lg); transform: rotate(4deg); }
.bcard--dark:hover .bcard__img { transform: rotate(0) scale(1.03); }
.bcard--dark .arrow-circle { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.bcard--dark:hover .arrow-circle { background: var(--electric); }

@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bcard { min-height: 280px; }
  .bcard--big { grid-column: span 2; grid-row: auto; min-height: 400px; }
  .bcard--big .bcard__img { width: 50%; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bcard--big { grid-column: auto; min-height: 380px; }
  .bcard--big { min-height: 0; justify-content: flex-start; gap: 18px; }
  .bcard--big .bcard__img { position: relative; right: auto; bottom: auto; width: 74%; margin: 0 -8% -14% auto; }
  .bcard--dark .bcard__img { width: 32%; right: 18px; bottom: 18px; }
  .bcard { min-height: 240px; padding: 24px; }
  .bcard__text { max-width: 58%; }
  .bcard--big .bcard__text { max-width: none; }
  .bcard__img { width: 46%; }
}

/* ---------- Card prodotto ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { gap: 12px; } }

.pcard {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.pcard .tile { aspect-ratio: 1 / .9; }
.pcard:hover .tile img { transform: scale(1.06); }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.pcard__cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.pcard__name { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.pcard__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* card intera cliccabile */
.pcard__name a:focus-visible { outline: none; }
.pcard:has(.pcard__name a:focus-visible) { outline: 3px solid var(--electric); outline-offset: 3px; }
.pcard__ref { font-size: 13px; color: var(--muted); }
.pcard__foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.pcard__add {
  position: relative; z-index: 2; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: background-color var(--t-fast), transform var(--t-fast);
}
.pcard__add:hover { background: var(--blue); transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; background: var(--red); color: #fff;
}
.badge--promo { background: var(--blue); }

/* Prezzo */
.price { font-weight: 850; letter-spacing: -.02em; font-size: 20px; line-height: 1.1; }
.price small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.price-lock {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 14px; font-weight: 700; color: var(--blue);
}
.price-lock:hover { text-decoration: underline; }
.price-lock .i { width: 16px; height: 16px; }
.price-ask { font-size: 14px; font-weight: 700; color: var(--navy); }

@media (max-width: 640px) {
  .pcard__body { padding: 14px; }
  .pcard__name { font-size: 14px; }
  .pcard__cat { font-size: 11px; }
  .price { font-size: 17px; }
  .price-lock { font-size: 13px; }
  .badge { top: 10px; left: 10px; font-size: 11px; padding: 5px 9px; }
  /* su mobile il + va sulla foto, così il prezzo ha tutta la larghezza */
  .pcard__add { position: absolute; top: 8px; right: 8px; background: rgba(7,19,39,.9); }
  .pcard__foot { padding-top: 8px; }
  .price-lock .i { display: none; }
}

/* ---------- Offerta in evidenza ---------- */
.feature {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  background: var(--navy);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: clamp(36px, 6vw, 80px);
}
.feature::before {
  content: ''; position: absolute; width: 760px; height: 760px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 123, 255, .55) 0%, rgba(47, 123, 255, 0) 65%); pointer-events: none;
}
.feature > * { position: relative; }
.feature .h2 { margin: 18px 0 18px; }
.feature p { color: #c3d2ee; font-size: 18px; max-width: 470px; }
.feature__price { margin: 34px 0 30px; }
.feature__big { font-size: clamp(64px, 9vw, 120px); font-weight: 900; letter-spacing: -.06em; line-height: .9; }
.feature__note { color: #c3d2ee; font-size: 15px; font-weight: 600; margin-top: 10px; }
.feature__lock { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: var(--r-md); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-weight: 700; font-size: 18px; color: #fff; min-height: 44px; }
.feature__lock:hover { background: rgba(255,255,255,.14); }
.feature__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.feature__visual { display: grid; place-items: center; }
.feature__card {
  background: #fff; border-radius: 30px; padding: 18px; width: min(100%, 400px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: rotate(-5deg);
  transition: transform 600ms var(--ease);
}
.feature__card:hover, .feature:hover .feature__card { transform: rotate(0) translateY(-6px); }
.feature__card img { border-radius: 18px; width: 100%; height: auto; }
.btn--outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__visual { order: -1; }
  .feature__card { width: min(78%, 320px); }
}

/* ---------- Area professionale ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 34px 30px 32px; border-radius: var(--r-lg); background: var(--ice-1); border: 1px solid var(--line); }
.step__n { font-size: 56px; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.step h3 { margin: 22px 0 8px; }
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Assistenza ---------- */
.support { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.support__img {
  position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 440px; padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--ice-1); border: 1px solid var(--line);
}
.support__img img { position: absolute; top: 0; right: 0; width: 54%; height: 100%; object-fit: cover; object-position: 6% 50%; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%); }
.support__img::after { content: ''; position: absolute; inset: 0; z-index: 0;
  display: none; }
.support__img > div { position: relative; z-index: 1; max-width: 46%; }
.support__img .h2 { font-size: clamp(30px, 3vw, 40px); margin: 14px 0 14px; }
.support__img p { color: #3b4964; margin-bottom: 28px; }
.support__dark {
  border-radius: var(--r-xl); background: radial-gradient(120% 100% at 0% 0%, #12357a 0%, var(--ink) 60%); color: #fff;
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.support__phone { min-height: 48px; font-size: clamp(36px, 3.8vw, 52px); font-weight: 900; letter-spacing: -.03em; word-spacing: .18em; line-height: 1; display: inline-block; margin-top: 14px; }
.support__phone:hover { color: #a9c6ff; }
.support__list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #d3def2; }
.support__list a:hover { text-decoration: underline; color: #fff; }
.support__list .i { color: #a9c6ff; margin-top: 2px; }
@media (max-width: 1100px) {
  .support { grid-template-columns: 1fr; }
  .support__img { min-height: 0; padding: 0; }
  .support__img::after { display: none; }
  .support__img img { position: relative; width: 100%; height: clamp(220px, 40vw, 340px); object-position: 30% 55%; -webkit-mask-image: none; mask-image: none; }
  .support__img > div { max-width: 620px; padding: clamp(24px, 4vw, 44px); }
}

/* ---------- Testata pagine interne ---------- */
.page-head { background: linear-gradient(180deg, var(--ice-1), #fff); padding: 56px 0 44px; border-bottom: 1px solid var(--ice-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--blue); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: #8a97ae; }
.page-head .display { font-size: clamp(40px, 5.4vw, 76px); }
.page-head .lead { margin-top: 16px; max-width: 620px; }

/* ---------- Catalogo ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 36px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: #2a3854;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.toolbar__right { display: flex; align-items: center; gap: 16px; }
.result-count { font-size: 15px; color: var(--muted); }
.result-count strong { color: var(--ink); }
.select { position: relative; }
.select select {
  appearance: none; min-height: 44px; padding: 0 42px 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
}
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.search-note { font-size: 15px; color: var(--muted); margin-top: -12px; margin-bottom: 24px; }
.search-note button { color: var(--blue); font-weight: 700; text-decoration: underline; min-height: 44px; }
.empty { text-align: center; padding: 80px 20px; border-radius: var(--r-xl); background: var(--ice-1); border: 1px dashed var(--line-strong); }
.empty h2 { font-size: 28px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .toolbar__right { width: 100%; justify-content: space-between; }
}

/* ---------- Scheda prodotto ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: 40px; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery .tile { border-radius: var(--r-xl); aspect-ratio: 1; border: 1px solid var(--line); }
.gallery .tile img { width: 80%; max-width: 400px; }
.gallery .badge { top: 22px; left: 22px; font-size: 13px; }
.pinfo h1 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 900; letter-spacing: -.04em; line-height: 1.04; margin: 16px 0 14px; }
.pinfo__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; }
.pinfo__meta strong { color: var(--ink); font-weight: 700; }
.pricebox { margin: 28px 0 22px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--ice-1); border: 1px solid var(--line); }
.pricebox__big { font-size: 52px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.pricebox__big span { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.pricebox__min { margin-top: 10px; font-size: 15px; color: var(--muted); }
.pricebox__min strong { color: var(--ink); }
.pricebox--locked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pricebox--locked strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; display: flex; gap: 10px; align-items: center; }
.pricebox--locked p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.stock { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green); font-size: 15px; }
.stock::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(18, 128, 92, .14); }
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.qty { display: inline-flex; align-items: center; height: 56px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: #fff; }
.qty button { width: 52px; height: 56px; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover:not(:disabled) { color: var(--blue); background: var(--ice-1); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 64px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 17px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 40px; }
.qty--sm button { width: 40px; height: 44px; }
.qty--sm input { width: 46px; font-size: 15px; }
.buy .btn { flex: 1; min-width: 220px; }
.buy__hint { font-size: 14px; color: var(--muted); }

.tabs { margin-top: 40px; }
.tabs__list { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs__list button { position: relative; min-height: 48px; padding: 0 16px; font-weight: 700; color: var(--muted); }
.tabs__list button[aria-selected="true"] { color: var(--ink); }
.tabs__list button[aria-selected="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--blue); }
.tabs__panel { padding: 24px 0; color: #2f3d58; font-size: 16px; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--ice-2); font-size: 15px; vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 600; }
.specs td { font-weight: 600; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; padding-top: 24px; }
  .gallery { position: relative; top: 0; }
  .gallery .tile { max-height: 420px; aspect-ratio: auto; height: min(90vw, 420px); }
}
@media (max-width: 640px) { .pricebox__big { font-size: 42px; } .buy .btn { min-width: 0; } }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; padding-block: 56px var(--section); }
.contact__card { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); background: radial-gradient(120% 100% at 0% 0%, #12357a 0%, var(--ink) 60%); color: #fff; }
.contact__card h2 { font-size: 28px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 18px; }
.contact__card li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact__card li .i { color: #a9c6ff; margin-top: 3px; }
.contact__card small { display: block; color: #a9bad8; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.contact__card a, .contact__card p { color: #fff; font-weight: 600; font-size: 17px; }
.contact__card a:hover { text-decoration: underline; }
.form { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form h2 { font-size: 28px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea {
  min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--ice-1);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 123, 255, .18); }
.field__err { color: #b3261e; font-size: 14px; font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c2cfe6; padding: 80px 0 120px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 20px; padding: 10px 16px; }
.footer__logo img { height: 44px; width: auto; }
.footer__about { margin-top: 20px; max-width: 300px; font-size: 15px; }
.footer h2 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer li a, .footer li span { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: #c2cfe6; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; font-size: 14px; color: #9fb0cf; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: auto; } }

/* ---------- Elementi fissi ---------- */
.demo-tag {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: calc(100vw - 110px);
  font-size: 12px; font-weight: 600; color: #22314d; line-height: 1.35;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 12px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 8px;
}
.demo-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--electric); flex: none; }
.demo-tag .long { display: inline; }
@media (max-width: 640px) { .demo-tag { border-radius: 14px; font-size: 11px; } .demo-tag .long { display: none; } }

.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700;
  box-shadow: 0 16px 34px -12px rgba(10, 37, 89, .6); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast);
}
.wa:hover { transform: translateY(-2px); background: var(--blue); }
@media (max-width: 640px) { .wa { width: 56px; padding: 0; justify-content: center; } .wa .label { display: none; } }

/* ---------- Dialog (login + carrello) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgba(7, 19, 39, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal { width: min(460px, calc(100vw - 32px)); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.modal[open] { animation: pop 260ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__inner { padding: 32px; }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 8px; }
.modal h2 { font-size: 26px; font-weight: 850; letter-spacing: -.03em; line-height: 1.15; }
.modal__sub { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.modal__note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: none; width: min(440px, 100vw); max-width: 100vw;
  display: none; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer[open] { display: flex; animation: slide 320ms var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--ice-1); }
.cline { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ice-2); }
.cline .tile { width: 76px; height: 76px; border-radius: 14px; }
.cline .tile img { width: 90%; }
.cline__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.cline__name a:hover { color: var(--blue); }
.cline__ref { font-size: 13px; color: var(--muted); }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.cline__price { font-weight: 800; }
.cline__rm { color: var(--muted); }
.cline__rm:hover { color: #b3261e; background: #fdeceb; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.total strong { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.total-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.cart-empty { text-align: center; padding: 60px 12px; color: var(--muted); }
.cart-empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: calc(100vw - 32px); max-width: 480px; }
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow-lg); animation: toast-in 300ms var(--ease);
}
.toast .i { color: #8fd9bd; }
.toast.out { animation: toast-out 240ms var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
