/* =============================================================
   ROOT TOKENS — Tuscan / Italian heritage palette
   ============================================================= */
:root {
  /* Colors */
  --c-terracotta: #C0492C;
  --c-terracotta-deep: #9A3A23;
  --c-cream: #F6EFE3;
  --c-cream-soft: #FBF7EE;
  --c-ivory: #FFFBF3;
  --c-olive: #6E7F4F;
  --c-olive-deep: #54623C;
  --c-wine: #7A2E2E;
  --c-wine-deep: #5B2020;
  --c-gold: #C9A24B;
  --c-gold-soft: #E2C886;
  --c-ink: #2B1F17;
  --c-ink-soft: #4A3A2E;
  --c-muted: #8A7A6C;
  --c-line: #E6DDC9;

  /* Typography */
  --f-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --f-accent: "Cormorant Garamond", Georgia, serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Sizing — generous for older readers */
  --fs-xxxl: clamp(2.6rem, 5.5vw, 4.6rem);
  --fs-xxl:  clamp(2rem, 3.8vw, 3.2rem);
  --fs-xl:   clamp(1.5rem, 2.4vw, 2.1rem);
  --fs-l:    clamp(1.2rem, 1.5vw, 1.4rem);
  --fs-m:    1.125rem;
  --fs-s:    1rem;
  --fs-xs:   0.875rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;

  /* Shadows — soft and warm, never harsh */
  --shadow-s: 0 2px 8px rgba(43, 31, 23, 0.06);
  --shadow-m: 0 10px 30px rgba(43, 31, 23, 0.10);
  --shadow-l: 0 24px 60px rgba(43, 31, 23, 0.15);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 380ms;
  --t-slow: 720ms;
}

/* =============================================================
   RESET / BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* La barra in alto e' fissa: senza questo, saltando a un
     ancoraggio (#driving, #journey, #tree...) il titolo finisce sotto. */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-m);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--fs-xxxl); }
h2 { font-size: var(--fs-xxl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-l); }

p { margin: 0 0 1em; }

a {
  color: var(--c-wine);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--c-terracotta); }

::selection { background: var(--c-gold-soft); color: var(--c-ink); }

/* =============================================================
   LAYOUT HELPERS
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--cream { background: var(--c-cream-soft); }
.section--cream-deep { background: var(--c-cream); }
.section--dark {
  background: var(--c-ink);
  color: var(--c-cream);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-cream); }
.section--dark a { color: var(--c-gold-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-terracotta);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.4rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1.8rem; height: 1px;
  background: var(--c-terracotta);
  transform: translateY(-50%);
}
.section--dark .eyebrow { color: var(--c-gold-soft); }
.section--dark .eyebrow::before { background: var(--c-gold-soft); }

.section-title {
  margin-bottom: 1rem;
}
.section-subtitle {
  font-family: var(--f-accent);
  font-size: var(--fs-l);
  color: var(--c-ink-soft);
  font-style: italic;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}
.section--dark .section-subtitle { color: var(--c-cream); opacity: 0.85; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--f-body);
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-med) var(--ease),
              color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-terracotta);
  color: var(--c-ivory);
  box-shadow: var(--shadow-s);
}
.btn--primary:hover {
  background: var(--c-terracotta-deep);
  color: var(--c-ivory);
  box-shadow: var(--shadow-m);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover {
  background: var(--c-ink);
  color: var(--c-ivory);
}
.section--dark .btn--ghost {
  color: var(--c-cream);
  border-color: var(--c-cream);
}
.section--dark .btn--ghost:hover {
  background: var(--c-cream);
  color: var(--c-ink);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-ink);
}
.btn--gold:hover { background: var(--c-gold-soft); }

.btn--wide {
  width: 100%;
  justify-content: center;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--t-med) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* =============================================================
   NAVIGATION
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(255, 251, 243, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding var(--t-med) var(--ease),
              background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.nav--scrolled {
  padding: 0.7rem 0;
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-s);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--c-ink);
}
.brand__logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.brand:hover .brand__logo {
  transform: scale(1.02);
}
.brand__logo--dark {
  display: none;
}
[data-theme="dark"] .brand__logo--light {
  display: none;
}
[data-theme="dark"] .brand__logo--dark {
  display: block;
}
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-terracotta);
  display: grid; place-items: center;
  color: var(--c-ivory);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 2px var(--c-gold);
}
.brand__name {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.05;
}
.brand__tagline {
  display: block;
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0; margin: 0;
}
.nav__links a {
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--c-terracotta);
  transition: width var(--t-med) var(--ease);
}
.nav__links a:hover { color: var(--c-terracotta); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--c-terracotta); }

.nav__cta { margin-left: 0.5rem; }

.nav__group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-ink);
  margin: 5px auto;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; visibility: hidden !important; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Pushes content below the fixed nav */
.page { padding-top: 90px; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 162, 75, 0.18), transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(192, 73, 44, 0.12), transparent 60%),
    linear-gradient(180deg, var(--c-ivory) 0%, var(--c-cream) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__bg svg,
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hero__title {
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: 1.4rem;
}
.hero__title .italic {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--c-terracotta);
}
.hero__title .underline {
  position: relative;
  white-space: nowrap;
}
.hero__title .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 0.18em;
  background: var(--c-gold);
  opacity: 0.45;
  border-radius: 4px;
  transform-origin: left;
  animation: underline-grow 1.4s var(--ease) 1s both;
}
@keyframes underline-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__lead {
  font-family: var(--f-accent);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  color: var(--c-ink-soft);
  font-style: italic;
  max-width: 32ch;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
/* Un solo pulsante, lungo quanto la colonna del testo */
.hero__ctas--single { display: block; }
.hero__ctas--single .btn { max-width: 520px; }

.hero__stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 1rem;
  flex-wrap: wrap;
}
.stat__num {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--c-terracotta);
  line-height: 1;
  font-weight: 600;
}
.stat__lab {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-muted);
  margin-top: 0.4rem;
}

/* Hero portrait card */
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  background:
    linear-gradient(180deg, rgba(43, 31, 23, 0) 40%, rgba(43, 31, 23, 0.55) 100%),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-olive-deep) 100%);
}
.hero__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 251, 243, 0.20), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 251, 243, 0.04) 0 2px, transparent 2px 8px);
}
.hero__visual-caption {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  color: var(--c-cream);
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.15rem;
  z-index: 2;
  line-height: 1.3;
}
.hero__visual-caption strong {
  display: block;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--c-cream);
}

/* Floating ornaments on the hero portrait */
.hero__visual .ornament {
  position: absolute;
  z-index: 1;
  opacity: 0.55;
}
.hero__visual .ornament--top    { top: 1.2rem; left: 1.2rem; width: 56px; }
.hero__visual .ornament--bottom { bottom: 5rem; right: 1.2rem; width: 64px; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-muted);
  z-index: 3;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--c-muted), transparent);
  animation: cue-pulse 2s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50%      { opacity: 1; transform: scaleY(1.1); }
}

/* =============================================================
   FEATURE / STORY GRID
   ============================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}
.feature {
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 2rem 1.8rem;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
  border-color: var(--c-gold-soft);
}
.feature__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-cream);
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
  color: var(--c-terracotta);
}
.feature__title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.feature__body {
  color: var(--c-ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* =============================================================
   PACKAGE CARDS
   ============================================================= */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.package {
  position: relative;
  background: var(--c-ivory);
  border-radius: var(--radius-l);
  padding: 2.5rem 2rem;
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.package:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}
.package--featured {
  background: linear-gradient(160deg, var(--c-cream-soft) 0%, var(--c-ivory) 100%);
  border-color: var(--c-gold);
}
.package__ribbon {
  position: absolute;
  top: 1.4rem; right: -0.6rem;
  background: var(--c-gold);
  color: var(--c-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 4px 0 0 4px;
  box-shadow: var(--shadow-s);
}
.package__name {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}
.package__sub {
  font-family: var(--f-accent);
  font-style: italic;
  color: var(--c-ink-soft);
  margin-bottom: 1.5rem;
}
.package__list {
  list-style: none;
  padding: 0; margin: 0 0 2rem;
  display: grid;
  gap: 0.7rem;
  flex-grow: 1;
}
.package__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--c-ink-soft);
  font-size: 0.98rem;
}
.package__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border: 2px solid var(--c-olive);
  border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}
.package__note {
  font-size: 0.85rem;
  color: var(--c-muted);
  border-top: 1px dashed var(--c-line);
  padding-top: 1rem;
  margin-top: auto;
  margin-bottom: 1.4rem;
  font-style: italic;
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonial {
  background: var(--c-ivory);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  border: 1px solid var(--c-line);
  position: relative;
  box-shadow: var(--shadow-s);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem; left: 1.5rem;
  font-family: var(--f-display);
  font-size: 5rem;
  color: var(--c-gold-soft);
  line-height: 1;
}
.testimonial__body {
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--c-ink-soft);
  margin-bottom: 1.5rem;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-terracotta), var(--c-wine));
  color: var(--c-cream);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
}
.testimonial__name {
  font-weight: 600;
  font-family: var(--f-body);
}
.testimonial__from {
  font-size: 0.85rem;
  color: var(--c-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem;
}

/* Nota "recensioni in lingua originale": esiste solo nel sito italiano.
   i18n.js imposta <html lang>, quindi in inglese resta nascosta. */
.reviews-note {
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  max-width: 60ch;
  margin: 1rem auto 0;
  text-align: center;
}
html:not([lang="it"]) .reviews-note { display: none; }

/* =============================================================
   PROCESS STEPS
   ============================================================= */
.steps {
  counter-reset: step;
  display: grid;
  gap: 2rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
.step:last-child { border-bottom: 0; }
.step__num {
  counter-increment: step;
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--c-terracotta);
  opacity: 0.85;
  position: relative;
}
.step__num::after {
  content: counter(step, decimal-leading-zero);
}
.step__title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.step__body {
  color: var(--c-ink-soft);
  max-width: 60ch;
}

/* =============================================================
   PROFILE BLOCK (About Rita)
   ============================================================= */
.profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.profile__media {
  position: relative;
  width: 100%;          /* see media-frame note: prevents 0-width collapse
                           in a single-column (mobile) grid */
  aspect-ratio: 4/5;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  background:
    linear-gradient(160deg, var(--c-wine) 0%, var(--c-wine-deep) 100%);
}
.profile__media::after {
  content: "RR";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 6rem;
  color: rgba(246, 239, 227, 0.18);
  letter-spacing: -0.05em;
}
.profile__media .frame-ornament {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(246, 239, 227, 0.35);
  border-radius: calc(var(--radius-l) - 8px);
  pointer-events: none;
}
/* Con la foto di Rita: niente monogramma "RR" sopra l'immagine. */
.profile__media--photo::after { display: none; }
.profile__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;   /* il volto resta nel riquadro anche quando e' tagliato */
}
/* Ritratto nel riquadro della home: stessa inquadratura */
.media-frame__img--portrait { object-position: 50% 10%; }
/* La foto ha lo sfondo chiaro: filetto e angoli in oro pieno,
   altrimenti crema e oro chiaro spariscono. */
.profile__media--photo .frame-ornament,
.profile__media--photo .media-frame__rule { border-color: rgba(201, 162, 75, 0.8); }
.profile__media--photo .media-frame__corner { color: var(--c-gold); }

.profile__body p { font-size: 1.05rem; }
.profile__signature {
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--c-terracotta);
  margin-top: 1.5rem;
}

.fact-list {
  list-style: none;
  padding: 0; margin: 2rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.fact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--c-line);
  font-size: 0.95rem;
}
.fact-list dt, .fact-list .lbl {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--c-muted);
  padding-top: 2px;
}

/* =============================================================
   STORY GRID (Why I Love What I Do)
   ============================================================= */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.story-grid__body h2 {
  margin-top: 0.4rem;
  margin-bottom: 1.6rem;
}
.story-grid__paragraphs p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 1.25rem;
}
.story-grid__paragraphs p:last-child {
  margin-bottom: 0;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--c-terracotta);
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line);
}
.story-grid__visual {
  position: sticky;
  top: 96px;
  width: 100%;
}
.media-frame--story {
  width: 100%;
  aspect-ratio: 682 / 1024;
  background: #F8EEE0;
  border: 1px solid var(--c-line);
}
.media-frame--story .media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #F8EEE0;
}
.profile__photo--research {
  object-position: 50% 80%;
}
.media-frame--story .frame-ornament {
  inset: 8px;
  border-radius: calc(var(--radius-l) - 6px);
}
.media-frame--story .media-frame__corner--tl {
  top: 6px;
  left: 6px;
  width: 38px;
  height: 38px;
}
.media-frame--story .media-frame__corner--br {
  bottom: 6px;
  right: 6px;
  width: 38px;
  height: 38px;
}

/* =============================================================
   QUOTE CONFIGURATOR
   ============================================================= */
.configurator {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
}
.configurator__form {
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  box-shadow: var(--shadow-s);
}
.configurator__summary {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--c-ink);
  color: var(--c-cream);
  border-radius: var(--radius-l);
  padding: 2rem;
  box-shadow: var(--shadow-m);
}
.configurator__summary h3 { color: var(--c-cream); }
.configurator__summary .summary-list {
  list-style: none;
  padding: 0; margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.configurator__summary .summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(246, 239, 227, 0.2);
  font-size: 0.95rem;
}
.configurator__summary .summary-list .lbl {
  color: var(--c-gold-soft);
  font-weight: 500;
}
.configurator__summary .summary-list .val {
  color: var(--c-cream);
  text-align: right;
  max-width: 60%;
}
.configurator__summary .empty {
  color: rgba(246, 239, 227, 0.55);
  font-style: italic;
}

/* Form pieces */
.field { margin-bottom: 1.6rem; }
.field > label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.field > .hint {
  display: block;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 0.6rem;
  font-style: italic;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  background: var(--c-cream-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  color: var(--c-ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-terracotta);
  background: var(--c-ivory);
  box-shadow: 0 0 0 3px rgba(192, 73, 44, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Package choice tiles */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.choice {
  position: relative;
  display: block;
  padding: 1.2rem 1.3rem 1.2rem 3rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  background: var(--c-cream-soft);
}
.choice:hover { border-color: var(--c-terracotta); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__bullet {
  position: absolute;
  left: 1rem; top: 1.35rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--c-muted);
  background: var(--c-ivory);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.choice input:checked ~ .choice__bullet {
  border-color: var(--c-terracotta);
  background: var(--c-terracotta);
  box-shadow: inset 0 0 0 3px var(--c-ivory);
}
.choice input:checked ~ .choice__label,
.choice input:checked ~ .choice__desc { color: var(--c-ink); }
.choice:has(input:checked) {
  border-color: var(--c-terracotta);
  background: var(--c-ivory);
  box-shadow: 0 6px 18px rgba(192, 73, 44, 0.08);
}
.choice__label {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.choice__desc {
  display: block;
  color: var(--c-ink-soft);
  font-size: 0.9rem;
}

/* Checkbox addon tiles */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.addon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  cursor: pointer;
  background: var(--c-cream-soft);
  transition: border-color var(--t-fast), background var(--t-fast);
  font-size: 0.95rem;
}
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon__box {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--c-muted);
  background: var(--c-ivory);
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.addon__box::after {
  content: "";
  width: 10px; height: 6px;
  border: 2px solid var(--c-ivory);
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0);
  transition: transform var(--t-fast);
  margin-top: -2px;
}
.addon input:checked ~ .addon__box {
  background: var(--c-terracotta);
  border-color: var(--c-terracotta);
}
.addon input:checked ~ .addon__box::after { transform: rotate(-45deg) scale(1); }
.addon:has(input:checked) {
  border-color: var(--c-terracotta);
  background: var(--c-ivory);
}
/* Add-on messi in evidenza (i piu' pertinenti per il pacchetto scelto) */
.addon--relevant {
  padding-top: 1.7rem;
  border-color: var(--c-gold);
  box-shadow: inset 0 0 0 1px var(--c-gold);
  background: var(--c-ivory);
}
[lang="it"] .addon--relevant::after { content: "Più pertinente"; }
.addon--relevant::after {
  content: "Most relevant";
  position: absolute;
  top: 0.45rem;
  right: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-gold-soft);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  pointer-events: none;
}
.addons-note {
  border-left: 3px solid var(--c-gold);
  padding-left: 0.8rem;
}
.addons-note[hidden] { display: none; }

.addon__name { font-weight: 600; }
.addon__hint {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-top: 0.1rem;
}

/* Step progress */
.steps-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.steps-bar__dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--c-line);
  position: relative;
  overflow: hidden;
}
.steps-bar__dot.is-active::after,
.steps-bar__dot.is-done::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--c-terracotta);
  animation: bar-fill var(--t-med) var(--ease) both;
}
@keyframes bar-fill {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

.form-step { display: none; }
.form-step.is-active {
  display: block;
  animation: fade-up var(--t-med) var(--ease) both;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* =============================================================
   CTA STRIP
   ============================================================= */
.cta-strip {
  background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-wine) 100%);
  color: var(--c-cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip h2 { color: var(--c-cream); }
.cta-strip p { color: rgba(246, 239, 227, 0.92); max-width: 56ch; margin: 0 auto 2rem; }
.cta-strip::before,
.cta-strip::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(246, 239, 227, 0.07);
}
.cta-strip::before { top: -80px; left: -80px; }
.cta-strip::after  { bottom: -120px; right: -80px; width: 360px; height: 360px; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--c-ink);
  color: var(--c-text-fixed-light);
  padding: 4rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--c-gold-soft);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
/* --c-text-fixed-light, non --c-cream: in modalita' scura --c-cream diventa
   un marrone scuro e i link sparirebbero sul fondo del footer. */
.footer a {
  color: var(--c-text-fixed-light);
  display: inline-block;
  padding: 0.25rem 0;
}
.footer a:hover { color: var(--c-gold-soft); }
.footer ul { list-style: none; padding: 0; margin: 0; }
/* .footer a imposta display:inline-block: serve piu' specificita' per il flex,
   altrimenti icona e nome del profilo vanno a capo uno sotto l'altro. */
.footer a.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__ig svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  transition: color var(--t-fast) var(--ease);
}
.footer__logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 1.1rem;
}
.footer__brand p {
  font-family: var(--f-accent);
  font-style: italic;
  color: rgba(246, 239, 227, 0.7);
  max-width: 28ch;
}
.footer__bottom {
  border-top: 1px solid rgba(246, 239, 227, 0.12);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(246, 239, 227, 0.55);
}

/* =============================================================
   REVEAL / MICRO ANIMATIONS
   ============================================================= */
/* Regola d'oro: .reveal nasconde il contenuto SOLO se il JavaScript e'
   davvero attivo (html.js, messa dallo script inline nel <head>). Senza
   questa condizione, un main.js che non arriva — rete mobile lenta, script
   bloccati, un errore JS a monte — lascerebbe foto e testi invisibili per
   sempre. Il caso peggiore diventa "nessuna animazione", non "pagina vuota". */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal.reveal--left  { transform: translateX(-28px); }
.js .reveal.reveal--right { transform: translateX(28px); }
.js .reveal.is-visible.reveal--left,
.js .reveal.is-visible.reveal--right { transform: none; }

/* will-change solo finche' l'elemento deve ancora entrare. Tenerlo acceso
   su tutti i .reveal creava decine di layer di composizione permanenti: su
   iPhone la memoria video finisce e le foto grandi vengono disegnate vuote.
   Appena l'elemento e' visibile il layer viene liberato. */
.js .reveal:not(.is-visible) { will-change: transform, opacity; }

.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }
.reveal[data-delay="600"] { transition-delay: 600ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Word-by-word reveal used on the hero headline */
.word-reveal { display: inline-block; }
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: word-in 0.7s var(--ease) forwards;
}
@keyframes word-in {
  to { opacity: 1; transform: none; }
}

/* Soft float used for ornaments */
.float-soft {
  animation: float-soft 8s ease-in-out infinite;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* =============================================================
   MISC
   ============================================================= */
.divider-leaf {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-gold);
  margin: 0 auto 2rem;
  width: fit-content;
}
.divider-leaf::before,
.divider-leaf::after {
  content: "";
  height: 1px;
  width: 80px;
  background: currentColor;
  opacity: 0.5;
}

.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translate(-50%, 80px);
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-m);
  z-index: 200;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med);
  opacity: 0;
  font-size: 0.95rem;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Visually-hidden helper */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal.reveal--left, .js .reveal.reveal--right { opacity: 1; transform: none; }
}

/* =============================================================
   DARK MODE
   -------------------------------------------------------------
   Activated by [data-theme="dark"] on <html>. We re-map the
   semantic palette tokens so most existing rules just work, and
   add targeted overrides for elements that should remain visually
   "always-dark" (footer, dark hero strips, summary panel).
   ============================================================= */
:root {
  color-scheme: light;
  --c-bg-body: var(--c-ivory);
  --c-bg-elev: var(--c-cream-soft);
  --c-bg-deep: var(--c-cream);
  --c-bg-fixed-dark: #15110D;   /* always-dark surfaces */
  --c-text-fixed-light: var(--c-cream);
  --nav-bg-rgba: rgba(255, 251, 243, 0.85);
}

[data-theme="dark"] {
  color-scheme: dark;

  /* Re-map the semantic palette */
  --c-terracotta:      #E07355;
  --c-terracotta-deep: #C0492C;
  --c-cream:           #261D17;
  --c-cream-soft:      #1F1813;
  --c-ivory:           #1A140F;
  --c-olive:           #8FA66A;
  --c-olive-deep:      #6E7F4F;
  --c-wine:            #B8504F;
  --c-wine-deep:       #7A2E2E;
  --c-gold:            #D9B566;
  --c-gold-soft:       #E2C886;
  --c-ink:             #F4ECDB;
  --c-ink-soft:        #D2C6B0;
  --c-muted:           #998878;
  --c-line:            #38291F;

  --c-bg-body:         #14100C;
  --c-bg-elev:         #1F1813;
  --c-bg-deep:         #261D17;
  --c-bg-fixed-dark:   #0A0805;
  --c-text-fixed-light:#F4ECDB;
  --nav-bg-rgba:       rgba(20, 16, 12, 0.85);

  --shadow-s: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-m: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-l: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Body background uses a dedicated token so dark mode keeps the
   "card vs page" contrast even though --c-ivory is also the card bg. */
body { background: var(--c-bg-body); }

/* Navigation glass uses a dedicated token */
.nav { background: var(--nav-bg-rgba); }

/* Hero gradient — readable on both themes */
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(217, 181, 102, 0.10), transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(224, 115, 85, 0.10), transparent 60%),
    linear-gradient(180deg, #14100C 0%, #1F1813 100%);
}

/* The "always-dark" elements should keep their dark personality
   even in dark mode — just deepen them so they still feel inset. */
[data-theme="dark"] .footer,
[data-theme="dark"] .section--dark {
  background: var(--c-bg-fixed-dark);
  color: var(--c-text-fixed-light);
}
[data-theme="dark"] .footer__bottom {
  border-top-color: rgba(244, 236, 219, 0.08);
}
[data-theme="dark"] .configurator__summary {
  background: var(--c-bg-fixed-dark);
}
[data-theme="dark"] .cta-strip {
  background: linear-gradient(135deg, #8A3320 0%, #4F1F1F 100%);
}

/* Mobile drawer needs an opaque dark bg in dark mode */
[data-theme="dark"] .nav__links {
  --drawer-bg: var(--c-bg-body);
}

/* Buttons: ghost button in dark mode needs a visible border */
[data-theme="dark"] .btn--ghost {
  color: var(--c-ink);
  border-color: var(--c-ink-soft);
}
[data-theme="dark"] .btn--ghost:hover {
  background: var(--c-ink);
  color: var(--c-bg-body);
}

/* Brand mark contrast in dark */
[data-theme="dark"] .brand__mark {
  box-shadow: inset 0 0 0 2px var(--c-gold-soft);
}

/* Form inputs in dark mode */
[data-theme="dark"] .field input[type="text"],
[data-theme="dark"] .field input[type="email"],
[data-theme="dark"] .field input[type="tel"],
[data-theme="dark"] .field input[type="number"],
[data-theme="dark"] .field input[type="date"],
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: var(--c-bg-elev);
  color: var(--c-ink);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
  background: var(--c-bg-deep);
  box-shadow: 0 0 0 3px rgba(224, 115, 85, 0.25);
}

/* Choice / addon tiles in dark */
[data-theme="dark"] .choice,
[data-theme="dark"] .addon {
  background: var(--c-bg-elev);
}
[data-theme="dark"] .choice:has(input:checked),
[data-theme="dark"] .addon:has(input:checked) {
  background: var(--c-bg-deep);
}

/* Hero portrait + profile media — gradients darken to stay readable */
[data-theme="dark"] .hero__visual {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Quote result banners adapt to theme */
[data-theme="dark"] .result--ok {
  background: rgba(143, 166, 106, 0.12);
  color: #B8CC97;
  border-color: var(--c-olive);
}
[data-theme="dark"] .result--err {
  background: rgba(224, 115, 85, 0.12);
  color: #F0AB95;
  border-color: var(--c-terracotta);
}

/* Mobile drawer fill picks up dark token through CSS var */
@media (max-width: 720px) {
  .nav__links { background: var(--drawer-bg, var(--c-ivory)); }
}

/* =============================================================
   THEME TOGGLE (sun / moon icon in the navbar)
   ============================================================= */
/* Switch lingua EN / IT, gemello del pulsante tema */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.5rem;
  flex-shrink: 0;
  height: 40px;
}
.lang-switch__btn {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 0.6rem;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-switch__btn:hover { color: var(--c-terracotta); }
.lang-switch__btn.is-active {
  background: var(--c-terracotta);
  color: var(--c-ivory);
}
.lang-switch__btn:focus-visible {
  outline: 2px solid var(--c-terracotta);
  outline-offset: -2px;
}
[data-theme="dark"] .lang-switch { border-color: var(--c-line); }
[data-theme="dark"] .lang-switch__btn.is-active {
  background: var(--c-gold);
  color: var(--c-ink);
}

.theme-toggle {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  margin-left: 0.5rem;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--c-cream-soft);
  border-color: var(--c-terracotta);
  color: var(--c-terracotta);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--c-terracotta);
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle {
  color: var(--c-gold-soft);
  border-color: var(--c-line);
}
[data-theme="dark"] .theme-toggle:hover {
  background: var(--c-bg-elev);
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* =============================================================
   ENHANCEMENTS 2026 — added during the "+200%" upgrade
   -------------------------------------------------------------
   Skip link · language switch · photo-ready media frames ·
   filled hero · trust strip · booking · micro-interactions.
   ============================================================= */

/* ---------- Accessibility: skip-to-content ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 300;
  background: var(--c-terracotta);
  color: var(--c-ivory);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  font-weight: 600;
  box-shadow: var(--shadow-m);
  transition: top var(--t-med) var(--ease);
}
.skip-link:focus {
  top: 0;
  color: var(--c-ivory);
  outline: 2px solid var(--c-gold-soft);
  outline-offset: 2px;
}

/* Make keyboard focus visible everywhere (was only on theme toggle) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice:focus-within,
.addon:focus-within {
  outline: 2px solid var(--c-terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header refinements — keep it on one tidy line ---------- */
.nav__inner { gap: 1.25rem; }
.brand { flex-shrink: 0; }
.brand__name { white-space: nowrap; }
.brand__tagline { white-space: nowrap; }
.nav__group { gap: 0.4rem; }
.nav__links { gap: 1.45rem; flex-wrap: nowrap; }
.nav__links a { white-space: nowrap; font-size: 0.92rem; }
.nav__cta { margin-left: 0.35rem; }
.nav__cta .btn { padding: 0.7rem 1.25rem; }
/* (Breakpoint tuning for the navbar lives in responsive.css so it wins
   the cascade deterministically — see "NAVBAR FIT" there.) */

/* ---------- Always-light text token for colored / dark surfaces ----------
   FIX: several elements used --c-cream for "light text on a dark/colored
   background". In dark mode --c-cream remaps to a DARK colour, so that text
   became dark-on-dark (invisible). --c-on-color stays light in both themes. */
:root            { --c-on-color: #F6EFE3; }
[data-theme="dark"] { --c-on-color: #F4ECDB; }

/* "Request a quote" nel menu: le regole di .nav__links a (colore scuro,
   terracotta al passaggio e sulla pagina attiva, sottolineatura) vincevano
   su .btn--primary, e la scritta spariva sul fondo terracotta. */
.nav__links .nav__cta a.btn,
.nav__links .nav__cta a.btn:hover,
.nav__links .nav__cta a.btn.is-active { color: var(--c-ivory); }
.nav__links .nav__cta a.btn::after { display: none; }

.cta-strip,
.cta-strip h2,
.cta-strip .eyebrow { color: var(--c-on-color); }
.cta-strip p { color: rgba(246, 239, 227, 0.92); }

.section--dark,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-on-color); }
.section--dark .section-subtitle { color: var(--c-on-color); opacity: 0.9; }

.media-frame__caption,
.media-frame__caption strong,
.hero__visual-caption,
.hero__visual-caption strong { color: var(--c-on-color); }

.configurator__summary,
.configurator__summary h3 { color: var(--c-on-color); }
[data-theme="dark"] .configurator__summary .summary-list .val { color: var(--c-on-color); }

/* ---------- Photo-ready media frame ----------
   Holds an SVG illustration now, a real <img> later.
   Just swap the src — object-fit keeps it framed. */
.media-frame {
  position: relative;
  width: 100%;          /* fill the column — without this, a figure whose
                           children are all absolute + aspect-ratio collapses
                           to 0 width in a single-column (mobile) grid. */
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  background: linear-gradient(160deg, var(--c-olive) 0%, var(--c-olive-deep) 100%);
  isolation: isolate;
}
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--square   { aspect-ratio: 1 / 1; }
.media-frame--wine  { background: linear-gradient(160deg, var(--c-wine) 0%, var(--c-wine-deep) 100%); }
.media-frame--terra { background: linear-gradient(160deg, var(--c-terracotta) 0%, var(--c-wine-deep) 100%); }
.media-frame--sky   { background: linear-gradient(180deg, #EFC079 0%, #6E7F4F 100%); }

.media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease);
}
.media-frame:hover .media-frame__img { transform: scale(1.04); }

/* Inner hairline frame */
.media-frame__rule {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246, 239, 227, 0.4);
  border-radius: calc(var(--radius-l) - 8px);
  pointer-events: none;
  z-index: 2;
}

/* Gold corner ornaments (inline SVG → currentColor works) */
.media-frame__corner {
  position: absolute;
  width: 46px;
  height: 46px;
  color: var(--c-gold-soft);
  z-index: 3;
  pointer-events: none;
}
.media-frame__corner svg { width: 100%; height: 100%; }
.media-frame__corner--tl { top: 12px; left: 12px; }
.media-frame__corner--br { bottom: 12px; right: 12px; transform: rotate(180deg); }

/* Caption overlay (works for hero + quote cards) */
.media-frame__caption {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.4rem;
  z-index: 3;
  color: var(--c-on-color);
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.media-frame__caption strong {
  display: block;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  color: var(--c-on-color);
}
.media-frame::after {     /* bottom scrim so captions stay readable on any image */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(43, 31, 23, 0) 45%, rgba(43, 31, 23, 0.62) 100%);
  pointer-events: none;
}
.media-frame--no-scrim::after { display: none; }

/* "Photo coming" hint, shown only on frames flagged photo-ready */
.media-frame__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  font-family: var(--f-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: rgba(246, 239, 227, 0.92);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  box-shadow: var(--shadow-s);
}

/* Hero visual reused as a filled media frame */
.hero__visual.media-frame { background: linear-gradient(180deg, #EFC079 0%, #6E7F4F 100%); }

/* ---------- Trust strip (under hero) ---------- */
.trust {
  background: var(--c-cream-soft);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  padding: 1.4rem 0;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  font-weight: 500;
}
.trust__item svg {
  width: 22px; height: 22px;
  color: var(--c-terracotta);
  flex-shrink: 0;
}

/* ---------- Booking section + secondary CTA button ---------- */
.btn--book {
  background: transparent;
  color: var(--c-ivory);
  border-color: rgba(246, 239, 227, 0.6);
}
.btn--book:hover {
  background: rgba(246, 239, 227, 0.14);
  color: var(--c-ivory);
}
.booking-card {
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-m);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.booking-card__body { max-width: 52ch; }
.booking-card__body h3 { margin-bottom: 0.4rem; }
.booking-card__body p { color: var(--c-ink-soft); margin: 0; }
.booking-card__cta { display: flex; flex-direction: column; gap: 0.6rem; }
.booking-card__note {
  font-size: 0.82rem;
  color: var(--c-muted);
  font-style: italic;
  text-align: center;
}
.booking-embed {
  margin-top: 2rem;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-s);
  min-height: 640px;
  background: var(--c-cream-soft);
}
.booking-embed iframe { width: 100%; min-height: 640px; border: 0; display: block; }

/* ---------- Section eyebrow centering helper (replaces inline styles) ---------- */
.eyebrow--center {
  margin-left: 0;
  padding-left: 0;
}
.eyebrow--center::before { display: none; }

/* ---------- Micro-interaction polish ---------- */
.feature:hover .feature__icon {
  background: var(--c-terracotta);
  color: var(--c-ivory);
  transform: rotate(-6deg) scale(1.06);
}
.feature__icon { transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.package--featured { position: relative; }
.package--featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-l);
  pointer-events: none;
  box-shadow: 0 0 0 1px var(--c-gold), 0 18px 50px rgba(201, 162, 75, 0.18);
}

/* Decorative inline-svg ornament that themes correctly (gold) */
.ornament-inline { color: var(--c-gold-soft); display: inline-block; }
.ornament-inline svg { width: 100%; height: 100%; display: block; }

/* ---------- Responsive tweaks for the new pieces ---------- */
@media (max-width: 720px) {
  .booking-card { grid-template-columns: 1fr; text-align: center; }
  .booking-card__body { max-width: none; }
  .booking-card__cta .btn { width: 100%; justify-content: center; }
  .media-frame__caption { left: 1rem; right: 1rem; font-size: 1rem; }
  .media-frame__caption strong { font-size: 1.15rem; }
  .trust__inner { gap: 1rem 1.6rem; }
  .trust__item { font-size: 0.85rem; }
}

/* Dark-mode: trust + booking surfaces */
[data-theme="dark"] .trust { background: var(--c-bg-elev); }
[data-theme="dark"] .booking-card { background: var(--c-bg-elev); }
[data-theme="dark"] .media-frame__badge { background: rgba(38, 29, 23, 0.9); color: var(--c-ink); }
