/* ======================================= */
/* Ajustes Globais e Contêiner */
/* ======================================= */

:root {
  --img-mascara1: url("img/mascara1.png");
  --img-mascara2: url("img/mascara2.png");
  --img-mascara3: url("img/mascara3.png");
  --img-mascara4: url("img/mascara4.png");
  --img-pena: url("img/pena.png");
  --img-tambor: url("img/tambor.png");
  --radius-lg: 18px; /* Novo: raio maior para elementos grandes */
  --radius-md: 12px; /* Mantido/Ajustado: raio médio */
  --radius-sm: 8px;  /* Mantido/Ajustado: raio pequeno */
}
 

/* O padding no container será ajustado no mobile */
.container {
  max-width: var(--container-w);
  margin: 0 auto; 
  padding: 2rem 5rem;
  
} 

.cabecalho {
  position: sticky;
  top: 0;
  background-color: #b45a11; /* Cor de fundo */
  backdrop-filter: blur(8px);
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.container-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--container-w);
  margin: 0 auto;
  flex-wrap: wrap; 
  gap: 1rem;
}
.menu a {
  
  /* ... (outros estilos) ... */
  border-radius: var(--radius-sm); /* Links do menu */
}

.btn-acess {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-md); /* Botões de acessibilidade */
}

/* ======================================= */
/* Botões Principais */
/* ======================================= */

.btn-primario {
  /* ... (outros estilos) ... */
  border-radius: 999px; /* Mantém bem arredondado (pílula) */
}
.btn-secundario {
  /* ... (outros estilos) ... */
  border-radius: 999px; /* Mantém bem arredondado (pílula) */
}

/* ======================================= */
/* Cards e Seções de Conteúdo */
/* ======================================= */

.card-cultura,
.card-desfile {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-lg); /* Cards de cultura e desfile */
}

.card-desfile img {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-md); /* Imagens dentro dos cards de desfile */
}

.foto img {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-md); /* Imagens da galeria */
}

.depo {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-lg); /* Depoimentos */
}

.item-tempo {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-md); /* Itens da linha do tempo */
}

.form-contato {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-lg); /* Formulário de contato */
}

.form-contato input,
.form-contato textarea {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-sm); /* Inputs do formulário */
}

.imagem-destaque video {
  /* ... (outros estilos) ... */
  border-radius: var(--radius-lg); /* Vídeo da seção herói */
}

/* ======================================= */
/* Tabela */
/* ======================================= */

.tabela-programacao th:first-child {
  border-top-left-radius: var(--radius-md);
}
.tabela-programacao th:last-child {
  border-top-right-radius: var(--radius-md);
}
.tabela-programacao tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-md);
}
.tabela-programacao tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-md);
}
/* Certifique-se de que os cantos inferiores da tabela também fiquem arredondados se a tabela for a única na seção */
.tabela-programacao {
  /* Se você quiser bordas arredondadas para toda a tabela como um bloco: */
   border-radius: var(--radius-md);
   overflow: hidden; /* Importante para que os cantos arredondados sejam visíveis */
}


/* ======================================= */
/* Rodapé */
/* ======================================= */

.rodape {
  /* ... (outros estilos) ... */
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.voltar-topo {
  /* ... (outros estilos) ... */
  border-radius: 999px; /* Mantém arredondado (pílula) */
}

/* ======================================= */
/* MEDIA QUERIES (Mantidas, apenas para garantir) */
/* ======================================= */

@media (max-width: 768px) {
  /* ... (seus estilos responsivos mantidos) ... */
  .menu {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); /* Menu hamburguer, apenas as bordas inferiores */
  }
}
 
.cards-desfiles {
  display: grid;
  /* Min. 230px, flexível */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.grade-galeria {
  display: grid;
  /* Min. 200px, mas flexível */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.lista-depoimentos {
  display: grid;
  /* Min. 250px, mas flexível */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

 

.item-tempo {
  /* No desktop, ocupa cerca de 30-45% para caber 2 ou 3 por linha */
  flex: 1 1 300px; 
  /* ... (seus estilos de item-tempo mantidos) ... */
}

/* ======================================= */
/* Layout da Seção Herói (Desktop) */
/* ======================================= */

.heroi-inner {
  display: grid;
  grid-template-columns: 1fr 420px; /* Mantém a estrutura de duas colunas no desktop */
  gap: 2rem;
  align-items: center;
  max-width: var(--container-w);
  margin: auto;
}

/* ======================================= */
/* Layout da Tabela */
/* ======================================= */

/* Tabela responsiva (pattern comum para telas pequenas) */
.tabela-programacao {
  width: 100%;
  /* ... (seus estilos de tabela mantidos) ... */
}


/* ======================================= */
/* Layout da História do Carnaval */
/* ======================================= */

/* História em colunas no desktop */
.historia-carnaval {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 ou mais colunas no desktop */
  gap: 2rem;
  padding: 1rem;
}

.historia-card {
  /* Remove a largura 100% que forçava uma coluna, agora o grid controla */
  box-sizing: border-box;
  padding: 1rem;
  margin: 0; 
}


/* ======================================= */
/* MEDIA QUERIES (Maior para Menor) */
/* ======================================= */

@media (max-width: 1024px) {
  /* Ajuste no Container */
  .container {
    padding: 3rem 1.5rem; /* Diminui o padding vertical geral */
  }

  /* Herói: Coluna única */
  .heroi-inner {
    grid-template-columns: 1fr; /* Coluna única */
    gap: 1.5rem;
    text-align: center;
  }

  .texto-hero h2 {
    font-size: 2.2rem; /* Leve redução */
  }
}

@media (max-width: 768px) {
  /* Ajuste no Container */
  .container {
    padding: 2rem 1rem; /* Diminui mais o padding geral */
  }

  /* Cabeçalho/Menu (Já estava bom, apenas organizando) */
  .btn-hamburger {
    display: block;
  }

  /* Linha do tempo em coluna */
  .linha-do-tempo {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* História em coluna */
  .historia-carnaval {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  /* Botões de Ação no Rodapé/Corpo */
  .btn-primario, .btn-secundario {
    display: block;
    width: 90%; /* Ocupa quase toda largura */
    max-width: 300px; /* Limita o tamanho em telas maiores */
    margin: 0.5rem auto;
  }

  /* Ajuste para o menu que abre (Hamburger Menu) */
  .menu {
    /* ... (Estilos de .menu já existentes para mobile mantidos) ... */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* ... */
  }

  .acoes-acessibilidade {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Tabela Responsiva - Exemplo de forçar scroll horizontal */
  .tabela-programacao-wrapper { 
    overflow-x: auto;
  }
  .tabela-programacao {
    min-width: 600px; /* Garante que a tabela tenha um tamanho mínimo para forçar o scroll */
  }
}

@media (max-width: 480px) {
  /* Ajuste para telas muito pequenas */
  html {
    font-size: 15px; /* Levemente menor para caber mais texto */
  }

  .cabecalho {
    padding: 0.5rem 0;
  }

  .container-cabecalho {
    padding: 0.75rem 0.5rem;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .heroi {
    padding: 1.5rem 0.5rem;
  }

  .secao {
    padding: 2rem 0.5rem;
  }

  .texto-hero h2 {
    font-size: 1.6rem;
  }

  .subtitulo {
    font-size: 0.9rem;
  }

  .rodape {
    padding: 1rem 0.5rem;
  }
  
  .btn-acess {
    padding: 0.3rem 0.5rem; /* Botões menores */
    font-size: 0.8rem;
  }
}


.confete-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
} 
 
.btn-primario { 
  color: #fff;
  padding: 0.85rem 1.2rem; /* Mais preenchimento */
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700; 
  box-shadow: 0 4px 15px rgba(160, 123, 255, 0.4);
  transition: transform 160ms ease, box-shadow 160ms ease;
  margin-right: 1rem;
  display: inline-block;
}
.btn-primario:hover {
  transform: translateY(-4px); /* Pula mais */
  box-shadow: 0 15px 35px rgba(160, 123, 255, 0.35); /* Sombra mais intensa */
}

.btn-secundario {
  background: transparent;
  border: 2px solid var(--roxo);
  color: var(--roxo);
  padding: 0.75rem 1.1rem; /* Ajusta para a mesma altura do primário */
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 0.2s ease;
  display: inline-block;
}
.btn-secundario:hover {
  transform: translateY(-4px);
  background: var(--roxo);
  color: #fff;
  box-shadow: 0 10px 30px rgba(160, 123, 255, 0.2);
}   
 

.item-tempo strong {
  color: var(--rosa);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.5rem;
}  

.card-cultura:hover { 
  background: linear-gradient(
    135deg,
    rgba(255, 111, 191, 0.1),
    rgba(160, 123, 255, 0.1)
  );
}

.card-cultura .icone {
  font-size: 2.5rem; /* Ícone maior */
  color: var(--azul); /* Cor do ícone */
  display: block;
  margin-bottom: 0.5rem;
}

.card-cultura h4 {
  color: var(--texto);
  margin-top: 0;
} 
.card-desfile {
  display: grid;
  text-align: center;
  transition: transform 0.3s ease;
}

.card-desfile:hover {
  transform: scale(1.03);
}

.card-desfile img {
  width: 100%; /* Ajusta para preencher o card */
  height: 180px; /* Aumenta um pouco a altura */
  object-fit: cover;
  border-radius: 10px;
  /* Sombra para destacar a imagem */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--amarelo); /* Borda amarela festiva */  
}

.card-desfile h4 {
  color: var(--roxo);
  margin-top: 0.75rem;
} 
.foto {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.foto img {
  width: 100%;
  height: 250px; /* Aumenta a altura das fotos */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.foto img:hover {
  transform: scale(1.05); /* Zoom sutil */
}

.foto figcaption {
  font-size: 0.9rem;
  padding-top: 0.3rem;
  color: #555;
  font-style: italic;
}
 
.lista-depoimentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.depo {
  /* Fundo suave e borda colorida */
  background: linear-gradient(180deg, #fff, #fefefe);
  border: 1px solid rgba(160, 123, 255, 0.3);
  padding: 1.5rem;
  border-radius: 16px; /* Mais arredondado */
  box-shadow: 0 5px 20px rgba(160, 123, 255, 0.1);
  position: relative;
}
 
.tabela-programacao {
  width: 100%;
  border-collapse: separate; /* Para usar border-spacing */
  border-spacing: 0 0.5rem;
  margin-top: 1.5rem;
}
.tabela-programacao th,
.tabela-programacao td {
  padding: 1rem;
  border-bottom: none;
  text-align: left;
}

.tabela-programacao th {
  background: var(--azul); /* Cabeçalho azul vibrante */
  color: #fff;
  font-weight: 700;
}
.tabela-programacao tr:nth-child(even) td {
  background: #c4beffc5; /* Linhas alternadas */
}
.tabela-programacao tr:first-child th:first-child {
  border-top-left-radius: 8px;
}
.tabela-programacao tr:first-child th:last-child {
  border-top-right-radius: 8px;
}
.tabela-programacao tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.tabela-programacao tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
  
.rodape {
  background-color: #ffdbbd93;
  padding: 1.5rem 0; /* Mais padding */
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.voltar-topo {
  display: inline-block;
  margin-top: 1rem;
  background: var(--verde); /* Botão verde vibrante */
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.voltar-topo:hover {
  background: #64cc83; /* Verde um pouco mais escuro */
  transform: translateY(-2px);
}
 
@media (max-width: 900px) {
  /* NOVO: Ajuste para tablets */
  .menu {
    width: 100%; /* Ocupa toda a largura, quebra a linha */
    order: 3; /* Coloca o menu abaixo dos botões de acessibilidade */
    justify-content: center;
    margin-top: 1rem;
  }
  .acoes-acessibilidade {
    width: auto;
    justify-content: flex-end; /* Botões à direita no tablet */
  }
}
 
@media (max-width: 480px) {
  .cabecalho {
    padding: 0.5rem;
  }
  .logo h1 {
    font-size: 1.8rem;
  } 
  
  .acoes-acessibilidade {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }
 
} 
 
.btn-hamburger {
  display: none; /* Escondido por padrão (desktop) */
  font-size: 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {

  .container-cabecalho {
        flex-wrap: wrap; 
        /* Alinhamento dos itens na Linha 1 (Logo + Acessibilidade) */
        justify-content: space-between;
    }

    .logo {
      order: 1; 
      flex-shrink: 0;
      margin-left: auto;
  }

.btn-hamburger {
    display: block; 
    order: 2;  
}

/* O .menu já tem display: none abaixo, mas definimos a ordem dele aqui */
.menu {
    width: 100%;
    order: 3; 
}

.acoes-acessibilidade {
  order: 2; 
  /* Alinha à direita na mesma linha da logo */
  margin-left: auto; 
  justify-content: flex-end;
  flex-shrink: 0;
  width: auto;
  margin-top: 0;
  margin-bottom: 0;
  
}
  .menu {
    display: none; /* Esconde menu normal */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100; /* Garante que fique acima de tudo */
    width: 100%; /* Ocupa a linha toda */
    order: 4;
      
  }

  .menu ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
  }

  .menu a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  .btn-hamburger {
    display: block; 
    order: 3; 
    width: 100%; /* Ocupa a largura total para forçar quebra de linha */
    text-align: right; /* Opcional: Alinha o ícone à direita da Linha 2 */
    margin-left: 0;
    
    /* Espaço para separar dos botões de acessibilidade */
    margin-top: 0.5rem; 
}

  .menu.aberto {
    margin-top: -1px;
    display: flex; /* Mostra menu ao clicar */
  }
  .btn-primario, .btn-secundario {
    display: block; /* Ocupa a largura total */
    width: 90%;
    max-width: 300px;
    margin: 0.5rem auto; /* Centraliza */
}
} 
@keyframes flutuar {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(15px, -10px) rotate(-2deg) scale(1.05); }
}

@keyframes pena-cair {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  50% { transform: translateY(50vh) translateX(50px) rotate(15deg); opacity: 0.3; }
  100% { transform: translateY(120vh) translateX(-20px) rotate(-5deg); opacity: 0; }
}

@keyframes cair-e-girar {
  0% { transform: translateY(-50vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translateY(50vh) translateX(-10px) rotate(360deg); opacity: 0.9; }
  100% { transform: translateY(100vh) translateX(10px) rotate(720deg); opacity: 0; }
}
 
body {
  margin: 0;
  padding: 0;
  /* Essa regra FORÇA a eliminação da barra de rolagem horizontal */
  overflow-x: hidden; 
}
* { 
  box-sizing: border-box; 
}
 
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 25px;
  height: 100vh;
  background: linear-gradient(180deg, var(--roxo) 20%, var(--rosa) 80%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  animation: cair-e-girar 10s infinite linear;
  animation-delay: 0s;
} 
body::after {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 15px;
  height: 100vh;
  background: linear-gradient(180deg, var(--amarelo) 20%, var(--verde) 80%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  animation: cair-e-girar 9s infinite linear reverse;
}
 
.cabecalho::before {
  content: '';
  position: fixed;
  top: 0;
  left: 20%;
  width: 10px;
  height: 100vh;
  background: linear-gradient(180deg, var(--rosa) 20%, transparent 80%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  animation: cair-e-girar 15s infinite linear;
}
 
.cabecalho::after {
  content: '';
  position: fixed;
  top: 0;
  right: 30%;
  width: 8px;
  height: 100vh;
  background: linear-gradient(180deg, var(--azul) 20%, transparent 80%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  animation: cair-e-girar 10s infinite linear reverse;
}
 
.heroi::before {
  content: '';
  position: fixed;
  top: -5%;
  left: 10%;
  width: 300px; /* Tamanho da imagem */
  height: 80px;
  background-image: var(--img-mascara1); /* Imagem 1 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  animation: pena-cair 20s infinite ease-in-out;
  animation-delay: 0s;
  filter: blur(1px); /* Suavidade */
  z-index: -1;
}
 
.heroi::after {
  content: '';
  position: fixed;
  top: -15%;
  right: 25%;
  width: 200px;
  height: 60px;
  background-image: var(--img-mascara2); /* Imagem 2 diferente */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  animation: pena-cair 15s infinite ease-in-out reverse;
  animation-delay: 3s; /* Delay para variação */
  filter: blur(0.5px);
  z-index: -1;
}
 
html::after {
  content: '';
  position: fixed;
  top: -30%;
  left: 45%;
  width: 100px;
  height: 50px;
  background-image: var(--img-mascara3); /* Imagem 3 diferente */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;
  z-index: -2;
  animation: pena-cair 25s infinite ease-in-out;
  animation-delay: 7s; /* Delay para não sobrepor */
  filter: blur(1px);
}

 
.menu::before {
  content: ''; /* Removido emoji */
  position: fixed;
  top: -10%;
  left: 5%;
  width: 60px;
  height: 60px;
  background-image: var(--img-pena);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.25;
  animation: pena-cair 18s infinite ease-in-out;
}
 
.menu::after {
  content: ''; /* Removido emoji (era vazio, mas ajustado) */
  position: fixed;
  top: -25%;
  right: 10%;
  width: 70px;
  height: 70px;
  background-image: var(--img-pena);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  animation: pena-cair 16s infinite ease-in-out reverse;
  animation-delay: 9s;
}
 
.rodape::before {
  content: ''; /* Removido emoji */
  position: fixed;
  top: -5%;
  right: 40%;
  width: 50px;
  height: 50px;
  background-image: var(--img-pena);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: -2;
  animation: pena-cair 22s infinite ease-in-out;
  animation-delay: 1s;
}
 
html::before {
  content: ''; /* Removido emoji */
  position: fixed;
  top: -20%;
  left: 40%;
  width: 100px; /* Maior para tambor */
  height: 100px;
  background-image: var(--img-tambor);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  z-index: -2;
  animation: pena-cair 25s infinite ease-in-out;
  animation-delay: 10s;
}

/* Tambor 2: Menor */
.rodape::after {
  content: ''; /* Removido emoji */
  position: fixed;
  top: -10%;
  right: 5%;
  width: 70px;
  height: 70px;
  background-image: var(--img-tambor);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: -2;
  animation: pena-cair 20s infinite ease-in-out reverse;
  animation-delay: 18s;
}
 
.logo h1 {
  text-shadow:
    0 0 15px var(--roxo),
    0 0 30px var(--roxo),
    0 0 50px rgba(255, 111, 191, 0.5);
}
 
.secao h3 {
  border-bottom: 7px solid var(--amarelo);
  font-size: 2rem;
  color: var(--roxo);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
.secao h3::before {
  color: var(--amarelo);
  margin-right: 0.75rem;
  font-size: 1.2em;
}
 
.item-tempo {
  height: 380px;
  padding: 20px;
  box-shadow: 0 0 0 3px var(--amarelo), 0 10px 25px rgba(0, 0, 0, 0.12);
  border-left: 7px solid var(--verde);
}
.item-tempo:hover {
  animation: flutuar 1.5s infinite alternate;
}

.card-desfile img {
  border: 7px solid var(--amarelo);
  box-shadow: 0 0 30px rgba(255, 209, 102, 0.8);
}

.btn-primario {
  box-shadow: 0 5px 20px rgba(160, 123, 255, 0.6), 0 0 15px 2px rgba(255, 111, 191, 0.4);
}
.btn-primario:hover {
  box-shadow: 0 18px 40px rgba(160, 123, 255, 0.5), 0 0 20px 5px rgba(255, 111, 191, 0.6);
  transform: translateY(-5px);
}
 
.btn-hamburger {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--roxo);
  transition: transform 0.2s ease;
}

.btn-hamburger:hover {
  transform: scale(1.2);
}
 
@media (max-width: 768px) {
  .btn-hamburger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 999; 
  }

  .menu.aberto {
    display: flex;
    top: 150px;
  }

  .menu ul {
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 1rem 0;
  }

  .menu a {
    display: block;
    color: var(--roxo);
    font-weight: 700;
    padding: 0.8rem;
  }
 
  .menu ul {
    display: flex;
  }
}
 
:root {
  /* Cores primárias do Carnaval */
  --rosa: #ff6fbf;
  --amarelo: #ffd166;
  --verde: #7be495;
  --azul: #ffe863;
  --roxo: #a07bff;

  --fundo: #faf7e1;
  --texto: #222;
  --radius: 12px;
  --container-w: 1300px;
}
 
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--fundo);
  color: var(--texto);
  overflow-x: hidden;
}
 
.cabecalho {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.container-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.10rem;
  flex-wrap: wrap;
}
 
.logo h1 {
  font-family: "Lobster", cursive;
  color: var(--rosa);
  text-shadow: 0 0 8px rgba(255, 111, 191, 0.4);
  font-size: 2.3rem;
  transition: transform 0.2s ease;  
}
.logo h1:hover {
  transform: scale(1.05);
}
.menu {
  /* Mantido: Centraliza o conteúdo */
  display: flex;
  justify-content: center;
  
  /* AUMENTADO: Garante que o menu ocupe o máximo de espaço central */
  flex-grow: 2; 
  flex-shrink: 1;
  margin-right: -80px;
  /* REMOVIDO: min-width: 500px; - Isso limitava o espaço. */
  
  /* Ordem 1 para centralizar */
  order: 1; 
}

.menu ul {
  display: flex;
  gap: 1.2rem;
}

.menu a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  transition: 0.2s ease;
}
.menu a:hover {
  color: var(--roxo);
  background: rgba(160, 123, 255, 0.1);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}
 

 
.btn-hamburger {
  display: none;
}
.btn-hamburger:hover {
  transform: scale(1.1);
} 
@media (max-width: 768px) {
  .btn-hamburger {
    display: block;
  }

  
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    flex-direction: column;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  .menu.aberto {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .menu ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .menu a {
    font-weight: 700;
    color: var(--roxo);
    padding: 0.8rem;
  }

  .acoes-acessibilidade {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
.heroi {
  padding: 3rem 1rem;
  position: relative;
}
.heroi-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
  max-width: var(--container-w);
  margin: auto;
}
.texto-hero h2 {
  color: var(--roxo);
  font-size: 2.5rem;
  margin-top: -20px; /* 🔹 Sobe o título */
  margin-bottom: 20px; /* 🔹 Diminui o espaço abaixo */
  line-height: 1.2;
}

.subtitulo {
  margin: 1rem 0;
  font-size: 1.1rem;
}
.imagem-destaque video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
 
.secao {
  padding: 3rem 1rem;
  max-width: var(--container-w);
  margin: auto;
} 
 
.cards-cultura{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 30px;
}
.cards-desfiles{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.grade-galeria{
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px));
  gap: 2rem;
}
 
.card-cultura,
.card-desfile {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: center;
}
.card-cultura .icone {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Linha do tempo */
.linha-do-tempo {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
} 

 
.form-contato {
  display: grid;
  gap: 1.2rem;
  max-width: 500px;
  width: 100%;
  background: linear-gradient(135deg, #ffffff, #f9f6ff);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(160, 123, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.form-contato:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 35px rgba(160, 123, 255, 0.3);
}
.form-contato input,
.form-contato textarea {
  border: 2px solid rgba(160, 123, 255, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-contato input:focus,
.form-contato textarea:focus {
  border-color: var(--roxo);
  box-shadow: 0 0 8px rgba(160, 123, 255, 0.5);
  outline: none;
}

.rodape {
  background: #ffdbbd93;
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 500;
  color: var(--texto);
}
 
.btn-primario {
  background: linear-gradient(90deg, var(--roxo), var(--rosa));
   justify-content: center;
   margin: auto;
   margin-bottom: 20px ;
}
.btn-primario:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(160, 123, 255, 0.4);
}
.btn-secundario {
  border: 2px solid var(--roxo);
  color: var(--roxo);
  
}
.btn-secundario:hover {
  background: var(--roxo);
  color: #fff;
} 


@media (max-width: 1024px) {
  .heroi-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .imagem-destaque video {
    width: 100%;
    height: auto;
  }

  .texto-hero h2 {
    font-size: 2rem;
  }

  .subtitulo {
    font-size: 1rem;
  }

  .cards-cultura, .cards-desfiles, .grade-galeria {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .menu.aberto {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .menu ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .menu a {
    display: block;
    color: var(--roxo);
    font-weight: 700;
    padding: 0.8rem;
  }

  .acoes-acessibilidade {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .cabecalho {
    padding: 0.5rem;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .acoes-acessibilidade {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .heroi {
    padding: 2rem 1rem;
  }

  .texto-hero h2 {
    font-size: 1.8rem;
  }

  .subtitulo {
    font-size: 0.95rem;
  }

  .cards-cultura, .cards-desfiles, .grade-galeria {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-contato {
    padding: 1rem;
  }

  .rodape {
    padding: 1.5rem 1rem;
  }
}
@media (max-width: 768px) {
  .linha-do-tempo {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .btn-primario, .btn-secundario {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
  }
}

.historia-carnaval {
  display: flex;
  flex-direction: column; /* Fica em coluna no mobile */
  gap: 1.5rem; /* Espaçamento entre blocos */
  padding: 1rem;
}

.historia-card {
  width: 100%; /* Ocupa 100% da tela no mobile */
  box-sizing: border-box;
  padding: 1rem;
  margin: 0 auto; /* Centraliza */
}
@media (max-width: 480px) {
  .historia-carnaval {
    padding: 0.5rem;
  }

  .historia-card {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }

  .historia-carnaval h2 {
    font-size: 1.5rem;
  }
}
 

@media (max-width: 1024px) {
    
  /* Força o menu a desaparecer, deixando espaço apenas para o Logo, Hambúrguer e Acessibilidade */
  .menu {
      display: none;
  }

  /* O botão de acessibilidade e o Hambúrguer ficam lado a lado */
  .container-cabecalho {
      /* Garante que o Logo, Botões e Hambúrguer fiquem na linha, justificados */
      justify-content: space-between;
  }

  /* 1. MOSTRA O BOTÃO HAMBÚRGUER */
  .btn-hamburger {
      display: block; 
      font-size: 2rem;
  }

  /* 2. MENU ABERTO (Controlado pelo JavaScript) */
  .menu.aberto {
      /* Estilos do menu suspenso (dropdown) */
      display: flex;
      flex-direction: column;
      position: absolute;
      width: 100%;
      left: 0;
      top: 100%; /* Coloca abaixo do cabeçalho */
      background-color: #fff5ed71; 
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 1rem 0;
  }

  .menu.aberto ul {
      flex-direction: column;
      text-align: center;
      gap: 0; /* Remove gap entre itens para lista vertical */
  }
  
  .menu.aberto ul li a {
      display: block;
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Se a tela for menor que 768px (telas de smartphone) */
@media (max-width: 768px) {
    .acoes-acessibilidade {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
  }
  

  /* Estilo para que o bloco de acessibilidade apareça no menu suspenso */
  .menu.aberto .acoes-acessibilidade {
      display: flex; /* Reaparece dentro do menu.aberto */
      flex-wrap: wrap;
      justify-content: center;
      padding: 1rem 0.5rem;
      background-color: rgba(0, 0, 0, 0.1); /* Um fundo sutil para separar */
  }

  /* Alinha os itens do menu corretamente, após os botões de acessibilidade */
  .menu.aberto ul {
      order: 2; /* Garante que os links fiquem embaixo dos botões de acessibilidade */
  }
  
  .menu.aberto .acoes-acessibilidade {
      order: 1; /* Garante que os botões de acessibilidade fiquem no topo do dropdown */
  }


@media (max-width: 1024px) {
    
  /* 1. Esconde o menu de links no modo padrão */
  .menu {
      display: none; 
  }
 

  /* 3. Mostra o botão HAMBÚRGUER */
  .btn-hamburger {
      display: block; 
      font-size: 2rem;
  }

  /* 4. CABEÇALHO LIMPO: Garante que apenas o Logo e o Hambúrguer fiquem na linha */
  .container-cabecalho {
      justify-content: space-between;
  }

  /* 5. ESTILO DO MENU ABERTO (Dropdown) */
  .menu.aberto {
      display: flex;
      flex-direction: column; /* Faz os links ficarem verticais */
      position: absolute;
      width: 100%;
      left: 0;
      top: 100%; /* Coloca abaixo do cabeçalho */
      background-color: #ffffff; 
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding-top: 0; /* Remove padding superior (o bloco de acessibilidade cuidará disso) */
  }

  /* 6. RE-MOSTRA O BLOCO DE ACESSIBILIDADE DENTRO DO MENU ABERTO */
  .menu.aberto .acoes-acessibilidade {
      display: flex; 
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.75rem;
      padding: 1rem 0.5rem;
      background-color: rgba(0, 0, 0, 0.1); /* Um fundo leve para separar */
      order: -1; /* Força o bloco de acessibilidade a ficar no topo do dropdown */
  }

  /* Estilos dos links do menu no dropdown */
  .menu.aberto ul {
      flex-direction: column;
      text-align: center;
      gap: 0;
  }
  
  .menu.aberto ul li a {
      display: block;
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* FORÇA a eliminação da barra de rolagem lateral */
}

* {
  /* O box-sizing é CRÍTICO: Garante que padding e borda não aumentem a largura total */
  box-sizing: border-box; 
}

/* 🔧 Evita que o menu cause rolagem lateral no mobile */
html, body {
  width: 100%;
  overflow-x: hidden !important;
}

/* 🔧 Garante que o menu aberto não ultrapasse a largura da tela */
.menu,
.menu.aberto {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

@keyframes cair-e-girar {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}
 
 

/* ======================================= */
/* EFEITO DE CARNAVAL CAINDO LIVREMENTE 🎭 */
/* ======================================= */

.efeitos-carnaval {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.efeitos-carnaval .elemento {
  position: absolute;
  top: -150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
  animation: cair-e-flutuar linear infinite;
}

/* Animação com leve flutuação */
@keyframes cair-e-flutuar {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(60vh) translateX(30px) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(-30px) rotate(360deg);
    opacity: 0;
  }
}

/* ========== ELEMENTOS INDIVIDUAIS (tamanhos + posições aleatórias) ========== */

/* Máscaras */
.mascara1 {
  background-image: var(--img-mascara1);
  width: 90px; height: 50px;
  left: 5%;
  animation-duration: 15s;
  animation-delay: 0s;
}
.mascara2 {
  background-image: var(--img-mascara2);
  width: 100px; height: 55px;
  left: 35%;
  animation-duration: 20s;
  animation-delay: 5s;
}
.mascara3 {
  background-image: var(--img-mascara3);
  width: 80px; height: 45px;
  left: 65%;
  animation-duration: 18s;
  animation-delay: 3s;
}
.mascara4 {
  background-image: var(--img-mascara4);
  width: 150px; height: 50px;
  left: 85%;
  animation-duration: 22s;
  animation-delay: 7s;
}

/* Penas */
.pena1 {
  background-image: var(--img-pena);
  width: 90px; height: 100px;
  left: 20%;
  animation-duration: 25s;
  opacity: 0.5;
}
.pena2 {
  background-image: var(--img-pena);
  width: 50px; height: 90px;
  left: 70%;
  animation-duration: 27s;
  opacity: 0.4;
}

/* Tambores */
.tambor1 {
  background-image: var(--img-tambor);
  width: 90px; height: 90px;
  left: 15%;
  animation-duration: 30s;
  opacity: 0.5;
}
.tambor2 {
  background-image: var(--img-tambor);
  width: 100px; height: 70px;
  left: 45%;
  animation-duration: 28s;
  opacity: 0.4;
}
.tambor3 {
  background-image: var(--img-tambor);
  width: 100px; height: 100px;
  left: 80%;
  animation-duration: 35s;  
  opacity: 0.6;
}

.blocos {
  display: flex;
  justify-content: center;
  gap: 20px; 
  margin-top: 50px;
  background-color: #b19bffa9;
  padding: 20px;
  /* 🔑 CORREÇÃO CRÍTICA: Permite que os cards quebrem para a próxima linha */
  flex-wrap: wrap; 
  border-radius: 20px;
}

.card-desfile {
  /* Define uma largura base para os cards */
  flex: 0 0 180px; /* Não cresce (0), não encolhe (0), tem 180px de largura base.
                       Isso garante que 6 cards só fiquem na mesma linha em telas grandes. */

  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-desfile:hover,
.card-desfile:focus {
  transform: scale(1.03); /* Mantido, mas ajustei para 1.03, era 1.05 no código inicial */
  /* Ajustei a sombra, pois estava usando 'rgba(255, 255, 255, 0.3)' que é pouco visível */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); 
}

/* Garante que a imagem preencha o card de forma consistente */
.card-desfile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--amarelo);
}

.card-desfile h4 {
  color: var(--roxo); /* Use a variável para consistência */
  margin-top: 0.75rem;
  font-size: 14px;
} 

/* Títulos dentro dos cards */
.card-desfile h4 {
  margin-top: 10px;
  font-size: 14px;
  color: #8c27ffd0;
}

/* ==================================== */
/* === MEDIA QUERIES PARA RESPONSIVIDADE === */
/* ==================================== */

/* Ajuste para telas médias (Tablets na horizontal): 3 ou 4 colunas */
/* ================================================= */
/* === AJUSTES DE MEDIA QUERIES PARA A SEÇÃO GALERIA (.grade-galeria) === */
/* ================================================= */

@media (max-width: 768px) {
  .blocos {
    /* Ajuste o gap para telas menores */
    gap: 15px; 
    /* Ajuste o padding para telas menores: 20px em cima/baixo, 10px nas laterais */
    padding: 20px 10px; 
  }
  .card-desfile {
    /* NOVO CÁLCULO: (100% da largura do .blocos - (padding-left + padding-right) - gap_entre_itens) / 2 */
    /* largura disponível = 100% - (10px + 10px) - 15px = 100% - 20px - 15px = 100% - 35px */
    /* Cada item pega metade disso */
    flex: 1 1 calc( (100% - 35px) / 2 ); 
    max-width: none; /* Crucial para flex funcionar */
    height: 120px; /* Altura da imagem, o card se ajustará */
  }
  .card-desfile img {
    height: 120px; /* Imagens mais compactas */
  }
}

/* Ajuste para celulares pequenos: 2 colunas (mais compacto) */
@media (max-width: 480px) {
  .blocos {
    /* Ajuste o gap para telas ainda menores */
    gap: 10px; 
    /* Ajuste o padding para telas pequenas: 10px em todos os lados */
    padding: 10px; 
  }
  .card-desfile {
    /* NOVO CÁLCULO: (100% da largura do .blocos - (padding-left + padding-right) - gap_entre_itens) / 2 */
    /* largura disponível = 100% - (10px + 10px) - 10px = 100% - 20px - 10px = 100% - 30px */
    /* Cada item pega metade disso */
    flex: 1 1 calc( (100% - 30px) / 2 ); 
    max-width: none; /* Crucial para flex funcionar */
    height: 200px; /* Altura da imagem, o card se ajustará */
  }
  .card-desfile img {
    height: 130px; /* Altura mínima para as imagens */
  }
  .card-desfile h4 {
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }
}

/* ================================================= */
/* === MEDIA QUERIES PARA A SEÇÃO GALERIA (.grade-galeria) === */
/* Mantenho essas regras como estavam, pois parecem estar corretas para o layout 2x2 */
/* ================================================= */

/* Ajuste para telas médias (Tablets na vertical): 2 colunas */
@media (max-width: 768px) {
  .grade-galeria {
    flex-wrap: wrap; 
    gap: 1rem; /* Mantido o gap */
  }
  .foto {
    flex: 1 1 calc(50% - 0.5rem); 
    max-width: none; 
    height: 200px; 
  }
}

/* Ajuste para celulares pequenos: 2 colunas (mais compacto) */
@media (max-width: 480px) {
  .grade-galeria {
    gap: 0.5rem; 
  }
  .foto {
    flex: 1 1 calc(50% - 0.25rem); 
    max-width: none;
    height: 180px; 
  }
}
.btn-enviar{
  background-color: hsla(46, 100%, 64%, 0.761);
  color: #000000;
  padding: 0.85rem 1.2rem; /* Mais preenchimento */
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700; 
  box-shadow: 0 4px 15px rgba(160, 123, 255, 0.4);
  transition: transform 160ms ease, box-shadow 160ms ease;
  margin-right: 1rem;
  display: inline-block;
}
.btn-enviar:hover,
.btn-enviar:focus {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 111, 191, 0.5);
} 
/* ======== SEÇÃO GALERIA ======== */
 
 
.galeria img {
  width: 100%;
  height: 100%;
  max-width: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
} 
/* ======== GRADE ======== */
.grade-galeria {
  /* REMOVIDO: width: 200%; (Este era o causador do problema de estouro/rolagem) */
  display: flex;
  /* ADICIONADO: 'flex-wrap: wrap;' para permitir que as imagens quebrem para a próxima linha em telas pequenas */
  flex-wrap: wrap; 
  justify-content: center;
  gap: 1rem;
  /* Mantém max-width para limitar a grade em telas grandes */
  max-width: 1000px; 
  /* 'height: 500px;' não é recomendado para contêineres flex, a menos que seja estritamente necessário. 
     Remover permite que o contêiner ajuste sua altura com base no conteúdo. */
  /* REMOVIDO: height: 500px; */ 
  margin: 0 auto;
  padding: 0 20px;
}

/* ======== FIGURE ======== */
.foto {
  /* flex: 1 1 250px; está OK: o item vai crescer, encolher e tem um tamanho base de 250px */
  flex: 1 1 150px; 
  /* A max-width de 280px é um pouco restritiva; vou mantê-la comentada para um fluxo melhor em telas médias. */
  /* max-width: 280px; */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 25px rgba(160, 123, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.foto:hover,
.foto:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 111, 191, 0.4);
}

/* ======== IMAGEM ======== */
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

/* Efeito de zoom suave na imagem */
.foto:hover img,
.foto:focus img {
  transform: scale(1.1);
}

/* ======== LEGENDA ======== */
.foto figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.foto:hover figcaption,
.foto:focus figcaption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .foto {
    /* Ajuste de altura está bom */
    height: 200px; 
  }
}

@media (max-width: 480px) {
  .foto {
    /* Em telas muito pequenas, forçamos a coluna única para que o item use toda a largura disponível. */
    flex: 1 1 100%; /* Força layout de coluna única abaixo de 480px */
    height: 180px;
    max-width: none; /* Permite que use o espaço total */
  }
}
.meunu ul{
  list-style-type: none;
}

.menu ul li{
  padding: 20px;
  display: inline;
}
/* ESTILOS DO FOOTER */
.rodape {
    background: linear-gradient(135deg, #8B0000 0%, #4B0082 50%, #8B0000 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
    
}

.rodape-superior {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.coluna-rodape h4 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-left: 4px solid #FF6FBF;
    padding-left: 0.5rem;
}

.coluna-rodape p {
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.coluna-rodape ul {
    list-style: none;
    padding: 0;
}

.coluna-rodape ul li {
    margin-bottom: 0.5rem;
}

.coluna-rodape ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
    display: inline-block;
}

.coluna-rodape ul li a:hover,
.coluna-rodape ul li a:focus {
    color: #FFD700;
    transform: translateX(5px);
}

/* Redes Sociais */
.redes-sociais {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.icone-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icone-social:hover,
.icone-social:focus {
    background: #FF6FBF;
    transform: translateY(-3px);
}

/* Newsletter */
.form-newsletter {
    margin-top: 1rem;
}

.campo-newsletter {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.campo-newsletter:focus-within {
    border-color: #FFD700;
}

.campo-newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
}

.campo-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.campo-newsletter button {
    background: #FF6FBF;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.campo-newsletter button:hover,
.campo-newsletter button:focus {
    background: #FFD700;
    color: #8B0000;
}

/* Selo de Acessibilidade */
.selo-acessibilidade {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.icone-acessibilidade {
    font-size: 1.2rem;
}

/* Divisor Decorativo */
.divisor-rodape {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    opacity: 0.6;
}

.mascara-divisor::before {
    content: "🎭";
    font-size: 1.5rem;
}

.tambor-divisor::before {
    content: "🥁";
    font-size: 1.5rem;
}

.pena-divisor::before {
    content: "🪶";
    font-size: 1.5rem;
}

/* Rodapé Inferior */
.rodape-inferior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.direitos p {
    margin: 0.25rem 0;
    opacity: 0.8;
}

.links-inferiores {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links-inferiores a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links-inferiores a:hover,
.links-inferiores a:focus {
    color: #FFD700;
}

/* Botão Voltar ao Topo */
.voltar-topo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF6FBF;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.voltar-topo:hover,
.voltar-topo:focus {
    background: #FFD700;
    color: #8B0000;
    transform: translateY(-2px);
}

/* Efeitos Decorativos do Footer */
.efeitos-rodape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.efeitos-rodape .elemento {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: flutuar-rodape 6s ease-in-out infinite;
}

.confete1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.confete2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.mascara-rodape {
    bottom: 30%;
    left: 15%;
    animation-delay: 1s;
}

.pena-rodape {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes flutuar-rodape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .rodape-superior {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rodape-inferior {
        flex-direction: column; 
        font-size: small;  
        padding: 15px;
    }
    
    .divisor-rodape {
        gap: 1rem;
    }
}

/* Modo Escuro */
[data-tema="escuro"] .rodape {
    background: linear-gradient(135deg, #2a0a0a 0%, #1a0a2a 50%, #2a0a0a 100%);
}

/* Alto Contraste */
[data-contraste="alto"] .rodape {
    background: #000000;
    border-top: 3px solid #FFFF00;
}

[data-contraste="alto"] .coluna-rodape h4 {
    color: #FFFF00;
    border-left-color: #FFFF00;
}

[data-contraste="alto"] .icone-social {
    background: #333333;
    border: 2px solid #FFFF00;
}
/* VARIÁVEIS DE CORES PARA TEMA CLARO */
:root {
    --cor-texto: #333333;
    --cor-titulo: #8B0000;
    --cor-fundo: #FFFFFF;
    --cor-secundaria: #4B0082;
    --cor-destaque: #FF6FBF;
}

/* TEMA ESCURO */
[data-tema="escuro"] {
    --cor-texto: #F0F0F0;
    --cor-titulo: #FF6FBF;
    --cor-fundo: #1A1A1A;
    --cor-secundaria: #8A2BE2;
    --cor-destaque: #FFD700;
}

/* APLICAÇÃO DAS CORES */
body {
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    transition: all 0.3s ease;
}

/* CORES DOS TÍTULOS NO TEMA ESCURO */
[data-tema="escuro"] h1,
[data-tema="escuro"] h2,
[data-tema="escuro"] h3,
[data-tema="escuro"] h4 {
    color: var(--cor-titulo);
}

[data-tema="escuro"] .subtitulo {
    color: #CCCCCC;
}

/* CARDS E SEÇÕES NO TEMA ESCURO */
[data-tema="escuro"] .card-cultura,
[data-tema="escuro"] .card-desfile,
[data-tema="escuro"] .item-tempo {
    background: #2D2D2D;
    border: 1px solid #444444;
    color: var(--cor-texto);
}

[data-tema="escuro"] .card-cultura h4,
[data-tema="escuro"] .card-desfile h4 {
    color: var(--cor-destaque);
}

/* TEXTO DA LINHA DO TEMPO */
[data-tema="escuro"] .item-tempo strong {
    color: #FFD700;
}

/* FORMULÁRIOS NO TEMA ESCURO */
[data-tema="escuro"] input,
[data-tema="escuro"] textarea {
    background: #2D2D2D;
    color: var(--cor-texto);
    border: 1px solid #555555;
}

[data-tema="escuro"] input::placeholder,
[data-tema="escuro"] textarea::placeholder {
    color: #888888;
}

/* TABELAS NO TEMA ESCURO */
[data-tema="escuro"] .tabela-programacao {
    background: #2D2D2D;
    color: var(--cor-texto);
}

[data-tema="escuro"] .tabela-programacao th {
    background: #4B0082;
    color: white;
}

[data-tema="escuro"] .tabela-programacao td {
    border-bottom: 1px solid #444444;
}

[data-tema="escuro"] .tabela-programacao tr:nth-child(even) {
    background: #363636;
}

/* BOTÕES NO TEMA ESCURO */
[data-tema="escuro"] .btn-primario {
    background: var(--cor-destaque);
    color: #1A1A1A;
}

[data-tema="escuro"] .btn-secundario {
    background: transparent;
    color: var(--cor-destaque);
    border: 2px solid var(--cor-destaque);
}

[data-tema="escuro"] .btn-acess {
    background: #363636;
    color: var(--cor-texto);
    border: 1px solid #555555;
}

/* MENU NO TEMA ESCURO */
[data-tema="escuro"] .cabecalho {
    background: #2D2D2D;
    border-bottom: 1px solid #444444;
}

[data-tema="escuro"] .menu a {
    color: var(--cor-texto);
}

[data-tema="escuro"] .menu a:hover {
    color: var(--cor-destaque);
}

/* RODAPÉ NO TEMA ESCURO */
[data-tema="escuro"] .rodape {
    background: linear-gradient(135deg, #2a0a0a 0%, #1a0a2a 50%, #2a0a0a 100%);
    color: var(--cor-texto);
}

[data-tema="escuro"] .coluna-rodape h4 {
    color: #FFD700;
}

[data-tema="escuro"] .coluna-rodape a {
    color: #CCCCCC;
}

[data-tema="escuro"] .coluna-rodape a:hover {
    color: #FFD700;
}

/* GALERIA NO TEMA ESCURO */
[data-tema="escuro"] .foto figcaption {
    background: #2D2D2D;
    color: var(--cor-texto);
    border: 1px solid #444444;
}

/* CONTRASTE ALTO - DEVE SOBRESCREVER O TEMA ESCURO */
[data-contraste="alto"] {
    --cor-texto: #FFFFFF;
    --cor-titulo: #FFFF00;
    --cor-fundo: #000000;
    --cor-destaque: #FFFF00;
}

[data-contraste="alto"] body {
    color: #FFFFFF !important;
    background: #000000 !important;
}

[data-contraste="alto"] h1,
[data-contraste="alto"] h2,
[data-contraste="alto"] h3,
[data-contraste="alto"] h4 {
    color: #FFFF00 !important;
}

[data-contraste="alto"] .card-cultura,
[data-contraste="alto"] .card-desfile,
[data-contraste="alto"] .item-tempo {
    background: #000000 !important;
    border: 2px solid #FFFF00 !important;
    color: #FFFFFF !important;
}
.acoes-acessibilidade {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  /* Garante que os botões não encolham e não quebrem o layout */
  flex-shrink: 0;
  margin-top: 20px;
}
.btn-acess {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer; 
  transition: 0.2s ease; 
  
}
.btn-acess:hover,
.btn-acess:focus {
    background: #FF6FBF;
    transform: scale(1.05);
}
/* BOTÕES ESPECÍFICOS */
#btn-fonte, #btn-fonte-menos { 
    font-size: 13px;
}

#btn-confete {
    min-width: 120px;
}

/* ALTO CONTRASTE - APENAS CORREÇÃO DE VISIBILIDADE */
[data-contraste="alto"] .btn-acess {
    background: #000000;
    border: 2px solid #FFFF00;
    color: #FFFF00;
}

[data-contraste="alto"] .btn-acess:hover,
[data-contraste="alto"] .btn-acess:focus {
    background: #FFFF00;
    color: #000000;
}
/* ESTILOS DO FORMULÁRIO DE CONTATO */
.form-contato {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-contato label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cor-titulo);
    font-size: 1.1rem;
}

.form-contato input,
.form-contato textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-contato input:focus,
.form-contato textarea:focus {
    outline: none;
    border-color: #FF6FBF;
    box-shadow: 0 0 0 3px rgba(255, 111, 191, 0.2);
}

.form-contato textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    background: linear-gradient(135deg, #FF6FBF, #FFD166);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-enviar:hover,
.btn-enviar:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 191, 0.4);
}

/* TEMA ESCURO - FORMULÁRIO */
[data-tema="escuro"] .form-contato {
    background: rgba(45, 45, 45, 0.8);
}

[data-tema="escuro"] .form-contato label {
    color: #FFD700;
}

[data-tema="escuro"] .form-contato input,
[data-tema="escuro"] .form-contato textarea {
    background: #2D2D2D;
    border-color: #555555;
    color: #F0F0F0;
}

[data-tema="escuro"] .form-contato input::placeholder,
[data-tema="escuro"] .form-contato textarea::placeholder {
    color: #888888;
}

/* ALTO CONTRASTE - FORMULÁRIO */
[data-contraste="alto"] .form-contato label {
    color: #FFFF00 !important;
}

[data-contraste="alto"] .form-contato input,
[data-contraste="alto"] .form-contato textarea {
    background: #000000 !important;
    border: 2px solid #FFFF00 !important;
    color: #FFFFFF !important;
}/* MENU HAMBURGUER MOBILE - MODO NOTURNO */
@media (max-width: 768px) {
    [data-tema="escuro"] .menu ul {
        background: #2D2D2D !important;
    }
    
    [data-tema="escuro"] .menu a {
        color: #F0F0F0 !important;
        border-bottom: 1px solid #444444;
    }
    
    [data-tema="escuro"] .menu a:hover,
    [data-tema="escuro"] .menu a:focus {
        color: #FFD700 !important;
        background: #363636;
    }
    
    /* ALTO CONTRASTE - SÓ MOBILE */
    [data-contraste="alto"] .menu ul {
        background: #000000 !important;
        border: 2px solid #FFFF00 !important;
    }
    
    [data-contraste="alto"] .menu a {
        color: #FFFFFF !important;
        border-bottom: 1px solid #FFFF00 !important;
    }
    
    [data-contraste="alto"] .menu a:hover,
    [data-contraste="alto"] .menu a:focus {
        background: #FFFF00 !important;
        color: #000000 !important;
    }
}