/* ============================================================
   VITTORIA FORNARI — Base & Reset  (mobile-first)
   base.css
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
/* overflow-x anche su html: il drawer mobile parcheggiato fuori schermo
   (translateX(100%)) allargava l'area scrollabile — lo scroll laterale
   spurio faceva sembrare la pagina "non responsive" (fix 18/07/2026) */
html { scroll-behavior:smooth; font-size:100%; overflow-x:clip; }
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}
body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-base);
  color: var(--color-text-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip e non hidden: hidden trasforma il body in scroll-container e
     spegne il position:sticky dell'header (bug storico della navbar).
     Fallback hidden per i browser senza clip, come per html sopra. */
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}
img { display:block; max-width:100%; height:auto; object-fit:cover; }
a   { color:inherit; text-decoration:none; }
ul,ol { list-style:none; }
button { cursor:pointer; font-family:inherit; border:none; background:none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  padding: 0 var(--space-sm);        /* mobile: 16px */
  margin: 0 auto;
}
@media (min-width: 640px) {
  .container { padding: 0 var(--space-md); }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--max-width);
    padding: 0 var(--space-lg);
  }
}

/* ── SEZIONI ── */
.section    { padding: var(--space-xl) 0; }
.section-lg { padding: var(--space-2xl) 0; }

/* Sfondi */
.bg-white  { background: var(--color-white); }
.bg-cream  { background: var(--color-cream); }
.bg-greige { background: var(--color-greige-lt); }
.bg-khaki  { background: var(--color-khaki); }
.bg-dark   { background: var(--color-text-dark); }

/* ── TIPOGRAFIA ── */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: var(--fw-thin);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.script {
  display: block;
  font-family: var(--font-script);
  font-size: var(--fs-script);
  color: var(--color-greige-md);
  line-height: 1.1;
}

.heading-xl {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  font-size: clamp(28px, 5vw, var(--fs-3xl));
  line-height: 1.2;
}
.heading-lg {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  font-size: clamp(22px, 4vw, var(--fs-2xl));
  line-height: 1.3;
}
.heading-md {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  font-size: clamp(18px, 3vw, var(--fs-xl));
  line-height: 1.35;
}
.heading-sm {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  font-size: clamp(16px, 2.5vw, var(--fs-lg));
  line-height: 1.4;
}

.body-text {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--color-text-mid);
}

/* ── BOTTONI ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

/* Outline scuro */
.btn-outline {
  border-color: var(--color-khaki);
  color: var(--color-khaki);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-khaki);
  color: var(--color-white);
}

/* Solid */
.btn-solid {
  background: var(--color-khaki);
  color: var(--color-white);
  border-color: var(--color-khaki);
}
.btn-solid:hover {
  background: var(--color-text-dark);
  border-color: var(--color-text-dark);
}

/* Outline chiaro — su sfondi scuri/colorati */
.btn-outline-light {
  border-color: rgba(255,255,255,.65);
  color: var(--color-white);
  background: transparent;
  font-weight: var(--fw-light);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.18);
  border-color: var(--color-white);
}

/* ── UTILITY ── */
.text-center { text-align: center; }

.monogram {
  width: 48px; height: 48px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--color-gold);
}

.divider-gold {
  width: 50px; height: 1px;
  background: var(--color-gold);
  opacity: .5;
  margin: var(--space-md) auto;
}

/* Placeholder foto */
.photo-placeholder {
  background: var(--color-greige);
  /* border: 2px solid var(--color-gold); */
  display: flex; align-items: center;
  color: rgba(255,255,255,.45);
  font-family: var(--font-sans);
  font-weight: var(--fw-thin);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-sm);
}

/* Regola placeholder col logo (20/07/2026): un riquadro immagine senza
   foto mostra lo yantra tenue al centro del fondo colorato — mai box
   vuoti o testo segnaposto. Attivo solo quando dentro NON c'è un'<img>
   (:has), così non spunta dietro le cornicette delle foto vere.
   Se un'img va in errore, main.js la rimuove e lo yantra riemerge. */
.photo-placeholder:not(:has(img)) {
  position: relative;
}
.photo-placeholder:not(:has(img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/brand/vf-yantra.png') center / min(45%, 140px) no-repeat;
  opacity: .18;
  pointer-events: none;
}

/* Wave SVG */
.wave-divider {
  display: block;
  line-height: 0;
  margin-bottom: -1px;
}
.wave-divider svg { display:block; width:100%; height:64px; }

/* ── FADE-IN SCROLL ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.visible { opacity:1; transform:translateY(0); }
.fade-in:nth-child(2) { transition-delay:.1s; }
.fade-in:nth-child(3) { transition-delay:.2s; }
.fade-in:nth-child(4) { transition-delay:.3s; }
.fade-in:nth-child(5) { transition-delay:.4s; }
