* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #C6B6A8;
    --font-family: 'Arial', sans-serif;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    /* Cor de fundo padrão */
}

::-webkit-scrollbar {
    width: 5px;
    /* Largura da barra de rolagem */
    background-color: transparent;
    /* Cor de fundo transparente */
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    /* Cor da barra de rolagem */
    border-radius: 5px;
    /* Borda arredondada */
}

/* NAVBAR */
[id] {
    scroll-margin-top: 75px;
    /* ajusta consoante a altura da tua navbar */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease-in-out;
}

/* Defina a cor inicial */
.navbar.initial-color {
    background: var(--primary-color);
    transition: transform 0.5s ease-in-out;

    /* Cor inicial */
}

/* Define a cor desejada após o scroll */
.navbar.scroll-color {
    background-color: var(--primary-color);
    transition: transform 0.5s ease-in-out;

    /* Cor após o scroll */
}

.logo {
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
}

.navbar-brand {
    color: var(--secondary-color);
}

.nav-item a {
    color: var(--secondary-color);
    transition: all 0.4s ease-out;
    border-radius: 5px;
    font-weight: bold;
}

.nav-item a:hover {
    transition: all 0.4s ease-in;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.offcanvas {
    background: var(--primary-color);
    color: var(--secondary-color);
    height: 100vh;
}

.offcanvas-body {
    height: 100vh;
    /* Faz o offcanvas ocupar toda a altura da tela */
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 30px;
}


.navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* Espaçamento entre os itens */
}

/* Para manter os logos das redes sociais em linha */
.navbar-nav .nav-item:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Espaçamento entre os logos */
}

/* Fazendo o offcanvas ser visível no mobile */
.offcanvas-start.show {
    left: 0 !important;
    /* Garante que o offcanvas vai aparecer à esquerda */
}

/* home */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Máximo de 100vh */
    overflow: hidden;
}

/* Ajusta o carrossel para ocupar exatamente a altura da tela */
.carousel,
.carousel-inner,
.carousel-item {
    height: 100vh;
}

/* Garante que as imagens cobrem toda a área sem distorcer */
.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Ajuste dos botões do carrossel */
.carousel-control-prev,
.carousel-control-next {
    filter: invert(100%);
    /* Deixa os botões visíveis mesmo em imagens escuras */
}

/* QUEM SOMOS */
.quem-somos {
    background-color: var(--primary-color);
}

.quem-somos h2 {
    font-size: 4rem;
}

.img-quem-somos {
    width: 90%;
    border-radius: 10px;
    align-items: right;
    height: 370px;
}

.quem-somos .row {
    display: flex;
    align-items: center;
    position: relative;
}

.quem-somos .col-md-6 {
    padding: 20px;
}

/* Linha divisória no meio */
.quem-somos .col-md-6:nth-child(1) {
    border-right: 2px solid #C6B6A8;
    /* Cor da linha divisória */
}

/* Responsivo: remove a linha em telas pequenas */
@media (max-width: 767px) {
    .quem-somos .col-md-6:nth-child(1) {
        border-right: none;
        border-bottom: 2px solid #C6B6A8;
        /* Adiciona linha horizontal */
        padding-bottom: 20px;
    }

    .img-quem-somos {
        width: 100%;
    }
}

/* Estilização da seção história */
.historia {
    background-color: var(--primary-color);
}

.historia h2 {
    font-size: 4rem;
    font-weight: bold;
}

/* Estiliza os blocos de cada ano */
.historia-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

/* Estiliza a coluna do ano */
.historia-ano {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: right;
    padding-right: 20px;
    color: var(--secondary-color);
}

/* Estiliza a coluna do texto */
.historia-texto {
    font-size: 1.2rem;
}

/* Linha separadora entre cada ano */
.historia hr {
    border: none;
    border-top: 2px solid #C6B6A8;
    /* Linha de separação */
    margin: 15px 0;
}

/* SERVICES */
.services-section {
    background-color: var(--primary-color);
    width: 100%;
    padding: 50px 15px;
    box-sizing: border-box;
}

.services-header {
    color: var(--secondary-color);
    font-size: 2.5rem;
    text-align: center;
}

.services-text {
    color: var(--secondary-color);
    font-size: 1rem;
}

.services-text ul {
    padding-left: 1.2rem;
    list-style-type: disc;
}

.services-text li {
    margin-bottom: 5px;
}

.bold {
    font-weight: bold;
}

.services-section ul li {
    list-style: none;
    /* Remove o marcador padrão */
    position: relative;
    padding-left: 1.2em;
    /* Espaço para o traço */
}

.services-section ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    /* Podes ajustar a cor */
}


/* Animação base (inicial) */
.animate-slide {
    opacity: 0;
    transform: translateX(100px);
    /* Exemplo de animação para deslizar */
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.animate-slide.visible {
    opacity: 1;
    transform: translateX(0);
    /* Ou qualquer transformação que queira */
}

/* Para imagens que deslizam da ESQUERDA */
.animate-slide-left {
    transform: translateX(-50px);
}

@media (max-width: 768px) {
    .services-text {
        text-align: left;
        margin-top: 20px;
    }
}

/* footer */
/* Estilos para o footer */
.back-footer {
    background-color: var(--secondary-color);
    padding-top: 15px;
}

.footer-dark {
    padding: 50px 0;
    color: var(--secondary-color);
    background: var(--primary-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-left: 16px;
    margin-right: 16px;
}

.footer-dark h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 16px;
}

.footer-dark ul {
    padding: 0;
    list-style: none;
    line-height: 1.6;
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.footer-dark ul a {
    color: inherit;
    text-decoration: none;
    color: var(--secondary-color);
    opacity: 0.6;
}

.footer-dark ul a:hover {
    opacity: 0.8;
}

.footer-dark .item.text {
    margin-bottom: 36px;
}

.footer-dark .item.text p {
    opacity: 0.6;
    margin-bottom: 0;
}

.footer-dark .item.social {
    text-align: center;
}

.footer-dark .item.social>a {
    font-size: 20px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    margin: 0 8px;
    color: var(--secondary-color);
    text-decoration: none;
    opacity: 0.75;
}

.footer-dark .item.social>a:hover {
    opacity: 0.9;
}

.footer-dark .copyright {
    text-align: center;
    padding-top: 24px;
    color: var(--secondary-color);
    text-decoration: none;
    opacity: 0.3;
    font-size: 13px;
    margin-bottom: 0;
}

.img-footer {
    width: 300px;
}

.bi {
    color: var(--secondary-color);
}

@media (max-width:700px) {
    .footer-dark .item:not(.social) {
        text-align: center;
        padding-bottom: 20px;
    }

    .footer-dark .item.text {
        margin-bottom: 0;
    }

    .footer-dark .item.social {
        text-align: center;
        margin-top: 20px;
    }
}

.banner {
    width: 100%;
}

.banner img {
    width: 100%;
    height: 25px;
}

/* CHAT */
/* Estilo do Pop-up */
/* Pop-up de Boas-Vindas */
.welcome-popup {
    position: fixed;
    bottom: 70px;
    /* Ajuste a posição para que fique ao lado do botão */
    right: 70px;
    /* Ajuste a posição para que fique ao lado do botão */
    width: 250px;
    /* Largura do balão */
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
    z-index: 9998;
    /* Garantir que fique atrás do chat */
}

/* Mostrar o pop-up */
.welcome-popup.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

/* Ponta do balão */
.welcome-popup::after {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Posição da ponta */
    right: 10px;
    /* Ajusta a posição da ponta em relação ao balão */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    /* Cor do balão */
}

/* Estilo do botão de fechar */
#close-popup {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #C6B6A8;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#close-popup:hover {
    background-color: #A99B8B;
}

/* Botão de conversa */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

#chat-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    flex-direction: column;
}

#chat-box.show {
    opacity: 1;
    transform: translateY(0);
}

.chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    /* Garante que o chat sobreponha outros conteúdos */
}

.chat-header {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
}

.chat-content {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    background-color: var(--primary-color);
}

.bot {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.chat-topics {
    margin-top: 20px;
}

.chat-topic {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 6px 10px;
    /* menor que 10px */
    margin: 4px 0;
    border: 1px solid var(--secondary-color);
    /* mais suave */
    border-radius: 4px;
    /* mais suave */
    cursor: pointer;
    font-size: 14px;
    /* menos chamativo */
    line-height: 1.2;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    /* remove o exagero visual */
}

.chat-topic:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.02);
    /* feedback visual sutil */
}

/* dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.dropdown-toggle {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100%;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dropdown-toggle:focus+.dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* CONTACTOS */
.section-contactos {
    position: relative;
    height: 60vh;
    min-height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

/* MAPA */
.section-contactos .map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-contactos .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* CARTÃO */
.contact-info-card {
    background-color: #fff;
    max-width: 400px;
    z-index: 2;
    position: relative;
    margin-right: 5%;
    border-radius: 12px;
    padding: 2rem;
}

/* TEXTO */
.contact-info-card .section-title {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-card a {
    color: inherit;
    text-decoration: none;
}

/* RESPONSIVO - MOBILE */
@media (max-width: 768px) {
    .section-contactos {
        height: 90vh;
        /* Aumenta a altura total da section */
        padding-top: 20px;
        display: block;
    }

    .section-contactos .map-container {
        height: 100%;
    }

    .section-contactos .map-container iframe {
        height: 100%;
    }

    .contact-info-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        padding: 1.5rem;
    }
}

/* Testemunhos */
.testemunhos-scroll-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    /* Permite o deslizar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Para deslizamento suave no mobile */
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    /* Suaviza a rolagem */
    cursor: grab;
    user-select: none;
    /* Impede a seleção de texto */
}

.testemunhos-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Oculta a barra de rolagem */
}

.testemunhos-scroll-wrapper.dragging {
    cursor: grabbing;
}

.testemunho-card {
    flex: 0 0 auto;
    width: 100%;
    /* Cada cartão ocupará 100% da largura, 1 de cada vez */
    min-width: 100%;
    /* Garante que o cartão ocupe toda a largura da tela */
    scroll-snap-align: start;
    /* Alinha os cartões no início */
}

.testemunhos .card {
    height: 100%;
    border-radius: 12px;
}

/* MOBILE: 1 cartão de cada vez */
@media (max-width: 768px) {
    .testemunhos-scroll-wrapper {
        flex-direction: row;
        /* Garantir o deslizar horizontal */
    }
}

/* ATENCAOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO */
/* galeria (alguns estao no index.php de galeria) */
/* Centraliza a galeria de vídeos */
.galeria-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

/* Estilo específico para o item de vídeo */
.video-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Estilo para os vídeos */
.video-galeria {
    width: 100%;
    max-width: 600px;
    /* Limite máximo para a largura do vídeo */
    height: auto;
    margin-bottom: 20px;
}

/* Estilo para as miniaturas das imagens */
.image-item {
    display: inline-block;
    margin: 10px;
}

.image-thumb {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-thumb:hover {
    transform: scale(1.05);
    /* Efeito de zoom ao passar o mouse */
}

/* Estilo para o lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    margin: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#lightbox .nav-arrow {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 10;
}

#lightbox .nav-left {
    left: 20px;
}

#lightbox .nav-right {
    right: 20px;
}

/* Estilo personalizado para os botões de filtro */
.filter-btn.active {
    background-color: #007bff;
    color: white;
}

.galeria-masonry-reverse .image-item {
    display: block;
    /* Exibe todas as imagens inicialmente */
}


g: 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: "Segoe UI", Tahoma, sans-serif;
  }


