/* =====================
   BASE & RESET
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #f78b1e;
  --primary-dark: #e07a10;
  --accent: #f78b1e;
  --dark: #0a0a0a;
  --gray-900: #111111;
  --gray-700: #2a2a2a;
  --gray-500: #888888;
  --gray-200: #2e2e2e;
  --gray-100: #1a1a1a;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #e8e8e8;
  line-height: 1.6;
  font-size: 16px;
  background: #0a0a0a;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =====================
   LAYOUT
===================== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-gray { background: #111111; }
.section-dark { background: var(--dark); color: var(--white); }
.section-cta { background: var(--primary); color: #0a0a0a; }
.text-center { text-align: center; }

/* =====================
   TYPOGRAPHY
===================== */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
em { font-style: normal; color: var(--primary); }
.section-cta em { color: var(--white); opacity: .85; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { color: #f0f0f0; }
.section-header p { color: #888; margin-top: .75rem; font-size: 1.05rem; }

/* =====================
   BADGE
===================== */
.badge {
  display: inline-block;
  background: rgba(247,139,30,.15);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(247,139,30,.3);
}
.badge-blue { background: rgba(247,139,30,.1); color: var(--primary); border-color: rgba(247,139,30,.25); }
.badge-red  { background: rgba(247,139,30,.1); color: var(--primary); border-color: rgba(247,139,30,.25); }

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.icon-wa { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-primary .icon-wa { fill: var(--white); }
.btn-white .icon-wa { fill: var(--accent); }

/* =====================
   HEADER
===================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { font-size: .9rem; font-weight: 500; color: #aaaaaa; transition: color .15s; }
.nav a:hover { color: var(--primary); }
.header-cta { margin-left: 1rem; }

/* =====================
   HERO
===================== */
.hero { padding: 5rem 0 4rem; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text .badge { margin-bottom: 1.25rem; }
.hero-text h1 { margin-bottom: 1.25rem; color: #f0f0f0; }
.hero-sub { color: #888888; font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
  background: #141414;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #2e2e2e;
}
.chat-bubble { max-width: 85%; padding: .85rem 1.1rem; border-radius: 14px; font-size: .9rem; color: #e0e0e0; }
.chat-bubble.left { background: #1e1e1e; border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-bubble.right { background: rgba(247,139,30,.15); border-bottom-right-radius: 4px; align-self: flex-end; text-align: right; border: 1px solid rgba(247,139,30,.3); }
.chat-bubble.ai { background: rgba(247,139,30,.1); border: 1px solid rgba(247,139,30,.25); }
.chat-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; color: #666; }
.chat-status { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #666; padding-top: .5rem; border-top: 1px solid #2e2e2e; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.dot.green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

/* =====================
   PROBLEMA
===================== */
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.problem-card { background: #141414; border-radius: var(--radius); padding: 2rem; border: 1px solid #2e2e2e; box-shadow: var(--shadow); }
.problem-num { font-size: 2.5rem; font-weight: 800; color: #2e2e2e; display: block; margin-bottom: .75rem; line-height: 1; }
.problem-card h3 { margin-bottom: .5rem; color: #e0e0e0; }
.problem-card p { color: #888; font-size: .95rem; }

/* =====================
   SOLUZIONE
===================== */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.solution-item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; border-radius: var(--radius); border: 1px solid #2e2e2e; background: #141414; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.solution-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(247,139,30,.4); }
.solution-icon { font-size: 2rem; flex-shrink: 0; }
.solution-item h3 { margin-bottom: .35rem; color: #e0e0e0; }
.solution-item p { color: #888; font-size: .92rem; }

/* =====================
   FASI
===================== */
.phases { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.phase { display: flex; gap: 2rem; align-items: flex-start; position: relative; padding-bottom: 2.5rem; }
.phase:last-child { padding-bottom: 0; }
.phase:not(:last-child)::after { content: ''; position: absolute; left: 22px; top: 48px; bottom: 0; width: 2px; background: #2e2e2e; }
.phase-num { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #0a0a0a; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.phase-content h3 { margin-bottom: .35rem; color: #e0e0e0; }
.phase-content p { color: #888; font-size: .95rem; }

/* =====================
   STATS
===================== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-num { display: block; font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .75rem; }
.stat p { color: rgba(255,255,255,.75); font-size: .95rem; }
.stat p em { color: rgba(255,255,255,.5); font-size: .85rem; }
.stats-disclaimer { text-align: center; margin-top: 2.5rem; color: rgba(255,255,255,.4); font-size: .8rem; }

/* =====================
   FONDATORE
===================== */
.founder-section { display: grid; grid-template-columns: auto 1fr; gap: 4rem; align-items: center; }
.founder-avatar { width: 140px; height: 140px; border-radius: 50%; background: var(--primary); color: #0a0a0a; font-size: 2.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 40px rgba(247,139,30,.35); }
.founder-text .badge { margin-bottom: .75rem; }
.founder-text h2 { margin-bottom: 1rem; color: #e0e0e0; }
.founder-text p { color: #888; margin-bottom: .75rem; }
.founder-text .btn { margin-top: 1rem; }

/* =====================
   TESTIMONIALS
===================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { background: #141414; border-radius: var(--radius); padding: 2rem; border: 1px solid #2e2e2e; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.5rem; }
.quote { color: #aaa; font-size: .95rem; line-height: 1.7; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #0a0a0a; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: .95rem; color: #e0e0e0; }
.testimonial-author span { color: #666; font-size: .8rem; }

/* =====================
   CONFRONTO COSTI
===================== */
.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.comparison-card { border-radius: var(--radius); padding: 2rem; border: 2px solid #2e2e2e; background: #141414; color: #e0e0e0; }
.comparison-card h3 { margin-bottom: 1rem; color: #e0e0e0; }
.comparison-price { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; color: #888; }
.comparison-card ul { display: flex; flex-direction: column; gap: .6rem; }
.comparison-card li { font-size: .92rem; color: #666; }
.comparison-bad { background: #1a1010; border-color: #3a1a1a; }
.comparison-bad .comparison-price { color: #e05555; }
.comparison-neutral { background: #111; }
.comparison-good { background: var(--primary); border-color: var(--primary); color: #0a0a0a; box-shadow: 0 8px 40px rgba(247,139,30,.35); transform: scale(1.03); }
.comparison-good h3 { color: #0a0a0a; }
.comparison-good .comparison-price { color: rgba(0,0,0,.6); }
.comparison-good li { color: rgba(0,0,0,.75); }

/* =====================
   OFFERTA
===================== */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 800px; margin: 0 auto; }
.offer-item { display: flex; align-items: center; gap: .75rem; background: #141414; border: 1px solid #2e2e2e; border-radius: var(--radius); padding: 1.1rem 1.4rem; font-size: .95rem; font-weight: 500; box-shadow: var(--shadow); color: #e0e0e0; }
.check { color: var(--primary); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }

/* =====================
   FAQ
===================== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: #141414; border: 1px solid #2e2e2e; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary { padding: 1.25rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background .15s; color: #e0e0e0; }
.faq-item summary:hover { background: #1e1e1e; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.25rem; color: #888; font-size: .95rem; line-height: 1.7; }

/* =====================
   CTA SECTION
===================== */
.section-cta h2 { color: #0a0a0a; }
.section-cta p { color: rgba(0,0,0,.7); max-width: 540px; margin: .75rem auto 0; font-size: 1.05rem; }

/* =====================
   FOOTER
===================== */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo img { height: 40px; }
.footer-brand p { margin-top: .5rem; font-size: .88rem; max-width: 260px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 1.5rem; font-size: .82rem; text-align: center; }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 480px; }
  .problems-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-good { transform: none; }
  .founder-section { grid-template-columns: 1fr; text-align: center; }
  .founder-img { display: flex; justify-content: center; }
  .offer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-ctas { flex-direction: column; }
  .header-inner { height: 60px; }
}

/* =====================
   DIVENTA CHATTER PAGE
===================== */

/* Nav highlight */
.nav-highlight { color: var(--primary) !important; font-weight: 700 !important; }

/* Hero commission card */
.commission-card {
  background: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.commission-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #666; margin-bottom: 1.25rem; }
.commission-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #2e2e2e; }
.commission-row:last-of-type { border-bottom: none; }
.commission-row.highlight .commission-pct { color: var(--primary); font-size: 2.5rem; }
.commission-row.highlight .commission-desc { color: #e0e0e0; font-weight: 600; }
.commission-pct { font-size: 1.8rem; font-weight: 800; color: #888; min-width: 80px; }
.commission-desc { color: #888; font-size: .95rem; }
.commission-divider { height: 1px; background: #2e2e2e; margin: 1rem 0; }
.commission-example { padding-top: .25rem; }
.example-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #555; margin-bottom: .75rem; }
.example-row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; font-size: .9rem; color: #888; }
.example-earn { color: var(--primary); font-weight: 700; font-size: 1rem; }
.commission-note { margin-top: 1rem; font-size: .82rem; color: #555; border-top: 1px solid #2e2e2e; padding-top: .75rem; }

/* Fit grid */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 860px; margin: 0 auto; }
.fit-card { background: #141414; border-radius: var(--radius); padding: 2rem; border: 1px solid #2e2e2e; }
.fit-card.fit-yes { border-color: rgba(247,139,30,.35); }
.fit-card.fit-no  { border-color: #3a1a1a; }
.fit-title { font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; color: #e0e0e0; display: flex; align-items: center; gap: .5rem; }
.fit-icon { font-style: normal; color: var(--primary); font-weight: 800; }
.fit-icon.no { color: #e05555; }
.fit-card ul { display: flex; flex-direction: column; gap: .7rem; }
.fit-card li { font-size: .93rem; color: #888; padding-left: .25rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card { background: #141414; border-radius: var(--radius); padding: 2rem; border: 1px solid #2e2e2e; box-shadow: var(--shadow); }
.step-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); opacity: .35; display: block; margin-bottom: .75rem; line-height: 1; }
.step-card h3 { margin-bottom: .5rem; color: #e0e0e0; }
.step-card p { color: #888; font-size: .93rem; }

/* Provvigioni */
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.prov-card { background: #141414; border: 1px solid #2e2e2e; border-radius: var(--radius); padding: 2rem; }
.prov-card.prov-main { border-color: rgba(247,139,30,.4); box-shadow: 0 0 0 1px rgba(247,139,30,.15); }
.prov-phase { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #555; margin-bottom: .75rem; }
.prov-pct { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .75rem; }
.prov-card p { color: #888; font-size: .92rem; line-height: 1.6; }
.prov-card p strong { color: #e0e0e0; }
.prov-note { background: rgba(247,139,30,.08); border: 1px solid rgba(247,139,30,.2); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; color: #aaa; font-size: .93rem; }
.prov-note strong { color: #e0e0e0; }
.prov-note-icon { font-size: 1.5rem; flex-shrink: 0; }

/* Contratto */
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contract-item { background: #141414; border: 1px solid #2e2e2e; border-radius: var(--radius); padding: 1.75rem; }
.contract-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.contract-item h3 { margin-bottom: .4rem; color: #e0e0e0; font-size: 1rem; }
.contract-item p { color: #888; font-size: .9rem; }

/* CTA section override for black-on-orange */
.btn-black { background: #0a0a0a; color: var(--primary); border-color: #0a0a0a; }
.btn-black:hover { background: #1a1a1a; transform: translateY(-1px); }
.btn-black .icon-wa { fill: var(--primary); }
.btn-outline-black { background: transparent; color: #0a0a0a; border-color: rgba(0,0,0,.4); }
.btn-outline-black:hover { background: rgba(0,0,0,.15); }

/* Responsive */
@media (max-width: 900px) {
  .fit-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: 1fr; }
  .contract-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .contract-grid { grid-template-columns: 1fr; }
}
