/* ============================================================
   LUME — token e base
   I colori del marchio (brochure, ottobre 2026): grafite, avorio,
   aragosta e terracotta. Caratteri: Bodoni Moda per i titoli,
   Hanken Grotesk per il testo.
   ============================================================ */

:root {
  --nav-h: 64px;

  --ground:      #2B2B2E;   /* grafite */
  --ground-deep: #232326;
  --sheet:       #333337;
  --ink:   #F3EEE4;                     /* avorio */
  --ink-2: rgba(243, 238, 228, 0.78);
  --ink-3: rgba(243, 238, 228, 0.6);
  --rule:        rgba(243, 238, 228, 0.14);
  --rule-strong: rgba(243, 238, 228, 0.32);
  --accent:      #C8613F;   /* aragosta: linee, punti, quote */
  --accent-hi:   #E8957A;   /* aragosta chiara: testi piccoli sul grafite */
  --accent-text: var(--accent-hi);
  --on-accent:   #2B2B2E;
  --btn-bg:      #A65230;   /* terracotta: bottoni con testo avorio leggibile */
  --btn-ink:     #F3EEE4;
  --focus-bg:    rgba(200, 97, 63, 0.1);
  --error:       #F0A48C;

  --font: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  --font-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: dark;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rule-strong) var(--ground);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
input, textarea, button, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* —————————————————————————— Ruoli tipografici —————————————————————————— */
.h-display, .h-section, .mobile-menu a,
.comp-grid h3, .tappe h3, .pubblici h3, .staff-grid h3, .srv-list h3 {
  font-family: var(--font-display);
}
.h-display {
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);
  line-height: 0.94;
  font-stretch: 62%;
  font-weight: 380;
  letter-spacing: -0.02em;
}
.h-section {
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3.5rem);
  line-height: 1;
  font-stretch: 70%;
  font-weight: 420;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
}

/* —————————————————————————— Azioni —————————————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--ground); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.link {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: currentColor; }
