/* Mantém a apresentação do rodapé legado sem importar seu Bootstrap 4. */
.footer-bg {
  background-image: url("https://content-delivery.bdmg.mg.gov.br/site/assets/footer-bg-x1.webp");
  background-color: #ebebeb;
  background-repeat: no-repeat;
  background-size: cover;
  color: #676c73;
  font-family: "Gotham Medium", sans-serif;
  padding: .875rem 0 4.125rem;
}
.footer-bg .container {
  width: 70%;
  max-width: none;
  padding-inline: 0;
}
.footer-bg .footer-section {
  padding-block: 0;
}
.footer-bg .footer-section h1,
.footer-bg .signature-section h1 {
  padding: 4.125rem 0 1.625rem;
  margin: 0 !important;
  font-size: 38px;
  line-height: 1.47;
  letter-spacing: -.8px;
  color: #676c73;
  background: transparent;
}
.footer-bg .footer-section h5 {
  font-family: "Gotham Bold", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 !important;
  padding: 1.625rem 0 0;
}
.footer-bg .footer-section ul {
  padding-left: 15px;
  margin-bottom: 2rem !important;
}
.footer-bg .footer-section li,
.footer-bg .signature-section .location-section li {
  font-size: 14px;
  line-height: 1.86;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
}
.footer-bg .signature-section {
  padding-top: 0 !important;
}
.footer-bg .signature-section > .container {
  margin-top: 0 !important;
}
.footer-bg .signature-section > .container > .row {
  padding-bottom: 0 !important;
}
.footer-bg .signature-section .location-section,
.footer-bg .signature-section .location-section + div {
  margin-bottom: 0 !important;
  padding-top: 1.625rem;
}
.footer-bg .footer-phone-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  margin-inline: 0;
}
.footer-bg .location-section .btn {
  font-size: .6rem;
  margin-left: 1rem;
  padding: .5rem .75rem;
}
.footer-bg .signature-section .logo-section {
  gap: 0;
  margin-bottom: 0 !important;
}
.footer-bg .signature-section .social-icons {
  gap: 10px;
}
.footer-bg .social-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.footer-bg .signature-section .bdmg-logo img {
  width: auto;
  max-width: 300px;
}
.footer-bg .signature-section .sign {
  padding-top: 3.125rem;
  padding-bottom: 2.5rem;
  margin: 0;
  color: #afafaf;
  font-size: 1rem;
  line-height: 1.5;
}
.footer-bg .signature-section .sign span {
  font-weight: 500 !important;
}
@media (max-width: 1430px) {
  .footer-bg .signature-section .logo-section {
    flex-direction: column-reverse;
    align-items: center;
  }
  .footer-bg .signature-section .social-icons {
    flex-direction: row-reverse;
    margin-top: 2rem;
  }
}
@media (max-width: 767.98px) {
  .footer-bg .signature-section {
    text-align: center;
  }
  .footer-bg .signature-section .location-section + div {
    padding-top: 1rem;
  }
  .footer-bg .signature-section .bdmg-logo {
    width: 100%;
    margin-bottom: 0;
  }
  .footer-bg .signature-section .bdmg-logo img {
    width: 300px;
    max-width: 100%;
  }
  .footer-bg .signature-section .sign {
    text-align: center;
  }
}
.footer-bg .footer-phone-number {
  display: inline-block;
  white-space: nowrap;
}
.footer-bg .footer-section li :is(b, strong, .small) {
  font-size: inherit;
  font-weight: 500;
}
@media (min-width: 992px) {
  .footer-bg .signature-section .location-section {
    padding-right: 3rem;
  }
}

/* Os rótulos são vermelhos; o grupo com ícone e número permanece cinza. */
.footer-bg .signature-section .location-section li > span:not(.footer-phone-number) {
  font-family: "Gotham Bold", sans-serif;
  color: #d22828;
}
.footer-bg .signature-section .location-section li.fw-bolder > span.footer-phone-number {
  color: #676c73;
  line-height: 1;
  vertical-align: middle;
}
@media (min-width: 992px) {
  .footer-bg .signature-section .location-section + div {
    padding-top: 0;
  }
  .footer-bg .signature-section .logo-section {
    transform: translateX(-.75rem);
  }
}
.footer-bg .signature-section .location-section li:has(> .footer-phone-number) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 4px;
  min-height: 30px;
}
.footer-bg .signature-section .location-section li.fw-bolder > span.footer-phone-number {
  display: inline-flex;
  align-items: center;
  height: 30px;
}
@media (max-width: 767.98px) {
  .footer-bg .signature-section .location-section li:has(> .footer-phone-number) {
    justify-content: center;
  }
}

/* A home organiza os créditos em três colunas e usa Gotham Medium nos links. */
.footer-bg .footer-section li :is(a, b, strong, .small) {
  font-family: "Gotham Medium", sans-serif;
  font-weight: 500;
}
.footer-bg .footer-section > .container:first-child ul {
  margin-top: 1.625rem;
  padding-left: 0;
}
.footer-bg .footer-section > .container:first-child .row {
  --bs-gutter-x: 30px;
}
.footer-bg .footer-section > .container:first-child li {
  margin-bottom: 0 !important;
}
