.filtros {
    text-align: center;
    margin-bottom: 10px;
    
    
}

.filtro {
    background: var(--cor-principal);
    color: #fff;
    border: solid 1px yellow;
    padding: 10px 10px;
    margin: 5px 3px;
    border-radius: 3px;
    cursor: pointer;
    transition: .2s;
    width: auto;
    
}

.filtro:hover,
.filtro.active {
    background: #d62828;
}

.item {
    transition: .3s;
}
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.grid-galeria img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s ease;
}

.grid-galeria img:hover {
    transform: scale(1.05);
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100% !important;
    background: rgba(0, 0, 0, .8) !important;
}


.modal-conteudo {
    display: block;
    max-height: 100vh;
    object-fit: contain;
    margin: auto;
    border-radius: 6px;
    background: transparent;
}



.fechar {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
.backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    top: 0;
    left: 0;
}
.nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 20px;
    color: white;
    font-size: 50px;
    user-select: none;
    transform: translateY(-50%);
    transition: 0.2s ease;
    z-index: 99999;
}

.nav:hover {
    color: #ff4444;
}

.anterior {
    left: 20px;
}

.proxima {
    right: 20px;
}
.cta-galeria {
    text-align: center;
    margin: 10px 0 25px;
}

.btn-cta-galeria {
    background: #d62828;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: .2s;
}

.btn-cta-galeria:hover {
    background: #b81f1f;
}
.whats-flutuante-galeria {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    transition: .2s;
}

.whats-flutuante-galeria:hover {
    transform: scale(1.07);
}

.whats-flutuante-galeria img {
    width: 50px;
    height: 50px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: flex-start; /* mantém topo visível */
  overflow-y: auto;        /* rolagem se passar da tela */
  z-index: 999;
  padding: 10px 15px;
}

.modal-conteudo {
  background: #fffffff4;
  padding: 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  margin: auto;
  margin-top: 10px;
}

.modal-conteudo h2 {
  text-align: center;
  margin-bottom: 15px;
}

.modal-conteudo label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 14px;
}

.modal-conteudo input,
.modal-conteudo select,
.modal-conteudo textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 4px;
  font-size: 16px;
}

.local {
  display: flex;
  gap: 10px;
}

.enviar {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* botão de fechar (X) */
.fechar-form {
  position: absolute;
  top: 1px;
  right: 15px;
  font-size: 40px;
  color: rgb(255,255,255) !important;
  cursor: pointer;
  font-weight: bold;
  z-index: 1001;
}
/* MOBILE — 3 por linha */
@media (max-width: 768px) {
    .grid-galeria {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .grid-galeria img {
        height: 110px; /* menor para caber melhor */
    }

    .filtros {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .filtro {
        padding: 8px 10px;
        font-size: 14px;
        margin: 2px;
    }

    .nav {
        font-size: 36px; /* setas menores no mobile */
        padding: 10px;
    }

    .fechar {
        font-size: 32px;
        top: 5px;
        right: 10px;
    }
.nav {
    cursor: pointer;
    position: absolute;
    top: 20%;
    padding: 5px;
    color: white;
    font-size: 30px;
    user-select: none;
    transform: translateY(-50%);
    transition: 0.2s ease;
    z-index: 99999;
}
}
.fechar-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;         /* atrás da imagem */
} .fechar-form {
    top: 17px;
    right: 25px;
    font-size: 40px;
    color: #8c0d0d !important;
  }

  .modal-conteudo {
    padding: 20px;
    margin-top: 20px;
  }
/* Modal da GALERIA (imagens) */
#modalImagem {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
}

  .local {
    flex-direction: column;
  }
