/* ================================================
   RISTOFLOW-AI.COM — STYLESHEET
   Colore primario: #0E5A7A
   Font: Inter (Google Fonts)
================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

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

:root {
  --primary: #0E5A7A;
  --primary-dark: #0a4560;
  --primary-light: #e8f4f8;
  --accent: #00c896;
  --accent2: #ff6b35;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(14,90,122,0.10);
  --shadow-lg: 0 8px 48px rgba(14,90,122,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-light); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: #00a87e; transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }

/* ── HERO ───────────────────────────────────── */
.hero {
  padding: 140px 0 96px;
  background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 50%, #f0fdf7 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,90,122,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(14,90,122,0.15);
}
.hero h1 { color: var(--text); margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.15rem; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Sora', sans-serif;
}
.hero-stat span { font-size: 0.85rem; color: var(--text-light); }

/* ── APP MOCKUP ─────────────────────────────── */
.hero-visual { position: relative; }
.app-mockup {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mockup-topbar {
  background: var(--primary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-topbar-logo {
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.mockup-dots { display: flex; gap: 6px; margin-left: auto; }
.mockup-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.mockup-body { padding: 16px; background: #f8fafc; }
.mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mockup-card {
  background: white;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}
.mockup-card-label { font-size: 0.7rem; color: var(--text-light); margin-bottom: 4px; }
.mockup-card-value { font-size: 1.1rem; font-weight: 700; color: var(--text); font-family: 'Sora', sans-serif; }
.mockup-card-accent { color: var(--accent); }
.mockup-card-primary { color: var(--primary); }
.mockup-chat {
  background: white;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}
.mockup-chat-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-msg {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  max-width: 85%;
}
.mockup-msg-in {
  background: var(--primary-light);
  color: var(--text);
  border-radius: 8px 8px 8px 2px;
}
.mockup-msg-out {
  background: var(--primary);
  color: white;
  border-radius: 8px 8px 2px 8px;
  margin-left: auto;
}
.mockup-float {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}
.mockup-float-1 { top: -20px; right: -20px; }
.mockup-float-2 { bottom: 20px; left: -30px; }
.mockup-float strong { display: block; font-weight: 700; color: var(--text); font-size: 0.9rem; }
.mockup-float span { color: var(--text-light); font-size: 0.75rem; }

/* ── LOGOS/TRUST BAR ────────────────────────── */
.trust-bar {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-icon { font-size: 1.2rem; }

/* ── PROBLEMA/SOLUZIONE ─────────────────────── */
.problem-section { background: var(--text); color: white; }
.problem-section p { color: rgba(255,255,255,0.7); }
.problem-section h2 { color: white; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
}
.problem-icon { font-size: 2rem; margin-bottom: 12px; }
.problem-card h3 { color: white; margin-bottom: 8px; font-size: 1rem; }
.problem-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.solution-arrow {
  text-align: center;
  padding: 32px 0;
  font-size: 2rem;
}

/* ── FEATURES ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }
.feature-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 12px;
}
.feature-tag-accent { background: #e8fdf5; color: #00a87e; }

/* ── TONY AI SPOTLIGHT ──────────────────────── */
.tony-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4560 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.tony-section::after {
  content: 'AI';
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  font-size: 280px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}
.tony-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tony-section h2 { color: white; }
.tony-section p { color: rgba(255,255,255,0.8); }
.tony-list { list-style: none; margin-top: 24px; }
.tony-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.tony-list li:last-child { border-bottom: none; }
.tony-check {
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: white;
}
.tony-chat-demo {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.tony-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tony-avatar {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.tony-chat-name { color: white; font-weight: 600; font-size: 0.9rem; }
.tony-chat-status { color: var(--accent); font-size: 0.75rem; }
.tony-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  max-width: 90%;
  line-height: 1.5;
}
.tony-msg-user {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-radius: 10px 10px 2px 10px;
  margin-left: auto;
}
.tony-msg-tony {
  background: white;
  color: var(--text);
  border-radius: 10px 10px 10px 2px;
}

/* ── STORIA ─────────────────────────────────── */
.story-section { background: var(--bg); }
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-badge {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.story-section h2 { margin-bottom: 20px; }
.story-section p { margin-bottom: 16px; }
.story-quote {
  background: white;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
  box-shadow: var(--shadow);
}
.story-quote p { color: var(--text); font-style: italic; margin-bottom: 8px; }
.story-quote cite { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.story-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.story-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.story-stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Sora', sans-serif;
}
.story-stat-card span { font-size: 0.85rem; color: var(--text-light); }
.story-stat-card.accent strong { color: var(--accent); }
.story-stat-card.full { grid-column: 1 / -1; }

/* ── PRICING ────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.25s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-name { font-size: 0.85rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text);
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── CTA FINALE ─────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4560 100%);
  text-align: center;
  padding: 96px 0;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 36px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.footer-logo img { height: 32px; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: white; }

/* ── SECTION HEADERS ────────────────────────── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* ── PAGE HEADER (inner pages) ──────────────── */
.page-hero {
  padding: 120px 0 64px;
  background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; }

/* ── LEGAL PAGES ────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 12px; color: var(--text); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--text); }
.legal-content p { margin-bottom: 16px; color: var(--text-light); }
.legal-content ul { margin: 0 0 16px 20px; }
.legal-content ul li { color: var(--text-light); margin-bottom: 6px; }
.legal-content a { color: var(--primary); }
.legal-date { color: var(--text-light); font-size: 0.9rem; margin-bottom: 32px; }

/* ── MOBILE MENU ────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-mobile-open .nav-cta {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    padding: 0 24px 24px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    top: auto;
  }

  /* HERO */
  .hero { padding: 100px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }

  /* GRIDS */
  .features-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .tony-inner { grid-template-columns: 1fr; }
  .story-inner { grid-template-columns: 1fr; }
  .story-visual { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
}
