/* =====================================================================
   dafne.visada.it — stile
   Palette, tipografia e animazioni riprese da visada.it (Elementor kit 1441
   e pagina 1979). I widget del processo (vsd03 / vsd05 / vsd06) sono portati
   dal sito originale senza modifiche di comportamento.
   ===================================================================== */

:root {
  --navy: #000D1E;
  --navy-2: #000D15;
  --navy-3: #00080F;
  --red: #F03E2D;
  --red-dark: #D8321F;
  --amber: #FFB23F;
  --green: #34e0a1;
  --white: #FFFFFF;
  --muted: #AEB8C4;
  --text-2: #D5DCE3;
  --line: rgba(255, 255, 255, 0.08);
  --container: 1240px;
  --font-head: 'Kanit', sans-serif;
  --font-body: 'Kanit', sans-serif;
  --font-ui: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--white); text-decoration: none; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.1; }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.link { color: var(--amber); text-decoration: underline; }
.link:hover { color: var(--white); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 500 14px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.kicker--amber { color: var(--amber); font-size: 12px; letter-spacing: .12em; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 32px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--font-ui); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .55); }
.btn--ghost:hover { border-color: var(--red); background: rgba(240, 62, 45, .12); color: var(--white); }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn--wide { min-width: 300px; }

/* ---------- Header (come claimy.visada.it) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 13, 30, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.headbar {
  max-width: var(--container); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand:hover { color: var(--white); }
.brand__logo { width: 63px; height: 42px; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 600 25px/1 var(--font-head); letter-spacing: .01em; color: var(--white); }
.brand__sub { font-family: var(--font-ui); font-size: 11.5px; color: rgba(255, 255, 255, .64); letter-spacing: .03em; margin-top: 3px; }
.navlinks { display: flex; align-items: center; gap: 28px; font-family: var(--font-ui); font-size: 15px; }
.navlinks a { padding: 10px 0; border-bottom: 2px solid transparent; }
.navlinks a:hover { color: var(--white); border-bottom-color: var(--red); }
.headbar__right { display: flex; align-items: center; gap: 16px; }
.lang {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  font: 500 12px/1 var(--font-mono); letter-spacing: .08em;
}
.lang a { padding: 8px 12px; border-radius: 999px; color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.lang a[aria-current="page"] { background: var(--red); color: var(--white); }
.lang a:hover { color: var(--white); }

/* ---------- Hero (video di sfondo, come la home di visada.it) ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  background: var(--navy);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(360deg, #000D1E 0%, rgba(0, 13, 30, 0) 100%); }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 800px; width: 100%; }
.hero__row { display: flex; justify-content: center; align-items: flex-start; width: 100%; }
.hero__ai {
  display: block; font: 600 153px/1 var(--font-head); text-transform: uppercase; color: var(--white);
  margin: -18px 5px 0 0;
}
.hero__dafne { width: 21px; height: auto; margin: 11px 15px 0 0; flex: 0 0 auto; }
.hero__title { display: block; font: 600 60px/1.1 var(--font-head); text-transform: uppercase; color: var(--white); text-align: start; }
.hero__tagline { font: 300 50px/1.2 var(--font-head); font-style: italic; color: var(--white); text-align: center; width: 100%; margin-top: 20px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

/* ---------- Intro + contatore ---------- */
.intro { position: relative; z-index: 2; padding: 20px 0 60px; text-align: center; }
.intro__statement { font: 400 50px/1.2 var(--font-head); color: var(--white); }
.counter { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; margin-top: 30px; }
.counter__number-wrap { display: flex; justify-content: center; font: 600 69px/1 var(--font-head); color: var(--red); white-space: pre-wrap; }
.counter__title { font-size: 25px; line-height: 2.5; }

/* ---------- Intestazioni di sezione (titolo + linea rossa) ---------- */
.section-head { display: flex; align-items: center; gap: 20px; margin-top: 90px; }
.section-title { font: 400 60px/1.2 var(--font-head); color: var(--white); padding: 10px 0; white-space: nowrap; }
.section-line { flex: 1 1 auto; height: 1px; background: var(--red); margin-top: 13px; }

/* ---------- Come funziona: timeline del processo ---------- */
.how { padding-bottom: 40px; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; align-items: stretch; gap: 60px; }
.step__media { flex: 0 1 45%; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px; }
.step__axis { flex: 0 1 10%; min-height: 500px; position: relative; display: flex; align-items: center; justify-content: center; }
.step__text {
  flex: 0 1 45%; min-width: 0; position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
}
.step__text::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(at center center, var(--red) 0%, #000D1E 60%);
  opacity: .4;
}
.step__num { font: 400 23px/1.2 var(--font-head); color: var(--red); }
.step__title { font: 700 45px/1.1 var(--font-head); color: var(--white); }
.step__text-body { font-size: 17px; line-height: 1.6; }

/* linee verticali dell'asse (dal sito originale) */
.linea-verticale::before,
.linea-verticale-meta::before,
.linea-verticale-meta-alto::before {
  content: ""; position: absolute; left: 50%; width: 1px; background-color: var(--red); transform: translateX(-50%);
}
.linea-verticale::before { top: 0; height: 100%; }
.linea-verticale-meta::before { top: 50%; height: 50%; }
.linea-verticale-meta-alto::before { top: 0; height: 50%; }

/* rombo con icona animata (dal sito originale) */
.rombo-container {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; position: relative;
  background-color: var(--navy-2); border: 1px solid var(--red); border-radius: 20px;
  transform: rotate(45deg);
  box-shadow: 0 0 30px rgba(240, 62, 45, 0.8), 0 0 60px rgba(255, 178, 63, 0.9);
}
.rombo-container > * { transform: rotate(-45deg); }
.rombo-container img { width: 50px; height: 50px; }
.rombo-container--mobile { display: none; }

/* --- vsd03: foto + overlay Lottie + card dati (step 1-4), dal sito originale --- */
.vsd03-stage {
  position: relative; width: 100%; aspect-ratio: 1448 / 1086; overflow: hidden;
  border-radius: 24px; padding: 0; margin: 0; container-type: inline-size;
}
.vsd-phase-04 { aspect-ratio: 1139 / 663; }
.vsd03-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; }
.vsd03-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vsd03-lottie { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.vsd03-lottie svg { display: block; width: 100% !important; height: 100% !important; max-width: none !important; }
.vsd03-ui { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.vsd03-tag {
  position: absolute; left: 16.44%; top: 12.89%;
  padding: 0.32em 0.62em; border-radius: 3px; background: var(--red); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono); font-size: clamp(8px, 1.72cqi, 12px); font-weight: 500;
  line-height: 1.2; letter-spacing: 0.02em; white-space: nowrap;
  transform: translateY(-118%);
}
.vsd03-tag--phase-04 { left: 19.49%; top: 14.33%; }
.vsd03-card {
  position: absolute; left: 3.4%; bottom: 4.6%;
  width: min(42cqi, 340px); min-width: 196px;
  padding: clamp(11px, 2.5cqi, 17px) clamp(13px, 2.9cqi, 19px) clamp(12px, 2.7cqi, 18px);
  border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 5px;
  background: linear-gradient(158deg, rgba(34, 38, 44, 0.74), rgba(20, 23, 27, 0.60));
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(15px) saturate(1.15); -webkit-backdrop-filter: blur(15px) saturate(1.15);
  color: #fff;
}
.vsd03-card--compact { width: auto; min-width: 0; max-width: min(46cqi, 320px); }
.vsd03-card--right { left: auto; right: 3.4%; }
.vsd03-card__head { display: flex; align-items: center; gap: 0.62em; }
.vsd03-card__dot { width: 0.5em; height: 0.5em; flex: 0 0 auto; border-radius: 50%; background: var(--red); }
.vsd03-card__title {
  margin: 0; padding: 0; color: var(--red);
  font-family: var(--font-ui); font-size: clamp(10.5px, 2.35cqi, 14px); font-weight: 600;
  line-height: 1.2; letter-spacing: 0.085em; text-transform: uppercase; white-space: nowrap;
}
.vsd03-card__rule { height: 1px; margin: clamp(9px, 2cqi, 13px) 0 clamp(8px, 1.8cqi, 12px); background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05)); }
.vsd03-card__rows { display: grid; gap: clamp(5px, 1.25cqi, 9px); margin: 0; padding: 0; }
.vsd03-card__row { display: grid; grid-template-columns: minmax(0, 7.2em) 1fr; gap: 0.7em; align-items: baseline; }
.vsd03-card__label, .vsd03-card__value { margin: 0; padding: 0; line-height: 1.2; }
.vsd03-card__label { color: rgba(255, 255, 255, 0.55); font-family: var(--font-ui); font-size: clamp(8.5px, 1.85cqi, 11px); font-weight: 500; letter-spacing: 0.075em; text-transform: uppercase; white-space: nowrap; }
.vsd03-card__value { color: #fff; font-family: var(--font-mono); font-size: clamp(10.5px, 2.25cqi, 13.5px); font-weight: 400; white-space: nowrap; }

/* ---------- Quattro livelli ---------- */
.levels__intro { margin-top: 40px; max-width: 1100px; font-size: 17px; line-height: 1.6; }
.levels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.card {
  position: relative; overflow: hidden; padding: 40px 40px 56px;
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, #071829 0%, #030F1C 100%);
  display: flex; flex-direction: column; gap: 14px;
}
.card::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 80px; border-radius: 50%;
  background: var(--red); filter: blur(40px); opacity: .55; pointer-events: none;
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.card__icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--amber); background: rgba(240, 62, 45, .14); border: 1px solid rgba(240, 62, 45, .5); box-shadow: 0 0 24px rgba(240, 62, 45, .25); }
.card__level { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__title { font: 700 32px/1.1 var(--font-head); }
.card__subtitle { font: 500 18px/1.3 var(--font-head); color: var(--amber); }
.card__text { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.cta-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 56px; }

/* ---------- Perché DAFNE ---------- */
.why { margin-top: 112px; padding: 112px 0 96px; border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(240, 62, 45, .28) 0%, rgba(240, 62, 45, 0) 70%); }
.why__head { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.why__title { font: 700 56px/1.05 var(--font-head); }
.why__intro { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.phase {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 36px;
  display: flex; flex-direction: column; gap: 16px; background: rgba(255, 255, 255, .02);
}
.phase:nth-child(2) { border-color: rgba(240, 62, 45, .6); background: rgba(240, 62, 45, .06); box-shadow: 0 0 60px rgba(240, 62, 45, .18); }
.phase__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.phase__num { font: 700 56px/1 var(--font-head); color: rgba(255, 255, 255, .14); }
.phase:nth-child(2) .phase__num { color: rgba(240, 62, 45, .5); }
.phase__title { font: 700 28px/1.1 var(--font-head); }
.phase__subtitle { font: 500 16px/1.3 var(--font-head); color: var(--amber); }
.phase__text { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .04em;
  background: rgba(0, 13, 21, .85); border: 1px solid rgba(255, 255, 255, .14);
}
.chip--amber { color: var(--amber); border-color: rgba(255, 178, 63, .4); text-transform: uppercase; }
.why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; margin-top: 80px; }
.report-showcase { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.report-showcase__doc { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(-2deg); }
.report-showcase__doc img { width: 100%; height: 520px; object-fit: cover; object-position: top; }
.chip--float { position: absolute; right: -8px; bottom: 24px; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; background: #061627; border-color: rgba(255, 178, 63, .6); }
.chip__strong { color: var(--amber); text-transform: uppercase; }
.props { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.prop { display: flex; gap: 20px; align-items: flex-start; }
.prop__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: rgba(240, 62, 45, .14); border: 1px solid rgba(240, 62, 45, .5); display: flex; align-items: center; justify-content: center; color: var(--amber); }
.prop__title { font: 700 22px/1.2 var(--font-head); }
.prop__text { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* ---------- Card "DAFNE è un prodotto Visada" (come claimy.visada.it) ---------- */
.visada { padding: 32px 0 40px; }
.visada__card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.visada__logo { flex: 0 0 auto; width: 168px; height: 111px; }
.visada__body { flex: 1 1 420px; min-width: 0; }
.visada__title { margin-top: 10px; font: 600 clamp(26px, 2.8vw, 36px)/1.15 var(--font-head); }
.visada__text { margin-top: 10px; font-family: var(--font-ui); font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .74); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(240, 62, 45, .5); background: rgba(240, 62, 45, .08);
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { padding: 96px 0 40px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.faq__head { display: flex; flex-direction: column; gap: 20px; }
.faq__title { font: 700 56px/1.05 var(--font-head); }
.faq__intro { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.faq__list { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.faq__item { border-top: 1px solid rgba(255, 255, 255, .12); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 600 20px/1.3 var(--font-head); color: var(--white); min-height: 56px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--amber); }
.faq__plus { position: relative; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); transition: transform .2s ease; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--amber); transform: translate(-50%, -50%); }
.faq__plus::before { width: 14px; height: 2px; }
.faq__plus::after { width: 2px; height: 14px; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__a { padding: 0 56px 24px 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.faq__a p + p, .faq__a ul { margin-top: 10px; }
.faq__a ul { padding-left: 22px; }

/* ---------- Demo ---------- */
.demo { padding-bottom: 100px; background: radial-gradient(ellipse 55% 60% at 50% 100%, rgba(240, 62, 45, .45) 0%, rgba(240, 62, 45, 0) 65%); }
.demo__body { max-width: 880px; margin: 48px auto 0; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.demo__title { font: 500 44px/1.2 var(--font-head); }
.demo__text { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 720px; }
.demo__form { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.demo__row { display: flex; gap: 12px; flex-wrap: wrap; }
.field {
  flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--white); color: var(--navy-2); font: 400 16px var(--font-ui);
}
.field::placeholder { color: #5B6673; letter-spacing: .06em; }
.demo__row .btn { height: 56px; padding: 0 32px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-ui); font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: 0 0 auto; }
.consent a { color: var(--amber); text-decoration: underline; }
.demo__success { font: 500 18px/1.4 var(--font-head); color: var(--amber); }
.demo__error { font-family: var(--font-ui); font-size: 14px; line-height: 1.5; color: #FF8A7A; }
.demo__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.demo__or { font: 500 13px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.demo__or a { color: var(--white); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.brand--footer { gap: 12px; }
.brand--footer .brand__logo { width: 60px; height: 40px; }
.brand--footer .brand__name { font-size: 22px; }
.footer__tagline { margin-top: 14px; max-width: 340px; font-family: var(--font-ui); font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.footer__tagline a { color: var(--white); text-decoration: underline; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-ui); font-size: 14.5px; }
.footer__col a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__heading { margin: 0 0 4px; font: 700 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.footer__mail { font: 600 20px/1.2 var(--font-head); }
.social { display: flex; gap: 12px; margin-top: 6px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; }
.social a:hover { border-color: var(--red); }
.eu-banner { display: block; margin-top: 40px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: var(--navy-2); }
.eu-banner img { width: 100%; height: auto; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.footer__bottom .mono { font-size: 12px; letter-spacing: .06em; }
.site-footer--compact { padding: 40px 0; }
.footer__compact { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__copy { font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--font-ui); font-size: 14px; }

/* ---------- Pagina Progetto UE ---------- */
.eu-hero { padding: 80px 0 64px; background: radial-gradient(ellipse 50% 60% at 85% 0%, rgba(240, 62, 45, .4) 0%, rgba(240, 62, 45, 0) 65%); }
.eu-hero .container { display: flex; flex-direction: column; gap: 28px; }
.backlink { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eu-hero__title { font: 700 56px/1.05 var(--font-head); max-width: 900px; }
.eu-hero__subtitle { font: 500 24px/1.3 var(--font-head); color: var(--amber); max-width: 900px; }
.eu-hero__intro { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 900px; }
.eu-banner--static { margin-top: 12px; }
.eu-panels { border-top: 1px solid var(--line); padding: 72px 0; }
.eu-panels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 36px; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 16px; }
.panel__title { font: 700 28px/1.1 var(--font-head); }
.panel__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.panel__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.panel__list li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--red); }
.eu-data { border-top: 1px solid var(--line); padding: 24px 0 96px; }
.eu-data__title { font: 700 40px/1.1 var(--font-head); margin-bottom: 24px; }
.datalist { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.datalist__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 16px; line-height: 1.55; }
.datalist__row dt { font: 500 12px/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.datalist__row dd { margin: 0; }

/* =====================================================================
   Animazioni di ingresso (Elementor: animated / animated-slow / fadeIn*)
   ===================================================================== */
.js [data-anim] { visibility: hidden; }
.js [data-anim].animated { visibility: visible; }
.animated { animation-duration: 1.25s; animation-fill-mode: both; }
.animated-slow { animation-duration: 2s; }
.animated.no-motion { animation: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
.fadeIn { animation-name: fadeIn; }
.fadeInUp { animation-name: fadeInUp; }
.fadeInDown { animation-name: fadeInDown; }
.fadeInLeft { animation-name: fadeInLeft; }
.fadeInRight { animation-name: fadeInRight; }
@media (prefers-reduced-motion: reduce) {
  .animated { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .levels__grid, .why__grid, .faq__grid, .eu-panels__grid { grid-template-columns: minmax(0, 1fr); }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-line--desktop { display: none; }
}
@media (max-width: 900px) {
  .navlinks { display: none; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero { min-height: 80vh; padding: 100px 20px 60px; background: #000D1E url(/assets/img/hero-mobile.jpg) center / cover no-repeat; }
  .hero__video { display: none; }
  .hero__row { flex-wrap: wrap; justify-content: center; align-items: flex-start; row-gap: 20px; }
  .hero__ai { font-size: 94px; margin: 0 5px 0 0; }
  .hero__dafne { width: 13px; margin: 0; }
  .hero__title { flex-basis: 100%; font-size: clamp(26px, 9vw, 40px); text-align: center; }
  .hero__tagline { font-size: clamp(24px, 8vw, 35px); margin-top: 16px; }
  .hero__cta { margin-top: 32px; }
  .intro { margin-top: 0; padding: 20px 20px 60px; }
  .intro__statement { font-size: 35px; }
  .counter__number-wrap { font-size: 50px; }
  .counter__title { font-size: 22px; line-height: 1.5; }
  .section-head { margin-top: 60px; flex-direction: column; align-items: center; gap: 0; }
  .section-title { font-size: 50px; white-space: normal; text-align: center; }
  .section-line { width: 100%; margin-top: 0; }
  .step { flex-direction: column; gap: 20px; margin-top: 60px; }
  .step__axis { display: none; }
  .step__text { order: -1; flex-basis: auto; width: 100%; padding: 20px; align-items: center; text-align: center; }
  .step__media { flex-basis: auto; width: 100%; max-width: 500px; margin: 0 auto; }
  .step__title { font-size: 35px; }
  .rombo-container--mobile { display: flex; align-self: center; margin-bottom: 20px; }
  .card { padding: 32px 24px 48px; }
  .card__title { font-size: 28px; }
  .why { margin-top: 72px; padding: 72px 0 64px; }
  .why__title, .faq__title, .eu-hero__title { font-size: 38px; }
  .phase { padding: 28px; }
  .report-showcase__doc img { height: 420px; }
  .visada__logo { width: 120px; height: 79px; }
  .demo__title { font-size: 32px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .datalist__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .btn--wide { min-width: 0; width: 100%; }
}
/* Header compatto su telefono: tutto su una riga */
@media (max-width: 767px) {
  .headbar { flex-wrap: nowrap; padding: 8px 16px; gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand__logo { width: 46px; height: 31px; }
  .brand__name { font-size: 19px; }
  .brand__sub { font-size: 9.5px; margin-top: 2px; white-space: nowrap; }
  .headbar__right { gap: 8px; flex: 0 0 auto; }
  .lang { padding: 2px; }
  .lang a { padding: 7px 9px; min-height: 30px; }
  .lang a[aria-current="page"] { display: none; }
  .btn--small { min-height: 38px; padding: 0 12px; font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
}
@media (max-width: 360px) {
  .brand__sub { display: none; }
  .brand__logo { width: 40px; height: 27px; }
  .btn--small { padding: 0 10px; font-size: 11px; }
}

/* =====================================================================
   Widget "validazione umana" (vsd05) e "report" (vsd06), dal sito originale
   ===================================================================== */

.vsd05-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1139 / 663;
  overflow: hidden;
  background: #000D1E;
  container-type: inline-size;
}

.vsd05-compare {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  gap: 3%;
  box-sizing: border-box;
  padding: 6.5% 2% 0;
}

.vsd05-col {
  flex: 1 1 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.42s ease-out var(--column-delay),
    transform 0.42s cubic-bezier(.22, 1, .36, 1)
      var(--column-delay);
}

.vsd05-stage.is-in .vsd05-col {
  opacity: 1;
  transform: none;
}

.vsd05-caption {
  display: block;
  margin: 0 0 0.55em 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(7px, 1.3cqi, 10px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.vsd05-pane {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 4px;
  background: #000D1E;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
}

.vsd05-pane img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Riquadro del danno */
.vsd05-box {
  position: absolute;
  left: 7.85%;
  right: 7.85%;
  top: var(--box-top);
  bottom: var(--box-bottom);
  box-sizing: border-box;
  border: 3px solid #f03e2d;
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.975);
  transition:
    opacity 0.3s ease-out var(--box-delay),
    transform 0.3s cubic-bezier(.22, 1, .36, 1)
      var(--box-delay),
    border-color 0.5s ease-out 1.1s,
    box-shadow 0.5s ease-out 1.1s;
}

.vsd05-stage.is-in .vsd05-box {
  opacity: 1;
  transform: none;
  border-color: #34e0a1;
  box-shadow:
    0 0 0 1px rgba(52, 224, 161, 0.22),
    0 0 24px -5px rgba(52, 224, 161, 0.6);
}

/* Spunta nell&#8217;angolo */
.vsd05-check {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(13px, 2.5cqi, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #34e0a1;
  opacity: 0;
  transform: translate(45%, -45%) scale(0.4);
  transition:
    opacity 0.26s ease-out var(--check-delay),
    transform 0.36s cubic-bezier(.34, 1.56, .64, 1)
      var(--check-delay);
}

.vsd05-stage.is-in .vsd05-check {
  opacity: 1;
  transform: translate(45%, -45%) scale(1);
}

.vsd05-check::after {
  content: '';
  position: absolute;
  left: 33%;
  top: 19%;
  width: 27%;
  height: 47%;
  border: solid #0d1a14;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* Conferma dell&#8217;analista */
.vsd05-verdict {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  display: flex;
  align-items: center;
  gap: 0.72em;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(9px, 2.05cqi, 16px);
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 0.34s ease-out 1.9s,
    transform 0.34s cubic-bezier(.22, 1, .36, 1) 1.9s;
}

.vsd05-stage.is-in .vsd05-verdict {
  opacity: 1;
  transform: translateX(-50%);
}

.vsd05-verdict strong {
  color: #ffffff;
  font-weight: 600;
}

.vsd05-verdict-mark {
  position: relative;
  flex: 0 0 auto;
  width: clamp(14px, 2.7cqi, 23px);
  aspect-ratio: 1;
  border: 2px solid #34e0a1;
  border-radius: 50%;
}

.vsd05-verdict-mark::after {
  content: '';
  position: absolute;
  left: 31%;
  top: 16%;
  width: 27%;
  height: 48%;
  border: solid #34e0a1;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

@media (max-width: 767px) {
  .vsd05-stage {
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
  }

  .vsd05-compare {
    position: relative;
    inset: auto;
    flex-direction: column;
    gap: 18px;
    padding: 0;
  }

  .vsd05-col {
    width: 100%;
  }

  .vsd05-verdict {
    position: relative;
    left: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 16px;
    transform: translateY(6px);
  }

  .vsd05-stage.is-in .vsd05-verdict {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsd05-col,
  .vsd05-box,
  .vsd05-check,
  .vsd05-verdict {
    opacity: 1 !important;
    transition: none !important;
  }

  .vsd05-col,
  .vsd05-box {
    transform: none !important;
  }

  .vsd05-check {
    transform: translate(45%, -45%) scale(1) !important;
  }
}

.vsd06-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 0.78;
  overflow: hidden;
  background: #000D1E;
  container-type: inline-size;
}

.vsd06-doc {
  position: absolute;
  left: 8%;
  top: 3.6%;
  width: 84%;
  aspect-ratio: 1240 / 1755;
  overflow: hidden;
  border-radius: 2px;
  background: #ffffff;
  box-shadow:
    0 26px 60px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s cubic-bezier(.22, 1, .36, 1);
}

.vsd06-stage.is-in .vsd06-doc {
  opacity: 1;
  transform: none;
  animation: vsd06-jolt 0.16s ease-out 1.86s;
}

@keyframes vsd06-jolt {
  0% {
    transform: none;
  }

  35% {
    transform: translateY(2px) rotate(0.12deg);
  }

  100% {
    transform: none;
  }
}

.vsd06-doc__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* FIRMA */
.vsd06-sign {
  position: absolute;
  left: 33%;
  top: 68%;
  width: 32%;
  height: auto;
  overflow: visible;
}

.vsd06-sign path {
  fill: none;
  stroke: #1b2b52;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition:
    stroke-dashoffset 0.8s
    cubic-bezier(.4, 0, .35, 1)
    0.7s;
}

.vsd06-stage.is-in .vsd06-sign path {
  stroke-dashoffset: 0;
}

.vsd06-sign__rule {
  position: absolute;
  left: 31.5%;
  top: 77.2%;
  width: 39%;
  height: 1px;
  background: #3a4152;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform 0.45s
    cubic-bezier(.22, 1, .36, 1)
    1.44s;
}

.vsd06-stage.is-in .vsd06-sign__rule {
  transform: scaleX(1);
}

.vsd06-sign__caption {
  position: absolute;
  left: 31.5%;
  top: 78.3%;
  width: 44%;
  color: #39414f;
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.45;
  opacity: 0;
  transition: opacity 0.35s ease-out 1.58s;
}

.vsd06-stage.is-in .vsd06-sign__caption {
  opacity: 1;
}

.vsd06-sign__caption strong {
  display: block;
  color: #1e2530;
  font-size: clamp(6px, 1.32cqi, 11px);
  font-weight: 600;
}

.vsd06-sign__caption span {
  display: block;
  color: #6b7484;
  font-size: clamp(5px, 1.12cqi, 9.5px);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* TIMBRO */
.vsd06-stamp {
  position: absolute;
  left: 8%;
  top: 66.5%;
  width: 22.5%;
  aspect-ratio: 1.28;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 0.3em solid currentColor;
  border-radius: 0.3em;
  color: #1c9367;
  font-size: clamp(5.5px, 1.42cqi, 12px);
  mix-blend-mode: multiply;
  opacity: 0;
  transform: rotate(-9deg) scale(1.6);
  transition:
    opacity 0.16s ease-out 1.84s,
    transform 0.26s
    cubic-bezier(.18, 1.65, .5, 1)
    1.84s;
}

.vsd06-stage.is-in .vsd06-stamp {
  opacity: 0.88;
  transform: rotate(-9deg) scale(1);
}

.vsd06-stamp::before {
  content: '';
  position: absolute;
  inset: 0.4em;
  border: 0.11em solid currentColor;
  border-radius: 0.16em;
}

.vsd06-stamp__main {
  font-family:
    'Bergen Sans SemiCondensed',
    'IBM Plex Sans',
    sans-serif;
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}

.vsd06-stamp__separator {
  width: 52%;
  height: 0.13em;
  margin: 0.5em 0 0.45em;
  background: currentColor;
}

.vsd06-stamp__sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-align: center;
}

.vsd06-stamp__date {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

@media (max-width: 767px) {
  .vsd06-stage {
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsd06-doc {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .vsd06-sign path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .vsd06-sign__rule {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .vsd06-sign__caption {
    opacity: 1 !important;
    transition: none !important;
  }

  .vsd06-stamp {
    opacity: 0.88 !important;
    transform: rotate(-9deg) !important;
    transition: none !important;
  }
}
