/* Commensa - sito commerciale (mobile-first, nessuna dipendenza) */

/* Font inclusi nel sito: nessuna richiesta a server esterni */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --c-bg: #fffaf3;
  --c-bg-alt: #f8efe2;
  --c-surface: #ffffff;
  --c-text: #2a1f17;
  --c-muted: #6b5a4c;
  --c-border: #ead9c4;
  --c-primary: #b23a17;
  --c-primary-dark: #8f2c0f;
  --c-primary-soft: #fbe3d8;
  --c-accent: #e9a23b;
  --c-green: #2f7a4b;
  --c-green-soft: #e1f1e6;
  --c-dark: #2b1d14;
  --c-dark-2: #3a2a1f;
  --c-on-dark: #fbf3e8;
  --c-on-dark-muted: #d9c7b3;
  --c-whatsapp: #1c8a4a;
  --c-focus: #1f5fbf;

  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 6px 24px rgba(60, 30, 10, 0.08);
  --shadow-strong: 0 18px 50px rgba(60, 30, 10, 0.18);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--c-text);
}

h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--c-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  z-index: 100;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow { max-width: 820px; }

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn-light { background: #fff; color: var(--c-primary-dark); }
.btn-light:hover { background: var(--c-bg); color: var(--c-primary-dark); }
.btn-whatsapp { background: var(--c-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #156b39; color: #fff; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn-large { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
}
.brand:hover { color: var(--c-text); }
.brand-light, .brand-light:hover { color: var(--c-on-dark); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-small);
  background: var(--c-surface);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}
.main-nav.is-open { display: flex; }
.main-nav a:not(.btn) {
  padding: 12px 8px;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-small);
}
.main-nav a:not(.btn):hover { background: var(--c-bg-alt); }
.main-nav .btn { margin-top: 8px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .main-nav a:not(.btn) { padding: 8px 12px; }
  .main-nav .btn { margin: 0 0 0 8px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(circle at 85% 10%, rgba(233, 162, 59, 0.22), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(178, 58, 23, 0.10), transparent 40%),
    var(--c-bg);
  overflow: hidden;
}

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

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 0.6em;
}
.eyebrow.center { text-align: center; }
.eyebrow-light { color: var(--c-accent); }

.lead {
  font-size: 1.12rem;
  color: var(--c-muted);
  max-width: 34em;
}
.lead strong { color: var(--c-text); }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 20px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--c-muted);
  font-size: 0.95rem;
}
.hero-points li,
.contact-points li {
  position: relative;
  padding-left: 24px;
}
.hero-points li::before,
.contact-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--c-green);
  border-bottom: 2.5px solid var(--c-green);
  transform: rotate(-45deg);
}

@media (min-width: 520px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}


/* ---------- Fondatori ---------- */

.founders {
  background: linear-gradient(120deg, var(--c-primary) 0%, #c9561f 100%);
  color: #fff;
  padding: 28px 0;
}
.founders h2 { color: #fff; font-size: clamp(1.3rem, 4vw, 1.7rem); margin-bottom: 0.3em; }
.founders p { margin: 0; max-width: 46em; }
.founders-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
@media (min-width: 860px) {
  .founders-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .founders .btn { flex: none; }
}

/* ---------- Sezioni ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title { text-align: center; max-width: 22em; margin-left: auto; margin-right: auto; margin-bottom: 1.2em; }
.section-lead { text-align: center; max-width: 40em; margin: -0.6em auto 2em; color: var(--c-muted); }

@media (min-width: 960px) {
  .section { padding: 88px 0; }
}


/* Passi */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: none;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.step p { margin: 0; color: var(--c-muted); }
.step p strong { color: var(--c-text); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Funzioni */
.features {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.feature {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature p { color: var(--c-muted); flex: 1; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-badge {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  color: var(--c-muted);
}
.plan-badge-free { background: var(--c-green-soft); color: var(--c-green); }

.video-wrap { margin-top: 40px; }
.video-wrap video { width: 100%; border-radius: var(--radius); background: #000; }

/* ---------- Demo ---------- */

.section-dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.section-dark h2,
.section-dark h3 { color: var(--c-on-dark); }
.section-dark .section-lead { color: var(--c-on-dark-muted); }
.section-dark .section-lead strong { color: var(--c-on-dark); }

.demo-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1.5fr 1fr; gap: 24px; } }

.demo-card {
  background: var(--c-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px;
}

.demo-tour {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 18px;
}
.demo-tour li::marker { color: var(--c-accent); font-weight: 700; }
.demo-tour li { color: var(--c-on-dark-muted); }
.demo-tour strong { color: var(--c-on-dark); }

.demo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 16px;
  min-height: 48px;
  background: var(--c-accent);
  color: #2a1f17;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-small);
}
.demo-link::after { content: "\2197"; font-size: 1.1em; }
.demo-link:hover { background: #f3b85a; color: #2a1f17; }
.section-dark :focus-visible { outline-color: #9cc3ff; }

.demo-tip {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: rgba(233, 162, 59, 0.12);
  color: var(--c-on-dark);
  font-size: 0.95rem;
}

.demo-qr-card { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.demo-qr-card p { color: var(--c-on-dark-muted); }
.qr-box {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 8px auto 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-fallback { color: var(--c-muted); font-size: 0.9rem; padding: 10px; }
.qr-box.has-qr .qr-fallback { display: none; }
.qr-caption { font-size: 0.9rem; margin: 0; }

.credentials { margin-top: 32px; }
.credentials > h3 { text-align: center; margin-bottom: 16px; }
.cred-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .cred-grid { grid-template-columns: repeat(3, 1fr); } }

.cred {
  background: var(--c-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
}
.cred-role { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.cred-role span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--c-on-dark-muted); }
.cred dl { margin: 0; display: grid; gap: 8px; }
.cred dl > div { display: grid; gap: 2px; }
.cred dt { font-size: 0.8rem; color: var(--c-on-dark-muted); }
.cred dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-small);
  padding: 4px 4px 4px 12px;
  min-width: 0;
}
.cred code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.98rem;
  color: #fff;
  overflow-wrap: anywhere;
}
.copy-btn {
  flex: none;
  min-height: 40px;
  min-width: 72px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  color: var(--c-on-dark);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); }
.copy-btn.is-copied { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.cred-note { text-align: center; min-height: 1.6em; margin: 12px 0 0; color: var(--c-on-dark-muted); font-size: 0.9rem; }

/* ---------- Mappa dei locali ---------- */

.map-box {
  max-width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--c-bg-alt);
}
.map-box[hidden], .map-status[hidden] { display: none; }
.locali-map {
  width: 100%;
  height: 340px; /* altezza fissa: la pagina non salta quando la mappa si carica */
  isolation: isolate; /* i livelli di Leaflet (z-index fino a 1000) non passano sopra l'intestazione */
  font-family: var(--font-body);
}
@media (min-width: 640px) { .locali-map { height: 420px; } }
@media (min-width: 960px) { .locali-map { height: 480px; } }

.map-popup { font-size: 0.95rem; line-height: 1.4; min-width: 150px; }
.map-popup strong { font-family: var(--font-title); font-size: 1.05rem; }
.map-popup p { margin: 2px 0 8px; color: var(--c-muted); }
.leaflet-container .map-popup-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.leaflet-container .map-popup-link:hover { background: var(--c-primary-dark); color: #fff; }

.map-status { text-align: center; margin: 16px 0 0; color: var(--c-muted); font-weight: 600; }

/* ---------- Prezzi ---------- */

.billing-toggle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 5px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 999px;
}
.toggle-btn {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--c-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.toggle-btn.is-active { background: var(--c-surface); color: var(--c-text); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.toggle-save {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--c-green-soft);
  color: var(--c-green);
  font-size: 0.78rem;
}
@media (max-width: 380px) {
  .toggle-btn { padding: 8px 12px; }
  .toggle-save { display: block; margin: 2px 0 0; }
}

.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) {
  .plans { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .plan { padding: 26px 16px 20px; }
  .plan-for { min-height: 3em; }
  .price-value { font-size: 1.75rem; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 0.2em; }
.plan-for { color: var(--c-muted); font-size: 0.95rem; margin-bottom: 14px; }
.plan-price { margin: 0; display: flex; flex-direction: column; }
.price-value { font-family: var(--font-title); font-size: 2rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.price-period { color: var(--c-muted); font-size: 0.95rem; }
.plan-note { min-height: 1.5em; font-size: 0.88rem; color: var(--c-green); font-weight: 600; margin: 4px 0 14px; }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
  font-size: 0.95rem;
}
.plan-list li { position: relative; padding-left: 24px; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--c-green);
  border-bottom: 2.5px solid var(--c-green);
  transform: rotate(-45deg);
}
.plan-list li.no { color: #8d7c6e; }
.plan-list li.no::before {
  border: 0;
  transform: none;
  top: 0.75em;
  left: 2px;
  width: 12px;
  height: 2px;
  background: #b9a796;
}
.plan-list li.no::after { content: " (non incluso)"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.plan-featured {
  border: 2px solid var(--c-primary);
  box-shadow: var(--shadow-strong);
}
.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 14px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
/* Su telefono il piano consigliato compare per primo */
@media (max-width: 679px) { .plan-featured { order: -1; margin-top: 10px; } }
.plans-foot { text-align: center; color: var(--c-muted); margin: 28px auto 0; max-width: 40em; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  position: relative;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-primary);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--c-muted); }
.faq details p strong { color: var(--c-text); }

/* ---------- Contatti ---------- */

.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

.contact-text p { color: var(--c-muted); }
.contact-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.contact-direct a { font-weight: 700; }

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--c-muted); font-size: 0.9rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #cdb9a3;
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--c-text);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-focus); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-weight: 600; min-height: 0; margin: 0 0 10px; }
.form-error:empty { display: none; }
.form-actions { display: grid; gap: 10px; }
.form-note { font-size: 0.85rem; color: var(--c-muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-dark);
  color: var(--c-on-dark-muted);
  padding: 40px 0 28px;
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--c-on-dark); text-decoration: underline; padding: 6px 0; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { margin: 0; font-size: 0.88rem; }
.site-footer :focus-visible { outline-color: #9cc3ff; }

@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* =====================================================================
   Riscrittura della landing: cornici degli screenshot, hero, aree
   funzionali, WhatsApp, tabella dei piani, lightbox
   ===================================================================== */

/* ---------- Dettagli generali ---------- */

.section-head { text-align: center; margin: 0 auto 40px; max-width: 46em; }
.section-head .section-title { margin-bottom: 0.4em; }
.section-head .section-lead { margin: 0 auto; }
.nowrap { white-space: nowrap; }

/* ---------- Cornici degli screenshot ---------- */

.shot {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  line-height: 0;
  cursor: zoom-in;
  border-radius: inherit;
}
.shot img { display: block; width: 100%; height: auto; }
.shot::after {
  content: "Ingrandisci";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(29, 20, 16, 0.86);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.shot:hover::after,
.shot:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .shot::after { display: none; } }
.shot:focus-visible { outline-offset: -3px; }

.media-item { margin: 0; min-width: 0; }
.media-item figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--c-muted);
  text-align: center;
}

/* Telefono */
.phone-frame {
  position: relative;
  width: 100%;
  background: #1d1410;
  border: 7px solid #1d1410;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
}
.phone-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: 22%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0705;
  pointer-events: none;
}
.phone-frame .shot { border-radius: 27px; overflow: hidden; background: #111; }
.phone-frame.is-sm { border-width: 4px; border-radius: 22px; }
.phone-frame.is-sm::before { display: none; }
.phone-frame.is-sm .shot { border-radius: 18px; }

/* Finestra del browser */
.browser {
  background: #fff;
  border: 1px solid #d8c6b0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f3e9db;
  border-bottom: 1px solid #e3d3bd;
}
.browser-bar i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d3b697;
}
.browser-bar span {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  padding: 1px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--c-muted);
  font-size: 0.72rem;
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser .shot { border-radius: 0; }

/* TV */
.tv {
  position: relative;
  margin-bottom: 20px;
  padding: 9px;
  background: #17110d;
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
}
.tv .shot { border-radius: 6px; overflow: hidden; background: #000; }
.tv::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 26%;
  height: 10px;
  transform: translateX(-50%);
  background: #17110d;
  border-radius: 0 0 10px 10px;
}

/* ---------- Hero ---------- */

.hero { padding: 36px 0 56px; }
.hero-visual {
  position: relative;
  padding: 0 0 0 0;
  margin-bottom: 8px;
}
.hero-browser {
  width: 90%;
  margin: 0 0 56px auto;
}
.hero-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 31%;
  max-width: 190px;
}
.hero-more { margin: 18px 0 0; font-size: 0.95rem; }
.hero-more a { font-weight: 700; }

@media (min-width: 520px) {
  .hero-phone { width: 29%; }
  .phone-frame.hero-phone { border-width: 6px; border-radius: 28px; }
  .phone-frame.hero-phone .shot { border-radius: 22px; }
  .phone-frame.hero-phone::before { display: block; top: 7px; height: 6px; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 48px; }
}

/* ---------- Benefici ---------- */

.benefits .feature { padding: 22px 20px; }
.benefits .feature h3 { margin-bottom: 0.35em; }
.benefits .feature p { margin: 0; }
@media (min-width: 1000px) {
  .benefits.features { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Funzioni: indice e aree ---------- */

.area-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0 auto 32px;
  padding: 0;
  max-width: 62em;
}
.area-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.area-nav a:hover { border-color: var(--c-primary); color: var(--c-primary-dark); background: var(--c-primary-soft); }

.shots-note {
  max-width: 44em;
  margin: 0 auto 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.area { padding: 52px 0; border-top: 1px solid var(--c-border); scroll-margin-top: 76px; }
.area:first-of-type { border-top: 0; }
.area-grid { display: grid; gap: 28px; align-items: center; }
.area-copy { min-width: 0; }
.area-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
}
.area-tag .eyebrow { margin: 0; }
.area-copy h3 { font-size: clamp(1.45rem, 3.6vw, 2rem); margin-bottom: 0.4em; }
.area-lead { color: var(--c-muted); font-size: 1.04rem; max-width: 40em; }
.area-list-title {
  margin: 20px 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.97rem;
}
.area-list li { position: relative; padding-left: 26px; }
.area-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--c-green);
  border-bottom: 2.5px solid var(--c-green);
  transform: rotate(-45deg);
}
.area-list strong { color: var(--c-text); }
.area-media { min-width: 0; }
.area-note { margin: 18px 0 0; font-size: 0.9rem; color: var(--c-muted); }

@media (min-width: 960px) {
  .area { padding: 72px 0; }
  .area-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  .area--flip .area-grid { grid-template-columns: 7fr 5fr; }
  .area--flip .area-copy { order: 2; }
  .area--wide .area-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}
@media (min-width: 760px) {
  .area--wide .area-list { grid-template-columns: repeat(2, 1fr); gap: 9px 40px; }
}
.area--wide .area-copy { max-width: none; }
.area--wide .area-lead { max-width: 46em; }

.plan-badge-plan { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.plan-badge-ultra { background: var(--c-dark); color: var(--c-on-dark); }

/* Gallerie */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px 18px; }
.gallery > .is-phone { flex: 1 1 140px; max-width: 232px; }
.gallery > .is-browser,
.gallery > .is-tv { flex: 1 1 100%; }
.stack { display: grid; gap: 28px; }
.pair { display: grid; gap: 24px; align-items: end; }
.pair > .is-phone { width: 100%; max-width: 210px; margin: 0 auto; }
.duo { display: grid; gap: 28px; }
@media (min-width: 640px) {
  .pair { grid-template-columns: minmax(0, 1fr) 200px; }
  .pair > .is-phone { margin: 0; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo > .span-2 { grid-column: 1 / -1; }
}
.area--wide .pair { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .area--wide .pair { grid-template-columns: minmax(0, 1fr) 220px; }
}
.area-media .stack + .stack,
.area-media .pair + .duo,
.area-media .duo + .duo { margin-top: 28px; }
.area-media .pair + .duo { margin-top: 36px; }

/* Piccoli schermi TV in fila */
.tv-row { display: grid; gap: 28px; }
@media (min-width: 640px) { .tv-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tv-row.three { gap: 26px; }

/* ---------- WhatsApp: fumetto illustrativo ---------- */

.chat-wrap { display: flex; flex-direction: column; align-items: center; }
.chat {
  width: 100%;
  max-width: 360px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #efe6d8;
  box-shadow: var(--shadow-strong);
  border: 1px solid #d9c9b3;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0f5f49;
  color: #fff;
}
.chat-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f6d9bd;
  color: #7a2a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
}
.chat-head strong { display: block; line-height: 1.2; }
.chat-head small { display: block; font-size: 0.78rem; color: #cfe8df; }
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 20px;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.25), transparent 45%);
}
.bubble {
  position: relative;
  max-width: 88%;
  padding: 9px 12px 20px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #1f1f1f;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.bubble p { margin: 0; }
.bubble time {
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-size: 0.7rem;
  color: #6b6b6b;
}
.bubble-out {
  align-self: flex-end;
  border-radius: 14px 4px 14px 14px;
  background: #d9f2cf;
  padding-bottom: 20px;
}
.chat-btns { display: grid; gap: 6px; max-width: 88%; }
.chat-btn {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  color: #0f6b8f;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.chat-cap { margin-top: 14px; font-size: 0.85rem; color: var(--c-muted); text-align: center; max-width: 30em; }
.chat-cap strong { color: var(--c-text); }

/* ---------- Cassa fiscale: percorso dello scontrino ---------- */

.flow {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.flow li {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 0.93rem;
  line-height: 1.35;
  box-shadow: var(--shadow);
}
.flow li strong { display: block; font-size: 1rem; color: var(--c-text); }
.flow li span { color: var(--c-muted); }
.flow li + li::before {
  content: "\2193";
  position: absolute;
  left: 50%;
  top: -17px;
  transform: translateX(-50%);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  background: var(--c-bg);
  padding: 0 4px;
}
.area--alt .flow li + li::before { background: var(--c-bg-alt); }
@media (min-width: 700px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .flow li + li::before { content: "\2192"; left: -20px; top: 50%; transform: translateY(-50%); }
}

/* ---------- Area con sfondo ---------- */

.area--alt { background: var(--c-bg-alt); border-top: 0; }
.area--alt + .area { border-top: 0; }
.areas { margin-top: 0; }
.area-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- Tutto il resto, in breve ---------- */

.more-title { text-align: center; margin: 24px auto 20px; font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.mini-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini-grid li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 12px 40px;
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-small);
  background: var(--c-surface);
  font-size: 0.93rem;
  line-height: 1.35;
}
.mini-grid li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 17px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--c-green);
  border-bottom: 2.5px solid var(--c-green);
  transform: rotate(-45deg);
}
.mini-grid li strong { color: var(--c-text); }
.mini-grid li span { color: var(--c-muted); font-size: 0.85rem; }

/* ---------- Demo: monitor ---------- */

.demo-links { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 560px) { .demo-links { grid-template-columns: repeat(3, 1fr); } }
.demo-links .demo-link { margin-top: 0; font-size: 0.93rem; padding: 10px 14px; }

/* ---------- Prezzi: tabella di confronto ---------- */

.compare {
  margin: 36px auto 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.compare summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  min-height: 48px;
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-primary);
}
.compare[open] summary::after { content: "\2212"; }
.compare summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.compare-scroll { overflow-x: auto; padding: 0 8px 12px; -webkit-overflow-scrolling: touch; }
.compare-scroll:focus-visible { outline-offset: -3px; }
.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}
.compare-table caption { text-align: left; padding: 0 12px 10px; color: var(--c-muted); font-size: 0.88rem; }
.compare-table th,
.compare-table td { padding: 10px 12px; text-align: center; border-top: 1px solid var(--c-border); }
.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--c-surface);
  font-family: var(--font-title);
  font-size: 1rem;
  border-top: 0;
  border-bottom: 2px solid var(--c-border);
}
.compare-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface);
  position: sticky;
  left: 0;
  min-width: 220px;
}
.compare-table thead th:first-child { text-align: left; left: 0; z-index: 1; }
.compare-table .col-hl { background: #fff6ef; }
.compare-table thead .col-hl { background: var(--c-primary-soft); }
.compare-table .yes { color: var(--c-green); font-weight: 700; font-size: 1.1rem; }
.compare-table .none { color: #a8978a; }
.compare-table td small { display: block; color: var(--c-muted); font-size: 0.78rem; }

/* ---------- Lightbox ---------- */

html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(20, 12, 8, 0.93); }
.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 16px 20px;
}
.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  border-radius: 10px;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lightbox-caption {
  margin: 0;
  max-width: 46em;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #f1e5d6;
}
.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(40, 28, 20, 0.85);
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.lb-btn:hover { background: rgba(80, 50, 30, 0.95); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lightbox :focus-visible { outline-color: #9cc3ff; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
  .lightbox-inner { padding-bottom: 76px; }
  .lightbox-img { max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); }
}

/* ---------- Varie ---------- */

.hero-points li { white-space: normal; }
.founders .btn-light { white-space: normal; }
.plans-foot a { font-weight: 700; }
.plan-list li small { color: var(--c-muted); }

/* Piede fisso dei modelli WhatsApp (come nel messaggio vero) */
.chat-foot { display: block; margin-top: 4px; font-size: 0.72rem; color: #667781; }

/* =====================================================================
   NUOVO ASPETTO (27/10/2026): hero scuro, numeri chiave, nastro, galleria
   delle schermate, schede che entrano allo scorrimento, piani e invito.
   Sta in fondo al file e ridefinisce l'aspetto delle regole sopra.
   ===================================================================== */

:root {
  --radius: 18px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgba(60, 30, 10, 0.05), 0 10px 30px rgba(60, 30, 10, 0.07);
  --shadow-strong: 0 30px 70px rgba(45, 20, 5, 0.28);
  --c-night: #1c120c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body { font-size: 17.5px; }
h1, h2 { letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }

/* Pulsanti: un po' di profondità */
.btn { transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.btn-primary { box-shadow: 0 8px 22px rgba(178, 58, 23, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(178, 58, 23, 0.4); }
.btn-light { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 250, 243, 0.55); }
.btn-outline-light:hover { background: rgba(255, 250, 243, 0.1); border-color: #fff; color: #fff; }

/* Intestazione in vetro */
.site-header {
  background: rgba(255, 250, 243, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(234, 217, 196, 0.7);
}
.main-nav a:not(.btn) { position: relative; }
@media (min-width: 860px) {
  .main-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-primary);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }
  .main-nav a:not(.btn):hover { background: none; }
  .main-nav a:not(.btn):hover::after { transform: scaleX(1); }
}

/* ---------- Hero scuro ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 48px 0 96px;
  color: var(--c-on-dark);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(233, 162, 59, 0.28), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(178, 58, 23, 0.55), transparent 60%),
    linear-gradient(160deg, #2b1a11 0%, var(--c-night) 55%, #140c08 100%);
  overflow: hidden;
}
/* Puntinato leggero che sfuma verso il basso */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 250, 243, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -160px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 162, 59, 0.35), transparent 65%);
  filter: blur(20px);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-60px, 40px) scale(1.1); opacity: 0.75; } }

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 0.45em;
}
.hero h1 em {
  font-style: italic;
  color: var(--c-accent);
  background: linear-gradient(90deg, #f3c06b, #e9a23b 45%, #e07a3f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { color: #e5d6c6; font-size: 1.16rem; }
.hero .lead strong { color: #fff; }
.hero .hero-points { color: #d9c7b3; }
.hero .hero-points li::before { border-color: var(--c-accent); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 250, 243, 0.45); }
.hero .btn-ghost:hover { background: rgba(255, 250, 243, 0.1); border-color: #fff; color: #fff; }
.hero .btn-primary { background: linear-gradient(135deg, #d0491d, var(--c-primary)); box-shadow: 0 10px 30px rgba(208, 73, 29, 0.45); }
.hero-more a { color: var(--c-accent); }
.hero-more a:hover { color: #f3c06b; }
.hero :focus-visible { outline-color: #9cc3ff; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: rgba(255, 250, 243, 0.06);
  color: #f1e3d2;
  font-size: 0.9rem;
  font-weight: 600;
}
.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5bd38a;
  box-shadow: 0 0 0 0 rgba(91, 211, 138, 0.6);
  animation: ping 2.2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(91, 211, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 211, 138, 0); } }

.hero-visual { perspective: 1600px; }
.hero-browser {
  border: 1px solid rgba(255, 250, 243, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 250, 243, 0.04);
}
.hero-phone { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
@media (min-width: 960px) {
  .hero { padding: 80px 0 128px; }
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; }
  .hero-browser { transform: rotateY(-9deg) rotateX(3deg); transform-origin: left center; transition: transform 0.8s var(--ease); }
  .hero-visual:hover .hero-browser { transform: rotateY(-4deg) rotateX(1deg); }
}

/* Avvisi che "galleggiano" sopra le schermate */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 11px;
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.97);
  color: var(--c-text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.9rem; }
.float-card small { color: var(--c-muted); }
.float-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--c-primary);
}
.float-icon.is-gold { background: var(--c-accent); }
.float-icon svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-icon.is-gold svg { stroke: #2a1f17; }
.float-order { top: -18px; right: 4%; }
.float-bill { bottom: 10px; right: -2%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 519px) {
  .float-card { font-size: 0.78rem; padding: 8px 12px 8px 8px; }
  .float-card strong { font-size: 0.8rem; }
  .float-icon { width: 30px; height: 30px; }
  .float-order { top: auto; bottom: -22px; right: 0; }
  .float-bill { display: none; }
}

/* ---------- Numeri chiave (sovrapposti al fondo dell'hero) ---------- */

.facts { position: relative; z-index: 2; margin-top: -56px; }
.facts-grid {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(60, 30, 10, 0.14);
}
.fact { padding: 18px 16px; border-radius: 16px; }
.fact strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1;
  color: var(--c-primary);
  margin-bottom: 6px;
}
.fact span { display: block; color: var(--c-muted); font-size: 0.92rem; line-height: 1.4; }
@media (min-width: 860px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); padding: 10px; }
  .fact { padding: 22px 24px; }
  .fact + .fact { border-left: 1px solid var(--c-border); border-radius: 0; }
}

/* Offerta fondatori: una scheda invece di una fascia */
.founders { background: none; color: var(--c-text); padding: 32px 0 0; }
.founders-inner {
  padding: 26px 28px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(233, 162, 59, 0.45), transparent 70%),
    linear-gradient(120deg, var(--c-primary) 0%, #c9561f 100%);
  box-shadow: 0 20px 50px rgba(178, 58, 23, 0.3);
}

/* ---------- Titoli di sezione ---------- */

.eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.eyebrow.center { display: block; }
.section-title { max-width: 18em; }
.section-lead { font-size: 1.08rem; }

/* ---------- Benefici: schede che si sollevano ---------- */

.features { gap: 18px; }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.feature {
  position: relative;
  border-color: transparent;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(60, 30, 10, 0.13); }
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #fbe3d8, #f8d2b3);
}
.feature-icon svg { width: 26px; height: 26px; stroke-width: 2; }

/* ---------- Passi con la linea che li unisce ---------- */

.steps { position: relative; }
.step { position: relative; box-shadow: var(--shadow); padding: 28px; }
.step-num {
  width: 54px;
  height: 54px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #d0491d, var(--c-primary));
  box-shadow: 0 0 0 7px var(--c-bg-alt), 0 10px 24px rgba(178, 58, 23, 0.35);
}
@media (min-width: 860px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 55px;
    left: 12%;
    right: 12%;
    border-top: 2px dashed #dcbfa3;
  }
}

/* ---------- Galleria delle schermate ---------- */

.slides-section { overflow: hidden; }
.slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 760px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100vw - 1180px) / 2 + 24px)) 26px;
  scroll-padding: 0 max(16px, calc((100vw - 1180px) / 2 + 24px));
  scrollbar-width: thin;
  scrollbar-color: #d8c2aa transparent;
}
.slides:focus-visible { outline-offset: -3px; }
.slide { margin: 0; scroll-snap-align: start; }
.slide .shot { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(60, 30, 10, 0.18); transition: transform 0.4s var(--ease); }
.slide .shot:hover { transform: translateY(-4px) scale(1.01); }
.slide figcaption { margin-top: 12px; color: var(--c-muted); font-size: 0.95rem; text-align: center; }

/* ---------- Aree delle funzioni ---------- */

.area-nav a { transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.area-nav a:hover { transform: translateY(-2px); }
.area-copy h3 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); letter-spacing: -0.015em; }
.area-list li::before { transition: transform 0.2s; }
.area-media .browser, .area-media .phone-frame, .area-media .tv { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.area-media .browser:hover, .area-media .tv:hover { transform: translateY(-5px); box-shadow: 0 40px 80px rgba(45, 20, 5, 0.3); }
.area-media .phone-frame:hover { transform: translateY(-6px) rotate(-1deg); }
.chat-avatar { overflow: hidden; background: none; }
.chat-avatar img { width: 100%; height: 100%; display: block; }
.mini-grid li { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.mini-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Demo ---------- */

.section-dark {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(233, 162, 59, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(178, 58, 23, 0.3), transparent 60%),
    var(--c-night);
}
.demo-card, .cred { border-radius: 20px; background: rgba(255, 250, 243, 0.05); backdrop-filter: blur(4px); }
.demo-link { border-radius: 12px; transition: background-color 0.2s, transform 0.2s var(--ease); }
.demo-link:hover { transform: translateX(3px); }
.qr-box { border-radius: 18px; box-shadow: 0 0 0 8px rgba(233, 162, 59, 0.18); }

/* ---------- Prezzi ---------- */

.billing-toggle { box-shadow: var(--shadow); }
.plan {
  border-color: transparent;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(60, 30, 10, 0.14); }
.plan-featured {
  border: 0;
  color: var(--c-on-dark);
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(233, 162, 59, 0.3), transparent 70%),
    linear-gradient(160deg, #3a2417, var(--c-night));
  box-shadow: 0 30px 70px rgba(45, 20, 5, 0.35);
}
.plan-featured h3, .plan-featured .price-value { color: #fff; }
.plan-featured .plan-for, .plan-featured .price-period, .plan-featured .plan-list { color: #e5d6c6; }
.plan-featured .plan-note { color: #8fe0ad; }
.plan-featured .plan-list li::before { border-color: var(--c-accent); }
.plan-ribbon { background: linear-gradient(90deg, var(--c-accent), #f3c06b); color: #2a1f17; box-shadow: 0 8px 20px rgba(233, 162, 59, 0.4); }
.plan-featured :focus-visible { outline-color: #9cc3ff; }
@media (min-width: 1180px) { .plan-featured { transform: translateY(-10px); } .plan-featured:hover { transform: translateY(-16px); } }

/* ---------- Invito finale ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(233, 162, 59, 0.35), transparent 70%),
    linear-gradient(135deg, #c6461b, var(--c-primary) 45%, #7d260c);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -260px;
  border-radius: 50%;
  border: 70px solid rgba(255, 250, 243, 0.07);
}
.cta-inner { position: relative; z-index: 1; max-width: 760px; }
.cta-glyph { border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); margin-bottom: 22px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.35em; }
.cta-band p { color: #fbe3d8; font-size: 1.15rem; max-width: 34em; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band :focus-visible { outline-color: #fff; }

/* ---------- Domande, contatti e piede ---------- */

.faq details { border-color: transparent; box-shadow: var(--shadow); transition: box-shadow 0.25s; }
.faq details[open] { box-shadow: 0 16px 40px rgba(60, 30, 10, 0.1); }
.contact-form { border: 0; border-top: 4px solid var(--c-primary); box-shadow: 0 30px 70px rgba(60, 30, 10, 0.14); border-radius: 22px; }
.site-footer { background: var(--c-night); }

/* ---------- Comparsa allo scorrimento (solo con JS e senza "riduci movimento") ---------- */

html.has-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.has-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.has-reveal .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* =====================================================================
   Sito a più pagine: testate, schede delle aree, prezzi in breve
   ===================================================================== */

.main-nav a[aria-current="page"]:not(.btn) { color: var(--c-primary); font-weight: 700; }

.page-head {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  text-align: center;
  background: radial-gradient(120% 140% at 80% 0%, #4a2d1c 0%, var(--c-dark) 60%);
  color: var(--c-on-dark);
}
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 6vw, 3.2rem); margin: 0.15em 0 0.3em; letter-spacing: -0.015em; }
.page-head p:last-child { max-width: 38em; margin: 0 auto; color: var(--c-on-dark-muted); font-size: 1.12rem; }

.section-more { margin: 32px 0 0; text-align: center; }

.hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}
.hub-grid > li { min-width: 0; }
.hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  color: var(--c-text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
.hub-card:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.hub-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-alt); }
.hub-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hub-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.hub-body strong { font-family: var(--font-title); font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.hub-body span { color: var(--c-muted); font-size: 0.97rem; line-height: 1.45; }
.hub-body em { margin-top: auto; padding-top: 8px; color: var(--c-primary); font-size: 0.95rem; font-style: normal; font-weight: 700; }
.hub-chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 18px 26px;
  background: #e8ded1;
}
.hub-chat span {
  align-self: flex-start;
  max-width: 85%;
  padding: 8px 13px;
  border-radius: 12px;
  background: #fff;
  color: var(--c-text);
  font-size: 0.98rem;
}
.hub-chat .is-out { align-self: flex-end; background: #d4efc9; }

.price-teasers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.price-teasers li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-muted);
}
.price-teasers li.is-featured { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary), var(--shadow); }
.price-teasers strong { color: var(--c-text); }
.price-teaser-value { font-family: var(--font-title); font-size: 2.1rem; font-weight: 700; line-height: 1.15; color: var(--c-text); }
.price-teaser-value small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--c-muted); }

.crumbs { padding-top: 24px; color: var(--c-muted); font-size: 0.92rem; }
.crumbs a { font-weight: 600; }
.area-copy h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.015em; margin-bottom: 0.35em; }
.area-pager {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-top: 8px;
  padding-bottom: 56px;
}
.area-pager a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 700;
  text-decoration: none;
}
.area-pager a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.area-pager small { display: block; color: var(--c-muted); font-size: 0.82rem; font-weight: 500; }

.section-dark h1 { color: #fff; }

/* Telefono: schede orizzontali, altrimenti sei foto a tutta larghezza allungano troppo la pagina */
@media (max-width: 639px) {
  .hub-grid { gap: 12px; }
  .hub-card { flex-direction: row; }
  .hub-thumb { flex: none; width: 104px; aspect-ratio: auto; }
  .hub-body { padding: 12px 14px; gap: 3px; }
  .hub-body strong { font-size: 1.1rem; }
  .hub-body span { font-size: 0.9rem; }
  .hub-chat { padding: 8px; gap: 6px; }
  .hub-chat span { font-size: 0.72rem; padding: 5px 8px; }
}
