:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c2b24;
  --muted: #56675e;
  --brand: #2f6b4f;
  --brand-dark: #24543e;
  --soft: #e7f0e9;
  --accent: #d9774b;
  --line: #e6dfd4;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 660px; margin-bottom: 40px; }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); font-weight: 650; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Segnaposto della bozza */
.ph { background: #fff1a8; border-radius: 4px; padding: 0 0.2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.draft-banner { background: #fff1a8; color: #5a4a00; font-size: 0.9rem; text-align: center; padding: 8px 20px; }
.draft-note { border: 1px dashed #c9a800; background: #fffbe6; color: #5a4a00; border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin: 24px 0 0; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 2px solid var(--brand);
  text-decoration: none; font-weight: 600; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn svg { flex: none; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--soft); border-color: var(--brand); }
.btn-small { padding: 9px 18px; font-size: 0.95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong, .brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 0.8rem; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.header-cta { display: none; }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-narrow { max-width: 760px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.cta-row-center { justify-content: center; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.photo-ph {
  aspect-ratio: 4 / 5; border-radius: 28px; padding: 20px;
  background: linear-gradient(160deg, #dde9e0, #f4e5d6);
  border: 2px dashed #c3d3c7; color: var(--muted);
  display: grid; place-items: center; text-align: center; font-weight: 600;
}
.photo-ph small { display: block; font-weight: 400; margin-top: 6px; }
.photo-ph-small { aspect-ratio: 1 / 1; max-width: 420px; }
.hero-photo { aspect-ratio: 4 / 5; max-width: 420px; border-radius: 28px; overflow: hidden; background: var(--surface); }
.plan-sample { margin: 0; max-width: 460px; justify-self: center; }
.plan-sample img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(31, 41, 35, 0.12); }
.plan-sample figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.about-photo { aspect-ratio: 1 / 1; max-width: 420px; border-radius: 28px; overflow: hidden; background: var(--surface); }
.hero-photo img, .about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Card e griglie */
.grid { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-alt .card { background: var(--bg); }
.card p { color: var(--muted); }
.card > p:last-child { margin-bottom: 0; }
.card-link { margin-top: 16px; }
.card-link a { font-weight: 600; text-decoration: none; }
.icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

/* Passaggi */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}

/* App */
.app-grid { display: grid; gap: 48px; align-items: center; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features .icon { margin: 0; }
.features p { margin: 2px 0 0; color: var(--muted); }
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone { width: 280px; max-width: 100%; border-radius: 40px; background: #1c2b24; padding: 12px; box-shadow: 0 30px 60px -25px rgba(28, 43, 36, 0.45); }
.phone-screen { border-radius: 30px; background: var(--bg); padding: 22px 16px; display: grid; gap: 10px; font-size: 0.82rem; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; margin-bottom: 4px; }
.pill { background: var(--soft); color: var(--brand); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.meal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.meal b { color: var(--brand); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.meal span { color: var(--ink); line-height: 1.35; }
.app-chart { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.app-chart b { color: var(--brand); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 8px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--brand), #6fa58a); }

/* Prezzi */
.price-card { display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px -22px rgba(47, 107, 79, 0.55); }
.badge { align-self: flex-start; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.pricing, .single-visits { max-width: 940px; }
.price { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--ink) !important; line-height: 1.1; margin: 0 0 6px; }
.per-day { align-self: flex-start; background: #fbe9df; color: #a2502b !important; font-size: 0.9rem; font-weight: 600; line-height: 1.4; padding: 5px 12px; border-radius: 10px; margin: 4px 0 10px; }
.single-visits { margin-top: 20px; display: grid; gap: 12px 40px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.single-visits h3 { font-size: 1.15rem; margin-bottom: 6px; }
.single-visits p { color: var(--muted); margin: 0; }
.single-visits .price-list { margin: 0; }
.single-visits .price-list div:last-child { border-bottom: 0; }
.price-list { margin: 8px 0 0; display: grid; gap: 4px; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-list dt { font-weight: 600; }
.price-list dt small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.price-list dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.small-print { color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

/* Chi sono */
.about-grid { display: grid; gap: 40px; align-items: center; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.6rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Prenota */
.cta-block { background: var(--brand); color: #fff; border-radius: 28px; padding: 52px 24px; text-align: center; }
.cta-block p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-block .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-block .btn:hover { background: var(--soft); border-color: var(--soft); }
.cta-block .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-block .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.cta-block .ph { color: var(--ink); }
/* QR per scrivere su WhatsApp dal telefono: solo su schermi da computer */
.wa-qr { display: none; }
.cta-block .wa-qr p { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: left; }

/* Foto nelle card e nel blocco prenotazione */
.card .card-photo {
  margin: -26px -26px 22px; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.card .card-photo.photo-ph { border-width: 0 0 2px; padding: 16px; font-size: 0.95rem; }
.card-photo img, .cta-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cta-split { display: grid; padding: 0; overflow: hidden; }
.cta-split .cta-photo { aspect-ratio: 16 / 9; border-radius: 0; border: 0; }
.cta-split .cta-text { padding: 40px 24px 44px; }
.contact-line { margin: 0; }
.contact-line a { color: #fff; }
.legal-note { font-size: 0.85rem; margin: 18px auto 0 !important; }
.legal-note a { color: #fff; }

/* Pagine legali */
.legal-page { padding-bottom: 0; }
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.5em; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }

/* Barra fissa su mobile */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-cta .btn { flex: 1; padding: 12px 16px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cta-split { grid-template-columns: 1fr 1fr; text-align: left; }
  .cta-split .cta-photo { aspect-ratio: auto; min-height: 100%; }
  .cta-split .cta-text { padding: 52px 44px; align-self: center; }
  .cta-split p { margin-left: 0; }
  .cta-split .cta-row-center { justify-content: flex-start; }
  .wa-qr { display: flex; align-items: center; gap: 16px; max-width: 440px; margin: 22px auto 4px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 16px; }
  .wa-qr img { flex: none; width: 112px; height: 112px; }
  .cta-split .wa-qr { margin-left: 0; }
  body { padding-bottom: 0; }
  .nav, .header-cta { display: flex; }
  .mobile-cta { display: none; }
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .single-visits { grid-template-columns: 1fr 340px; align-items: center; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-links { justify-content: flex-end; }
}
