/* ==========================================================================
   Delta Software — Design System
   Palette e ritmo condivisi con le landing Delta Manager e AutoMate.
   ========================================================================== */

/* ---------- Font self-hosted: nessuna chiamata a Google, GDPR-safe ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-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;
}

/* ---------------------------------- Tokens --------------------------------
   Tema chiaro unico. Neutri leggermente freddi (base blu-ardesia) invece del
   grigio puro: è la differenza che fa leggere una pagina come "corporate"
   anziché come un template generico. Il rosso resta un accento di precisione,
   non un colore di riempimento.
   --------------------------------------------------------------------------- */
:root {
  /* --red è il rosso di marca: filetti, stati attivi, elementi decorativi.
     --red-text e --red-btn sono le varianti più profonde usate dove il rosso
     porta testo, per restare sopra il rapporto 4.5:1 richiesto da WCAG AA. */
  --red: #e53935;
  --red-text: #c62828;
  --red-on-tint: #b3211f;
  --red-btn: #d02f2c;
  --red-dark: #a81b18;
  --red-tint: rgba(214, 47, 44, .06);
  --red-tint-strong: rgba(214, 47, 44, .13);

  --ink: #0b1220;          /* nero-navy: più autorevole del nero puro */
  --ink-soft: #46536b;
  --ink-faint: #64708a;

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #eef1f6;
  --bg-alt: #0b1220;
  --bg-alt-2: #131c2e;
  --border: #e2e6ee;
  --border-soft: #edf0f5;
  --border-strong: #ccd3e0;

  --green: #12734a;
  --amber: #8a5a12;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Ombre a strati e molto trattenute: profondità percepita senza "alone". */
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 1px 1px rgba(11, 18, 32, .03);
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px -12px rgba(11, 18, 32, .18);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, .04), 0 24px 56px -24px rgba(11, 18, 32, .28);
  --shadow-red: 0 1px 2px rgba(168, 27, 24, .22), 0 8px 20px -10px rgba(168, 27, 24, .35);

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(68px, 9vw, 120px);

  color-scheme: light;
}

/* ---------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Cifre a larghezza fissa: prezzi e KPI restano allineati in colonna. */
  font-variant-numeric: tabular-nums;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Titoli: peso 700 invece di 800 e tracking negativo progressivo.
   Il grassetto estremo urla; il peso medio con crenatura stretta è la
   combinazione che si legge come "istituzionale". */
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em; line-height: 1.14; font-weight: 700; color: var(--ink);
  /* Righe bilanciate: evita l'ultima riga con una parola sola. */
  text-wrap: balance;
}
.lead, .section-head p { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 3.6vw, 2.85rem); letter-spacing: -.032em; line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.028em; line-height: 1.12; }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.45rem); letter-spacing: -.02em; }
h4 { font-size: 1.05rem; letter-spacing: -.015em; }
/* Titolo di terzo livello con peso visivo da h4: mantiene la gerarchia
   semantica corretta senza saltare da h2 a h4. */
h3.mini { font-size: 1.05rem; letter-spacing: -.015em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; color: var(--ink); }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------- Layout --------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-alt); color: #f2f4f8; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark p { color: #b8c0cd; }
.section--line { border-top: 1px solid var(--border); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 30px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

.stack-sm > * + * { margin-top: 12px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }

/* ------------------------------- Tipografia ------------------------------- */
/* Occhiello editoriale: filetto + maiuscoletto spaziato, non una pillola
   colorata. È il segnale tipografico che distingue una pagina istituzionale
   da una landing promozionale. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .715rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--red-text); margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--red); flex: none;
}
.eyebrow--plain { background: none; border: none; padding: 0; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: rgba(255, 255, 255, .55); }
.section-head.center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--ink-soft); line-height: 1.7; }
.small { font-size: .89rem; color: var(--ink-soft); }
.tiny { font-size: .8rem; color: var(--ink-faint); }
.hl { color: var(--red-text); }
.underline-red {
  background-image: linear-gradient(transparent 62%, var(--red-tint-strong) 62%);
  padding-inline: 2px;
}
.section-head { max-width: 48rem; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head.center { margin-inline: auto; }

/* --------------------------------- Bottoni -------------------------------- */
/* I bottoni non rimbalzano: cambiano colore e profondità. Il movimento
   verticale al passaggio del mouse è un vezzo da landing, qui pesa. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: .97rem;
  letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red-btn); color: #fff; border-color: var(--red-btn); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #17223a; border-color: #17223a; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-onlight { background: #fff; color: var(--red-text); border-color: #fff; box-shadow: var(--shadow-sm); }
.btn-onlight:hover { background: #f4f6fa; border-color: #f4f6fa; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .9rem; color: var(--red-text);
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------- Icone --------------------------------- */
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 22px; height: 22px; }

/* ----------------------------------- Nav ---------------------------------- */
.topbar {
  background: var(--bg-alt); color: #aab4c8; font-size: .8rem; font-weight: 500;
  letter-spacing: .005em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #e8ecf4; font-weight: 600; }
.topbar a:hover { color: #ff8a85; }
.topbar-list { display: flex; gap: 22px; align-items: center; }
@media (max-width: 860px) { .topbar-extra { display: none; } .topbar .wrap { justify-content: center; } }

#site-nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
#site-nav.is-stuck { border-bottom-color: var(--border); box-shadow: 0 1px 0 rgba(11,18,32,.04), 0 8px 24px -20px rgba(11,18,32,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 34px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-size: 1rem; font-weight: 700; letter-spacing: -.025em; }
.brand-txt span { font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  display: block; padding: 9px 11px; border-radius: var(--radius-sm); white-space: nowrap;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease, background-color .15s ease;
}
.nav-links > li > a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links > li > a.is-active { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .93rem; padding: 9px 12px; border-radius: 9px; }
.nav-tel:hover { background: var(--bg-soft); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  width: 44px; height: 44px; border-radius: 11px; cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 1300px) { .nav-tel { display: none; } }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 420px) { .nav-actions .btn { display: none; } }

.nav-drawer {
  display: none; border-top: 1px solid var(--border); background: var(--bg);
  padding: 18px var(--gutter) 26px;
}
.nav-drawer.is-open { display: block; }
.nav-drawer a.drawer-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px 0; border-bottom: 1px solid var(--border); font-weight: 700;
}
.nav-drawer a.drawer-link span { font-weight: 500; font-size: .84rem; color: var(--ink-faint); }
.nav-drawer .btn { margin-top: 18px; }

/* ---------------------------------- Hero ----------------------------------
   Fondo sobrio: una velatura fredda e una trama di punti finissima. Niente
   aloni rossi diffusi — il colore di marca resta concentrato dove serve.    */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 6.5vw, 88px) clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 72%);
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 88% -12%, rgba(214, 47, 44, .07), transparent 64%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--border-strong) .8px, transparent .8px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 78%);
  opacity: .5;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 35rem; margin-bottom: 30px; }
.hero-trust {
  list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .86rem; color: var(--ink-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--green); }

/* ------------------------------ Product cards ----------------------------- */
.product-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 38px); border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
/* Filetto di testata sempre visibile: identifica la scheda prodotto invece
   di comparire solo al passaggio del mouse. */
.product-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--red);
}
.product-card--dark { background: var(--bg-alt); border-color: #1e2941; color: #e9edf4; }
.product-card--dark h3 { color: #fff; }
.product-card--dark p,
.product-card--dark li,
.product-card--dark .feature-list li { color: #c2cad8; }
.product-card--dark strong,
.product-card--dark .feature-list strong { color: #fff; }
.product-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.product-logo .mark {
  width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--red-text); font-size: 1.2rem;
}
.product-card--dark .product-logo .mark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #ff8a85; }
.product-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.product-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.product-card--dark .product-kicker { color: #8b96ab; }
.product-price { display: flex; align-items: baseline; gap: 9px; margin: 6px 0 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.product-card--dark .product-price { border-color: rgba(255, 255, 255, .1); }
.product-price b { font-size: 2.1rem; font-weight: 700; letter-spacing: -.04em; }
.product-price span { font-size: .9rem; color: var(--ink-soft); }
.product-card--dark .product-price span { color: #9aa5ba; }
.feature-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.feature-list .icon { color: var(--green); margin-top: 5px; }
.product-card--dark .feature-list .icon { color: #4fd08c; }
.product-card .btn-row { margin-top: auto; }

/* -------------------------------- Cards ----------------------------------- */
.card {
  padding: clamp(24px, 2.6vw, 32px); border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  transition: box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card--hover:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card--soft { background: var(--bg-soft); }
.card p { color: var(--ink-soft); font-size: .94rem; }
/* Icone in cornice neutra con il solo tratto rosso: l'alone colorato dietro
   ogni icona è la firma dei template, non dei siti aziendali. */
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--red-text); margin-bottom: 20px;
}
.card--soft .card-icon { background: var(--bg); }
.card-num {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-text); display: block; margin-bottom: 12px;
}

/* --------------------------- Servizi (lista ricca) ------------------------- */
.service-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--border);
  transition: background-color .18s ease;
}
.service-row:first-of-type { border-top: 1px solid var(--border); }
.service-row:hover { background: var(--bg-soft); }
.service-row .card-icon { margin: 0; width: 52px; height: 52px; }
.service-row h3 { margin: 0 0 4px; font-size: 1.2rem; }
.service-row p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 52px 1fr; gap: 16px; }
  .service-row .link-arrow { grid-column: 2; }
}

/* -------------------------------- Confronto -------------------------------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: clamp(26px, 3vw, 36px); }
.compare-col + .compare-col { border-left: 1px solid var(--border); }
@media (max-width: 720px) { .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--border); } }
.compare-col--bad { background: var(--bg-soft); }
.compare-col--good { background: var(--bg); position: relative; }
.compare-col--good::before { content: ''; position: absolute; inset-block: 0; left: 0; width: 3px; background: var(--red); }
@media (max-width: 720px) { .compare-col--good::before { inset: 0 0 auto 0; width: auto; height: 3px; } }
.compare h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.06rem; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.compare li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; color: var(--ink-soft); }
.mark-no { color: var(--ink-faint); margin-top: 4px; }
.mark-yes { color: var(--green); margin-top: 4px; }

/* --------------------------------- Steps ----------------------------------- */
.steps { counter-reset: s; display: grid; gap: clamp(20px, 2.6vw, 28px); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--ink); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: -1px; left: 0; transform: translateY(-50%);
  background: var(--bg); padding-right: 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--red-text);
}
.section--soft .step::before { background: var(--bg-soft); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ---------------------------------- FAQ ------------------------------------ */
.faq { max-width: 62rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 24px 2px; text-align: left; font-size: 1.02rem; font-weight: 600; line-height: 1.45; letter-spacing: -.012em;
}
.faq-q:hover { color: var(--red-text); }
.faq-q .plus { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: var(--red-text); transition: transform .22s ease; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 46px 24px 2px; color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* --------------------------------- Form ------------------------------------ */
.form-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .req { color: var(--red-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .96rem;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: var(--bg);
  box-shadow: 0 0 0 3px rgba(11, 18, 32, .09);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin-bottom: 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.consent a { color: var(--red-text); font-weight: 600; text-decoration: underline; }
.form-error, .form-ok { padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; margin-bottom: 20px; }
.form-error { background: var(--red-tint); color: var(--red-dark); border: 1px solid var(--red-tint-strong); }
.form-ok { background: rgba(18, 115, 74, .08); color: var(--green); border: 1px solid rgba(18, 115, 74, .22); }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: var(--red); }
.field-msg { font-size: .8rem; color: var(--red-text); margin-top: 6px; display: none; }
.field-invalid .field-msg { display: block; }

/* ------------------------------- Contatti ---------------------------------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .card-icon { width: 42px; height: 42px; margin: 0; }
.contact-item .k { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 2px; }
.contact-item .v { font-size: 1.04rem; font-weight: 600; letter-spacing: -.015em; }
.contact-item a.v:hover { color: var(--red-text); }

/* --------------------------------- CTA finale ------------------------------ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0b1220 0%, #16233d 100%);
  color: #fff; padding: clamp(38px, 5.5vw, 72px);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(720px 340px at 84% 0%, rgba(229, 57, 53, .42), transparent 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #c3cad6; }
.cta-note { font-size: .84rem; color: #8f98a8; margin-top: 18px; }
.cta-band .btn-row { margin-top: 30px; }

/* ---------------------------------- Footer --------------------------------- */
.site-footer { background: var(--bg-alt); color: #9aa2b0; font-size: .92rem; padding-block: clamp(48px, 6vw, 72px) 28px; }
.site-footer h3 { color: #fff; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #9aa2b0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-legal {
  margin-top: 42px; padding-top: 24px; border-top: 1px solid #262b35;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: .82rem; color: #79818f;
}
.footer-legal a { color: #79818f; }
address.nap { font-style: normal; line-height: 1.7; }

/* --------------------------- Sticky CTA mobile ----------------------------- */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 95;
  display: none; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 11px 6px 10px; font-size: .72rem; font-weight: 700; color: var(--ink-soft);
}
.mobile-bar a .icon { width: 21px; height: 21px; }
.mobile-bar a.is-primary { color: var(--red-text); }
.mobile-bar a + a { border-left: 1px solid var(--border); }
@media (max-width: 860px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 66px; }
}

/* -------------------------------- Reveal ----------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.22,.7,.3,1), transform .6s cubic-bezier(.22,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------- Mockup ---------------------------------- */
.mockup {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg); box-shadow: var(--shadow-lg);
}
.mockup-bar { display: flex; gap: 6px; padding: 12px 15px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mockup-body { padding: 22px; display: grid; gap: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi {
  padding: 15px; border-radius: 13px; background: var(--bg-soft); border: 1px solid var(--border);
}
.kpi b { display: block; font-size: 1.25rem; letter-spacing: -.03em; }
.kpi span { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.kpi em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--green); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 108px; padding: 14px; border-radius: 13px; background: var(--bg-soft); border: 1px solid var(--border); }
.bar-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--border-strong); animation: growBar .9s cubic-bezier(.22,.7,.3,1) backwards; }
.bar-chart i.hot { background: var(--red); }
@keyframes growBar { from { height: 4px !important; opacity: .3; } }
.rows { display: grid; gap: 9px; }
.row-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border); font-size: .84rem; }
.row-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.row-item .dot.amber { background: var(--amber); }
.row-item .tail { margin-left: auto; font-weight: 700; color: var(--ink-faint); font-size: .78rem; }

/* --------------------------------- Marquee --------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  font-size: .88rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.chip .icon { color: var(--red-text); }

/* --------------------------------- Prose ----------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 2em; }
.prose h3 { font-size: 1.16rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); font-size: .99rem; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; margin-bottom: 1.2em; }
.prose a { color: var(--red-text); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 700; }

/* ------------------------------- Breadcrumb -------------------------------- */
.breadcrumb { font-size: .82rem; color: var(--ink-faint); padding-block: 18px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--red-text); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--border-strong); }

/* --------------------------------- Utility --------------------------------- */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.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;
}

/* ----------------------------- Recensioni Google --------------------------- */
.reviews {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: .92rem; color: var(--ink-soft);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.reviews:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.reviews-g { display: flex; flex: none; }
.reviews-stars { display: inline-flex; gap: 2px; flex: none; }
.reviews-stars .star { width: 16px; height: 16px; fill: #f5a623; }
.reviews-stars .star--off { fill: var(--border-strong); }
.reviews-txt { white-space: nowrap; }
.reviews-txt b { color: var(--ink); font-weight: 700; }
.reviews-txt span { color: var(--ink-faint); }
.reviews-arrow { width: 16px; height: 16px; color: var(--red-text); }
.reviews:hover .reviews-arrow { transform: translateX(3px); }
.reviews-arrow { transition: transform .18s ease; }
@media (max-width: 460px) {
  .reviews { gap: 9px; padding: 10px 14px; font-size: .85rem; }
  .reviews-txt span { display: none; }
}
