/* ===============================
   SEZIONE: PERCHÉ LIBRO
=============================== */
.dietista-certificato {
  padding: 4rem 0;
  margin-top: 4rem;
  background-color: transparent;
}

.dietista-certificato .container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  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.2s ease;
}

.guida-inclusa img:hover {
  transform: translateY(-5px);
}

/* 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.2rem;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.7;
}

/* Link PDF */
.text-block a {
  font-weight: 600;
  color: #04211A;
}

.text-block a:hover {
  color: #c2380c;
}

/* Frase finale e sottotitolo */
.section-subtitle {
  color: #c2380c;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  text-align: center;
}

.text-block p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
  .dietista-certificato .container {
    flex-direction: column-reverse;
  }

  .section-title,
  .section-subtitle {
    text-align: center;
  }

  .guida-wrapper {
    margin-left: 0;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .text-block {
    width: 100%;
  }
}

/* ============================
   SEZIONE LIBRO – GENERALE
============================ */
.book-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.book-section:last-child {
  border-bottom: none;
}

.book-section h2 {
  color: #04211A;
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 2rem;
}

.book-section p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  color: #04211A;
}

/* ===============================
   Sezione: Cosa trovi nel libro
=============================== */
.libro-flex-wrapper {
  padding: 4rem 1.5rem;
}

.sezione-titolo-centrato {
  text-align: center;
  font-size: 2rem;
  color: #04211A;
  margin-bottom: 2rem;
}

.libro-flex {
  display: flex;
  align-items: center; /* ✅ centratura verticale */
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Colonna sinistra più larga */
.libro-colonna.sinistra {
  flex: 1 1 50%;
}

.libro-colonna.sinistra ul {
  list-style: none;
  padding-left: 1rem;
  line-height: 1.7;
  
}

.libro-colonna.sinistra li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.libro-colonna.sinistra li::before {
  content: '✔';
  font-family: "Arial", sans-serif;
  color: #c2380c;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  font-weight: bold;
  display: inline-block;
}

/* Colonna destra con immagine */
.libro-colonna.destra {
  flex: 0 0 400px;
  max-width: 40%;
  text-align: center;
}

.libro-colonna.destra img {
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .libro-flex {
    flex-direction: column;
    align-items: center;
  }

  .libro-colonna.sinistra,
  .libro-colonna.destra {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .libro-colonna.destra {
    margin-top: 2rem;
  }
}


/* ============================
   SEZIONE: Libro – Recensioni (Blurbs)
============================ */
#libro-recensioni {
  padding: 4rem 1.5rem;
  margin-top: 4rem;
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

#libro-recensioni h2 {
  color: #04211A;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

/* Contenitore a 2 colonne */
#libro-recensioni .recensioni-flex {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Card singola */
#libro-recensioni blockquote {
  background-color: #ffffff;
  border-left: 4px solid #c2380c;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.2rem;
  color: #04211A;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Hover effetto movimento */
#libro-recensioni blockquote:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Virgolette decorative interne */
#libro-recensioni blockquote em {
  display: block;
  position: relative;
  z-index: 1;
  padding: 1rem;
}

#libro-recensioni blockquote em::before {
  content: "“";
  display: inline;
  margin-right: 0.3rem;
  font-size: 1.5rem;
  color: #c2380c;
}

#libro-recensioni blockquote em::after {
  content: "”";
  display: inline;
  margin-left: 0.3rem;
  font-size: 1.5rem;
  color: #c2380c;
}

/* Responsive: 1 colonna su mobile */
@media (max-width: 768px) {
  #libro-recensioni .recensioni-flex {
    grid-template-columns: 1fr;
  }

  #libro-recensioni blockquote {
    font-size: 1rem;
    padding: 1.5rem 1rem;
  }
}

/* ==========================
   CTA CARD – Ruben Domenighini
========================== */

.cta-card-rd {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 800px;
  margin: 2rem auto; /* ✅ centra il box su tutte le larghezze */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 3px solid #084537;
}

.cta-card-rd:hover {
  transform: translateY(-4px);
}
.cta-card-rd__heading {
  font-size: 2rem;
  color: #084537;
  margin-bottom: 2rem;
  font-weight: 600;
}

.cta-card-rd__button {
  display: inline-block;
  background-color: #04211A;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.cta-card-rd__button:hover,
.cta-card-rd__button:focus {
  background-color: #c2380c;
  color: #ffffff !important;
  outline: none;
}

@media (max-width: 600px) {
  .cta-card-rd {
    padding: 2rem 1.5rem;
    width: 90%;
    margin: 0 auto;
  }

  .cta-card-rd__heading {
    font-size: 1.6rem;
  }

  .cta-card-rd__button {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }
}
