/* ==========================================================
   Lombardi & Partners — stile principale
   I colori sono tutti in variabili: ogni tema li ridefinisce.
   ========================================================== */

/* ---------- Tema: Notte (blu notte + verde) ---------- */
:root,
[data-theme="notte"] {
  --accent: #2fa58a;           /* accento su fondo chiaro */
  --accent-2: #4f8fc0;         /* secondo colore */
  --accent-on-dark: #4cc3a3;   /* accento su fondo scuro */
  --accent-on-dark-2: #86dcc3;

  --btn-bg: linear-gradient(120deg, #4cc3a3, #86dcc3);
  --btn-text: #06121f;
  --btn-shadow: rgba(76, 195, 163, 0.7);

  --hero-bg:
    radial-gradient(ellipse at 80% 20%, rgba(79, 143, 192, 0.22), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(47, 165, 138, 0.18), transparent 55%),
    #06121f;
  --hero-veil: linear-gradient(90deg, rgba(6, 18, 31, 0.92) 0%, rgba(6, 18, 31, 0.55) 50%, rgba(6, 18, 31, 0.1) 100%);
  --hero-veil-mobile: linear-gradient(180deg, rgba(6, 18, 31, 0.2), rgba(6, 18, 31, 0.75) 45%, rgba(6, 18, 31, 0.3));
  --hero-text: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.75);
  --hero-em: #86dcc3;
  --hero-eyebrow: #4cc3a3;
  --hero-btn-bg: var(--btn-bg);
  --hero-btn-text: var(--btn-text);

  --nav-text: #ffffff;
  --nav-text-muted: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(255, 255, 255, 0.35);
  --nav-scrolled-bg: rgba(6, 18, 31, 0.86);
  --nav-scrolled-text: #ffffff;
  --nav-scrolled-muted: rgba(255, 255, 255, 0.82);
  --nav-scrolled-border: rgba(255, 255, 255, 0.35);
  --nav-scrolled-em: #4cc3a3;
  --nav-menu-bg: #06121f;

  --dark: #0a1c2e;
  --dark-2: #1a3a58;
  --darkest: #06121f;

  --paper: #fbfaf7;
  --alt: #f6f4ef;
  --ink: #142233;
  --ink-soft: #4d5b6b;
  --line: rgba(20, 34, 51, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  /* colori delle curve animate (r,g,b) */
  --c1: 79, 143, 192;
  --c2: 76, 195, 163;
  --c3: 134, 220, 195;
  --c4: 58, 110, 160;
  --c-particle: 134, 220, 195;
  --c-dot: 255, 255, 255;
  --c-grid: 255, 255, 255;
  --grid-alpha: 0.035;
}

/* ---------- Tema: Azzurro + verde (hero azzurro pieno, accenti verdi) ---------- */
[data-theme="azzurro-verde"] {
  --accent: #2e9e5b;
  --accent-2: #1f7cc4;
  --accent-on-dark: #7ddc9e;
  --accent-on-dark-2: #b2ecc6;

  --btn-bg: linear-gradient(120deg, #3cb878, #7ddc9e);
  --btn-text: #062a40;
  --btn-shadow: rgba(60, 184, 120, 0.55);

  --hero-bg:
    radial-gradient(ellipse at 85% 20%, rgba(125, 220, 158, 0.22), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(11, 50, 90, 0.5), transparent 60%),
    linear-gradient(140deg, #0b3f6b 0%, #1666a8 55%, #2b8fd6 100%);
  --hero-veil: linear-gradient(90deg, rgba(9, 50, 85, 0.6) 0%, rgba(9, 50, 85, 0.2) 55%, rgba(9, 50, 85, 0) 100%);
  --hero-veil-mobile: linear-gradient(180deg, rgba(9, 50, 85, 0.1), rgba(9, 50, 85, 0.55) 45%, rgba(9, 50, 85, 0.15));
  --hero-text: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.84);
  --hero-em: #9ee8b6;
  --hero-eyebrow: #9ee8b6;
  --hero-btn-bg: var(--btn-bg);
  --hero-btn-text: var(--btn-text);

  --nav-text: #ffffff;
  --nav-text-muted: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(255, 255, 255, 0.45);
  --nav-scrolled-bg: linear-gradient(90deg, rgba(11, 63, 107, 0.94), rgba(22, 102, 168, 0.94) 60%, rgba(43, 143, 214, 0.94));
  --nav-scrolled-text: #ffffff;
  --nav-scrolled-muted: rgba(255, 255, 255, 0.88);
  --nav-scrolled-border: rgba(255, 255, 255, 0.45);
  --nav-scrolled-em: #9ee8b6;
  --nav-menu-bg: #0b3f6b;

  --dark: #0d4370;
  --dark-2: #1a6aa8;
  --darkest: #0a2f50;

  --paper: #ffffff;
  --alt: #f2f8fc;
  --ink: #0d2a40;
  --ink-soft: #4a6478;
  --line: rgba(13, 42, 64, 0.11);
  --line-light: rgba(255, 255, 255, 0.18);

  --c1: 255, 255, 255;
  --c2: 125, 220, 158;
  --c3: 160, 210, 245;
  --c4: 90, 200, 130;
  --c-particle: 180, 240, 200;
  --c-dot: 255, 255, 255;
  --c-grid: 255, 255, 255;
  --grid-alpha: 0.05;
}

/* ---------- Costanti ---------- */
:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Barra di avanzamento ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Tipografia ---------- */

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-index {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.section { padding: 140px 0; }

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 72px;
  align-items: start;
}
.section-head .section-title { margin: 0; max-width: 760px; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.btn--primary {
  padding: 17px 30px;
  color: var(--btn-text);
  background: var(--btn-bg);
  border-radius: 2px;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--btn-shadow);
}

.btn--ghost {
  padding: 10px 20px;
  border: 1px solid var(--nav-border);
  border-radius: 2px;
}
.btn--ghost:hover { border-color: var(--accent-2); }

.btn--link {
  padding: 17px 0;
  color: var(--hero-text);
}
.btn--link span { transition: transform 0.4s var(--ease); }
.btn--link:hover span { transform: translateX(6px); }

.btn--full { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--nav-text);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s, color 0.5s;
  padding: 26px 0;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled::before,
.legal-page .nav::before { opacity: 1; }
.nav.is-scrolled {
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
  color: var(--nav-scrolled-text);
  --nav-text-muted: var(--nav-scrolled-muted);
  --nav-border: var(--nav-scrolled-border);
  --hero-em: var(--nav-scrolled-em);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
/* Logo 01 B: cornice rettangolare, L e P ai lati, & Baskervville al centro */
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 62px;
  height: 45px;
  padding: 2px 9px 0;
  border: 1px solid var(--nav-border);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand__mark em,
.brand__name em {
  font-family: "Baskervville", var(--serif);
  font-style: italic;
  font-weight: 400;
}
.brand__mark em { font-size: 21px; }
.brand__name em { font-size: 0.82em; }
.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav .brand em { color: var(--hero-em); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--nav-text-muted);
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:not(.btn):hover { color: inherit; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  color: inherit;
}
.nav__toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--hero-text);
  background: var(--hero-bg);
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.eyebrow--hero { color: var(--hero-eyebrow); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 26px 0 32px;
  max-width: 900px;
}
.hero__title em { color: var(--hero-em); }

.hero__lead {
  max-width: 540px;
  font-size: 18px;
  font-weight: 300;
  color: var(--hero-muted);
  margin: 0 0 44px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}
.hero .btn--primary { background: var(--hero-btn-bg); color: var(--hero-btn-text); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  width: 1px;
  height: 60px;
  background: var(--nav-border);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  left: 0;
  top: -30px;
  width: 1px;
  height: 30px;
  background: var(--hero-eyebrow);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  to { top: 60px; }
}

/* ---------- Nastro competenze ---------- */

.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.85;
}
.marquee i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.marquee i:nth-of-type(even) { background: var(--accent-2); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Studio ---------- */

.studio__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.studio__body { max-width: 820px; }
.studio__body > p {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 18px 0 8px;
}
.pillar p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.pillar__icon svg,
.audience svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Numeri ---------- */

.stats {
  background: var(--dark);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.05) 60%, transparent 80%);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.stat {
  border-left: 1px solid var(--line-light);
  padding-left: 28px;
}
.stat__value {
  display: block;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--accent-on-dark-2);
}
.stat__value small { font-size: 32px; margin-left: 2px; color: var(--accent-on-dark); }
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 200px;
}

/* ---------- Servizi ---------- */

.servizi { background: var(--alt); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  position: relative;
  padding: 48px 40px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--alt);
  overflow: hidden;
  transition: color 0.6s var(--ease);
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, var(--dark), var(--dark-2));
  transform: translateY(101%);
  transition: transform 0.7s var(--ease);
}
.service:hover { color: #fff; }
.service:hover::before { transform: translateY(0); }

.service__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
}
.service h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 56px 0 14px;
}
.service p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.6s var(--ease);
}
.service:hover p { color: rgba(255, 255, 255, 0.78); }
.service:hover .service__num { color: var(--accent-on-dark-2); }

/* ---------- Reporting / cruscotto ---------- */

.report__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.report__text > p { color: var(--ink-soft); font-size: 18px; }
.report .section-title { margin-top: 20px; }

.ticks {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.ticks li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.dash {
  background: #fff;
  border-radius: 6px;
  padding: 22px 26px 18px;
  box-shadow:
    0 50px 100px -40px rgba(10, 40, 70, 0.35),
    0 30px 60px -50px rgba(10, 40, 70, 0.4);
  border: 1px solid var(--line);
}
.dash__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.dash__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 22px;
}
.kpi {
  padding: 14px 16px;
  background: var(--alt);
  border-radius: 4px;
}
.kpi__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kpi__value {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}
.kpi__delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.dash__chart svg { width: 100%; height: 170px; }
.dash__bars rect {
  fill: var(--accent-2);
  opacity: 0.18;
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease);
}
.dash.is-live .dash__bars rect { transform: scaleY(1); }
.stop-a { stop-color: var(--accent); stop-opacity: 0.28; }
.stop-b { stop-color: var(--accent); stop-opacity: 0; }
.dash__area { fill: url(#areaGrad); opacity: 0; transition: opacity 1.2s 0.9s; }
.dash.is-live .dash__area { opacity: 1; }
.dash__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2s 0.4s var(--ease);
}
.dash.is-live .dash__line { stroke-dashoffset: 0; }
.dash__months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 6px;
}
.dash__note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ---------- Metodo ---------- */

.metodo {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.metodo::after {
  content: "";
  position: absolute;
  right: -200px;
  top: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c2), 0.18), transparent 70%);
  pointer-events: none;
}
.metodo .eyebrow { color: var(--accent-on-dark); }
.section-head--light .section-index { color: rgba(255, 255, 255, 0.55); }
.metodo .section-title em { color: var(--accent-on-dark-2); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-on-dark), var(--accent-on-dark-2), transparent);
  opacity: 0.6;
}
.step { position: relative; }
.step__dot {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid var(--accent-on-dark);
  position: relative;
}
.step__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent-on-dark);
}
.step h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 32px 0 10px;
}
.step p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Per chi lavoriamo ---------- */

.clienti { background: var(--alt); }

.audiences {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.audience {
  position: relative;
  background: var(--paper);
  padding: 38px 30px 40px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.audience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.audience:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -35px rgba(10, 40, 70, 0.35);
}
.audience h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 26px 0 10px;
}
.audience p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Quote ---------- */

.quote { padding: 120px 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 900px; }
.quote p {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  margin: 0 0 24px;
}
.quote cite {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq { padding-top: 40px; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.faq .section-title { margin-top: 20px; }

.accordion details {
  border-top: 1px solid var(--line);
}
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 50px 26px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent); }
.accordion summary::before,
.accordion summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.4s var(--ease);
}
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0); }
.accordion details p {
  margin: 0;
  padding: 0 50px 28px 0;
  color: var(--ink-soft);
  font-size: 16px;
  animation: faqIn 0.5s var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Contatti ---------- */

.contatti { background: var(--alt); }

.contatti__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.contatti__grid > div > p { color: var(--ink-soft); max-width: 460px; }
.contatti .section-title { margin-top: 20px; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
}
.contact-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.form {
  position: relative;
  background: #fff;
  padding: 48px 48px 44px;
  border: 1px solid var(--dark);
  box-shadow: 0 40px 80px -40px rgba(10, 28, 46, 0.3);
}
/* cornice decorativa sfalsata */
.form::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}
.contatti__grid > .form { isolation: auto; }
.contatti { position: relative; z-index: 0; }

.form__head {
  margin: 0 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.form__head .eyebrow { font-size: 11px; }
.form__head h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  margin: 8px 0 0;
  color: var(--ink);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.field { position: relative; margin-bottom: 24px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 22px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(13, 42, 64, 0.28);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.4s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 30px, calc(100% - 7px) 30px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field.field--static label {
  top: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--dark); border-bottom-width: 1.5px; }
.field label {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 15px;
  color: var(--ink-soft);
  pointer-events: none;
  transition: all 0.35s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.check {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px 0 30px;
  line-height: 1.5;
  cursor: pointer;
}
.check input { accent-color: var(--accent); margin-top: 2px; }

.form__note {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 1.4em;
  color: var(--accent);
}
.form__note.is-error { color: #b4483c; }
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  background: var(--darkest);
  color: rgba(255, 255, 255, 0.72);
  padding: 96px 0 40px;
  font-size: 15px;
  line-height: 1.75;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-on-dark), transparent);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.4fr;
  gap: 48px;
}
.footer__brand .brand { color: #fff; margin-bottom: 22px; }
.footer__brand .brand__mark { border-color: rgba(255, 255, 255, 0.35); }
.footer__brand .brand em { color: var(--accent-on-dark); }
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 280px;
  line-height: 1.4;
}
.footer h4 {
  margin: 4px 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li { margin-bottom: 10px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent-on-dark-2); }
.footer__company a { color: var(--accent-on-dark); }

.footer__bottom {
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.footer__sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
}
.footer__credits strong { color: #fff; font-weight: 700; }
.footer__credits a { text-decoration-color: var(--accent-on-dark); }

/* ---------- Selettore lingua ---------- */

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.nav__links .lang a { font-size: 12px; color: var(--nav-text-muted); opacity: 0.6; }
.nav__links .lang a::after { display: none; }
.nav__links .lang a.is-active { opacity: 1; color: inherit; }
.lang span { opacity: 0.4; }

/* ---------- Banner cookie ---------- */

.cookie {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: calc(100% - 48px);
  max-width: 620px;
  padding: 24px 26px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--dark);
  box-shadow: 0 30px 60px -20px rgba(10, 28, 46, 0.4);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: all 0.6s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cookie strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}
.cookie p { margin: 0 0 18px; color: var(--ink-soft); }
.cookie__actions { justify-content: flex-end; }
.cookie a { color: var(--accent); }
.cookie__actions { display: flex; align-items: center; gap: 18px; }
.cookie .btn--primary { padding: 12px 24px; }

/* ---------- Pagine legali ---------- */

.legal-page .nav {
  color: var(--nav-scrolled-text);
  --nav-text-muted: var(--nav-scrolled-muted);
  --nav-border: var(--nav-scrolled-border);
  --hero-em: var(--nav-scrolled-em);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.legal {
  padding: 150px 0 120px;
  background: var(--alt);
}
.legal .container { max-width: 980px; }
.legal .legal__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.legal__back span { transition: transform 0.4s var(--ease); }
.legal .legal__back:hover { color: var(--accent); }
.legal__back:hover span { transform: translateX(-5px); }
.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  margin: 10px 0 30px;
}
.legal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.legal .legal__tabs a {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.legal .legal__tabs a:hover { border-color: var(--dark); background: var(--dark); color: #fff; }

.legal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 48px 52px;
  margin-bottom: 28px;
  scroll-margin-top: 110px;
}
.legal-card > h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ink);
}
.legal__updated { color: var(--ink-soft); font-size: 13px; margin: 0 0 8px; }
.legal h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal-data {
  list-style: none;
  padding: 0 !important;
  margin: 18px 0 24px;
}
.legal-data li {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.legal-data span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 820px) {
  .legal { padding: 120px 0 80px; }
  .legal-card { padding: 30px 22px; border-radius: 10px; }
  .legal-card > h2 { font-size: 30px; }
  .legal-data li { grid-template-columns: 1fr; gap: 2px; }
  .legal table { display: block; overflow-x: auto; }
}

/* ---------- Torna su ---------- */

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--btn-bg);
  box-shadow: 0 12px 26px -10px var(--btn-shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.5s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--btn-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Bottone tema chiaro / scuro ---------- */

.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  margin-left: 22px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s, transform 0.5s var(--ease);
}
.theme-toggle:hover { border-color: currentColor; background: rgba(255, 255, 255, 0.08); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  margin: -8.5px 0 0 -8.5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
/* tema chiaro: si vede la luna (passa allo scuro); tema scuro: il sole */
.theme-toggle__sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }
[data-theme="notte"] .theme-toggle__moon { opacity: 0; transform: rotate(60deg) scale(0.6); }
[data-theme="notte"] .theme-toggle__sun { opacity: 1; transform: none; }

/* ---------- Animazioni di ingresso ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span,
  .marquee__track { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .steps::before { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .audiences { grid-template-columns: repeat(2, 1fr); }
  .report__grid,
  .faq__grid,
  .contatti__grid { grid-template-columns: 1fr; gap: 60px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head,
  .studio__grid { grid-template-columns: 1fr; gap: 12px; }
  .section-head { margin-bottom: 32px; }
  .section-title { margin-bottom: 20px; }
  .report__grid,
  .faq__grid,
  .contatti__grid { gap: 36px; }
  .faq { padding-top: 24px; }
  .quote { padding: 64px 0; }
  .stats { padding: 56px 0; }
  .stats__grid { row-gap: 32px; }
  .step h3 { margin: 18px 0 6px; font-size: 25px; }
  .marquee { padding: 18px 0; }
  .marquee span { font-size: 21px; }
  .hero__content { padding-top: 110px; padding-bottom: 90px; }
  .studio__body > p { font-size: 17px; }
  .accordion summary { padding: 20px 44px 20px 0; }

  .nav__toggle { display: block; }
  .theme-toggle { margin-left: auto; margin-right: 6px; }
  .nav__links {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 96px 20px 40px;
    overflow-y: auto;
    background: var(--nav-menu-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
    z-index: -1;
  }
  .nav__links a { font-family: var(--serif); font-size: 30px; }
  .nav__links .btn--ghost { font-family: var(--sans); font-size: 15px; margin-top: 10px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .brand__name { font-size: 19px; }

  .pillars { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; padding-top: 32px; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 36px 28px 40px; }
  .service h3 { margin-top: 28px; }
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .stat__value { font-size: 52px; }
  .audiences { grid-template-columns: 1fr; }
  .dash { padding: 18px 14px 14px; }
  .dash__kpis { gap: 6px; }
  .kpi { padding: 10px 8px; }
  .kpi__value { font-size: 19px; }
  .kpi__label { font-size: 8.5px; letter-spacing: 0.04em; }
  .kpi__delta { font-size: 10px; }
  .accordion summary { font-size: 21px; }
  .form { padding: 32px 22px; }
  .form::before { inset: 10px -8px -10px 8px; }
  .form__row { grid-template-columns: 1fr; }
  .audiences { gap: 16px; }
  .audience { padding: 28px 24px 30px; }
  .audience h3 { margin: 18px 0 8px; font-size: 22px; }
  .footer { padding: 64px 0 84px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer__brand, .footer__company { grid-column: 1 / -1; }
  .footer__sep { display: none; }
  .footer__bottom { flex-direction: column; }
  .cookie { bottom: 12px; width: calc(100% - 24px); padding: 20px; }
  .cookie__actions { justify-content: stretch; }
  .cookie .btn--primary { width: 100%; justify-content: center; }
  .nav__links .lang a { font-family: var(--sans); font-size: 15px; }
  .hero__veil { background: var(--hero-veil-mobile); }
  .to-top { right: 14px; bottom: 20px; width: 44px; height: 44px; opacity: 0; }
  .to-top.is-visible { opacity: 0.92; }
}


/* ==========================================================
   VERSIONE 2 — effetti e sezioni nuove
   ========================================================== */

/* numeri moderni (l'1 del Cormorant "all'antica" sembrava una I) */
body { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ---------- Grana leggera su tutta la pagina ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 95;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Puntatore personalizzato (solo mouse) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
  }
  .cursor__dot,
  .cursor__ring {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor__dot {
    width: 6px;
    height: 6px;
    background: var(--accent-2);
  }
  .cursor__ring {
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent-2);
    opacity: 0.55;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, opacity 0.35s, border-color 0.35s;
  }
  .cursor.is-hover .cursor__ring {
    width: 64px;
    height: 64px;
    opacity: 1;
    border-color: transparent;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
  }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Titolo hero: righe che salgono ---------- */
.split .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.split .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease);
}
.split .line:nth-child(2) > span { transition-delay: 0.14s; }
.split.is-in .line > span { transform: none; }

/* parte in corsivo con un riflesso che scorre */
.shimmer {
  background: linear-gradient(100deg, var(--hero-em) 20%, #ffffff 40%, var(--hero-em) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  padding-right: 0.08em;
}
@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

/* ---------- Servizi: elenco editoriale ---------- */
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr) 56px;
  gap: 32px;
  align-items: center;
  padding: 34px 28px;
  border-top: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
  transition: color 0.5s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, var(--dark), var(--dark-2));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.svc:hover { color: #fff; }
.svc:hover::before { transform: scaleY(1); }
.svc__num {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  transition: -webkit-text-stroke-color 0.5s;
}
.svc:hover .svc__num { -webkit-text-stroke-color: var(--accent-on-dark-2); }
.svc__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  transition: transform 0.6s var(--ease);
}
.svc:hover .svc__title { transform: translateX(10px); }
.svc__text {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.5s var(--ease);
}
.svc:hover .svc__text { color: rgba(255, 255, 255, 0.78); }
.svc__arrow {
  justify-self: end;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.6s var(--ease), border-color 0.5s, background 0.5s;
}
.svc__arrow::before,
.svc__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}
.svc__arrow::before {
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: currentColor;
}
.svc__arrow::after {
  width: 7px;
  height: 7px;
  margin: -4px 0 0 -0.5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.svc:hover .svc__arrow {
  transform: rotate(-45deg);
  border-color: var(--accent-on-dark);
  background: var(--accent-on-dark);
  color: var(--dark);
}

/* ---------- Cruscotto inclinabile e card flottanti ---------- */
.dash-wrap {
  position: relative;
  perspective: 1400px;
}
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.tilt__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: soft-light;
}
.tilt:hover .tilt__glare { opacity: 1; }
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(10, 40, 70, 0.45);
  animation: floaty 6s ease-in-out infinite;
}
.float-card span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.float-card strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
}
.float-card--a { top: -28px; left: -36px; }
.float-card--b { bottom: 24px; right: -40px; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Fondatore ---------- */
.founder__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.founder__photo {
  position: relative;
  margin: 0;
}
.founder__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease);
}
.founder__photo.is-in .founder__frame { clip-path: inset(0 0 0 0); }
.founder__frame img,
.founder__placeholder {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: translateY(var(--par, 0px)) scale(1.06);
  transition: transform 1.6s var(--ease);
}
.founder__photo.is-in .founder__frame img,
.founder__photo.is-in .founder__placeholder { transform: translateY(var(--par, 0px)) scale(1); }
.founder__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--c2), 0.35), transparent 55%),
    linear-gradient(160deg, var(--dark), var(--dark-2));
}
.founder__placeholder .brand__mark {
  width: 120px;
  height: 86px;
  font-size: 44px;
  padding: 4px 18px 0;
  border-color: rgba(255, 255, 255, 0.4);
}
.founder__placeholder .brand__mark em { font-size: 40px; color: var(--accent-on-dark); }
.founder__placeholder small {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
}
.founder__photo::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  z-index: -1;
  border: 1px solid var(--accent);
  opacity: 0.5;
  border-radius: 4px;
}
.founder__tag {
  position: absolute;
  left: -14px;
  bottom: 40px;
  padding: 10px 18px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.founder .section-title { margin: 20px 0 6px; }
.founder__role {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}
.founder__text > p:not(.founder__role) { color: var(--ink-soft); font-size: 17px; }
.founder__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 26px 0 0;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}
.founder__facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.founder__facts span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Metodo: linea che si riempie scorrendo ---------- */
.steps::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  height: 2px;
  margin-top: -0.5px;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--accent-on-dark), var(--accent-on-dark-2));
  box-shadow: 0 0 14px var(--accent-on-dark);
}
.step .step__dot { transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.step.is-active .step__dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-on-dark) 22%, transparent);
}

/* ---------- Citazione: parole che si accendono ---------- */
.words .w {
  opacity: 0.16;
  transition: opacity 0.35s ease;
}
.words .w.on { opacity: 1; }

/* ---------- Responsive v2 ---------- */
@media (max-width: 1000px) {
  .svc { grid-template-columns: 70px minmax(0, 1fr) 48px; gap: 8px 22px; padding: 28px 18px; }
  .svc__text { grid-column: 2 / 3; grid-row: 2; }
  .svc__arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .steps::after { display: none; }
  .founder__grid { grid-template-columns: 1fr; gap: 60px; }
  .founder__photo { max-width: 460px; }
  .float-card--a { left: -10px; }
  .float-card--b { right: -10px; }
}
@media (max-width: 820px) {
  .svc { grid-template-columns: 52px minmax(0, 1fr); padding: 24px 6px; }
  .founder__grid { gap: 40px; }
  .founder__photo { max-width: 100%; margin-right: 10px; }
  .founder__tag { left: -8px; bottom: 24px; }
  .founder__role { font-size: 20px; margin-bottom: 18px; }
  .report .section-title, .contatti .section-title, .faq .section-title { margin-top: 12px; }
  .svc__num { font-size: 34px; }
  .svc__arrow { display: none; }
  .founder__facts { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .founder__facts strong { font-size: 22px; }
  .float-card { display: none; }
  .founder__photo::after { inset: 14px -10px -14px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .shimmer, .float-card { animation: none; }
  .split .line > span { transform: none; transition: none; }
  .founder__frame { clip-path: none; transition: none; }
  .words .w { opacity: 1; }
}

/* finita la tendina, la parallasse segue lo scroll senza ritardo */
.founder__photo.is-done .founder__frame img,
.founder__photo.is-done .founder__placeholder { transition: none; }

/* foto del fondatore: inquadratura dall'alto, così la testa non tocca il bordo */
.founder__photo .founder__frame img {
  inset: 0;
  height: 100%;
  object-position: 50% 0;
  transform-origin: 50% 0;
  transform: scale(1.06);
  background: #e9ebee;
}
.founder__photo.is-in .founder__frame img { transform: scale(1); }
