/* ==========================================================================
   METROSHAPE — base.css
   Design tokens, reset e tipografia (estratti dal Figma METROSHAPE)
   ========================================================================== */

/* --- Font: Pathway Extreme (variabile, opsz 120 come da Figma) --- */
@import url('https://fonts.googleapis.com/css2?family=Pathway+Extreme:opsz,wght@8..144,100..900&display=swap');

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand / colori */
  --c-primary:        #6fa82d; /* verde primario */
  --c-primary-dark:   #1d3c0a; /* verde scuro (hover) */
  --c-primary-darker: #0b1904; /* verde quasi nero (heading) */
  --c-ink:            #111111; /* nero testo forte */
  --c-text:           #343434; /* testo standard */
  --c-text-soft:      #3b3b3a; /* testo soft */
  --c-muted:          #888888; /* disabilitato / grigio */
  --c-bg:             #f0f0f0; /* sfondo pagina */
  --c-surface:        #ffffff; /* superfici / card */
  --c-placeholder:    #d9d9d9; /* placeholder immagini */
  --c-white:          #ffffff;

  /* Tipografia */
  --font-base: 'Pathway Extreme', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-h1:    80px;  --lh-h1: 1.06;
  --fs-h2:    40px;  --lh-h2: 1.35;
  --fs-h3:    24px;  --lh-h3: 1.25;
  --fs-body:  18px;  --lh-body: 1.55;
  --fs-small: 14px;  --lh-small: 1.43;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-extra:   800;

  /* Layout */
  --container: 1400px; /* larghezza contenuto reale (margini laterali ~164px su 1728) */
  --gutter: 40px;      /* respiro laterale minimo su schermi stretti */
  --radius: 0px; /* il design Metroshape è squadrato: nessun arrotondamento */

  /* Spaziatura (scala 4px) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-11: 44px; --sp-15: 60px; --sp-20: 80px;

  /* Transizioni */
  --t-fast: .15s ease;
  --t: .25s ease;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-optical-sizing: auto;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
  color: var(--c-primary-darker);
  letter-spacing: -.01em;
}
h2, .h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}
h3, .h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-primary-darker);
}

.text-accent { color: var(--c-primary); }

/* Eyebrow / occhiello sopra i titoli */
.eyebrow {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-primary-darker);
}

/* Label di sezione (uppercase, con freccetta) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--c-primary);
  font-size: var(--fs-body);
  line-height: 1.55;
}
.section-label::before {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  flex: 0 0 auto;
}
.section-label.is-negative { color: var(--c-white); }

.lead { font-size: var(--fs-h2); line-height: 1.2; font-weight: var(--fw-regular); }
.paragraph { font-size: var(--fs-body); line-height: var(--lh-body); }
.paragraph-bold { font-weight: var(--fw-bold); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }

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

/* Padding verticale ampio come nel progetto (~120px su desktop) */
.section { padding-block: clamp(56px, 7.5vw, 120px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Responsive: ridimensiona la scala tipografica
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --fs-h1: 44px; --fs-h2: 30px; --gutter: 20px; }
}
@media (max-width: 600px) {
  :root { --fs-h1: 36px; --fs-h2: 26px; --fs-h3: 22px; }
}
