/* OsteFiamme — Smoke & Fire palette (estratta dal logo) */
:root {
  --charcoal: #14100E;       /* nero carbone (bg principale) */
  --night: #1F1814;          /* card bg */
  --night-2: #2A211C;        /* surface elevata */
  --ash: #3A2E26;            /* divider/hover */
  --bordeaux: #3E1A2A;       /* bordeaux profondo accent */
  --bordeaux-deep: #2A0F1C;
  --ember: #E84B1B;          /* fiamma rosso/arancio */
  --ember-deep: #B8350F;
  --flame-yellow: #F4D622;   /* giallo logo — accent primario */
  --flame-yellow-soft: #E8C016;
  --smoke-gold: #D4A24C;     /* oro affumicato secondario */
  --smoke-gold-soft: #B8893A;
  --wood: #8B5A3C;           /* marrone legna */
  --bone: #F4EFE6;           /* testo principale */
  --bone-muted: #C9C0B3;
  --ash-muted: #908478;
  --line: rgba(244, 239, 230, 0.08);
  --line-strong: rgba(244, 239, 230, 0.16);

  --font-display: 'Bowlby One', 'Rye', 'Anton', sans-serif;
  --font-stencil: 'Rye', 'Bowlby One SC', serif;
  --font-script: 'Caveat Brush', 'Permanent Marker', cursive;
  --font-serif: 'DM Serif Display', 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Selection */
::selection { background: var(--ember); color: var(--bone); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--ash); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ember-deep); }

/* ============ Layout helpers ============ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 6vw, 96px) 0; }

/* ============ Type ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ember);
}
.eyebrow--gold { color: var(--smoke-gold); }
.eyebrow--gold::before { background: var(--smoke-gold); }

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(48px, 8.4vw, 132px);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.h-card {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.h-display .script, .h-section .script {
  color: var(--flame-yellow);
}
.body-lg { font-size: 18px; line-height: 1.55; color: var(--bone-muted); }
.body { font-size: 16px; line-height: 1.6; color: var(--bone-muted); }
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-muted);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.18s ease;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ember);
  color: var(--bone);
  box-shadow: 0 0 0 1px var(--ember), 0 8px 24px -8px rgba(232, 75, 27, 0.6);
}
.btn-primary:hover {
  background: var(--ember-deep);
  box-shadow: 0 0 0 1px var(--ember-deep), 0 12px 32px -8px rgba(232, 75, 27, 0.7);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--bone);
  background: rgba(244, 239, 230, 0.03);
}
.btn-gold {
  background: var(--smoke-gold);
  color: var(--charcoal);
}
.btn-gold:hover { background: var(--smoke-gold-soft); }
.btn-arrow::after { content: '→'; font-family: var(--font-body); font-size: 16px; letter-spacing: 0; }

/* ============ Cards ============ */
.card {
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); }

/* ============ Texture / decorative ============ */
.smoke-bg {
  position: relative;
}
.smoke-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 0%, rgba(232, 75, 27, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 500px at 90% 100%, rgba(212, 162, 76, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.smoke-bg > * { position: relative; z-index: 1; }

.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* ============ Tag chips ============ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(244, 239, 230, 0.05);
  color: var(--bone-muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tag--ember { color: var(--ember); box-shadow: inset 0 0 0 1px rgba(232, 75, 27, 0.4); background: rgba(232, 75, 27, 0.08); }
.tag--gold { color: var(--smoke-gold); box-shadow: inset 0 0 0 1px rgba(212, 162, 76, 0.4); background: rgba(212, 162, 76, 0.08); }

/* ============ Divider ============ */
.divider-flame {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: var(--ash-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.divider-flame::before, .divider-flame::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* ============ Inputs ============ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash-muted);
}
.field input, .field textarea, .field select {
  background: var(--charcoal);
  color: var(--bone);
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ember);
}
.field textarea { resize: vertical; min-height: 100px; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* small responsive */
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
