/* ===================== Landing page ===================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,245,241,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.nav-logo .dot { color: var(--brass); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.hero {
  padding: 88px 0 60px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(47,111,98,0.1);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before { content: '●'; color: var(--teal); font-size: 8px; }

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass);
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 24px; font-size: 13px; color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* --- Signature element: il "tag" della porta --- */
.doortag-wrap {
  position: relative;
  display: flex; justify-content: center;
}
.doortag {
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 32px;
  position: relative;
  transform: rotate(3deg);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  border: 1px solid var(--line);
}
.doortag-wrap:hover .doortag { transform: rotate(0deg) translateY(-6px); }
.doortag::before {
  content: '';
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 14px;
  border-radius: 8px 8px 0 0;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-bottom: none;
}
.doortag .hole {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0 auto 18px;
}
.doortag-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 14px;
}
.doortag-qr {
  width: 176px; height: 176px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  gap: 2px;
  background: var(--white);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.doortag-qr span {
  background: var(--ink);
  border-radius: 1px;
  opacity: 0;
  animation: qr-resolve 1.4s ease forwards;
}
@keyframes qr-resolve { to { opacity: var(--o, 1); } }
.doortag-title { text-align: center; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.doortag-sub { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.doortag-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--brass); color: var(--white);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 8px 12px; border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
}

@media (prefers-reduced-motion: reduce) {
  .doortag-qr span { opacity: 1; animation: none; }
}

section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brass-dark);
  margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 16px; margin-top: 14px; }

.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.problem-card {
  padding: 28px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--white);
}
.problem-card .num {
  font-family: var(--font-mono); color: var(--brass); font-size: 13px; margin-bottom: 14px;
}
.problem-card h3 { font-size: 18px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700;}
.problem-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

.flow {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px;
}
.flow .section-head h2, .flow .section-head p { color: var(--paper); }
.flow .section-head p { color: #A9B2BF; }
.flow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.flow-step { border-left: 2px solid rgba(255,255,255,0.15); padding-left: 18px; }
.flow-step .step-num { font-family: var(--font-mono); color: var(--brass); font-size: 13px; }
.flow-step h4 { font-size: 15px; margin: 8px 0 6px; font-weight: 700; }
.flow-step p { font-size: 13px; color: #A9B2BF; margin: 0; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.plan {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; background: var(--white);
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: var(--brass);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan.featured::before {
  content: 'Più scelto';
  position: absolute; top: -12px; right: 24px;
  background: var(--brass); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .price { font-family: var(--font-display); font-size: 40px; margin: 14px 0; }
.plan .price span { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan li { font-size: 14px; padding: 8px 0; border-top: 1px solid var(--paper-alt); color: var(--ink-soft); }
.plan li:first-child { border-top: none; }
.plan li b { color: var(--ink); }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--brass); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--ink-soft); margin-top: 12px; font-size: 14px; max-width: 640px; }

.cta-final {
  text-align: center;
  background: var(--paper-alt);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
}
.cta-final h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.cta-final p { color: var(--ink-soft); margin-bottom: 28px; }

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
footer .container { display: flex; justify-content: space-between; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .problem-grid, .flow-steps, .pricing-grid { grid-template-columns: 1fr; }
  .flow { padding: 32px; }
  .nav-links { display: none; }
  footer .container { flex-direction: column; gap: 12px; }
}
