/* Limita altezza delle anteprime immagine nei post */
img {
  max-height: 250px;
  object-fit: cover;
  width: 100%;
}

.post-list {
  margin-top: 2rem;
}

.post-preview {
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

/* Grid layout for post cards */
.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Individual post card */
.post-card {
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #1a1a1a;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.post-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.post-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-card-content {
  padding: 1rem;
}

.post-card-content h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.post-card-description {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.post-card-date {
  font-size: 0.8rem;
  color: #888;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-links a:hover {
  color: #fff;
}

#hero {
  min-height: auto !important;
  height: auto !important;
}

.hero-social-icons a {
  font-size: 1.5rem;
  color: #ccc;
  transition: color 0.3s ease;
  margin-right: 10px;
  text-decoration: none;
}
.hero-social-icons a:hover {
  color: white;
}

.section-title {
  color: var(--heading-color);
  font-weight: 600;
  text-align: center;
}


#latest-posts h3 {
  color: var(--heading-color) !important;
  font-weight: 600; /* opzionale, per uniformare */
}