@import url(https://fonts.googleapis.com/css?family=Roboto:300,400);

body {
  background: linear-gradient(180deg, #e9f1ff 0%, #ffffff 100%);
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  margin: 0;
  font-family: sans-serif;
}


.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
}

.hero h1 {
  font-weight: 700;
  font-size: 2.2rem;
}

.hero p {
  /*max-width: 700px;*/
  margin: 0 auto;
  font-size: 1.1rem;
  color: #eef3ff;
}


.containerhero {
  padding: 4rem 1rem;
}

.containerhero h1 {
  font-weight: 700;
  font-size: 2.2rem;
}

.containerhero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}


.section-title {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.city-card .value {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 600;
}

.chart-container {
  max-width: 700px;
  margin: 2rem auto;
}

footer {
  background: #0d6efd;
  color: #fff;
  font-size: 0.9rem;
  padding: 2rem 1rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

.btn-gradient {
  background: linear-gradient(90deg, #0d6efd, #0a58ca);
  color: #fff;
  border: none;
}

.btn-gradient:hover {
  opacity: 0.9;
  color: #fff;
}

.ads-zone {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.boxsha {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;

}

/* Miniatura quadrada */
.miniatura {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.cidade-box {
  display: none;
  text-align: center;
}

.quatexto,
.linktexto {
  cursor: pointer;
  color: blue;
  font-weight: 600;
  font-size: medium;
  font-family: 'Times New Roman', Times, serif;
}

.fonte {
  cursor: pointer;
}

.icone-link {
  font-size: 8px;
}

/*
.quadrado {
  cursor: pointer;
  width: 75px !important;
  height: 75px !important;
  background-color: #007bff;
  background-image: url(brasao/adamantina.jpg);
  color: yellow;
  font-size: 13px;
  text-align: center;
  line-height: 15px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 3px;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}
*/

/*
.quadrado:hover {
  transform: scale(1.2);
}
*/

.quadrado {
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border-radius: 0.5rem;
  background: #fff;
  margin: 5px;
  /* pequeno espaçamento entre eles */
}

.quadrado img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin-top: 0px;
}

.quadrado img:hover {
  transform: scale(1.1);
}

.quadrado .card-tit {
  width: 67px;
  font-weight: 700;
  /* largura fixa */
  white-space: nowrap;
  /* não quebra linha */
  overflow: hidden;
  /* corta o excesso */
  text-overflow: ellipsis;
  /* mostra "..." */
  font-size: 0.85rem;
  text-align: center;
}

#gradeContainer {
  display: none;
}

.bImprime {
  display: '';
}

/*
#quadrado {
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  padding: 10px;
}
  */

.box-item {
  width: 80px;
  height: 80px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 80px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical */
}

.box-item:hover {
  transform: scale(1.1);
  background-color: #0056b3;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical */
}

/* ----- Botão CLASSIFICAR (horizontal fixo) ----- */
#classificarToggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0d6efd;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.3s ease;
}

#classificarToggle:hover {
  background: #0b5ed7;
  transform: scale(1.05);
}

/* ----- Painel deslizante ----- */
#menuClassificar {
  position: fixed;
  top: 0;
  left: -320px;
  height: 100%;
  width: 300px;
  background: #fff;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1049;
  transition: left 0.3s ease;
  padding: 20px 15px;
  overflow-y: auto;
}

#menuClassificar.active {
  left: 0;
}

/* ----- Cards de opção ----- */
.radio-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  background: #f8f9fa;
}

.radio-card:hover {
  background-color: #e9f1ff;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
}

.radio-card input {
  display: none;
}

.radio-card input:checked+label {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

.radio-card label {
  display: block;
  border-radius: 10px;
  padding: 15px 5px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.radio-card i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

/* CSS mínimo só pra ficar apresentável */
#analysis-panel {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.analysis-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  background: #f1f1f1;
  margin-right: 6px;
  font-size: 0.9em;
}

.banner-container {
  width: 100%;
  max-width: 798px;
  margin: 10px auto;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}


#listaCidades {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.detalhes {
  flex: 0 1 260px;
  /* Cada item terá no mínimo 280px, mas pode crescer até o limite da largura disponível */
  margin-bottom: 10px;
  /* Ajuste do espaçamento entre os boxes */
  min-width: 360px !important;
}

.compartilha {
  top: -20px;
}


/* Card escondido no mobile */
@media (max-width: 768px) {
  .compartilha {
    top: 47px  !important;
    width:45px  !important;
    height:45px !important;
  }

  .bImprime {
    display: none;
  }

  .quadrado {
    display: flex !important;
  }

  .detalhes.ativo {
    display: flex !important;
    opacity: 1;
    transform: scaleY(1);
    flex-direction: column;
    margin-top: 10px;
  }

  #gradeContainer {
    display: flex;
  }

  #listaCidades {
    display: none;
  }
}



.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

#mostraquadro {
  font-weight: bold;
  padding: 0px;
}

.painel {
  border: 2px solid #ccc;
  border-radius: 10px;
  background: white;
  padding: 20px;
  max-width: 600px;
  margin-bottom: 20px;
  position: relative;
}

.rodape-gerado {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}

.painelZ {
  border: 2px solid #ccc;
  border-radius: 10px;
  background: white;
  padding: 20px;
  max-width: 600px;
  margin-bottom: 20px;
  position: relative;
}

.no-scroll {
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.secao {
  opacity: 1; /*0 esconde*/
  transform: translateY(40px);
  transition: all 0.6s ease;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

.visivel {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

p {
  text-align: justify;
  font-size: 1em;
}

p.centro {
  text-align: center;
}

.destaque {
  border-bottom: 1px dotted black;
  font-size: 1em;
  transition: all 0.3s ease;
}

.destaque:hover {
  color: blue;
  font-size: 1.5em;
  cursor: pointer;
}

.destaque.ativo {
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
}

.card-box {
  width: 300px;
  padding: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  text-align: center;
}

/*
mensagem animada - alerta()
*/
#mensagem-animada {
  position: fixed;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(90deg, #2196f3, #64b5f6);
  /* azul */
  color: #000;
  /* letras pretas */
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--alerta-transicao, 0.6s) ease;
  /* tempo dinâmico */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

/* Ativo */
#mensagem-animada.ativo {
  opacity: 1;
  transform: translateY(0);
}

/* De cima */
#mensagem-animada.cima {
  top: 0;
  transform: translateY(-100%);
}

#mensagem-animada.cima.ativo {
  transform: translateY(0);
}

/* De baixo */
#mensagem-animada.baixo {
  bottom: 0;
  transform: translateY(100%);
}

#mensagem-animada.baixo.ativo {
  transform: translateY(0);
}

/* Ícone */
#mensagem-animada .icone {
  width: 28px;
  height: 28px;
}

/* Texto */
#mensagem-animada .texto {
  flex: 1;
  text-align: center;
}

/* Botão fechar */
#mensagem-animada .fechar {
  background: none;
  border: none;
  color: #000;
  /* preto para combinar */
  font-size: 20px;
  cursor: pointer;
}

/* Overlay cobrindo a tela inteira */
#overlay-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  /* fundo branco translúcido */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  /* acima de tudo */
}

/* Wrapper centralizado */
.loading-wrapper {
  position: relative;
  display: inline-block;
}

/* Imagem central */
.imagem-loading {
  display: block;
  width: 200px;
  /* ajuste conforme necessário */
  height: auto;
  z-index: 2;
  position: relative;
}

/* Spinner circular em volta da imagem */
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  /* maior que a imagem */
  height: 260px;
  margin-top: -130px;
  margin-left: -130px;
  border: 8px solid #64b5f6;
  border-top: 8px solid transparent;
  border-radius: 50%;
  animation: girar 1s linear infinite;
  z-index: 1;
}

@keyframes girar {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.icon-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background-color: #f8f9fa;
}

.icon-link {
  font-size: 1.2rem;
  /* Ícones pequenos */
  color: #333;
  text-decoration: none;
}

.icon-link:hover {
  color: #0d6efd;
}

.zoom-box {
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.zoom-ativo {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.4) !important;
  z-index: 9999 !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) !important;
  background: white;
  width: 100vw;
  font-family: 'Inter', sans-serif;
}

/* Telas médias (notebooks comuns) */
@media (min-width: 800px) and (max-width: 1366px) {
  .zoom-ativo {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1) !important;
    z-index: 9999 !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) !important;
    width: 100vw;
  }
}

/* aplica cor no sistema */

.bg-1,
.bg-1 .icon-bar {
  background: linear-gradient(180deg, #16a085 0%, #2ecc71 100%);
  background: linear-gradient(180deg, #d2fdf5 0%, #01fb6b 100%)
}

.bg-1 h6 {
  color: blue;
  font-family: Arial;
  font-size: 1.2em;
}

.text-muted {
  font-family: 'Roboto', Arial, sans-serif;
  color: black;
  font-weight: 600;
}

.value {
  color: black;
  font-weight: 500 !important;
  font-size: 1.6em;
  font-weight: bold;
  font-family: 'Bebas Neue';
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #f3efef, 1px 1px 0 #fff;
}

.bg-1 button,
.bg-2 button,
.bg-3 button,
.bg-4 button,
.bg-5 button {
  background-color: goldenrod;
  font-weight: 800;
  color: black
}

.pointer,
.compartilha {
  cursor: pointer;
}

.compartilha:hover {
  transform: scale(1.05);
}

.pointer:hover {
  transform: scale(1.05);
}

.bg-2,
.bg-2 .icon-bar {
  background: linear-gradient(180deg, #fd9cea 0%, #f9d2de 100%);
}

.bg-3,
.bg-3 .icon-bar {
  background: linear-gradient(180deg, #0097e6 0%, #74b9ff 100%);
  background: linear-gradient(180deg, #b3e3fb 0%, #3e89d5 100%);
}

.bg-4,
.bg-4 .icon-bar {
  background: linear-gradient(180deg, #27ae60 0%, #16a085 100%);
  background: linear-gradient(180deg, #c6e3d3 0%, #caf9f0 100%);
}

.bg-5,
.bg-5 .icon-bar {
  background: linear-gradient(180deg, #ffc592 0%, #dfd8cd 100%);
}

.detalhes figcaption:before {
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  color: #d2652d;
  text-align: center;
  content: "★";
  font-family: 'FontAwesome';
  font-size: 32px;
  font-style: normal;
  left: 50%;
  line-height: 60px;
  position: absolute;
  top: -10px;
  width: 60px;
  z-index: 101;
}

.pequeno {
  max-height: 100px;
}


.wave {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bandeira-bg {
  position: absolute;
  bottom: 0;
  left: -30px;
  width: 120%;
  height: 120%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  filter: grayscale(100%) brightness(100%);
  transform: rotate(-13deg);
  pointer-events: none;
  z-index: 0;
}

.card-body {
  padding: 4px !important;
}

#sobre,
#consulta,
#como-usar,
#metodologia {
  scroll-margin-top: 110px;
}
