/* ============================
   COSA RICEVI – ONLINE
============================ */
.dieta-online {
  padding: 4rem 0;
  background-color: transparent;
}
.dieta-online .container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

.online-head {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.come-online-title {
  color: #04211A;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Griglia principale */
.online-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: stretch;
}

/* CARD BASE */
.online-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.online-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ICONA */
.online-icon {
  margin-bottom: 1rem;
  border-radius: 0;
  padding: 0;
  background: none;
}

.online-icon svg {
  width: 45px;
  height: 45px;
  fill: currentColor;
}

/* TITOLO */
.online-step-title {
  font-size: 1.5rem;
  color: #04211A;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* TESTO */
.online-content p {
  font-size: 1.2rem;
  color: #04211A;
  margin: 0;
  line-height: 1.5;
}

/* VARIANTI COLORI */
.online-item:nth-child(1) {
  background: #ffffff;
  border: 1px solid #04211A;
}
.online-item:nth-child(1) .online-step-title,
.online-item:nth-child(1) p {
  color: #04211A;
}
.online-item:nth-child(1) svg {
  fill: #04211A;
}

.online-item:nth-child(2) {
  background: #04211A;
}
.online-item:nth-child(2) .online-step-title,
.online-item:nth-child(2) p {
  color: #ffffff;
}
.online-item:nth-child(2) svg {
  fill: #c2380c;
}

.online-item:nth-child(3) {
  background: #c2380c;
}
.online-item:nth-child(3) .online-step-title,
.online-item:nth-child(3) p {
  color: #ffffff;
}
.online-item:nth-child(3) svg {
  fill: #ffffff;
}

.online-item:nth-child(4) {
  background: #084537;
}
.online-item:nth-child(4) .online-step-title,
.online-item:nth-child(4) p {
  color: #ffffff;
}
.online-item:nth-child(4) svg {
  fill: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .online-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .online-list {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   SEZIONE: Dietista Certificato
=============================== */
.dietista-certificato {
  padding: 4rem 0;
  margin-top: 4rem;
  background-color: transparent;
}

.dietista-certificato .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
}

/* COLONNA IMMAGINE */
.guida-wrapper {
  flex: 0 0 300px;
  max-width: 300px;
  margin-left: 150px;
  text-align: center;
}

.guida-inclusa img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.guida-inclusa img:hover {
  transform: translateY(-4px);
}

/* COLONNA TESTO */
.text-block {
  flex: 1 1 0;
  min-width: 0;
}

.section-title {
  font-size: 2rem;
  color: #04211A;
  margin-bottom: 0.5rem;
  text-align: left;
}

.section-intro {
  font-size: 1.1rem;
  color: #04211A;
  margin-bottom: 2rem;
  text-align: left;
}

.dietista-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.dietista-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #04211A;
  line-height: 1.6;
}

.dietista-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  background-color: #c2380c;
  border-radius: 50%;
}

.section-subtitle {
  color: #c2380c;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .dietista-certificato .container {
    flex-direction: column-reverse;
  }

  .section-title,
  .section-intro,
  .section-subtitle {
    text-align: center;
  }

  .dietista-list li {
    font-size: 1rem;
    padding-left: 1.5rem;
  }

  .dietista-list li::before {
    top: 0.55rem;
  }

  .guida-wrapper {
    margin-left: 0;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .text-block {
    width: 100%;
  }
}


/* ===========================
   SEZIONE PREZZI - GENERALE
=========================== */
.prezzi-section {
  padding: 4rem 1rem;
}

.prezzi-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #04211A;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.pricing-card {
  flex: 1 1 280px;
  max-width: 320px;
  background-color: #ffffff;
  border-radius: 9px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  text-align: center;
  color: #04211A;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* BLOCCO PREZZO COLORATO */
.pricing-price {
  font-size: 2.2rem;
  padding: 1rem 1rem;
  margin-top: 1rem;
  background-color: #04211A;
  color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.pricing-card:nth-child(1) .pricing-price {
  background-color: #04211A;
}

.pricing-card:nth-child(2) .pricing-price,
.pricing-card:nth-child(3) .pricing-price {
  background-color: #0d573d;
}

.pricing-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
}

/* TITOLI E TESTI */
.pricing-title {
  margin-top: 3.5rem;
  margin-bottom: 0.25rem;
  color: #04211A;
}

.pricing-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
}

/* PREZZI DETTAGLIO */
.old-price {
  text-decoration: line-through;
  color: #c2380c;
  font-size: 1.5rem;
  margin-right: 0.25rem;
  font-weight: 600;
}

.currency {
  font-size: 1.2rem;
  vertical-align: super;
}

.main-price {
  font-size: 3rem;
  color: #ffffff;
}

.sub-price,
.price-period {
  font-size: 1rem;
  color: #ffffff;
}

/* LISTA FEATURES */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2rem;
  width: 100%;
  max-width: 260px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  color: #04211A;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  text-align: center;
  line-height: 1.5;
  gap: 0.5rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ✔ Icona verde */
.pricing-features li .check.verde::before {
  content: '✔';
  font-family: "Arial", sans-serif;
  color: #0d573d;
  font-size: 1.15rem;
  font-weight: bold;
  display: inline-block;
}

/* ✔ Icona grigia */
.pricing-features li .check.grigio::before {
  content: '✔';
  font-family: "Arial", sans-serif;
  color: #999999;
  font-size: 1.15rem;
  font-weight: bold;
  display: inline-block;
}

/* CTA BUTTON */
.pricing-btn {
  background: #c2380c;
  color: #ffffff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
  margin-top: auto;
  margin-bottom: 1.25rem;
  align-self: center;
}

.pricing-btn:hover {
  background: #c74316;
  color: #ffffff !important;
}

/* BADGE DI SCONTO */
.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #c2380c;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* ============================
   WRAPPER PAGAMENTO ONLINE
============================ */
.pagamento-online-wrapper {
  padding: 3rem 1rem;
  background-color: #faf7f3;
  border-radius: 1rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Contenuto centrato con nuova classe */
.pagamento-online-wrapper .container-pagamento {
  max-width: 600px;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Scroll dolce */
html {
  scroll-behavior: smooth;
}

/* Scroll corretto su anchor */
#pagamento {
  scroll-margin-top: 55px; /* adatta alla tua altezza header */
}

/* ============================
   RESPONSIVE - MOBILE
============================ */
@media (max-width: 640px) {
  .pagamento-online-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 2.5rem 1rem;
    border-radius: 0;
  }

  .pagamento-online-wrapper .container-pagamento {
    max-width: none;
  }
}

/* ============================
   STILE BOTTONE ACQUISTA
============================ */
#checkout-button-scelta,
.btn-acquista {
  background-color: #c2380c;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline-offset: 3px;
}

#checkout-button-scelta:hover,
#checkout-button-scelta:focus,
.btn-acquista:hover,
.btn-acquista:focus {
  background-color: #084537;
  outline: none;
}