/*
 * Quark 2 — user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */

.card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
}

/* Force the blog listing (home + category pages) to a single column,
 * overriding theme.css's 2/3-col grid at wider breakpoints. */
.blog-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* Legacy {gallery} shortcodes (rendered inline into page content by
 * angeli.php) often sit before the "===" summary break, so they leak into
 * list-card bodies. Hide them there; the single-article view (.e-content)
 * still shows galleries in full. */
.card-body .angeli-gallery {
  display: none;
}

/* "Leggi tutto" sits alongside the tag pills, pushed to the end. */
.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.read-more-btn {
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- Team Intro (home page: logo, title, 4 cards) ---------- */

.team-intro {
  background: transparent;
  text-align: center;
  padding-top: 3rem;
}

.team-intro-logo {
  display: block;
  max-width: 160px;
  margin: 0 auto 1.5rem;
}

.team-intro-title {
  color: var(--q2-text-strong);
  font-size: 1.75rem;
  margin: 0 auto 2.5rem;
  max-width: 900px;
}

.team-intro-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .team-intro-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-intro-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.team-intro-card {
  background: var(--q2-bg-inverse);
  border-radius: var(--q2-radius-md);
  box-shadow: var(--q2-shadow-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.team-intro-card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--q2-radius-sm);
}

.team-intro-card-placeholder {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: var(--q2-radius-sm);
  background: var(--q2-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-intro-card-placeholder i {
  font-size: 2.5rem;
  color: var(--q2-text-muted);
}

.team-intro-card p {
  color: var(--q2-text-inverse);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}
