/* ===== Variabili del brand ===== */
:root {
  --orange: #F26B1D;
  --orange-dark: #d85a12;
  --dark: #2B2E34;
  --darker: #1e2025;
  --cream: #F2F1ED;
  --white: #ffffff;
  --muted: #a9adb5;
  --muted-dark: #5b606a;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 76px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--darker);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }

/* ===== Tipografia ===== */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
.accent { color: var(--orange); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--orange-dark); }

/* ===== Bottoni ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  letter-spacing: .04em;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 30px rgba(242, 107, 29, .35); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 14px 36px rgba(242, 107, 29, .5); }
.btn--ghost { border-color: rgba(242, 241, 237, .4); color: var(--cream); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--dark { background: var(--dark); color: var(--cream); }
.btn--dark:hover { background: var(--darker); }
.btn--sm { padding: .6rem 1.15rem; font-size: .82rem; }
.btn--block { width: 100%; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--orange); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

/* ===== Sfondo dinamico ===== */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120;
  background: var(--orange); transform: scaleX(0); transform-origin: 0 50%;
}

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