/* Landing page marketing — mobile-first, palette campionata dal logo. */

:root {
  --navy: #12283a;
  --green: #1f9a3b;
  --green-dark: #0b7a2e;
  --orange: #f86800;
  --gold: #f0a800;
  --bg-tint: #f8f8f8;
  --bg: #ffffff;
  --ink-soft: #4a5a68;
  --border: #e6e9ec;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(18, 40, 58, 0.08);
  --max-w: 1120px;
  font-size: 100%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Poppins", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw + 1rem, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 0.6em;
}

.lead {
  font-size: 1.15rem;
  max-width: 640px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 154, 59, 0.35);
}
.btn--primary:hover { background: var(--green-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

.btn--ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }

.site-nav { display: none; align-items: center; gap: 28px; }
.site-nav a { color: var(--navy); font-weight: 600; }
.site-nav a:hover { color: var(--green); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .login-link { display: none; font-weight: 700; color: var(--navy); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 20px;
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .header-cta .login-link { display: inline; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero { padding: 56px 0 48px; }
.hero .wrap { text-align: center; }
.hero-logo { height: 72px; width: auto; margin: 0 auto 28px; }
.hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-lead { margin: 14px auto 0; }
.hero-login { display: inline-block; font-weight: 700; margin-top: 24px; }

.hero-fork {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 40px auto 0;
  text-align: left;
}
@media (min-width: 680px) {
  .hero-fork { grid-template-columns: 1fr 1fr; }
}
.fork-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fork-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(18, 40, 58, 0.14); }
.fork-card--party { background: linear-gradient(180deg, #eff9f1 0%, #ffffff 55%); }
.fork-card--gift { border-top-color: var(--orange); background: linear-gradient(180deg, #fff3e8 0%, #ffffff 55%); }
.fork-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  background: var(--green);
}
.fork-card--gift .fork-icon { background: var(--orange); }
.fork-card h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.fork-card p { font-size: 1rem; margin-bottom: 24px; }
.fork-card .btn { width: 100%; }
@media (min-width: 420px) {
  .fork-card .btn { width: auto; }
}

.hero-badges {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

@media (min-width: 640px) {
  .hero-logo { height: 96px; margin-bottom: 32px; }
}

/* Pain points — riconoscibili, in stile "bolla di chat" */
.pain-bubbles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .pain-bubbles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .pain-bubbles { grid-template-columns: repeat(5, 1fr); }
}
.pain-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

/* Split: testo + mockup affiancati */
.split {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-text { order: 2; }
  .split--reverse .split-visual { order: 1; }
}
.split-text .eyebrow { display: block; }
.split-visual { display: flex; justify-content: center; }

/* Mockup pagina evento */
.mockup-card, .gift-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
}
.mockup-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.mockup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--navy);
}
.mockup-row:last-of-type { border-bottom: none; }
.mockup-row svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 14px;
}
.mockup-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.mockup-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  opacity: 0.85;
}

/* Mockup gruppo regalo */
.gift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}
.gift-row:last-of-type { border-bottom: none; }
.gift-amount { color: var(--ink-soft); font-weight: 700; }
.status { margin-right: 6px; font-weight: 700; }
.status--paid { color: var(--green-dark); }
.status--pending { color: var(--gold); }
.gift-total-top { margin-bottom: 18px; }
.gift-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-tint);
  overflow: hidden;
  margin-bottom: 8px;
}
.gift-progress-bar { height: 100%; background: var(--green); border-radius: 999px; }
.gift-total-label { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0; }
.gift-meta { font-size: 0.88rem; margin: 8px 0 0; }

/* Callout list (sezione "il momento del regalo") */
.callout-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.callout-list li { font-size: 0.95rem; color: var(--ink-soft); }
.callout-list strong {
  display: block;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.mockup-sub { font-size: 0.85rem; color: var(--ink-soft); margin: -8px 0 16px; }

/* Mockup "scopri i tuoi regali" */
.unwrap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.unwrap-gift {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--bg-tint);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.unwrap-gift--open {
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-style: solid;
  border-color: transparent;
  color: #fff;
}

/* Mockup "dal regalo al ricordo" */
.memory-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.memory-photo {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  opacity: 0.85;
  margin-bottom: 16px;
}
.memory-quote {
  font-family: "Poppins", sans-serif;
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.memory-names { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }

/* Steps */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step { text-align: center; padding: 0 8px; }
.step .step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features grid */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 12px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 18px; }

/* Final CTA */
.cta-final {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 48px 28px;
  text-align: center;
  color: #fff;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #c7d2da; }
.cta-final .btn--primary { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.cta-final-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (min-width: 480px) {
  .cta-final-buttons { flex-direction: row; justify-content: center; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-tint);
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer-logo { height: 32px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer-nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.footer-meta { color: #7a8894; font-size: 0.85rem; }

@media (min-width: 760px) {
  .footer-grid { flex-direction: row; justify-content: space-between; text-align: left; }
}
