/* ═══════════════════════════════════════════
   RISPOSTA — Landing Page Theme
   Fonts: Instrument Serif + Barlow
   Palette: #0f0f0e | #e07c24 | #f5f1eb
   ═══════════════════════════════════════════ */

:root {
  --bg: #0f0f0e;
  --bg-alt: #16160f;
  --amber: #e07c24;
  --amber-dim: rgba(224, 124, 36, 0.15);
  --amber-mid: rgba(224, 124, 36, 0.5);
  --text: #f5f1eb;
  --text-dim: rgba(245, 241, 235, 0.55);
  --text-muted: rgba(245, 241, 235, 0.3);
  --border: rgba(224, 124, 36, 0.18);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO ─────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 48px 64px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  color: var(--amber);
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 440px;
}

.hero-right { position: relative; }

.hero-graphic svg { width: 100%; height: auto; display: block; }

.hero-accent-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  opacity: 0.4;
}

/* ─── STATS ──────────────────────────────── */

.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 32px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--amber);
  line-height: 1;
}

.stat-unit {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 140px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── SECTIONS ──────────────────────────── */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ─── 01 RISPONDI ───────────────────────── */

.rispondi-section {
  border-top: 1px solid var(--border);
}

.rispondi-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Phone frame */
.phone-frame {
  background: #1a1a18;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  max-width: 320px;
}

.phone-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.phone-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.4;
}

.phone-body { display: flex; flex-direction: column; gap: 10px; }

.chat-in, .chat-out {
  background: rgba(224,124,36,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 85%;
}

.chat-out {
  align-self: flex-end;
  background: var(--amber-dim);
  border-color: var(--amber-mid);
}

.chat-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

.chat-time {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224,124,36,0.2);
  border: 1px solid var(--amber);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  margin-top: 4px;
  width: fit-content;
}

/* Feature right */
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 20px;
}

.feature-heading {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.feat-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── 02 LEADS ───────────────────────────── */

.leads-section {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.leads-visual { margin-top: 48px; }

.leads-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.leads-flow::-webkit-scrollbar { display: none; }

.flow-step {
  flex: 0 0 auto;
  max-width: 200px;
  text-align: center;
  padding: 0 16px;
}

.flow-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--bg);
}

.flow-step h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.flow-arrow {
  flex-shrink: 0;
  align-self: center;
  padding: 0 4px;
}

.leads-proof {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.proof-stat { max-width: 300px; }

.proof-num {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-stat p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── 03 AUTOMAZIONI ─────────────────────── */

.automazioni-section {
  border-top: 1px solid var(--border);
}

.automazioni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.auto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.auto-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
}

.automation-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auto-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.auto-item:first-child { border-top: 1px solid var(--border); }

.auto-num {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--amber);
  opacity: 0.6;
  flex-shrink: 0;
  padding-top: 2px;
}

.auto-item h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.auto-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── 04 RISULTATI ───────────────────────── */

.risultati-section {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.risultati-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.ris-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.ris-visual {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ris-visual svg { width: 100%; max-width: 120px; height: 80px; }

.ris-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.ris-item p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── MANIFESTO ──────────────────────────── */

.manifesto {
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
}

.manifesto-inner { max-width: 800px; margin: 0 auto; }

.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 20px;
}

.manifesto-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 48px;
}

.manifesto-rule {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rule-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

/* ─── FOOTER ─────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-name {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* ─── RESPONSIVE ─────────────────────────── */

@media (max-width: 900px) {
  .hero { padding: 48px 24px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  
  .stats { padding: 32px 24px; }
  .stats-grid { flex-wrap: wrap; justify-content: center; }
  .stat { flex: 0 0 calc(50% - 16px); }
  .stat-divider { display: none; }

  .section-inner { padding: 48px 24px; }

  .rispondi-visual { grid-template-columns: 1fr; }
  .phone-frame { max-width: 100%; }
  
  .automazioni-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .risultati-grid { grid-template-columns: repeat(2, 1fr); }

  .leads-flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); }
  .leads-proof { flex-direction: column; gap: 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  .risultati-grid { grid-template-columns: 1fr; }
  .stat { flex: 0 0 100%; }
}