/* ==========================================================================
   SOGNO CASA — Design tokens e stili di base
   Palette: Blu Sogno (dal logo) + Mattone alessandrino + Avorio
   ========================================================================== */

:root {
  /* Colori brand */
  --blu-sogno: #205489;      /* colore esatto del logo */
  --blu-profondo: #14365c;
  --blu-notte: #0b1d33;      /* sfondi scuri */
  --blu-abisso: #071324;
  --azzurro: #8fb4dc;        /* blu su fondo scuro */
  --nebbia: #e8eff7;         /* tinta chiara del blu */

  --mattone: #b4532f;        /* accento: mattone alessandrino (AA su bianco) */
  --mattone-chiaro: #e08a62; /* accento su fondo scuro */
  --mattone-tenue: #f6e3d9;

  --avorio: #f7f3ee;         /* sfondo chiaro caldo */
  --carta: #ffffff;
  --inchiostro: #0b1d33;     /* testo principale */
  --pietra: #5b6b7f;         /* testo secondario */
  --linea: #e3dcd2;          /* bordi su avorio */

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Spaziature, raggi, ombre, movimento */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section: clamp(80px, 12vw, 160px);
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 29, 51, .06), 0 12px 32px -12px rgba(11, 29, 51, .18);
  --shadow-lg: 0 40px 80px -30px rgba(11, 29, 51, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--avorio);
  color: var(--inchiostro);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mattone-chiaro); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Titoli: Fraunces, con parola d'enfasi in corsivo mattone */
.display, h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; font-variation-settings: 'opsz' 144; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 500; color: var(--mattone); }
.on-dark h1 em, .on-dark h2 em { color: var(--mattone-chiaro); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mattone);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--mattone-chiaro); }

/* Bottoni */
.btn {
  --bg: var(--mattone); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 700 0.95rem/1 var(--font-ui); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  box-shadow: 0 10px 30px -10px rgba(180, 83, 47, .6);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(180, 83, 47, .75); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; background: rgba(255, 255, 255, .08); }
.btn--blu { --bg: var(--blu-sogno); box-shadow: 0 10px 30px -10px rgba(32, 84, 137, .6); }
.btn--wa { --bg: #1f8f55; box-shadow: 0 10px 30px -12px rgba(31, 143, 85, .6); }
.btn--wa:hover { box-shadow: 0 16px 36px -12px rgba(31, 143, 85, .7); }
.btn--chiaro { --bg: #fff; --fg: var(--inchiostro); box-shadow: none; }
.btn--ghost-scuro { --bg: transparent; --fg: var(--inchiostro); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn--ghost-scuro:hover { box-shadow: inset 0 0 0 1.5px var(--pietra); }

/* Icone (sprite SVG) */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.link-freccia { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--mattone); }
.link-freccia .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-freccia:hover .ico { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
