/* =========================================================================
   Chiesa di Pandino — Fotografie (page-specific styles)
   Riusa i token :root e le classi di style.css.
   Solo regole specifiche di questa pagina.
   ========================================================================= */

/* ---- Page hero -------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, #eaf1f7 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(38, 48, 58, 0.06);
  padding-top: 54px;
  padding-bottom: 46px;
}
.page-hero .eyebrow {
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.page-hero__title {
  font-weight: 800;
  font-size: clamp(34px, 6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.page-hero__lead {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

/* ---- Placeholder "[ copertina album ]" ------------------------------- */
.ph-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
}

/* ---- Sezione album --------------------------------------------------- */
.albums-section {
  padding-top: 44px;
  padding-bottom: 0;
}

/* ---- Filtri categorie ------------------------------------------------ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(38, 48, 58, 0.12);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
}
.filter--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

/* ---- Griglia album --------------------------------------------------- */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.album-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(31, 41, 51, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
}

.album-card__cover {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(31, 41, 51, 0.05) 0 12px, rgba(31, 41, 51, 0.08) 12px 24px),
    #cdd8e2;
}
.album-card__cover--accent {
  background:
    repeating-linear-gradient(45deg, rgba(181, 100, 31, 0.07) 0 12px, rgba(181, 100, 31, 0.12) 12px 24px),
    #ecd9c4;
}

.album-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.album-card__cat--accent { color: var(--accent); }

.album-card__count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(20, 30, 40, 0.7);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}

.album-card__body {
  padding: 20px 24px;
}
.album-card__title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 5px;
  line-height: 1.2;
}
.album-card__date {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---- Carica altri album ---------------------------------------------- */
.albums-more {
  display: flex;
  justify-content: center;
  padding: 44px 0 64px;
}
.btn-load {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(47, 93, 134, 0.3);
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-load:hover {
  background: var(--primary-tint);
  transform: translateY(-1px);
}
.btn-load:active { transform: translateY(0); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1023px) {
  .albums-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .page-hero { padding-top: 40px; padding-bottom: 36px; }
  .albums-section { padding-top: 36px; }
  .albums-grid { grid-template-columns: 1fr; }
  .albums-more { padding: 36px 0 48px; }
}
