/* =========================
   FONTE ATELIA (TOPO)
========================= */
@font-face {
  font-family: 'Atelia';
  src: url('fonts/atelia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================
   RESET E CONFIGURAÇÕES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.hero-img {
  width: 100%;
  max-width: 1100px; /* desktop */
  height: auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

#mainNav .navbar-brand {
  font-family: 'Atelia', sans-serif;
}

#mainNav.scrolled {
  background: rgba(20, 80, 20, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-blue {
  background: #00a99d !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 2px;
  
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

#mainNav .nav-link:hover {
  color: #fff !important;
  transform: translateY(-2px);
  font-weight: 700;
}

/* =========================
   HERO VÍDEO
========================= */
.video-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#heroVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0,0,0,.5);
}

.hero-subtitle {
  font-size: 1.5rem;
}

/* =========================
   PAGE HERO
========================= */
.page-hero {
  height: 400px;
  background-image: url("../img/serra1.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 76px;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-hero h1,
.page-hero p {
  font-family: 'Atelia', sans-serif;
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 70px;
}

.hero-overlay {
  position: relative;
  color: #fff;
  text-align: center;
}

/* =========================
   BOTÕES
========================= */
.btn-primary {
  background: #145014;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #0d3d0d;
  transform: translateY(-3px);
}

/* =========================
   CARDS (PADRÃO)
========================= */
.contact-card,
.event-card,
.experience-card,
.tourist-card,
.restaurant-card,
.hotel-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
  transition: 0.3s;
  height: 100%;
}

.contact-card:hover,
.event-card:hover,
.experience-card:hover,
.tourist-card:hover,
.restaurant-card:hover,
.hotel-card:hover {
  transform: translateY(-10px);
}

/* =========================
   TOURIST CARD (CORREÇÃO TOTAL)
========================= */
.tourist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* imagem padronizada */
.tourist-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* badge */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff7a00;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 20px;
  z-index: 2;
}

/* conteúdo */
.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* info */
.card-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555;
}

.card-info i {
  margin-right: 4px;
  color: #145014;
}

/* =========================
   CABEÇALHOS DE SEÇÃO (CONTEXTO TURÍSTICO)
========================= */
.section-title {
  text-align: center;
  font-family: 'Atelia', sans-serif;
  font-size: 2.3rem;
  color: #145014;
  margin-bottom: 0.6rem;
}

.section-title i {
  color: #00a99d;
  margin-right: 0.6rem;
}

.section-divider {
  width: 70px;
  height: 4px;
  background: #ff7a00;
  margin: 0 auto 1.2rem;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* Selo de categoria no canto do card */
.card-badge-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 169, 157, 0.92);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

/* Linha de informação dentro do card (endereço, telefone) */
.card-info-linha {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 0.6rem;
}

.card-info-linha i {
  color: #1d6f5e;
  margin-top: 2px;
}

/* =========================
   BOAS-VINDAS / DESTAQUES (HOME)
========================= */
.destaques-home {
  padding: 4rem 0;
  background: #f7f9f8;
}

.destaque-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,.06);
  height: 100%;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  display: block;
}

.destaque-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  color: #145014;
}

.destaque-icone {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a99d, #145014);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.destaque-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.destaque-item p {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0;
}

/* =========================
   BANDEIRINHAS FESTA JUNINA
========================= */
.bandeirinhas-junina {
  position: fixed;
  top: 96px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  z-index: 1029;
  pointer-events: none;
  padding: 0 1%;
}

/* cordinha que conecta as bandeirinhas */
.bandeirinhas-junina::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    #8a5a2c 0,
    #8a5a2c 8px,
    transparent 8px,
    transparent 12px
  );
  opacity: 0.7;
}

.bandeira {
  display: inline-block;
  width: 40px;
  height: 46px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
  animation: balancarBandeira 2.6s ease-in-out infinite;
  transform-origin: top center;
}

/* bandeirinha em ponta (formato casinha) */
.bandeira:nth-child(odd) {
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

/* bandeirinha com recorte em V na base */
.bandeira:nth-child(even) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
}

.bandeira.c1 { background: #8e1c62; animation-delay: 0s; }
.bandeira.c2 { background: #f7941d; animation-delay: 0.1s; }
.bandeira.c3 { background: #5cb82f; animation-delay: 0.2s; }
.bandeira.c4 { background: #ec5f8e; animation-delay: 0.3s; }
.bandeira.c5 { background: #ffc20e; animation-delay: 0.4s; }
.bandeira.c6 { background: #6a3aa0; animation-delay: 0.5s; }
.bandeira.c7 { background: #2e7fce; animation-delay: 0.6s; }
.bandeira.c8 { background: #d92e2e; animation-delay: 0.7s; }

@keyframes balancarBandeira {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

@media (max-width: 768px) {
  .bandeirinhas-junina {
    top: 90px;
  }
  .bandeira {
    width: 26px;
    height: 30px;
  }
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #00a99d;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* =========================
   ANIMAÇÕES
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-img {
    max-width: 500px; /* ajuste fino para celular */
  }
}


.card-footer {
  margin-top: 1rem;
  text-align: right;
}

.btn-ver-mais {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 2px solid black;
  background: transparent;
  color: black;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-ver-mais:hover {
  background: black;
  color: white;
  transform: translateY(-2px);
}

/* =========================
   ACESSIBILIDADE
========================= */
/* Fica do mesmo lado (direita) do botão padrão do VLibras, posicionado
   um pouco acima dele para não sobrepor */
.acess-widget {
  position: fixed;
  right: 5px;
  left: auto;
  bottom: calc(50% + 55px);
  z-index: 2010;
  font-family: Arial, Helvetica, sans-serif;
}

.acess-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #1d6f5e;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.acess-toggle:hover {
  background: #154f43;
  transform: scale(1.05);
}

.acess-painel {
  position: absolute;
  bottom: 65px;
  right: 0;
  left: auto;
  width: 250px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  display: none;
  max-height: 80vh;
  overflow-y: auto;
}

.acess-painel.aberto {
  display: block;
}

.acess-titulo {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1d6f5e;
}

.acess-grupo {
  margin-bottom: 0.6rem;
}

.acess-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: #333;
}

.acess-botoes {
  display: flex;
  gap: 0.4rem;
}

.acess-botoes button {
  flex: 1;
  border: 1px solid #1d6f5e;
  background: #fff;
  color: #1d6f5e;
  border-radius: 8px;
  padding: 0.35rem 0;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acess-botoes button:hover {
  background: #1d6f5e;
  color: #fff;
}

.acess-opcao {
  width: 100%;
  text-align: left;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acess-opcao:hover {
  border-color: #1d6f5e;
}

.acess-opcao.ativo {
  background: #1d6f5e;
  color: #fff;
  border-color: #1d6f5e;
}

.acess-opcao-reset {
  color: #c0392b;
  border-color: #c0392b;
}

.acess-opcao-reset:hover {
  background: #c0392b;
  color: #fff;
}

/* Tamanho de fonte */
body.acess-fonte-1 { font-size: 112.5%; }
body.acess-fonte-2 { font-size: 125%; }
body.acess-fonte-3 { font-size: 137.5%; }

/* Espaçamento de texto, para facilitar a leitura */
body.acess-espacamento,
body.acess-espacamento p,
body.acess-espacamento li,
body.acess-espacamento a {
  line-height: 2 !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.12em !important;
}

/* Fonte mais legível (estilo OpenDyslexic / sem serifa simples) */
body.acess-fonte-leitura,
body.acess-fonte-leitura * {
  font-family: "Verdana", "Arial", sans-serif !important;
}

/* Links destacados */
body.acess-links-destacados a {
  text-decoration: underline !important;
  color: #0b4d8c !important;
  font-weight: 700 !important;
}

/* Alto contraste */
body.acess-alto-contraste {
  background: #000 !important;
  color: #fff !important;
}

body.acess-alto-contraste * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.acess-alto-contraste img,
body.acess-alto-contraste video,
body.acess-alto-contraste iframe {
  filter: grayscale(100%) contrast(120%);
  opacity: 0.9;
}

body.acess-alto-contraste a {
  color: #ffd866 !important;
  text-decoration: underline !important;
}

body.acess-alto-contraste .acess-widget .acess-toggle,
body.acess-alto-contraste .acess-widget .acess-painel,
body.acess-alto-contraste .acess-widget .acess-painel * {
  background-color: #000 !important;
  color: #fff !important;
}

body.acess-alto-contraste .acess-opcao.ativo {
  background-color: #ffd866 !important;
  color: #000 !important;
}

@media (max-width: 480px) {
  .acess-widget {
    left: 15px;
    bottom: 15px;
  }
  .acess-painel {
    width: 220px;
  }
}

