/* ============================================================
   SceltiXTe — Foglio di stile principale
   Stile: Dark Premium (nero, rosso, bagliori ambra/blu)
   ============================================================ */

/* ---------- Token ---------- */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-2: #0c0c10;
  --surface: #111114;
  --surface-2: #16161c;
  --surface-3: #1c1c23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f5f4;
  --muted: #a5a5b0;
  --muted-2: #7a7a86;
  --red: #ff2b3d;
  --red-2: #ff6a3d;
  --red-soft: rgba(255, 43, 61, 0.12);
  --amber: #ffb020;
  --blue: #5b8cff;
  --green: #34d399;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --header-h: 74px;

  /* Superfici e sovrapposizioni (cambiano con il tema) */
  --header-bg: rgba(8, 8, 10, 0.72);
  --header-bg-scrolled: rgba(8, 8, 10, 0.9);
  --menu-bg: rgba(9, 9, 12, 0.98);
  --footer-bg: rgba(0, 0, 0, 0.25);
  --pick-bg: rgba(19, 19, 24, 0.82);
  --toast-bg: #1b1b22;
  --option-bg: #15151a;
  --input-bg: rgba(0, 0, 0, 0.3);
  --band-bg: linear-gradient(160deg, #16161c, #0e0e12);
  --avatar-bg: linear-gradient(160deg, #1a1a20, #0d0d11);
  --underline: rgba(255, 255, 255, 0.3);
  --notice-text: #e8c98d;
  --hero-glow: rgba(255, 43, 61, 0.18);
  --body-image:
    radial-gradient(900px 520px at 88% -8%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(820px 500px at -5% 0%, rgba(245, 158, 11, 0.12), transparent 58%),
    radial-gradient(700px 600px at 50% 110%, rgba(255, 43, 61, 0.07), transparent 60%);

  --ov-1: rgba(255, 255, 255, 0.015);
  --ov-2: rgba(255, 255, 255, 0.02);
  --ov-3: rgba(255, 255, 255, 0.025);
  --ov-4: rgba(255, 255, 255, 0.03);
  --ov-5: rgba(255, 255, 255, 0.035);
  --ov-6: rgba(255, 255, 255, 0.04);
  --ov-7: rgba(255, 255, 255, 0.045);
  --ov-8: rgba(255, 255, 255, 0.05);
  --ov-9: rgba(255, 255, 255, 0.06);
  --ov-10: rgba(255, 255, 255, 0.07);
  --ov-11: rgba(255, 255, 255, 0.08);
  --ov-12: rgba(255, 255, 255, 0.09);
}

/* ---------- Tema Chiaro ---------- */
[data-theme="chiaro"] {
  color-scheme: light;
  --bg: #f6f6f8;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f4;
  --surface-3: #e9e9ee;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #14141a;
  --muted: #565662;
  --muted-2: #85858f;
  --red: #d81f33;
  --red-2: #ea5a35;
  --red-soft: rgba(216, 31, 51, 0.08);
  --amber: #b45309;
  --blue: #1d4ed8;
  --green: #047857;
  --shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.22);
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-bg-scrolled: rgba(255, 255, 255, 0.94);
  --menu-bg: rgba(255, 255, 255, 0.99);
  --footer-bg: rgba(15, 23, 42, 0.03);
  --pick-bg: rgba(255, 255, 255, 0.92);
  --toast-bg: #ffffff;
  --option-bg: #ffffff;
  --input-bg: #ffffff;
  --band-bg: linear-gradient(160deg, #ffffff, #f1f1f4);
  --underline: rgba(15, 23, 42, 0.3);
  --notice-text: #8a5a00;
  --hero-glow: rgba(255, 43, 61, 0.1);
  --body-image:
    radial-gradient(900px 520px at 88% -8%, rgba(59, 130, 246, 0.10), transparent 62%),
    radial-gradient(820px 500px at -5% 0%, rgba(245, 158, 11, 0.11), transparent 58%),
    radial-gradient(700px 600px at 50% 110%, rgba(255, 43, 61, 0.05), transparent 60%);
  --ov-1: rgba(15, 23, 42, 0.012);
  --ov-2: rgba(15, 23, 42, 0.02);
  --ov-3: rgba(15, 23, 42, 0.03);
  --ov-4: rgba(15, 23, 42, 0.035);
  --ov-5: rgba(15, 23, 42, 0.045);
  --ov-6: rgba(15, 23, 42, 0.05);
  --ov-7: rgba(15, 23, 42, 0.055);
  --ov-8: rgba(15, 23, 42, 0.06);
  --ov-9: rgba(15, 23, 42, 0.07);
  --ov-10: rgba(15, 23, 42, 0.08);
  --ov-11: rgba(15, 23, 42, 0.09);
  --ov-12: rgba(15, 23, 42, 0.11);
}

/* ---------- Tema Caldo ---------- */
[data-theme="caldo"] {
  color-scheme: light;
  --bg: #faf6ef;
  --bg-2: #fffdf9;
  --surface: #fffdf9;
  --surface-2: #f3ebdf;
  --surface-3: #ebe0d1;
  --line: rgba(70, 50, 30, 0.12);
  --line-strong: rgba(70, 50, 30, 0.22);
  --text: #2b2118;
  --muted: #6b5b48;
  --muted-2: #96836c;
  --red: #c92a2a;
  --red-2: #e05a2b;
  --red-soft: rgba(201, 42, 42, 0.09);
  --amber: #a16207;
  --blue: #1e40af;
  --green: #15803d;
  --shadow: 0 24px 60px -30px rgba(70, 50, 30, 0.28);
  --header-bg: rgba(250, 246, 239, 0.8);
  --header-bg-scrolled: rgba(250, 246, 239, 0.95);
  --menu-bg: rgba(255, 253, 249, 0.99);
  --footer-bg: rgba(70, 50, 30, 0.04);
  --pick-bg: rgba(255, 253, 249, 0.92);
  --toast-bg: #fffdf9;
  --option-bg: #fffdf9;
  --input-bg: #fffdf9;
  --band-bg: linear-gradient(160deg, #fffdf9, #f1e6d6);
  --underline: rgba(70, 50, 30, 0.3);
  --notice-text: #8a5a00;
  --hero-glow: rgba(201, 42, 42, 0.1);
  --body-image:
    radial-gradient(900px 520px at 88% -8%, rgba(30, 64, 175, 0.07), transparent 62%),
    radial-gradient(820px 500px at -5% 0%, rgba(201, 138, 42, 0.16), transparent 58%),
    radial-gradient(700px 600px at 50% 110%, rgba(201, 42, 42, 0.05), transparent 60%);
  --ov-1: rgba(70, 50, 30, 0.012);
  --ov-2: rgba(70, 50, 30, 0.02);
  --ov-3: rgba(70, 50, 30, 0.03);
  --ov-4: rgba(70, 50, 30, 0.035);
  --ov-5: rgba(70, 50, 30, 0.045);
  --ov-6: rgba(70, 50, 30, 0.05);
  --ov-7: rgba(70, 50, 30, 0.055);
  --ov-8: rgba(70, 50, 30, 0.06);
  --ov-9: rgba(70, 50, 30, 0.07);
  --ov-10: rgba(70, 50, 30, 0.08);
  --ov-11: rgba(70, 50, 30, 0.09);
  --ov-12: rgba(70, 50, 30, 0.11);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  background-image: var(--body-image);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15rem; }
button { font-family: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head .section-title { margin: 0 0 6px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--red) 0%, var(--red-2) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 12px 30px -14px rgba(255, 43, 61, 0.9);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(255, 43, 61, 0.95);
}
.btn-ghost {
  color: var(--text);
  background: var(--ov-7);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--ov-12);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.6rem 1rem; font-size: 0.84rem; }
.btn-block { width: 100%; }
.btn-block svg { margin-left: auto; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow svg { width: 16px; height: 16px; color: var(--red); }
.link-arrow:hover { gap: 11px; color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg-scrolled); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--red), var(--red-2));
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px -10px rgba(255, 43, 61, 0.9);
}
.brand-word .x { color: var(--red); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: var(--ov-8); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Selettore tema ---------- */
.theme-switch { position: relative; }
.theme-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ov-7);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn:hover { color: var(--text); background: var(--ov-12); border-color: var(--line-strong); }
.theme-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 120;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.theme-switch.is-open .theme-menu { opacity: 1; visibility: visible; transform: none; }
.theme-label {
  display: block;
  padding: 7px 10px 5px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-option:hover { color: var(--text); background: var(--ov-7); }
.theme-option[aria-checked="true"] { color: var(--text); background: var(--ov-4); }
.theme-option .swatch {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.swatch--scuro { background: #121217; }
.swatch--chiaro { background: #f4f4f7; }
.swatch--caldo { background: #f4e7d3; }
.theme-option .check { width: 14px; height: 14px; margin-left: auto; color: var(--red); opacity: 0; }
.theme-option[aria-checked="true"] .check { opacity: 1; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--ov-8);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.42rem 0.9rem 0.42rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ov-5);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.hero h1 {
  font-size: clamp(2.2rem, 1.35rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 22px 0 20px;
  max-width: 15ch;
}
.hero .lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.13rem);
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat span { color: var(--muted-2); font-size: 0.8rem; }

/* Stack di schede prodotto nell'hero */
.hero-visual { position: relative; min-height: 460px; }
.pick-stack { position: relative; height: 100%; }
.pick-card {
  position: absolute;
  display: flex;
  gap: 13px;
  width: min(335px, 92%);
  padding: 12px;
  background: var(--pick-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pick-card:nth-child(1) { top: 0; right: 0; transform: rotate(2.2deg); }
.pick-card:nth-child(2) { top: 158px; left: 0; transform: rotate(-2.6deg); }
.pick-card:nth-child(3) { bottom: 0; right: 22px; transform: rotate(1.4deg); }
.pick-card:hover { transform: rotate(0deg) translateY(-3px); border-color: rgba(255, 43, 61, 0.35); }

.pick-thumb {
  position: relative;
  flex: none;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--g1, #333), var(--g2, #555));
}
.pick-thumb svg { width: 32px; height: 32px; color: rgba(255, 255, 255, 0.9); }
.pick-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pick-body { min-width: 0; padding: 4px 2px; }
.pick-body .cat {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.pick-body h3 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-row { display: flex; align-items: center; gap: 10px; }
.pick-row .price { font-size: 0.86rem; }

/* ---------- Media tile (placeholder prodotti) ---------- */
.media-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--g1, #333), var(--g2, #555));
}
.media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(255, 255, 255, 0.26), transparent 55%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.35));
}
.media-tile > svg {
  position: relative;
  z-index: 1;
  width: 34%;
  height: 34%;
  max-width: 96px;
  max-height: 96px;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.92;
}
.media-tile > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Foto prodotto: sempre intere e centrate, su sfondo bianco */
.media-tile img,
.pick-thumb img,
.list-thumb img,
.image-picker .preview img {
  object-fit: contain;
  object-position: center;
}
.media-tile.has-photo,
.pick-thumb.has-photo,
.list-thumb.has-photo,
.image-picker .preview.has-photo { background: #fff; }
.media-tile.has-photo::after { display: none; }

[data-cat="casa"] { --g1: #b45309; --g2: #f59e0b; }
[data-cat="tecnologia"] { --g1: #1e40af; --g2: #38bdf8; }
[data-cat="bellezza"] { --g1: #9d174d; --g2: #fb7185; }
[data-cat="sport"] { --g1: #047857; --g2: #34d399; }
[data-cat="regalo"] { --g1: #5b21b6; --g2: #c084fc; }
[data-cat="offerte"] { --g1: #991b1b; --g2: #f87171; }

/* ---------- Categorie ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: linear-gradient(160deg, var(--ov-7), var(--ov-1) 55%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cat-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--g2, #555) 0%, transparent 70%);
  opacity: 0.18;
  transition: opacity 0.25s ease;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.cat-card:hover::after { opacity: 0.35; }
.cat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--g1, #333), var(--g2, #555));
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-card h3 { font-size: 1.04rem; margin: 0; }
.cat-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.cat-count {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 500;
}
.cat-count svg { width: 13px; height: 13px; color: var(--red); }

/* ---------- Griglia prodotti ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prod-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 61, 0.3);
  box-shadow: var(--shadow);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  background: var(--surface-2);
}
.badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0b0b0d;
  background: #fff;
  backdrop-filter: blur(4px);
}
.badge--gold { background: #ffb020; color: #1a1200; }
.badge--green { background: #34d399; color: #062b21; }
.badge--blue { background: var(--blue); color: #fff; }
.badge--red { background: var(--red); color: #fff; }
.badge--static { position: static; display: inline-flex; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 17px 18px;
}
.card-cat {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-body h3 { font-size: 0.98rem; line-height: 1.35; margin: 0 0 7px; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--red); }
.card-sum {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 600;
}
.rating svg { width: 14px; height: 14px; fill: currentColor; }
.price {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price s {
  margin-left: 5px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 400;
}
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions .btn { flex: 1; padding-left: 0.7rem; padding-right: 0.7rem; }
.card-actions .btn-ghost { flex: 0 0 auto; }

/* ---------- Steps "come scelgo" ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  position: relative;
  padding: 26px 24px;
  background: var(--ov-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 43, 61, 0.28);
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: 7px; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 44px;
  margin: 0 auto;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(255, 43, 61, 0.22), transparent 60%),
    radial-gradient(420px 220px at 0% 100%, rgba(245, 158, 11, 0.14), transparent 60%),
    var(--band-bg);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
}
.foot-brand p { color: var(--muted); font-size: 0.87rem; max-width: 38ch; margin: 14px 0 0; }
.foot-col h4 {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--text); }

.disclosure {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ov-2);
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}
.disclosure strong { color: var(--muted); font-weight: 600; }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.8rem;
}
.foot-bottom a { color: var(--muted-2); text-decoration: none; }
.foot-bottom a:hover { color: var(--text); }

/* ---------- Pagine interne (intestazione) ---------- */
.page-hero { padding: 54px 0 34px; }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); margin-bottom: 12px; max-width: 20ch; }
.page-hero p { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.02rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: 0.8rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 12px; height: 12px; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Catalogo: toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.search-box { position: relative; flex: 1 1 260px; }
.search-box > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ov-6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box input:focus {
  outline: none;
  border-color: rgba(255, 43, 61, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 43, 61, 0.12);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  padding: 0.85rem 2.6rem 0.85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ov-6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.select-wrap select:focus { outline: none; border-color: rgba(255, 43, 61, 0.5); }
.select-wrap > svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  pointer-events: none;
}
.select-wrap option { background: var(--option-bg); color: var(--text); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ov-4);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(255, 43, 61, 0.9);
}
.chip .n {
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
}
.chip:not(.is-active) .n { background: var(--ov-10); color: var(--muted-2); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 0.84rem;
}
.results-bar strong { color: var(--text); font-weight: 600; }

.empty {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--ov-1);
}
.empty svg { width: 38px; height: 38px; color: var(--muted-2); margin-bottom: 12px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Scheda prodotto (PDP) ---------- */
.pdp { padding: 30px 0 70px; }
.pdp-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: start;
}
.pdp-media {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.pdp-media .media-tile > svg { width: 30%; height: 30%; max-width: 160px; max-height: 160px; }
.pdp-cat {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pdp-info h1 { font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 14px; }
.pdp-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.pdp-rating .rating { font-size: 0.92rem; }
.pdp-rating .rating svg { width: 16px; height: 16px; }
.pdp-rating .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.pdp-price .now {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pdp-price .old { color: var(--muted-2); text-decoration: line-through; font-size: 1rem; }
.pdp-price .save {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}
.pdp-note { color: var(--muted-2); font-size: 0.77rem; margin-bottom: 24px; }

.pdp-summary {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ov-3);
  color: var(--muted);
  margin-bottom: 24px;
}
.pdp-summary p:last-child { margin-bottom: 0; }

.pdp-buy { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pdp-buy .btn-primary { padding: 1rem 1.4rem; font-size: 1rem; }
.affiliate-note {
  display: flex;
  gap: 9px;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
}
.affiliate-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.pdp-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.pdp-body h2 { font-size: 1.3rem; margin-bottom: 14px; }
.pdp-body .prose { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.pdp-body .prose p:last-child { margin-bottom: 0; }

.pros-cons { display: grid; gap: 16px; }
.pc-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ov-2);
}
.pc-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.pc-box h3 svg { width: 16px; height: 16px; }
.pc-box--pro h3 { color: var(--green); }
.pc-box--con h3 { color: #ff7a86; }
.pc-box ul { list-style: none; padding: 0; margin: 0; }
.pc-box li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}
.pc-box li:last-child { margin-bottom: 0; }
.pc-box li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pc-box--pro li::before { background: var(--green); }
.pc-box--con li::before { background: #ff7a86; }

/* ---------- Chi sono ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: start;
}
.about-visual {
  position: sticky;
  top: calc(var(--header-h) + 22px);
}
.avatar-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(245, 158, 11, 0.28), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, rgba(59, 130, 246, 0.3), transparent 60%),
    var(--avatar-bg);
}
.avatar-tile .monogram {
  font-family: var(--font-head);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.9);
}
.avatar-tile .hint {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}
.about-body h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
.about-body > p { color: var(--muted); font-size: 1rem; }
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.value {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ov-3);
}
.value svg { width: 20px; height: 20px; color: var(--red); margin-bottom: 8px; }
.value h3 { font-size: 0.92rem; margin-bottom: 4px; }
.value p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--ov-6), var(--ov-1) 60%), var(--surface);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.input, .select, .textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(255, 43, 61, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 43, 61, 0.1);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.hint { color: var(--muted-2); font-size: 0.76rem; line-height: 1.5; margin: 0; }

.contact-card {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: 0; }
.contact-card .ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 43, 61, 0.25);
  color: var(--red);
}
.contact-card .ic svg { width: 17px; height: 17px; }
.contact-card h4 { margin: 0 0 2px; font-size: 0.88rem; font-family: var(--font-body); }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); font-size: 0.84rem; text-decoration: none; }
.contact-card a:hover { color: var(--text); }

/* ---------- Legale ---------- */
.legal { max-width: 820px; padding: 20px 0 70px; }
.legal h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem); }
.legal h2 { font-size: 1.22rem; margin: 38px 0 10px; }
.legal h3 { font-size: 1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 0.93rem; line-height: 1.75; }
.legal ul { padding-left: 1.2rem; }
.legal strong { color: var(--text); }
.legal a { color: var(--text); text-decoration-color: var(--underline); }
.legal a:hover { color: var(--red); }
.legal .updated { color: var(--muted-2); font-size: 0.8rem; margin-bottom: 26px; }

.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 176, 32, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 176, 32, 0.07);
  color: var(--notice-text);
  font-size: 0.85rem;
  line-height: 1.6;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--amber); }

/* ---------- Gestione prodotti ---------- */
.manager { padding: 34px 0 70px; }
.manager-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.manager-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 0 0 4px; }
.manager-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.manager-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.manager-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 22px;
  align-items: start;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-title h2 { font-size: 1.05rem; margin: 0; }
.panel-title .tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ov-9);
  color: var(--muted);
  font-size: 0.7rem;
}

.product-form { display: grid; gap: 13px; }
.product-form .form-grid { gap: 12px; }
.image-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--ov-2);
}
.image-picker .preview {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2a2a32, #17171c);
  color: var(--muted-2);
}
.image-picker .preview svg { width: 20px; height: 20px; }
.image-picker .preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.image-picker .meta { flex: 1; min-width: 0; }
.image-picker .meta p { margin: 0 0 6px; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ov-8);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.file-btn:hover { background: var(--ov-12); }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn svg { width: 13px; height: 13px; }
.clear-img {
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  cursor: pointer;
}
.clear-img:hover { color: var(--text); }

.form-actions { display: flex; gap: 8px; margin-top: 4px; }
.form-actions .btn { flex: 1; }

.list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.list-tools .search-box { flex: 1; }
.list-tools .search-box input { padding: 0.6rem 0.9rem 0.6rem 2.4rem; font-size: 0.85rem; }
.list-tools .search-box > svg { left: 13px; width: 15px; height: 15px; }

.product-list { display: grid; gap: 8px; max-height: 720px; overflow: auto; padding-right: 4px; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ov-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.list-row:hover { border-color: var(--line-strong); background: var(--ov-5); }
.list-row.is-editing { border-color: rgba(255, 43, 61, 0.45); background: var(--red-soft); }
.list-thumb {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--g1, #333), var(--g2, #555));
}
.list-thumb svg { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.9); }
.list-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.list-main { flex: 1; min-width: 0; }
.list-main h4 {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-main p { margin: 0; color: var(--muted-2); font-size: 0.72rem; }
.list-actions { display: flex; gap: 5px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover { color: var(--text); background: var(--ov-9); }
.icon-btn--danger:hover { color: #ff8a92; border-color: rgba(255, 43, 61, 0.4); background: var(--red-soft); }
.icon-btn svg { width: 15px; height: 15px; }

.manager-help {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ov-2);
}
.manager-help h3 { font-size: 0.82rem; margin-bottom: 8px; }
.manager-help ol { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.manager-help ol li { margin-bottom: 3px; }
.manager-help code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ov-11);
  font-size: 0.74rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  max-width: 340px;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { border-color: rgba(255, 43, 61, 0.5); }

/* ---------- Animazioni ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 36px; }
  .pick-card { width: min(300px, 92%); }
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 14px 24px 22px;
    background: var(--menu-bg);
  border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 0.8rem 0.9rem; font-size: 1rem; }
  .nav a[aria-current="page"] { background: var(--ov-9); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 14px; }
  .nav-cta { display: none; }

  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .hero-visual { min-height: 0; margin-top: 8px; }
  .pick-stack { display: grid; gap: 10px; }
  .pick-card { position: static; width: 100%; transform: none; }
  .pick-card:nth-child(2) { display: none; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 28px; }

  .pdp-grid { grid-template-columns: 1fr; gap: 30px; }
  .pdp-media { position: static; aspect-ratio: 4 / 3; }
  .pdp-body { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; padding-top: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-visual { position: static; max-width: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
  .manager-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .prod-grid, .prod-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 13px 13px 15px; }
  .card-body h3 { font-size: 0.9rem; }
  .card-sum { font-size: 0.8rem; }
  .card-actions { flex-direction: column; }
  .card-actions .btn-ghost { display: none; }
  .cat-card { padding: 18px; }
  .hero-stats { gap: 12px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pdp-price .now { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .prod-grid, .prod-grid--3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.05rem; }
  .hero-cta .btn { width: 100%; }
  .brand-word { font-size: 1.1rem; }
}
