/* ═══════════════════════════════════════════════════════════════
   NEXARI SRL · style.css
   Palette: Acciaio Bresciano — blue-steel + verdigris + ruggine
   Type:    Syne (display) · DM Sans (body)
   ═══════════════════════════════════════════════════════════════ */

/* 1 · Tokens ─────────────────────────────────────────────────── */
/* Every colour below is themed. Dark is the default (:root); light is the
   override block in §1b. Rule: never hardcode a colour outside these two
   blocks — if a new value is needed, add a token so light gets it too. */
:root {
  color-scheme: dark;

  /* Backgrounds — blue-steel, not cold navy, not warm charcoal */
  --bg0: #0b1118;
  --bg1: #101820;
  --bg2: #172030;
  --bg3: #1d2a3c;

  /* Borders */
  --bd:   rgba(160,210,200,0.07);
  --bd-v: rgba(74,138,122,0.24);

  /* Verdigris — aged copper patina, primary accent */
  --v:    #4a8a7a;
  --v-d:  #356658;
  --v-l:  #62a896;
  --v-gl: rgba(74,138,122,0.10);

  /* Ruggine — iron oxide, premium secondary */
  --ox:    #c8813e;
  --ox-d:  #a0652e;
  --ox-gl: rgba(200,129,62,0.09);

  /* Text — cool silver-teal tones */
  --w:  #dae8e4;    /* silver-white, slight teal cast */
  --t:  #7a9e96;    /* sage-teal body */
  --mu: #486860;    /* muted */
  --fa: #1b3430;    /* faint */
  --w-soft: rgba(218,232,228,0.62);   /* hero thin lines, over canvas */

  /* Chrome — translucent nav, form fields, selection */
  --nav-bg:      rgba(11,17,24,0.90);
  --nav-menu-bg: rgba(11,17,24,0.97);
  --input-bg:    rgba(255,255,255,0.04);
  --input-bd-f:  rgba(74,138,122,0.50);
  --sel-bg:      rgba(74,138,122,0.22);

  /* Verdigris derivatives — chips, glows, ghosted numerals */
  --v-s:     rgba(74,138,122,0.09);   /* chip / badge fill */
  --v-sb:    rgba(74,138,122,0.16);   /* chip / badge border */
  --v-sh:    rgba(74,138,122,0.22);   /* button hover glow */
  --v-amb:   rgba(74,138,122,0.07);   /* ambient radial washes */
  --v-ghost: rgba(74,138,122,0.38);   /* service card numerals */

  /* Ruggine derivatives */
  --ox-s:     rgba(200,129,62,0.09);
  --ox-sb:    rgba(200,129,62,0.15);
  --ox-ghost: rgba(200,129,62,0.14);  /* oversized process numerals */

  /* Elevation — dark leans on glow, light leans on shadow */
  --sh-sm:    none;
  --sh-card:  0 24px 64px rgba(0,0,0,0.38);
  --sh-inset: 0 1px 0 rgba(74,138,122,0.10) inset;

  /* Hero particle network — JS reads --particle as a bare "r,g,b" triple */
  --particle: 74,138,122;
  --canvas-o: 0.65;

  /* Type */
  --fd: 'Syne', system-ui, sans-serif;
  --ft: 'DM Sans', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ap:   cubic-bezier(0.22, 1, 0.36, 1); /* expo ease-out — Apple standard */

  /* Shape */
  --r:  10px;
  --rl: 20px;
}

/* 1b · Light theme ───────────────────────────────────────────────
   Same identity, inverted material. The blue-steel base becomes cool
   tinted paper; verdigris and ruggine are darkened until they clear
   4.5:1 on that paper (they read washed-out and fail contrast at their
   dark-theme values). Elevation flips: dark stacks *lighter* surfaces,
   light stacks *whiter* ones — so bg0 is the tinted page and bg1→bg2
   climb toward white for bands and cards. */
:root[data-theme="light"] {
  color-scheme: light;

  --bg0: #eef3f1;   /* page — cool paper with a verdigris cast */
  --bg1: #f7faf9;   /* lifted band (manifesto, processo, contatti) */
  --bg2: #ffffff;   /* cards */
  --bg3: #e3ebe8;

  --bd:   rgba(23,52,46,0.11);
  --bd-v: rgba(47,114,97,0.30);

  --v:    #2f7261;  /* 5.7:1 on paper, and against #fff button labels */
  --v-d:  #235a4c;
  --v-l:  #276353;  /* "light" variant inverts to darker on light bg */
  --v-gl: rgba(47,114,97,0.10);

  --ox:    #a05f24; /* 5.0:1 — #c8813e sits at 2.4:1 here, unusable */
  --ox-d:  #824d1b;
  --ox-gl: rgba(160,95,36,0.10);

  --w:  #10212a;    /* ink — the dark theme's bg0, inverted into type */
  --t:  #3d5c56;
  --mu: #4e6b66;    /* 5.8:1 — carries most small copy */
  --fa: #5d7a74;    /* 4.7:1 — still passes, unlike a true "faint" */
  --w-soft: rgba(16,33,42,0.66);

  --nav-bg:      rgba(238,243,241,0.88);
  --nav-menu-bg: rgba(238,243,241,0.97);
  --input-bg:    rgba(16,33,42,0.03);
  --input-bd-f:  rgba(47,114,97,0.55);
  --sel-bg:      rgba(47,114,97,0.18);

  --v-s:     rgba(47,114,97,0.09);
  --v-sb:    rgba(47,114,97,0.20);
  --v-sh:    rgba(47,114,97,0.20);
  --v-amb:   rgba(47,114,97,0.06);
  --v-ghost: rgba(47,114,97,0.45);

  --ox-s:     rgba(160,95,36,0.09);
  --ox-sb:    rgba(160,95,36,0.22);
  --ox-ghost: rgba(160,95,36,0.20);

  /* White cards on near-white paper need shadow, not borders, to sit up */
  --sh-sm:    0 1px 2px rgba(16,40,48,0.05), 0 10px 30px rgba(16,40,48,0.05);
  --sh-card:  0 20px 48px rgba(16,40,48,0.11);
  --sh-inset: 0 1px 0 rgba(255,255,255,0.9) inset;

  --particle: 42,102,87;
  --canvas-o: 0.85;  /* thin strokes lose more contrast on paper */
}

/* Theme crossfade — class is added by JS for ~360ms around the swap, so
   colours ease instead of snapping. No !important: elements that declare
   their own transition (cards, buttons, nav) keep it and win the cascade. */
:root.theme-anim,
:root.theme-anim *,
:root.theme-anim *::before,
:root.theme-anim *::after {
  transition: background-color 320ms ease, border-color 320ms ease,
              color 320ms ease, box-shadow 320ms ease;
}

/* 2 · Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ft);
  background: var(--bg0);
  color: var(--t);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: var(--v-d); border-radius: 2px; }
::selection { background: var(--sel-bg); color: var(--w); }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }

/* 3 · Layout ─────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* 4 · Progress bar ───────────────────────────────────────────── */
#progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--v), var(--ox));
  z-index: 1000; pointer-events: none;
}

/* 5 · Reveal system — blur + scale + translate (Apple-style) ── */
[data-r] {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  filter: blur(7px);
  transition:
    opacity   0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter    0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-r].on { opacity: 1; transform: none; filter: blur(0); }
[data-r][data-d="1"] { transition-delay: 0.10s; }
[data-r][data-d="2"] { transition-delay: 0.20s; }
[data-r][data-d="3"] { transition-delay: 0.30s; }
[data-r][data-d="4"] { transition-delay: 0.40s; }

/* Eyebrow labels slide in from left, not bottom */
.s-eye[data-r] { transform: translateX(-20px) scale(1); filter: blur(3px); }
.s-eye[data-r].on { transform: none; filter: blur(0); }

/* Hero line-mask container */
.h1-line { display: block; overflow: hidden; }

/* 6 · Navigation ─────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 24px 0;
  border-bottom: 1px solid transparent;
  transition: padding 260ms var(--ease), background 260ms, border-color 260ms;
}
#nav.stuck {
  padding: 15px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--bd);
}
#nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fd); font-size: 1.18rem; font-weight: 700;
  color: var(--w); text-decoration: none; letter-spacing: -0.01em;
}
.nav-logo span { color: var(--v); }
.nav-logo-img { width: 28px; height: 28px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 0.84rem; font-weight: 500; color: var(--mu);
  text-decoration: none; transition: color 180ms;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 100%; height: 1px;
  background: var(--v);
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease);
}
.nav-links a:hover { color: var(--w); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  --tx: 0px; --ty: 0px;
  padding: 9px 20px; background: var(--v); color: #fff;
  font-weight: 600; font-size: 0.84rem; border-radius: var(--r);
  text-decoration: none;
  transform: translate(var(--tx), var(--ty));
  transition: transform 350ms var(--ease), background 180ms, box-shadow 200ms;
}
.nav-cta:hover { background: var(--v-d); box-shadow: 0 6px 24px var(--v-sh); }

/* Right-hand nav cluster — keeps space-between at three groups */
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Theme toggle — same 10px radius language as the buttons, but ghosted:
   it is a utility, not a call to action, so it never takes the accent fill.
   The two icons are stacked in one grid cell and cross-rotate on swap. */
.theme-tg {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: transparent; color: var(--mu);
  border: 1px solid var(--bd); border-radius: var(--r);
  cursor: pointer; padding: 0;
  transition: color 200ms, border-color 200ms, background 200ms;
}
.theme-tg:hover { color: var(--v); border-color: var(--bd-v); background: var(--v-gl); }
.theme-tg svg {
  grid-area: 1 / 1;
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 260ms var(--ease), transform 460ms var(--ease);
}
/* Show the icon of the theme you are switching *to* */
.theme-tg .tg-moon { opacity: 0; transform: rotate(-65deg) scale(0.55); }
:root[data-theme="light"] .theme-tg .tg-sun  { opacity: 0; transform: rotate(65deg) scale(0.55); }
:root[data-theme="light"] .theme-tg .tg-moon { opacity: 1; transform: none; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 6px;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-burger span {
  display: block; height: 1.5px; background: var(--w);
  border-radius: 2px; transition: transform 220ms var(--ease), opacity 150ms;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 7 · Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;      /* FIX: center, not flex-end */
  padding: 130px 0 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: var(--canvas-o);
}

/* Bottom fade so stats don't fight canvas */
#hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg0));
  z-index: 1; pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

/* Eyebrow */
.hero-eye {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 44px;
}
.hero-eye-bar { width: 28px; height: 1px; background: var(--v); flex-shrink: 0; }
.hero-eye-t {
  font-size: 0.7rem; font-weight: 500; color: var(--v);
  text-transform: uppercase; letter-spacing: 0.15em;
}

/* Title — editorial hierarchy: DM Sans descriptor → Syne display word */
.hero-h1 {
  margin-bottom: 56px;
}

/* Thin lines: DM Sans (body font), small, recede into background */
.hero-h1 .thin {
  display: block;
  font-family: var(--ft);           /* DM Sans — deliberately different font */
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  font-weight: 300;
  color: var(--w-soft);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

/* Accent word: Syne, massive, dominant.
   Font-size is fit-to-container (not a guessed clamp): measured "Sostenibilità."
   at Syne 800 / -0.03em renders 9.709px wide per 1px of font-size, so
   9.68vw - 6.2px (padding-adjusted) keeps it filling the line at ~94% with
   no wrap, at any viewport, up to the 6rem design cap. */
.hero-h1 .bold {
  display: block;
  font-family: var(--fd);           /* Syne — different from the lines above */
  font-size: clamp(1.7rem, calc(9.68vw - 6.2px), 6rem);
  font-weight: 800;
  color: var(--w);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-top: 28px;
  overflow-wrap: break-word;
}


/* EN hero word is a different string, so it needs its own fit-to-container
   constant: measured "Sustainability." at Syne 800 / -0.03em renders
   10.570px wide per 1px of font-size (8.9% wider than "Sostenibilità."),
   so the Italian 9.68vw would overflow and wrap the trailing period. */
html[lang="en"] .hero-h1 .bold {
  font-size: clamp(1.7rem, calc(8.89vw - 5.69px), 6rem);
}

.hero-h1 .bold.accent { color: var(--v); }

/* Word-animation helpers (set by JS) */
.hero-h1 .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* Hero bottom row */
.hero-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 64px; align-items: end;
}
.hero-p {
  font-size: clamp(0.94rem, 1.5vw, 1.06rem);
  font-weight: 300; color: var(--w); opacity: 0.78; line-height: 1.8; max-width: 440px;
}
.hero-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }

/* Buttons — magnetic effect via CSS vars set by JS */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; background: var(--v); color: #fff;
  font-weight: 600; font-size: 0.88rem; border-radius: var(--r);
  text-decoration: none; white-space: nowrap;
  transform: translate(var(--tx), var(--ty));
  transition: transform 350ms var(--ease), background 180ms, box-shadow 200ms;
  will-change: transform;
}
.btn:hover { background: var(--v-d); box-shadow: 0 10px 32px var(--v-sh); }

.btn-lg {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 32px; background: var(--v); color: #fff;
  font-weight: 700; font-size: 0.9rem; border-radius: var(--r);
  text-decoration: none; white-space: nowrap;
  transform: translate(var(--tx), var(--ty));
  transition: transform 350ms var(--ease), background 180ms, box-shadow 200ms;
  will-change: transform;
}
.btn-lg:hover { background: var(--v-d); box-shadow: 0 12px 40px var(--v-sh); }

.btn-link {
  font-size: 0.82rem; font-weight: 500; color: var(--mu);
  text-decoration: none; transition: color 180ms;
}
.btn-link:hover { color: var(--w); }

/* Stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--bd);
}
.hstat { padding-left: 28px; border-left: 1px solid var(--bd); }
.hstat:first-child { padding-left: 0; border-left: none; }
.hstat-v {
  font-family: var(--fd); font-size: 2.1rem; font-weight: 700;
  color: var(--ox); letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px;
}
.hstat-v small { font-size: 1.1rem; color: var(--v); }
.hstat-v.is-text {
  font-size: 1.1rem; color: var(--v); letter-spacing: 0.1em;
  background: var(--v-s); border: 1px solid var(--v-sb);
  border-radius: 6px; padding: 4px 10px; display: inline-block;
}
.hstat-l { font-size: 0.71rem; color: var(--mu); text-transform: uppercase; letter-spacing: 0.08em; }

/* Scroll pip */
.scroll-pip {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.pip {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--v), transparent);
  animation: pip 2.2s ease-in-out infinite;
}
@keyframes pip {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 8 · Ticker ─────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  padding: 11px 0;
}
.ticker-t {
  display: flex; width: max-content;
  animation: roll 40s linear infinite;
}
.ticker-t:hover { animation-play-state: paused; }
.t-item {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 0 36px; font-size: 0.7rem; font-weight: 500;
  color: var(--mu); text-transform: uppercase; letter-spacing: 0.11em;
  white-space: nowrap;
}
.t-dot { width: 4px; height: 4px; background: var(--v); border-radius: 50%; flex-shrink: 0; }
@keyframes roll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 9 · Manifesto ─────────────────────────────────────────────── */
#manifesto {
  padding: 96px 0;
  background: var(--bg1);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
.mf { display: flex; justify-content: center; }
.mf-q {
  font-family: var(--ft);
  font-size: min(3.2vw, 2.1rem);
  white-space: nowrap;
  font-weight: 300; font-style: italic;
  color: var(--w); line-height: 1.6;
  letter-spacing: 0.015em;
  text-align: center;
  max-width: 780px;
}
.mf-q em { font-style: normal; color: var(--ox); }

/* 10 · Section utilities ────────────────────────────────────── */
.s-eye {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 0.68rem; font-weight: 600; color: var(--v);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.s-eye::before { content: ''; width: 16px; height: 1px; background: var(--v); flex-shrink: 0; }
.s-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; color: var(--w); letter-spacing: -0.03em; line-height: 1.1;
}

/* 11 · Services ─────────────────────────────────────────────── */
#servizi, #services { padding: 112px 0; background: var(--bg0); }
.srv-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.srv-sub { font-size: 0.9rem; color: var(--mu); line-height: 1.76; max-width: 340px; align-self: end; }

.srv-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--bd);
  border: 1px solid var(--bd); border-radius: var(--rl); overflow: hidden;
  box-shadow: var(--sh-sm);
}
.srv {
  position: relative; padding: 48px 44px;
  background: var(--bg1); overflow: hidden;
  transition: background 280ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Accent line: slides in from left on hover */
.srv::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--v), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 340ms var(--ease);
}
/* Radial glow on hover */
.srv::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 10% 10%, var(--v-amb) 0%, transparent 55%);
  opacity: 0; transition: opacity 280ms var(--ease);
  pointer-events: none;
}
.srv:hover { background: var(--bg2); }
.srv:hover::before { transform: scaleX(1); }
.srv:hover::after { opacity: 1; }

.srv-num { font-family: var(--fd); font-size: 0.68rem; font-weight: 700; color: var(--v-ghost); letter-spacing: 0.12em; margin-bottom: 32px; }
.srv-ico { margin-bottom: 18px; }
.srv-ico svg { width: 26px; height: 26px; stroke: var(--v); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.srv-nm { font-family: var(--fd); font-size: 1.1rem; font-weight: 700; color: var(--w); margin-bottom: 12px; line-height: 1.25; letter-spacing: -0.01em; }
.srv-ds { font-size: 0.85rem; color: var(--mu); line-height: 1.72; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.68rem; font-weight: 500; color: var(--v-l);
  background: var(--v-s); border: 1px solid var(--v-sb);
  border-radius: 100px; padding: 3px 9px;
}

/* 12 · Process ──────────────────────────────────────────────── */
#processo, #method { padding: 112px 0; background: var(--bg1); }
.pr-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 64px; }
.pr-step { position: relative; padding-right: 48px; }
.pr-step + .pr-step { padding-left: 48px; }
.pr-step:last-child { padding-right: 0; }
.pr-step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 28px; right: 0; width: 1px; height: 50%;
  background: linear-gradient(to bottom, var(--bd), transparent);
}
/* Large ghost numbers use rust color */
.pr-n {
  font-family: var(--fd); font-size: 3.5rem; font-weight: 800;
  color: var(--ox-ghost); line-height: 1; margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.pr-t { font-family: var(--fd); font-size: 1.05rem; font-weight: 700; color: var(--w); margin-bottom: 11px; }
.pr-d { font-size: 0.85rem; color: var(--mu); line-height: 1.72; }

/* 13 · About ────────────────────────────────────────────────── */
#chi-siamo, #about { padding: 112px 0; background: var(--bg0); border-top: 1px solid var(--bd); }
.ab-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 80px; align-items: start; }

.ab-body { margin-top: 32px; font-size: 0.92rem; color: var(--t); line-height: 1.8; }
.ab-body p { margin-bottom: 18px; }
.ab-body p:last-child { margin-bottom: 0; }
.ab-body strong { color: var(--w); font-weight: 600; }
/* Quote with rust (not green) border — secondary accent placement */
.ab-q {
  border-left: 2px solid var(--ox); padding-left: 20px;
  font-style: italic; color: var(--t); margin: 28px 0;
  font-size: 0.94rem; line-height: 1.75;
}

.ab-side { display: flex; flex-direction: column; gap: 14px; }

.card-sm {
  padding: 24px 26px;
  background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.card-ttl { font-size: 0.67rem; font-weight: 600; color: var(--mu); text-transform: uppercase; letter-spacing: 0.11em; margin-bottom: 16px; }

.mkt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--bd);
}
.mkt-row:last-child { border-bottom: none; padding-bottom: 0; }
.mkt-nm { font-size: 0.85rem; color: var(--w); font-weight: 500; }
.mkt-fc { font-size: 0.72rem; color: var(--mu); margin-top: 1px; }
.badge {
  font-size: 0.65rem; font-weight: 600; color: var(--v);
  background: var(--v-s); border: 1px solid var(--v-sb);
  border-radius: 100px; padding: 2px 9px; white-space: nowrap;
}

.founder {
  padding: 26px 28px;
  display: flex; align-items: center; gap: 20px;
  background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: border-color 220ms, transform 220ms var(--ease), box-shadow 220ms;
}
.founder:hover { border-color: var(--bd-v); transform: translateY(-2px); }
.f-name { font-family: var(--fd); font-size: 1.1rem; font-weight: 700; color: var(--w); margin-bottom: 4px; }
.f-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--bd-v);
  transition: color 180ms, border-color 180ms;
}
.f-link:hover { color: var(--v-l); border-color: var(--v-l); }
.f-link::after { content: '↗'; display: inline-block; margin-left: 4px; font-size: 0.75em; color: var(--v); }
.f-role { font-size: 0.82rem; color: var(--mu); }
/* Founder share uses rust accent */
.f-share {
  font-size: 0.67rem; color: var(--ox);
  background: var(--ox-s); border: 1px solid var(--ox-sb);
  border-radius: 100px; padding: 2px 9px; font-weight: 500;
}

/* 14 · CTA ──────────────────────────────────────────────────── */
#contatti, #contact { padding: 80px 0; background: var(--bg1); border-top: 1px solid var(--bd); }
.cta-box {
  position: relative; overflow: hidden;
  padding: 68px 72px; border-radius: var(--rl);
  background: var(--bg2); border: 1px solid var(--bd); box-shadow: var(--sh-sm);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
/* Top accent line */
.cta-box::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--v), var(--bd-v), transparent);
}
/* Background ambient */
.cta-box::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse at top left, var(--v-amb) 0%, transparent 70%);
  pointer-events: none;
}
.cta-txt { position: relative; z-index: 1; }
.cta-h {
  font-family: var(--fd); font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 700; color: var(--w); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px;
}
.cta-p { font-size: 0.9rem; color: var(--mu); line-height: 1.72; margin-bottom: 16px; }
.cta-addr { font-size: 0.78rem; color: var(--fa); font-style: normal; }
.cta-addr strong { color: var(--mu); }
.cta-contacts { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 16px; }
.cta-contact {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--mu); text-decoration: none;
  transition: color 180ms;
}
.cta-contact:hover { color: var(--v); }
.cta-contact svg { flex-shrink: 0; }

/* Contact form */
.cta-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-field { display: block; }
.cta-form input,
.cta-form textarea {
  width: 100%; padding: 12px 15px;
  background: var(--input-bg); border: 1px solid var(--bd);
  border-radius: var(--r); color: var(--w);
  font-family: var(--ft); font-size: 0.88rem; line-height: 1.5;
  transition: border-color 200ms; outline: none;
}
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--input-bd-f); }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--mu); }
.cta-form textarea { resize: vertical; min-height: 110px; }
.cta-form .btn-lg { align-self: flex-start; margin-top: 4px; }
.cta-form-ok { font-size: 0.84rem; color: var(--v); min-height: 1.2em; }

/* 15 · Footer ───────────────────────────────────────────────── */
footer { padding: 64px 0 28px; background: var(--bg0); border-top: 1px solid var(--bd); }

.ft-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--bd);
}
.ft-col-brand { max-width: 320px; }

.ft-logo { font-family: var(--fd); font-size: 1.2rem; font-weight: 700; color: var(--w); }
.ft-logo span { color: var(--v); }
.ft-sub { font-size: 0.82rem; color: var(--mu); line-height: 1.65; margin-top: 12px; }

.ft-col-ttl {
  font-size: 0.68rem; font-weight: 600; color: var(--w);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
}
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ft-links a {
  position: relative; display: inline-block; width: fit-content;
  font-size: 0.85rem; color: var(--mu); text-decoration: none;
  transition: color 180ms;
}
.ft-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 100%; height: 1px; background: var(--v);
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease);
}
.ft-links a:hover { color: var(--w); }
.ft-links a:hover::after { transform: scaleX(1); }

.ft-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; font-size: 0.72rem; color: var(--mu);
}

/* 16 · Animations ───────────────────────────────────────────── */

/* Cursor proximity glow (JS lerp) */
#cursor-glow {
  position: fixed; width: 640px; height: 640px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--v-amb) 0%, transparent 65%);
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform, opacity;
  transition: opacity 1s ease;
}

/* Shimmer sweep — section entry cue on Processo */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
#processo, #method { position: relative; }
#processo::before, #method::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--v) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
}

/* Process step number entrance */
.pr-step.on .pr-n {
  animation: num-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes num-in {
  from { opacity: 0; transform: translateY(12px) scale(0.9); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Scroll pip in hero */
.hero-inner { position: relative; z-index: 2; width: 100%; will-change: transform; }

/* Service card hover — shadow lift (Apple depth cue) */
.srv:hover {
  background: var(--bg2);
  box-shadow: var(--sh-card), var(--sh-inset);
}

/* CTA box top line — static, no pulse */
.cta-box::before { opacity: 0.7; }

/* Section manifesto ambient — static subtle glow, no animation */
#manifesto { position: relative; isolation: isolate; }
#manifesto::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 30% 50%, var(--v-amb) 0%, transparent 60%);
}

/* 17 · Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .srv-head { grid-template-columns: 1fr; gap: 20px; }
  .srv-sub { max-width: 100%; }
  .srv-grid { grid-template-columns: 1fr; }
  .pr-grid { grid-template-columns: 1fr; gap: 44px; }
  .pr-step, .pr-step + .pr-step { padding: 0; }
  .pr-step:not(:last-child)::after { display: none; }
  .ab-grid { grid-template-columns: 1fr; }
  .mf { justify-content: center; }
  .cta-box { grid-template-columns: 1fr; gap: 36px; padding: 44px 36px; }
  .cta-form-row { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .ft-col-brand { grid-column: 1 / -1; max-width: 100%; }
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .hero-acts { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hstat {
    padding-left: 0; border-left: none;
    padding-top: 20px; border-top: 1px solid var(--bd);
  }
  .hstat:first-child, .hstat:nth-child(2) { padding-top: 0; border-top: none; }
  .hstat:nth-child(2) { padding-left: 24px; border-left: 1px solid var(--bd); }
  /* Hamburger nav */
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-menu-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bd);
    flex-direction: column; align-items: center; gap: 0; padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 32px; text-align: center; font-size: 0.9rem; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .hero-h1 .bold { font-size: clamp(1.7rem, calc(9.68vw - 3.9px), 6rem); }
  /* .wrap padding drops to 20px here, so the offset shrinks accordingly */
  html[lang="en"] .hero-h1 .bold { font-size: clamp(1.7rem, calc(8.89vw - 3.56px), 6rem); }
  .srv { padding: 36px 26px; }
  .cta-box { padding: 32px 24px; }
  .ft-grid { grid-template-columns: 1fr; gap: 32px; }
  .ft-col-brand { grid-column: auto; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

/* 17 · Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-r] { opacity: 1; transform: none; }
  .hero-h1 .word { opacity: 1 !important; transform: none !important; }
}
