/* ==========================================================================
   FABRIZIO — DESIGN SYSTEM
   Due famiglie soltanto. Interfaccia monocroma: il colore lo portano
   le immagini, non i bordi.
   ========================================================================== */

:root {
  /* Superfici */
  --bg:            #000000;
  --bg-raise:      #060606;
  --bg-media:      #030303;

  /* Linee */
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.2);

  /* Inchiostro */
  --ink:           #ffffff;
  --ink-2:         #b6b6bb;
  --ink-3:         #757579;
  --ink-4:         #4e4e54;

  /* Tipografia */
  --font-display:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scala */
  --fs-display:    clamp(3.1rem, 9.5vw, 7.6rem);
  --fs-h2:         clamp(2.2rem, 5.4vw, 4.2rem);
  --fs-h3:         clamp(1.55rem, 2.6vw, 2.2rem);
  --fs-lead:       clamp(1.05rem, 1.3vw, 1.25rem);
  --fs-body:       clamp(0.95rem, 1.05vw, 1.0625rem);
  --fs-label:      0.72rem;

  /* Ritmo */
  --shell:         1440px;
  --gutter:        clamp(22px, 6vw, 64px);
  --section-y:     clamp(96px, 13vh, 165px);

  /* Moto */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:        0.25s var(--ease);
  --t-norm:        0.5s var(--ease);
}

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

html {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; background: var(--bg); overflow-x: clip; position: relative; }

::selection { background: var(--ink); color: var(--bg); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast), opacity var(--t-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Impalcatura ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; padding: var(--section-y) 0; }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}

p { font-weight: 300; }

/* Etichetta di sezione */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: clamp(38px, 5vw, 64px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow span:first-child { color: var(--ink-4); }
.eyebrow span:last-child  { margin-left: auto; color: var(--ink-4); }

.h-section { font-size: var(--fs-h2); max-width: 16ch; margin-bottom: 26px; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  font-weight: 300;
}

.label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Rivelazione allo scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

.d-1 { transition-delay: 0.06s; }
.d-2 { transition-delay: 0.12s; }
.d-3 { transition-delay: 0.18s; }

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