/* ==========================================================================
   Sassalbini · Bottega · Liquid Glass
   Three themes share the same structure; theme vars are swapped via [data-theme]
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── THEMES ──────────────────────────────────────────────────────────── */

/* 1 · Editorial — crema base, bordeaux accent */
[data-theme="editorial"] {
  --bordeaux: #5c0e1b;
  --bordeaux-deep: #3d0810;
  --bordeaux-soft: #7a1a28;
  --bordeaux-tint: rgba(92,14,27,0.08);
  --crema: #f5efe0;
  --crema-pale: #fbf8ef;
  --crema-deep: #ebe2cc;
  --gold: #c8a55a;
  --ink: #1a1410;
  --stone: #6b5d4f;

  --bg: #ffffff;
  --fg: #1a1410;
  --muted: #6b5d4f;
  --accent: #5c0e1b;
  --accent-ink: #fbf8ef;
  --gold-c: #c8a55a;
  --hairline: rgba(92,14,27,0.14);
  --hairline-strong: rgba(92,14,27,0.22);

  /* Glass */
  --glass-bg: rgba(251, 248, 239, 0.48);
  --glass-bg-strong: rgba(251, 248, 239, 0.72);
  --glass-border: rgba(92, 14, 27, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 1px 0 rgba(255,255,255,0.65) inset, 0 0 0 1px rgba(92,14,27,0.04), 0 30px 80px -36px rgba(92,14,27,0.28);
  --glass-chip-bg: rgba(251, 248, 239, 0.62);

  /* Ambient page background: bianco con flares appena accennati */
  --ambient:
    radial-gradient(60% 40% at 12% 8%, rgba(200,165,90,0.06) 0%, transparent 60%),
    radial-gradient(50% 40% at 88% 20%, rgba(92,14,27,0.04) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

/* 2 · Chiaro — bianco puro con solo bordeaux */
[data-theme="chiaro"] {
  --bordeaux: #5c0e1b;
  --bordeaux-deep: #3d0810;
  --bordeaux-soft: #7a1a28;
  --crema: #ffffff;
  --crema-pale: #ffffff;
  --gold: #c8a55a;
  --ink: #141414;
  --stone: #6a6a6a;

  --bg: #f6f4f1;
  --fg: #141414;
  --muted: #6a6a6a;
  --accent: #5c0e1b;
  --accent-ink: #ffffff;
  --gold-c: #5c0e1b;
  --hairline: rgba(20,20,20,0.10);
  --hairline-strong: rgba(20,20,20,0.18);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(20, 20, 20, 0.07);
  --glass-highlight: rgba(255,255,255,0.9);
  --glass-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 0 0 1px rgba(0,0,0,0.03), 0 24px 60px -28px rgba(20,20,20,0.22);
  --glass-chip-bg: rgba(255,255,255,0.7);

  --ambient:
    radial-gradient(60% 40% at 15% 10%, rgba(92,14,27,0.08) 0%, transparent 60%),
    radial-gradient(50% 35% at 85% 20%, rgba(92,14,27,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #fafaf8 0%, #f3f0ec 100%);
}

/* ── Ambient page ──────────────────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  background: var(--ambient), var(--bg);
  background-attachment: fixed;
}
.page::before {
  /* paper grain overlay */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.36  0 0 0 0 0.05  0 0 0 0 0.10  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.06;
}
/* no midnight */

/* Large decorative blobs behind content (pure CSS, no SVGs) */
.blob {
  position: fixed;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  border-radius: 50%;
}
.blob-1 { width: 620px; height: 620px; top: -180px; left: -160px; background: radial-gradient(closest-side, var(--bordeaux) 0%, transparent 70%); }
.blob-2 { width: 540px; height: 540px; top: 280px; right: -200px; background: radial-gradient(closest-side, var(--gold-c) 0%, transparent 70%); opacity: 0.35; }
.blob-3 { width: 720px; height: 720px; bottom: -260px; left: 20%; background: radial-gradient(closest-side, var(--bordeaux-soft) 0%, transparent 70%); opacity: 0.3; }
[data-theme="chiaro"] .blob { opacity: 0.12; }
[data-theme="editorial"] .blob { opacity: 0.07; }

/* ── Typography ────────────────────────────────────────────────────────── */
.font-display { font-family: "Fraunces", "Iowan Old Style", Georgia, serif; font-optical-sizing: auto; font-feature-settings: "ss01", "ss02"; letter-spacing: -0.02em; }
.font-mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.tracking-eyebrow { letter-spacing: 0.22em; text-transform: uppercase; }

/* ── Layout shell ──────────────────────────────────────────────────────── */
.shell { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .shell { padding: 0 18px; } }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto 0;
  max-width: 1400px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}
.topbar-inner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--glass-highlight), transparent 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand-logo {
  height: 58px; width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
@media (max-width: 768px) { .brand-logo { height: 46px; } }
.brand-seal {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 20px;
  font-style: italic;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 14px -6px rgba(0,0,0,0.35);
}
.brand-name { font-family: "Fraunces", serif; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.brand-meta { font-size: 11px; color: var(--muted); font-family: "Geist Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }
.mobile-menu { display: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--fg);
  transition: transform 0.2s, background 0.2s;
  position: relative;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--glass-bg-strong); }
.icon-btn .cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    margin: 8px clamp(10px, 3vw, 22px) 0;
    padding: 0 8px;
    border-radius: 16px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease;
  }
  .mobile-menu[data-open="true"] {
    max-height: 320px;
    opacity: 1;
    padding: 8px;
    pointer-events: auto;
  }
  .mobile-menu a {
    padding: 13px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--fg);
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
  }
  .mobile-menu a:active,
  .mobile-menu a:hover { background: var(--glass-chip-bg); }
}

/* Topbar over-hero: transparent dark glass inside the hero */
.topbar.over-hero {
  position: absolute;
  top: 0; left: 0; right: 0;
  margin: 0; max-width: none;
  z-index: 5;
}
@media (max-width: 900px) { .topbar.over-hero { top: 0; left: 0; right: 0; } }
.topbar.over-hero .topbar-inner {
  border-radius: 0;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(26,6,12,0.28);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-left: none; border-right: none; border-top: none;
  border-bottom: 1px solid rgba(245,239,224,0.14);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.55);
}
.topbar.over-hero .brand-name,
.topbar.over-hero .nav-links a { color: #f5efe0; }
.topbar.over-hero .brand-meta { color: rgba(245,239,224,0.7); }
.topbar.over-hero .icon-btn { color: #f5efe0; background: rgba(245,239,224,0.08); border-color: rgba(245,239,224,0.16); }
.topbar.over-hero .icon-btn:hover { background: rgba(245,239,224,0.16); }
.topbar.over-hero .brand-seal { background: #c8a55a; color: #1a0608; }
.topbar.over-hero .cart-count { background: #c8a55a; color: #1a0608; }

/* ── Hero · Cinematic ─────────────────────────────────────────────────── */
.hero-cine {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 40px;
  height: min(82vh, 780px);
  min-height: 600px;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background: #1a0608;
  box-shadow: 0 40px 90px -50px rgba(26,6,12,0.55);
}
@media (max-width: 900px) {
  .hero-cine { margin-bottom: 28px; height: auto; min-height: 0; border-radius: 0; }
}

.hero-cine-stage { position: absolute; inset: 0; z-index: 0; }
.hero-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-scene.active { opacity: 1; }
/* Foto full-bleed (cover) — posizionata per tenere i volti in vista */
.hero-scene-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: saturate(1.02) contrast(1.03);
  transform: scale(1.04);
  animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-scene.active .hero-scene-img { animation-play-state: running; }
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0,0); }
  100% { transform: scale(1.12) translate(-2%, -1.5%); }
}

/* Warm color wash + dark gradient for text legibility */
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(18,7,5,0.86) 0%, rgba(18,7,5,0.56) 30%, rgba(18,7,5,0.12) 60%, transparent 82%),
    linear-gradient(0deg, rgba(18,7,5,0.6) 0%, rgba(18,7,5,0) 42%),
    linear-gradient(180deg, rgba(18,7,5,0.5) 0%, transparent 16%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(140% 120% at 30% 40%, transparent 62%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.93  0 0 0 0 0.87  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Content over video */
.hero-cine-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 96px clamp(28px, 6vw, 84px) 72px;
  color: #f5efe0;
}
@media (max-width: 900px) {
  .hero-cine-content { padding: 100px 24px 64px; gap: 18px; justify-content: flex-end; }
}
.hero-cine-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 580px;
  text-shadow: 0 2px 30px rgba(18,7,5,0.5);
}

/* TOP — eyebrow + current scene label */
.hero-cine-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-cine-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245,239,224,0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245,239,224,0.14);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5efe0;
}
.hero-cine-dot { width: 6px; height: 6px; border-radius: 50%; background: #c8a55a; box-shadow: 0 0 12px #c8a55a; animation: tickerPulse 2s infinite; }

.hero-cine-scene-label {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 16px 12px;
  border-radius: 14px;
  background: rgba(26,6,12,0.35);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245,239,224,0.1);
  max-width: 320px;
}
.label-kicker { font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: #c8a55a; padding-top: 4px; white-space: nowrap; }
.label-track { position: relative; height: 38px; overflow: hidden; flex: 1; }
.label-item { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: all 0.6s ease; }
.label-item.on { opacity: 1; transform: translateY(0); }
.label-name { font-family: "Fraunces", serif; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
.label-meta { font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,239,224,0.7); margin-top: 4px; }

/* MIDDLE — big editorial title */
.hero-cine-mid { display: flex; align-items: center; }
.hero-cine-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: #f5efe0;
  text-wrap: balance;
}
.hero-cine-title .line { display: block; overflow: hidden; }
.hero-cine-title em { font-style: italic; font-weight: 300; color: #c8a55a; }

/* BOTTOM — lede + actions + stats */
.hero-cine-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px 40px;
  align-items: end;
}
@media (max-width: 900px) { .hero-cine-bottom { grid-template-columns: 1fr; gap: 24px; } }
.hero-cine-lede {
  max-width: 480px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245,239,224,0.86);
  margin: 0;
  text-wrap: pretty;
}
.hero-cine-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,239,224,0.74);
}
.hero-cine-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-c); }
.hero-cine-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.hero-cta {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.hero-cta.primary {
  background: #f5efe0; color: #1a0608;
}
.hero-cta.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -16px rgba(0,0,0,0.6); }
.hero-cta.ghost {
  background: rgba(245,239,224,0.08);
  color: #f5efe0;
  border: 1px solid rgba(245,239,224,0.24);
  backdrop-filter: blur(14px);
}
.hero-cta.ghost:hover { background: rgba(245,239,224,0.14); }

.hero-cine-stats {
  display: flex; align-items: end; gap: 22px;
  grid-column: 2;
  justify-self: end;
}
@media (max-width: 900px) { .hero-cine-stats { grid-column: 1; justify-self: start; gap: 18px; } }
.hero-cine-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-cine-stats .n {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 400;
  font-size: 36px; line-height: 1; color: #c8a55a; letter-spacing: -0.03em;
}
.hero-cine-stats .n em { font-style: italic; font-size: 18px; margin-left: 1px; }
.hero-cine-stats .l {
  font-family: "Geist Mono", monospace; font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,239,224,0.7);
}
.stat-sep { width: 1px; height: 28px; background: rgba(245,239,224,0.2); align-self: end; margin-bottom: 4px; }

/* SCENE TICKS */
.hero-cine-ticks {
  position: absolute;
  bottom: 46px; right: clamp(24px, 4vw, 56px);
  display: flex; gap: 8px;
  z-index: 3;
}
@media (max-width: 900px) { .hero-cine-ticks { bottom: 16px; right: 22px; } }
.hero-tick {
  width: 28px; height: 3px;
  padding: 0;
  border: none;
  background: rgba(245,239,224,0.22);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.hero-tick-fill {
  position: absolute; inset: 0 100% 0 0;
  background: #f5efe0;
  transition: right 0.2s linear;
}
.hero-tick.on .hero-tick-fill {
  animation: tickFill 5.2s linear forwards;
}
@keyframes tickFill {
  from { right: 100%; }
  to   { right: 0; }
}

/* ── Filter bar ────────────────────────────────────────────────────────── */
.filterbar {
  margin-top: 32px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.filterbar::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--glass-highlight), transparent 40%);
  opacity: 0.35; pointer-events: none; mix-blend-mode: overlay;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; }
.filter-label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-right: 4px; }
.chip {
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--hairline-strong); }
.chip[data-active="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 6px 14px -6px rgba(92,14,27,0.4);
}
[data-theme="midnight"] .chip[data-active="true"] { box-shadow: 0 6px 14px -6px rgba(200,165,90,0.35); }
.search-input {
  flex: 1 1 220px; min-width: 160px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--accent); }
.sort-select {
  height: 34px; padding: 0 32px 0 14px;
  border-radius: 999px;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='currentColor' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 48px; margin-bottom: 20px;
}
.section-title { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; margin: 6px 0 0; line-height: 1; }
.section-title em { font-style: italic; color: var(--accent); }
[data-theme="midnight"] .section-title em { color: var(--gold); }
.section-count { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }

/* ── Product grid ──────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 16px; } }

.card {
  position: relative;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 30%);
  opacity: 0.45;
  mix-blend-mode: overlay;
  border-radius: 24px;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 100%, var(--bordeaux-tint, rgba(92,14,27,0.05)) 0%, transparent 60%);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset, 0 0 0 1px rgba(92,14,27,0.06), 0 42px 90px -34px rgba(92,14,27,0.35);
}
[data-theme="midnight"] .card:hover {
  box-shadow: 0 1px 0 rgba(245,239,224,0.07) inset, 0 0 0 1px rgba(200,165,90,0.12), 0 50px 90px -40px rgba(0,0,0,0.9);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(0,0,0,0.14) 0%, transparent 60%),
    radial-gradient(80% 70% at 50% 0%, var(--glass-highlight) 0%, transparent 55%);
  overflow: hidden;
}
[data-theme="midnight"] .card-media {
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(0,0,0,0.45) 0%, transparent 60%),
    radial-gradient(80% 70% at 50% 0%, rgba(200,165,90,0.08) 0%, transparent 55%);
}
.card-media img {
  max-width: 88%; max-height: 88%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 35px rgba(0,0,0,0.22));
  transition: transform 0.55s cubic-bezier(0.2,0.7,0.2,1);
}
.card:hover .card-media img { transform: translateY(-3px) scale(1.03); }
.card-badges {
  position: absolute; top: 14px; left: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.badge {
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex; align-items: center;
}
.badge-dop { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
[data-theme="midnight"] .badge-dop { background: var(--gold); color: var(--bordeaux-deep); }
.card-wish {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 2;
  color: var(--fg);
  transition: all 0.2s;
}
.card-wish:hover { transform: scale(1.08); }
.card-wish[data-active="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.card-body {
  padding: 18px 22px 22px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.card-origin { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.card-name { font-family: "Fraunces", serif; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.card-meta { font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 2.6em; }
.card-footer {
  margin-top: 6px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price-main { font-family: "Fraunces", serif; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.price-unit { font-size: 11px; color: var(--muted); font-family: "Geist Mono", monospace; letter-spacing: 0.08em; }
.price-sale { color: var(--muted); text-decoration: line-through; font-size: 14px; font-family: "Fraunces", serif; }
.btn-add {
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 8px 18px -8px rgba(92,14,27,0.5);
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(92,14,27,0.6); }
[data-theme="midnight"] .btn-add { box-shadow: 0 8px 18px -8px rgba(200,165,90,0.35); }
.btn-add.added {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
[data-theme="midnight"] .btn-add.added { color: var(--gold); border-color: var(--gold); }

/* ── Modal (product detail) ───────────────────────────────────────────── */
.modal-veil {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,14,10,0.45);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: grid; place-items: center;
  padding: 24px;
  animation: fade 0.24s ease;
}
[data-theme="midnight"] .modal-veil { background: rgba(0,0,0,0.6); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  animation: rise 0.35s cubic-bezier(0.2,0.7,0.2,1);
}
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  color: var(--fg); cursor: pointer;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-media {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  padding: 40px;
  background: radial-gradient(70% 60% at 50% 100%, rgba(0,0,0,0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
  border-radius: 28px 0 0 28px;
}
.modal-media img { max-width: 86%; max-height: 86%; filter: drop-shadow(0 40px 50px rgba(0,0,0,0.28)); }
.modal-body { padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; }
.modal-body h2 { font-family: "Fraunces", serif; font-weight: 400; font-size: 42px; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-desc { color: var(--muted); font-size: 15px; line-height: 1.65; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.spec {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
}
.spec-label { font-family: "Geist Mono", monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }
.spec-value { font-family: "Fraunces", serif; font-size: 18px; margin-top: 4px; font-weight: 500; }
.modal-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.modal-price-row .price-main { font-size: 36px; }

.qty {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.qty button { width: 40px; height: 44px; background: transparent; border: none; color: var(--fg); font-size: 18px; cursor: pointer; }
.qty button:hover { background: var(--hairline); }
.qty span { min-width: 40px; text-align: center; font-family: "Geist Mono", monospace; font-weight: 600; }

.modal-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn-primary {
  flex: 1; height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 26px -12px rgba(92,14,27,0.55);
  transition: transform 0.18s;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  height: 52px; padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--fg);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media { aspect-ratio: 1/1; border-radius: 28px 28px 0 0; }
  .modal-body { padding: 28px 22px; }
  .modal-body h2 { font-size: 32px; }
}

/* ── Cart slide-over ──────────────────────────────────────────────────── */
.cart-veil {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(20,14,10,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.2s ease;
}
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  z-index: 120;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -40px 0 80px -20px rgba(0,0,0,0.3);
  animation: slideIn 0.35s cubic-bezier(0.2,0.7,0.2,1);
  display: flex; flex-direction: column;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hairline);
}
.cart-header h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.cart-item img {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: var(--glass-chip-bg);
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--glass-border);
}
.cart-item-info .name { font-family: "Fraunces", serif; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.cart-item-info .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item-info .qty-inline { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; }
.cart-item-info .qty-inline button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: transparent; color: var(--fg); cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.cart-item-price { font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.cart-empty .big { font-family: "Fraunces", serif; font-style: italic; font-size: 28px; color: var(--fg); letter-spacing: -0.02em; margin-bottom: 8px; }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--hairline); background: var(--glass-bg); }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.cart-row.total { font-size: 16px; font-weight: 600; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.cart-row.total .val { font-family: "Fraunces", serif; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.checkout-btn {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── Contatti CTA ─────────────────────────────────────────────────────── */
.cta {
  margin: 80px 0 48px;
  padding: 48px clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background: var(--crema-pale);
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 70px -50px rgba(26,20,16,0.25);
  color: var(--fg);
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.cta-eyebrow {
  font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.cta h3 {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.03em;
  margin: 12px 0 0; line-height: 1.04; color: var(--fg);
}
.cta h3 em { font-style: italic; color: var(--accent); }
.cta p { color: var(--muted); margin: 16px 0 0; line-height: 1.6; max-width: 440px; }

.cta-card { display: flex; flex-direction: column; gap: 10px; }
.cta-contact {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  text-decoration: none; color: var(--fg);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cta-contact:hover { transform: translateY(-2px); border-color: var(--hairline-strong); box-shadow: 0 14px 30px -18px rgba(26,20,16,0.3); }
.cta-contact-ico {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bordeaux-tint); color: var(--accent);
}
.cta-contact-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cta-contact-label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cta-contact-value { font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.cta-contact-arrow { color: var(--muted); flex: 0 0 auto; transition: transform 0.2s, color 0.2s; }
.cta-contact:hover .cta-contact-arrow { color: var(--accent); transform: translateX(3px); }
.cta-hours {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 4px; padding: 4px;
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.cta-hours .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (max-width: 780px) {
  .cta { grid-template-columns: 1fr; padding: 36px 22px; gap: 26px; }
}

/* ── Floating cart button ─────────────────────────────────────────────── */
.cart-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 18%, transparent);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: rise 0.3s ease;
}
.cart-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(0, 0, 0, 0.16); }
.cart-fab:active { transform: scale(0.96); }
.cart-fab-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace;
  border: 2px solid var(--bg);
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .cart-fab { bottom: 18px; right: 16px; width: 52px; height: 52px; }
}

/* ── Tweaks panel ─────────────────────────────────────────────────────── */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 280px;
  padding: 18px;
  border-radius: 20px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  animation: rise 0.3s ease;
}
.tweaks h4 { font-family: "Fraunces", serif; font-size: 18px; margin: 0 0 14px; font-weight: 500; letter-spacing: -0.02em; }
.tweak-row { margin-bottom: 14px; }
.tweak-label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tweak-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--glass-chip-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.tweak-seg button {
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.tweak-seg button[data-active="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}
.footer h5 { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); margin: 0 0 12px; font-weight: 600; }
.footer a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.footer a:hover { color: var(--fg); }
.footer-brand .font-display { font-size: 28px; color: var(--fg); }
@media (max-width: 700px) { .footer { grid-template-columns: 1fr; } }

/* ── Toast ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 36px -10px rgba(92,14,27,0.5);
  animation: toastIn 0.3s cubic-bezier(0.2,0.7,0.2,1);
  display: inline-flex; align-items: center; gap: 8px;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ── Storia · Timeline animata ────────────────────────────────────────── */
.storyline { padding: 70px 0 50px; position: relative; }
.storyline-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.storyline-head .section-title { text-align: center; margin-top: 6px; font-size: clamp(24px, 2.6vw, 34px); }
.storyline-lede { color: var(--muted); max-width: 480px; margin: 14px auto 0; line-height: 1.55; font-size: 13px; }

/* Video reel agganciato a fianco della card, nella colonna opposta del rail */
.storyline-item.has-aside { min-height: 420px; }
.storyline-video-aside {
  position: absolute;
  top: 0;
  width: 210px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #1a0608;
  box-shadow: 0 30px 70px -40px rgba(26,6,12,0.5), 0 0 0 1px var(--hairline);
}
.storyline-item.left .storyline-video-aside { left: calc(100% + 44px); }
.storyline-item.right .storyline-video-aside { right: calc(100% + 44px); }
.storyline-video-aside video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* connettore sottile dal rail al video */
.storyline-video-aside::before {
  content: "";
  position: absolute; top: 36px;
  width: 34px; height: 1px;
  background: var(--hairline);
}
.storyline-item.left .storyline-video-aside::before { left: -39px; }
.storyline-item.right .storyline-video-aside::before { right: -39px; }

/* Foto d'epoca quadrate */
.storyline-video-aside.is-photo {
  width: 244px;
  aspect-ratio: 1 / 1;
  background: #ece4d3;
}
.storyline-video-aside.is-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(0.96);
}
.storyline-item.has-aside.has-photo { min-height: 300px; }

/* Mobile: il video va sotto la card, niente posizionamento opposto */
@media (max-width: 820px) {
  .storyline-item.has-aside { min-height: 0; }
  .storyline-video-aside {
    position: static;
    width: 100%;
    max-width: 260px;
    margin: 14px 0 0;
  }
  .storyline-item.left .storyline-video-aside,
  .storyline-item.right .storyline-video-aside { left: auto; right: auto; }
  .storyline-video-aside::before { display: none; }
}
.storyline-ticker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(92,14,27,0.14); animation: tickerPulse 1.8s infinite; }
@keyframes tickerPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(92,14,27,0.14); } 50% { box-shadow: 0 0 0 8px rgba(92,14,27,0.05); } }
.ticker-year { font-family: "Fraunces", serif; font-style: italic; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); transition: color 0.4s; }
.ticker-label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.storyline-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0 30px;
}

/* Central vertical rail */
.storyline-rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--hairline);
  pointer-events: none;
}
.storyline-rail-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 14%, var(--accent) 100%);
  transition: height 0.15s linear;
  pointer-events: none;
}
.storyline-rail-fill::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(92,14,27,0.14), 0 0 18px rgba(92,14,27,0.4);
}
.storyline-node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.storyline-node.in { opacity: 1; }
.storyline-node-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  position: relative; z-index: 1;
}
.storyline-node-year {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  position: absolute;
  left: 20px;
  top: -6px;
  white-space: nowrap;
}
.storyline-node:nth-child(even) .storyline-node-year { left: auto; right: 20px; }

/* Timeline items — alternating sides */
.storyline-list { list-style: none; padding: 0; margin: 0; position: relative; }
.storyline-item {
  position: relative;
  width: 50%;
  padding: 0 42px 44px 0;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.storyline-item.right {
  margin-left: 50%;
  padding: 0 0 44px 42px;
  transform: translateY(30px) translateX(0);
}
.storyline-item.in { opacity: 1; transform: translateY(0); }
.storyline-item.is-last { padding-bottom: 0; }

/* Horizontal connector line from rail to card */
.storyline-item::before {
  content: "";
  position: absolute;
  top: 36px;
  width: 34px;
  height: 1px;
  background: var(--hairline);
}
.storyline-item.left::before { right: 8px; }
.storyline-item.right::before { left: 8px; }

.storyline-card {
  position: relative;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.storyline-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--glass-highlight), transparent 50%);
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.storyline-item.in .storyline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset, 0 0 0 1px rgba(92,14,27,0.08), 0 50px 100px -40px rgba(92,14,27,0.35);
}

.storyline-year-big {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 54px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: -2px 0 0 -1px;
}
.storyline-divider {
  width: 24px; height: 1px; background: var(--accent); margin: 8px 0 10px;
}
.storyline-gen {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.storyline-title {
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 6px 0 8px;
  text-wrap: balance;
}
.storyline-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.storyline-corner {
  position: absolute;
  top: 14px; right: 14px;
  color: var(--accent);
  opacity: 0.3;
  transform: scale(0.75);
  transform-origin: top right;
}
.storyline-item.right .storyline-corner { right: auto; left: 18px; transform: scaleX(-1); }

/* Last item — highlighted */
.storyline-item.is-last .storyline-card {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.storyline-item.is-last .storyline-year-big,
.storyline-item.is-last .storyline-title,
.storyline-item.is-last .storyline-gen,
.storyline-item.is-last .storyline-body { color: var(--accent-ink); }
.storyline-item.is-last .storyline-body { opacity: 0.88; }
.storyline-item.is-last .storyline-divider { background: var(--accent-ink); opacity: 0.5; }
.storyline-item.is-last .storyline-corner { color: var(--accent-ink); opacity: 0.5; }

/* Mobile — all on left, rail shifts to 20px */
@media (max-width: 820px) {
  .storyline-wrap { padding: 20px 0 40px; }
  .storyline-rail { left: 20px; transform: none; }
  .storyline-item,
  .storyline-item.right {
    width: 100%;
    margin-left: 0;
    padding: 0 0 32px 44px;
  }
  .storyline-item::before,
  .storyline-item.left::before,
  .storyline-item.right::before { left: 22px; right: auto; width: 24px; top: 32px; }
  .storyline-node { left: 20px; }
  .storyline-node-year,
  .storyline-node:nth-child(even) .storyline-node-year { left: 20px; right: auto; }
  .storyline-year-big { font-size: 44px; }
  .storyline-card { padding: 18px 18px 20px; }
  .storyline-title { font-size: 17px; }
  .storyline-item.right .storyline-corner { transform: none; left: auto; right: 18px; }
}

/* ── Mercati · today-live bar ─────────────────────────────────────────── */
.mercati { padding: 60px 0 40px; }
.mercati-hero {
  padding: 36px 38px;
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}
.mercati-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--glass-highlight), transparent 40%); opacity: 0.35; mix-blend-mode: overlay; pointer-events: none; }
.today-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.today-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.today-title { font-family: "Fraunces", serif; font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 0; }
.today-title em { font-style: italic; color: var(--accent); }
.today-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 14px; }
.today-meta strong { color: var(--fg); font-weight: 500; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 26px; position: relative; z-index: 1; }
@media (max-width: 820px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .week-grid { grid-template-columns: repeat(2, 1fr); } }
.day-card {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.2s;
  cursor: pointer;
}
.day-card:hover { transform: translateY(-2px); }
.day-card.today { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.day-card.closed { opacity: 0.5; }
.day-short { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.day-city { font-family: "Fraunces", serif; font-size: 17px; margin-top: 6px; font-weight: 500; letter-spacing: -0.01em; }
.day-hours { font-size: 11px; margin-top: 4px; opacity: 0.7; font-family: "Geist Mono", monospace; }

/* ── Mappa ────────────────────────────────────────────────────────────── */
.mappa { padding: 40px 0; }
.mappa-wrap {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: grid;
  grid-template-columns: 360px 1fr;
}
@media (max-width: 900px) { .mappa-wrap { grid-template-columns: 1fr; } }
.mappa-side { padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--glass-bg-strong); border-right: 1px solid var(--glass-border); }
@media (max-width: 900px) { .mappa-side { border-right: none; border-bottom: 1px solid var(--glass-border); } }
.mappa-side h3 { font-family: "Fraunces", serif; font-size: 30px; margin: 6px 0 0; letter-spacing: -0.02em; font-weight: 500; }
.mappa-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.mappa-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
  transition: all 0.18s;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
}
.mappa-item:hover { background: var(--glass-chip-bg); }
.mappa-item.active { background: var(--accent); color: var(--accent-ink); }
.mappa-item .pill { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.mappa-item .place { font-family: "Fraunces", serif; font-size: 17px; font-weight: 500; }
.mappa-item .sub { font-size: 12px; opacity: 0.7; margin-top: 1px; }
.mappa-item .hrs { font-family: "Geist Mono", monospace; font-size: 11px; opacity: 0.75; }
.mappa-map { min-height: 480px; height: 100%; }
#leaflet-map { width: 100%; height: 100%; min-height: 480px; }
.leaflet-container { background: var(--crema-deep) !important; border-radius: 0 !important; font-family: inherit !important; }
.leaflet-popup-content-wrapper { background: var(--glass-bg-strong) !important; backdrop-filter: blur(22px); border-radius: 14px !important; color: var(--fg) !important; border: 1px solid var(--glass-border); }
.leaflet-popup-tip { background: var(--glass-bg-strong) !important; }
.leaflet-popup-content { font-family: inherit !important; margin: 12px 14px !important; }
.leaflet-popup-content strong { font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; }
.map-pin {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--crema-pale);
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.4);
  display: grid; place-items: center;
  color: var(--crema-pale);
  position: relative;
}
.map-pin::after {
  /* puntina sotto il badge */
  content: "";
  position: absolute; bottom: -4px; left: 50%;
  width: 10px; height: 10px;
  background: var(--accent);
  border-right: 2px solid var(--crema-pale);
  border-bottom: 2px solid var(--crema-pale);
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}
.map-pin svg { width: 19px; height: 19px; display: block; }
.map-pin.today { background: var(--gold); width: 40px; height: 40px; }
.map-pin.today::after { background: var(--gold); }
.map-pin.today svg { width: 22px; height: 22px; }

/* ── Testimonianze ────────────────────────────────────────────────────── */
.testi { padding: 60px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}
.testi-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--glass-highlight), transparent 40%); opacity: 0.35; mix-blend-mode: overlay; pointer-events: none; }
.testi-quote { font-family: "Fraunces", serif; font-style: italic; font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; }
.testi-quote::before { content: "“"; font-size: 56px; line-height: 0; vertical-align: -0.35em; color: var(--accent); margin-right: 4px; }
.testi-foot { margin-top: 18px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 500; font-size: 15px; overflow: hidden; flex: 0 0 auto; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testi-meta { font-size: 13px; }
.testi-meta .n { font-weight: 500; color: var(--fg); }
.testi-meta .r { color: var(--muted); font-size: 12px; }
.stars { color: var(--gold-c); letter-spacing: 2px; font-size: 13px; margin-left: auto; }

/* Section eyebrow row */
.section-intro { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-top: 60px; flex-wrap: wrap; }
.section-intro p { color: var(--muted); max-width: 420px; margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.hide-on-mobile { display: initial; }
@media (max-width: 640px) { .hide-on-mobile { display: none; } }
