/* ===========================================================
   Biblioteca Civica di San Giovanni in Fiore
   Stili personalizzati a complemento di Bootstrap Italia
   =========================================================== */

:root {
  --bsgf-primary: #1a5276;       /* blu profondo */
  --bsgf-secondary: #b9770e;     /* ocra / oro silano */
  --bsgf-dark: #15293b;
  --bsgf-light: #f4f6f8;
}

body {
  scroll-behavior: smooth;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 41, 59, .82), rgba(26, 82, 118, .65)),
    url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat;
}

.hero__content {
  max-width: 760px;
}

.hero h1 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.5px;
}

.hero .lead {
  font-size: 1.25rem;
  opacity: .95;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(21, 41, 59, .85), rgba(26, 82, 118, .7)),
    url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat;
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}

.page-hero h1 {
  font-weight: 700;
}

/* ---------- Sezioni ---------- */
.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--bsgf-light);
}

.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.5rem;
  width: 64px;
  height: 4px;
  background: var(--bsgf-secondary);
  border-radius: 2px;
}

/* ---------- Card azione (quadranti home) ---------- */
.action-card {
  height: 100%;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}

.action-card .icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26, 82, 118, .1);
  margin-bottom: 1rem;
}

/* ---------- Numeri / statistiche ---------- */
.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--bsgf-secondary);
  line-height: 1;
}

.stat__label {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #5a6772;
}

/* ---------- Immagini decorative ---------- */
.img-cover {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

.placeholder-img {
  background: linear-gradient(135deg, #cfd8e0, #e9eef2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8a99;
  border-radius: 12px;
  min-height: 220px;
}

/* ---------- Eventi ---------- */
.event-date {
  background: var(--bsgf-primary);
  color: #fff;
  border-radius: 8px;
  width: 72px;
  text-align: center;
  padding: .5rem 0;
  flex-shrink: 0;
}

.event-date .day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: .8rem;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.it-footer .footer-bottom {
  background-color: var(--bsgf-dark);
}

/* ---------- Utility ---------- */
.bg-soft {
  background-color: var(--bsgf-light);
}

.text-secondary-bsgf {
  color: var(--bsgf-secondary) !important;
}

.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 3px solid var(--bsgf-secondary);
  margin-left: 1rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bsgf-secondary);
}

.timeline .year {
  font-weight: 700;
  color: var(--bsgf-primary);
}
