/* =====================================================================
   DESIGN SYSTEM — "Command Center" (veste scelta dal cliente, 2026-08-28)
   Un solo colore d'azione (azzurro brand) · pillole 9999 · hairline #e4e4e7
   Display: Inter Tight 400, tracking stretto · micro: JetBrains Mono
   Nav: capsula navy flottante · sezioni chiare + due bande scure (équipe, value)
   ===================================================================== */
:root {
  /* palette */
  --accent:        #009BDE;   /* azzurro del logo: unico colore d'azione */
  --accent-deep:   #007AB3;
  --accent-ice:    #9adcff;   /* enfasi su fondo scuro */
  --navy:          #0D2A4A;   /* capsula nav */
  --carbon:        #18181b;   /* testo */
  --zinc:          #71717a;   /* testo secondario */
  --ash:           #a1a1aa;   /* "soft" nei titoli */
  --mist:          #e4e4e7;   /* hairline */
  --fog:           #f4f4f5;   /* fondi alternati */
  --paper:         #ffffff;
  --night:         #05070a;   /* hero / final */
  --night-2:       #060809;   /* value / footer */
  --cell:          #0b0e10;

  /* alias legacy: alcuni stili inline nelle pagine usano ancora questi nomi */
  --brand:         var(--accent);
  --brand-2:       var(--accent-deep);
  --brand-3:       var(--accent);
  --brand-deep:    var(--navy);
  --brand-deep-2:  #143a63;
  --brand-soft:    var(--accent-ice);
  --brand-soft-2:  #c7ecff;
  --brand-tint:    var(--fog);
  --ink:           var(--carbon);
  --ink-2:         var(--carbon);
  --ink-3:         #3f3f46;
  --muted:         var(--zinc);
  --line:          var(--mist);
  --paper-soft:    var(--fog);

  --warning:       #F4B400;
  --success:       #1E8B5C;
  --danger:        #C0392B;

  --display: "Inter Tight", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --body:    "Inter Tight", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px;
  --r:    15px;
  --r-lg: 20px;
  --r-xl: 22px;
  --r-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(9,20,35,.05), 0 2px 8px rgba(9,20,35,.04);
  --shadow:    0 18px 44px -18px rgba(9,20,35,.18);
  --shadow-lg: 0 40px 90px -30px rgba(0,60,110,.45);

  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--carbon);
  background: var(--paper);
  overflow-x: clip;               /* solo su body: html resta visibile (su iOS la coppia html+body altera lo scroller) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 1400px; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ------- Typography ------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--carbon);
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0 0 .5em;
  hyphens: manual; word-break: normal; overflow-wrap: anywhere; text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.6vw, 64px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.12; }
h4 { font-size: clamp(17px, 2vw, 20px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
h2 .soft, h1 .soft, .h2 .soft { color: var(--ash); }

p { margin: 0 0 1em; }
.lead { font-size: clamp(16.5px, 1.8vw, 18px); line-height: 1.55; color: var(--zinc); max-width: 640px; }

/* etichetta di sezione: mono, maiuscola, azzurra */
.eyebrow, .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.mono {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--zinc);
}
.h2 { margin-top: 0; font-size: clamp(34px, 4.6vw, 56px); }
.text-white, .text-white h1, .text-white h2, .text-white h3 { color: #fff; }
.text-white .eyebrow { color: var(--accent-ice); }

/* ------- Buttons: pillole piene, mai ghost per l'accent ------- */
.btn, .pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  border-radius: var(--r-pill);
  cursor: pointer; border: none; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover, .pill:hover { transform: translateY(-1px); }
.btn svg { flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary, .btn-solid, .pill-accent { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-solid:hover, .pill-accent:hover { background: var(--accent-deep); }
.btn-white, .pill-white { background: #fff; color: var(--carbon); box-shadow: inset 0 0 0 1px var(--mist); }
.btn-white:hover, .pill-white:hover { box-shadow: inset 0 0 0 1px var(--ash); }
.btn-dark, .pill-dark { background: var(--carbon); color: #fff; }
.btn-ghost, .pill-hairline { background: transparent; color: var(--carbon); box-shadow: inset 0 0 0 1px var(--mist); }
.btn-ghost:hover, .pill-hairline:hover { box-shadow: inset 0 0 0 1px var(--carbon); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
/* su fondo scuro il ghost diventa chiaro */
.on-dark .btn-ghost, .on-dark .pill-hairline { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.on-dark .btn-ghost:hover, .on-dark .pill-hairline:hover { box-shadow: inset 0 0 0 1px #fff; }

/* ------- NAV: capsula navy flottante ------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(1080px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(13,42,74,.72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill); padding: 10px 10px 10px 22px;
  box-shadow: 0 12px 40px -18px rgba(13,42,74,.55);
  transition: width .35s var(--ease), top .35s var(--ease), background .4s, padding .4s;
}
.nav.compact { top: 10px; width: min(880px, calc(100% - 32px)); padding: 6px 6px 6px 18px; background: rgba(13,42,74,.92); }
.nav-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; letter-spacing: .02em; font-size: 16px; flex: none; }
.nav-brand img { height: 22px; width: auto; transition: height .35s var(--ease); }
.nav.compact .nav-brand img { height: 20px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.72); font-size: 14px; padding: 9px 13px;
  border-radius: var(--r-pill); transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
/* selettore lingua nella capsula (decisione cliente: resta visibile, traduzioni pre go-live) */
.lang-switch { display: inline-flex; gap: 1px; padding: 3px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-pill); flex: none; }
/* selettore lingua: link <a> veri verso la pagina equivalente (generati dal build); `button` resta per compatibilità */
.lang-switch a, .lang-switch button {
  display: inline-block; text-align: center; text-decoration: none;
  padding: 5px 9px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em;
  color: rgba(255,255,255,.6); border-radius: var(--r-pill); line-height: 1; min-width: 30px; transition: color .2s, background .2s;
}
.lang-switch a:hover, .lang-switch button:hover { color: #fff; }
.lang-switch a.active, .lang-switch a[aria-current="true"], .lang-switch button.active { background: #fff; color: var(--navy); }
/* hamburger (mobile) */
.hamburger, .nav-burger {
  display: none; width: 42px; height: 42px; flex: none; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); color: #fff; place-items: center;
}
.hamburger svg { display: block; }
@media (max-width: 960px) {
  .nav { padding: 8px 8px 8px 18px; }
  .nav-links { display: none; }
  .nav .lang-switch { display: none; }
  .hamburger { display: inline-grid; }
}
@media (max-width: 520px) {
  .nav .btn { padding: 10px 14px; font-size: 13px; }
  .nav-brand span { display: none; }   /* resta il dente: brand compatto */
}

/* ------- DRAWER mobile (a schermo intero, accessibile: inert + focus gestiti in main.js) ------- */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,42,74,.97); color: #fff;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  padding: 18px var(--gutter) 28px; overflow-y: auto;
}
.drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.drawer-top .nav-brand img { height: 26px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-size: 22px; font-weight: 500; letter-spacing: -.015em; color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .cta-stack { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.drawer .cta-stack .btn { width: 100%; }
.drawer .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.drawer-lang { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.drawer-lang .mono { color: rgba(255,255,255,.55); margin-bottom: 10px; display: block; }
.drawer .lang-switch a, .drawer .lang-switch button { padding: 8px 14px; font-size: 12px; }

/* ------- HERO: video cinematografico + scrim + stat strip ------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: var(--night); }
.hero-media { position: absolute; inset: 0; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) brightness(1.1); background: var(--night); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,10,.46) 0%, rgba(5,7,10,.14) 30%, rgba(5,7,10,.22) 58%, rgba(5,7,10,.88) 100%),
    radial-gradient(62% 46% at 50% 44%, rgba(5,7,10,.52), transparent 72%),
    radial-gradient(90% 60% at 50% 108%, rgba(0,155,222,.26), transparent 60%);
}
.hero-core {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 150px 24px 40px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-pill); padding: 8px 16px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 10px #35d07f; animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .45; } }
.hero h1 { color: #fff; font-size: clamp(44px, 7.4vw, 84px); line-height: 1.0; letter-spacing: -.028em; max-width: 850px; margin: 0; }
.hero h1 em { font-style: normal; color: var(--accent-ice); }
.hero-sub { margin: 22px 0 0; font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.82); max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero-trustline { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hero-trustline a:hover { color: #fff; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.hero-stat { padding: 22px 26px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-stat:last-child { border-right: none; }
.hero-stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero-stat .v { margin-top: 6px; font-size: 15.5px; font-weight: 500; color: #fff; letter-spacing: -.01em; }
@media (max-width: 860px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat { border-bottom: 1px solid rgba(255,255,255,.14); }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
}

/* ------- section scaffolding ------- */
section { padding: clamp(80px, 9vw, 110px) 0; }
.section-head { max-width: 720px; }
.section-head .lead { margin-top: 18px; }

/* ------- BANDA CINEMATICA (fondatore) ------- */
.band { position: relative; color: #fff; padding: 0; overflow: hidden; background: var(--night); }
/* ancoraggio verticale misurato sul file: occhio 36%, mascherina 44-68% dell'altezza */
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.88) 0%, rgba(5,7,10,.45) 55%, rgba(5,7,10,.15) 100%); }
.band-inner { position: relative; z-index: 2; padding: 150px 0; max-width: 620px; }
.band h2 { color: #fff; }
.band .lead { color: rgba(255,255,255,.78); }
.band .eyebrow { color: var(--accent-ice); }
.band-chips { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.band-chip { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); border-radius: var(--r-pill); padding: 9px 16px; }
.band-sign { margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 820px) {
  /* Mobile: il ritratto resta visibile in alto (viso senza scrim), il testo scende sotto su fondo scuro */
  .band { --band-img: clamp(380px, 96vw, 460px); }
  .band img.bg { inset: auto; top: 0; left: 0; height: var(--band-img); object-position: 100% 50%; }
  .band::after { background: linear-gradient(180deg, rgba(5,7,10,.06) 0, rgba(5,7,10,.06) calc(var(--band-img) - 190px), rgba(5,7,10,.78) calc(var(--band-img) - 60px), var(--night) var(--band-img), var(--night) 100%); }
  .band-inner { padding: calc(var(--band-img) - 96px) 0 64px; }
}

/* ------- COME FUNZIONA: 4 step ------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--mist); }
.step { padding: 34px 26px 10px 0; border-right: 1px solid var(--mist); position: relative; }
.step:last-child { border-right: none; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; }
.step h3 { margin: 14px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.step p { margin: 10px 0 0; font-size: 15px; color: var(--zinc); line-height: 1.55; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--mist); padding-bottom: 26px; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3), .step:nth-child(4) { border-bottom: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; border-bottom: 1px solid var(--mist) !important; padding-right: 0; }
  .step:last-child { border-bottom: none !important; }
}

/* ------- TRATTAMENTI in home: intestazione + feature alternate ------- */
.svc-head { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
.svc-head p { margin: 18px 0 0; font-size: 16.5px; color: var(--zinc); line-height: 1.6; max-width: 560px; }
@media (max-width: 760px) { .svc-head { grid-template-columns: 1fr; align-items: start; } }
.feature-list { margin-top: 30px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding: 56px 0; border-bottom: 1px solid var(--mist); }
.feature:last-child { border-bottom: none; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { border-radius: var(--r); overflow: hidden; background: var(--fog); aspect-ratio: 4/3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.035); }
.feature h3 { font-size: clamp(24px, 2.8vw, 34px); margin: 0; }
.feature p { margin: 14px 0 0; font-size: 16px; color: var(--zinc); line-height: 1.6; max-width: 460px; }
.feature .mono-tag { margin-bottom: 14px; display: inline-block; }
.feature a.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent); font-weight: 500; font-size: 15px; }
.feature a.more:hover { gap: 10px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* ------- VALUE STACK (banda scura) ------- */
.value { background: var(--night-2); color: #fff; position: relative; overflow: hidden; }
.value .glow-tooth {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: min(52vw, 720px); opacity: .8; pointer-events: none;
  right: max(-6%, calc(50% - 806px));   /* ancorato al contenitore: su 4K non scappa a destra */
}
.value .container { position: relative; z-index: 2; }
.value h2 { color: #fff; }
.value .eyebrow { color: var(--accent-ice); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.1); margin-top: 60px; max-width: 780px; border-radius: var(--r); overflow: hidden; }
.value-cell { background: var(--cell); padding: 24px 22px; }
.value-cell .t { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.value-cell .d { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.45; }
@media (max-width: 760px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value .glow-tooth { position: static; transform: none; width: 100%; margin-top: 30px; opacity: 1; }
}

/* ------- ÉQUIPE: card a scheda (home + chi siamo) ------- */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 60px; }
.board-card {
  display: flex; flex-direction: column; text-align: left; width: 100%; padding: 0;
  border: 1px solid var(--mist); border-radius: var(--r); overflow: hidden; background: #fff; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.board-card > img, .board-card > .ini { flex: none; }
.board-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.board-card .ini { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--accent-deep)); color: #fff; font-size: 44px; letter-spacing: .02em; }
.board-body { padding: 18px 18px 22px; }
.board-body .name { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.board-body .role { margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.board-body .bio { margin: 10px 0 0; font-size: 13.5px; color: var(--zinc); line-height: 1.5; }
.board-card .more-bio { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-size: 13.5px; font-weight: 500; }
.board-card:hover .more-bio { gap: 10px; }
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .board-grid { grid-template-columns: 1fr; } }

.team-more { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--mist); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.team-more-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.team-avatars { display: flex; }
.team-avatars img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -12px; box-shadow: 0 2px 10px -3px rgba(9,20,35,.25); transition: transform .25s var(--ease); }
.team-avatars img:first-child { margin-left: 0; }
.team-avatars:hover img { transform: translateY(-3px); }
.team-more-text { margin: 0; font-size: 15px; color: var(--zinc); max-width: 420px; line-height: 1.5; }
.team-more-text strong { color: var(--carbon); }
@media (max-width: 620px) { .team-more { flex-direction: column; align-items: flex-start; } }

/* ------- STORIE (recensioni) ------- */
.stories { background: var(--fog); }
.stories-rating { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--mist); border-radius: var(--r-pill); padding: 10px 18px; font-size: 14px; font-weight: 500; }
.stories-rating .stars { color: var(--warning); letter-spacing: 1px; }
.stories-rating .g-logo { width: 18px; height: 18px; }
.stories h2 { margin-top: 26px; }
.stories-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.story { background: #fff; border: 1px solid var(--mist); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.story .who { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--zinc); }
.story blockquote { margin: 0; font-size: 15.5px; line-height: 1.55; letter-spacing: -.005em; color: var(--carbon); flex: 1; }
.story .outcome { font-size: 13px; color: var(--accent); font-weight: 500; border-top: 1px solid var(--mist); padding-top: 14px; }
.stories-foot { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1000px) { .stories-track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stories-track { grid-template-columns: 1fr; } }

/* ------- PARTNER (loghi) ------- */
.partners { padding: 60px 0; border-top: 1px solid var(--mist); background: var(--paper); }
.partners .container { text-align: center; }
.partners-label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--zinc); margin: 0; }
.partners-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 70px); margin-top: 30px; }
.partners-grid img { height: 34px; width: auto; object-fit: contain; opacity: .8; transition: opacity .25s ease; }
.partners-grid img:hover { opacity: 1; }

/* ------- PAGAMENTI ------- */
.finance { background: var(--fog); }
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.fin-grid > *:last-child { display: flex; }
.fin-grid > *:last-child > .fin-card { flex: 1; }
.fin-steps { display: grid; margin-top: 30px; border-top: 1px solid var(--mist); }
.fin-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--mist); align-items: start; }
.fin-steps .n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 2px; }
.fin-steps .t { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.fin-steps .d { display: block; font-size: 14px; color: var(--zinc); margin-top: 3px; line-height: 1.5; }
.fin-card { background: #fff; border: 1px solid var(--mist); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; }
.fin-card .h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; margin: 10px 0 14px; }
.fin-card p { font-size: 15px; color: var(--zinc); line-height: 1.6; margin: 0; }
.fin-check { margin-top: 20px; display: grid; border-top: 1px solid var(--mist); }
.fin-check li { display: flex; gap: 11px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--mist); font-size: 14.5px; }
.fin-check li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.fin-card .fin-note { margin-top: auto; }
.fin-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--mist); font-size: 12.5px; line-height: 1.55; color: var(--zinc); }
@media (max-width: 820px) { .fin-grid { grid-template-columns: 1fr; } }

/* ------- PRIMA VISITA (card aurora) ------- */
.member-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.aurora-card { position: relative; aspect-ratio: 1.586; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--accent-deep) 60%, var(--accent)); box-shadow: var(--shadow-lg); transform: rotate(-2deg); transition: transform .45s var(--ease); }
.aurora-card:hover { transform: rotate(0deg) scale(1.015); }
.aurora-card img.tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aurora-card .in { position: absolute; inset: 0; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.aurora-card .top { display: flex; justify-content: space-between; align-items: center; }
.aurora-card .brandline { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .04em; }
.aurora-card .brandline img { height: 20px; }
.aurora-card .chipv { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.45)); }
.aurora-card .num { font-family: var(--mono); font-size: clamp(15px, 2vw, 19px); letter-spacing: .18em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.aurora-card .bottomrow { display: flex; justify-content: space-between; align-items: flex-end; }
.aurora-card .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.aurora-card .holder { font-size: 15px; font-weight: 500; letter-spacing: .06em; margin-top: 4px; }
.aurora-card .zero { font-size: clamp(34px, 4vw, 46px); letter-spacing: -.02em; }
.member-list { margin-top: 34px; display: grid; border-top: 1px solid var(--mist); }
.member-list li { display: flex; gap: 12px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--mist); font-size: 15.5px; }
.member-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.member-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.member-trust { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; }
.member-trust span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--zinc); }
@media (max-width: 860px) { .member-grid { grid-template-columns: 1fr; } }

/* ------- FAQ (home): accordion hairline ------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 4px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 4px 24px; color: var(--zinc); font-size: 15.5px; line-height: 1.6; max-width: 640px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

/* ------- FINAL CTA (home) + CTA BAR (pagine interne) ------- */
.final { position: relative; color: #fff; text-align: center; overflow: hidden; background: var(--night); padding: 150px 0; }
.final img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.final::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 45%, transparent 30%, rgba(5,7,10,.88) 100%); }
.final .container { position: relative; z-index: 2; }
.final h2 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.028em; line-height: 1.02; margin: 0; }
.final h2 em { font-style: normal; color: var(--accent-ice); }
.final .chips { display: flex; gap: 18px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.final .chips span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.final .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 860px) { .final { padding: 110px 0; } .final img.bg { opacity: .32; object-position: 50% 40%; } .final::after { background: radial-gradient(80% 70% at 50% 45%, rgba(5,7,10,.35) 0%, rgba(5,7,10,.92) 100%); } }

.cta-bar { background: var(--night); color: #fff; padding: clamp(56px, 7vw, 90px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-bar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 120%, rgba(0,155,222,.28), transparent 65%); }
.cta-bar .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-bar .cta-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.05; color: #fff; margin: 0; }
.cta-bar .cta-title em { font-style: normal; color: var(--accent-ice); }
.cta-bar a.btn { padding: 15px 28px; }

/* ------- VIDEO DI PRESENTAZIONE (click-to-play) ------- */
.welcome { background: var(--paper); }
.welcome-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.welcome-head h2 { margin: 0; }
.welcome-head p { margin: 16px auto 0; color: var(--zinc); max-width: 560px; }
.welcome-video { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; background: var(--night); }
.welcome-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--night); }
.welcome-video.playing .welcome-play, .welcome-video.playing .video-badge { display: none; }
.welcome-video .video-badge { position: absolute; left: 18px; bottom: 16px; background: rgba(5,7,10,.72); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: var(--r-pill); pointer-events: none; backdrop-filter: blur(8px); }
.welcome-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; background: rgba(255,255,255,.95); color: var(--accent); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .25s ease; }
.welcome-video:hover .welcome-play { transform: translate(-50%, -50%) scale(1.08); }

/* ------- FOOTER (scuro) ------- */
footer.site { background: var(--night-2); color: rgba(255,255,255,.65); padding: 80px 0 40px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; }
.footer-logo-text { font-weight: 600; font-size: 18px; letter-spacing: .03em; color: #fff; line-height: 1; }
.footer-logo-tooth { height: 26px; width: auto; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 300px; line-height: 1.6; }
.footer-brand .tagline { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); color: #fff; transition: background .25s, border-color .25s; }
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); }
footer.site .footer-heading { color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; font-weight: 500; }
footer.site ul li { padding: 5px 0; font-size: 14px; }
footer.site ul a { color: rgba(255,255,255,.65); transition: color .2s; }
footer.site ul a:hover { color: #fff; }
.footer-zones { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13.5px; }
.footer-zones span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-zones a { color: rgba(255,255,255,.75); }
.footer-zones a:hover { color: #fff; }
.legal-block { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.6); }
.legal-block strong { color: #fff; display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.legal-block a { color: rgba(255,255,255,.75); }
.copy-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 0; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(255,255,255,.45); }
.copy-row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.copy-row a { color: rgba(255,255,255,.7); }
.copy-row a:hover { color: #fff; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .legal-block { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .legal-block { grid-template-columns: 1fr; } footer.site { padding-bottom: 110px; } }

/* ------- MOBILE STICKY BAR (pillola scura) ------- */
.mobile-bar {
  display: none; position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 90;
  align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 20px);
  background: rgba(10,10,12,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-pill); padding: 8px;
}
.mobile-bar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13.5px; font-weight: 500; padding: 10px 16px; border-radius: var(--r-pill); white-space: nowrap; flex: none; }
.mobile-bar a svg { display: none; }
.mobile-bar a.primary { background: var(--accent); }
@media (max-width: 390px) { .mobile-bar a { font-size: 13px; padding: 10px 13px; } }
@media (max-width: 960px) { .mobile-bar { display: inline-flex; } body { padding-bottom: 76px; } }

/* ------- COOKIE BANNER (Garante 2021: 3 pulsanti equivalenti) ------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 720px; margin: 0 auto;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 22px 26px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--mist);
  z-index: 1000; display: none; animation: slideUp .4s ease;
}
.cookie-banner.show { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner h4 { font-size: 17px; margin: 0 0 6px; }
.cookie-banner p { font-size: 13.5px; color: var(--zinc); margin: 0 0 16px; line-height: 1.5; }
.cookie-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cookie-actions button { padding: 12px 14px; font-size: 13.5px; font-weight: 500; border-radius: var(--r-pill); transition: all .2s ease; box-shadow: inset 0 0 0 1px var(--mist); background: #fff; color: var(--carbon); }
.cookie-actions button:hover { box-shadow: inset 0 0 0 1px var(--carbon); }
.cookie-actions button.accept-all { background: var(--accent); color: #fff; box-shadow: none; }
.cookie-actions button.accept-all:hover { background: var(--accent-deep); }
@media (max-width: 560px) { .cookie-actions { grid-template-columns: 1fr; } .cookie-banner { bottom: 90px; } }

.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(6,8,10,.72); backdrop-filter: blur(6px); z-index: 1001; display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal-backdrop.show { display: flex; }
.cookie-modal { background: #fff; border-radius: var(--r-lg); max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: var(--shadow-lg); }
.cookie-modal h3 { font-size: 24px; margin: 0 0 8px; }
.cookie-modal p.intro { font-size: 14px; color: var(--zinc); margin-bottom: 8px; }
.cookie-row { padding: 18px 0; border-top: 1px solid var(--mist); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.cookie-row:last-of-type { border-bottom: 1px solid var(--mist); margin-bottom: 20px; }
.cookie-row h5 { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; }
.cookie-row p { font-size: 13px; color: var(--zinc); margin: 0; line-height: 1.45; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .track { position: absolute; inset: 0; background: var(--mist); border-radius: var(--r-pill); transition: background .25s; }
.toggle-switch .track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle-switch input:checked + .track { background: var(--accent); }
.toggle-switch input:checked + .track::before { transform: translateX(20px); }
.toggle-switch input:disabled + .track { opacity: .6; }
/* l'input è invisibile (opacity 0): il focus da tastiera si mostra sulla traccia */
.toggle-switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 3px; }
.cookie-modal-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.cookie-modal-actions .btn { padding: 12px 18px; font-size: 13.5px; flex: 1; min-width: 0; }

/* ------- a11y / motion / anti-bot ------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 20px; font-weight: 500; border-radius: 0 0 12px 0; z-index: 500; }
.skip-link:focus { left: 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =====================================================================
   PAGINE INTERNE
   ===================================================================== */
/* intestazione di pagina: chiara, sotto la capsula fissa */
.subhero { background: var(--paper); color: var(--carbon); padding: 150px 0 clamp(36px, 5vw, 56px); position: relative; }
.subhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mist); }
.subhero .eyebrow { display: block; }
.subhero h1 { margin: 0 0 16px; max-width: 900px; }
.subhero p { color: var(--zinc); max-width: 660px; font-size: clamp(16px, 1.8vw, 18px); margin: 0; line-height: 1.55; }
.breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--zinc); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--carbon); }

/* ABOUT / filosofia (chi siamo) */
.about { padding: clamp(70px, 9vw, 110px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-visual .blob { display: none; }
.photo-stack-1, .photo-stack-2 { border-radius: var(--r); overflow: hidden; background: var(--fog); }
.photo-stack-1 { aspect-ratio: 3/4; }
.photo-stack-2 { aspect-ratio: 3/4; margin-top: 40px; }
.photo-stack-1 img, .photo-stack-2 img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 0; }
.about-copy .lead { margin-top: 18px; }
.check-list { margin: 28px 0 32px; display: grid; border-top: 1px solid var(--mist); }
.check-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--mist); font-size: 15.5px; color: var(--carbon); }
.check-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-visual { max-width: 520px; } }

/* SERVIZI: indice a card */
.services { padding: clamp(60px, 8vw, 100px) 0; background: var(--paper) !important; }
.services-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; margin-bottom: 40px; }
.services-head h2 { margin: 0; }
.services-head p { color: var(--zinc); margin: 16px 0 0; max-width: 560px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { position: relative; background: #fff; border: 1px solid var(--mist); border-radius: var(--r); padding: 26px; overflow: hidden; min-height: 190px; display: flex; align-items: center; gap: 20px; transition: transform .3s var(--ease), box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-text { flex: 1 1 50%; min-width: 0; }
.service-card h3 { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 26px); }
.service-card .more { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; }
.service-card .more svg { transition: transform .25s; }
.service-card:hover .more svg { transform: translateX(4px); }
.service-card-img { flex: 0 0 44%; align-self: stretch; margin: -26px -26px -26px 0; overflow: hidden; min-height: 190px; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.04); }
.service-card-cta { background: linear-gradient(135deg, var(--navy), var(--accent-deep) 60%, var(--accent)); border-color: transparent; color: #fff; }
.service-card-cta img.tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .8s var(--ease); }
.service-card-cta:hover img.tex { transform: scale(1.04); }
.service-card-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.72) 0%, rgba(5,7,10,.35) 60%, rgba(5,7,10,.15) 100%); }
.service-card-cta .service-card-text { position: relative; z-index: 1; flex: 1 1 auto; max-width: 420px; }
.service-card-cta .eyebrow { color: var(--accent-ice); }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.service-card-cta .more { color: #fff; }
@media (max-width: 720px) {
  .services-head { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 20px; gap: 14px; min-height: 160px; }
  .service-card-img { flex: 0 0 42%; margin: -20px -20px -20px 0; min-height: 160px; }
}

/* SCHEDA SERVIZIO + landing di zona */
.service-detail { padding: clamp(48px, 7vw, 90px) 0; }
.service-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.service-figure { border-radius: var(--r); overflow: hidden; margin: 0 0 32px; background: var(--fog); }
.service-figure img { width: 100%; height: clamp(240px, 38vw, 400px); object-fit: cover; }
.service-body > .lead { margin-bottom: 24px; }
.service-body h2 { font-size: clamp(24px, 3vw, 34px); margin: 44px 0 14px; }
.service-body h2:first-of-type { margin-top: 0; }
.service-body h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; letter-spacing: -.015em; margin: 28px 0 10px; }
.service-body p { color: #3f3f46; margin: 0 0 16px; line-height: 1.7; }
.service-body p a { color: var(--accent); }
.service-tldr { background: var(--fog); border-left: 2px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; padding: 20px 24px; margin: 0 0 32px; }
.service-tldr .tldr-label { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.service-tldr p { margin: 0; color: var(--carbon); font-size: 16.5px; line-height: 1.6; }
.service-faq { margin-top: 46px; }
.service-faq > h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; }
.faq-item { border-bottom: 1px solid var(--mist); background: transparent; }
.faq-item:first-of-type { border-top: 1px solid var(--mist); }
.faq-item summary { cursor: pointer; list-style: none; position: relative; padding: 20px 44px 20px 4px; font-weight: 500; font-size: 16.5px; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--accent); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item:not([open]) .faq-a { display: none; }
.faq-item .faq-a { padding: 0 4px 20px; }
.faq-item .faq-a p { margin: 0; color: var(--zinc); font-size: 15.5px; line-height: 1.65; max-width: 640px; }
.service-meta { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--mist); display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--zinc); font-family: var(--mono); letter-spacing: .02em; }
.service-meta .rev strong { color: var(--carbon); font-weight: 500; }
.service-body ul.ticks { display: grid; margin: 20px 0 8px; border-top: 1px solid var(--mist); }
.service-body ul.ticks li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--mist); color: var(--carbon); font-size: 15.5px; }
.service-body ul.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.service-badges { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 30px 0 8px; padding-top: 24px; border-top: 1px solid var(--mist); }
.service-badges span.lbl { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc); width: 100%; }
.service-badges img { height: 30px; width: auto; object-fit: contain; opacity: .8; }
/* sidebar */
.service-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--carbon); color: #fff; border-radius: var(--r); padding: 28px; }
.aside-card .free { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ice); margin-bottom: 14px; }
.aside-card h3 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.aside-card p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0 0 18px; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card .btn-white { box-shadow: none; }
.aside-card .aside-contact { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 14px; margin-top: 10px; }
.aside-card .aside-contact a { color: #fff; }
.aside-related { border: 1px solid var(--mist); border-radius: var(--r); padding: 22px 24px; }
.aside-related h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc); margin: 0 0 10px; }
.aside-related ul { display: flex; flex-direction: column; }
.aside-related a { display: block; padding: 10px 0; color: var(--carbon); font-size: 14.5px; border-bottom: 1px solid var(--mist); transition: color .2s, padding .2s; }
.aside-related li:last-child a { border-bottom: none; }
.aside-related a:hover { color: var(--accent); padding-left: 6px; }
@media (max-width: 920px) { .service-layout { grid-template-columns: minmax(0,1fr); } .service-aside { position: static; } }

/* PAGINE LEGALI */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .container { max-width: 860px; }
.legal .updated { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--zinc); margin: 0 0 28px; }
.legal h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 44px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.legal p { color: #3f3f46; font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.legal ul { padding-left: 20px; list-style: disc; margin: 0 0 16px; }
.legal li { color: #3f3f46; font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--carbon); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14.5px; }
.legal th, .legal td { border: 1px solid var(--mist); padding: 10px 13px; text-align: left; vertical-align: top; }
.legal th { background: var(--fog); font-weight: 600; }
.legal .box { background: var(--fog); border-radius: var(--r); padding: 20px 24px; margin: 20px 0; }
.legal .box p:last-child { margin-bottom: 0; }

/* CONTATTI */
.contact-page { padding: clamp(48px, 7vw, 90px) 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-layout h2 { margin: 0; }
.contact-methods { display: grid; margin: 26px 0 32px; border-top: 1px solid var(--mist); }
.contact-method { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--mist); }
.contact-method .ic { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; color: var(--accent); background: var(--fog); }
.contact-method .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc); }
.contact-method .val { color: var(--carbon); font-size: 15.5px; font-weight: 500; }
.contact-method a.val:hover { color: var(--accent); }
.map-card { position: relative; display: block; margin-top: 34px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--mist); }
.map-card img { width: 100%; height: 380px; object-fit: cover; display: block; }
.map-cta { position: absolute; right: 14px; bottom: 14px; background: var(--carbon); color: #fff; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; transition: background .2s ease; }
.map-card:hover .map-cta { background: var(--accent); }
.map-attr { position: absolute; left: 8px; bottom: 7px; font-size: 10px; color: rgba(24,24,27,.6); background: rgba(255,255,255,.75); padding: 1px 6px; border-radius: 4px; }
.form-intro h2 em { font-style: normal; color: var(--ash); }
.form-intro .lead { margin-top: 12px; }
.responder { margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--mist); border-radius: var(--r); }
.responder-photo { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--accent-deep)); display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 500; flex-shrink: 0; }
.responder-text { font-size: 13px; line-height: 1.4; }
.responder-text strong { display: block; color: var(--carbon); font-size: 14.5px; }
.responder-text small { color: var(--zinc); }
.form-card { background: #fff; border: 1px solid var(--mist); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); margin-top: 26px; }
/* minmax(0,1fr): una <select> con un'opzione lunga non allarga la colonna oltre la card */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field select { width: 100%; min-width: 0; text-overflow: ellipsis; }
/* Esito dell'invio SENZA JavaScript (/invia.php → ?inviato=1#inviato / ?errore=1#errore): visibile solo come :target */
.form-esito { display: none; margin: 0 0 20px; padding: 13px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; scroll-margin-top: 120px; background: #E7F4EE; border: 1px solid rgba(30,139,92,.35); color: #166C47; }
.form-esito:target { display: block; }
.form-esito:focus { outline: none; }
.form-esito--errore { background: #FCE8E6; border-color: rgba(192,57,43,.35); color: var(--danger); }
.form-esito a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--zinc); }
.form-field input, .form-field select, .form-field textarea { font: inherit; font-size: 15px; padding: 12px 16px; background: #fff; border: 1px solid var(--mist); border-radius: var(--r-sm); color: var(--carbon); transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,155,222,.12); }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-help { font-size: 12px; color: var(--zinc); margin-top: 4px; }
.consent-stack { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--mist); display: flex; flex-direction: column; gap: 12px; }
.consent-stack > .consent-title { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc); margin-bottom: 4px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.5; color: #3f3f46; }
.consent input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.consent .req { color: var(--danger); font-weight: 600; }
.consent .opt { color: var(--zinc); font-weight: 600; }
.form-card button[type="submit"] { width: 100%; margin-top: 24px; padding: 17px; font-size: 15px; }
.form-foot { margin: 14px 0 0; font-size: 12px; color: var(--zinc); text-align: center; line-height: 1.5; }
.form-field input.invalid, .form-field textarea.invalid, .form-field select.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 500; margin-top: 5px; line-height: 1.35; }
.consent input.invalid { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 4px; }
.consent-error { margin-top: 14px; padding: 11px 15px; background: #FCE8E6; border: 1px solid rgba(192,57,43,.35); border-radius: 10px; color: var(--danger); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0,1fr); } .form-row { grid-template-columns: minmax(0,1fr); } }

/* TEAM (chi siamo) */
.team { padding: clamp(56px, 8vw, 110px) 0; background: var(--fog); }
.team-intro { max-width: 720px; margin: 0 0 40px; }
.team-intro h2 { margin: 0; }
.team-group + .team-group { margin-top: clamp(48px, 6vw, 72px); }
.team-group > .eyebrow { display: block; margin-bottom: 6px; }
.team-group h2 { margin: 0 0 26px; font-size: clamp(26px, 3vw, 36px); }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: clamp(48px, 6vw, 72px); }
.leader-card { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--mist); border-radius: var(--r); padding: 26px; scroll-margin-top: 110px; }
.leader-card .leader-photo { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.leader-card h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.leader-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.leader-card p { font-size: 14.5px; color: var(--zinc); margin: 0 0 10px; line-height: 1.6; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.member-card { background: #fff; border: 1px solid var(--mist); border-radius: var(--r); padding: 22px 20px; text-align: left; transition: transform .3s var(--ease), box-shadow .3s ease; }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-avatar { width: 72px; height: 72px; border-radius: 12px; margin: 0 0 16px; display: grid; place-items: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--accent-deep)); }
.member-card img.member-photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; margin: 0 0 16px; display: block; }
.member-name { font-weight: 600; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.member-role { color: var(--zinc); font-size: 13.5px; margin-top: 4px; line-height: 1.4; }
.member-langs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.member-langs span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--mist); color: var(--zinc); padding: 4px 9px; border-radius: var(--r-pill); }
@media (max-width: 760px) { .leaders { grid-template-columns: 1fr; } .leader-card { flex-direction: column; } }

/* testo solo per lettori di schermo (regione live del form) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
