/* Páginas internas CIPP */

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1f4d2e 0%, #2f6b3d 62%, #94c85a 100%);
  color: #fff;
  padding: 76px 0 68px;
  overflow: hidden;
}

/* Hero com imagem */
.page-hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35)
  );
  z-index: 1;
}

.page-hero-image .container {
  position: relative;
  z-index: 2;
}

.page-kicker {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -.5px;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
  margin: 0;
}

/* Sombra nos textos do banner */
.page-hero-image h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.page-hero-image p {
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.page-hero-image .page-kicker {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.page-section {
  padding: 64px 0;
  background: #f4f6f2;
}

.page-breadcrumb-wrap {
  padding: 26px 0 0;
  background: #f4f6f2;
}

.page-two-cols {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 28px;
  align-items: start;
}

.page-content,
.page-side-card,
.person-card,
.city-card-page {
  background: #fff;
  border: 1px solid #dbe6d7;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(21, 48, 30, .08);
}

.page-content {
  padding: 34px;
  font-size: 17px;
  line-height: 1.8;
  color: #203126;
}

.page-content p {
  margin: 0 0 18px;
}

.page-side-card {
  padding: 22px;
}

.page-side-card img {
  border-radius: 16px;
  margin-bottom: 18px;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.page-side-card h3 {
  color: #1f4d2e;
  margin: 0 0 8px;
  font-size: 24px;
}

.page-side-card p {
  color: #4a5a4e;
  line-height: 1.6;
  margin: 0;
}

/* Brasões dos municípios */
.municipios-brasoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.brasao-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbe6d7;
  border-radius: 14px;
  background: #f8fbf5;
  text-decoration: none;
}

.page-side-card .brasao-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 0;
  margin: 0;
  flex: 0 0 auto;
}

.brasao-placeholder {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #eef4ea;
  border: 1px solid #dbe6d7;
  color: #1f4d2e;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brasao-item span {
  font-size: 13px;
  font-weight: 800;
  color: #1f4d2e;
  line-height: 1.2;
}

/* Diretoria e municípios */
.people-grid,
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.person-card {
  overflow: hidden;
}

.person-photo {
  height: 260px;
  background: linear-gradient(135deg, #1f4d2e, #94c85a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-photo span {
  font-size: 68px;
  color: #fff;
  font-weight: 800;
}

.person-info {
  padding: 22px;
}

.person-info h3,
.city-card-page h3 {
  margin: 0 0 6px;
  color: #1f4d2e;
  font-size: 24px;
}

.person-info p {
  font-weight: 800;
  margin: 0 0 6px;
  color: #203126;
}

.person-info small {
  color: #6f8174;
}

.city-card-page {
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.city-card-page:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .18);
}

.city-card-page a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.city-photo {
  height: 220px;
  background: #dceccc;
}

.city-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-card-page h3 {
  padding: 20px 20px 0;
}

.city-card-page p {
  padding: 0 20px 22px;
  color: #4a5a4e;
  line-height: 1.6;
}

.directory-municipalities-cta {
  grid-column: 1 / -1;
  margin-top: 26px;
  padding: 26px;
  background: #fff;
  border: 1px solid #dbe6d7;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(21, 48, 30, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.directory-municipalities-cta h2 {
  margin: 0 0 6px;
  color: #1f4d2e;
  font-size: 24px;
  line-height: 1.2;
}

.directory-municipalities-cta p {
  margin: 0;
  color: #4a5a4e;
  line-height: 1.6;
}

.directory-municipalities-cta a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1f4d2e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

/* Responsivo */
@media (max-width: 980px) {
  .page-two-cols,
  .people-grid,
  .city-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 54px 0;
  }

  .page-section {
    padding: 42px 0;
  }

  .directory-municipalities-cta {
    display: block;
  }

  .directory-municipalities-cta a {
    width: 100%;
    margin-top: 16px;
  }

  .municipios-brasoes {
    grid-template-columns: 1fr;
  }

  .page-hero-image::before {
    background: linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.45)
    );
  }

  .page-hero-image h1 {
    text-shadow: 0 3px 10px rgba(0, 0, 0, .5);
  }

  .page-hero-image p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  }

  .page-hero-image .page-kicker {
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
  }
  /* CORREÇÃO FINAL DO BANNER COM IMAGEM */
.page-hero.page-hero-image {
  position: relative !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
  color: #fff !important;
}

.page-hero.page-hero-image::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.48) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.page-hero.page-hero-image .container {
  position: relative !important;
  z-index: 2 !important;
}

.page-hero.page-hero-image h1,
.page-hero.page-hero-image p,
.page-hero.page-hero-image .page-kicker {
  color: #fff !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55) !important;
}
#contato {
  scroll-margin-top: 120px;
}
}
