/* =========================================================================
   Chiesa di Pandino — Notizie (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;
}

/* ---- Meta condivisa (categoria + data) ------------------------------- */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.news-cat {
  background: var(--primary-tint);
  color: var(--primary);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
}
.news-cat--accent {
  background: var(--accent-tint);
  color: var(--accent);
}
.news-date {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---- Placeholder "[ foto ]" ------------------------------------------ */
.ph-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #8a6a44;
}

/* ---- Articolo in evidenza -------------------------------------------- */
.featured-section { padding-bottom: 0; }

.featured {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.featured__media {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured__media--accent {
  background:
    repeating-linear-gradient(45deg, rgba(181, 100, 31, 0.07) 0 12px, rgba(181, 100, 31, 0.12) 12px 24px),
    #ecd9c4;
}
.featured__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #fff;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.featured__body {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured__title {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 14px;
}
.featured__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
}
.featured__link {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  text-decoration: none;
  align-self: flex-start;
}
.featured__link:hover { text-decoration: underline; }

/* ---- Filtri categorie ------------------------------------------------ */
.news-section { padding-top: 40px; }

.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 notizie ------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-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);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.news-card__media {
  height: 170px;
  background:
    repeating-linear-gradient(45deg, rgba(31, 41, 51, 0.05) 0 10px, rgba(31, 41, 51, 0.08) 10px 20px),
    #cdd8e2;
}
.news-card__media--accent {
  background:
    repeating-linear-gradient(45deg, rgba(181, 100, 31, 0.07) 0 10px, rgba(181, 100, 31, 0.12) 10px 20px),
    #ecd9c4;
}
.news-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__body .news-meta { margin-bottom: 10px; }
.news-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
}
.news-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.news-card__link {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}
.news-card__link--accent { color: var(--accent); }

/* ---- Carica altre ---------------------------------------------------- */
.news-more {
  display: flex;
  justify-content: center;
  padding: 44px 0 24px;
}
.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) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
  .featured__media { min-height: 220px; }
  .featured__body { padding: 30px 26px; }
}

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