/* ==========================================================================
   STUDIO CARTOLANO — Società di Ingegneria
   Redesign v1.0 — Single-file CSS
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* palette */
  --ink:        #0E0E0F;          /* nero inchiostro */
  --ink-2:      #1A1A1C;          /* nero soft */
  --paper:      #F4EFE3;          /* avorio caldo */
  --paper-2:    #ECE5D2;          /* avorio champagne */
  --paper-3:    #E0D8C0;          /* avorio più scuro */
  --steel:      #2C3E50;          /* blu acciaio (tecnico) */
  --steel-2:    #1F2D3D;
  --amber:      #D9601C;          /* ocra ambra (accento caldo) */
  --amber-2:    #B84A0F;
  --rust:       #B23A2A;          /* rosso mattone (hover) */
  --chrome:     #C9A96E;          /* cromo/ottone (eyebrow) */
  --rule:       rgba(14,14,15,0.12);
  --rule-on-dark: rgba(244,239,227,0.10);
  --mute:       rgba(14,14,15,0.55);
  --mute-2:     rgba(14,14,15,0.72);

  /* layout */
  --gutter:    clamp(20px, 4vw, 56px);
  --maxw:      1440px;
  --ease:      cubic-bezier(.2,.7,.2,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);

  /* type */
  --ff-serif: 'Fraunces', 'Times New Roman', serif;
  --ff-sans:  'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono:  'JetBrains Mono', 'Courier New', monospace;
}

/* ---------- 2. RESET MINIMO ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
h1,h2,h3,h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--ff-serif); }
h1,h2,h3 { overflow-wrap: break-word; word-break: break-word; }
p { margin: 0; overflow-wrap: break-word; word-break: break-word; }
::selection { background: var(--amber); color: var(--paper); }

/* ---------- 3. UTIL ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--ff-mono);
  font-size: .78rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--amber); font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 36px; height: 1.5px;
  background: currentColor; display: inline-block;
}
.eyebrow.on-dark { color: var(--chrome); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.45; color: var(--mute-2); }
.lead em { font-style: italic; font-family: var(--ff-serif); color: var(--ink); }
.nowrap { white-space: nowrap; }

/* ---------- 4. HEADER ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.hdr.on-dark { color: var(--paper); }
.hdr.on-dark .hdr-logo img { filter: brightness(0) invert(1); }
.hdr.scrolled {
  background: rgba(244,239,227,.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--rule);
  color: var(--ink);
}
.hdr.scrolled .hdr-logo img { filter: none; }
.hdr-logo {
  display: flex; align-items: center; gap: 10px;
  height: 44px;
  color: inherit;
}
.hdr-logo img { height: 100%; width: auto; transition: filter .35s var(--ease); }
.hdr-logo .mark { height: 100%; width: auto; }

.hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 18px;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
  height: 44px;
}
.hdr-cta:hover { background: currentColor; }
.hdr-cta:hover span { color: var(--paper); }
.hdr.on-dark .hdr-cta:hover span { color: var(--ink); }

.hdr-burger {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  height: 44px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.hdr-burger:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hdr.on-dark .hdr-burger:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hdr-burger .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.hdr-burger .bars span { display: block; width: 14px; height: 1.5px; background: currentColor; }

/* ---------- 5. MEGA-MENU ---------- */
.mm {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink);
  color: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; pointer-events: none;
  transform: translateY(-2%);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mm.open { opacity: 1; pointer-events: auto; transform: none; }

.mm-top {
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule-on-dark);
}
.mm-top .hdr-logo { color: var(--paper); height: 44px; }
.mm-top .hdr-logo .mark { color: var(--paper); }
.mm-top .hdr-logo img { filter: brightness(0) invert(1); }
.mm-close {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.mm-close:hover { background: var(--paper); color: var(--ink); }
.mm-close .x { position: relative; width: 12px; height: 12px; }
.mm-close .x::before, .mm-close .x::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 1.5px; background: currentColor;
}
.mm-close .x::before { transform: rotate(45deg); }
.mm-close .x::after  { transform: rotate(-45deg); }

.mm-mid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding: 64px var(--gutter);
  align-items: start;
  overflow-y: auto;
}
.mm-left { display: flex; flex-direction: column; }
.mm-left a {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4.4vw, 4.2rem);
  font-weight: 500; line-height: 1.05;
  color: var(--paper);
  display: flex; align-items: baseline; gap: .6em;
  padding: .18em 0;
  border-bottom: 1px solid var(--rule-on-dark);
  transition: color .25s var(--ease), padding-left .45s var(--ease);
  position: relative;
}
.mm-left a:first-child { border-top: 1px solid var(--rule-on-dark); }
.mm-left a:hover { color: var(--amber); padding-left: .5em; }
.mm-left a:hover .arrow { transform: translateX(8px); opacity: 1; }
.mm-left a .num {
  font-family: var(--ff-mono);
  font-size: .68rem; letter-spacing: .26em;
  color: var(--chrome);
  min-width: 2.6em; align-self: flex-start; margin-top: .6em;
}
.mm-left a .arrow {
  margin-left: auto;
  font-size: .7em;
  color: var(--amber);
  opacity: .5;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.mm-left a.active { color: var(--amber); }
.mm-left a.active::after {
  content: " · live"; font-family: var(--ff-mono); font-size: .55em;
  color: var(--chrome); letter-spacing: .3em; text-transform: uppercase;
  vertical-align: super; margin-left: .3em;
}

.mm-right {
  display: flex; flex-direction: column; gap: 32px;
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: rgba(244,239,227,.65);
  letter-spacing: .04em;
}
.mm-right h5 {
  font-family: var(--ff-mono);
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--chrome); font-weight: 600;
  margin: 0 0 14px;
}
.mm-right .mm-meta-line { display: block; line-height: 1.7; }
.mm-right a { display: block; line-height: 1.7; }
.mm-right a:hover { color: var(--amber); }

.mm-bot {
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule-on-dark);
  font-family: var(--ff-mono);
  font-size: .76rem; letter-spacing: .04em;
  color: rgba(244,239,227,.6);
}
.mm-bot .left { display: flex; align-items: center; gap: 14px; }
.mm-bot .left b { color: var(--paper); font-weight: 600; letter-spacing: .16em; }
.mm-bot .left .sep { width: 1px; height: 14px; background: rgba(244,239,227,.3); }
.mm-bot .right { display: flex; gap: 24px; }
.mm-bot .right a:hover { color: var(--amber); }

/* ---------- 6. HERO (HOME) ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  padding: 120px var(--gutter) 80px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--paper);
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: .9;
}
.hero-canvas svg { width: 100%; height: 100%; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-claim {
  position: relative; z-index: 2;
}
.hero-claim .eyebrow { margin-bottom: 28px; }
.hero-claim h1 {
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-claim h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  position: relative;
}
.hero-claim h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: 1px; background: currentColor; opacity: .35;
}
.hero-claim .lead { max-width: 46ch; margin-bottom: 36px; }
.hero-claim .hero-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  font-family: var(--ff-mono); font-size: .76rem; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 600;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .35s var(--ease);
}
.hero-claim .hero-cta:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-2px); }
.hero-claim .hero-cta .arr { transition: transform .35s var(--ease); }
.hero-claim .hero-cta:hover .arr { transform: translateX(6px); }

.hero-right {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
}
.hero-stack {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14,14,15,.35), 0 1px 0 var(--paper-3) inset;
}
.hero-stack img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 1.4s var(--ease-out);
}
.hero-stack:hover img { transform: scale(1.04); }
.hero-stack .stack-tag {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(14,14,15,.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-stack .stack-num {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .26em;
  color: var(--paper);
  background: rgba(14,14,15,.7);
  padding: 6px 10px;
}
.hero-stack .stack-cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; align-items: end; justify-content: space-between; gap: 14px;
  color: var(--paper);
  padding-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
}
.hero-stack .stack-cap b {
  font-family: var(--ff-serif); font-size: 1.2rem; font-weight: 500;
}
.hero-stack .stack-cap span {
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .2em; opacity: .85;
}

.hero-foot {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: end;
  padding-top: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-foot .scroll {
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-foot .scroll::after {
  content: ""; display: block; width: 60px; height: 1px; background: currentColor; opacity: .5;
}
.hero-foot .stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.hero-foot .stat .num {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
}
.hero-foot .stat .lbl {
  font-family: var(--ff-mono);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mute);
  display: block; margin-top: 4px;
}
.hero-foot .iso {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--rule);
  padding: 10px 14px;
}
.hero-foot .iso b { color: var(--ink); font-weight: 600; }

/* corner mark */
.corner {
  position: fixed; width: 14px; height: 14px; z-index: 40;
  pointer-events: none;
  opacity: .35;
  transition: opacity .35s var(--ease);
}
.corner.tl { top: 12px; left: 12px; }
.corner.tr { top: 12px; right: 12px; }
.corner.bl { bottom: 12px; left: 12px; }
.corner.br { bottom: 12px; right: 12px; }
.corner::before, .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.corner.tl::before { top: 0; left: 0; width: 1px; height: 14px; }
.corner.tl::after  { top: 0; left: 0; width: 14px; height: 1px; }
.corner.tr::before { top: 0; right: 0; width: 1px; height: 14px; }
.corner.tr::after  { top: 0; right: 0; width: 14px; height: 1px; }
.corner.bl::before { bottom: 0; left: 0; width: 1px; height: 14px; }
.corner.bl::after  { bottom: 0; left: 0; width: 14px; height: 1px; }
.corner.br::before { bottom: 0; right: 0; width: 1px; height: 14px; }
.corner.br::after  { bottom: 0; right: 0; width: 14px; height: 1px; }

/* ---------- 7. NEWS BANNER ---------- */
.newsbar {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
  overflow: hidden;
}
.newsbar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber) 70%, transparent);
  opacity: .6;
}
.newsbar .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(217,96,28,.6);
  animation: pulse 1.6s var(--ease-out) infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,96,28,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(217,96,28,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,96,28,0); }
}
.newsbar p { font-family: var(--ff-serif); font-size: clamp(1rem, 1.6vw, 1.3rem); font-style: italic; }
.newsbar a.more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--chrome);
  border-bottom: 1px solid var(--chrome);
  padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
  flex-shrink: 0;
}
.newsbar a.more:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- 8. MISSION ---------- */
.mission {
  position: relative;
  padding: 120px var(--gutter) 120px;
  background: var(--paper);
}
.mission-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.mission h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
  position: sticky; top: 120px;
}
.mission h2 em { font-style: italic; color: var(--amber); }
.mission .lead { margin-bottom: 28px; max-width: 60ch; }
.mission .body {
  display: grid; gap: 22px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--mute-2);
  max-width: 60ch;
}
.mission .body p strong { color: var(--ink); font-weight: 500; }
.mission .quote {
  position: relative;
  margin: 32px 0 0;
  padding: 28px 28px 28px 36px;
  border-left: 2px solid var(--amber);
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  max-width: 56ch;
}
.mission .quote::before {
  content: "\201C";
  position: absolute; left: 14px; top: 6px;
  font-size: 3rem; line-height: 1;
  color: var(--amber);
  font-family: var(--ff-serif);
}

/* ---------- 9. SERVIZI (manifesto carousel) ---------- */
.servizi {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0 120px;
  overflow: hidden;
}
.servizi-top {
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto 56px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.servizi-top h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
}
.servizi-top h2 em { font-style: italic; color: var(--amber); }
.servizi-top .counter {
  font-family: var(--ff-mono);
  font-size: .76rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--chrome);
  display: flex; align-items: center; gap: 14px;
}
.servizi-top .counter b { color: var(--paper); font-size: 1.4rem; letter-spacing: 0; }

.sv-track {
  display: flex; gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--gutter) 8px;
  scroll-behavior: smooth;
}
.sv-track::-webkit-scrollbar { display: none; }

.sv-card {
  flex: 0 0 auto;
  width: clamp(280px, 28vw, 360px);
  margin-right: 0;
  scroll-snap-align: start;
  position: relative;
  padding: 36px 32px 32px;
  border: 1px solid var(--rule-on-dark);
  border-right: 0;
  background: var(--ink-2);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
  min-height: 420px;
}
.sv-card:last-child { border-right: 1px solid var(--rule-on-dark); }
.sv-card:hover { background: var(--steel-2); border-color: var(--amber); }
.sv-card:hover .sv-icon { color: var(--amber); transform: rotate(-4deg) scale(1.05); }

.sv-num {
  font-family: var(--ff-mono);
  font-size: .7rem; letter-spacing: .3em;
  color: var(--chrome);
  display: flex; align-items: center; gap: 10px;
}
.sv-num::after {
  content: ""; flex: 1; height: 1px; background: var(--rule-on-dark);
}
.sv-icon {
  width: 56px; height: 56px;
  margin: 24px 0 28px;
  color: var(--chrome);
  transition: color .35s var(--ease), transform .45s var(--ease);
}
.sv-icon svg { width: 100%; height: 100%; }
.sv-card h3 {
  font-size: clamp(1.4rem, 1.8vw, 1.75rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.sv-card p {
  font-size: .95rem; line-height: 1.6;
  color: rgba(244,239,227,.7);
  margin-bottom: 24px;
}
.sv-card .sv-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--rule-on-dark);
}
.sv-card .sv-tags span {
  font-family: var(--ff-mono);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--rule-on-dark);
  color: rgba(244,239,227,.6);
}

.sv-controls {
  display: flex; gap: 12px;
  margin: 32px var(--gutter) 0;
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
}
.sv-arrow {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--paper);
  color: var(--paper);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.sv-arrow:hover { background: var(--paper); color: var(--ink); }
.sv-arrow.disabled { opacity: .25; pointer-events: none; }
.sv-arrow svg { width: 18px; height: 18px; }
.sv-progress {
  flex: 1;
  height: 1px;
  background: var(--rule-on-dark);
  position: relative;
  align-self: center;
}
.sv-progress::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px;
  background: var(--amber);
  width: var(--p, 12%);
  transition: width .35s var(--ease);
}
.sv-hint {
  font-family: var(--ff-mono);
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(244,239,227,.5);
  align-self: center;
  display: flex; align-items: center; gap: 10px;
}
.sv-hint .grab { display: inline-flex; gap: 3px; }
.sv-hint .grab span { width: 4px; height: 4px; background: currentColor; border-radius: 50%; animation: grab 1.4s var(--ease) infinite; }
.sv-hint .grab span:nth-child(2) { animation-delay: .15s; }
.sv-hint .grab span:nth-child(3) { animation-delay: .3s; }
@keyframes grab {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ---------- 10. NUMERI / KPI ---------- */
.kpi {
  position: relative;
  background: var(--paper-2);
  padding: 100px var(--gutter);
}
.kpi-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 64px;
}
.kpi-cell {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.kpi-cell:first-child { border-left: 0; padding-left: 0; }
.kpi-cell .n {
  font-family: var(--ff-serif);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: baseline; gap: .15em;
}
.kpi-cell .n small { font-size: .45em; color: var(--amber); font-weight: 500; }
.kpi-cell .l {
  margin-top: 16px;
  font-family: var(--ff-mono);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--mute);
}
.kpi-cell .d {
  margin-top: 10px;
  font-size: .95rem;
  color: var(--mute-2);
  line-height: 1.5;
  max-width: 28ch;
}

/* ---------- 11. TEAM (pagina "Lo Studio") ---------- */
.team {
  padding: 120px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.team h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 16px; }
.team h2 em { font-style: italic; color: var(--amber); }
.team .lead { max-width: 60ch; margin-bottom: 64px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.team-cell {
  padding: 28px 24px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 180px;
  transition: background .3s var(--ease);
}
.team-cell:hover { background: var(--paper-2); }
.team-cell .role {
  font-family: var(--ff-mono);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: auto;
}
.team-cell .count {
  font-family: var(--ff-serif);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: .25em;
}
.team-cell .count small { font-size: .55em; color: var(--amber); font-weight: 500; }
.team-cell .name { font-size: 1rem; color: var(--ink); }
.team-cell.totale {
  background: var(--ink); color: var(--paper);
  grid-column: span 4;
  flex-direction: row; align-items: center; gap: 32px;
  min-height: 0; padding: 24px;
}
.team-cell.totale .count { font-size: 3.4rem; }
.team-cell.totale .role { color: var(--chrome); margin: 0; }

/* ---------- 12. TIMELINE NEWS ---------- */
.news-section {
  padding: 120px var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.news-head {
  max-width: var(--maxw);
  margin: 0 auto 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.news-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
}
.news-head h2 em { font-style: italic; color: var(--amber); }
.news-head .lead { max-width: 50ch; }

.news-list {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.news-list::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px;
  width: 1px; background: var(--rule);
}
.js-ready .news-item { opacity: 0; transform: translateY(20px); }
.js-ready .news-item.in { opacity: 1 !important; transform: none !important; }
.news-item {
  position: relative;
  display: grid; grid-template-columns: 60px 140px 1fr auto;
  gap: 32px; align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .35s var(--ease);
}
.news-item:hover { padding-left: 16px; }
.news-item:hover .news-title { color: var(--amber); }
.news-item:hover .news-num { color: var(--amber); }

.news-num {
  position: relative; z-index: 1;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-family: var(--ff-mono);
  font-size: .68rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
  margin-top: 4px;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.news-item:hover .news-num { background: var(--amber); color: var(--paper); border-color: var(--amber); }

.news-date {
  font-family: var(--ff-mono);
  font-size: .78rem; letter-spacing: .2em;
  color: var(--mute);
  padding-top: 6px;
}
.news-date b { color: var(--ink); font-weight: 500; display: block; font-size: 1.3rem; letter-spacing: 0; font-family: var(--ff-serif); margin-bottom: 2px; }
.news-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color .3s var(--ease);
  max-width: 60ch;
}
.news-source {
  font-family: var(--ff-mono);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mute);
  padding-top: 8px;
  display: inline-flex; align-items: center; gap: 10px;
}
.news-source::after {
  content: "↗"; font-family: var(--ff-sans); font-size: 1rem;
  transition: transform .3s var(--ease);
}
.news-item:hover .news-source::after { transform: translate(2px,-2px); }

/* ---------- 13. CTA / CONTATTI ---------- */
.cta {
  position: relative;
  padding: 140px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 30%, rgba(217,96,28,.15), transparent 70%),
    radial-gradient(600px 300px at 10% 80%, rgba(217,96,28,.08), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.cta h2 em { font-style: italic; color: var(--amber); }
.cta .lead { color: rgba(244,239,227,.7); margin-top: 24px; max-width: 48ch; }
.cta .lead em { color: var(--chrome); font-family: var(--ff-serif); font-style: italic; }
.cta-form {
  display: grid; gap: 12px;
}
.cta-form label {
  font-family: var(--ff-mono);
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 4px;
  display: block;
}
.cta-form input, .cta-form textarea {
  width: 100%;
  background: transparent;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--rule-on-dark);
  padding: 10px 0;
  font-family: var(--ff-sans);
  font-size: 1rem;
  transition: border-color .25s var(--ease);
}
.cta-form input:focus, .cta-form textarea:focus {
  outline: 0;
  border-color: var(--amber);
}
.cta-form textarea { resize: vertical; min-height: 90px; }
.cta-form button {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  padding: 16px 22px;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 600;
  background: var(--amber); color: var(--paper);
  border-radius: 999px;
  transition: background .25s var(--ease), transform .3s var(--ease);
}
.cta-form button:hover { background: var(--amber-2); transform: translateY(-2px); }
.cta-info {
  display: grid; gap: 22px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-on-dark);
  font-family: var(--ff-mono);
  font-size: .82rem;
  color: rgba(244,239,227,.7);
}
.cta-info b { color: var(--paper); font-weight: 500; display: block; margin-bottom: 4px; }
.cta-info a:hover { color: var(--amber); }

/* ---------- 14. FOOTER ---------- */
.ftr {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid var(--rule-on-dark);
}
.ftr-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule-on-dark);
  align-items: stretch;
}
.ftr-brand .logo { height: 44px; color: var(--paper); margin-bottom: 22px; filter: brightness(0) invert(1); }
.ftr-brand p { color: rgba(244,239,227,.7); max-width: 36ch; font-size: .95rem; line-height: 1.6; }
.ftr-brand .meta {
  margin-top: 24px;
  font-family: var(--ff-mono);
  font-size: .72rem; letter-spacing: .12em;
  color: rgba(244,239,227,.55);
  display: flex; flex-direction: column; gap: 4px;
}
.ftr-col h4 {
  font-family: var(--ff-mono);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--chrome);
  font-weight: 600;
  margin-bottom: 18px;
}
.ftr-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr-col a, .ftr-col span { font-size: .95rem; color: rgba(244,239,227,.85); transition: color .2s var(--ease); }
.ftr-col a:hover { color: var(--amber); }
.ftr-col .ftr-phone { display: inline-block; }
.ftr-col .ftr-socials { display: flex; gap: 10px; margin-top: 8px; }
.ftr-col .ftr-socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-on-dark);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.ftr-col .ftr-socials a:hover { background: var(--amber); color: var(--paper); border-color: var(--amber); }
.ftr-col .ftr-socials svg { width: 16px; height: 16px; }
.ftr-col ul { margin-top: 0; }

.ftr-bot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 28px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,239,227,.5);
}
.ftr-bot .left { text-align: left; }
.ftr-bot .center { text-align: center; }
.ftr-bot .right { text-align: right; display: flex; gap: 18px; justify-content: flex-end; }
.ftr-bot a:hover { color: var(--amber); }

/* ---------- 15. REVEAL ON SCROLL ----------
   Progressive enhancement: il contenuto è visibile di default.
   Se .js-ready è sul <html>, allora il CSS nasconde gli elementi
   e l'IntersectionObserver li rivela. Così:
   - senza JS → tutto visibile (accessibile)
   - con JS → animazione fluida
   - in stampa → tutto visibile
*/
.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js-ready .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
@media print {
  .js-ready .reveal, .js-ready .reveal.in { opacity: 1 !important; transform: none !important; }
}

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

/* ---------- 16. INNER PAGE: page header ---------- */
.ph {
  padding: 160px var(--gutter) 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.ph-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.ph h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  letter-spacing: -0.035em;
  margin-top: 16px;
}
.ph h1 em { font-style: italic; color: var(--amber); }
.ph .lead { max-width: 48ch; }
.ph .crumb {
  font-family: var(--ff-mono);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--mute);
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px;
}
.ph .crumb a:hover { color: var(--amber); }
.ph .crumb .sep { color: var(--rule); }

/* ---------- 17. SECTION GENERIC ---------- */
.section {
  padding: 120px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 24px; }
.section h2 em { font-style: italic; color: var(--amber); }
.section .lead { max-width: 60ch; margin-bottom: 48px; }

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { max-width: 480px; }
  .mission-inner { grid-template-columns: 1fr; gap: 40px; }
  .mission h2 { position: static; }
  .servizi-top { grid-template-columns: 1fr; gap: 24px; }
  .news-head { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { grid-template-columns: 1fr; gap: 56px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-cell.totale { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .kpi-inner { grid-template-columns: repeat(2, 1fr); }
  .kpi-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .ph-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 800px) {
  body { font-size: 15px; }
  .hdr { padding: 14px var(--gutter); }
  .hdr-cta { display: none; }
  .hdr-burger .lbl { display: none; }
  .hdr-burger { padding: 10px 14px; }

  .hero { padding: 110px var(--gutter) 64px; }
  .hero-claim h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; }
  .hero-foot .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-foot .iso { justify-self: start; }

  .newsbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .newsbar p { font-size: 1rem; }

  .mission { padding: 80px var(--gutter); }
  .servizi { padding: 80px 0; }
  .servizi-top { margin-bottom: 32px; padding: 0 var(--gutter); }
  .sv-card { width: 78vw; min-height: 380px; padding: 28px 22px; }
  .sv-hint { display: none; }
  .kpi { padding: 64px var(--gutter); }
  .kpi-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; }
  .kpi-cell { padding-left: 16px; }
  .kpi-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .team { padding: 80px var(--gutter); }
  .team-grid { grid-template-columns: 1fr; }
  .team-cell.totale { grid-column: span 1; }

  .news-section { padding: 80px var(--gutter); }
  .news-item { grid-template-columns: 32px 1fr; gap: 16px; padding: 24px 0; }
  .news-item .news-date { grid-column: 2; padding-top: 0; }
  .news-item .news-title { grid-column: 2; }
  .news-item .news-source { grid-column: 2; padding-top: 4px; }
  .news-list::before { left: 11px; }

  .cta { padding: 80px var(--gutter); }
  .cta-inner { gap: 40px; }

  .ftr { padding: 56px var(--gutter) 24px; }
  .ftr-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .ftr-brand .logo { height: 36px; }
  .ftr-bot { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .ftr-bot .left, .ftr-bot .center, .ftr-bot .right { text-align: center; justify-content: center; }
  .ftr-col ul li a, .ftr-col .ftr-phone, .ftr-col span { white-space: nowrap; }
  .ftr-col .ftr-socials a { width: 36px; height: 36px; }

  .mm-mid { grid-template-columns: 1fr; gap: 40px; padding: 40px var(--gutter); }
  .mm-left a { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .mm-right { font-size: .8rem; }
  .mm-bot { flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px var(--gutter); }
}

@media (max-width: 380px) {
  .hero-claim h1 { font-size: 2.2rem; }
  .news-item .news-date b { font-size: 1.1rem; }
  .kpi-cell .n { font-size: 2.2rem; }
}
