/* Font ospitati sul sito (nessuna richiesta a terzi). Inter e Outfit: SIL Open Font License. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
}

/* Zipla — sito vetrina. Palette e raggi ripresi dai token del gestionale. */
:root {
  --forest-950: #071a11;
  --forest-900: #0a2518;
  --forest-800: #10271b;
  --forest-700: #193426;
  --forest-600: #2f4b3b;
  --brand-700: #174f33;
  --brand-600: #1f6842;
  --brand-500: #287a4e;
  --brand-100: #d4e8db;
  --brand-50: #eaf4ed;
  --mint: #64c58b;
  --mint-strong: #74d69a;
  --mint-soft: #9be8b7;
  --canvas: #f5f8f5;
  --surface: #ffffff;
  --subtle: #edf2ee;
  --border: #d6e0d9;
  --text: #15201a;
  --muted: #5b675f;
  --on-dark: #f4f7f4;
  --on-dark-muted: #aab8af;
  --warn: #b7791f;
  --warn-soft: #fbf0d9;
  --info: #2f6fb3;
  --info-soft: #e4eefa;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: Outfit, Inter, ui-sans-serif, system-ui, sans-serif;
  --r-sm: 0.55rem;
  --r-md: 0.8rem;
  --r-lg: 1.05rem;
  --r-xl: 1.4rem;
  --shadow-sm: 0 1px 2px rgb(21 32 26 / 5%), 0 8px 24px rgb(21 32 26 / 4%);
  --shadow-md: 0 20px 55px rgb(21 32 26 / 13%);
  --shadow-float: 0 30px 80px rgb(3 14 9 / 45%);
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--mint);
  color: var(--forest-900);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

/* Tipografia */
h1,
h2,
h3,
.photo__quote {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 1.6rem + 4.6vw, 4.9rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  font-weight: 600;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-500);
}
.eyebrow--mint {
  color: var(--mint-strong);
}
.pulse {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.btn .ic {
  transition: transform 0.18s ease;
}
.btn:hover .ic {
  transform: translateX(3px);
}
.btn--lg {
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}
.btn--mint {
  background: var(--mint-strong);
  color: var(--forest-900);
  box-shadow: 0 8px 26px rgb(100 197 139 / 28%);
}
.btn--mint:hover {
  background: var(--mint-soft);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: rgb(255 255 255 / 28%);
  color: var(--on-dark);
}
.btn--ghost:hover {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 45%);
}
.btn--outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--brand-600);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link:hover .ic {
  transform: translateX(3px);
}
.link .ic {
  transition: transform 0.18s;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--on-dark);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}
.nav__logo img {
  height: 1.9rem;
  width: auto;
}
.logo-dark {
  display: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.93rem;
  font-weight: 500;
}
.nav__links a:not(.btn) {
  position: relative;
  padding: 0.4rem 0;
  opacity: 0.86;
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__links a:not(.btn):hover,
.nav__links a.is-current {
  opacity: 1;
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-current::after {
  transform: scaleX(1);
}
.nav__cta-mobile,
.nav__toggle {
  display: none;
}
.nav.is-solid {
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}
.nav.is-solid .logo-light {
  display: none;
}
.nav.is-solid .logo-dark {
  display: block;
}
.nav.is-solid .btn--mint {
  background: var(--forest-800);
  color: #fff;
  box-shadow: none;
}
.nav.is-solid .btn--mint:hover {
  background: var(--brand-600);
}
/* la «zipline»: avanzamento di lettura */
.zipline {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, var(--mint) var(--p, 0%), transparent var(--p, 0%));
  transition: opacity 0.25s;
}
.nav.is-solid .zipline {
  opacity: 1;
}
.zipline__dot {
  position: absolute;
  top: 50%;
  left: var(--p, 0%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.2rem) 0 0;
  background:
    radial-gradient(60rem 34rem at 82% 8%, rgb(40 122 78 / 55%), transparent 62%),
    linear-gradient(180deg, var(--forest-900), var(--forest-800) 60%, var(--forest-950));
  color: var(--on-dark);
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.hero__in {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 3.2rem;
}
.hero__copy {
  max-width: 52rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint-strong);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.07em;
  border-radius: 1em;
  background: currentColor;
  opacity: 0.55;
  transform-origin: left;
  animation: draw 1.1s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes draw {
  from {
    transform: scaleX(0);
  }
}
.hero__lead {
  max-width: 40rem;
  margin: 1.6rem auto 0;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--on-dark-muted);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin-top: 1.7rem;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}
.hero__ticks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero__ticks .ic {
  color: var(--mint);
  stroke-width: 2.4;
}
.hero__forest {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.9;
  pointer-events: none;
}

/* Mockup app */
.hero__stage {
  position: relative;
  width: min(100%, 66rem);
  margin-bottom: -5rem;
  text-align: left;
  animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
}
.hero__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--forest-900);
  box-shadow:
    var(--shadow-float),
    0 0 0 1px rgb(255 255 255 / 14%);
  pointer-events: none;
}
.app {
  display: grid;
  grid-template-columns: 13.5rem 1fr;
  border-radius: var(--r-xl);
  background: var(--canvas);
  color: var(--text);
  box-shadow:
    var(--shadow-float),
    0 0 0 1px rgb(255 255 255 / 10%);
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.35;
}
.app__side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 0.75rem 7rem;
  background: var(--forest-800);
  color: var(--on-dark);
  overflow: hidden;
}
.app__logo {
  height: 1.55rem;
  width: auto;
  margin: 0.1rem auto 0.9rem;
}
.app__sec {
  margin: 0.7rem 0.6rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #82958a;
}
.app__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-sm);
  color: var(--on-dark-muted);
  font-weight: 500;
  white-space: nowrap;
}
.app__item.is-active {
  background: var(--mint-strong);
  color: #0b2417;
  font-weight: 600;
}
.app__forest {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
}
.app__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 3.2rem;
  padding: 0 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.app__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 17rem;
  margin-right: auto;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.app__bell {
  position: relative;
  color: var(--muted);
  font-size: 1.05rem;
}
.app__bell i {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9654f;
  border: 2px solid #fff;
}
.app__avatar,
.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.66rem;
  font-weight: 700;
}
.app__body {
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
}
.app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app__head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.app__head small,
.kpi span,
.timers small,
.row small,
.mock__meta {
  color: var(--muted);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.live .pulse {
  background: var(--brand-500);
}
.live .pulse::after {
  background: var(--brand-500);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.kpi,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.8rem 0.9rem;
}
.kpi small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.kpi b {
  display: block;
  margin: 0.1rem 0;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi span {
  font-size: 0.7rem;
}
.kpi--brand {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: #fff;
}
.kpi--brand small,
.kpi--brand span {
  color: var(--on-dark-muted);
}
.kpi--brand b {
  color: var(--mint-strong);
}
.app__cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.7rem;
}
.card__t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag--ok {
  background: var(--brand-100);
  color: var(--brand-700);
}
.tag--warn {
  background: var(--warn-soft);
  color: #8a5a12;
}
.tag--info {
  background: var(--info-soft);
  color: var(--info);
}
.tag--mute {
  background: var(--subtle);
}
.timers li,
.row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--subtle);
}
.timers li > span:nth-child(2),
.row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.timers b,
.row b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timers small,
.row small {
  display: block;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: var(--subtle);
}
.t--warn {
  background: var(--warn-soft);
  color: #8a5a12;
}
.t--over {
  background: #fbe4df;
  color: #a33a26;
}
.bars li {
  display: grid;
  grid-template-columns: 4.6rem 1fr 1.4rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0;
}
.bars i {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--subtle);
  overflow: hidden;
}
.bars i::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--v);
  border-radius: inherit;
  background: var(--c);
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 96%);
  color: var(--text);
  box-shadow: 0 18px 50px rgb(3 14 9 / 35%);
  font-size: 0.8rem;
  line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float b,
.float small {
  display: block;
}
.float small {
  color: var(--muted);
}
.float__ic {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 1rem;
}
.float__ic--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.float--a {
  bottom: 9%;
  left: -6.5rem;
}
.float--b {
  right: -6rem;
  top: -1.7rem;
  animation-delay: -3s;
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* Striscia */
.strip {
  padding: 8rem 0 3rem;
  background: var(--canvas);
}
.strip__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.strip__in div {
  padding-left: 1.1rem;
  border-left: 2px solid var(--mint);
}
.strip b {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.strip span {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Sezioni */
.section {
  padding: clamp(4.5rem, 3rem + 6vw, 8rem) 0;
}
.head {
  max-width: 46rem;
  margin-bottom: 3.2rem;
}
.head--center {
  margin-inline: auto;
  text-align: center;
}
.head__sub {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.intro {
  padding-top: 3.5rem;
}
.intro__in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.intro__text {
  display: grid;
  gap: 1.1rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.intro__text strong {
  color: var(--text);
}

/* Flusso */
.flow {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.flow__grid {
  display: grid;
  grid-template-columns: 19rem 1fr;
  gap: 2rem;
  align-items: start;
}
.steps {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}
.steps::before {
  content: '';
  position: absolute;
  left: 2.02rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: var(--border);
}
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: none;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.step:hover {
  background: var(--canvas);
}
.step__n {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.step b {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
}
.step small {
  color: var(--muted);
  font-size: 0.85rem;
}
.step.is-active {
  background: var(--brand-50);
  border-color: var(--brand-100);
}
.step.is-active .step__n {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--mint-strong);
}
.step.is-done .step__n {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--forest-900);
}
.panels {
  min-width: 0;
}
.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 27rem;
  padding: 2.5rem;
  border-radius: var(--r-xl);
  background: var(--canvas);
  border: 1px solid var(--border);
}
.panel > * {
  min-width: 0;
}
.panel.is-active {
  animation: fade 0.45s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.panel__copy h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
}
.panel__copy p {
  margin: 0.9rem 0 1.3rem;
  color: var(--muted);
}
.ticks {
  display: grid;
  gap: 0.6rem;
}
.ticks li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.ticks .ic {
  margin-top: 0.22em;
  padding: 2px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
  stroke-width: 2.6;
}
.mock {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  line-height: 1.35;
  transform: rotate(1.2deg);
}
.mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.mock__top b {
  min-width: 0;
  font-family: var(--display);
  font-size: 1.02rem;
}
.mock__meta {
  font-size: 0.76rem;
  margin-top: -0.35rem;
}
.chip {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}
.mock__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
}
.mock__foot b {
  color: var(--text);
  font-size: 1rem;
}
.mock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border-radius: var(--r-sm);
  background: var(--brand-500);
  color: #fff;
  font-weight: 600;
}
.lines {
  display: grid;
  gap: 0.5rem;
}
.lines i {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--subtle);
}
.sign {
  padding: 0.7rem 0.9rem 0.3rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--forest-800);
}
.sign small {
  color: var(--muted);
  font-size: 0.72rem;
}
.sign__path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}
.panel.is-active .sign__path {
  animation: sign 1.6s 0.3s ease-out forwards;
}
@keyframes sign {
  to {
    stroke-dashoffset: 0;
  }
}
.people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem 0;
}
.av--on {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.75rem;
  box-shadow: 0 0 0 2px var(--mint);
}
.av--ghost {
  width: auto;
  height: 2.5rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
}
.courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.course {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: var(--r-sm);
}
.course b,
.course small {
  display: block;
}
.course small {
  color: var(--muted);
  font-size: 0.72rem;
}
.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.55rem;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.checks {
  display: grid;
  gap: 0.15rem;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--subtle);
  font-weight: 500;
}
.checks .ic {
  padding: 3px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest-900);
  stroke-width: 3;
  font-size: 1rem;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tile {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
}
.tile h3 {
  margin: 1.1rem 0 0.5rem;
}
.tile p {
  color: var(--muted);
  font-size: 0.95rem;
}
.tile__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 1.25rem;
}
.tile--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}
.tile--wide > * {
  flex: 1;
  min-width: 0;
}
.tile--dark {
  background:
    radial-gradient(24rem 16rem at 100% 0%, rgb(40 122 78 / 55%), transparent 70%),
    var(--forest-800);
  border-color: var(--forest-800);
  color: var(--on-dark);
}
.tile--dark p {
  color: var(--on-dark-muted);
}
.tile--dark .tile__ic {
  background: rgb(255 255 255 / 10%);
  color: var(--mint-strong);
}
.flowviz {
  display: grid;
  gap: 0.75rem;
}
.flowviz div {
  display: grid;
  grid-template-columns: 5.4rem 2rem 1fr;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.flowviz small {
  color: var(--on-dark-muted);
}
.flowviz b {
  font-family: var(--display);
  font-size: 1.1rem;
  text-align: right;
}
.flowviz i,
.chart i {
  background: var(--mint);
  border-radius: 999px;
}
.flowviz i {
  height: 0.6rem;
  width: var(--v);
  transform-origin: left;
}
.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: 8.5rem auto;
  align-items: end;
  gap: 0.35rem 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.chart i {
  height: var(--v);
  border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, var(--mint), var(--brand-500));
  transform-origin: bottom;
}
.reveal .flowviz i,
.reveal .chart i {
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.js .reveal:not(.is-in) .flowviz i {
  transform: scaleX(0);
}
.js .reveal:not(.is-in) .chart i {
  transform: scaleY(0);
}

/* Foto */
.photo {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(78vh, 42rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.photo > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 35%;
}
.photo__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgb(6 30 19 / 92%) 0%, rgb(6 30 19 / 45%) 45%, rgb(6 30 19 / 10%) 100%),
    linear-gradient(90deg, rgb(6 30 19 / 55%), transparent 65%);
}
.photo__in {
  padding: 5rem 0 4.5rem;
}
.photo__quote {
  max-width: 46rem;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  font-weight: 600;
}
.photo__sub {
  max-width: 34rem;
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: rgb(255 255 255 / 80%);
}

/* Sicurezza */
.safety__in {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}
.safety__in > div {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.safety__list {
  display: grid;
  gap: 1rem;
}
.safety__list li {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}
.safety__list h3 {
  margin-bottom: 0.35rem;
}
.safety__list p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Piani */
.plans {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--r-xl);
  background: var(--canvas);
  border: 1px solid var(--border);
}
.plan h3 {
  font-size: 1.6rem;
}
.plan__for {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 3em;
}
.plan__price {
  margin: 1.2rem 0 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan__price small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.plan .ticks {
  margin-bottom: 2rem;
}
.plan .btn {
  margin-top: auto;
}
.plan--hot {
  background:
    radial-gradient(22rem 14rem at 100% 0%, rgb(40 122 78 / 60%), transparent 70%),
    var(--forest-800);
  border-color: var(--forest-800);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.8rem);
}
.plan--hot .plan__for,
.plan--hot .plan__price small {
  color: var(--on-dark-muted);
}
.plan--hot .plan__price {
  border-color: rgb(255 255 255 / 15%);
}
.plan--hot .ticks .ic {
  background: rgb(255 255 255 / 12%);
  color: var(--mint-strong);
}
.plan__badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--mint-strong);
  color: var(--forest-900);
  font-size: 0.72rem;
  font-weight: 700;
}

/* FAQ */
.faq__in {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.faq__list {
  display: grid;
  gap: 0.7rem;
}
details {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
details[open] {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-sm);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.3rem;
  border-right: 2px solid var(--brand-500);
  border-bottom: 2px solid var(--brand-500);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
details p {
  padding: 0 1.3rem 1.3rem;
  color: var(--muted);
}

/* CTA */
.cta {
  position: relative;
  padding: clamp(4.5rem, 3rem + 6vw, 7.5rem) 0 clamp(7rem, 5rem + 8vw, 11rem);
  background:
    radial-gradient(50rem 30rem at 10% 0%, rgb(40 122 78 / 50%), transparent 65%),
    linear-gradient(180deg, var(--forest-800), var(--forest-950));
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.cta__in {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
.cta__mark {
  width: 3.6rem;
  height: auto;
  margin-bottom: 1.6rem;
}
.cta__copy p {
  margin-top: 1.1rem;
  max-width: 30rem;
  font-size: 1.1rem;
  color: var(--on-dark-muted);
}
.cta .hero__ticks {
  justify-content: flex-start;
}
.form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--r-xl);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 14%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}
.opt {
  font-weight: 400;
  opacity: 0.7;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(6 30 19 / 55%);
  color: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form textarea {
  resize: vertical;
}
.form select option {
  color: var(--text);
  background: #fff;
}
.form ::placeholder {
  color: rgb(255 255 255 / 38%);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgb(100 197 139 / 25%);
}
.form .is-invalid {
  border-color: #f08a76;
}
.form__note {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  text-align: center;
}
.form__note.is-error {
  color: #f6a595;
}

/* Footer */
.footer {
  padding: 2.2rem 0;
  background: var(--forest-950);
  color: var(--on-dark-muted);
  font-size: 0.88rem;
}
.footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.5rem;
}
.footer img {
  height: 1.6rem;
  width: auto;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.footer a:hover {
  color: #fff;
}
.footer p {
  margin-left: auto;
}

/* Comparsa allo scroll (solo con JS attivo) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .tile.reveal.is-in:hover {
  transform: translateY(-4px);
  transition-delay: 0ms;
}

/* Responsive */
@media (max-width: 84rem) {
  .float {
    display: none;
  }
}
@media (max-width: 70rem) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow__grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(9.5rem, 1fr);
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar {
    display: none;
  }
  .steps::before {
    display: none;
  }
  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border-color: var(--border);
  }
  .step small {
    display: none;
  }
}
@media (max-width: 56rem) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1.5rem;
    background: var(--forest-800);
    color: var(--on-dark);
    font-size: 1.1rem;
    box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
    transform: translateY(-110%);
    visibility: hidden;
    transition:
      transform 0.28s ease,
      visibility 0.28s;
    z-index: -1;
  }
  .nav.is-open .nav__links {
    transform: none;
    visibility: visible;
  }
  .nav.is-open {
    background: var(--forest-800);
    color: var(--on-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.is-open .logo-light {
    display: block;
  }
  .nav.is-open .logo-dark {
    display: none;
  }
  .nav__links a:not(.btn) {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
  }
  .nav__links a:not(.btn)::after {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__cta-mobile {
    display: inline-flex;
    margin-top: 1.2rem;
    min-height: 3.1rem;
    background: var(--mint-strong) !important;
    color: var(--forest-900) !important;
  }
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .app__side {
    display: none;
  }
  .intro__in,
  .safety__in,
  .faq__in,
  .cta__in {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .safety__in > div {
    position: static;
  }
  .panel {
    grid-template-columns: 1fr;
    padding: 1.6rem;
    min-height: 0;
  }
  .mock {
    transform: none;
  }
  .plans__grid {
    grid-template-columns: 1fr;
  }
  .plan--hot {
    transform: none;
  }
  .plan__for {
    min-height: 0;
  }
  .strip__in {
    grid-template-columns: 1fr 1fr;
  }
  .tile--wide {
    flex-direction: column;
    align-items: stretch;
  }
  .footer p {
    margin-left: 0;
  }
}
@media (max-width: 40rem) {
  .wrap {
    width: min(100% - 2rem, 74rem);
  }
  .hero {
    padding-top: calc(var(--nav-h) + 2.5rem);
  }
  .hero__in {
    gap: 2.8rem;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero__stage {
    margin-bottom: -3rem;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .app__cols {
    grid-template-columns: 1fr;
  }
  .app__body {
    padding: 0.8rem;
  }
  .app__head small {
    display: none;
  }
  .strip {
    padding-top: 5.5rem;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .tile--wide {
    grid-column: auto;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 1.3rem;
  }
  .courses {
    grid-template-columns: 1fr 1fr;
  }
  .chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .sign__path {
    stroke-dashoffset: 0;
  }
}

/* ---------- Hero v2: testo a sinistra, animazione a schede a destra ---------- */
.hero {
  padding-bottom: 5rem;
  overflow-x: clip;
}
.hero__in {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: center;
  justify-items: start;
  text-align: left;
  gap: 2rem;
}
.hero__copy {
  max-width: 36rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.1rem + 3.9vw, 4.75rem);
}
.hero__lead {
  max-width: 30rem;
  margin-inline: 0;
}
.hero__cta {
  justify-content: flex-start;
}
.hero__stage {
  width: 100%;
  margin-bottom: 0;
}
.strip {
  padding-top: 4rem;
}
.hero__now {
  display: grid;
  gap: 0.3rem;
  margin-top: 2.4rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--forest-600);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.hero__now small,
.zs__cap small {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-strong);
}
.hero__now b,
.zs__cap b {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero__now.is-swap,
.zs__cap.is-swap {
  opacity: 0;
  transform: translateY(8px);
}

/* Palco: tutte le misure sono multipli di --u, così scala con la larghezza */
.zs {
  container-type: inline-size;
  width: 100%;
  max-width: 43.125rem;
  margin-inline: auto;
}
.zs__fallback {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}
.zs__in {
  --u: calc(100cqw / 690);
  position: relative;
  height: calc(700 * var(--u));
  text-align: left;
}
.zs__cable {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
}
.zs__cable--m {
  display: none;
}
.zs__stop {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u) - 22px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 16px 4px 0;
  border: 0;
  background: none;
  color: #9fb0a6;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.4s;
}
.zs__stop i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3f6a53;
  box-shadow: 0 0 0 4px var(--forest-800);
  transition: background 0.4s;
}
.zs__stop.is-on,
.zs__stop:hover {
  color: var(--mint-strong);
}
.zs__stop.is-on i,
.zs__stop.is-done i {
  background: var(--mint-strong);
}
.zs__dot {
  position: absolute;
  z-index: 5;
  left: calc(var(--dx) * var(--u));
  top: calc(var(--dy) * var(--u));
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: var(--mint-strong);
  box-shadow:
    0 0 0 5px var(--forest-800),
    0 0 26px rgb(116 214 154 / 70%);
  pointer-events: none;
  transition:
    left 0.8s cubic-bezier(0.5, 0, 0.2, 1),
    top 0.8s cubic-bezier(0.5, 0, 0.2, 1);
}
.zs__cap {
  display: none;
}
.zs__shots {
  position: absolute;
  left: calc(76 * var(--u));
  top: calc(176 * var(--u));
  width: calc(600 * var(--u));
  height: calc(362 * var(--u));
  perspective: 1400px;
}
.zs__shot {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: calc(14 * var(--u));
  overflow: hidden;
  background: var(--canvas);
  box-shadow:
    0 calc(40 * var(--u)) calc(90 * var(--u)) rgb(3 14 9 / 55%),
    0 0 0 1px rgb(255 255 255 / 14%);
  transform: translate3d(calc(86 * var(--u)), calc(-40 * var(--u)), -170px) rotateY(-9deg) rotateX(3deg)
    scale(0.92);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s ease;
}
.zs__shot::before {
  content: '';
  display: block;
  height: calc(24 * var(--u));
  background: var(--forest-900);
}
.zs__shot img {
  display: block;
  width: 100%;
  height: auto;
}
.zs__shot.is-next {
  z-index: 1;
  opacity: 0.32;
}
.zs__shot.is-prev {
  transform: translate3d(calc(-120 * var(--u)), calc(28 * var(--u)), -160px) rotateY(-28deg) rotateX(3deg)
    scale(0.9);
}
.zs__shot.is-on {
  z-index: 3;
  transform: rotateY(-9deg) rotateX(3deg);
  opacity: 1;
}
.zs__crops {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: calc(36 * var(--u));
  width: calc(460 * var(--u));
  height: calc(320 * var(--u));
  pointer-events: none;
  animation: zbob 7s ease-in-out infinite;
}
.zs__crop {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(var(--w) * var(--u));
  aspect-ratio: var(--ar);
  border-radius: calc(16 * var(--u));
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 calc(4 * var(--u)) var(--mint-strong),
    0 calc(26 * var(--u)) calc(60 * var(--u)) rgb(3 14 9 / 55%);
  transform-origin: left bottom;
  transform: translateY(calc(48 * var(--u))) scale(0.8);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease;
}
.zs__crop.is-on {
  transform: none;
  opacity: 1;
  transition-delay: 0.28s;
}
.zs__crop img {
  position: absolute;
  max-width: none;
  width: calc(100% / var(--cw));
  height: auto;
  left: calc(-100% * var(--cx) / var(--cw));
  top: calc(-100% * var(--cy) / var(--ch));
}
.zs__chips {
  position: absolute;
  z-index: 4;
  right: 0;
  top: calc(142 * var(--u));
  animation: zbob 6s ease-in-out -3s infinite;
}
.zs__chip {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  border-radius: 1rem;
  background: var(--forest-700);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 16%),
    0 20px 50px rgb(3 14 9 / 50%);
  white-space: nowrap;
  transform: translateX(52px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease;
}
.zs__chip.is-on {
  transform: none;
  opacity: 1;
  transition-delay: 0.46s;
}
.zs__ic {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: var(--mint-strong);
  color: var(--forest-900);
  font-size: 1.25rem;
}
.zs__chip.is-warn .zs__ic {
  background: #f3c26b;
  color: #3a2503;
}
.zs__chip small {
  display: block;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}
.zs__chip b {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}
@keyframes zbob {
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 70rem) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 3rem;
  }
  .hero__copy {
    max-width: 44rem;
  }
  .hero__lead {
    max-width: 36rem;
    margin-inline: auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__now {
    display: none;
  }
}

/* Telefono: il protagonista è il ritaglio leggibile, la schermata intera resta dietro */
@media (max-width: 40rem) {
  .hero {
    padding-bottom: 2.5rem;
  }
  .hero__in {
    gap: 2.2rem;
  }
  .zs__in {
    --u: calc(100cqw / 350);
    height: calc(488 * var(--u));
  }
  .zs__cable--d {
    display: none;
  }
  .zs__cable--m {
    display: block;
  }
  .zs__stop {
    left: calc(var(--xm) * var(--u));
    top: calc(var(--ym) * var(--u) - 22px);
    padding: 17px 16px 0;
  }
  .zs__stop span {
    display: none;
  }
  .zs__stop i {
    width: 10px;
    height: 10px;
  }
  .zs__dot {
    left: calc(var(--dxm) * var(--u));
    top: calc(var(--dym) * var(--u));
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
  }
  .zs__cap {
    display: grid;
    gap: 0.2rem;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(72 * var(--u));
    text-align: center;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }
  .zs__cap small {
    font-size: 0.72rem;
  }
  .zs__cap b {
    font-size: 1.12rem;
  }
  .zs__shots {
    left: calc(25 * var(--u));
    top: calc(140 * var(--u));
    width: calc(300 * var(--u));
    height: calc(187 * var(--u));
    perspective: 900px;
  }
  .zs__shot {
    border-radius: calc(10 * var(--u));
    transform: translate3d(calc(22 * var(--u)), calc(-20 * var(--u)), -110px) rotateX(7deg) scale(0.94);
  }
  .zs__shot::before {
    height: calc(18 * var(--u));
  }
  .zs__shot.is-prev {
    transform: translate3d(calc(-70 * var(--u)), calc(12 * var(--u)), -90px) rotateY(-22deg) rotateX(7deg)
      scale(0.9);
  }
  .zs__shot.is-on {
    transform: rotateX(7deg);
  }
  .zs__crops {
    left: calc(4 * var(--u));
    bottom: calc(26 * var(--u));
    width: calc(322 * var(--u));
    height: calc(220 * var(--u));
  }
  .zs__crop {
    width: calc(var(--wm) * var(--u));
    border-radius: calc(14 * var(--u));
    box-shadow:
      0 0 0 calc(3 * var(--u)) var(--mint-strong),
      0 calc(20 * var(--u)) calc(44 * var(--u)) rgb(3 14 9 / 60%);
  }
  .zs__chips {
    top: calc(134 * var(--u));
  }
  .zs__chip {
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.8rem;
    transform: translateX(36px);
  }
  .zs__ic {
    display: none;
  }
  .zs__chip small {
    font-size: 0.72rem;
  }
  .zs__chip b {
    font-size: 1rem;
  }
}

/* ---------- Titolo hero: la riga piccola fa parte dell'H1 ---------- */
.hero h1 .eyebrow {
  display: flex;
  width: fit-content;
  font-family: var(--font);
  line-height: 1.6;
}

/* ---------- Modulo demo: privacy, campo trappola, conferma ---------- */
.form .form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--on-dark);
  cursor: pointer;
}
.form .form__check input {
  flex: none;
  width: 1.3rem;
  min-height: 0;
  height: 1.3rem;
  margin: 0.1rem 0 0;
  padding: 0;
  accent-color: var(--mint-strong);
}
.form .form__check input.is-invalid {
  outline: 2px solid #f08a76;
  outline-offset: 2px;
}
.form__check a {
  color: var(--mint-strong);
  text-decoration: underline;
}
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.form--done {
  justify-items: center;
  align-content: center;
  min-height: 22rem;
  text-align: center;
}
.form--done h3 {
  font-size: 1.6rem;
}
.form--done p {
  max-width: 24rem;
  color: var(--on-dark-muted);
}
.form__ok {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--mint-strong);
  color: var(--forest-900);
  font-size: 1.8rem;
}

/* ---------- Footer: riga legale ---------- */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.82rem;
}
.footer .footer__legal p {
  margin: 0;
}
.footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.footer__legal a,
.footer__legal button {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal button:hover {
  color: #fff;
}

/* ---------- Banner consenso statistiche ---------- */
.consenso {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 60rem;
  margin-inline: auto;
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.consenso > div:first-child {
  flex: 1 1 22rem;
}
.consenso h2 {
  font-size: 1.15rem;
}
.consenso p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.consenso a {
  font-size: 0.92rem;
  color: var(--brand-600);
  text-decoration: underline;
}
.consenso__azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Pagine legali ---------- */
.nav--page {
  position: sticky;
}
.nav--page .nav__in > .btn {
  margin-left: auto;
}
.page-hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(50rem 26rem at 85% 0%, rgb(40 122 78 / 50%), transparent 65%),
    linear-gradient(180deg, var(--forest-900), var(--forest-800));
  color: var(--on-dark);
}
.page-hero h1 {
  max-width: 44rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
}
.page-hero p:not(.eyebrow) {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--on-dark-muted);
}
.prosa {
  max-width: 46rem;
  padding: 3rem 0 5rem;
}
.prosa h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.5rem;
}
.prosa p,
.prosa ul,
.prosa dl {
  margin: 0 0 1rem;
}
.prosa ul {
  padding-left: 1.3rem;
  list-style: disc;
}
.prosa li {
  margin-bottom: 0.4rem;
}
.prosa a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prosa code {
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--subtle);
  font-size: 0.9em;
}
.prosa dl {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem 1rem;
}
.prosa dt {
  color: var(--muted);
}
.prosa dd {
  margin: 0;
  font-weight: 600;
}
.prosa .btn {
  margin-bottom: 1rem;
  text-decoration: none;
}
.errore {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.2rem;
  padding: 4rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, var(--forest-900), var(--forest-800));
  color: var(--on-dark);
}
.errore p {
  max-width: 30rem;
  color: var(--on-dark-muted);
}

@media (max-width: 70rem) {
  .hero h1 .eyebrow {
    margin-inline: auto;
  }
}
@media (max-width: 40rem) {
  .prosa dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .prosa dd {
    margin-bottom: 0.7rem;
  }
  .consenso__azioni,
  .consenso__azioni .btn {
    width: 100%;
  }
}
