/* ==========================================================================
   Webtrina — foglio di stile principale
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef2ff;
  --ink: #0d1120;
  --ink-2: #2a3045;
  --muted: #545b70;
  --line: #e4e7f0;
  --accent: #2f5bff;
  --accent-hover: #1e44e6;
  --accent-soft: #e9eeff;
  --accent-2: #00c2a8;
  --wa: #25d366;
  --wa-ink: #05290f;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 17, 32, .06), 0 1px 3px rgba(13, 17, 32, .05);
  --shadow: 0 4px 12px rgba(13, 17, 32, .06), 0 12px 32px rgba(13, 17, 32, .07);
  --shadow-lg: 0 20px 60px rgba(25, 40, 110, .16);
  --container: 1160px;
  --gutter: 20px;
  --nav-h: 68px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

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

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 91, 255, .32);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(47, 91, 255, .38);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 6px 18px rgba(37, 211, 102, .3);
}
.btn-wa:hover {
  background: #1fc15b;
  color: var(--wa-ink);
  transform: translateY(-2px);
}

.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; white-space: nowrap; }
@media (max-width: 379px) { .nav-cta { padding: 10px 14px; font-size: .875rem; } .logo { font-size: 1.15rem; } }
.btn-block { width: 100%; }

/* ---------- Etichette / intestazioni sezione ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #2449e0;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }

.section-cta {
  margin-top: 48px;
  text-align: center;
}
.section-cta p { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(13, 17, 32, .05); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; }

.nav-main { display: none; margin-left: auto; }
.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }

.nav-cta { margin-left: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { 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-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 99;
  padding: 12px var(--gutter) 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin: 0 0 12px; padding: 0; list-style: none; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 980px) {
  .nav-main { display: block; }
  .nav-links { display: flex; }
  .nav-cta { margin-left: 8px; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(47, 91, 255, .12), transparent 60%),
    radial-gradient(700px 400px at 0% 90%, rgba(0, 194, 168, .10), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 .hl {
  color: var(--accent);
  white-space: nowrap;
}
.hero h1 .vat {
  font-size: .5em;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--muted);
  white-space: nowrap;
}

.hero-sub {
  max-width: 34em;
  margin-bottom: 28px;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9375rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-note { margin: 14px 0 0; font-size: .875rem; color: var(--muted); }
.hero-tagline {
  max-width: 34em;
  margin: -12px 0 28px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: 1rem;
}
.hero-tagline strong { color: var(--ink); }

@media (max-width: 559px) {
  .hero-ctas .btn { width: 100%; }
}

@media (min-width: 980px) {
  .hero { padding: calc(var(--nav-h) + 72px) 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Mockup laptop + smartphone ---------- */
.mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 28px;
}

.laptop { position: relative; width: 88%; }
.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 3.2% 3.2% 0;
  border-radius: 16px 16px 0 0;
  background: #161a2b;
  box-shadow: var(--shadow-lg);
}
.laptop-base {
  position: relative;
  width: 112%;
  height: 16px;
  margin-left: -6%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(#e5e8f0, #c7ccd9);
  box-shadow: 0 14px 30px rgba(13, 17, 32, .14);
}
.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 18%; height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #b5bbcb;
}

.phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 30%;
  aspect-ratio: 9 / 19;
  padding: 7px;
  border-radius: 26px;
  background: #161a2b;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  z-index: 2;
  width: 30%; height: 7px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #161a2b;
}

/* Screenshot reali dentro i dispositivi */
.laptop-screen img,
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background: #f3efe8;
}
.laptop-screen img { border-radius: 6px 6px 0 0; }
.phone img { border-radius: 20px; }

.mockup-badge {
  position: absolute;
  left: -4px; bottom: 6%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
}
.mockup-badge .icon {
  width: 34px; height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: #e6faf6;
  color: #00866f;
}
.mockup-badge small { display: block; color: var(--muted); font-weight: 600; }

@media (min-width: 980px) {
  .mockup-badge { left: -28px; }
}

/* ---------- Demo ---------- */
.demo-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .demo-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.demo-card:hover, .demo-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.demo-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 12px 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.demo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .5s ease;
}
.demo-card:hover .demo-preview img { transform: scale(1.03); }

.demo-tag {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 17, 32, .82);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.demo-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}
.demo-info .demo-cat {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.demo-info h3 { margin: 0 0 6px; font-size: 1.125rem; }
.demo-card-cta { justify-content: center; background: var(--ink); border-color: var(--ink); }
.demo-card-cta .demo-info { justify-content: center; padding: 32px 28px; }
.demo-card-cta .demo-cat { color: #9ea6c0; }
.demo-card-cta h3 { color: #fff; font-size: 1.5rem; }
.demo-card-cta p:not(.demo-cat) { color: #c9cee0; margin-bottom: 20px; }
.demo-feat { margin: 0 0 16px; color: var(--accent); font-size: .875rem; font-weight: 600; }
.demo-info .btn { margin-top: auto; align-self: flex-start; }
/* tutta la card cliccabile */
.demo-info .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

/* ---------- Come funziona ---------- */
.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 91, 255, .28);
}
.step-icon .icon { width: 28px; height: 28px; }
.step-num {
  position: absolute;
  top: 24px; right: 28px;
  color: var(--line);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.step h3 { margin-bottom: 8px; font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Cosa è incluso ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) { .features { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.feature {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: #c8d2ff; transform: translateY(-2px); }
.feature .icon {
  width: 46px; height: 46px;
  margin-bottom: 14px;
  padding: 11px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }

/* ---------- Prezzi ---------- */
.pricing {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.plan-name {
  margin: 0 0 6px;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plan-desc { margin: 0 0 20px; color: var(--muted); font-size: .9375rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.plan-price strong { font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-year { margin: 10px 0 24px; color: var(--muted); font-size: .875rem; }

.plan-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan-list li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.45; }
.plan-list .icon {
  width: 20px; height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.plan-list li.plan-all { font-weight: 700; }
.plan .btn { margin-top: auto; }

.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .plan-featured { padding: 44px 30px; }
}
.plan-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(47, 91, 255, .3);
}

.pricing-notes {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
  color: var(--ink-2);
  font-size: .9375rem;
}
.pricing-notes p { margin: 0; }
.pricing-notes p + p { margin-top: 6px; color: var(--muted); }

/* ---------- Quello che non vedi ---------- */
.backstage {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) { .backstage { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .backstage { grid-template-columns: repeat(3, 1fr); } }
.backstage li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.backstage .icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.backstage h3 { margin: 2px 0 6px; font-size: 1.0625rem; }
.backstage p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

/* ---------- Confronto fai da te / Webtrina ---------- */
.compare {
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: .9375rem;
  line-height: 1.45;
}
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare thead th.is-us { color: var(--accent); }
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare td { color: var(--muted); }
.compare td.is-us { color: var(--ink); font-weight: 600; }
.compare .is-us { background: #f7f9ff; }
.compare td .icon {
  display: inline-block;
  width: 20px; height: 20px;
  margin: 0 10px -4px 0;
  padding: 3px;
  border-radius: 50%;
}
.compare .icon.yes { background: var(--accent); color: #fff; }
.compare .icon.no { background: #eceef3; color: #8a90a2; }
.compare .icon.mid { background: #fff1d6; color: #a86a00; }

@media (max-width: 699px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; padding: 0; border: 0; }
  .compare tbody th { margin-bottom: 10px; font-size: 1rem; }
  .compare td { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; padding: 8px 10px; border-radius: 10px; }
  .compare td::before { content: attr(data-label); flex-basis: 100%; margin-bottom: 2px; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .compare td.is-us::before { color: var(--accent); }
  .compare td .icon { margin-top: 0; flex: none; }
  .compare td:not(.is-us) { background: transparent; }
}

/* ---------- Recensioni (nascoste finché non arrivano quelle vere) ---------- */
.reviews-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.review blockquote { margin: 0 0 16px; font-size: 1.0625rem; }
.review figcaption { color: var(--muted); font-size: .9375rem; }
.review figcaption strong { display: block; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq details + details { margin-top: 12px; }
.faq details[open] { border-color: #c8d2ff; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  width: 32px; height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  transition: transform .25s ease, background-color .2s, color .2s;
}
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq .faq-body { padding: 0 22px 20px; color: var(--ink-2); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- Contatti ---------- */
.contact {
  display: grid;
  gap: 32px;
}
/* Mobile: intro → modulo → WhatsApp/chiamata. Desktop: intro e WhatsApp a sinistra, modulo a destra. */
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 5fr 7fr;
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 8px;
    align-items: start;
  }
  .contact-intro { grid-column: 1; grid-row: 1; }
  .form-card { grid-column: 2; grid-row: 1 / span 2; }
  .contact-extra { grid-column: 1; grid-row: 2; margin-top: 16px; }
}

.contact-intro h2 { margin-bottom: 14px; }
.contact-intro > p { color: var(--ink-2); font-size: 1.125rem; }
.contact-intro .reply-time { margin-bottom: 0; }
.reply-time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #e6faf6;
  color: #00664f;
  font-weight: 700;
}
.reply-time .icon { width: 20px; height: 20px; }

.wa-box {
  scroll-margin-top: 90px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}
.wa-box p { margin: 0 0 16px; color: #c9cee0; }
.wa-box strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.125rem; }
.wa-box .wa-note { margin: 12px 0 0; text-align: center; font-size: .875rem; color: #9aa1b8; }
.send-list { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.send-list li { display: flex; gap: 12px; align-items: flex-start; color: #c9cee0; font-size: .9375rem; line-height: 1.45; }
.send-list b { color: #fff; }
.send-list .icon {
  flex: none;
  width: 32px; height: 32px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(0, 194, 168, .14);
  color: var(--accent-2);
}

.form-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
@media (min-width: 560px) { .form-card { padding: 36px; } }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: .9375rem;
}
.field label .opt { color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #cfd4e2;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* evita lo zoom automatico su iOS */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23545b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, .16);
}
.field.has-error input,
.field.has-error select { border-color: #c62828; }
.field-error { margin: 6px 0 0; color: #b3261e; font-size: .875rem; font-weight: 600; }
.field-error:empty { display: none; }

.field .check,
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-2);
}
.check input {
  flex: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.plan-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #1f3fc4;
  font-weight: 700;
  font-size: .9375rem;
}
.plan-chosen[hidden] { display: none; }
.plan-chosen button {
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.field-hint {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.field-hint .icon { flex: none; width: 18px; height: 18px; color: var(--accent); }

.form-foot { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .875rem; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-error { background: #fdecea; color: #8c1d18; }

.form-success { text-align: center; padding: 24px 8px; }
.form-success[hidden] { display: none; }
.form-success .icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  padding: 16px;
  border-radius: 50%;
  background: #e6faf6;
  color: #00866f;
}
.form-success p { color: var(--ink-2); }
.form-success .success-next {
  max-width: 440px;
  margin: 20px auto 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
}
.form-success .btn-wa .icon { width: 20px; height: 20px; margin: 0; padding: 0; border-radius: 0; background: none; color: inherit; }

.hp { position: absolute; left: -9999px; }


/* ---------- Chiamata gratuita di 10 minuti ---------- */
.hero-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: .9375rem;
  text-decoration: none;
}
.hero-call .icon {
  width: 34px; height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.hero-call strong { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(47, 91, 255, .45); text-underline-offset: 4px; }
.hero-call:hover strong { color: var(--accent); }

.call-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.call-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.call-box strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; }
.call-box p { margin: 0 0 14px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

.contact-pref { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-pref legend { margin-bottom: 8px; padding: 0; font-weight: 700; font-size: .9375rem; }
.pref-options { display: grid; gap: 10px; }
@media (min-width: 560px) { .pref-options { grid-template-columns: 1fr 1fr; } }
.field .pref,
.pref {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1.5px solid #cfd4e2;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.pref input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.pref strong { display: block; font-size: .9375rem; }
.pref small { display: block; color: var(--muted); font-size: .8125rem; }
.pref:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.call-time { margin-top: 12px; }
.call-time[hidden] { display: none; }

/* ---------- Settori ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .sectors { grid-template-columns: repeat(5, 1fr); } }
.sectors a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.sectors a:hover { border-color: #c8d2ff; transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
.sectors .icon {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.sectors small { display: block; margin-top: -4px; color: var(--muted); font-weight: 500; font-size: .8125rem; }

/* ---------- Pagine di settore ---------- */
.split-2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split-2 { grid-template-columns: 1fr 1fr; gap: 64px; } }
.crumbs { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.sector-hero { padding: calc(var(--nav-h) + 40px) 0 72px; background:
    radial-gradient(800px 420px at 90% 0%, rgba(47, 91, 255, .10), transparent 60%),
    radial-gradient(600px 360px at 0% 100%, rgba(0, 194, 168, .08), transparent 60%), var(--bg); }
.sector-hero .hero-grid { gap: 40px; }
.sector-hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); }
.sector-hero h1 .hl { color: var(--accent); }
.sector-shot { position: relative; }
.sector-shot img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.sector-shot .demo-tag { top: 14px; right: 14px; }
.sector-art {
  display: grid; place-items: center;
  aspect-ratio: 16 / 11;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.sector-art .icon { width: 30%; height: 30%; stroke-width: 1.4; }
@media (max-width: 859px) { .sector-art { display: none; } }
@media (min-width: 860px) { .features-3 { grid-template-columns: repeat(3, 1fr); } }

.needs { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .needs { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.needs li { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.needs .num { display: block; margin-bottom: 14px; color: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: .08em; }
.needs h3 { margin-bottom: 8px; }
.needs p { margin: 0; color: var(--muted); }

.plan-reco {
  display: grid;
  gap: 24px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 32px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
@media (min-width: 800px) { .plan-reco { grid-template-columns: 1.4fr 1fr; padding: 40px; } }
.plan-reco h3 { margin-bottom: 8px; font-size: 1.5rem; }
.plan-reco p { color: var(--ink-2); }
.plan-reco .price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; }
.plan-reco .price span { color: var(--muted); font-weight: 600; }
.plan-reco .small { margin: 6px 0 18px; color: var(--muted); font-size: .875rem; }
.plan-reco .actions { display: grid; gap: 10px; }

.other-sectors { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.other-sectors a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.other-sectors a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #c9cee0;
  font-size: .9375rem;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li + li { margin-top: 8px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem;
  color: #a9afc4;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- WhatsApp flottante ---------- */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 8px 24px rgba(13, 17, 32, .22);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); color: var(--wa-ink); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 150;
  max-width: 560px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 60px rgba(13, 17, 32, .22);
  font-size: .9375rem;
}
.cookie-banner[hidden] { display: none; }
@media (min-width: 640px) { .cookie-banner { left: 24px; bottom: 24px; right: auto; } }
.cookie-banner h2 { margin: 0 0 8px; padding-right: 36px; font-size: 1.125rem; }
.cookie-banner p { margin: 0 0 16px; color: var(--ink-2); }
.cookie-close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}
.cookie-close .icon { width: 18px; height: 18px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 140px; min-height: 48px; }
.cookie-prefs { margin: 0 0 16px; padding: 0; border: 0; }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.cookie-prefs input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cookie-prefs small { display: block; color: var(--muted); }

/* ---------- Animazioni allo scroll (sobrie) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Pagine legali / semplici ---------- */
.page {
  padding: calc(var(--nav-h) + 48px) 0 80px;
}
.page .container { max-width: 800px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page h2 { margin-top: 2em; font-size: 1.4rem; }
.page p, .page li { color: var(--ink-2); }
.page .note {
  padding: 16px 20px;
  border-left: 4px solid #f0a500;
  border-radius: 8px;
  background: #fff8e6;
  color: #5c4100;
}
.page table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9375rem; }
.page th, .page td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.page th { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }
/* Pagine legali: header con solo logo e pulsante */
.nav-inner > .nav-cta:last-child { margin-left: auto; }
.legal-meta { color: var(--muted); font-size: .9375rem; }
@media (max-width: 560px) { .legal th, .legal td { padding: 8px; font-size: .8125rem; } }
.legal h2 { scroll-margin-top: calc(var(--nav-h) + 16px); }
.toc {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.toc li { margin: 0 0 6px; font-size: .9375rem; break-inside: avoid; }
.legal-form {
  padding: 20px 24px;
  border: 1px dashed #cfd4e2;
  border-radius: var(--radius);
}

/* ---------- Telefono: home più compatta e ordinata ---------- */
.rail-dots { display: none; }
@media (max-width: 639px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 1.75rem; }
  .section-head p { font-size: 1rem; }
  .section-cta { margin-top: 28px; }

  /* Hero: meno testo, punti chiave come etichette */
  .hero-note { display: none; }
  .hero-tagline { font-size: .9375rem; }
  .hero-points { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero-points li {
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: .8125rem;
  }

  /* Liste lunghe → caroselli orizzontali */
  .demo-grid, .backstage, .pricing, .compare tbody {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .demo-grid::-webkit-scrollbar, .backstage::-webkit-scrollbar,
  .pricing::-webkit-scrollbar, .compare tbody::-webkit-scrollbar { display: none; }
  .demo-grid > *, .backstage > *, .pricing > *, .compare tbody > tr { scroll-snap-align: start; }
  .demo-grid .reveal, .backstage .reveal, .pricing .reveal { opacity: 1; transform: none; }

  .demo-card:hover, .demo-card:focus-within { transform: none; }
  .demo-info { padding: 14px 16px 16px; }
  .demo-info .btn { align-self: flex-start; }

  .backstage li { flex-direction: column; gap: 12px; padding: 22px; }

  .pricing { padding-top: 20px; align-items: stretch; }
  .plan { padding: 26px 22px; }

  /* Confronto: una scheda per argomento */
  .compare { overflow: visible; border: 0; background: none; box-shadow: none; }
  .compare table { display: block; }
  .compare tbody tr {
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--line); }

  /* Pallini sotto i caroselli */
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; }
  .rail-dots span {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: #cdd2e0;
    transition: width .25s, background .25s;
  }
  .rail-dots span.on { width: 20px; background: var(--accent); }

  /* Settori: etichette compatte che scorrono di lato su tre righe */
  .sectors {
    grid-template-columns: none;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sectors::-webkit-scrollbar { display: none; }
  .sectors a {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    font-size: .875rem;
    white-space: nowrap;
  }
  .sectors .icon { width: 30px; height: 30px; padding: 6px; }
  .sectors small { display: none; }

  /* Tre passi: linea del tempo */
  .steps { gap: 0; }
  .step {
    padding: 0 0 28px 64px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    content: "";
    position: absolute;
    left: 23px; top: 52px; bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--accent), rgba(47, 91, 255, .12));
  }
  .step:last-child::before { display: none; }
  .step-icon {
    position: absolute;
    left: 0; top: 0;
    width: 48px; height: 48px;
    margin: 0;
    border-radius: 14px;
  }
  .step-icon .icon { width: 22px; height: 22px; }
  .step-num { display: none; }
  .step h3 { margin: 10px 0 6px; font-size: 1.125rem; }
  .step p { font-size: .9375rem; }

  /* Tutto incluso: griglia di etichette */
  .features { gap: 10px; }
  .feature { display: flex; align-items: center; gap: 10px; padding: 12px; }
  .feature .icon { width: 36px; height: 36px; margin: 0; padding: 8px; border-radius: 10px; flex: none; }
  .feature h3 { margin: 0; font-size: .9375rem; line-height: 1.25; }
  .feature p { display: none; }

  /* Footer su due colonne */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > :first-child, .footer-grid > :nth-child(2) { grid-column: 1 / -1; }
  .footer-grid > :nth-child(2) ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .footer-grid > :nth-child(2) li + li { margin-top: 0; }
}
@media (max-width: 639px) {
  .compare td { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; align-items: start; }
  .compare td::before { grid-column: 1 / -1; }
  .compare td .icon { margin: 1px 0 0; }
}

/* ---------- Fumetto sopra il pulsante WhatsApp ---------- */
.wa-bubble {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 91;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 260px;
  padding: 12px 8px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 4px 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(13, 17, 32, .18);
  font-size: .9375rem;
  line-height: 1.35;
  animation: wa-bubble-in .45s cubic-bezier(.2, .8, .2, 1.2) both;
}
.wa-bubble[hidden] { display: none; }
.wa-bubble a { color: var(--ink); text-decoration: none; }
.wa-bubble a strong { color: #128c4b; }
.wa-bubble button {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.wa-bubble button:hover { background: var(--bg-soft); color: var(--ink); }
.wa-float.is-calling { animation: wa-ring 2s ease-out 3; }
@keyframes wa-bubble-in { from { opacity: 0; transform: translateY(12px) scale(.9); transform-origin: bottom right; } }
@keyframes wa-ring {
  0% { box-shadow: 0 8px 24px rgba(13, 17, 32, .22), 0 0 0 0 rgba(37, 211, 102, .55); }
  100% { box-shadow: 0 8px 24px rgba(13, 17, 32, .22), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ---------- Il tuo sito diventa un'app ---------- */
.app-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(70% 60% at 85% 30%, rgba(47, 91, 255, .35), transparent 70%), var(--ink);
  color: #c9cee0;
}
.app-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .app-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.app-section .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }
.app-section h2 { color: #fff; margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3rem); }
.app-lead { margin: 0 0 26px; font-size: 1.125rem; color: #c9cee0; }
.app-points { display: grid; gap: 16px; margin: 0 0 30px; padding: 0; list-style: none; }
.app-points li { display: flex; gap: 14px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; }
.app-points strong { display: block; color: #fff; font-size: 1rem; }
.app-points .icon { width: 42px; height: 42px; flex: none; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #8fa8ff; }
.app-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.app-section .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.app-section .btn-secondary:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-note { margin: 18px 0 0; font-size: .875rem; color: #9ea6c0; }

.app-phones { position: relative; height: 560px; max-width: 460px; width: 100%; margin: 0 auto; }
.app-phone {
  position: absolute;
  width: 250px;
  padding: 9px;
  border-radius: 40px;
  background: #0c0d0f;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #2a2d33;
}
.app-phone img { width: 100%; border-radius: 32px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.app-phone-back { right: 0; top: 0; transform: rotate(6deg); opacity: .9; }
.app-phone-front { left: 0; top: 40px; transform: rotate(-4deg); }
.app-push {
  position: absolute; left: 50%; top: 120px; z-index: 2;
  display: flex; gap: 10px; align-items: flex-start;
  width: 290px; padding: 12px 14px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  color: var(--ink-2);
  font-size: .8125rem;
  line-height: 1.35;
}
.app-push span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: #c6f432; color: #0c0d0f; font-weight: 800; }
.app-push small { display: block; color: #6b7180; font-size: .6875rem; }
.app-push strong { display: block; color: var(--ink); font-size: .875rem; }
.js .app-phones.is-visible .app-push { animation: app-push-in 1s cubic-bezier(.2, 1.3, .4, 1) .6s both; }
@keyframes app-push-in { from { opacity: 0; transform: translate(-50%, -40px) scale(.9); } }
@media (max-width: 639px) {
  .app-phones { height: 430px; max-width: 350px; }
  .app-phone { width: 190px; border-radius: 32px; padding: 7px; }
  .app-phone img { border-radius: 26px; }
  .app-phone-front { top: 30px; }
  .app-push { top: 92px; width: 270px; }
  .app-ctas .btn { width: 100%; }
}

.plan-list li.plan-hl { font-weight: 700; }
.plan-list li.plan-hl .icon { background: var(--accent); color: #fff; }
.plan-demo { margin: -12px 0 18px; font-size: .875rem; font-weight: 700; text-decoration: none; }

/* ---------- Finestra con la demo dell'app ---------- */
.demo-open, .demo-open body { overflow: hidden; }
.app-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column;
  background: #0c0d0f;
  animation: app-modal-in .3s ease both;
}
@keyframes app-modal-in { from { opacity: 0; transform: scale(.985); } }
.app-modal-bar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px;
  background: var(--ink); color: #c9cee0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.app-modal-bar p { margin: 0; flex: 1; font-size: .9375rem; }
.app-modal-bar strong { color: #fff; }
.app-modal-bar p span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .75rem; }
.app-modal-tabs { display: none; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.app-modal-tabs button { padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: #c9cee0; font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.app-modal-tabs button[aria-selected="true"] { background: #c6f432; color: #0c0d0f; }
.app-modal-close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
.app-modal-close:hover { background: rgba(255, 255, 255, .2); }
.app-modal-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 400px; }
.app-modal-admin iframe { width: 100%; height: 100%; border: 0; background: #f4f5f7; }
.app-modal-phone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px;
  background: radial-gradient(80% 60% at 50% 40%, rgba(47, 91, 255, .3), transparent 70%), var(--ink);
}
.app-modal-frame {
  width: 340px; height: min(720px, 100%); max-height: calc(100% - 40px);
  padding: 11px; border-radius: 46px; background: #0c0d0f;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 2px #2a2d33;
}
.app-modal-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #0c0d0f; }
.app-modal-tip { margin: 0; color: #9ea6c0; font-size: .8125rem; font-weight: 600; text-align: center; }
@media (max-width: 899px) {
  .app-modal-bar p { display: none; }
  .app-modal-tabs { display: flex; flex: 1; justify-content: center; }
  .app-modal-tabs button { flex: 1; }
  .app-modal-body { grid-template-columns: 1fr; }
  .app-modal[data-tab="app"] .app-modal-admin, .app-modal[data-tab="admin"] .app-modal-phone { display: none; }
  .app-modal-phone { padding: 0; background: #0c0d0f; }
  .app-modal-frame { width: 100%; height: 100%; max-height: none; padding: 0; border-radius: 0; box-shadow: none; }
  .app-modal-frame iframe { border-radius: 0; }
  .app-modal-tip { display: none; }
}

/* ---------- In cima: novità app ---------- */
.hero-news {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 5px 14px 5px 5px;
  border: 1px solid #d5dcff;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: .875rem; font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.hero-news span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero-news .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .2s; }
.hero-news:hover { border-color: var(--accent); color: var(--ink); }
.hero-news:hover .icon { transform: translateX(3px); }
.hero-news + .eyebrow { display: none; }

.hero-visual { position: relative; }
.hero-push {
  position: absolute;
  right: 2%; top: -6px; z-index: 3;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
  width: min(300px, 80%);
  padding: 12px 14px;
  border: 1px solid rgba(13, 17, 32, .06);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 22px 50px rgba(13, 17, 32, .22);
  color: var(--ink-2);
  font-size: .8125rem; line-height: 1.35;
  text-decoration: none;
  animation: hero-push-in .9s cubic-bezier(.2, 1.3, .4, 1) 1.1s both, hero-push-float 5s ease-in-out 2.4s infinite;
}
.hero-push:hover { color: var(--ink-2); box-shadow: 0 26px 60px rgba(13, 17, 32, .28); }
.hero-push-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #0c0d0f; color: #c6f432; font-weight: 800; }
.hero-push small { display: block; color: #6b7180; font-size: .6875rem; }
.hero-push strong { display: block; color: var(--ink); font-size: .875rem; }
.hero-push-cta {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px; padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .8125rem; font-weight: 700;
}
.hero-push-cta .icon { width: 15px; height: 15px; }
@keyframes hero-push-in { from { opacity: 0; transform: translateY(-28px) scale(.92); } }
@keyframes hero-push-float { 50% { transform: translateY(-6px); } }
@media (max-width: 639px) {
  .hero-news { font-size: .8125rem; }
  .hero-push { top: -18px; right: 0; width: 82%; }
}
.hero-push-ic { background: #9c3a22; color: #faf6ef; font-family: Georgia, serif; font-style: italic; }
.app-push span { background: #9c3a22; color: #faf6ef; font-family: Georgia, serif; font-style: italic; }
.app-modal-kind { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.app-modal-kind button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: #c9cee0; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.app-modal-kind button[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (max-width: 899px) {
  .app-modal-bar { flex-wrap: wrap; row-gap: 8px; }
  .app-modal-kind { order: 1; flex: 1; }
  .app-modal-kind button { flex: 1; }
  .app-modal-close { order: 2; }
  .app-modal-tabs { order: 3; flex-basis: 100%; }
}

/* ---------- Pacchetto Enterprise (quarto piano) ---------- */
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: center; }
  .plan { padding: 28px 18px; }
  .plan-featured { padding: 40px 20px; }
  .plan-price strong { font-size: 2.1rem; }
  .plan-list li { font-size: .875rem; }
}
@media (min-width: 1180px) {
  .pricing { gap: 18px; }
  .plan { padding: 30px 22px; }
  .plan-featured { padding: 44px 24px; }
  .plan-price strong { font-size: 2.4rem; }
  .plan-list li { font-size: .9375rem; }
}
.plan-enterprise {
  border-color: var(--ink);
  background: radial-gradient(80% 50% at 90% 0%, rgba(47, 91, 255, .35), transparent 70%), var(--ink);
  color: #c9cee0;
}
.plan-enterprise .plan-name { color: #9fb2ff; }
.plan-enterprise .plan-desc, .plan-enterprise .plan-year { color: #aab1c7; }
.plan-enterprise .plan-price strong { color: #fff; font-size: 1.7rem; line-height: 1.15; }
.plan-enterprise .plan-list { border-top-color: rgba(255, 255, 255, .14); }
.plan-enterprise .plan-list li { color: #e3e6f2; }
.plan-enterprise .plan-list .icon { background: rgba(255, 255, 255, .12); color: #fff; }
.plan-enterprise .btn-secondary { background: #fff; border-color: #fff; color: var(--ink); }
.plan-enterprise .btn-secondary:hover { background: transparent; color: #fff; border-color: #fff; }
