:root {
  --fb-red: #8E2F23;
  --fb-red-dark: #6F241B;
  --fb-gold: #C8A03A;
  --fb-gold-dark: #A88424;
  --fb-ivory: #F6F1E7;
  --fb-beige: #E9DFCC;
  --fb-text: #2F241D;
  --fb-muted: #6E5B4B;
  --fb-white: #FFFDF8;
  --fb-shadow: 0 18px 45px rgba(47, 36, 29, 0.10);
  --fb-radius: 22px;
}

.fb-section {
  padding: clamp(48px, 7vw, 96px) 20px;
  background: var(--fb-ivory);
  color: var(--fb-text);
}

.fb-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.fb-grid,
.fb-eventos-grid,
.fb-albuns-grid,
.fb-historias-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fb-card {
  background: var(--fb-white);
  border: 1px solid rgba(200, 160, 58, 0.28);
  border-radius: var(--fb-radius);
  overflow: hidden;
  box-shadow: var(--fb-shadow);
  position: relative;
}

.fb-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--fb-red), var(--fb-gold));
}

.fb-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--fb-beige);
  overflow: hidden;
  text-decoration: none !important;
}

.fb-card-image img,
.fb-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-card-body {
  padding: 24px;
}

.fb-kicker {
  display: inline-block;
  color: var(--fb-gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.fb-card h3,
.fb-timeline h3,
.fb-person-card h3,
.fb-crest-block h2 {
  margin: 0 0 10px;
  color: var(--fb-red-dark);
  line-height: 1.14;
}

.fb-card h3 a,
.fb-person-card h3 a {
  color: inherit;
  text-decoration: none !important;
}

.fb-card p,
.fb-timeline p,
.fb-person-card p,
.fb-crest-block p {
  color: var(--fb-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.fb-meta {
  font-weight: 700;
  color: var(--fb-text) !important;
}

.fb-link {
  color: var(--fb-red);
  font-weight: 800;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(200, 160, 58, 0.45);
}

.fb-button,
.fb-contrib-form button,
a.fb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--fb-red);
  color: var(--fb-white) !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(142, 47, 35, 0.22);
}

.fb-button:hover,
.fb-contrib-form button:hover,
a.fb-button:hover {
  background: var(--fb-red-dark);
}

.fb-button-secondary,
a.fb-button-secondary {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--fb-gold);
  color: var(--fb-red-dark) !important;
  text-decoration: none !important;
  font-weight: 800;
  background: transparent;
}

.fb-button-secondary:hover,
a.fb-button-secondary:hover {
  background: var(--fb-beige);
}

.fb-image-placeholder {
  height: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(200, 160, 58, .32), transparent 28%),
    linear-gradient(135deg, rgba(142, 47, 35, .14), rgba(200, 160, 58, .22)),
    var(--fb-beige);
}

.fb-image-placeholder span,
.fb-crest-placeholder {
  color: var(--fb-red-dark);
  border: 1px solid rgba(200, 160, 58, 0.6);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 253, 248, 0.72);
}

.fb-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 26px;
}

.fb-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(var(--fb-gold), var(--fb-red));
}

.fb-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.fb-timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fb-red);
  border: 3px solid var(--fb-gold);
}

.fb-timeline-year {
  color: var(--fb-gold-dark);
  font-weight: 900;
  font-size: 1.05rem;
}

.fb-timeline-content {
  background: var(--fb-white);
  border: 1px solid rgba(200, 160, 58, 0.30);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--fb-shadow);
}

.fb-people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fb-person-card {
  text-align: center;
  background: var(--fb-white);
  border: 1px solid rgba(200, 160, 58, 0.30);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--fb-shadow);
}

.fb-person-photo {
  display: block;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: var(--fb-beige);
  border: 4px solid rgba(200, 160, 58, 0.50);
}

.fb-person-photo .fb-image-placeholder {
  min-height: 118px;
}

.fb-person-photo .fb-image-placeholder span {
  font-size: 0;
  width: 34px;
  height: 34px;
  padding: 0;
}

.fb-crest-block {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  align-items: center;
  gap: clamp(26px, 5vw, 60px);
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255,253,248,.95), rgba(233,223,204,.82)),
    var(--fb-white);
  border: 1px solid rgba(200, 160, 58, 0.5);
  border-radius: 28px;
  box-shadow: var(--fb-shadow);
  color: var(--fb-text);
}

.fb-crest-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(47,36,29,.14));
}

.fb-crest-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--fb-beige);
}

.fb-form-wrap {
  background: var(--fb-white);
  border: 1px solid rgba(200, 160, 58, 0.35);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--fb-shadow);
}

.fb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fb-form-grid label {
  color: var(--fb-text);
  font-weight: 800;
  display: grid;
  gap: 7px;
}

.fb-form-grid input,
.fb-form-grid textarea,
.fb-form-grid select {
  width: 100%;
  border: 1px solid rgba(110, 91, 75, 0.25);
  background: var(--fb-ivory);
  color: var(--fb-text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.fb-full {
  grid-column: 1 / -1;
}

.fb-check {
  display: flex !important;
  grid-template-columns: 22px 1fr;
  align-items: flex-start;
  font-weight: 600 !important;
  color: var(--fb-muted) !important;
}

.fb-check input {
  width: auto;
  margin-top: 4px;
}

.fb-alert-success {
  background: rgba(200, 160, 58, 0.16);
  color: var(--fb-red-dark);
  border: 1px solid rgba(200, 160, 58, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .fb-grid,
  .fb-eventos-grid,
  .fb-albuns-grid,
  .fb-historias-grid,
  .fb-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fb-crest-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .fb-grid,
  .fb-eventos-grid,
  .fb-albuns-grid,
  .fb-historias-grid,
  .fb-people-grid,
  .fb-form-grid {
    grid-template-columns: 1fr;
  }
  .fb-timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .fb-card-body {
    padding: 20px;
  }
}
