/* =========================================================================
   Aleria Networks — foglio di stile unico
   1. Token          6. Blocchi di contenuto
   2. Reset e base   7. Novità, lavoro, prezzi
   3. Tipografia     8. Form e configuratore
   4. Header e menu  9. Footer e chiusura
   5. Hero          10. Animazioni, responsive, stampa
   ========================================================================= */

/* 0. Font -------------------------------------------------------------- *
   Space Grotesk (SIL Open Font License 1.1) ospitato in locale: nessuna
   richiesta a server di terze parti, quindi nessun dato del visitatore esce
   dal nostro hosting. Vedi assets/fonts/OFL.txt.
   È il file variabile: un solo download copre tutti i pesi da 300 a 700.   */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Token ------------------------------------------------------------- */

:root {
  /* palette */
  --ink: #03120d;
  --ink-2: #071c15;
  --ink-3: #0d2b22;
  --paper: #ffffff;
  --tint: #f1f6f4;
  --line-light: #e1eae6;
  --text: #071c15;
  --text-muted: #53685f;
  --text-subtle: #82938b;

  /* Rampa del brand. --brand è il colore aziendale: essendo molto luminoso
     (contrasto 1.9:1 sul bianco) si usa come pieno o come accento su fondo
     scuro, mai come colore di un testo su fondo chiaro. Per quello c'è
     --green-700, che sul bianco arriva a 5.3:1. */
  --green-900: #05241a;
  --green-800: #07543c;
  --green-700: #0a7a57;
  --brand: #19d898;
  --brand-ink: #04140f;
  --green-400: #35e0a8;
  --green-300: #63e9bb;
  --green-200: #a3f2d6;
  --green-100: #d3fbef;

  /* variabili semantiche, sovrascritte dai toni di sezione */
  --bg: var(--paper);
  --fg: var(--text);
  --fg-muted: var(--text-muted);
  --fg-subtle: var(--text-subtle);
  --line: var(--line-light);
  --surface: #f2f7f4;
  --surface-2: #e6efeb;
  --accent: var(--green-700);

  /* forma */
  --r-xs: 10px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --container: 1440px;
  --pad: clamp(20px, 4.4vw, 60px);
  --sec-y: clamp(62px, 8.4vw, 128px);
  --nav-h: 74px;

  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --shadow-sm: 0 2px 8px -2px rgba(6, 34, 26, 0.1);
  --shadow: 0 18px 44px -24px rgba(6, 34, 26, 0.34);
  --shadow-lg: 0 40px 90px -50px rgba(4, 30, 22, 0.6);

  --font: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: light;
}

/* 2. Reset e base ------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 12px 18px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* 3. Tipografia -------------------------------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 3.1rem);
  max-width: 20ch;
}

.display {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.section-lead,
.lead {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  color: var(--fg-muted);
  max-width: 58ch;
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(34px, 4.6vw, 62px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.section-note {
  margin: clamp(26px, 3vw, 40px) 0 0;
  font-size: 0.92rem;
  color: var(--fg-subtle);
  max-width: 74ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sezioni e toni */

.section {
  position: relative;
  padding: var(--sec-y) 0;
  background: var(--bg);
  color: var(--fg);
}

.section--paper {
  --bg: var(--paper);
}

.section--tint {
  --bg: var(--tint);
  --surface: #ffffff;
  --surface-2: #e4edea;
}

.section--ink {
  --bg: var(--ink);
  --fg: #ffffff;
  --fg-muted: rgba(224, 246, 238, 0.66);
  --fg-subtle: rgba(224, 246, 238, 0.44);
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.09);
  --accent: var(--green-300);
}

.section--ink::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(25, 216, 152, 0.26), transparent 60%),
    radial-gradient(80% 70% at 92% 108%, rgba(25, 216, 152, 0.16), transparent 62%);
}

.section--ink > * {
  position: relative;
}

/* Bottoni */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-icon--arrowUpRight {
  transform: translate(2px, -2px);
}

.btn:hover .btn-icon--arrow,
.btn:hover .btn-icon--check,
.btn:hover .btn-icon--plus {
  transform: translateX(3px);
}

.btn--light {
  background: #fff;
  color: #04140f;
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  background: #ecf5f1;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--ink-3);
}

/* Pieno del colore aziendale con testo scuro: sul verde #19d898 il bianco
   arriverebbe a 1.9:1, il testo scuro a 9.8:1. */
.btn--brand {
  background: linear-gradient(118deg, var(--brand), #46e6ae);
  color: var(--brand-ink);
  box-shadow: 0 16px 34px -18px rgba(25, 216, 152, 0.95);
}

.btn--brand:hover {
  box-shadow: 0 22px 42px -18px rgba(25, 216, 152, 1);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--fg);
}

.btn--quiet {
  background: transparent;
  color: var(--fg);
  padding-inline: 8px;
}

.btn--quiet:hover {
  color: var(--accent);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.92rem;
}

/* Logo — tracciati ufficiali, colorati con `color` */

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-lockup {
  display: block;
  height: 30px;
  width: auto;
  flex: none;
}

.logo-mark {
  height: 24px;
  width: auto;
  flex: none;
}

/* Artwork astratto */

.art {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, var(--green-800), var(--green-400));
}

.art--sm {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.art--networking {
  background: linear-gradient(140deg, #064a35, #22c98f);
}

.art--box {
  background: linear-gradient(140deg, #062e22, #2ad39c 60%, #8ef0cd);
}

.art--support,
.art--company {
  background: linear-gradient(140deg, #04211a, #12a274);
}

.art-glow {
  position: absolute;
  inset: -40% -10% auto -30%;
  height: 130%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(206, 250, 236, 0.75), transparent 70%);
  opacity: 0.65;
}

.art-icon {
  position: relative;
  width: 44%;
  height: 44%;
  stroke-width: 1.6;
}

/* 4. Header e menu ----------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 140;
}

/* La barra resta sopra il pannello del menu, che a schermo stretto
   occupa tutto lo schermo: logo e pulsante di chiusura devono restare visibili. */
.header-inner {
  position: relative;
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
  padding: 13px clamp(12px, 1.6vw, 16px) 13px clamp(18px, 3vw, 44px);
  /* Tinta piatta, non un gradiente: fra un gradiente e un colore pieno il
     browser non interpola e allo scroll si vedrebbe uno scatto. Niente
     saturate() nel filtro, che è ciò che faceva trasparire il verde. */
  background-color: rgba(6, 12, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  transition: background-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-stuck .nav {
  background-color: rgba(6, 12, 10, 0.94);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.site-header.is-open .nav {
  background-color: rgba(6, 12, 10, 0.96);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  margin-right: auto;
}

.nav-links a {
  position: relative;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1.5px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a[aria-current='page']::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* I due pulsanti della barra hanno altezza fissata allo stesso valore:
   .btn ha line-height 1 mentre .menu-toggle eredita 1.6 dal body, quindi
   lasciandoli dimensionare dal contenuto verrebbero alti diversi. */
.nav-cta,
.menu-toggle {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-left: 16px;
  padding-right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    gap 0.35s var(--ease), padding 0.35s var(--ease);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle-label {
  transition: opacity 0.25s var(--ease), max-width 0.35s var(--ease);
  max-width: 6em;
  overflow: hidden;
  white-space: nowrap;
}

.menu-toggle-icon {
  position: relative;
  width: 20px;
  height: 14px;
  flex: none;
}

/* Le due barre condividono lo stesso centro esatto e si spostano solo con
   translateY: ruotandole di ±45° la X risulta perfettamente simmetrica. */
.menu-toggle-icon i {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.8px;
  margin-top: -0.9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.menu-toggle-icon i:first-child {
  transform: translateY(-3.2px);
}

.menu-toggle-icon i:last-child {
  transform: translateY(3.2px);
}

.site-header.is-open .menu-toggle-label {
  opacity: 0;
  max-width: 0;
}

/* Con l'etichetta richiusa servono spaziatura interna uguale a destra e a
   sinistra e nessun gap, altrimenti la X resta spostata verso destra. */
/* 11 + 20 (icona) + 11 + 2 (bordi) = 44px: identico all'altezza, quindi
   cerchio esatto. */
.site-header.is-open .menu-toggle {
  gap: 0;
  padding-left: 11px;
  padding-right: 11px;
}

.site-header.is-open .menu-toggle-icon i:first-child {
  transform: rotate(45deg);
}

.site-header.is-open .menu-toggle-icon i:last-child {
  transform: rotate(-45deg);
}

/* Pannello del menu */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 14, 11, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.menu-backdrop.is-in {
  opacity: 1;
}

.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 10px clamp(10px, 1.4vw, 16px) 0;
  z-index: 1;
}

.menu-panel {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  grid-template-areas:
    'feature cols'
    'foot foot';
  gap: clamp(20px, 2.6vw, 40px);
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-14px) scale(0.99);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
}

.menu.is-in .menu-panel {
  opacity: 1;
  transform: none;
}

.menu-feature {
  grid-area: feature;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(150deg, #054835 0%, #19d898 52%, #8ff2d1 100%);
}

.menu-feature-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(255, 255, 255, 0.42), transparent 70%),
    radial-gradient(105% 78% at 6% 104%, rgba(1, 22, 16, 0.82), transparent 72%);
  transition: transform 0.8s var(--ease);
}

.menu-feature:hover .menu-feature-art {
  transform: scale(1.08);
}

.menu-feature-body {
  position: relative;
}

.menu-feature-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}

.menu-feature-title {
  display: block;
  font-size: 1.32rem;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.menu-cols {
  grid-area: cols;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(18px, 2.4vw, 44px);
  padding: 12px clamp(4px, 1vw, 18px) 0 0;
}

.menu-col-title {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.menu-item-list {
  display: grid;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  margin: -8px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.menu-item:hover {
  background: var(--tint);
}

.menu-item-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.menu-item-title {
  font-weight: 500;
  font-size: 1.02rem;
}

.menu-item-sub {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.menu-link-list {
  display: grid;
  gap: 14px;
}

.menu-link {
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  display: inline-block;
}

.menu-link:hover {
  color: var(--green-700);
  transform: translateX(3px);
}

.menu-foot {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.menu-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.93rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.menu-foot-link .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--green-700);
}

.menu-foot-link:hover {
  color: var(--text);
}

/* 5. Hero -------------------------------------------------------------- */

.hero,
.page-hero,
.notfound {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* La canvas deve essere posizionata: altrimenti il gradiente di riserva,
   che è in absolute, le finirebbe sopra nell'ordine di pittura. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Riserva senza WebGL: le stesse fasce curve, ottenute con gradienti ripetuti. */
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      ellipse 150% 130% at 2% 108%,
      rgba(255, 255, 255, 0) 0 12.3%,
      rgba(212, 252, 240, 0.45) 12.3% 12.7%,
      rgba(255, 255, 255, 0) 12.7% 13%
    ),
    repeating-radial-gradient(
      ellipse 150% 130% at 2% 108%,
      rgba(255, 255, 255, 0.11) 0 6.5%,
      rgba(2, 26, 18, 0.2) 6.5% 13%
    ),
    radial-gradient(80% 60% at 68% 34%, rgba(206, 250, 236, 0.5), transparent 62%),
    radial-gradient(120% 95% at 18% 88%, #19d898 0%, #0da372 32%, #064632 62%, #032018 100%);
  animation: fallbackShift 18s ease-in-out infinite alternate;
}

.hero-fallback--soft {
  background:
    repeating-radial-gradient(
      ellipse 160% 140% at 0% 112%,
      rgba(255, 255, 255, 0) 0 14.3%,
      rgba(212, 252, 240, 0.4) 14.3% 14.7%,
      rgba(255, 255, 255, 0) 14.7% 15%
    ),
    repeating-radial-gradient(
      ellipse 160% 140% at 0% 112%,
      rgba(255, 255, 255, 0.1) 0 7.5%,
      rgba(2, 26, 18, 0.18) 7.5% 15%
    ),
    radial-gradient(70% 60% at 76% 26%, rgba(212, 252, 240, 0.45), transparent 64%),
    radial-gradient(130% 110% at 12% 96%, #1fc78d 0%, #0ca270 36%, #064531 70%, #032119 100%);
}

.hero-fallback--cta {
  background:
    repeating-radial-gradient(
      ellipse 140% 150% at 4% 104%,
      rgba(255, 255, 255, 0) 0 10.4%,
      rgba(212, 252, 240, 0.42) 10.4% 10.8%,
      rgba(255, 255, 255, 0) 10.8% 11%
    ),
    repeating-radial-gradient(
      ellipse 140% 150% at 4% 104%,
      rgba(255, 255, 255, 0.1) 0 5.5%,
      rgba(2, 26, 18, 0.16) 5.5% 11%
    ),
    radial-gradient(60% 70% at 78% 20%, rgba(212, 252, 240, 0.5), transparent 66%),
    radial-gradient(120% 130% at 14% 96%, #35e0a8 0%, #0eab7a 40%, #074c36 100%);
}

@keyframes fallbackShift {
  from {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
  to {
    filter: saturate(1.15) brightness(1.08);
    transform: scale(1.06);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 12, 9, 0.82) 0%, rgba(2, 12, 9, 0.26) 15%, transparent 32%),
    linear-gradient(0deg, rgba(2, 12, 9, 0.74) 0%, rgba(2, 12, 9, 0.36) 30%, transparent 62%),
    linear-gradient(90deg, rgba(2, 12, 9, 0.58) 0%, rgba(2, 12, 9, 0.18) 42%, transparent 68%),
    radial-gradient(90% 70% at 8% 104%, rgba(1, 10, 8, 0.6), transparent 62%);
}

.page-hero .hero-scrim {
  background:
    linear-gradient(180deg, rgba(2, 12, 9, 0.86) 0%, rgba(2, 12, 9, 0.42) 22%, rgba(2, 12, 9, 0.24) 60%, rgba(2, 12, 9, 0.34) 100%),
    linear-gradient(90deg, rgba(2, 12, 9, 0.62) 0%, rgba(2, 12, 9, 0.2) 46%, transparent 76%);
}

.notfound .hero-scrim {
  background: linear-gradient(180deg, rgba(2, 12, 9, 0.8), rgba(2, 12, 9, 0.55) 50%, rgba(2, 12, 9, 0.78));
}

.hero-title,
.hero-lead,
.page-hero-title,
.page-hero-lead,
.hero-card,
.notfound-title,
.notfound-text {
  text-shadow: 0 1px 26px rgba(2, 14, 10, 0.42);
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 clamp(28px, 4.4vw, 56px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 25%);
  grid-template-areas:
    'copy side'
    'card hint';
  align-items: end;
  gap: clamp(26px, 4vw, 60px);
  width: 100%;
}

.hero-copy {
  grid-area: copy;
}

.hero-title {
  font-size: clamp(2.9rem, 8vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-side {
  grid-area: side;
  padding-bottom: 0.6rem;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34ch;
}

.hero-card {
  grid-area: card;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  padding: 11px 18px 11px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-card-text {
  display: grid;
  gap: 2px;
  margin-right: 10px;
}

.hero-card-title {
  font-weight: 500;
}

.hero-card-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-card-arrow {
  margin-left: auto;
  transition: transform 0.3s var(--ease);
}

.hero-card:hover .hero-card-arrow {
  transform: translate(3px, -3px);
}

.hero-scroll {
  grid-area: hint;
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8));
  animation: scrollHint 2.4s var(--ease) infinite;
}

@keyframes scrollHint {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}

/* Testata pagine interne */

.page-hero {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 128px)) 0 clamp(64px, 8vw, 116px);
}

.page-hero--compact {
  padding: calc(var(--nav-h) + clamp(48px, 6vw, 88px)) 0 clamp(48px, 6vw, 82px);
}

/* Allineata al margine di pagina come tutte le altre sezioni:
   la larghezza la definiscono i singoli elementi, non il contenitore. */
.page-hero-inner {
  position: relative;
}

.page-hero-facts {
  max-width: 1100px;
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.page-hero-title {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 20ch;
  text-wrap: balance;
}

.page-hero-lead {
  margin: clamp(18px, 2vw, 26px) 0 0;
  font-size: clamp(1.02rem, 1.3vw, 1.24rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
}

.page-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(36px, 4.4vw, 60px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.page-hero-facts .fact-value {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-hero-facts .fact-label {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.64);
}

.breadcrumb {
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb [aria-current] {
  color: rgba(255, 255, 255, 0.9);
}

/* 6. Blocchi di contenuto ---------------------------------------------- */

/* Statistiche */

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: start;
}

@media (min-width: 1181px) {
  .stats-copy {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
  }
}

.stats-grid {
  display: grid;
  gap: 14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r);
  background: var(--surface);
}

.stat-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.stat-value {
  margin: 10px 0 0;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.stat-note {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--fg-muted);
  max-width: 40ch;
}

.stat-watermark {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  height: 26px;
  width: auto;
  color: var(--brand);
  opacity: 0.3;
}

/* Showcase */

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.showcase-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 220, 170, 0.5);
  background: var(--surface-2);
}

.showcase-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(150px, 15vw, 190px);
  margin-bottom: clamp(20px, 2vw, 26px);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(145deg, #05392a 0%, #19d898 58%, #8ef0cd 100%);
}

.showcase-card--networking .showcase-art {
  background: linear-gradient(215deg, #032c20 0%, #22c98f 58%, #cffbec 100%);
}

.showcase-card--networking .showcase-glow {
  background: radial-gradient(42% 46% at 26% 70%, rgba(255, 255, 255, 0.58), transparent 70%);
}

.showcase-card--box .showcase-art {
  background: linear-gradient(115deg, #041d17 0%, #0f9f74 48%, #7cecc4 100%);
}

.showcase-card--box .showcase-glow {
  background: radial-gradient(48% 44% at 78% 76%, rgba(255, 255, 255, 0.5), transparent 72%);
}

.showcase-glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 120%;
  background: radial-gradient(45% 50% at 62% 34%, rgba(255, 255, 255, 0.62), transparent 68%);
  transition: transform 0.9s var(--ease);
}

.showcase-card:hover .showcase-glow {
  transform: translate3d(-6%, 4%, 0) scale(1.15);
}

.showcase-icon {
  position: relative;
  width: 46px;
  height: 46px;
  color: #fff;
  stroke-width: 1.4;
  filter: drop-shadow(0 4px 14px rgba(1, 20, 15, 0.75));
}

.showcase-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcase-title {
  display: block;
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.showcase-text {
  display: block;
  color: var(--fg-muted);
  font-size: 0.97rem;
}

.showcase-bullets {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.showcase-bullets span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.showcase-bullets .icon {
  width: 1em;
  height: 1em;
  margin-top: 0.32em;
  color: var(--accent);
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
}

.showcase-link .icon {
  transition: transform 0.3s var(--ease);
}

.showcase-card:hover .showcase-link .icon {
  transform: translate(3px, -3px);
}

/* Griglia funzioni */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}

.feature-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.feature-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr));
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(60, 220, 170, 0.45);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--accent);
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.feature-text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--fg-muted);
}

.feature-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.feature-list .icon {
  width: 0.95em;
  height: 0.95em;
  margin-top: 0.34em;
  color: var(--accent);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.feature-link .icon {
  transition: transform 0.3s var(--ease);
}

.feature-link:hover .icon {
  transform: translateX(4px);
}

/* Split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
}

.split--reverse .split-copy {
  order: 2;
}

.split--start {
  align-items: start;
}

.split-copy p {
  color: var(--fg-muted);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  max-width: 58ch;
}

.split-copy .section-title {
  margin-bottom: 20px;
}

/* :not(.btn) evita che i link testuali sovrascrivano il colore dei bottoni. */
.split-copy a:not(.btn) {
  color: var(--accent);
  text-decoration-color: rgba(25, 216, 152, 0.4);
  text-underline-offset: 3px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--fg-muted);
  font-size: 0.98rem;
}

.check-list .icon {
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.34em;
  color: var(--accent);
}

.check-list strong {
  color: var(--fg);
  font-weight: 500;
}

/* Schema di flusso */

.flow {
  display: grid;
  gap: 0;
}

.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'index title'
    'index text';
  gap: 4px 16px;
  padding: clamp(16px, 1.6vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.flow-node:hover {
  border-color: rgba(60, 220, 170, 0.5);
  transform: translateX(3px);
}

.flow-node--accent {
  background: linear-gradient(130deg, rgba(25, 216, 152, 0.14), rgba(25, 216, 152, 0.04));
  border-color: rgba(25, 216, 152, 0.32);
}

.flow-index {
  grid-area: index;
  display: none;
}

.flow-icon {
  grid-area: index;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
}

.flow-icon .icon {
  width: 20px;
  height: 20px;
}

.flow-title {
  grid-area: title;
  font-weight: 500;
  align-self: center;
}

.flow-text {
  grid-area: text;
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.flow--compact .flow-node {
  grid-template-areas: 'index title' 'index text';
}

.flow-link {
  width: 2px;
  height: 22px;
  margin: 0 0 0 calc(clamp(16px, 1.6vw, 22px) + 19px);
  background: linear-gradient(180deg, var(--line), transparent);
  position: relative;
}

.flow-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transform: translateX(-50%);
}

/* Passi */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: minmax(76px, 110px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(24px, 2.8vw, 38px) 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg-subtle);
  font-weight: 400;
}

.step-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 8px clamp(20px, 4vw, 60px);
  align-items: start;
}

.step-title {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.step-text {
  grid-row: span 2;
  grid-column: 2;
  margin: 0;
  color: var(--fg-muted);
}

.step-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--fg-subtle);
}

.step-meta .icon {
  width: 1em;
  height: 1em;
}

/* Specifiche */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}

/* Le schede tecniche hanno quattro gruppi: due colonne restano sempre in pari. */
@media (min-width: 900px) {
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec-group {
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.spec-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  font-size: 1.08rem;
}

.spec-title .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
}

.spec-list {
  margin: 0;
  display: grid;
  gap: 2px;
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(96px, 0.62fr) minmax(0, 1fr);
  gap: 8px 18px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
}

.spec-list dt {
  font-size: 0.86rem;
  color: var(--fg-subtle);
}

.spec-list dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--fg);
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
}

.faq-list {
  display: grid;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2vw, 24px) 0;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.14em;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(135deg);
}

.faq-answer {
  padding-bottom: clamp(18px, 2vw, 26px);
  color: var(--fg-muted);
  max-width: 68ch;
}

.faq-answer p + p {
  margin-top: 0.9em;
}

/* Citazione */

.quote {
  margin: 0 auto;
  max-width: 1100px;
  text-align: center;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 400;
  max-width: 21ch;
  margin-inline: auto;
  text-wrap: balance;
}

.quote-mark {
  height: 34px;
  width: auto;
  margin: 0 auto 28px;
  color: var(--accent);
  opacity: 0.9;
}

.quote figcaption {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--fg-subtle);
}

.quote figcaption span {
  opacity: 0.7;
}

/* Marquee */

.section--marquee {
  padding-block: clamp(44px, 5vw, 76px);
}

.marquee-title {
  margin: 0 0 26px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

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

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee-note {
  margin: 26px 0 0;
  font-size: 0.84rem;
  color: var(--fg-subtle);
  max-width: 70ch;
}

/* Valori */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.value-card {
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.value-num {
  display: block;
  margin-bottom: 18px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.value-title {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  margin-bottom: 12px;
}

.value-text {
  margin: 0;
  color: var(--fg-muted);
}

/* Timeline */

.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 46px);
  padding: clamp(22px, 2.4vw, 32px) 0 clamp(22px, 2.4vw, 32px) 26px;
  border-left: 1px solid var(--line);
}

.timeline-item:first-child {
  padding-top: 6px;
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: clamp(26px, 2.6vw, 38px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--bg);
}

.timeline-item:first-child .timeline-dot {
  top: 10px;
}

.timeline-item.is-done .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(25, 216, 152, 0.16);
}

.timeline-when {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--fg-subtle);
  padding-top: 0.2em;
}

.timeline-title {
  display: block;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-text {
  display: block;
  color: var(--fg-muted);
  max-width: 62ch;
}

/* Copertura */

.coverage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.coverage-copy p {
  color: var(--fg-muted);
  max-width: 54ch;
}

.coverage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.93rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.coverage-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.coverage-chip .icon {
  width: 1em;
  height: 1em;
  color: var(--accent);
}

/* 7. Novità, lavoro, prezzi -------------------------------------------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.article-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(60, 220, 170, 0.5);
}

.article-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  background: linear-gradient(145deg, #05392a, #19d898 62%, #93f0cf);
  overflow: hidden;
}

.article-art-glow {
  position: absolute;
  inset: -25% -15% auto -15%;
  height: 120%;
  background: radial-gradient(46% 50% at 66% 30%, rgba(255, 255, 255, 0.6), transparent 68%);
  transition: transform 0.9s var(--ease);
}

.article-card-link:hover .article-art-glow {
  transform: scale(1.16) translateY(4%);
}

.article-art-icon {
  position: relative;
  width: 40px;
  height: 40px;
  color: #fff;
  stroke-width: 1.4;
}

.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 2vw, 26px);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: var(--fg-subtle);
}

.article-title {
  font-size: clamp(1.14rem, 1.5vw, 1.34rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-excerpt {
  display: block;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--accent);
}

.article-link .icon {
  transition: transform 0.3s var(--ease);
}

.article-card-link:hover .article-link .icon {
  transform: translate(3px, -3px);
}

@media (min-width: 900px) {
  .article-grid--featured {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid--featured .article-card--featured {
    grid-column: span 3;
  }

  .article-grid--featured .article-card--featured .article-card-link {
    flex-direction: row;
  }

  .article-grid--featured .article-card--featured .article-art {
    width: 44%;
    height: auto;
    min-height: 300px;
  }

  .article-grid--featured .article-card--featured .article-body {
    justify-content: center;
    padding: clamp(28px, 3.4vw, 52px);
  }

  .article-grid--featured .article-card--featured .article-title {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  }

  .article-grid--featured .article-card--featured .article-excerpt {
    font-size: 1.05rem;
    max-width: 50ch;
  }
}

/* Posizioni aperte */

.job-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.job-row {
  border-bottom: 1px solid var(--line);
}

.job-row a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 46px);
  padding: clamp(22px, 2.4vw, 32px) 4px;
  text-decoration: none;
  color: inherit;
  transition: padding 0.35s var(--ease), color 0.35s var(--ease);
}

.job-row a:hover {
  padding-left: 14px;
  padding-right: 0;
}

.job-title {
  display: block;
  font-size: clamp(1.16rem, 1.7vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 6px;
}

.job-text {
  display: block;
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.job-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.job-detail .icon {
  width: 1em;
  height: 1em;
  color: var(--accent);
}

.job-arrow {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.job-row a:hover .job-arrow {
  transform: translate(4px, -4px);
}

.empty-state {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  text-align: center;
  color: var(--fg-muted);
}

/* Pacchetti */

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  align-items: start;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.package--highlight {
  border-color: rgba(25, 216, 152, 0.45);
  background: linear-gradient(160deg, rgba(25, 216, 152, 0.12), rgba(25, 216, 152, 0.02));
  box-shadow: 0 28px 60px -40px rgba(25, 216, 152, 0.8);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: clamp(24px, 2.6vw, 34px);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-title {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  margin-bottom: 8px;
}

.package-for {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--fg-muted);
}

.package-price {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--accent);
}

.package-list {
  display: grid;
  gap: 11px;
  margin-bottom: 28px;
}

.package-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--fg-muted);
}

.package-list .icon {
  width: 1em;
  height: 1em;
  margin-top: 0.34em;
  color: var(--accent);
}

.package .btn {
  margin-top: auto;
  justify-content: center;
}

/* Prose */

.prose {
  max-width: 74ch;
  font-size: 1.03rem;
  color: var(--fg-muted);
}

.prose--wide {
  max-width: 90ch;
}

.prose-updated {
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--fg-subtle);
}

.prose-lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 1.4em;
}

.prose h2 {
  margin: 2em 0 0.7em;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  color: var(--fg);
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.14rem;
  color: var(--fg);
}

.prose p {
  margin-bottom: 1.1em;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin: 0 0 1.4em;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 26px;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol li {
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

.prose strong {
  color: var(--fg);
  font-weight: 500;
}

.prose a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-color: rgba(25, 216, 152, 0.4);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(25, 216, 152, 0.12);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.prose .table-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--fg);
  font-weight: 500;
  border-bottom-color: var(--fg-subtle);
}

/* Sotto i 600px ogni riga diventa una scheda: le celle si impilano con la
   propria etichetta (data-label), così niente scorrimento orizzontale. */
@media (max-width: 600px) {
  .prose table,
  .prose tbody,
  .prose tr,
  .prose td {
    display: block;
  }

  .prose thead {
    display: none;
  }

  .prose tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .prose td {
    padding: 4px 0;
    border: 0;
  }

  .prose td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-subtle);
  }
}

/* Articolo con colonna laterale */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  display: grid;
  gap: 16px;
}

.aside-card {
  padding: clamp(22px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.aside-card--cta {
  background: linear-gradient(160deg, rgba(25, 216, 152, 0.12), rgba(25, 216, 152, 0.02));
  border-color: rgba(25, 216, 152, 0.32);
}

.aside-title {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.aside-text {
  font-size: 0.94rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.aside-list {
  display: grid;
  gap: 14px;
}

.aside-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--fg);
  transition: color 0.25s var(--ease);
}

.aside-list .icon {
  width: 1em;
  height: 1em;
  margin-top: 0.36em;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.aside-list a:hover {
  color: var(--accent);
}

.aside-list a:hover .icon {
  transform: translateX(3px);
}

.aside-specs {
  margin: 0;
  display: grid;
  gap: 2px;
}

.aside-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.93rem;
}

.aside-specs > div:first-child {
  border-top: 0;
}

.aside-specs dt {
  color: var(--fg-subtle);
}

.aside-specs dd {
  margin: 0;
  text-align: right;
  color: var(--fg);
}

/* 8. Form e configuratore ---------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: clamp(30px, 3.4vw, 44px);
}

.contact-list li {
  display: flex;
  gap: 16px;
}

.contact-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
}

.contact-ico .icon {
  width: 20px;
  height: 20px;
}

.contact-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.contact-text a {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.02rem;
  word-break: break-word;
  transition: color 0.25s var(--ease);
}

.contact-text a:hover {
  color: var(--accent);
}

.contact-text small {
  font-size: 0.86rem;
  color: var(--fg-muted);
}

.contact-form-wrap {
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.field legend,
.config-block legend {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg);
  padding: 0;
}

.field label span {
  color: var(--accent);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-subtle);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 4px rgba(25, 216, 152, 0.16);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #e04a5f;
  box-shadow: 0 0 0 4px rgba(224, 74, 95, 0.12);
}

.field-hint {
  font-size: 0.84rem;
  color: var(--fg-subtle);
}

.select-wrap {
  position: relative;
}

.select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(90deg);
  color: var(--fg-subtle);
  pointer-events: none;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}

.choice-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.choice,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.choice small {
  display: block;
  font-size: 0.82rem;
  color: var(--fg-subtle);
}

.choice strong {
  font-weight: 500;
}

.choice:hover,
.consent:hover {
  border-color: var(--green-300);
}

.choice input,
.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--brand-ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.choice-box .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.choice input:checked ~ .choice-box,
.consent input:checked ~ .choice-box {
  background: var(--brand);
  border-color: var(--brand);
}

.choice input:checked ~ .choice-box .icon,
.consent input:checked ~ .choice-box .icon {
  opacity: 1;
  transform: none;
}

.choice input:focus-visible ~ .choice-box,
.consent input:focus-visible ~ .choice-box {
  outline: 2px solid var(--green-400);
  outline-offset: 2px;
}

.choice:has(input:checked) {
  border-color: var(--green-400);
  background: rgba(25, 216, 152, 0.07);
}

.consent {
  margin-top: 20px;
  align-items: flex-start;
  border: 0;
  padding: 0;
  background: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.consent a {
  color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Widget Cloudflare Turnstile (300×65 di default, "flexible" si adatta al contenitore) */
.turnstile {
  margin-top: 20px;
  min-height: 65px;
  max-width: 100%;
  overflow: hidden;
}

.turnstile:empty {
  display: none;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.form-note a {
  color: var(--accent);
}

.form.is-sent .turnstile,
.form.is-sent .form-note {
  opacity: 0.45;
  pointer-events: none;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.form-status.is-error {
  color: #d33a50;
}

.form-status.is-ok {
  color: #1d9a63;
}

.form.is-sent .form-grid,
.form.is-sent .consent {
  opacity: 0.45;
  pointer-events: none;
}

/* Configuratore */

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.config-form {
  padding: clamp(24px, 2.8vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(22px, 2.4vw, 32px);
}

.config-block--wide {
  grid-column: 1 / -1;
}

.config-block legend {
  margin-bottom: 14px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  position: relative;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option span {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.92rem;
  transition: all 0.25s var(--ease);
}

.option:hover span {
  border-color: var(--green-300);
}

.option input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  font-weight: 500;
}

.option input:focus-visible + span {
  outline: 2px solid var(--green-400);
  outline-offset: 2px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

input[type='range'] {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  appearance: none;
  outline: none;
}

input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(25, 216, 152, 0.5);
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(25, 216, 152, 0.5);
  cursor: pointer;
}

.range-out {
  min-width: 74px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.config-contact {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.config-summary {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid rgba(25, 216, 152, 0.3);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(25, 216, 152, 0.12), rgba(25, 216, 152, 0.02));
}

.config-summary-title {
  margin: 0 0 20px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.config-summary-list {
  margin: 0;
  display: grid;
  gap: 2px;
}

.config-summary-list > div {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.93rem;
}

.config-summary-list dt {
  color: var(--fg-subtle);
}

.config-summary-list dd {
  margin: 0;
  color: var(--fg);
}

.config-summary-note {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--fg-subtle);
}

/* 9. Footer e chiusura -------------------------------------------------- */

.cta {
  padding: 0 0 clamp(48px, 6vw, 90px);
  background: var(--paper);
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 92px) clamp(26px, 5vw, 80px);
  color: #fff;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 16, 12, 0.32), rgba(2, 16, 12, 0.52));
}

.cta-body {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.cta .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.cta-title {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta-text {
  margin: 20px auto 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  color: rgba(255, 255, 255, 0.82);
}

.cta .actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 100px) 0 34px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 80% at 10% 0%, rgba(25, 216, 152, 0.22), transparent 62%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(38px, 5vw, 80px);
}

.footer-brand .logo {
  margin-bottom: 26px;
}

.footer-claim {
  max-width: 42ch;
  color: rgba(224, 246, 238, 0.66);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(224, 246, 238, 0.78);
  font-size: 0.96rem;
}

.footer-contact .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--green-300);
  flex: none;
}

.footer-contact a {
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.footer-col-title {
  margin: 0 0 20px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224, 246, 238, 0.42);
}

.footer-col ul {
  display: grid;
  gap: 13px;
}

.footer-col a {
  font-size: 0.97rem;
  color: rgba(224, 246, 238, 0.78);
  text-decoration: none;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  display: inline-block;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: clamp(44px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(224, 246, 238, 0.5);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-legal a {
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-legal a:hover {
  color: #fff;
}

/* 404 */

.notfound {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
}

.notfound-inner {
  position: relative;
  max-width: 680px;
}

.notfound-code {
  margin: 0 0 18px;
  font-size: clamp(4rem, 16vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42);
}

.notfound-title {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.notfound-text {
  margin: 20px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
}

.notfound .actions {
  justify-content: center;
}

/* 10. Animazioni, responsive, stampa ------------------------------------ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .stats-layout,
  .split,
  .coverage,
  .faq-layout,
  .contact-layout,
  .article-layout,
  .configurator {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split-copy {
    order: 0;
  }

  .faq-head,
  .article-aside,
  .config-summary {
    position: static;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

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

  .menu-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'cols' 'foot';
  }

  .menu-feature {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 66px;
  }

  /* Su schermo stretto titolo, testo e card stanno in un blocco unico
     ancorato in basso: distribuirli su tutta l'altezza lascerebbe un vuoto
     in mezzo. La grafica occupa la fascia sopra. */
  .hero {
    min-height: 78svh;
    padding-bottom: clamp(36px, 9vw, 56px);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: clamp(20px, 4.5vw, 28px);
  }

  .hero-side {
    margin-top: 0;
    padding-bottom: 0;
  }

  .hero-card {
    width: 100%;
    max-width: none;
  }

  .hero-scroll {
    display: none;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .step-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-text {
    grid-row: auto;
    grid-column: auto;
    margin-top: 6px;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .job-row a {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .job-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .menu {
    position: fixed;
    inset: 0;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-panel {
    min-height: 100%;
    border-radius: 0;
    padding: calc(var(--nav-h) + 26px) var(--pad) 48px;
    /* Verdi profondi: il testo bianco resta sopra 5:1 fino in fondo al pannello. */
    background: linear-gradient(175deg, #032018 0%, #06553e 55%, #087a57 100%);
    color: #fff;
    box-shadow: none;
    transform: translateY(-2%);
  }

  .menu-col-title,
  .menu-item-sub {
    color: rgba(255, 255, 255, 0.6);
  }

  .menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .menu-item-title,
  .menu-link {
    color: #fff;
  }

  .menu-link:hover {
    color: #fff;
  }

  .menu-cols {
    gap: 34px 24px;
    padding: 0;
  }

  .menu-col:first-child {
    grid-column: 1 / -1;
  }

  .menu-foot {
    border-top-color: rgba(255, 255, 255, 0.18);
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
  }

  .menu-foot-link {
    color: rgba(255, 255, 255, 0.82);
  }

  .menu-foot-link .icon {
    color: #fff;
  }

  .menu-foot-link:hover {
    color: #fff;
  }

  .menu-backdrop {
    display: none;
  }
}

@media (max-width: 640px) {
  .logo-lockup {
    height: 24px;
  }

  .nav-cta {
    display: none;
  }

  .stat-value {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

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

  .contact-form-wrap,
  .config-form {
    padding: 20px;
    border-radius: var(--r);
  }

  .spec-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .menu,
  .menu-backdrop,
  .cta,
  .hero-bg,
  .marquee {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 18px 0;
    background: #fff !important;
    color: #000 !important;
  }
}
