/* =====================================================================
   GCostruzioni — Design System v2
   Architectural editorial · deep teal accent · Inter + JetBrains Mono
   ===================================================================== */

:root {
  /* Colors — palette più calda e con presenza */
  --bg:           #EFE7D5;   /* warm stone / parchment */
  --bg-alt:       #E3D9BF;   /* deeper stone */
  --bg-soft:      #F5EFE0;   /* lighter cream for variety */
  --surface:      #FFFFFF;
  --ink:          #0F0F11;
  --ink-2:        #3D3D40;
  --ink-3:        #6F6F73;
  --ink-4:        #ADADB0;
  --accent:       #0E4F4A;   /* deep teal */
  --accent-mid:   #2A8B86;
  --accent-soft:  #BFD9D5;
  --accent-pale:  #E0EAE8;
  --rust:         #B85C3B;   /* warm secondary accent (used sparingly) */
  --deep:         #0F0F11;
  --deep-alt:     #1B1B1F;
  --line:         rgba(15,15,17,0.16);
  --line-strong:  rgba(15,15,17,0.28);
  --line-dark:    rgba(255,255,255,0.14);

  /* Type scale */
  --t-eyebrow:    12px;
  --t-body:       16px;
  --t-lead:       18px;
  --t-h6:         18px;
  --t-h5:         22px;
  --t-h4:         28px;
  --t-h3:         clamp(28px, 3.2vw, 40px);
  --t-h2:         clamp(36px, 4.8vw, 60px);
  --t-h1:         clamp(48px, 6.4vw, 92px);

  /* Spacing */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  /* Layout */
  --container:    1240px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(15,15,17,0.06);
  --shadow-md: 0 8px 28px rgba(15,15,17,0.10), 0 2px 6px rgba(15,15,17,0.04);
  --shadow-lg: 0 20px 50px rgba(15,15,17,0.14), 0 6px 14px rgba(15,15,17,0.06);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* Subtle paper texture */
  background-image:
    radial-gradient(1200px 600px at 10% 0%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(900px 500px at 95% 25%, rgba(14,79,74,0.05), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(15,15,17,0.04) 1px, transparent 1px);
  background-size: auto, auto, 3px 3px;
  background-position: 0 0, 0 0, 0 0;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'cv11';
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #fff; }

/* ──────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.display {
  font-size: var(--t-h1);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h2 { font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1.05; }
.h3 { font-size: var(--t-h3); letter-spacing: -0.025em; line-height: 1.1; }
.h4 { font-size: var(--t-h4); letter-spacing: -0.02em; line-height: 1.15; }
.h5 { font-size: var(--t-h5); letter-spacing: -0.015em; line-height: 1.25; }
.h6 { font-size: var(--t-h6); letter-spacing: -0.005em; line-height: 1.3; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.muted { color: var(--ink-2); }
.eyebrow.on-dark { color: var(--accent-soft); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 400;
}

.body-md { font-size: var(--t-body); line-height: 1.7; color: var(--ink-2); }
.body-sm { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.text-accent { color: var(--accent); }
.text-mid    { color: var(--ink-2); }
.text-faint  { color: var(--ink-3); }

.hl {
  color: var(--accent);
  font-weight: inherit;
  position: relative;
}

/* ──────────────────────────────────────────────────────────────────
   LAYOUT PRIMITIVES
   ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section { padding: var(--sp-10) 0; }
.section-sm { padding: var(--sp-9) 0; }
.section-xs { padding: var(--sp-8) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: var(--sp-8);
}
.section-head .col-eyebrow { padding-top: 14px; }

/* Sezioni scure */
.section-dark {
  background: var(--deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 10% 0%, rgba(42,139,134,0.08), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(184,92,59,0.06), transparent 60%);
  pointer-events: none;
}
.section-dark > * { position: relative; z-index: 1; }
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 { color: #fff; }
.section-dark .lead, .section-dark .body-md, .section-dark .body-sm,
.section-dark .text-mid { color: rgba(255,255,255,0.78); }
.section-dark .text-faint { color: rgba(255,255,255,0.52); }
.section-dark .eyebrow { color: var(--accent-mid); }
.section-dark .hl { color: var(--accent-mid); }

/* Sezioni alternate */
.section-cream {
  background: var(--bg-soft);
  position: relative;
}
.section-cream::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(14,79,74,0.04), transparent 60%);
  pointer-events: none;
}
.section-cream > * { position: relative; z-index: 1; }

.section-warm {
  background: var(--bg-alt);
  position: relative;
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}
.rule-dark { background: var(--line-dark); }
.rule-strong { background: var(--line-strong); }

/* Decorative serial number */
.serial {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-block;
}

/* ──────────────────────────────────────────────────────────────────
   BUTTONS / LINKS
   ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s, border-color 0.2s, box-shadow 0.25s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(14,79,74,0.28); }
.btn:hover::after { transform: translateX(130%); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.10); border-color: #fff; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 0.22s, color 0.2s;
  cursor: pointer;
}
.link::after { content: '→'; }
.link:hover { gap: 14px; color: var(--accent-mid); }

/* ──────────────────────────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(239,231,213,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(239,231,213,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 32px;
  box-shadow: 0 4px 18px rgba(15,15,17,0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo img { height: 34px; width: auto; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: 18px; }

/* Area riservata — pulsante secondario, accanto al CTA */
.nav-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-area svg { stroke: var(--accent); flex-shrink: 0; }
.nav-area:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-pale);
}

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero scuro — manteniamo il logo a colori e usiamo wordmark testuale */
.nav.on-dark:not(.scrolled) .nav-link { color: rgba(255,255,255,0.85); }
.nav.on-dark:not(.scrolled) .nav-link:hover,
.nav.on-dark:not(.scrolled) .nav-link.active { color: #fff; }
.nav.on-dark:not(.scrolled) .nav-link.active::after { background: var(--accent-mid); }
.nav.on-dark:not(.scrolled) .nav-cta {
  background: #fff; color: var(--ink);
}
.nav.on-dark:not(.scrolled) .nav-cta:hover { background: var(--accent); color: #fff; }
.nav.on-dark:not(.scrolled) .nav-toggle span { background: #fff; }
/* niente filter:invert sul logo — usiamo il wordmark testuale dove serve */
.nav-wordmark {
  display: none;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: #fff;
}
.nav.on-dark:not(.scrolled) .nav-logo img { display: none; }
.nav.on-dark:not(.scrolled) .nav-logo .nav-wordmark { display: inline-block; }

/* ──────────────────────────────────────────────────────────────────
   CARDS / SURFACES — più materici
   ────────────────────────────────────────────────────────────────── */
.card-base {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.3s, box-shadow 0.3s;
}
.card-base:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ──────────────────────────────────────────────────────────────────
   CTA STRIP (era mancante in main.css → ora globale)
   ────────────────────────────────────────────────────────────────── */
.cta-strip {
  background: var(--accent);
  color: #fff;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(15,15,17,0.18), transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip .eyebrow {
  margin: 0 auto 24px;
  justify-content: center;
  color: var(--accent-mid);
}
.cta-strip .eyebrow::before { background: var(--accent-mid); opacity: 1; }
.cta-strip .eyebrow.cta-eyebrow-dark { color: #0F0F11; }
.cta-strip .eyebrow.cta-eyebrow-dark::before { background: #0F0F11; }
.cta-strip h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 720px) {
  .cta-strip { padding: 80px 0; }
}

/* ──────────────────────────────────────────────────────────────────
   FOOTER — bg scuro, logo wordmark testuale (no logo bianco)
   ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--deep-alt);
  color: rgba(255,255,255,0.65);
  padding: 96px 0 36px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(42,139,134,0.06), transparent 60%);
  pointer-events: none;
}
/* decoro architettonico: piccolo accento teal in alto a sinistra */
.footer::after {
  content: '';
  position: absolute;
  top: 0; left: 32px;
  width: 64px; height: 2px;
  background: var(--accent-mid);
  z-index: 2;
}
.footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 0;
}
.footer-brand img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-brand-sub {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-top: 6px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
  max-width: 320px;
  margin-top: 22px;
}
.footer-col h6 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
.footer-col a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }
.footer-private {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-private:hover { color: var(--accent-mid); }
.footer-private::before { content: '· '; }

/* ──────────────────────────────────────────────────────────────────
   REVEAL / SCROLL ANIMATIONS
   ────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.r-d-1 { transition-delay: 0.08s; }
.r-d-2 { transition-delay: 0.16s; }
.r-d-3 { transition-delay: 0.24s; }
.r-d-4 { transition-delay: 0.32s; }

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

/* ──────────────────────────────────────────────────────────────────
   PROFESSIONAL POLISH — page fade-in, scroll progress, micro-FX
   ────────────────────────────────────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageFadeIn 0.55s ease-out both; }

/* Scroll progress bar in cima alla pagina */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-mid));
  z-index: 200;
  box-shadow: 0 0 8px rgba(14,79,74,0.45);
  pointer-events: none;
  will-change: transform;
}

/* Underline animato sui nav link (hover/focus) */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--ink-3);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.32s cubic-bezier(0.65,0,0.35,1);
}
.nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-link.active::before { display: none; }

/* Hover lift su .link */
.link {
  transition: gap 0.22s, color 0.2s, transform 0.25s;
}
.link:hover { transform: translateX(2px); }

/* Magnetic buttons — il JS imposta --mx/--my, il CSS fa il resto */
.btn { will-change: transform; }
@media (hover: hover) and (min-width: 861px) {
  .btn-magnetic,
  .btn-magnetic:hover {
    transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
  }
}

/* Hover glow su pulsante primary (rinforza l'effetto già esistente) */
.btn:not(.btn-outline):not(.btn-light):not(.btn-ghost-light):hover {
  box-shadow:
    0 14px 32px rgba(14,79,74,0.32),
    0 0 0 6px rgba(14,79,74,0.06);
}

/* ──────────────────────────────────────────────────────────────────
   PAGE HEADER
   ────────────────────────────────────────────────────────────────── */
.page-header {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  left: 32px; bottom: -1px;
  width: 80px; height: 3px;
  background: var(--accent);
}
.page-header .eyebrow { margin-bottom: 24px; }
.page-header h1 {
  font-size: var(--t-h1);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 920px;
  margin-bottom: 28px;
}
.page-header .lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────
   MEDIA QUERIES
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-menu {
    position: fixed;
    top: 0; left: 0; right: auto;
    height: 100vh; width: 80%;
    max-width: 360px;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 32px 32px;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
    border-right: 1px solid var(--line);
    border-left: 0;
    box-shadow: 24px 0 60px rgba(15,15,17,0.10);
    will-change: transform;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .nav-link {
    font-size: 18px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: block;
    color: var(--ink-2);
  }
  .nav-link.active { color: var(--ink); }
  .nav-link.active::after { display: none; }
  .nav-cta-mobile { width: 100%; margin-top: 16px; justify-content: center; padding: 14px 22px; }
  .nav-cta-desktop { display: none; }
  .nav-area-desktop { display: none; }
  .nav-area-mobile { width: 100%; margin-top: 10px; justify-content: center; padding: 12px 18px; }
  .nav-toggle { display: flex; z-index: 110; }
  /* mobile menu: anche se nav è on-dark, il pannello aperto è chiaro */
  .nav.on-dark .nav-menu .nav-link { color: var(--ink-2); }
  .nav.on-dark .nav-menu .nav-link.active { color: var(--ink); }

  .section { padding: var(--sp-9) 0; }
  .section-sm { padding: var(--sp-8) 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .container, .container-narrow { padding: 0 22px; }

  .footer { padding: 72px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 56px; }
  .footer-bottom { font-size: 11px; }
  .page-header { padding: 130px 0 60px; }
  .page-header .lead { font-size: 17px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   MOBILE PORTRAIT — fine tuning ≤ 600px
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --t-h1: clamp(34px, 9.2vw, 52px);
    --t-h2: clamp(26px, 7.2vw, 40px);
    --t-h3: clamp(22px, 5.4vw, 30px);
    --t-h4: 22px;
    --t-lead: 16px;
    --t-body: 15px;
    --sp-9: 64px;
    --sp-10: 72px;
  }
  body { line-height: 1.6; }

  .container, .container-narrow { padding: 0 18px; }

  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .section-xs { padding: 36px 0; }

  .section-head { gap: 10px; margin-bottom: 32px; }
  .section-head .col-eyebrow { padding-top: 0; }

  .eyebrow { font-size: 11px; letter-spacing: 0.16em; }
  .eyebrow::before { width: 22px; }
  .lead { font-size: 16px; line-height: 1.6; }

  .btn { padding: 13px 22px; font-size: 13px; gap: 10px; }

  .nav { padding: 12px 16px; }
  .nav.scrolled { padding: 10px 16px; }
  .nav-logo img { height: 28px; }
  .nav-menu { padding: 84px 24px 28px; }
  .nav-link { font-size: 17px; padding: 13px 0; }

  .page-header { padding: 110px 0 48px; }
  .page-header .eyebrow { margin-bottom: 18px; }
  .page-header h1 { margin-bottom: 20px; }
  .page-header .lead { font-size: 16px; }
  .page-header::after { left: 18px; width: 60px; }

  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 28px; margin-bottom: 40px; }
  .footer-brand img { height: 44px; }
  .footer-tagline { font-size: 13px; line-height: 1.65; margin-top: 16px; }
  .footer-col h6 { margin-bottom: 14px; }
  .footer-col li { font-size: 13px; margin-bottom: 8px; }
  .footer-bottom { font-size: 10.5px; gap: 10px; padding-top: 22px; }

  .cta-strip { padding: 64px 0; }
  .cta-strip p { font-size: 16px; margin-bottom: 28px; line-height: 1.6; }
  .cta-strip-actions { gap: 10px; }
}
