/* Campanella — sito di presentazione. Palette e caratteri identici all'app
   ("Pergamena & Campana"), per coerenza di marchio tra prodotto e vetrina. */

:root {
  --bg: #efe3c9;
  --app: #faf4e8;
  --surface: #fffdf8;
  --surface2: #f4ebd6;
  --ink: #3a3016;
  --text: #4e4326;
  --muted: #8d7f61;
  --border: #e7dabd;
  --border-strong: #d6c49a;
  --accent: #3f7d47;
  --accent-deep: #2f6537;
  --accent-soft: #e7efe0;
  --gold: #b0872f;
  --gold-soft: #f3e7c8;
  --warm: #c1852c;
  --warm-soft: #f6ecd4;
  --good: #3a8f5a;
  --good-soft: #e2efe0;
  --danger: #b8506a;
  --danger-soft: #f6e3e2;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 6px 20px rgba(74, 58, 24, 0.08);
  --shadow-float: 0 20px 50px rgba(74, 58, 24, 0.16);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--app);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0 0 1em; }
a { color: var(--accent-deep); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 800; margin-bottom: 10px; display: block;
}
.tabular { font-variant-numeric: tabular-nums; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 244, 232, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(150,120,40,.28); box-shadow: var(--shadow-card); }
.brand span { font-family: "Fraunces", serif; font-weight: 800; font-size: 20px; color: var(--ink); }
nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 14.5px;
}
nav.main-nav a:hover { color: var(--accent-deep); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(63,125,71,.28); }
.btn-solid:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface2); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.nav-toggle { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 60px;
  background: linear-gradient(180deg, var(--surface2), var(--app) 70%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; margin-bottom: 20px; }
.hero .lede { font-size: 18.5px; color: var(--text); max-width: 52ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Mockup telefono (illustrativo, dati inventati) */
.phone {
  position: relative; margin-left: auto; width: min(320px, 100%);
  background: var(--ink); border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-float);
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 18px; background: var(--ink); border-radius: 12px; z-index: 2;
}
.phone-screen {
  background: var(--app); border-radius: 32px; overflow: hidden;
  min-height: 560px; display: flex; flex-direction: column;
}
.phone-topbar { background: var(--surface2); padding: 30px 18px 14px; border-bottom: 1px solid var(--border); }
.phone-topbar .row { display: flex; align-items: center; justify-content: space-between; }
.phone-topbar h4 { font-size: 19px; font-weight: 800; }
.phone-topbar .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.phone-badge {
  width: 34px; height: 34px; border-radius: 999px; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.phone-badge img { width: 26px; height: 26px; border-radius: 50%; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mini-eyebrow { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin: 4px 2px 0; }
.mini-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow-card);
}
.mini-ic {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; flex: none;
  color: var(--accent);
}
.mini-ic svg { width: 18px; height: 18px; }
.mini-card .t { font-weight: 800; font-size: 13px; color: var(--ink); }
.mini-card .d { font-size: 11px; color: var(--muted); margin-top: 1px; }
.mini-pill {
  font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: var(--warm-soft); color: var(--warm); align-self: flex-start; white-space: nowrap;
}
.phone-tabbar {
  display: flex; justify-content: space-around; padding: 10px 6px 16px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.phone-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); }
.phone-tabbar .tab.on { color: var(--accent); }
.phone-tabbar svg { width: 18px; height: 18px; }
.phone-tabbar .lbl { font-size: 8.5px; font-weight: 700; }

/* ── Sezioni generiche ──────────────────────────────────────────────── */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* Problema */
.problem { background: var(--surface); border-bottom: 1px solid var(--border); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.problem-card {
  background: var(--app); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-card);
}
.problem-card .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--danger-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--danger);
}
.problem-card .ic svg { width: 22px; height: 22px; }
.problem-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.problem-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* Feature tour alternato */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-copy .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-copy .ic svg { width: 26px; height: 26px; }
.feature-copy h3 { font-size: 25px; margin-bottom: 12px; }
.feature-copy p { color: var(--text); font-size: 15.5px; max-width: 44ch; }
.feature-copy ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.feature-copy li svg { width: 17px; height: 17px; color: var(--good); flex: none; margin-top: 2px; }

.visual-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-float);
}
.visual-card .vc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.visual-card .vc-head h4 { font-size: 15px; }
.visual-card .vc-head .tag { font-size: 10.5px; font-weight: 800; color: var(--gold); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; }
.visual-card .row-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  background: var(--app); border: 1px solid var(--border); margin-bottom: 8px;
}
.visual-card .row-item:last-child { margin-bottom: 0; }
.visual-card .row-item .ic {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.visual-card .row-item .ic svg { width: 18px; height: 18px; }
.visual-card .row-item .t { font-weight: 800; font-size: 13.5px; color: var(--ink); }
.visual-card .row-item .d { font-size: 11.5px; color: var(--muted); }
.visual-card .chip-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.visual-card .chip {
  font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.visual-card .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Fiducia / sicurezza */
.trust { background: var(--ink); color: #f3ead6; }
.trust .section-head h2 { color: #fff; }
.trust .section-head p { color: #cdbf9e; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.trust-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 24px;
}
.trust-card .ic {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(176,135,47,0.22); color: #e3c988;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.trust-card .ic svg { width: 21px; height: 21px; }
.trust-card h3 { color: #fff; font-size: 15.5px; margin-bottom: 8px; }
.trust-card p { color: #cdbf9e; font-size: 13.5px; margin: 0; }

/* Evolutivo */
.evolve .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.evolve-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.evolve-badges span {
  font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.roadmap-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-card);
}
.roadmap-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.roadmap-item:last-child { border-bottom: none; padding-bottom: 0; }
.roadmap-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.roadmap-item .t { font-weight: 800; font-size: 14px; color: var(--ink); }
.roadmap-item .d { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Prezzi */
.pricing { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-note {
  max-width: 640px; margin: 0 auto 40px; text-align: center; font-size: 13.5px;
  color: var(--text); background: var(--surface2); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 10px 20px; font-weight: 700;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card {
  background: var(--app); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-float); position: relative; }
.price-card.featured::before {
  content: "Consigliato"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-card .price-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price-card .price { font-family: "Fraunces", serif; font-size: 38px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.price-card .price small { font-family: "Nunito", sans-serif; font-size: 14px; font-weight: 700; color: var(--muted); }
.price-card .price-setup { font-size: 12px; color: var(--muted); font-style: italic; margin-bottom: 2px; }
.price-card .price-more { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); text-decoration: none; margin-top: 14px; text-align: center; }
.price-card .price-more:hover { text-decoration: underline; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 9px; font-size: 13.5px; color: var(--text); align-items: flex-start; }
.price-card li svg { width: 16px; height: 16px; color: var(--good); flex: none; margin-top: 2px; }

/* CTA finale */
.cta-final {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff; text-align: center;
}
.cta-final h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.cta-final p { color: #dcecdd; font-size: 16.5px; max-width: 52ch; margin: 0 auto 30px; }
.cta-final .btn-solid { background: #fff; color: var(--accent-deep); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta-final .btn-solid:hover { background: var(--gold-soft); }

/* Footer */
footer.site-footer { padding: 40px 0; background: var(--ink); color: #cdbf9e; }
footer.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site-footer .brand span { color: #fff; }
footer.site-footer p { margin: 0; font-size: 12.5px; }
footer.site-footer a { color: #e3c988; }

/* ── Responsivo ─────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  nav.main-nav { display: none; }
  .hero .wrap, .evolve .wrap, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-visual { order: initial; }
  .hero { padding: 56px 0 40px; text-align: left; }
  .phone { margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .site-header .wrap { height: 64px; }
  .site-header .btn-solid { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .brand span { font-size: 17px; }
}

/* Rispetta la preferenza di movimento ridotto. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ── Pagina legale (informativa privacy) ───────────────────────────── */
.legal-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface2), var(--app) 70%); }
.legal-hero .wrap { max-width: 760px; }
.legal-hero .eyebrow { margin-bottom: 12px; }
.legal-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.legal-hero .lede { font-size: 16.5px; color: var(--text); max-width: 62ch; }
.legal-updated { display: inline-block; margin-top: 18px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

.legal-body { padding: 56px 0 84px; }
.legal-body .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 30px; }
.legal-intro { font-size: 16.5px; color: var(--text); }
.legal-section h2 { font-size: 19px; margin-bottom: 8px; }
.legal-section p, .legal-section li { font-size: 14.5px; color: var(--text); line-height: 1.7; }
.legal-section ul { margin: 8px 0 0; padding-left: 20px; }
.legal-section li { margin-bottom: 4px; }

.legal-note {
  background: var(--gold-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 13.5px; color: var(--text); line-height: 1.6;
}
.legal-note strong { color: var(--ink); }

.legal-disclaimer {
  background: var(--surface2); border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 13px; color: var(--muted); line-height: 1.6;
}
