/* ====== RoomReveal — Design System (premium real-estate) ====== */
:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --text: #1C2A33;
  --muted: #647682;
  --accent: #1F5E4C;
  --accent-hover: #1A5142;
  --gold: #C49A5A;
  --border: #E6E1D8;
  --bg-accent: #ECF3F0;
  --bg-gold: #F7EFE2;
  --radius-input: 8px;
  --radius-btn: 10px;
  --radius-card: 16px;
  --shadow-card: 0 1px 2px rgba(28,42,51,.04), 0 8px 24px rgba(28,42,51,.06);
  --shadow-hover: 0 2px 4px rgba(28,42,51,.05), 0 16px 40px rgba(28,42,51,.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* Toast (notifiche non bloccanti) */
.rr-toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.rr-toast { color: #fff; padding: 12px 20px; border-radius: 10px; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(28,42,51,.18); opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.rr-toast.show { opacity: 1; transform: translateY(0); }
.rr-toast-success { background: #1F5E4C; }
.rr-toast-error { background: #b3261e; }
.rr-toast-info { background: #1C2A33; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif; font-weight: 500; cursor: pointer; border: none;
  border-radius: var(--radius-btn); transition: transform .12s ease, background .12s ease, border-color .12s ease;
  text-align: center;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #3a2710; }
.btn-gold:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--bg); }
.btn.full { width: 100%; }

/* ====== Nav ====== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,248,.85); backdrop-filter: blur(8px); transition: border-color .2s; border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-family: "Fraunces", serif; font-weight: 600; font-size: 20px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .12s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

/* ====== Hero ====== */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.muted-h1 { color: var(--muted); font-weight: 500; }
.sub { color: var(--muted); font-size: 19px; margin: 20px 0 22px; max-width: 46ch; }
.value-props { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; }
.value-props li { font-size: 14px; color: var(--accent); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.microcopy { font-size: 13px; color: var(--muted); margin-top: 14px; }
.microcopy.light { color: rgba(255,255,255,.8); }

/* ====== Compare slider ====== */
.compare { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); user-select: none; background: var(--bg-accent); }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.25); cursor: ew-resize; }
.compare-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 16px; box-shadow: var(--shadow-card); }
.compare-label { position: absolute; bottom: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #fff; }
.compare-label-before { left: 12px; background: rgba(28,42,51,.7); }
.compare-label-after { right: 12px; background: var(--gold); color: #3a2710; }
.compare-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ====== Trust band ====== */
.trust-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.trust-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; font-variant-numeric: tabular-nums; }
.trust-stats div { text-align: center; }
.trust-stats b { display: block; font-family: "Fraunces", serif; font-size: 22px; color: var(--accent); }
.trust-stats span { font-size: 13px; color: var(--muted); }
.trust-line { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ====== Sections ====== */
.section { padding: 88px 0; }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
.section.narrow .container, .narrow-text { max-width: 720px; margin-left: auto; margin-right: auto; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 18px; }
.lead b { color: var(--text); }
.accent-line { font-family: "Fraunces", serif; font-size: 20px; color: var(--accent); margin-top: 36px; }

/* ====== Cards ====== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0; }
.step-n { font-family: "Fraunces", serif; font-size: 30px; color: var(--gold); margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* Persona */
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.persona-ico { font-size: 32px; margin-bottom: 10px; }
.persona h3 { font-size: 21px; margin-bottom: 8px; }
.persona > p { color: var(--muted); margin-bottom: 14px; }
.checklist { list-style: none; }
.checklist li { padding: 6px 0 6px 26px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.tcard .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.tcard p { margin-bottom: 16px; }
.tmeta { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-accent); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.tmeta small { display: block; color: var(--muted); font-size: 13px; }

/* Pricing */
.price-anchor { background: var(--bg-gold); border: 1px solid #ecdcc0; border-radius: var(--radius-card); padding: 20px 24px; text-align: center; max-width: 760px; margin: 0 auto 24px; color: var(--text); }
.compare-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 0 auto 40px; }
.compare-table div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.compare-table span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.compare-table b { font-family: "Fraunces", serif; font-size: 22px; }
.compare-table small { color: var(--muted); font-size: 12px; font-weight: 400; }
.compare-table .ct-win { background: var(--bg-accent); border-color: var(--accent); }
.compare-table .ct-win b { color: var(--accent); }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.plan { position: relative; }
.plan-featured { border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #3a2710; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 18px; color: var(--muted); }
.plan .price { font-family: "Fraunces", serif; font-size: 42px; margin: 6px 0; }
.plan .price span { font-size: 18px; color: var(--muted); }
.price-sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; min-height: 60px; }
.guarantee { color: var(--muted); font-size: 13px; margin-top: 24px; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 20px; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 500; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-chev { color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); }

/* Final CTA */
.final-cta { background: var(--accent); color: #fff; padding: 72px 0; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 24px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand { font-size: 18px; margin-bottom: 8px; }
.footer-claim { color: var(--muted); font-size: 14px; }
.footer h4 { font-family: "Inter", sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--text); font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: 13px; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; box-shadow: var(--shadow-card); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps, .persona-grid, .testimonials { grid-template-columns: 1fr; }
  .plans, .compare-table { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
