/* ============================================================
   HEARTH — Landing
   Editorial base + dynamic moments. Cream/Albra/Hearth-red palette
   inherited from the deck. Responsive parity (mobile + desktop).
   ============================================================ */

/* ---------- Fonts (Albra, copied from /fonts) ---------- */
@font-face { font-family: "Albra Display"; src: url("../fonts/Albra-Display-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Albra Display"; src: url("../fonts/Albra-Display-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albra Display"; src: url("../fonts/Albra-Display-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Albra Display"; src: url("../fonts/Albra-Display-Semi.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Albra Display"; src: url("../fonts/Albra-Display-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Albra"; src: url("../fonts/Albra-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albra"; src: url("../fonts/Albra-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Albra"; src: url("../fonts/Albra-Light-Italic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  --cream:#FFF8E3; --cream-2:#FBF1D0; --paper:#EFE2BE;
  --ink:#0B0B0B; --ink-2:#1A1A1A;
  --hearth-red:#F44D41; --electric-blue:#0D4CF2;
  --stone:#8C8473; --stone-2:#5B564A;
  --hairline: rgba(11,11,11,.14);
  --hairline-strong: rgba(11,11,11,.28);
  --font-serif: "Albra Display", Georgia, serif;
  --font-text:  "Albra", "Albra Display", Georgia, serif;
  --font-sans:  "Maven Pro", "Inter", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 80px);
  --section-py: clamp(80px, 12vh, 180px);
  --radius: 14px;

  --t-display: clamp(48px, 8vw, 128px);
  --t-h1:      clamp(40px, 6vw, 92px);
  --t-h2:      clamp(34px, 4.5vw, 72px);
  --t-h3:      clamp(22px, 2vw, 32px);
  --t-lead:    clamp(18px, 1.6vw, 26px);
  --t-body:    clamp(16px, 1.1vw, 18px);
  --t-small:   14px;
  --t-eyebrow: 14px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.red { color: var(--hearth-red); }

/* ---------- Reusable type ---------- */
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-bottom: 24px;
}
.eyebrow .red { color: var(--hearth-red); margin-right: 4px; }

.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.h-display.sm { font-size: var(--t-h2); }

.lead {
  font-family: var(--font-text);
  font-size: var(--t-lead);
  line-height: 1.4;
  font-weight: 300;
  max-width: 32em;
  margin: 24px 0 0;
  text-wrap: pretty;
}
.lead strong { font-weight: 600; color: var(--ink); }

/* Section frame */
.section {
  padding: var(--section-py) var(--pad);
  position: relative;
}
.band { max-width: 1280px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--hearth-red); }
.btn-ghost {
  border: 1px solid var(--hairline-strong); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-primary.lg, .btn-ghost.lg { padding: 16px 28px; font-size: 16px; }
.btn-primary.full, .btn-ghost.full { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(255, 248, 227, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled {
  border-color: var(--hairline);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-word {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-word-img {
  display: inline-block;
  width: 110px; height: 24px;
  background-color: var(--ink);
  -webkit-mask: url("../assets/hearth-wordmark.svg") left center / contain no-repeat;
          mask: url("../assets/hearth-wordmark.svg") left center / contain no-repeat;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 15px; font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--hearth-red); }
.nav-links a:hover::after { transform: scaleX(1); background: var(--hearth-red); }

/* Active state — driven by scroll-spy in landing.js */
.nav-links a.active {
  color: var(--hearth-red);
}
.nav-links a.active::after {
  transform: scaleX(1);
  background: var(--hearth-red);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; gap: 4px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--stone-2);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle .lt-sep { color: var(--hairline-strong); }
[data-lang="it"] .lt-it { color: var(--ink); }
[data-lang="en"] .lt-en { color: var(--ink); }
[data-lang="it"] .lt-en { color: var(--stone); }
[data-lang="en"] .lt-it { color: var(--stone); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad) 100px;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(244,77,65,.06), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(13,76,242,.05), transparent 55%),
    var(--cream);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .6;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.hero-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 600;
  margin-bottom: 36px;
}
.hero-mark .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hearth-red);
  animation: pulse 2.6s ease-in-out infinite;
}
.hero-mark .dot.red { background: var(--hearth-red); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero-title .it { font-weight: 400; }
.hero-lead {
  font-family: var(--font-text);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.4;
  max-width: 32em;
  margin: 0 0 36px;
  color: var(--ink-2);
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 500;
}
.hero-meta .sep { color: var(--hairline-strong); }

/* Scraps — decorative, parallax-driven via JS */
.hero-scraps {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.hero-scraps .scrap {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(11,11,11,.16), 0 2px 6px rgba(11,11,11,.08);
  transition: transform .2s linear;
}
.hero-scraps .scrap.photo {
  background-size: cover; background-position: center;
}
.hero-scraps .scrap.note {
  padding: 14px 16px;
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  font-size: 13px; line-height: 1.35;
  font-family: var(--font-sans);
  color: var(--ink-2);
}
.hero-scraps .scrap.note .lab {
  display: block;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone); font-weight: 700;
  margin-bottom: 4px;
}
.hero-scraps .scrap.note.red { background: var(--hearth-red); color: var(--cream); border-color: transparent; }
.hero-scraps .scrap.note.red .lab { color: var(--cream); opacity: .7; }
.hero-scraps .scrap.note.blue { background: var(--electric-blue); color: var(--cream); border-color: transparent; }
.hero-scraps .scrap.note.blue .lab { color: var(--cream); opacity: .7; }

.hero-scraps .s1 { top: 8%; right: 4%; width: clamp(120px, 14vw, 220px); aspect-ratio: 4/5; transform: rotate(4deg); }
.hero-scraps .s2 { top: 38%; right: -3%; width: clamp(140px, 16vw, 260px); aspect-ratio: 3/2; transform: rotate(-3deg); }
.hero-scraps .s3 { bottom: 6%; right: 10%; width: clamp(120px, 14vw, 200px); aspect-ratio: 1/1; transform: rotate(2deg); }
.hero-scraps .s4 { top: 14%; right: 24%; width: 180px; transform: rotate(-5deg); }
.hero-scraps .s5 { bottom: 22%; right: 32%; width: 170px; transform: rotate(3deg); }
.hero-scraps .s6 { top: 56%; right: 28%; width: 180px; transform: rotate(-2deg); }
.hero-scraps .s7 { bottom: 8%; right: 36%; width: 160px; transform: rotate(4deg); }

@media (max-width: 1024px) {
  .hero-scraps .s4, .hero-scraps .s5, .hero-scraps .s6, .hero-scraps .s7 { display: none; }
  .hero-scraps .s1, .hero-scraps .s2, .hero-scraps .s3 { opacity: .4; }
}

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--hairline-strong); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
  z-index: 2;
}
.hero-scroll span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--ink);
  animation: scrollbob 1.6s ease-in-out infinite;
}
@keyframes scrollbob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: .3; }
}

/* ============================================================
   PROBLEMA — pinned scrub: chaos → order
   ============================================================ */
.problema { background: var(--cream); }
.problema .h-display { font-size: var(--t-h2); }

.scrub-stage {
  margin-top: 80px;
  height: 300vh; /* scroll length */
  position: relative;
}
.scrub-track {
  position: sticky; top: 8vh;
  height: 84vh;
  display: flex; align-items: center; justify-content: center;
}
.scrub-frame {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.chaos-grid {
  position: absolute; inset: 0;
}
.chaos-grid .item {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(11,11,11,.12);
  background-size: cover; background-position: center;
  background-color: var(--cream);
  border: 1px solid var(--hairline);
  display: flex; align-items: flex-end;
  padding: 10px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); font-weight: 700;
  transition: none;
  will-change: transform, opacity;
}
.chaos-grid .item .lab {
  background: var(--cream); padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--hairline);
}
.chaos-grid .item.note .lab { background: var(--cream-2); }
.chaos-grid .item.red { background: var(--hearth-red); color: var(--cream); border-color: transparent; }
.chaos-grid .item.red .lab { background: rgba(255,248,227,.18); color: var(--cream); border-color: transparent; }
.chaos-grid .item.blue { background: var(--electric-blue); color: var(--cream); border-color: transparent; }
.chaos-grid .item.blue .lab { background: rgba(255,248,227,.18); color: var(--cream); border-color: transparent; }
.chaos-grid .item.ink { background: var(--ink); color: var(--cream); border-color: transparent; }
.chaos-grid .item.ink .lab { background: rgba(255,248,227,.12); color: var(--cream); border-color: transparent; }

.scrub-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 700;
  background: rgba(255, 248, 227, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 18px;
}
.scrub-caption .cap-from { transition: color .3s ease; }
.scrub-caption .cap-to { color: var(--hearth-red); transition: color .3s ease; }
.scrub-caption .cap-arrow {
  width: 28px; height: 1px; background: var(--ink);
  position: relative;
}
.scrub-caption .cap-arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--ink); border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

/* ============================================================
   PILASTRI
   ============================================================ */
.pilastri { background: var(--cream-2); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.pillar {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11,11,11,.08); }
.pillar-img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.pillar-body { padding: 24px 22px 28px; }
.pillar-num {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.18em; color: var(--stone);
  font-weight: 700; margin-bottom: 10px;
}
.pillar-ttl {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--t-h3);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 15px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.pillar.red .pillar-num { color: var(--hearth-red); }
.pillar.ink .pillar-num { color: var(--ink); }
.pillar.blue .pillar-num { color: var(--electric-blue); }

@media (max-width: 1024px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pillar-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SCHEDA — phone + outputs
   ============================================================ */
.scheda { background: var(--cream); }
.scheda-stage {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  margin-top: 80px;
  align-items: center;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.phone-frame {
  width: 360px; height: 720px;
  background: #15140e;
  border-radius: 48px;
  padding: 14px;
  position: relative;
  box-shadow: 0 30px 70px rgba(11,11,11,.22), 0 4px 8px rgba(11,11,11,.1);
  margin: 0 auto;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px;
  background: #0a0a08;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.ph-bar {
  display: flex; gap: 4px; justify-content: center;
  padding: 16px 0 4px;
}
.ph-bar span { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: .35; }
.ph-bar span:first-child { background: var(--hearth-red); opacity: 1; }
.ph-hero {
  height: 220px; position: relative;
  background-size: cover; background-position: center;
  margin: 0 14px; border-radius: 14px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
}
.ph-hero::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(180deg, transparent 40%, rgba(11,11,11,.7));
  z-index: 1;
}
.ph-tag {
  position: relative; z-index: 2;
  align-self: flex-start;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); font-weight: 700;
  background: rgba(255,248,227,.22);
  backdrop-filter: blur(4px);
  padding: 4px 8px; border-radius: 4px;
  margin-bottom: 8px;
}
.ph-name {
  position: relative; z-index: 2;
  font-family: var(--font-serif); font-weight: 500;
  font-size: 22px; line-height: 1.1;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.ph-meta-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 14px 18px 6px;
}
.ph-meta-row .chip {
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  background: var(--cream-2); border: 1px solid var(--hairline);
  font-weight: 600; color: var(--ink-2);
}
.ph-meta-row .chip.ok { background: #e7f3ec; border-color: #cfe7d8; color: #1f6b3c; }
.ph-body {
  font-family: var(--font-text); font-weight: 300;
  font-size: 14px; line-height: 1.5;
  padding: 8px 18px 14px;
  color: var(--ink-2);
  margin: 0;
}
.ph-actions {
  display: flex; gap: 8px;
  padding: 0 18px 14px;
}
.ph-actions .ph-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  background: var(--ink); color: var(--cream);
  border-radius: 999px;
  padding: 9px 12px;
}
.ph-actions .ph-btn .ic { font-weight: 700; }
.ph-actions .ph-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline-strong); }
.ph-foot {
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--hairline);
}
.ph-foot .lab { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.ph-foot-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ph-foot-tags span {
  font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px;
  background: var(--cream-2); border: 1px solid var(--hairline);
}

/* Outputs cards */
.outputs {
  display: grid; gap: 22px;
}
.op {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px; align-items: center;
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .3s ease, border-color .3s ease;
}
.op:hover { transform: translateX(6px); border-color: var(--ink); }
.op .lab { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.op .ttl { font-family: var(--font-serif); font-size: 22px; line-height: 1.2; margin-top: 4px; display: block; }
.op .meta { font-size: 14px; color: var(--ink-2); margin-top: 6px; display: block; }
.op-text { display: flex; flex-direction: column; }

/* QR */
.qr-mini {
  width: 110px; height: 110px;
  background:
    radial-gradient(var(--ink) 18%, transparent 22%),
    radial-gradient(var(--ink) 18%, transparent 22%);
  background-size: 11px 11px;
  background-position: 0 0, 5.5px 5.5px;
  background-color: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--hairline);
  position: relative;
}
.qr-mini::before, .qr-mini::after {
  content: ""; position: absolute;
  width: 24px; height: 24px;
  background: var(--cream); border: 4px solid var(--ink);
}
.qr-mini::before { top: 6px; left: 6px; }
.qr-mini::after { top: 6px; right: 6px; }

/* Guide */
.guide-mini {
  width: 110px; height: 110px;
  background: var(--cream);
  border-radius: 8px; border: 1px solid var(--hairline);
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.guide-mini .g-row { display: flex; gap: 4px; }
.guide-mini .g-row span { height: 4px; border-radius: 2px; background: var(--ink); display: block; }
.guide-mini .g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: auto; }
.guide-mini .g-grid span { aspect-ratio: 1/1; border-radius: 4px; background: var(--paper); }
.guide-mini .g-grid span:nth-child(2) { background: var(--hearth-red); }

/* App */
.app-mini {
  width: 110px; height: 110px;
  background: var(--ink);
  border-radius: 8px;
  padding: 10px;
  position: relative;
  color: var(--cream);
  display: flex; flex-direction: column; gap: 6px;
  justify-content: center;
}
.app-mini .app-pin {
  position: absolute; top: 8px; right: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--hearth-red);
  box-shadow: 0 0 0 4px rgba(244,77,65,.25);
  animation: pulse 2s infinite;
}
.app-mini .app-row { display: flex; align-items: center; gap: 6px; }
.app-mini .r-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); opacity: .6; }
.app-mini .r-bar { height: 4px; border-radius: 2px; background: var(--cream); opacity: .5; }
.app-mini .app-row:first-child .r-dot { background: var(--hearth-red); opacity: 1; }
.app-mini .app-row:first-child .r-bar { background: var(--hearth-red); opacity: 1; }

@media (max-width: 980px) {
  .scheda-stage { grid-template-columns: 1fr; gap: 40px; }
  .phone-frame { transform: scale(.9); transform-origin: top center; }
}

/* ============================================================
   METODO — vertical timeline
   ============================================================ */
.metodo { background: var(--ink); color: var(--cream); }
.metodo .eyebrow { color: var(--paper); }
.metodo .eyebrow .red { color: var(--hearth-red); }
.metodo .h-display { color: var(--cream); }

.timeline {
  list-style: none; padding: 0; margin: 80px auto 0;
  max-width: 920px;
  position: relative;
  counter-reset: step;
}
.timeline::before {
  content: ""; position: absolute;
  left: 30px; top: 12px; bottom: 12px;
  width: 1px; background: rgba(255,248,227,.18);
}
.timeline .step {
  position: relative;
  padding: 0 0 56px 80px;
}
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step::before {
  content: "";
  position: absolute; left: 22px; top: 8px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--ink); border: 2px solid var(--cream);
}
.timeline .step.live::before { background: var(--hearth-red); border-color: var(--hearth-red); animation: pulse 2s infinite; }

.timeline .step-num {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,248,227,.5); font-weight: 700;
}
.timeline .step-ttl {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.timeline .step p {
  font-family: var(--font-text); font-weight: 300;
  font-size: 17px; line-height: 1.5;
  color: rgba(255,248,227,.78);
  max-width: 36em;
  margin: 0;
}

/* ============================================================
   TERRITORI — interactive map
   ============================================================ */
.territori { background: var(--cream); }
.map-stage {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  margin-top: 80px;
  align-items: stretch;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.map-canvas {
  position: relative;
  background: var(--cream-2);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  padding: 24px;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 500 / 820;
  margin: 0 auto;
}
.map-italy { width: 100%; height: 100%; display: block; }
.map-pin {
  position: absolute;
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  transform: translate(-50%, -8px);
  z-index: 2;
}
.map-pin .pin-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--cream), 0 4px 8px rgba(11,11,11,.2);
  transition: transform .2s ease;
}
.map-pin .pin-dot.red { background: var(--hearth-red); }
.map-pin .pin-dot.ink { background: var(--ink); }
.map-pin:hover .pin-dot, .map-pin.active .pin-dot {
  transform: scale(1.25);
}
.map-pin .pin-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--cream); padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.map-pin.active .pin-label {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

.map-detail {
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.md-img {
  width: 100%; aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  border-radius: 10px;
  transition: opacity .3s ease;
}
.md-tag {
  align-self: flex-start;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 700;
}
.md-name {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.015em;
}
.md-type { font-size: 14px; color: var(--ink-2); margin: 0; }
.md-out {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.md-out .lab { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.md-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.md-stats > div { display: flex; flex-direction: column; gap: 2px; }
.md-stats .k {
  font-family: var(--font-serif);
  font-size: 28px; line-height: 1;
  color: var(--ink); font-weight: 500;
}
.md-stats .v {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 600;
}

@media (max-width: 980px) {
  .map-stage { grid-template-columns: 1fr; gap: 24px; }
  .map-canvas { min-height: 420px; padding: 20px; }
}

/* ============================================================
   MODELLO
   ============================================================ */
.modello { background: var(--cream-2); }
.model-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 80px;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.model-card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.model-card.cont {
  background: var(--ink); color: var(--cream); border-color: transparent;
}
.m-num {
  font-family: var(--font-serif);
  font-size: 56px; font-weight: 300; line-height: 1;
  color: var(--stone-2);
}
.model-card.cont .m-num { color: rgba(255,248,227,.5); }
.m-tag {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--hearth-red);
  align-self: flex-start;
}
.model-card.cont .m-tag { color: var(--hearth-red); }
.m-ttl {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}
.model-card p {
  font-size: 15px; line-height: 1.55;
  margin: 0;
  color: var(--ink-2);
  max-width: 38em;
}
.model-card.cont p { color: rgba(255,248,227,.78); }
.m-foot {
  margin-top: auto;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--stone);
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.model-card.cont .m-foot { color: rgba(255,248,227,.5); border-top-color: rgba(255,248,227,.18); }
.model-foot {
  margin: 36px auto 0;
  max-width: 1280px;
  font-size: 16px; color: var(--stone-2);
  font-style: italic;
  text-align: center;
}
.model-foot strong { color: var(--ink); font-style: normal; font-weight: 700; }

@media (max-width: 760px) { .model-grid { grid-template-columns: 1fr; } }

/* ============================================================
   IMPATTO
   ============================================================ */
.impatto { background: var(--cream); }
.impact-grid {
  list-style: none; padding: 0; margin: 80px auto 0;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.impact {
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s ease;
}
.impact:hover { transform: translateY(-4px); }
.impact.accent { background: var(--hearth-red); color: var(--cream); border-color: transparent; }
.i-num {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 400;
  color: var(--stone);
}
.impact.accent .i-num { color: rgba(255,248,227,.7); }
.impact h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0;
}
.impact p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.impact.accent p { color: rgba(255,248,227,.9); }

@media (max-width: 1100px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .impact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTATTI
   ============================================================ */
.contatti { background: var(--ink); color: var(--cream); }
.contatti .hero-mark { color: rgba(255,248,227,.7); margin-bottom: 24px; }
.contatti-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.closing-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.contatti .lead { color: rgba(255,248,227,.78); }

.contatti-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: rgba(255,248,227,.04);
  border: 1px solid rgba(255,248,227,.18);
  border-radius: var(--radius);
  padding: 28px;
}
.contatti-form .full { grid-column: 1 / -1; }
.contatti-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,248,227,.7); font-weight: 700;
}
.contatti-form input,
.contatti-form select,
.contatti-form textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,248,227,.28);
  color: var(--cream);
  padding: 8px 0;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 300;
  outline: none;
  transition: border-color .2s ease;
}
.contatti-form select { font-family: var(--font-sans); font-weight: 500; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 14px) 18px, calc(100% - 9px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.contatti-form select option { background: var(--ink); color: var(--cream); }
.contatti-form input:focus,
.contatti-form select:focus,
.contatti-form textarea:focus {
  border-bottom-color: var(--hearth-red);
}
.contatti-form input::placeholder, .contatti-form textarea::placeholder { color: rgba(255,248,227,.35); font-weight: 300; }
.contatti-form textarea { resize: vertical; }
.contatti-form .btn-primary { background: var(--hearth-red); }
.contatti-form .btn-primary:hover { background: var(--cream); color: var(--ink); }
.form-note {
  grid-column: 1 / -1;
  font-size: 13px; color: rgba(255,248,227,.6);
  margin: 0; text-align: center;
}
.form-note a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .contatti-grid { grid-template-columns: 1fr; gap: 40px; }
  .contatti-form { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: var(--cream);
  padding: 40px var(--pad) 32px;
  border-top: 1px solid rgba(255,248,227,.12);
}
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 36px; height: 36px; }
.foot-word { font-family: var(--font-serif); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.foot-word-img {
  display: inline-block;
  width: 150px; height: 32px;
  background-color: var(--cream);
  -webkit-mask: url("../assets/hearth-wordmark.svg") left center / contain no-repeat;
          mask: url("../assets/hearth-wordmark.svg") left center / contain no-repeat;
}
.foot-sub { font-size: 13px; color: rgba(255,248,227,.6); margin-top: 2px; }
.foot-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  font-size: 14px;
}
.foot-cols > div { display: flex; flex-direction: column; gap: 4px; }
.foot-h {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,248,227,.5); font-weight: 700;
  margin-bottom: 6px;
}
.foot-cols a:hover { color: var(--hearth-red); }
.foot-bottom {
  max-width: 1280px; margin: 30px auto 0;
  padding-top: 18px; border-top: 1px solid rgba(255,248,227,.12);
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,248,227,.5); font-weight: 600;
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   REVEAL — entry animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

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

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   NAV — burger + mobile drawer
   ============================================================ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav-burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-burger:hover { border-color: var(--ink); }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(360px, 86vw);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 90px 32px 32px;
    box-shadow: -20px 0 60px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
    display: flex !important;
    z-index: 49;
  }
  body.menu-open .nav-links { transform: translateX(0); }
  body.menu-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(11,11,11,.4);
    z-index: 48;
    animation: fadein .25s ease;
  }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  .nav-links a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .nav-links a::after { display: none; }
  .nav-links a:last-child { border-bottom: 0; }
  /* hide nav CTA on mobile (we have one in hero + footer) */
  .nav-actions .btn-primary { display: none; }
}

@media (max-width: 540px) {
  .nav-word { font-size: 20px; }
  .nav-word-img { width: 92px; height: 20px; }
  .nav-brand img { width: 24px; height: 24px; }
}

/* ============================================================
   OPERATORI E PARTNER
   ============================================================ */
.operatori { background: var(--cream); }
.op-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.op-card {
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.op-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(11,11,11,.1);
}
.op-img {
  position: relative;
  aspect-ratio: 5/4;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}
.op-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 50%, rgba(11,11,11,.55) 100%);
}
.op-pin {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: var(--cream);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.op-pin.red { background: var(--hearth-red); color: var(--cream); }
.op-pin.blue { background: var(--electric-blue); color: var(--cream); }
.op-cap {
  position: absolute;
  bottom: 14px; left: 16px;
  z-index: 2;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.op-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.op-ttl {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
.op-meta {
  font-size: 13px;
  color: var(--stone-2);
  margin: 0;
  font-weight: 500;
}
.op-meta .dot { color: var(--hairline-strong); margin: 0 6px; }
.op-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  margin: 4px 0 6px;
  padding-left: 12px;
  border-left: 2px solid var(--hearth-red);
}
.op-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 700;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 1024px) { .op-grid { grid-template-columns: repeat(2, 1fr); } .op-grid > :nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 640px)  { .op-grid { grid-template-columns: 1fr; } .op-grid > :nth-child(3) { grid-column: auto; } }

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

/* ============================================================
   CREATOR GANCIO (homepage hook)
   ============================================================ */
.creator-gancio {
  background: var(--cream-2);
  padding: var(--section-py) var(--pad);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.cg-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.cg-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.cg-title .it { font-style: italic; }
.cg-lead {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--t-lead);
  line-height: 1.4;
  margin: 0 0 36px;
  max-width: 32em;
  color: var(--ink-2);
}
.cg-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.cg-b {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink-2);
}
.cg-b-n {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--hearth-red);
  letter-spacing: -0.01em;
  min-width: 22px;
}
.cg-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cg-stores {
  display: flex; gap: 10px;
}
.cg-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: transform .15s ease, background .2s ease;
}
.cg-store:hover { background: var(--hearth-red); transform: translateY(-1px); }
.cg-store svg { flex-shrink: 0; }
.cg-store span { display: flex; flex-direction: column; line-height: 1.05; }
.cg-store small { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; opacity: .7; }
.cg-store strong { font-size: 14px; font-weight: 600; }

/* Phone mockup (Creator app preview) */
.cg-right {
  display: flex; justify-content: center;
  position: relative;
}
.cg-phone {
  width: 320px;
  background: #15140e;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(11,11,11,.22), 0 4px 8px rgba(11,11,11,.1);
  position: relative;
}
.cg-phone::before {
  content: ""; position: absolute;
  inset: -1px;
  border-radius: 41px;
  border: 1px solid rgba(255,248,227,.08);
  pointer-events: none;
}
.cg-phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px;
  background: #0a0a08;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.cg-phone-screen {
  background: var(--cream);
  border-radius: 28px;
  padding: 36px 18px 22px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.cg-app-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 700;
}
.cg-app-bar .cg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hearth-red);
}
.cg-task {
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.cg-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--hearth-red); color: var(--cream);
  padding: 3px 8px; border-radius: 4px;
  font-weight: 700;
}
.cg-task h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
  margin: 4px 0 0;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.cg-task p {
  font-size: 11px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}
.cg-progress {
  height: 4px;
  background: rgba(11,11,11,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.cg-progress span {
  display: block;
  height: 100%;
  background: var(--hearth-red);
}
.cg-progress-lab {
  font-size: 10px;
  color: var(--stone-2);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.cg-coins {
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.cg-coins-lab {
  display: block;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,248,227,.6);
  font-weight: 700;
  margin-bottom: 4px;
}
.cg-coins-n {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}
.cg-coins-icon {
  font-size: 28px;
  color: var(--hearth-red);
}

.cg-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--cream);
}
.cg-badge-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--hearth-red);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.cg-badge strong { font-family: var(--font-serif); font-weight: 500; font-size: 14px; }
.cg-badge small { font-size: 10px; color: var(--stone-2); font-weight: 500; letter-spacing: 0.04em; }

@media (max-width: 980px) {
  .cg-inner { grid-template-columns: 1fr; gap: 60px; }
  .cg-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cg-stores { flex-direction: column; width: 100%; }
  .cg-store { justify-content: center; }
  .cg-phone { width: 280px; }
}
.trust {
  background: var(--cream-2);
  padding: 60px var(--pad);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-band {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 56px;
  align-items: center;
}
.trust-lab {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone-2); font-weight: 700;
  white-space: nowrap;
}
.trust-marks {
  display: flex;
  justify-content: space-around;
  align-items: baseline;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-mark {
  display: flex; flex-direction: column; gap: 2px;
  align-items: center;
  text-align: center;
  transition: transform .2s ease, opacity .2s ease;
}
.trust-mark:hover { transform: translateY(-2px); }
.trust-mark .tm-name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.trust-mark .tm-sub {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone); font-weight: 700;
  margin-top: 2px;
}
.trust-foot {
  font-size: 13px;
  color: var(--stone-2);
  margin: 0;
  text-align: right;
  font-weight: 500;
  font-style: italic;
}
.trust-foot a {
  color: var(--hearth-red);
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
}
.trust-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .trust-band { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .trust-foot { text-align: center; }
  .trust-marks { justify-content: center; }
}

/* ============================================================
   MAP DETAIL — "Read case" link
   ============================================================ */
.md-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: background .2s ease, transform .15s ease;
}
.md-link:hover { background: var(--hearth-red); transform: translateY(-1px); }


/* ============================================================
   MOBILE POLISH — comprehensive < 768px / < 480px
   Tighter type scale, horizontal rails for grids, snug padding.
   ============================================================ */

/* Reusable horizontal-rail primitive (mobile only — see media queries below) */
.h-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.h-rail::-webkit-scrollbar { display: none; }
.h-rail > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  :root {
    --pad: 18px;
    --section-py: 56px;
    --t-h2: clamp(26px, 7vw, 36px);
    --t-h3: 19px;
    --t-lead: 15px;
    --t-body: 15px;
    --t-eyebrow: 11px;
  }

  /* NAV */
  .nav { padding: 10px var(--pad); gap: 10px; }
  .nav-actions { gap: 8px; }
  .lang-toggle { padding: 4px 8px; font-size: 11px; }
  .nav-burger { width: 34px; height: 34px; }
  .nav-brand img { width: 24px; height: 24px; }
  .nav-word-img { width: 86px; height: 18px; }

  /* Section frame */
  .section { padding: var(--section-py) var(--pad); }
  .eyebrow { font-size: 11px; margin-bottom: 16px; letter-spacing: 0.14em; }
  .h-display { font-size: clamp(28px, 8vw, 40px); line-height: 1.05; }
  .h-display.sm { font-size: clamp(24px, 7vw, 34px); line-height: 1.08; }
  .lead { font-size: 15px; line-height: 1.5; margin-top: 16px; }

  /* HERO — generous breathing room; scraps stay as faded background texture */
  .hero {
    min-height: auto;
    padding: 64px var(--pad) 80px;
  }
  .hero-mark { margin-bottom: 28px; font-size: 10px; letter-spacing: 0.14em; }
  .hero-title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.02;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
  }
  .hero-lead {
    font-size: 15px; line-height: 1.55;
    margin: 28px 0 32px;
  }
  .hero-cta {
    flex-direction: column; align-items: stretch;
    gap: 10px; margin-bottom: 32px;
  }
  .hero-cta .btn-primary.lg, .hero-cta .btn-ghost.lg {
    width: 100%; padding: 15px 18px; font-size: 14px;
  }
  .hero-meta { font-size: 10px; gap: 8px; flex-wrap: wrap; letter-spacing: 0.1em; }
  .hero-scroll { display: none; }

  /* Scraps on mobile — soft background texture, BEHIND the content.
     Photos drift in corners with low opacity; one note adds a touch of color. */
  .hero-scraps { display: block !important; opacity: 1; }
  .hero-scraps .scrap { box-shadow: 0 8px 24px rgba(11,11,11,.10), 0 1px 3px rgba(11,11,11,.06); }
  .hero-scraps .scrap.photo { opacity: .22; filter: saturate(0.85); }
  .hero-scraps .scrap.note { display: none; }
  /* Keep the red note visible as a small accent — bottom-left, small, low opacity */
  .hero-scraps .scrap.note.s5 {
    display: block; opacity: .55;
    top: auto; bottom: 6%; right: auto; left: -18px;
    width: 130px; padding: 10px 12px; font-size: 11px;
    transform: rotate(-6deg);
  }
  .hero-scraps .scrap.note.s5 .lab { font-size: 9px; margin-bottom: 2px; }
  /* Photos: re-place for a portrait viewport so they frame the text */
  .hero-scraps .s1 {
    top: 6%; right: -24px; width: 130px; aspect-ratio: 4/5;
    transform: rotate(6deg);
  }
  .hero-scraps .s2 {
    top: auto; bottom: 24%; right: -36px; width: 180px; aspect-ratio: 3/2;
    transform: rotate(-4deg);
  }
  .hero-scraps .s3 {
    display: none; /* keep the hero airy — two photos + one note is enough */
  }

  /* PROBLEMA — mobile uses autoplay-on-enter (no sticky scrub) */
  .problema .h-display { font-size: clamp(24px, 7vw, 34px); line-height: 1.08; }
  .problema .lead { font-size: 15px; margin-top: 14px; }
  .scrub-stage { margin-top: 28px; height: auto; }
  .scrub-track { position: relative; top: 0; height: auto; padding: 8px 0 16px; }
  .scrub-frame { aspect-ratio: 3/4; width: 100%; }
  .chaos-grid .item {
    font-size: 9px; letter-spacing: 0.06em;
    padding: 6px;
  }
  .chaos-grid .item .lab {
    padding: 2px 5px; font-size: 9px;
  }
  .scrub-caption {
    font-size: 9px; letter-spacing: 0.12em;
    padding: 6px 12px; gap: 8px;
    bottom: 12px;
  }
  .scrub-caption .cap-arrow { width: 14px; }

  /* PILASTRI — horizontal scroll rail */
  .pillar-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin-top: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px var(--pad) 4px var(--pad);
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
  }
  .pillar-grid::-webkit-scrollbar { display: none; }
  .pillar {
    flex: 0 0 78%;
    scroll-snap-align: start;
    max-width: 280px;
  }
  .pillar-img { aspect-ratio: 4/3; }
  .pillar-body { padding: 16px 16px 18px; }
  .pillar-num { font-size: 11px; margin-bottom: 6px; }
  .pillar-ttl { font-size: 19px; margin-bottom: 6px; }
  .pillar p { font-size: 13.5px; line-height: 1.45; }

  /* SCHEDA — phone shrink + outputs as horizontal rail */
  .scheda-stage {
    grid-template-columns: 1fr;
    gap: 28px; margin-top: 28px;
  }
  .phone-frame {
    width: 280px; height: 560px;
    transform: none;
    padding: 11px;
    border-radius: 38px;
  }
  .phone-notch { width: 90px; height: 18px; }
  .phone-screen { border-radius: 28px; }
  .ph-hero { height: 160px; margin: 0 10px; }
  .ph-name { font-size: 18px; }
  .ph-body { font-size: 12.5px; padding: 8px 14px 10px; line-height: 1.45; }
  .ph-meta-row { padding: 10px 14px 4px; gap: 4px; }
  .ph-meta-row .chip { font-size: 10px; padding: 3px 7px; }
  .ph-actions { padding: 0 14px 10px; }
  .ph-actions .ph-btn { font-size: 11px; padding: 7px 10px; }
  .ph-foot { padding: 10px 14px 14px; }
  .ph-foot .lab { font-size: 9px; }
  .ph-foot-tags span { font-size: 10px; padding: 3px 6px; }

  .outputs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px var(--pad);
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
  }
  .outputs::-webkit-scrollbar { display: none; }
  .op {
    flex: 0 0 78%;
    max-width: 280px;
    scroll-snap-align: start;
    grid-template-columns: 64px 1fr;
    gap: 14px; padding: 14px;
  }
  .op .lab { font-size: 10px; }
  .op .ttl { font-size: 16px; line-height: 1.2; }
  .op .meta { font-size: 12px; margin-top: 4px; }
  .qr-mini, .guide-mini, .app-mini { width: 64px; height: 64px; }

  /* OPERATORI — horizontal scroll rail */
  .op-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin-top: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px var(--pad);
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
  }
  .op-grid::-webkit-scrollbar { display: none; }
  .op-grid > .op-card {
    flex: 0 0 80%;
    max-width: 300px;
    scroll-snap-align: start;
    grid-column: auto !important;
  }
  .op-card .op-img { aspect-ratio: 5/4; }
  .op-pin { font-size: 9px; padding: 4px 8px; }
  .op-cap { font-size: 11px; }
  .op-body { padding: 16px 16px 18px; gap: 6px; }
  .op-ttl { font-size: 18px; line-height: 1.18; }
  .op-quote { font-size: 13.5px; padding-left: 10px; line-height: 1.35; }
  .op-meta { font-size: 12px; }
  .op-tag { font-size: 10px; padding-top: 10px; }

  /* TRUST */
  .trust { padding: 32px var(--pad); }
  .trust-band { gap: 16px; }
  .trust-marks { gap: 14px 22px; }
  .trust-mark .tm-name { font-size: 16px; }
  .trust-mark .tm-sub { font-size: 9px; letter-spacing: 0.1em; }
  .trust-foot { font-size: 12px; }
  .trust-lab { font-size: 10px; letter-spacing: 0.18em; }

  /* METODO timeline */
  .timeline { margin-top: 32px; }
  .timeline::before { left: 14px; top: 8px; }
  .timeline .step { padding: 0 0 28px 44px; }
  .timeline .step::before { left: 6px; top: 4px; width: 13px; height: 13px; border-width: 1.5px; }
  .timeline .step-ttl { font-size: 20px; line-height: 1.12; margin: 4px 0 6px; }
  .timeline .step p { font-size: 14px; line-height: 1.45; }
  .timeline .step-num { font-size: 10px; }

  /* TERRITORI map */
  .map-stage { gap: 16px; margin-top: 28px; }
  .map-canvas { min-height: 280px; padding: 12px; }
  .map-frame { max-width: 200px; }
  .map-pin .pin-label {
    font-size: 9px; padding: 2px 6px; letter-spacing: 0.04em;
  }
  .map-pin .pin-dot {
    width: 12px; height: 12px;
    box-shadow: 0 0 0 3px var(--cream), 0 2px 5px rgba(11,11,11,.2);
  }
  .map-detail { padding: 16px; gap: 10px; }
  .md-img { aspect-ratio: 16/9; }
  .md-tag { font-size: 10px; }
  .md-name { font-size: 26px; }
  .md-type { font-size: 12.5px; }
  .md-out { font-size: 13px; padding-top: 10px; }
  .md-out .lab { font-size: 9px; }
  .md-stats { gap: 6px; padding-top: 12px; }
  .md-stats .k { font-size: 22px; }
  .md-stats .v { font-size: 9px; letter-spacing: 0.1em; }
  .md-link { font-size: 12px; padding: 8px 12px; }

  /* MODELLO */
  .model-grid { gap: 12px; margin-top: 32px; }
  .model-card { padding: 22px 18px; gap: 8px; }
  .m-num { font-size: 38px; }
  .m-tag { font-size: 10px; }
  .m-ttl { font-size: 21px; line-height: 1.12; }
  .model-card p { font-size: 13.5px; line-height: 1.5; }
  .m-foot { font-size: 11px; padding-top: 10px; }
  .model-foot { font-size: 13px; margin-top: 20px; padding: 0 8px; }

  /* IMPATTO — horizontal scroll rail */
  .impact-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin-top: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px var(--pad);
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
  }
  .impact-grid::-webkit-scrollbar { display: none; }
  .impact-grid > .impact {
    flex: 0 0 74%;
    max-width: 260px;
    scroll-snap-align: start;
    padding: 18px;
  }
  .impact h3 { font-size: 17px; line-height: 1.2; }
  .impact p { font-size: 13px; line-height: 1.45; }
  .i-num { font-size: 24px; }

  /* CREATOR GANCIO */
  .creator-gancio { padding: 48px var(--pad); }
  .cg-inner { gap: 32px; }
  .cg-title { font-size: clamp(26px, 7.5vw, 38px); line-height: 1.06; margin-bottom: 16px; }
  .cg-lead { font-size: 14.5px; margin: 0 0 22px; line-height: 1.5; }
  .cg-benefits { gap: 0; margin-bottom: 24px; grid-template-columns: 1fr; }
  .cg-b { font-size: 13.5px; padding: 10px 0; gap: 12px; }
  .cg-b-n { font-size: 14px; }
  .cg-cta { gap: 14px; flex-direction: column; align-items: stretch; }
  .cg-cta .btn-primary.lg { width: 100%; padding: 13px 18px; font-size: 14px; }
  .cg-stores { width: 100%; gap: 8px; }
  .cg-store { flex: 1; padding: 9px 12px 9px 10px; }
  .cg-store strong { font-size: 12.5px; }
  .cg-store small { font-size: 8px; }
  .cg-phone { width: 260px; }
  .cg-phone-screen { padding: 28px 12px 16px; gap: 10px; }
  .cg-task h4 { font-size: 14px; }
  .cg-task p { font-size: 10.5px; }
  .cg-coins-n { font-size: 24px; }
  .cg-coins-lab { font-size: 8px; }
  .cg-badge strong { font-size: 13px; }
  .cg-badge small { font-size: 9.5px; }

  /* CONTATTI */
  .contatti { padding: 48px var(--pad); }
  .contatti-grid { gap: 28px; }
  .closing-title { font-size: clamp(28px, 8vw, 44px); line-height: 1.02; }
  .contatti .lead { font-size: 15px; }
  .contatti-form { padding: 18px 16px; gap: 12px; grid-template-columns: 1fr; }
  .contatti-form label { font-size: 10px; }
  .contatti-form input,
  .contatti-form select,
  .contatti-form textarea { font-size: 14.5px; }
  .form-note { font-size: 12px; }

  /* FOOTER */
  .footer { padding: 28px var(--pad) 20px; }
  .foot-grid { gap: 20px; grid-template-columns: 1fr; }
  .foot-cols { gap: 18px; }
  .foot-brand img { width: 28px; height: 28px; }
  .foot-word-img { width: 100px; height: 22px; }
  .foot-sub { font-size: 12px; }
  .foot-h { font-size: 10px; }
  .foot-cols > div, .foot-cols a { font-size: 13px; }
  .foot-bottom {
    flex-direction: column; gap: 6px;
    align-items: flex-start;
    padding-top: 14px; margin-top: 20px;
    font-size: 10px;
  }
}

/* Phone narrow — iPhone SE and below */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(28px, 8.5vw, 38px); }

  .pillar { flex-basis: 82%; }
  .op-grid > .op-card { flex-basis: 84%; }
  .impact-grid > .impact { flex-basis: 78%; }
  .outputs > .op { flex-basis: 84%; }

  .phone-frame { width: 264px; height: 528px; }
  .ph-hero { height: 150px; }

  .map-frame { max-width: 180px; }
  .map-pin .pin-label { display: none; }
  .map-pin.active .pin-label {
    display: inline-block;
    position: absolute; bottom: -22px; left: 50%;
    transform: translateX(-50%);
    background: var(--ink); color: var(--cream); border-color: var(--ink);
  }

  .cg-phone { width: 240px; }
  .cg-stores { flex-direction: column; }
  .cg-store { width: 100%; }

  .foot-cols { grid-template-columns: 1fr; gap: 14px; }

  .trust-marks { gap: 12px 18px; }
  .trust-band { grid-template-columns: 1fr; }
}

/* Prevent any horizontal overflow safety net */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
}
