/* CONTENITORE SEZIONE */
.related-block {
  margin: 28px 0 32px;
  padding-bottom: 20px;          /* spazio sotto la card */
  border-bottom: 1px solid #e3e3e3;  /* filo in basso */
}

/* TITOLO "Leggi anche" CON FILO A DESTRA */
.related-block-heading {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.related-block-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e3e3;
  margin-left: 12px;
}

/* CARD PRINCIPALE */
.related-card {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

/* IMMAGINE (desktop e mobile) */
.related-card-image img {
  width: 110px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

/* CONTENUTO TESTO */
.related-card-content {
  flex: 1;
}

/* BADGE CATEGORIA (solo intorno al testo) */
.related-card-category {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content;
  padding: 4px 10px;
  background: #f5c447;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* TITOLO ARTICOLO */
.related-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #222;
  line-height: 1.28;
}

/* SOMMARIO (visibile solo su desktop, nascosto su mobile) */
.related-card-excerpt {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.35;
}

/* HOVER */
.related-card:hover .related-card-title {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

/* MOBILE: niente sommario, layout come screenshot (img + titolo) */
@media (max-width: 768px) {

  .related-card-excerpt {
    display: none;               /* nasconde l’inizio del testo su mobile */
  }

  .related-card {
    align-items: center;
  }

  .related-card-image img {
    width: 100px;
  }
}

/* MOLTO PICCOLO: se vuoi puoi tenere comunque layout in riga */
@media (max-width: 480px) {

  .related-card {
    flex-direction: row;         /* resta immagine + testo di fianco */
  }

  .related-card-image img {
    width: 90px;
  }
}

@media (min-width: 769px) {
  .related-card-content {
    width: 50%;
    max-width: 50%;
  }
}
