/* ==========================================================================
   VOLTY · sito pubblico
   Design system e componenti. Nessuna dipendenza esterna.
   ========================================================================== */

/* Font ------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Token ------------------------------------------------------------------ */
:root {
  --navy-950: #071324;
  --navy-900: #0b1b30;
  --navy-850: #0f2440;
  --navy-800: #142c4b;
  --navy-700: #1e3a5f;
  --navy-600: #2b4a70;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --teal-500: #14b8a6;
  --teal-50: #f0fdfa;
  --violet-500: #8b5cf6;
  --violet-50: #f5f3ff;
  --green-600: #16a34a;
  --green-50: #f0fdf4;
  --red-600: #dc2626;
  --red-50: #fef2f2;

  --ink: #0f1f35;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgb(15 31 53 / 6%);
  --shadow-sm: 0 1px 3px rgb(15 31 53 / 8%), 0 8px 24px -12px rgb(15 31 53 / 12%);
  --shadow-md: 0 2px 6px rgb(15 31 53 / 6%), 0 18px 48px -20px rgb(15 31 53 / 22%);
  --shadow-lg: 0 4px 12px rgb(15 31 53 / 6%), 0 40px 80px -32px rgb(15 31 53 / 30%);
  --shadow-glow: 0 24px 80px -24px rgb(37 99 235 / 55%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --container-narrow: 780px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); letter-spacing: -0.033em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

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

a {
  color: var(--blue-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--blue-700); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--amber-500); }

strong, b { color: var(--ink); font-weight: 650; }

small { font-size: 0.875rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--amber-400); color: var(--navy-950); }

:focus-visible {
  outline: 3px solid rgb(37 99 235 / 45%);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Accessibilità ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* Elementi che compaiono solo se il contatto è configurato in config.js */
.wa-only,
.phone-only { display: none !important; }
.wa-only.is-on,
.phone-only.is-on { display: inline-flex !important; }
li.wa-only.is-on,
li.phone-only.is-on { display: list-item !important; }

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

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.section--flush-top { padding-top: 0; }
.section--soft { background: var(--bg-soft); }
.section--white { background: var(--surface); }

.section--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -10%, rgb(37 99 235 / 38%), transparent 70%),
    radial-gradient(700px 380px at 8% 110%, rgb(245 158 11 / 16%), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950) 70%);
  color: #c3d2e4;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark strong { color: #fff; }
.section--dark a { color: var(--amber-400); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }
.section--dark .section-head p { color: #a9bdd4; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 4px rgb(245 158 11 / 18%);
}
.section--dark .eyebrow { color: var(--amber-400); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.65; color: var(--body); }
.section--dark .lead { color: #b8c9dd; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: 1.5rem; }

/* Griglie ---------------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid--center { align-items: center; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 1.1fr 0.9fr; }
.grid-1-2 { grid-template-columns: 0.9fr 1.1fr; }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Bottoni ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; width: 18px; height: 18px; }

.btn--primary {
  --btn-bg: var(--amber-500);
  --btn-fg: var(--navy-950);
  box-shadow: 0 12px 28px -12px rgb(245 158 11 / 65%);
}
.btn--primary:hover { --btn-bg: var(--amber-400); box-shadow: 0 18px 34px -14px rgb(245 158 11 / 75%); }

.btn--blue {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  box-shadow: 0 12px 28px -12px rgb(37 99 235 / 60%);
}
.btn--blue:hover { --btn-bg: var(--blue-700); }

.btn--dark {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
}
.btn--dark:hover { --btn-bg: var(--navy-800); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface); --btn-fg: var(--ink); border-color: var(--navy-700); }

.btn--light {
  --btn-bg: rgb(255 255 255 / 10%);
  --btn-fg: #fff;
  --btn-border: rgb(255 255 255 / 28%);
  backdrop-filter: blur(8px);
}
.btn--light:hover { --btn-bg: rgb(255 255 255 / 18%); }

.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.04rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--blue-600);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(255 255 255 / 86%);
  border-bottom: 1px solid rgb(226 232 240 / 80%);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(15 31 53 / 35%); background: rgb(255 255 255 / 94%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}
.logo img { height: 34px; width: auto; }
.logo-word {
  margin-left: 2px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: var(--ink);
  line-height: 1;
}
.logo-word span { color: var(--amber-500); }
.logo:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #34445c;
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--blue-50); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 0.93rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  display: none;
  padding: 12px clamp(20px, 4vw, 32px) 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav nav { display: grid; gap: 4px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--blue-600); }
.mobile-nav .btn { margin-top: 18px; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .logo img { height: 30px; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 110px);
  background:
    radial-gradient(1100px 560px at 78% 0%, rgb(37 99 235 / 34%), transparent 62%),
    radial-gradient(760px 420px at 12% 100%, rgb(245 158 11 / 12%), transparent 60%),
    linear-gradient(155deg, var(--navy-850), var(--navy-950) 68%);
  color: #b9cade;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 70% at 50% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 30%, #000 20%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(245 158 11 / 24%), transparent 65%);
  filter: blur(20px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(36px, 5vw, 70px);
}
.hero h1 { color: #fff; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--amber-400) 10%, #ffd66b 55%, var(--amber-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .lead {
  max-width: 34rem;
  margin-top: 24px;
  color: #bdcee1;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
}
.hero .btn-row { margin-top: 32px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: #a7bad1;
}
.hero-note li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-note svg { width: 16px; height: 16px; color: var(--amber-400); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  color: #dbe6f3;
  font-size: 0.83rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}
.hero-badge b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--navy-950);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-badge b svg { width: 13px; height: 13px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 44rem; }
  .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding-block: 40px 56px; }
  .hero .btn-row .btn { width: 100%; }
  .hero-note { gap: 8px 16px; }
}

/* Barra funzioni sotto l'hero -------------------------------------------- */
.capability-bar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.capability-bar ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.capability-bar li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 22px 12px;
  border-right: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.capability-bar li:last-child { border-right: 0; }
.capability-bar svg { width: 19px; height: 19px; color: var(--blue-600); }
@media (max-width: 900px) {
  .capability-bar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-bar li { justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .capability-bar li:nth-child(2n) { border-right: 0; }
  .capability-bar li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 420px) {
  .capability-bar ul { grid-template-columns: 1fr; }
  .capability-bar li { border-right: 0; }
}

/* Card ------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card--flat { box-shadow: none; }
.card--soft { background: var(--bg); border-color: transparent; }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--amber { background: var(--amber-50); color: var(--amber-600); }
.icon-tile--blue { background: var(--blue-50); color: var(--blue-600); }
.icon-tile--teal { background: var(--teal-50); color: #0d9488; }
.icon-tile--violet { background: var(--violet-50); color: #7c3aed; }
.icon-tile--green { background: var(--green-50); color: var(--green-600); }
.icon-tile--navy { background: var(--blue-50); color: var(--navy-700); }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }
.card-link .link-arrow { margin-top: 18px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: #334155;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.pill--blue { background: var(--blue-50); color: var(--blue-700); }
.pill--amber { background: var(--amber-50); color: var(--amber-600); }
.pill--green { background: var(--green-50); color: var(--green-600); }
.pill--dark { background: rgb(255 255 255 / 10%); color: #fff; }
.pill svg { width: 14px; height: 14px; }

/* Liste con spunta ------------------------------------------------------- */
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: #3a4b61;
  font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .check-list li { color: #c5d5e6; }
.section--dark .check-list li::before { background-color: rgb(255 255 255 / 10%); }
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 720px) { .check-list--2 { grid-template-columns: 1fr; } }

/* Split / media ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.split--wide-left { grid-template-columns: 1.08fr 0.92fr; }
.split--wide-right { grid-template-columns: 0.92fr 1.08fr; }
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.split-copy h2 { margin-bottom: 18px; }
.split-copy .lead { margin-bottom: 26px; }
.split-copy .btn-row { margin-top: 30px; }

@media (max-width: 900px) {
  .split,
  .split--wide-left,
  .split--wide-right { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split-media { order: -1; }
}

.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(500px 300px at 80% 10%, rgb(37 99 235 / 12%), transparent 70%),
    linear-gradient(150deg, #eef3fa, #e6eef8);
  border: 1px solid #dde7f1;
}
.media-frame--dark {
  background:
    radial-gradient(500px 300px at 70% 0%, rgb(37 99 235 / 28%), transparent 70%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border-color: rgb(255 255 255 / 8%);
}
.media-frame--amber {
  background:
    radial-gradient(460px 280px at 80% 0%, rgb(245 158 11 / 20%), transparent 70%),
    linear-gradient(150deg, #fffaf0, #fdf1dc);
  border-color: #f3e3c3;
}

/* Mockup app ------------------------------------------------------------- */
.mock { position: relative; filter: drop-shadow(0 40px 60px rgb(3 12 26 / 35%)); }
.media-frame .mock { filter: drop-shadow(0 24px 40px rgb(15 31 53 / 18%)); }

.window {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: #f4f7fb;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #e6ecf4;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.dots i:nth-child(2) { background: #fbbf24; }
.dots i:nth-child(3) { background: #34d399; }
.window-url {
  flex: 1;
  max-width: 260px;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

.app { display: grid; grid-template-columns: 132px 1fr; min-height: 348px; background: #f6f9fd; }
.app-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 10px;
  background: var(--navy-900);
  color: #93a8c0;
}
.app-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px; color: #fff; }
.app-brand img { width: 22px; height: 22px; object-fit: contain; }
.app-brand span { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.app-nav { display: grid; gap: 2px; }
.app-nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 500;
  color: #9db1c7;
}
.app-nav span.on { background: rgb(37 99 235 / 26%); color: #fff; }
.app-nav span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.4px solid currentColor;
  opacity: 0.7;
}
.app-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 6%);
  color: #c4d3e4;
  font-size: 9.5px;
}
.app-user i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--navy-950);
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
}
.app-main { padding: 16px 16px 14px; min-width: 0; }
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.app-top h4 { margin: 0; font-size: 13.5px; letter-spacing: -0.02em; color: var(--ink); }
.app-top p { margin: 2px 0 0; font-size: 9.5px; color: #7b8ca3; }
.app-cta {
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--blue-600);
  color: #fff;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
}
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.kpi {
  padding: 9px 10px;
  border: 1px solid #e5ecf5;
  border-radius: 9px;
  background: #fff;
}
.kpi span { display: block; font-size: 8.5px; font-weight: 600; color: #7b8ca3; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi b { display: block; margin-top: 3px; font-size: 17px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.kpi small { display: block; margin-top: 4px; font-size: 8.5px; color: #94a3b8; }
.kpi--alert b { color: #dc2626; }

.app-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 10px; }
.app-panel { padding: 10px 11px; border: 1px solid #e5ecf5; border-radius: 10px; background: #fff; }
.app-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid #e5ecf5;
  border-radius: 9px;
  background: linear-gradient(90deg, #fff, #f7fbff);
  font-size: 8.5px;
  color: #7b8ca3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-foot b { font-size: 13px; letter-spacing: -0.03em; color: var(--ink); text-transform: none; }
.app-foot-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-left: auto; }
.app-foot-bars i { width: 7px; border-radius: 2px 2px 0 0; background: var(--blue-500); opacity: 0.7; }
.app-foot-bars i:nth-child(2n) { background: var(--amber-500); opacity: 0.85; }
.app-panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 9.5px; font-weight: 700; color: var(--ink); }
.app-panel-h span { color: #94a3b8; font-weight: 600; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #f1f5f9; }
.app-row:first-of-type { border-top: 0; }
.app-row div { min-width: 0; }
.app-row b { display: block; font-size: 9.5px; font-weight: 600; color: #22344c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row small { display: block; font-size: 8.5px; color: #94a3b8; }
.app-tag { flex: none; padding: 2px 6px; border-radius: 4px; background: var(--blue-50); color: var(--blue-700); font-size: 8px; font-weight: 700; }
.app-tag--amber { background: var(--amber-50); color: var(--amber-600); }
.app-tag--green { background: var(--green-50); color: var(--green-600); }
.app-amount { font-size: 20px; font-weight: 750; letter-spacing: -0.04em; color: var(--ink); }
.app-bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; margin-top: 10px; }
.app-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); opacity: 0.85; }
.app-bars i:nth-child(2n) { background: linear-gradient(180deg, var(--amber-400), var(--amber-500)); }

/* Card fluttuanti */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 9px 12px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 40px -14px rgb(3 12 26 / 45%);
  font-size: 10px;
  color: #334155;
}
.float-card b { display: block; font-size: 10.5px; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.float-card small { display: block; font-size: 8.5px; color: #7b8ca3; line-height: 1.35; }
.float-card .fc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--green-600);
}
.float-card .fc-icon svg { width: 14px; height: 14px; }
.float-card--sdi { top: -34px; right: -6px; }
.float-card--firma { bottom: -26px; right: -18px; }
.float-card--sdi .fc-icon { background: var(--blue-50); color: var(--blue-600); }
@media (max-width: 1100px) {
  .float-card--sdi { right: -2%; }
  .float-card--firma { left: -2%; }
}
@media (max-width: 620px) {
  .float-card { display: none; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 13px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: 1fr; }
  .window-url { display: none; }
}

/* Flusso di lavoro ------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  counter-reset: step;
}
.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.flow-step::after {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-200), rgb(203 213 225 / 40%));
}
.flow-step:last-child::after { display: none; }
.flow-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow-xs);
}
.flow-icon svg { width: 24px; height: 24px; }
.flow-step b { font-size: 0.9rem; color: var(--ink); letter-spacing: -0.01em; }
.flow-step small { font-size: 0.78rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.flow-step--end .flow-icon { background: var(--amber-500); border-color: var(--amber-500); color: var(--navy-950); }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 420px; margin-inline: auto; }
  .flow-step { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 12px 0; }
  .flow-icon { margin-bottom: 0; flex: none; width: 48px; height: 48px; border-radius: 14px; }
  .flow-step::after {
    top: auto;
    bottom: -2px;
    left: 23px;
    width: 2px;
    height: 24px;
    background: var(--line);
  }
  .flow-step:last-child::after { display: none; }
  .flow-step small { display: block; }
}

/* Riga statistiche / vantaggi -------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}
.metric { padding: 26px 24px; background: #fff; }
.metric b { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.metric span { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) { .metrics { grid-template-columns: 1fr; } }

/* Sezione AI ------------------------------------------------------------- */
.ai-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: clamp(36px, 6vw, 72px); }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

.ai-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%));
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 70%);
}
.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  font-size: 11px;
  font-weight: 650;
  color: #dbe7f4;
}
.ai-panel-head svg { width: 16px; height: 16px; color: var(--amber-400); }
.ai-panel-head span { margin-left: auto; font-size: 9.5px; color: #93a8c0; font-weight: 500; }
.ai-panel-body { padding: 18px; display: grid; gap: 12px; }
.ai-shot {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgb(0 0 0 / 22%);
  border: 1px solid rgb(255 255 255 / 8%);
}
.ai-photo {
  position: relative;
  height: 76px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgb(255 255 255 / 18%), transparent 45%),
    linear-gradient(145deg, #243b55, #101e30);
  overflow: hidden;
}
.ai-photo::before {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 4px;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px);
  background-size: 16px 16px;
}
.ai-photo::after {
  content: "";
  position: absolute;
  inset: 12px 22px;
  background: repeating-linear-gradient(0deg, var(--amber-400) 0 5px, transparent 5px 13px);
  opacity: 0.85;
  border-radius: 2px;
}
.ai-list { display: grid; gap: 6px; }
.ai-list span { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #c6d6e8; }
.ai-list span::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgb(34 197 94 / 18%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.ai-list span.warn::before {
  background: rgb(245 158 11 / 18%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v5M12 17h.01'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.ai-chat { display: grid; gap: 8px; }
.ai-bubble { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 10.5px; line-height: 1.5; }
.ai-bubble--user { justify-self: end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }
.ai-bubble--bot { background: rgb(255 255 255 / 9%); color: #d7e4f2; border-bottom-left-radius: 4px; }
.ai-credits { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 10px; color: #a9bdd4; }
.ai-credits b { color: var(--amber-400); }
.ai-credits svg { width: 14px; height: 14px; color: var(--amber-400); }

/* Prezzi ----------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.price-card--featured {
  border-color: var(--navy-700);
  box-shadow: 0 30px 60px -30px rgb(15 31 53 / 35%);
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.price-card--featured .price-name { color: var(--blue-700); }
.price-badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber-100);
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-name { margin: 0 0 6px; font-size: 1.32rem; letter-spacing: -0.02em; }
.price-desc { min-height: 3.2em; margin: 0 0 16px; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.price-value { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-value b { font-size: 1.9rem; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.price-value span { font-size: 0.82rem; color: var(--muted); }
.price-foot { margin: 4px 0 18px; font-size: 0.78rem; color: #94a3b8; }
.price-card .btn { order: 2; margin-top: auto; }
.price-card ul { order: 1; margin: 18px 0 18px; }
.price-card li { font-size: 0.9rem; color: #3a4b61; }

.plan-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.92rem; }
.plan-table th, .plan-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.plan-table thead th { position: sticky; top: 0; background: var(--bg-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #475569; }
.plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table td:not(:first-child), .plan-table th:not(:first-child) { text-align: center; width: 15%; }
.plan-table .yes { color: var(--green-600); font-weight: 700; }
.plan-table .no { color: #cbd5e1; }
.plan-table tbody tr:hover { background: #fbfdff; }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f35' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 11px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.97rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* CTA finale ------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 300px at 92% 0%, rgb(245 158 11 / 32%), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: #c3d2e4;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(60% 120% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(60% 120% at 100% 0%, #000, transparent 70%);
}
.cta-band h2 { color: #fff; max-width: 18ch; margin-bottom: 14px; }
.cta-band p { max-width: 52ch; color: #bdcde0; }
.cta-band .btn-row { margin-top: 28px; }
.cta-band--split { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 36px; }
.cta-band--split .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 820px) {
  .cta-band--split { grid-template-columns: 1fr; }
  .cta-band--split .btn-row { justify-content: flex-start; }
}

/* Articoli / prosa ------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: #cbd5e1; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-600); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 82px) clamp(40px, 5vw, 62px);
  background:
    radial-gradient(900px 380px at 85% -20%, rgb(37 99 235 / 14%), transparent 65%),
    linear-gradient(180deg, #f4f8fd, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 62ch; margin-top: 18px; }
.page-hero .hero-note { color: #55677d; }
.page-hero .hero-note svg { color: var(--amber-600); }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }

.prose { max-width: 72ch; }
.prose > p, .prose > ul, .prose > ol { color: #37475c; }
.prose h2 { margin-top: 2.4em; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--amber-500);
  border-radius: 0 12px 12px 0;
  background: var(--amber-50);
  color: #4a3a1f;
  font-size: 1.02rem;
}
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.prose .callout {
  margin: 2em 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.prose .callout strong { display: block; margin-bottom: 6px; }
.prose .callout p { margin: 0; font-size: 0.95rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 5vw, 64px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 18px; }
.article-aside .card { padding: 22px; }
.article-aside h3 { font-size: 1rem; }
.toc { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.88rem; }
.toc li { margin: 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue-600); }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: 2; }
}

/* Guide hub -------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .post-cover {
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  padding: 20px;
  background:
    radial-gradient(300px 160px at 90% 0%, rgb(245 158 11 / 26%), transparent 70%),
    linear-gradient(150deg, var(--navy-700), var(--navy-950));
  color: #fff;
}
.post-card .post-cover--blue {
  background:
    radial-gradient(300px 160px at 90% 0%, rgb(37 99 235 / 50%), transparent 70%),
    linear-gradient(150deg, #1d4ed8, var(--navy-950));
}
.post-card .post-cover--amber {
  background:
    radial-gradient(300px 160px at 90% 0%, rgb(245 158 11 / 45%), transparent 70%),
    linear-gradient(150deg, #b45309, var(--navy-900));
}
.post-card .post-cover span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* Anteprima documento (guide / checklist) --------------------------------- */
.mock-doc { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); }
.mock-doc-head { display: flex; gap: 5px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #dbe3ed; }
.mock-doc-body { display: grid; gap: 15px; padding: 24px; }
.mock-line { height: 8px; border-radius: 4px; background: #e2e8f0; }
.mock-line--title { width: 54%; height: 11px; background: #c7d2e0; margin-bottom: 6px; }
.mock-check { display: flex; gap: 10px; align-items: flex-start; }
.mock-check > span { flex: none; width: 18px; height: 18px; border: 2px solid #b8c8db; border-radius: 5px; }
.mock-check b { display: block; font-size: 0.8rem; line-height: 1.3; color: var(--ink); }
.mock-check i { display: block; width: 120px; height: 6px; margin-top: 6px; border-radius: 3px; background: #e8eef6; }
.post-card .post-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-card h3 { font-size: 1.16rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-700); }
.post-card p { font-size: 0.92rem; color: var(--muted); }
.post-card .link-arrow { margin-top: auto; padding-top: 16px; }

/* Form ------------------------------------------------------------------- */
.form-card {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field label { font-size: 0.87rem; font-weight: 600; color: #334155; }
.field label .req { color: var(--red-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
  line-height: 1.4;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 12%);
}
.field input:user-invalid { border-color: #f87171; }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue-600); }
.field--check label { font-size: 0.84rem; font-weight: 450; color: var(--muted); line-height: 1.55; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--error { background: var(--red-50); color: #991b1b; }
.form-status--ok { background: var(--green-50); color: #14532d; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact-aside { display: grid; gap: 18px; }
.contact-aside .card { padding: 24px; }
@media (max-width: 980px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.contact-list .icon-tile { margin: 0; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.contact-list b { display: block; font-size: 0.9rem; }
.contact-list a, .contact-list span { font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--blue-600); text-decoration: underline; }

.link-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 0.9rem; }
.link-list li { margin: 0; }
.link-list a { color: var(--blue-700); text-decoration: none; }
.link-list a:hover { text-decoration: underline; }

.steps { counter-reset: s; display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; margin: 0; padding-left: 54px; }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--navy-950);
  font-size: 0.95rem;
  font-weight: 750;
}
.steps b { display: block; color: var(--ink); }
.steps span { font-size: 0.92rem; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-block: clamp(48px, 6vw, 72px) 32px;
  background:
    radial-gradient(700px 320px at 90% 0%, rgb(37 99 235 / 18%), transparent 65%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #93a8c0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; color: #8ea4bd; font-size: 0.88rem; line-height: 1.65; }
.footer-brand .pill { margin-top: 14px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer-links li { margin: 0; }
.footer-links a { color: #9db1c7; text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 26px;
  font-size: 0.78rem;
  color: #7a90a9;
}
.footer-bottom a { color: #8ea4bd; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Barra mobile / WhatsApp ------------------------------------------------ */
.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 96%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgb(15 31 53 / 30%);
  backdrop-filter: blur(10px);
}
.mobile-cta .btn { flex: 1; min-height: 46px; padding: 10px 14px; font-size: 0.9rem; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 89;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #06381a;
  box-shadow: 0 14px 30px -10px rgb(37 211 102 / 60%);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); color: #06381a; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .wa-float { bottom: 82px; right: 14px; width: 46px; height: 46px; } }

/* Checklist stampabile --------------------------------------------------- */
.container--narrow { max-width: 900px; }
.checklist-sheet {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--navy-900);
}
.checklist-head > div:first-child { flex: 1 1 320px; }
.checklist-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.checklist-fields { flex: 0 0 auto; display: grid; gap: 6px; font-size: 0.8rem; color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .checklist-fields { text-align: left; white-space: normal; }
}
.checklist-group {
  margin: 30px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.checklist-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.82rem;
}
.checklist-note p { margin: 0; }
.checklist-sign {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
.checklist-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist-item::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 2px solid var(--line-strong);
  border-radius: 5px;
}
.checklist-item b { display: block; color: var(--ink); font-size: 0.97rem; }
.checklist-item span { display: block; font-size: 0.86rem; color: var(--muted); }

/* Privacy / legali ------------------------------------------------------- */
.legal { max-width: 78ch; font-size: 0.96rem; }
.legal h2 { margin-top: 2.2em; font-size: 1.4rem; }
.legal h3 { margin-top: 1.6em; font-size: 1.08rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.88rem; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); }

/* Utility ---------------------------------------------------------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-row li { margin: 0; }
.tag {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 550;
  color: #475569;
}
.divider { height: 1px; background: var(--line); margin-block: clamp(40px, 5vw, 64px); }
.note { font-size: 0.82rem; color: var(--muted); }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

/* Animazioni ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

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

/* Stampa ----------------------------------------------------------------- */
@media print {
  @page { margin: 10mm 12mm; }
  .site-header, .site-footer, .mobile-cta, .wa-float, .no-print, .btn { display: none !important; }
  body { padding: 0; background: #fff; font-size: 10pt; }
  .page-hero { padding: 0 0 8pt; background: none; border: 0; }
  .page-hero h1 { font-size: 22pt; }
  .page-hero .lead { margin-top: 6pt; font-size: 9pt; }
  .section { padding: 8pt 0; }
  a { color: inherit; text-decoration: none; }
  .page-checklist .checklist-sheet { padding: 0; border: 0; box-shadow: none; }
  .page-checklist .checklist-head { gap: 6pt 20pt; padding-bottom: 6pt; break-after: avoid; }
  .page-checklist .checklist-head h2 { font-size: 14pt; }
  .page-checklist .checklist-fields { gap: 3pt; font-size: 8.5pt; }
  .page-checklist .checklist-group { margin: 10pt 0 2pt; padding-bottom: 2pt; font-size: 8pt; break-after: avoid; }
  .page-checklist .checklist-item { break-inside: avoid; padding: 4pt 0; }
  .page-checklist .checklist-item b { font-size: 9.5pt; }
  .page-checklist .checklist-item span { margin-top: 1pt; font-size: 8.5pt; }
  .page-checklist .checklist-note { margin-top: 10pt; padding: 8pt 10pt; font-size: 8.5pt; }
  .page-checklist .checklist-sign { margin-top: 10pt; padding-top: 8pt; font-size: 8.5pt; }
}
