/* === NETWORK AUTO — TEMA CHIARO (Bianco / Nero / Blu) === */
body.light-theme {
  background-color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  color: #111;
  line-height: 1.6;
}

/* === SEZIONE "COME FUNZIONA" — SISTEMATA === */
.steps {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.steps-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0056ff;
  margin-bottom: 10px;
}

.steps-subtitle {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* Griglia dei box */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
}

/* Box singolo */
.step-box {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.step-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 86, 255, 0.15);
}

/* Numeri step */
.step-number {
  background: #0056ff;
  color: #fff;
  display: inline-block;
  font-weight: 700;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.step-box h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.step-box p {
  color: #555;
  font-size: 15px;
}

/* Testi step */
.step-box h5 {
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}
.step-box p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* Responsive grid */
@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 576px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ======= SEZIONE CONTATTACI ======= */
.contact-section {
  padding: 60px 0;
  background: #fff;
  color: #111;
}

.contact-title {
  color: #0056ff;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-section .container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Card form */
.form-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

/* Campi input */
.form-control {
  background-color: #f9f9f9;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 8px;
  height: 48px;
  font-size: 15px;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: #0056ff;
  box-shadow: 0 0 5px rgba(0, 86, 255, 0.25);
}

/* Uniforma altezza dei select rispetto agli input */
.form-control.input-lg {
  height: 52px;
}

/* Select */
select.form-control {
  appearance: none;
  background-image: url('../images/arrow-down-blue.svg');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Pulsante blu */
.btn-primary {
  background-color: #0056ff;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 50px;
  border: none;
  padding: 14px 40px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #003bb3;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 86, 255, 0.3);
}

/* ======= LOGO ======= */
#logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 8px auto;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.03);
}

/* Logo su mobile */
@media (max-width: 768px) {
  #logo {
    max-width: 220px;
    margin: 12px auto;
  }
}

/* ======= FOOTER ======= */
footer {
  background: #f8f8f8;
  color: #444;
  padding: 20px 0;
}
footer a {
  color: #0056ff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ======= SEZIONI E TESTI ======= */
.container {
  background: #fff;
  color: #111;
  border-radius: 10px;
}

h1, h2, h3, h4, h5 {
  color: #111;
  font-weight: 700;
}

.text-gold {
  color: #0056ff;
}

.feature-card {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 15px rgba(0, 86, 255, 0.1);
  transform: translateY(-4px);
}

.feature-card h5 {
  color: #0056ff;
}

/* CTA */
.cta {
  background: #0056ff;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta .btn-light {
  background: #fff;
  color: #0056ff;
  border-radius: 50px;
  border: none;
  padding: 12px 35px;
}

.cta .btn-light:hover {
  background: #f0f0f0;
}

/* === BLOCCO "AFFIDATI A NOI" CHIUSO E COMPATTO === */
.footercta-contact {
  background-color: #0056ff; /* Blu pieno */
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;              /* <-- Permette di adattarsi su mobile */
  box-sizing: border-box;       /* Evita overflow */
  overflow-x: hidden;           /* Previene scorrimento laterale */
  width: 100%;
}

.cta-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.cta-box h2 {
  color: #0056ff;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-box p {
  color: #333;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Bottoni */
.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.cta-buttons .btn {
  background: #0056ff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;         /* <-- Fa andare il testo a capo se serve */
  text-align: center;
  box-sizing: border-box;
}

.cta-buttons .btn:hover {
  background: #003bb3;
  transform: translateY(-2px);
}

/* === VERSIONE MOBILE === */
@media (max-width: 768px) {
  .footercta-contact {
    padding: 40px 10px;       /* Meno spazio ai lati */
  }

  .cta-box {
    padding: 25px 15px;
    width: 100%;
    max-width: 95%;           /* <-- Fa rientrare perfettamente il box */
    margin: 0 auto;
  }

  .cta-box h2 {
    font-size: 22px;
  }

  .cta-box p {
    font-size: 15px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 340px;
    font-size: 14px;
    padding: 12px 20px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cta-box {
    padding: 30px 20px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}