/* ============================
   STILE SPECIFICO - DIETA
============================ */

/* ========== GRIGLIA 2 COLONNE ========== */
.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 4rem 0;
  align-items: center;
}

.grid-2 .text {
  flex: 1 1 50%;
}

.grid-2 .image {
  flex: 1 1 40%;
  text-align: center;
}

.grid-2 .image img {
  width: 100%;
  max-width: 600px;
  border-radius: 1rem;
  height: auto;
}

@media (max-width: 768px) {
  .grid-2 {
    flex-direction: column;
  }

  .grid-2 .text,
  .grid-2 .image {
    flex: 1 1 100%;
  }
}

/* ========== SEZIONI ========== */
/* tutte le sezioni usano la .container per max-width e padding */

.section-dieta-intro h2,
.section-definizione-dieta h2,
.section-dietoterapia h2,
.section-prevenzione h2,
.section-protocolli h2,
.section-cta-final h2 {
  color: #04211A;
  text-align: center;
  margin-bottom: 1rem;
}

.section-dieta-intro h3 {
  color: #c2380c;
  margin-top: 1rem;
  font-size: 1.5rem;
}

.section-dieta-intro blockquote {
  font-style: italic;
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* ========== BOTTONI GENERICI ========== */
.button {
  display: inline-block;
  background-color: #c2380c;
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background-color: #04211A;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Variante centrata */
.button-center {
  display: block;
  margin: 0 auto;
  text-align: center;
  max-width: max-content;
}


/* ========== GRIGLIA POST: PROTOCOLLI ========== */
.section-protocolli {
  padding: 4rem 0;
}

.section-protocolli h2 {
  text-align: center;
}

/* Griglia */
.diete-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .diete-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .diete-grid {
    grid-template-columns: 1fr;
  }
}

/* Box singola dieta */
.dieta-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1rem;
  transition: transform 0.2s ease;
}

.dieta-box:hover {
  transform: translateY(-4px);
}

.dieta-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Info centrale */
.dieta-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  text-align: center;
}

.dieta-title {
  font-size: 1.2rem;
  color: #04211A;
  margin: 0;
  text-align: center;
}

.dieta-title a {
  color: inherit;
  text-decoration: none;
}

.dieta-title a:hover {
  color: #c2380c;
  text-decoration: underline;
}

/* Pulsante */
.dieta-button {
  display: block;
  width: max-content;
  margin-top: 1rem;
  background-color: #084537;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dieta-button:hover {
  background-color: #c2380c;
  color: #ffffff !important;
}