/* Moved from Customizer > Additional CSS on 2026-11-25. */
/* Contenitore principale */
.latest-posts-clean {
  font-family: Georgia, serif;
  line-height: 1.4;
  gap: 1rem;
}

/* Griglia responsive */
.latest-posts-clean ul.wp-block-latest-posts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Card singola */
.latest-posts-clean li {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 0px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.latest-posts-clean li:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Immagini */
.latest-posts-clean .wp-block-latest-posts__featured-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* Forza proporzione fissa */
  overflow: hidden;
}

.latest-posts-clean .wp-block-latest-posts__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0px !important;
  filter: none;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.latest-posts-clean .wp-block-latest-posts__featured-image img:hover {
  transform: scale(1.02);
  filter: brightness(0.95);
}

/* Titolo */
.latest-posts-clean .wp-block-latest-posts__post-title {
  font-size: 1rem;
  font-weight: 600;
  color: #d32f2f;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-family: Georgia, serif;
  transition: color 0.2s ease;
  text-decoration: none;
}

.latest-posts-clean .wp-block-latest-posts__post-title:hover {
  color: #b71c1c;
  text-decoration: none;
}

/* Data */
.latest-posts-clean .wp-block-latest-posts__post-date {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.8;
  font-family: system-ui, serif;
  margin-bottom: 0.3rem;
}

/* Estratto */
.latest-posts-clean .wp-block-latest-posts__post-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  font-family: system-ui, serif;
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* Nasconde "Leggi tutto" */
.latest-posts-clean .wp-block-latest-posts__excerpt a {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .latest-posts-clean ul.wp-block-latest-posts__list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .latest-posts-clean li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
  }
}

/* Nasconde tutti i link "Leggi tutto" */
.latest-posts-clean a.wp-block-latest-posts__read-more {
  display: none !important;
}