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

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
  color: #0f172a; /* quasi nero, leggibile */
  background: #f3f4f6;
  line-height: 1.6;
}

/* LAYOUT GENERALE */
.section {
  padding: 64px 16px;
}

.section-light {
  background: #f9fafb;
}

.section-dark {
  background: radial-gradient(circle at top left, #111827, #020617);
  color: #e5e7eb;
}

.section-footer {
  background: #020617;
  color: #e5e7eb;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  color: #e5e7eb;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 70px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #f9fafb;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* NAV DESKTOP */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: rgba(148, 163, 184, 0.25);
}

.btn-nav-whatsapp {
  background: #16a34a;
  color: #ecfdf5;
  font-weight: 600;
}

/* NAV MOBILE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* TYPOGRAFIA */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #16a34a;
  margin-bottom: 10px;
}

.eyebrow-on-dark {
  color: #6ee7b7;
}

h1 {
  font-size: clamp(1.8rem, 2.7vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.lead {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 18px;
}

p {
  font-size: 0.95rem;
}

/* HERO */
.hero {
  background: radial-gradient(circle at top left, #0f172a, #020617 50%, #022c22 100%);
  color: #e5e7eb;
  padding-top: 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text .lead {
  color: #e5e7eb;
  opacity: 0.9;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.hero-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.94rem;
}

.hero-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
}

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

/* HERO MEDIA */
.hero-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-main-wrapper {
  background: #022c22;
  border-radius: 24px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 18px;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
}

/* BOTTONI */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.15s;
}

.btn-primary {
  background: #16a34a;
  color: #ecfdf5;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: #4b5563;
  color: #111827;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* Varianti colore */
.btn-orange {
  background: #ea580c;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.35);
}

.btn-orange:hover {
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.4);
}

.btn-whatsapp-outline {
  border-color: #16a34a;
  color: #16a34a;
}

/* SEZIONI CONTENUTO */
.section-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: left;
}

.section-head p {
  color: #4b5563;
}

/* LISTE & CARD */
.checklist {
  list-style: none;
}

.checklist li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
  color: #374151;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: #16a34a;
  font-weight: 700;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* FORM VALUTAZIONE */
.valutazione-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.form-card h3 {
  margin-bottom: 4px;
}

.form-sub {
  font-size: 0.87rem;
  color: #6b7280;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-bottom: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 9px 12px;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
}

.form-field textarea {
  border-radius: 14px;
  min-height: 80px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
  background: #ffffff;
}

.field-help {
  font-size: 0.78rem;
  color: #6b7280;
}

.privacy-note {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 10px 0 14px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* MESSAGGI FORM */
#form-messaggi {
  margin-top: 12px;
}

.successo,
.errore {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.successo {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.errore {
  background: #fef2f2;
  color: #B91C1C;
  border: 1px solid #fecaca;
}

/* STEP SECTION */
.come-funziona-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.step-card {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #16a34a;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.illustrazione-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

/* GRID GENERICA */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* RECENSIONI */
.recensioni-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.review-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  font-size: 0.9rem;
}

.review-stars {
  color: #fbbf24;
  font-size: 1.0rem;
  margin-bottom: 4px;
}

.reviews-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 10px;
}

/* MAGAZINE STRIP */
.section-dark .container {
  max-width: 1040px;
}

.title-on-dark {
  color: #e5e7eb;
}

.on-dark {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.magazine-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mag-card {
  flex: 1 1 120px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.mag-card:hover {
  background: #16a34a;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* CONSIGLI */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}

.chip {
  border-radius: 999px;
  border: 1px dashed #cbd5f5;
  padding: 6px 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  cursor: pointer;
}

.tip-content {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #374151;
}

/* FAQ */
.faq-list details {
  margin-bottom: 8px;
  border-radius: 999px;
  background: #ffffff;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* CONTATTI / FOOTER */
.footer-top h2 {
  margin-bottom: 4px;
}

.footer-top p {
  font-size: 0.92rem;
  color: #9ca3af;
}

.contact-icons {
  margin: 18px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-icon {
  flex: 1 1 120px;
  max-width: 190px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #020617;
  border: 1px solid #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.contact-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-icon span {
  font-weight: 500;
}

.contact-icon:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.8);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #9ca3af;
  border-top: 1px solid #1f2937;
  padding-top: 10px;
  margin-top: 14px;
}

.footer-mini {
  opacity: 0.8;
}

/* BARRA MOBILE */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #020617;
  padding: 6px 10px;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  z-index: 40;
}

.mobile-bar a {
  flex: 1;
  text-align: center;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 7px 8px;
  border-radius: 999px;
}

.mobile-bar a:first-child {
  background: #16a34a;
}

.mobile-bar a:nth-child(2) {
  background: #111827;
}

.mobile-bar a:nth-child(3) {
  background: #1f2937;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid,
  .valutazione-layout,
  .come-funziona-layout,
  .grid-3,
  .grid-2,
  .recensioni-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-main-wrapper {
    order: -1;
  }

  .section {
    padding: 48px 14px 64px;
  }

  .topbar-inner {
    padding-inline: 12px;
  }

  .main-nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 12px 16px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease-out, opacity 0.16s ease-out;
  }

  .main-nav a {
    width: 100%;
  }

  .nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .topbar.nav-open {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
  }

  .valutazione-layout {
    gap: 20px;
  }

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

  .contact-icons {
    justify-content: flex-start;
  }

  .contact-icon {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .hero-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-card {
    font-size: 0.88rem;
  }
}
