/* ============================================================
   Other Human — Sistemi AI custom per aziende
   Tema: light, moderno
   ============================================================ */

:root {
  /* Palette */
  --bg: #ffffff;
  --bg-alt: #f8f9fd;
  --surface: #ffffff;
  --ink: #0e1330;
  --ink-soft: #4b5168;
  --ink-muted: #8a8fa3;
  --border: #e7e8f0;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --violet: #9333ea;
  --cyan: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --gradient: linear-gradient(120deg, #4f46e5 0%, #9333ea 100%);
  --primary-soft: #eef0fe;
  --violet-soft: #f5f0fe;

  /* Tipografia */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Misure */
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --shadow-sm: 0 1px 2px rgba(14, 19, 48, .05), 0 4px 12px rgba(14, 19, 48, .05);
  --shadow-md: 0 4px 8px rgba(14, 19, 48, .05), 0 16px 40px rgba(14, 19, 48, .09);
  --shadow-lg: 0 8px 16px rgba(79, 70, 229, .12), 0 24px 64px rgba(79, 70, 229, .16);

  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

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

section { scroll-margin-top: calc(var(--header-h) + 12px); }

::selection { background: rgba(79, 70, 229, .18); }

/* ---------- Utility ---------- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(79, 70, 229, .16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(79, 70, 229, .32);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(79, 70, 229, .42);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--white {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 10, 40, .22);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10, 10, 40, .3); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(14, 19, 48, .06);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo__mark { border-radius: 9px; box-shadow: 0 4px 12px rgba(79, 70, 229, .3); }
.logo__text em { font-style: normal; color: var(--primary); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta { padding: 10px 22px; font-size: .9rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.burger span {
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 90px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero__blob--1 {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, #c7d2fe 0%, rgba(199, 210, 254, 0) 70%);
}
.hero__blob--2 {
  width: 480px; height: 480px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, #e9d5ff 0%, rgba(233, 213, 255, 0) 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79, 70, 229, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 65%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

/* --- Mockup dashboard --- */
.hero__visual { position: relative; }

.dash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
  transition: transform .5s ease;
}
.hero__visual:hover .dash { transform: rotate(0deg); }

.dash__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dash__dot { width: 10px; height: 10px; border-radius: 50%; }
.dash__dot:nth-child(1) { background: #fca5a5; }
.dash__dot:nth-child(2) { background: #fcd34d; }
.dash__dot:nth-child(3) { background: #86efac; }
.dash__url {
  margin-left: 10px;
  font-size: .72rem;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 12px;
}

.dash__body {
  display: grid;
  grid-template-columns: 62px 1fr;
  min-height: 300px;
}

.dash__sidebar {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.dash__navitem {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #e6e8f4;
}
.dash__navitem.is-active { background: var(--gradient); box-shadow: 0 3px 8px rgba(79,70,229,.35); }

.dash__main { padding: 22px; display: flex; flex-direction: column; gap: 20px; }

.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash__kpi {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.dash__kpi small { display: block; font-size: .68rem; color: var(--ink-muted); margin-bottom: 3px; }
.dash__kpi strong { font-family: var(--font-display); font-size: 1.05rem; }

.dash__chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 130px;
}
.dash__chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(to top, #c7d2fe, var(--primary));
  opacity: .9;
  animation: growBar 1s cubic-bezier(.2,.8,.3,1) backwards;
}
.dash__chart span:nth-child(2n) { background: linear-gradient(to top, #e9d5ff, var(--violet)); }
.dash__chart span:nth-child(1) { animation-delay: .15s; }
.dash__chart span:nth-child(2) { animation-delay: .25s; }
.dash__chart span:nth-child(3) { animation-delay: .35s; }
.dash__chart span:nth-child(4) { animation-delay: .45s; }
.dash__chart span:nth-child(5) { animation-delay: .55s; }
.dash__chart span:nth-child(6) { animation-delay: .65s; }
.dash__chart span:nth-child(7) { animation-delay: .75s; }
.dash__chart span:nth-child(8) { animation-delay: .85s; }

@keyframes growBar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .85rem; }
.float-card small { font-size: .72rem; color: var(--ink-muted); }

.float-card__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-card__icon--green { background: #d1fae5; color: #059669; }
.float-card__icon--violet { background: var(--violet-soft); color: var(--violet); }

.float-card--1 { top: -22px; right: 8%; animation-delay: .4s; }
.float-card--2 { bottom: -24px; left: -4%; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Collaborazioni (striscia loghi) ---------- */
.clients {
  padding: 44px 0 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.clients__label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 30px;
}

.clients__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clients-scroll 45s linear infinite;
}
@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}

.clients__logo {
  height: 34px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-right: 72px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
}

/* ---------- Sezioni generiche ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }

/* Problema → Cosa facciamo: transizione più stretta */
.statement { padding-bottom: 36px; }
#cosa-facciamo { padding-top: 36px; }

.section__head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}
.section__head p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-top: 16px;
}

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Sottotitolo interno di sezione */
.subhead {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  text-align: center;
  margin: 72px 0 38px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, .3);
}

/* ---------- Statement (Il problema) ---------- */
.statement__inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.pain-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.pain-chips li {
  font-size: .92rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 9px 18px;
}

.statement__closing {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-top: 40px;
}

/* ---------- Card servizio (Cosa facciamo / La prova) ---------- */
.service { padding: 32px 28px; }

.service__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  color: var(--primary);
  background: var(--primary-soft);
  margin-bottom: 22px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.service:hover .service__icon {
  background: var(--gradient);
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(79, 70, 229, .35);
}

.service h3 { margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Casi studio ---------- */
.cases {
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.case {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 26px 20px;
  border-bottom: 1px solid var(--border);
  border-radius: 16px;
  transition: background .25s ease, box-shadow .25s ease;
}
.case:hover {
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.case__num {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.case__body h3 {
  font-size: 1.22rem;
  margin-bottom: 4px;
  transition: color .25s ease;
}
.case:hover .case__body h3 { color: var(--primary); }
.case__body p { color: var(--ink-soft); font-size: .95rem; max-width: 58ch; }

.case__tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ---------- Chi siamo (team) ---------- */
.team__card {
  padding: 34px 22px;
  text-align: center;
}

.team__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-sm);
}

.team__card h3 { font-size: 1.08rem; margin-bottom: 5px; }
.team__role {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Callout ---------- */
.callout {
  max-width: 860px;
  margin: 44px auto 0;
  background: var(--surface);
  border: 1px solid rgba(79, 70, 229, .22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gradient);
}
.callout p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.callout strong { font-weight: 700; }

/* ---------- Come lavoriamo (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.step__number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 9px; }
.step p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Per chi (qualificazione) ---------- */
.fit { padding: 34px 30px; }
.fit--yes { border-top: 4px solid var(--green); }
.fit--no { border-top: 4px solid var(--red); }

.fit h3 { margin-bottom: 22px; }

.fit ul { display: flex; flex-direction: column; gap: 16px; }
.fit li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--ink-soft);
  font-size: .97rem;
}

.fit__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fit--yes .fit__icon { background: #d1fae5; color: #059669; }
.fit--no .fit__icon { background: #fee2e2; color: #dc2626; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 20px 0 110px; }

.cta-banner__box {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  border-radius: 28px;
  padding: 72px 40px 60px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner__box::before,
.cta-banner__box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.cta-banner__box::before { width: 340px; height: 340px; top: -170px; left: -110px; }
.cta-banner__box::after { width: 260px; height: 260px; bottom: -140px; right: -80px; }

.cta-banner__box h2 { color: #fff; position: relative; }
.cta-banner__box > p {
  position: relative;
  max-width: 52ch;
  margin: 18px auto 32px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}
.cta-banner__box .btn { position: relative; }

.cta-banner__box .contact__form {
  position: relative;
  text-align: left;
}

.cta-banner__micro {
  position: relative;
  margin-top: 22px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .72);
}

/* ---------- Contatti ---------- */
.contact__form {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.field-row { display: flex; gap: 18px; }

.field--hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled { opacity: .65; cursor: wait; transform: none; }

.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.form-feedback {
  font-size: .92rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.4em;
}
.form-feedback.is-success { color: var(--green); }
.form-feedback.is-error { color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: 30px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--ink-muted);
}

.footer__row .logo { flex-shrink: 0; }

.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--ink-muted); transition: color .2s ease; }
.footer__legal a:hover { color: var(--primary); }

/* ---------- Animazioni reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger per griglie e liste */
.grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .cases .reveal:nth-child(2) { transition-delay: .07s; }
.grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .cases .reveal:nth-child(3) { transition-delay: .14s; }
.grid .reveal:nth-child(4), .steps .reveal:nth-child(4), .cases .reveal:nth-child(4) { transition-delay: .21s; }
.grid .reveal:nth-child(5), .steps .reveal:nth-child(5), .cases .reveal:nth-child(5) { transition-delay: .28s; }
.grid .reveal:nth-child(6), .cases .reveal:nth-child(6) { transition-delay: .35s; }
.cases .reveal:nth-child(7) { transition-delay: .42s; }

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

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 80px; }
  .hero__content { text-align: center; max-width: 640px; margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .hero__visual { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 18px 24px 26px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link { padding: 12px 6px; font-size: 1.02rem; border-radius: 10px; }
  .nav__link:hover { background: var(--primary-soft); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 10px; }

  .section { padding: 76px 0; }
  .statement { padding-bottom: 28px; }
  #cosa-facciamo { padding-top: 28px; }
  .grid--2 { grid-template-columns: 1fr; }

  .cta-banner__box { padding: 56px 26px 46px; }
}

@media (max-width: 640px) {
  .case {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 14px;
  }
  .case__num { display: none; }
  .case__tag { justify-self: start; margin-top: 6px; }
}

@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }

  .clients__logo { height: 26px; margin-right: 44px; }

  :root { --header-h: 60px; }

  .hero { padding: calc(var(--header-h) + 22px) 0 48px; }
  .hero__title { font-size: clamp(1.5rem, 6.7vw, 2.1rem); margin-bottom: 12px; }
  .hero__subtitle { font-size: .95rem; margin-bottom: 22px; }
  .hero__actions { gap: 10px; margin-bottom: 22px; }
  .hero__actions .btn { width: 100%; padding: 13px 22px; font-size: .95rem; }

  .cta-banner__box { padding: 48px 16px 40px; border-radius: 22px; }

  .field-row { flex-direction: column; gap: 18px; }
  .contact__form { padding: 26px 20px; }

  .footer__row { justify-content: center; text-align: center; }
}
