/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.main {
  width: 80%; /* Ajuste conforme necessário */
  flex: 1 0 auto; /* Faz o conteúdo ocupar o espaço disponível */
  padding: 2em;
  width: 1140px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
}

h1 {
  font-size: 2.25rem; /* 36px */
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 2rem; /* 32px */
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.75rem; /* 28px */
  font-weight: 500;
  line-height: 1.4;
}

h4 {
  font-size: 1.5rem; /* 24px */
  font-weight: 500;
  line-height: 1.4;
}

h5 {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  line-height: 1.4;
}

h6 {
  font-size: 1rem; /* 16px */
  font-weight: 500;
  line-height: 1.4;
}
.txt-last-update {
  font-size: 0.813rem; /* 13px */
  font-style: italic;
}

.category-menu {
  padding: 10px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.uf {
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0d47a1; /* azul escuro */
}
.card {
  display: flex;
  flex-direction: column;
}

.card-content {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.horizontal-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.horizontal-menu li a {
  color: #01579b;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.horizontal-menu li a:hover {
  background-color: #e3f2fd;
}

nav {
  background-color: #0d47a1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Garante que o conteúdo do nav fique centralizado */
nav .nav-wrapper {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Controla a largura dos itens de menu */
nav ul.right {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Espaçamento entre os itens do menu */
nav ul.right li {
  margin: 0 10px;
}

/* Garante que o logo fique sempre à esquerda */
nav .brand-logo {
  margin-left: 0;
  margin-top: 20px;
}

.brand-logo-mobile {
  margin-left: 0;
  margin-top: 20px;
}

/* Container geral do nav para centralizar o conteúdo */
.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.regioes-nav {
  margin-top: 25px;
  margin-bottom: 25px;
}

.regioes-nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* Permite que os itens quebrem para a linha seguinte */
  gap: 15px;
  justify-content: center; /* Centraliza os itens na tela */
}

.regioes-nav ul li a {
  text-decoration: none;
  padding: 10px;
  background-color: #00796b;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s;
  white-space: nowrap; /* Garante que o texto dentro do link não quebre */
}

.regioes-nav ul li a:hover {
  background-color: #004d40;
}

/* Margin Top grande*/
.mt-large {
  margin-top: 3rem;
}

.bandeira {
  width: 100%;
  height: auto; /* Ajuste conforme necessário */
  object-fit: cover;
}

.bandeira:hover {
  cursor: pointer;
  box-shadow: 0 0 15px #3a3a3a;
  transition: 0.5s;
  transform: scale(1.1);
  z-index: 10;
}

.estado-lista {
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.estado-lista ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.estado-lista li {
  flex: 1 1 100%;
  margin-bottom: 8px;
}

.estado-lista a {
  display: block;
  background-color: #e3f2fd;
  color: #0d47a1;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.estado-lista a:hover {
  background-color: #bbdefb;
}

img.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Keyword Estados */
.kw-estado {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-gov {
  width: 48px;
  height: auto;
  margin-top: 6px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

p {
  font-size: 1.1rem; /* Aumenta o tamanho da fonte (16px padrão -> ~17.6px) */
  line-height: 1.6; /* Aumenta o espaçamento entre linhas para melhor leitura */
  margin-bottom: 15px; /* Adiciona espaço extra abaixo de cada parágrafo */
}

.title-error-big {
  font-size: 120px;
  padding: 20px;
}

.title-error-medium {
  font-size: 60px;
  padding: 10px;
}

.title-error-little {
  font-size: 30px;
  padding: 10px;
}

.button a {
  background-color: rgb(0, 28, 155);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  padding: 5px;
}

.breadcrumb-simples {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #555;
  background: none;
  box-shadow: none;
  padding: 0;
  border: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  line-height: 1.4;
}

.breadcrumb-simples a {
  color: #4d4d4d;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-simples span {
  color: #000138;
  white-space: nowrap;
}

.breadcrumb-simples a i.material-icons {
  font-size: 18px;
  margin-right: 4px;
  display: inline-flex;
  align-items: center; /* Garante que o ícone e o texto fiquem centralizados */
  justify-content: center; /* Alinha o ícone ao centro do texto */
  line-height: 1; /* Ajusta a linha de base do ícone */
  vertical-align: middle; /* Garante que o ícone fique alinhado com o texto */
  margin-top: -4px; /* Pequeno ajuste para alinhar o ícone com o texto */
}

.row.display-flex {
  display: flex;
  flex-wrap: wrap;
}

.row.display-flex > [class*="col"] {
  display: flex;
  flex-direction: column;
}

.row.display-flex .card {
  flex: 1;
}

/* MATERIALIZE CSS*/

.icon-block {
  padding: 0 15px;
}

.icon-block .material-icons {
  font-size: inherit;
}

/* FIM DO MATERIALIZE CSS*/

/* BANNER COOKIES CSS*/
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a2e;
  color: #fff;
  z-index: 99999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
}

#cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#cookie-text {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  color: #fff;
}

#cookie-text a {
  color: #90caf9;
  text-decoration: underline;
}

#cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* FIM DO BANNER COOKIES */

/* MEDIA QUERIES*/

/* Tablets (paisagem) e telas menores */
@media (max-width: 1024px) {
  .main {
    width: 90%; /* Aumenta um pouco para evitar que fique muito pequeno */
  }

  .card-content {
    min-height: 140px;
  }
}

@media (max-width: 992px) {
  nav ul.right {
    display: none; /* some no desktop, mostra o mobile */
  }
}

/* Tablets (modo retrato) e smartphones grandes */
@media (max-width: 768px) {
  .main {
    width: 95%; /* Praticamente a largura total da tela */
    padding: 15px;
  }

  p {
    font-size: 1rem; /* Mantém legível sem exagerar */
    line-height: 1.5; /* Um pouco mais compacto para pequenas telas */
  }

  .regioes-nav ul {
    justify-content: space-around; /* Alinha os itens de forma mais espaçada */
  }

  .regioes-nav ul li {
    flex: 1; /* Permite que cada item ocupe uma largura flexível */
    margin-bottom: 10px; /* Dá um pequeno espaçamento entre os itens em telas pequenas */
  }

  .card-content {
    min-height: 100px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  } /* 32px */
  h2 {
    font-size: 1.75rem;
  } /* 28px */
  h3 {
    font-size: 1.5rem;
  } /* 24px */
  h4 {
    font-size: 1.25rem;
  } /* 20px */
  h5 {
    font-size: 1.125rem;
  } /* 18px */
  h6 {
    font-size: 1rem;
  } /* 16px */
  #cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  #cookie-buttons {
    width: 100%;
  }

  #cookie-buttons .btn {
    flex: 1;
    text-align: center;
  }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
  .main {
    width: 100%; /* Ocupa toda a largura da tela */
    padding: 10px;
  }
}

@media (min-width: 600px) {
  .estado-lista li {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (min-width: 992px) {
  .estado-lista li {
    flex: 1 1 calc(33.333% - 1rem);
  }
}
