/* ── LIGHT (default) ───────────────────────────────────── */
:root {
  --bg: #d6c1ab;
  --bg-soft: #f2e6d9;
  --bg-mid: #ede0d0;
  --ink: #111111;
  --ink-soft: #5c3e22;
  --line: #c4a98d;
  --accent: #8f735b;
  --accent-strong: #c6321a;
  --accent-gold: #a06c14;
  --success: #1f5f2a;
  --radius: 14px;
  --shadow: 0 18px 42px rgba(17, 17, 17, 0.13);
  /* Component tokens */
  --body-bg: radial-gradient(circle at 20% 0%, #f0dfcc 0%, var(--bg) 45%, #c8ad94 100%);
  --hero-section-bg: radial-gradient(ellipse at 70% 0%, #e8d5be 0%, var(--bg) 65%);
  --badge-bg: rgba(255, 255, 255, 0.52);
  --spots-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(250, 241, 231, 0.78));
  --card-bg: rgba(255, 255, 255, 0.58);
  --muted-bg: rgba(17, 17, 17, 0.06);
  --proof-card-bg: rgba(17, 17, 17, 0.88);
  --proof-card-ink: #f5eadf;
  --form-bg: rgba(255, 252, 248, 0.88);
  --input-bg: rgba(255, 255, 255, 0.88);
  --input-placeholder: rgba(92, 62, 34, 0.38);
}

/* ── DARK (system override) ─────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c0a;
    --bg-soft: #1a1512;
    --bg-mid: #221c17;
    --ink: #f5f0eb;
    --ink-soft: #c8b9ab;
    --line: #3a2e25;
    --accent: #c47b3c;
    --accent-strong: #d63c1c;
    --accent-gold: #e8a848;
    --success: #2e9952;
    --shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
    --body-bg: var(--bg);
    --hero-section-bg: linear-gradient(170deg, var(--bg-mid) 0%, var(--bg) 60%);
    --badge-bg: rgba(255, 255, 255, 0.06);
    --spots-bg: var(--bg-mid);
    --card-bg: var(--bg-mid);
    --muted-bg: rgba(255, 255, 255, 0.04);
    --proof-card-bg: var(--bg-mid);
    --proof-card-ink: var(--ink);
    --form-bg: var(--bg-mid);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-placeholder: rgba(200, 185, 171, 0.45);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: var(--body-bg);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 0.4rem;
  line-height: 1.06;
  color: var(--ink);
}

p {
  margin: 0;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 3.4rem 0;
  position: relative;
}

.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.95rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem;
}

.top-alert {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.7rem 0;
  background: var(--accent-strong);
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.top-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-alert p {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-alert a {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.18);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  white-space: nowrap;
}

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 2rem;
  background: var(--hero-section-bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.05rem;
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  margin-bottom: 0.85rem;
  max-width: 14ch;
  letter-spacing: -0.02em;
}

/* Versetto di accento rosso dentro l'h1 */
.hero-copy h1 em {
  color: var(--accent-strong);
  font-style: normal;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  background: var(--accent-strong);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-soft);
  box-shadow: none;
  border: 1px solid var(--line);
}

.brand-subline {
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}

.lead {
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  max-width: 62ch;
  color: var(--ink-soft);
}

.hero-actions {
  display: grid;
  gap: 0.6rem;
  align-items: start;
}

.hero-action-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-badges {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0.85rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  width: fit-content;
  color: var(--ink);
}

.hero-badges svg,
.location svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.spots-highlight {
  margin: 1rem 0 0.9rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-strong);
  border-radius: var(--radius);
  background: var(--spots-bg);
  padding: 1rem;
}

.spots-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.spots-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-weight: 800;
}

.spots-urgency {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--accent-strong);
  border-radius: 4px;
  background: rgba(214, 60, 28, 0.15);
  color: var(--accent-strong);
}

.spots-count-wrap {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.spots-count {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.spots-copy {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.spots-note {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.pulse {
  animation: pulseRing 1.2s ease-in-out infinite;
}

.promo-end {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.95rem 1.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 30px rgba(214, 60, 28, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #c03418;
  box-shadow: 0 14px 38px rgba(214, 60, 28, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-size: 0.88rem;
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
}

.btn-full {
  width: 100%;
  padding: 1.1rem 1.6rem;
  font-size: 1rem;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.65s linear infinite;
  position: absolute;
  right: 14px;
}

.hero-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  color: var(--accent-gold);
}

.hero-card h2 {
  font-size: 2rem;
  margin-bottom: 0.55rem;
}

.hero-card .location {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.3rem 0 0.75rem;
}

.hero-info-card p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.hero-card-note {
  margin-top: 0.65rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pain-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.pain-list li {
  position: relative;
  padding-left: 1.3rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pain-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-strong);
  font-size: 1.1rem;
  line-height: 1;
}

.results-list {
  margin: 1rem 0 1.1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.results-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}

.results-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.res-num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.6rem;
}

.comparison {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.compare-card .symbol {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  display: block;
}

.compare-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.compare-card.muted {
  background: var(--muted-bg);
}

.compare-card.muted .symbol {
  color: var(--ink-soft);
}

.compare-card.highlight {
  background: linear-gradient(145deg, var(--accent-strong), #8c1f0a);
  color: #fff;
  border-color: var(--accent-strong);
  box-shadow: 0 16px 40px rgba(214, 60, 28, 0.35);
}

.compare-card.highlight .symbol {
  color: #ffe4b5;
}

.quote-wrap {
  text-align: center;
  padding: 2rem 0;
}

.quote-wrap .section-title {
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}

.quote-author {
  margin-top: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.proof-section {
  padding-top: 0.4rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card {
  background: var(--proof-card-bg);
  color: var(--proof-card-ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.proof-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-strong);
}

.proof-card h3 {
  font-size: 1.55rem;
  color: inherit;
  margin-bottom: 0.45rem;
}

.proof-number {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.cta-band {
  padding-top: 0.7rem;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--accent-strong) 0%, #9a200d 100%);
  border: none;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(214, 60, 28, 0.4);
}

.cta-band-inner h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  max-width: 18ch;
  color: #fff;
}

.cta-band-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-band-inner .btn-primary {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.cta-band-inner .btn-primary:hover {
  background: #f8f0ec;
  transform: translateY(-2px);
}

.form-section {
  padding-top: 2.2rem;
}

.form-intro {
  max-width: 52ch;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.lead-form {
  width: min(620px, 100%);
  display: grid;
  gap: 0.7rem;
  background: var(--form-bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.lead-form label {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}

.lead-form input {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
}

.lead-form input::placeholder {
  color: var(--input-placeholder);
}

.lead-form input:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-color: var(--accent-strong);
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.form-message {
  min-height: 1.2rem;
  font-size: 0.94rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.form-message.error {
  color: #e05555;
}

.form-message.success {
  color: var(--success);
}

.submit-success {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: all 0.42s ease;
}

.submit-success p {
  font-size: 0.86rem;
  color: var(--success);
  font-weight: 700;
}

.submit-success.visible {
  max-height: 110px;
  opacity: 1;
  transform: translateY(0);
}

.checkmark-wrap {
  width: 52px;
  height: 52px;
}

.checkmark-svg {
  width: 52px;
  height: 52px;
}

.checkmark-circle {
  fill: none;
  stroke: var(--success);
  stroke-width: 2.4;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}

.checkmark-path {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.submit-success.visible .checkmark-circle {
  animation: drawCircle 0.55s ease forwards;
}

.submit-success.visible .checkmark-path {
  animation: drawCheck 0.4s ease 0.35s forwards;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  margin-top: 1rem;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.hero-bg-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.hero-bg-shape-1 {
  width: 420px;
  height: 420px;
  border-radius: 45% 55% 60% 40%;
  border: 1px solid #fff;
  right: -140px;
  top: -140px;
  transform: rotate(15deg);
}

.hero-bg-shape-2 {
  width: 300px;
  height: 300px;
  border-radius: 62% 38% 52% 48%;
  border: 1px solid #fff;
  left: -110px;
  bottom: -120px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseRing {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(214, 60, 28, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(214, 60, 28, 0);
  }
}

@media (max-width: 950px) {
  .hero-grid,
  .cards,
  .compare-grid,
  .proof-grid,
  .cta-band-inner {
    grid-template-columns: 1fr;
  }

  .top-alert-inner {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .spots-highlight {
    padding: 0.85rem;
  }

  .spots-count {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .btn {
    min-height: 46px;
  }

  .lead-form input {
    min-height: 46px;
  }

  .cta-band-inner h2,
  .hero-copy h1 {
    max-width: none;
  }

  .cta-band-inner .btn-primary {
    width: 100%;
    text-align: center;
  }
}
