/* =========================================================================
   Chiesa di Pandino — Pagina "Scopri la Parrocchia"
   Regole specifiche di questa pagina. I token (:root) sono in style.css.
   ========================================================================= */

/* ---- Page hero -------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background: #1f2933 url('../img/chiesa.jpg') center 30% / cover no-repeat;
}
.page-hero__caption {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  z-index: 1;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,40,.12) 0%, rgba(20,30,40,.74) 100%);
}
.page-hero__inner {
  position: relative;
  width: 100%;
  padding-top: 0;
  padding-bottom: 54px;
}
.page-hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.page-hero p {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin: 0;
}

/* ---- Intro / chi siamo ------------------------------------------------ */
.intro {
  padding-top: 64px;
  padding-bottom: 8px;
}
.intro__inner {
  max-width: 900px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  text-align: center;
}
.intro .eyebrow { letter-spacing: 0.16em; margin-bottom: 14px; }
.intro h2 {
  font-size: clamp(28px, 4.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
}
.intro__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ---- Numeri ----------------------------------------------------------- */
.section--tight { padding-top: 40px; padding-bottom: 8px; }

/* ---- Intestazione di sezione centrata ---------------------------------
   Tutti i titoli di sezione della pagina sono centrati per coerenza
   (come "Una casa di fede" e "Un gioiello del Neoclassicismo"). */
.sec-head-center { text-align: center; margin-bottom: 30px; }
.sec-head-center .eyebrow { letter-spacing: 0.16em; margin-bottom: 12px; }
.sec-head-center h2 {
  font-size: clamp(28px, 4.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: var(--primary-tint);
  border-radius: var(--r-card);
  padding: 26px 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat__label {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ---- Storia ----------------------------------------------------------- */
.storia {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  padding-top: 16px;
}
.storia__intro { position: sticky; top: 100px; }
.storia__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
}
.storia__photo {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--r-card);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline__item { display: flex; gap: 22px; }
.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline__dot--accent { background: var(--accent); }
.timeline__line {
  width: 2px;
  flex: 1;
  background: rgba(47, 93, 134, 0.25);
}
.timeline__body { padding-bottom: 30px; }
.timeline__item--last .timeline__body { padding-bottom: 0; }
.timeline__year {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.timeline__year--accent { color: var(--accent); }
.timeline__title {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  margin: 4px 0 6px;
}
.timeline__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---- Attività e gruppi ------------------------------------------------ */
.attivita__heading {
  font-size: clamp(28px, 4.4vw, 34px);
  font-weight: 700;
  margin: 0; /* il margine sotto il titolo lo dà .sec-head-center */
}
.attivita-card { padding: 28px; }
.attivita-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 16px;
}
.attivita-card__icon svg { width: 26px; height: 26px; }
.attivita-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.attivita-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---- CTA -------------------------------------------------------------- */
.cta-section { padding-top: 50px; padding-bottom: 64px; }
.cta {
  background: linear-gradient(155deg, var(--primary), var(--primary-dark));
  border-radius: 18px;
  padding: 48px 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(26px, 3.6vw, 30px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.cta p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 560px;
}
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--ghost-on-dark {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--ghost-on-dark:hover { background: rgba(255, 255, 255, 0.26); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .storia { grid-template-columns: 1fr; gap: 32px; }
  .storia__intro { position: static; }
}

@media (max-width: 620px) {
  .page-hero { min-height: 400px; }
  .page-hero__inner { padding-bottom: 40px; }
  .intro { padding-top: 44px; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta { padding: 30px 24px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; justify-content: center; }
}
