/* Overrides for the new homepage (front-page.php / template-testhp.php) */

/* Featured boxes: full title, styled like the category sections (.environment-section) */
.home .hp-testata .container-xxl article.post .summary-block h4.title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-weight: bold;
  color: #1d3557;
  line-height: 1.5em;
  font-size: 1.4rem;
}

/* Featured boxes: category badge filled with the category color, white text */
.home .hp-testata .container-xxl article.post .category {
  background: var(--cat-color, #172566);
  color: #fff;
}

/* Cover article: same badge (overrides the white outlined one, which uses !important) */
.home .hp-testata article.copertina .summary-block .category {
  background: var(--cat-color, #172566);
  border-color: var(--cat-color, #172566) !important;
  color: #fff !important;
}

/* Latest articles: title styled like the category sections (.environment-section), but not truncated */
.home .all-articles .card-title {
  font-weight: bold;
  color: #1d3557;
  margin-bottom: 10px;
  line-height: 1.5em;
  font-size: 1.4rem;
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-height: none;
  -webkit-line-clamp: unset;
}

/* Latest articles: category badge filled with the category color, white text */
.home .all-articles .category-badge {
  background: var(--cat-color, #172566);
  color: #fff;
}
.home .all-articles .card-text {
  display: none;
}
