/* ============================================================
   Motor Manager - Design System
   Brand palette: #0075F7 (blu) · #DBDDDE (grigio chiaro)
   Stile: glassmorphism. Layout responsive in rem / % / vw / vh.
   ============================================================ */

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* Brand */
  --blue: #0075f7;
  --blue-bright: #3a93ff;
  --blue-deep: #0056c7;
  --blue-soft: #e7f1ff;
  --gray: #dbddde; /* grigio chiaro brand: bordi e divisori su fondo chiaro */
  --gray-3: #f6f7f8;

  /* Ink (sfondi scuri, navy derivato dal blu) */
  --ink: #060c1a;
  --ink-2: #0a1326;
  --ink-3: #0f1d38;

  /* Testo */
  --text: #0b1424;
  --text-soft: #46566e;
  --text-on-dark: #f3f6fb;
  --text-on-dark-soft: rgba(243, 246, 251, 0.72);

  /* Superfici vetro (glassmorphism) */
  --glass-dark: rgba(255, 255, 255, 0.05);
  --glass-dark-2: rgba(255, 255, 255, 0.09);
  --glass-light: rgba(255, 255, 255, 0.55);
  --glass-border-dark: rgba(255, 255, 255, 0.16);
  --glass-border-light: rgba(255, 255, 255, 0.85);
  --blur: blur(1.2rem) saturate(155%);
  --blur-strong: blur(2rem) saturate(175%);

  /* Ombre */
  --shadow-sm: 0 0.4rem 1.2rem rgba(6, 12, 26, 0.08);
  --shadow-md: 0 1rem 2.5rem rgba(6, 12, 26, 0.12);
  --shadow-lg: 0 2rem 4.5rem rgba(6, 12, 26, 0.22);
  --shadow-blue: 0 1rem 2.5rem rgba(0, 117, 247, 0.32);

  /* Raggi */
  --r-sm: 0.6rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-pill: 100rem;

  /* Layout */
  --maxw: 75rem;
  --maxw-narrow: 48rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Tipografia fluida */
  --fs-kicker: clamp(0.72rem, 0.66rem + 0.3vw, 0.85rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 2vw, 2.9rem);
  --fs-h1: clamp(2.6rem, 1.8rem + 4.5vw, 5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
  --t: 0.32s;

  color-scheme: dark light;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 0.18rem solid var(--blue-bright); outline-offset: 0.18rem; border-radius: 0.3rem; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }

/* --------------------------- Utilities --------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.kicker {
  display: inline-block;
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep); /* contrasto AA su chip --blue-soft */
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--blue-soft) 0%, #ffffff 100%);
  border: 1px solid rgba(0, 117, 247, 0.18);
}
.section--ink .kicker,
.section--dark .kicker,
.hero .kicker,
.page-hero .kicker {
  color: var(--blue-bright);
  background: rgba(0, 117, 247, 0.14);
  border-color: rgba(58, 147, 255, 0.32);
}
.kicker--center { display: block; width: fit-content; margin-inline: auto; }

.text-accent { color: var(--blue-deep); } /* contrasto AA su fondo chiaro */
.section--ink .text-accent,
.hero .text-accent,
.page-hero .text-accent { color: var(--blue-bright); }

.h2 {
  font-size: var(--fs-h2);
  background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section--ink .h2,
.section--dark .h2,
.hero .h2,
.page-hero .h2 {
  background-image: none;
  color: var(--text-on-dark);
  -webkit-text-fill-color: var(--text-on-dark);
}
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); color: var(--text-soft); line-height: 1.6; }
.section--ink .lead,
.section--dark .lead,
.page-hero .lead { color: var(--text-on-dark-soft); }

.skip-link {
  position: absolute;
  left: 0.6rem; top: -4rem;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0.6rem; }

/* --------------------------- Buttons ----------------------------- */
.btn {
  --btn-pad-y: 0.7rem;
  --btn-pad-x: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease),
    background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-0.15rem); }
.btn:active { transform: translateY(0); }
.btn--lg { --btn-pad-y: 0.95rem; --btn-pad-x: 1.9rem; font-size: 1.02rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { box-shadow: 0 1.4rem 3rem rgba(0, 117, 247, 0.45); }

.btn--ghost {
  background: var(--glass-light);
  color: var(--text);
  border-color: var(--gray);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.section--ink .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost {
  background: var(--glass-dark-2);
  color: var(--text-on-dark);
  border-color: var(--glass-border-dark);
}
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row--center { justify-content: center; }

.arrow-link {
  font-weight: 700;
  color: var(--blue-deep); /* contrasto AA su fondo chiaro */
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--t-fast) var(--ease);
}
.section--ink .arrow-link { color: var(--blue-bright); }
.arrow-link::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.arrow-link:hover::after { transform: translateX(0.35rem); }

/* Link verso la holding TCM (adatta il colore al contesto chiaro/scuro) */
.tcm-link { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; }
.section--ink .tcm-link,
.section--dark .tcm-link,
.page-hero .tcm-link,
.hero .tcm-link,
.site-footer .tcm-link { color: var(--blue-bright); }
.tcm-link:hover { color: var(--blue); }

/* ---------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(6, 12, 26, 0.62), rgba(15, 29, 56, 0.55));
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--blue-bright), transparent);
  opacity: 0.75;
}

/* Barra di gruppo in stile TCM Italia: striscia scura + accento arancione, sopra la navbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem var(--gutter);
  background: #1f1f1f;               /* TCM ink */
  border-bottom: 1px solid #383838; /* TCM ink-line */
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.topbar__logo { height: 1rem; width: auto; flex: none; }
.topbar__brand strong { color: #ffffff; font-weight: 700; }
.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #ff7d27;                   /* TCM orange */
  font-weight: 700;
}
.topbar__brand:hover .topbar__cta { text-decoration: underline; }
@media (max-width: 30em) {
  .topbar__brand { gap: 0.4rem; font-size: 0.72rem; }
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-right: auto;
}
.brand__mark {
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--shadow-blue);
  color: #fff;
  flex: none;
}
.brand__mark svg { width: 1.25rem; height: 1.25rem; }
.brand b { color: var(--blue-bright); font-weight: 800; }
.brand span { font-weight: 600; opacity: 0.95; }
/* Logo orizzontale (aspect ~2.83): altezze calibrate per non invadere la navbar */
.brand__logo {
  height: 2.7rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.footer-brand .brand__logo { height: 3.4rem; }
/* Logo navbar piu grande su desktop (su mobile resta com'e) */
@media (min-width: 52em) {
  .site-header .brand__logo { height: 3.9rem; }
  .site-header__inner { padding-top: 0.55rem; padding-bottom: 0.55rem; }
}
@media (max-width: 30em) { .brand__logo { height: 2.3rem; } }

.nav__list { display: flex; gap: 0.3rem; align-items: center; }
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-on-dark-soft);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--text-on-dark); background: rgba(255, 255, 255, 0.08); }
.nav__link[aria-current="page"] { color: var(--text-on-dark); background: rgba(0, 117, 247, 0.22); }

.header-actions { display: flex; align-items: center; }

.burger {
  display: none;
  width: 2.8rem; height: 2.8rem;
  border: 1px solid var(--glass-border-dark);
  background: var(--glass-dark-2);
  border-radius: 0.7rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.burger span {
  width: 1.25rem; height: 0.13rem;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.45rem) rotate(-45deg); }

/* -------------------------- Mobile nav --------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(6, 12, 26, 0.92);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  transform: translateX(100%);
  transition: transform var(--t) var(--ease);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__list { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(1.4rem, 7vw, 2.2rem);
  font-weight: 800;
  color: var(--text-on-dark);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav__link span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-bright);
}
.mobile-nav__foot {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-on-dark-soft);
  font-size: 0.95rem;
}

/* ----------------------------- Hero ------------------------------ */
.hero {
  position: relative;
  color: var(--text-on-dark);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero--ink {
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(0, 117, 247, 0.35), transparent 60%),
    radial-gradient(50vw 50vw at 0% 100%, rgba(58, 147, 255, 0.18), transparent 55%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__grid--split { grid-template-columns: 1.05fr 0.95fr; }
.hero__title { font-size: var(--fs-h1); }
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--text-on-dark-soft);
  max-width: 38rem;
  margin-top: 1.1rem;
}
.hero__media { position: relative; }

.framed {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border-dark);
  background: var(--glass-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
}
.framed img { border-radius: calc(var(--r-xl) - 0.6rem); width: 100%; }
.framed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 40%);
  pointer-events: none;
}

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-dark);
  background: var(--glass-dark-2);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ---------------------------- Marquee ---------------------------- */
.marquee {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 50%, var(--blue-bright));
  color: #fff;
  overflow: hidden;
  padding: 0.85rem 0;
  white-space: nowrap;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  animation: marquee 38s linear infinite;
}
.marquee .dot { opacity: 0.6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------- Sections --------------------------- */
/* Base PRIMA dei modificatori: cosi --ink/--dark/--soft vincono nel cascade */
.section {
  padding-block: var(--section-y);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #e9eff7 100%);
  color: var(--text);
}
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }

.section--dark,
.section--ink {
  color: var(--text-on-dark);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
}
.section--ink { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); }
.section--soft {
  background: var(--gray-3);
  color: var(--text);
  border-block: 1px solid var(--gray);
}

/* Orbs decorativi: forme morbide dietro il vetro, danno profondita al glassmorphism */
.section::before,
.section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.section::before {
  top: -18vw; right: -12vw;
  width: 48vw; height: 48vw;
  max-width: 38rem; max-height: 38rem;
  background: radial-gradient(circle, rgba(0, 117, 247, 0.22), transparent 68%);
}
.section::after {
  bottom: -18vw; left: -12vw;
  width: 44vw; height: 44vw;
  max-width: 34rem; max-height: 34rem;
  background: radial-gradient(circle, rgba(219, 221, 222, 0.65), transparent 68%);
}
.section--ink::before,
.section--dark::before { background: radial-gradient(circle, rgba(0, 117, 247, 0.32), transparent 66%); }
.section--ink::after,
.section--dark::after { background: radial-gradient(circle, rgba(58, 147, 255, 0.18), transparent 68%); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1rem; }

/* Prose (pagine di testo: privacy, note legali) */
.prose { color: var(--text-soft); }
.prose h2 { font-size: var(--fs-h3); color: var(--text); margin: 2.2rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; display: grid; gap: 0.4rem; }
.prose a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; }
.prose strong { color: var(--text); }

/* ----------------------------- Split ----------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { width: 100%; }

/* ----------------------------- Grid ------------------------------ */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ----------------------------- Cards ----------------------------- */
.card {
  position: relative;
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  border-radius: var(--r-lg);
  background: var(--glass-light);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
  height: 100%;
}
.section--ink .card,
.section--dark .card {
  background: var(--glass-dark);
  border-color: var(--glass-border-dark);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 117, 247, 0.45);
}
.section--ink .card:hover,
.section--dark .card:hover { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
/* Card su sezioni chiare: vetro azzurrato con bordo e ombra VISIBILI sul fondo bianco */
.section:not(.section--ink):not(.section--dark) .card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.85) 0%, rgba(231, 241, 255, 0.7) 100%);
  border: 1px solid rgba(0, 117, 247, 0.15);
  box-shadow: 0 0.7rem 1.8rem rgba(6, 12, 26, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.card__icon {
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--blue-soft), #fff);
  border: 1px solid rgba(0, 117, 247, 0.16);
  color: var(--blue);
}
.section--ink .card__icon,
.section--dark .card__icon {
  background: rgba(0, 117, 247, 0.16);
  border-color: rgba(58, 147, 255, 0.32);
  color: var(--blue-bright);
}
.card__icon svg { width: 1.65rem; height: 1.65rem; }
.card__icon img { width: 2rem; height: 2rem; object-fit: contain; }
.card__title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.card p { color: var(--text-soft); font-size: 0.96rem; }
.section--ink .card p,
.section--dark .card p { color: var(--text-on-dark-soft); }
.card--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(0, 117, 247, 0.5), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --------------------------- Checklist --------------------------- */
.checklist { display: grid; gap: 0.85rem; }
.checklist li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--text-on-dark-soft);
  font-size: 1.02rem;
}
.section--soft .checklist li,
.section .checklist li { color: var(--text-soft); }
.section--dark .checklist li,
.section--ink .checklist li { color: var(--text-on-dark-soft); }
.checklist li strong { color: inherit; font-weight: 700; }
.section--dark .checklist li strong,
.hero .checklist li strong { color: var(--text-on-dark); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.checklist--diamond li::before { border-radius: 0.3rem; transform: rotate(0deg); }

/* ---------------------------- Stats ------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
}
.stat {
  text-align: center;
  padding: clamp(1.2rem, 2.5vw, 1.8rem) 1rem;
  border-radius: var(--r-lg);
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.stat__icon { width: 2.6rem; height: 2.6rem; margin: 0 auto 0.7rem; object-fit: contain; }
.stat__num {
  font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-bright), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
  line-height: 1.4;
}

/* ----------------------------- Form ------------------------------ */
.form {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: var(--r-xl);
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  box-shadow: var(--shadow-lg);
}
.form__row { display: grid; gap: 1rem; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text-on-dark); }
.field .req { color: var(--blue-bright); }
.field input,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--text-on-dark);
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(243, 246, 251, 0.45); }
.field input:focus,
.field textarea:focus {
  border-color: var(--blue-bright);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
}
.field--check input { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.2rem; accent-color: var(--blue); }
.field--check label { font-weight: 500; color: var(--text-on-dark-soft); line-height: 1.5; }
/* honeypot anti-spam: nascosto agli umani */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 1rem; font-size: 0.95rem; font-weight: 600; min-height: 1.2rem; }
.form__status.is-ok { color: #4ade80; }
.form__status.is-err { color: #ff9a8a; }

/* ------------------------- Contatti ------------------------------ */
.contact-split { align-items: start; }
.contact-split .form { margin-top: 0; }
.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.contact-info__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info__icon {
  width: 2.9rem; height: 2.9rem; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(0, 117, 247, 0.16);
  border: 1px solid rgba(58, 147, 255, 0.32);
  color: var(--blue-bright);
}
.contact-info__icon svg { width: 1.3rem; height: 1.3rem; }
.contact-info__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-on-dark-soft);
}
.contact-info__value { font-weight: 700; color: var(--text-on-dark); font-size: 1.02rem; }
.contact-info__value a { color: var(--text-on-dark); }
.contact-info__value a:hover { color: var(--blue-bright); }

/* --------------------------- Page hero --------------------------- */
.page-hero {
  position: relative;
  color: var(--text-on-dark);
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vw at 85% 0%, rgba(0, 117, 247, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(6, 12, 26, 0.78), rgba(6, 12, 26, 0.94));
}
.page-hero__title { font-size: clamp(2.2rem, 1.6rem + 4vw, 4.2rem); }
.page-hero__sub { font-size: var(--fs-lead); color: var(--text-on-dark-soft); max-width: 42rem; margin-top: 1.1rem; }

/* --------------------------- CTA band ---------------------------- */
.cta-band {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  background:
    radial-gradient(50vw 50vw at 50% 0%, rgba(58, 147, 255, 0.4), transparent 60%),
    linear-gradient(135deg, var(--blue-deep), var(--ink-2));
  border: 1px solid rgba(58, 147, 255, 0.35);
  box-shadow: var(--shadow-lg);
}
.cta-band__title { font-size: var(--fs-h2); }
.cta-band .lead { color: var(--text-on-dark-soft); margin-inline: auto; max-width: 40rem; }

/* ----------------------- Come funziona: steps ------------------- */
.steps { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: repeat(4, 1fr); }
.step {
  position: relative;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.85), rgba(231, 241, 255, 0.7));
  border: 1px solid rgba(0, 117, 247, 0.15);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 0.7rem 1.8rem rgba(6, 12, 26, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  height: 100%;
}
.step__num {
  display: inline-grid; place-items: center;
  width: 2.8rem; height: 2.8rem;
  border-radius: 50%;
  font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--shadow-blue);
  margin-bottom: 1rem;
}
.step__title { font-size: 1.08rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.step p { color: var(--text-soft); font-size: 0.96rem; }

/* ----------------------- Prezzi: plans -------------------------- */
.plans { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(231, 241, 255, 0.72));
  border: 1px solid rgba(0, 117, 247, 0.16);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.plan--featured {
  border-color: rgba(0, 117, 247, 0.55);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 117, 247, 0.35);
}
.plan__badge {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill); margin-bottom: 0.9rem;
}
.plan__name { font-size: 1.25rem; font-weight: 800; }
.plan__price { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); font-weight: 900; color: var(--blue-deep); margin: 0.5rem 0 0.2rem; }
.plan__price small { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.plan__desc { color: var(--text-soft); font-size: 0.95rem; }
.plan__list { display: grid; gap: 0.65rem; margin: 1.3rem 0; }
.plan__list li { position: relative; padding-left: 1.9rem; color: var(--text-soft); font-size: 0.95rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 0.1rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.plan .btn { margin-top: auto; }

/* Pacchetto unico: card singola centrata con elenco su due colonne */
.plans--single { display: block; max-width: 46rem; margin-inline: auto; }
.plan--single { text-align: left; }
.plan--single .plan__list { grid-template-columns: 1fr 1fr; column-gap: 1.6rem; }
@media (max-width: 40em) { .plan--single .plan__list { grid-template-columns: 1fr; } }

/* ----------------------------- FAQ ------------------------------ */
.faq { display: grid; gap: 0.8rem; max-width: 48rem; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--gray);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue-deep); transition: transform var(--t) var(--ease); flex: none; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }
.faq__a a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; }

/* ---------------------------- Footer ----------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  color: var(--text-on-dark-soft);
  padding-block: clamp(2.8rem, 6vw, 4.5rem) 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand { color: var(--text-on-dark); margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; font-size: 0.95rem; }
.footer-tcm {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin-top: 1.2rem; font-size: 0.9rem; color: var(--text-on-dark-soft);
}
.footer-tcm img { height: 2rem; width: auto; opacity: 0.95; }
.footer-col h4 { color: var(--text-on-dark); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--blue-bright); }
.footer-contact { display: grid; gap: 0.5rem; font-size: 0.95rem; }
.footer-contact a:hover { color: var(--blue-bright); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
}

/* Firma autore sotto al footer */
.site-credit {
  background: var(--ink);
  color: rgba(243, 246, 251, 0.5);
  text-align: center;
  font-size: 0.8rem;
  padding: 0.9rem var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-credit a {
  color: rgba(243, 246, 251, 0.78);
  font-weight: 600;
  text-decoration: none;
}
.site-credit a:hover { color: var(--blue-bright); text-decoration: underline; }

/* ------------------------------ FAB ------------------------------ */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--shadow-blue);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.fab:hover { transform: translateY(-0.25rem) scale(1.05); box-shadow: 0 1.4rem 3rem rgba(0, 117, 247, 0.5); }

/* --------------------------- Reveal anim -------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------- Breakpoints -------------------------- */
@media (max-width: 64em) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 52em) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; }
  .hero__grid--split { grid-template-columns: 1fr; }
  .hero__media { max-width: 28rem; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 32rem; margin-inline: auto; }
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 40em) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
