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

:root {
  --blue:        #1952a9;
  --blue-dark:   #143f87;
  --blue-light:  #deeaf8;
  --blue-subtle: #f0f5fc;

  --green:       #1e7d5c;
  --green-light: #d4efe5;

  --red:         #c94040;
  --red-light:   #fdf0f0;
  --red-border:  #f0c8c8;

  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;

  --white:       #ffffff;
  --surface:     #f8fafc;
  --border:      #e2e8f0;

  --wa:          #25D366;
  --wa-dark:     #1ab954;

  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 740px; }

/* ============================================================
   FADE-IN ANIMATION
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
.fade-in--delay { animation-delay: 0.15s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TIPOGRAFIA
============================================================ */
.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-subtle);
  border: 1px solid var(--blue-light);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ============================================================
   BOTTONI
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(25,82,169,.25);
}
.btn--primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(25,82,169,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue-light);
}
.btn--ghost:hover {
  background: var(--blue-subtle);
  border-color: var(--blue);
}

.btn--whatsapp {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(37,211,102,.28);
}
.btn--whatsapp:hover {
  background: var(--wa-dark);
  box-shadow: 0 4px 16px rgba(37,211,102,.38);
}
.btn--whatsapp svg { width: 19px; height: 19px; flex-shrink: 0; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25,82,169,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  position: relative;
}

.navbar__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.navbar__logo-img {
  height: 100px;
  width: auto;
  display: block;
}

.navbar__logo span { color: var(--blue); }
.navbar__logo:hover { text-decoration: none; }

.navbar .btn--primary {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
  position: relative;
  z-index: 2;
}
.navbar .btn--primary:hover {
  background: var(--blue-light);
  box-shadow: none;
}

.navbar__nav {
  display: flex;
  gap: 24px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.navbar__nav a {
  font-size: 0.87rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}
.navbar__nav a:hover { color: rgba(255,255,255,0.75); text-decoration: none; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--blue-subtle);
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  align-items: center;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ============================================================
   STATS
============================================================ */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}
.stats__item:last-child { border-right: none; }

.stats__item strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stats__item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   PROBLEM
============================================================ */
.problem {
  padding: 72px 0;
  background: var(--white);
}
.problem .container--narrow { margin-inline: auto; }

.problem__list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.problem__icon { flex-shrink: 0; width: 20px; height: 20px; }
.problem__icon svg { width: 20px; height: 20px; }

.problem__closing {
  text-align: center;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-subtle);
  border-radius: var(--radius);
  padding: 16px 24px;
  border: 1px solid var(--blue-light);
}

/* ============================================================
   SOLUTION
============================================================ */
.solution {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.solution__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.solution__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.solution__card-icon {
  width: 38px;
  height: 38px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.solution__card-icon svg { width: 19px; height: 19px; }

.solution__card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.solution__card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   BENEFITS
============================================================ */
.benefits {
  padding: 72px 0;
  background: var(--white);
}

.benefits__header {
  text-align: center;
  margin-bottom: 36px;
}
.benefits__header .section__intro { margin-bottom: 0; }

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 780px;
  margin-inline: auto;
}

.benefits__card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.benefits__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.benefits__num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.2;
  line-height: 1;
}

.benefits__card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.benefits__card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   CTA FINALE
============================================================ */
.cta {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cta__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cta__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 40px;
}

.cta__wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.cta__form-col,
.cta__wa-col {
  padding: 36px 36px 40px;
}

.cta__col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__group { display: flex; flex-direction: column; gap: 5px; }

.form__group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.form__group input {
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25,82,169,.1);
}
.form__group input::placeholder { color: var(--text-light); }

.form__privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* Divisore verticale */
.cta__vdivider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cta__vdivider::before,
.cta__vdivider::after {
  content: '';
  flex: 1;
  width: 1px;
  background: var(--border);
}
.cta__vdivider span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 0;
}

/* Colonna WhatsApp */
.cta__wa-col {
  display: flex;
  flex-direction: column;
  background: var(--blue);
}

.cta__wa-col .cta__col-title {
  color: var(--white);
}

.cta__wa-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta__wa-list {
  list-style: none;
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta__wa-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.8);
}
.cta__wa-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.cta__wa-list svg path { stroke: rgba(255,255,255,.9); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: rgba(25,82,169,0.96);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.footer__brand {
  font-size: 0.92rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  letter-spacing: -0.01em;
}
.footer__brand span { color: #7eb3f5; }

.footer p {
  font-size: 0.8rem;
  color: var(--white);
}

.footer a {
  font-size: 0.8rem;
  color: var(--white);
}
.footer a:hover { opacity: 0.75; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .cta__wrapper {
    grid-template-columns: 1fr;
  }
  .cta__vdivider {
    flex-direction: row;
    padding: 4px 0;
  }
  .cta__vdivider::before,
  .cta__vdivider::after {
    width: auto;
    height: 1px;
    flex: 1;
  }
  .cta__vdivider span { padding: 0 12px; }
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar .btn--sm { display: none; }

  .navbar__inner {
    justify-content: center;
    height: 80px;
    padding: 8px 0;
  }

  .navbar__logo {
    position: static;
    transform: none;
  }

  .navbar__logo-img {
    height: 64px;
    width: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero { padding: 52px 0 44px; text-align: center; }
  .hero__label { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__image { order: -1; }
  .hero__img { height: 240px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid var(--border); }
  .stats__item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stats__item:nth-last-child(-n+2) { border-bottom: none; }

  .solution__grid { grid-template-columns: 1fr; }

  .cta__form-col,
  .cta__wa-col { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .benefits__grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .section__title { font-size: 1.4rem; }
  .footer__inner { flex-direction: column; text-align: center; gap: 8px; }
}
