/* ==========================================================================
   1. GERAL E TIPOGRAFIA
   ========================================================================== */
body {
    font-family: 'Lato', sans-serif !important;
    color: #000 !important;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

a {
    font-family: 'Lato', sans-serif !important;
    color: #000 !important;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Títulos */
.titulo {
    font-weight: 900 !important;
    font-size: 2rem;
}

.titulo-maior {
    font-weight: 1000 !important;
    font-size: 2.5rem;
    font-family: 'Poiret One', cursive;
    margin-bottom: 1rem;
}

.fonte-titulos {
    font-family: 'Lato', sans-serif !important;
    font-weight: normal;
    font-size: 1rem;
}

.titulo-central {
    width: 60%;
    margin: 0 auto;
}

.sombra {
    text-shadow: 0px 0px 25px rgba(0, 0, 0, 1), 0px 0px 15px rgba(0, 0, 0, 1);
}

/* Cores Auxiliares */
.texto-dourado { color: #a77733 !important; }
.texto-dourado-forte { color: #a77733 !important; font-weight: 800 !important; }

/* Responsividade de Texto */
@media (max-width: 768px) {
    .titulo-maior { font-size: 2rem; }
    .titulo-central { width: 95%; }
}

/* ==========================================================================
   2. NAVBAR E MENU
   ========================================================================== */
.navbar {
    font-weight: 400 !important;
    font-size: 1rem;
    background-color: rgba(0, 71, 45, 0.7) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
}

.nav-item > a {
    color: #fff !important;
    white-space: nowrap;
}

.dropdown-item.active, .dropdown-item:active, .dropdown-item:hover {
    background-color: #a77733;
    color: #fff !important;
}

.navbar-brand {
    filter: drop-shadow(0px 0px 5px #000);
}

/* Menu Hamburguer Animado */
.navbar-toggler { border: none; background: transparent !important; outline: none; }
.icon-bar { width: 22px; height: 2px; background-color: #FFF; display: block; transition: all 0.2s; margin-top: 4px; }
.navbar-toggler .top-bar { transform: rotate(45deg); transform-origin: 10% 10%; }
.navbar-toggler .middle-bar { opacity: 0; }
.navbar-toggler .bottom-bar { transform: rotate(-45deg); transform-origin: 10% 90%; }
.navbar-toggler.collapsed .top-bar { transform: rotate(0); }
.navbar-toggler.collapsed .middle-bar { opacity: 1; }
.navbar-toggler.collapsed .bottom-bar { transform: rotate(0); }

/* ==========================================================================
   3. SEÇÕES E BARRA DE FUNDO
   ========================================================================== */
/* Utilitários de Fundo */
.barra-preta, .caixa-preta {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    color: #fff !important;
    border-radius: 5px;
}
.caixa-preta { padding: 15px; margin-bottom: 15px; }

/* Estilos de Seção Específicos */
.barra-cinza {
    background-color: #4d1512;
    background-image: url("../img/fundo.png");
    color: #fff;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
}

.barra-dourada {
    background-color: #fff;
    background-image: url("../img/fundo-dourado.jpg");
    color: #000;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
}

.barra-branca {
    background: linear-gradient(180deg, rgba(194,194,194,1) 0%, rgba(255,255,255,1) 100%);
    background-image: url("../img/bsas.jpg");
    padding: 80px 0;
    background-size: cover;
    background-position: top;
}

.barra-bsas {
    background: linear-gradient(180deg, rgba(194,194,194,1) 0%, rgba(255,255,255,1) 100%);
    background-image: url("../img/fundoPb.jpg");
    padding: 80px 0;
    background-size: cover;
    background-position: top;
}

.barra-cinza-clara {
    background-color: #ddd;
    background-image: url("../img/sobre.jpg");
    background-size: cover;
    background-position: center right;
    padding: 80px 0;
    color: #fff;
}

.conteudo-barra { padding: 50px 0; }

/* ==========================================================================
   4. BOTÕES E BOXES
   ========================================================================== */
.btn-black, .btn-white, .btn-red {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    display: inline-block;
}

.btn-black { background-color: #000; color: #fff !important; }
.btn-black:hover { background-color: #333; transform: translateY(-2px); }

.btn-white { background-color: rgba(255, 255, 255, 0.95); color: #000 !important; }
.btn-white:hover { background-color: #e6e6e6; transform: translateY(-2px); }

.btn-red { background-color: #a77733; color: #fff !important; }
.btn-red:hover { background-color: #8c632a; color: #fff !important; transform: translateY(-2px); }

/* Caixa Flutuante (Cards Modernos) */
.caixa-flutuante {
    background-color: rgba(248, 249, 250, 0.95);
    color: #212529 !important;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.caixa-flutuante:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.fundo-branco-transp { background-color: rgba(255, 255, 255, 0.85); }

/* Caixa Sombra (Para imagens de maestros) */
.sombra-box {
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    background: #fff;
}
.sombra-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(167, 119, 51, 0.4);
}

/* ==========================================================================
   5. BANNER DO TOPO (#myCarousel) - LEGIBILIDADE MOBILE MELHORADA
   ========================================================================== */
#myCarousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 550px;
    background-color: #000;
    overflow: hidden;
}

#myCarousel .carousel-inner,
#myCarousel .carousel-item {
    height: 100%;
}

/* Fundo da Imagem */
#myCarousel .banner-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Gradiente mais forte para garantir leitura em qualquer foto */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    filter: brightness(0.65); /* Ajuste de brilho */
    transition: transform 6s ease;
}

/* Container de Texto (Centralização Absoluta) */
.banner-content {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    width: 100%;
    height: 100%;
    
    /* Flexbox Centralizador */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centro Vertical */
    align-items: center;     /* Centro Horizontal */
    
    z-index: 10;
    padding: 20px;
    text-align: center;
    pointer-events: none; /* Permite arrastar o fundo */
}

/* Reativa cliques */
.banner-content h1, 
.banner-content h2, 
.banner-content h3, 
.banner-content .btn,
.banner-content div {
    pointer-events: auto;
}

/* Tipografia Desktop (Padrão) */
.banner-content h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.banner-content h1 {
    text-shadow: 3px 3px 15px rgba(0,0,0,1);
    font-size: 4rem !important; /* Bem grande no desktop */
    line-height: 1.1;
    margin-bottom: 20px;
}

.banner-content h3 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    font-size: 1.5rem;
}

/* Setas */
#myCarousel .carousel-control-prev,
#myCarousel .carousel-control-next {
    z-index: 20;
    width: 10%;
    opacity: 0.6;
    cursor: pointer;
    pointer-events: auto;
}
#myCarousel .carousel-control-prev i,
#myCarousel .carousel-control-next i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

/* --- AJUSTES ESPECÍFICOS PARA CELULAR (AQUI ESTÁ A CORREÇÃO) --- */
@media (max-width: 768px) {
    /* Escurece mais o fundo no celular para contraste máximo */
    #myCarousel .banner-bg {
        filter: brightness(0.5); 
    }

    .banner-content {
        padding: 15px 10px; /* Margem lateral pequena */
        justify-content: center;
    }

    /* DATA: Aumentada para leitura fácil */
    .banner-content h2 {
        font-size: 1.2rem !important; 
        letter-spacing: 1px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    /* TÍTULO: Grande e centralizado */
    .banner-content h1 {
        font-size: 2.8rem !important; /* Letra muito maior */
        line-height: 1.1;
        margin-bottom: 30px; /* Espaço para os botões */
    }

    /* Subtítulo: Escondido no celular para limpar a tela */
    .banner-content h3 {
        display: none !important; 
    }

    /* Container dos Botões: Força largura total e centro */
    .banner-content .botoes-mobile {
        width: 100%;
        display: flex;
        flex-direction: column; /* Um em cima do outro */
        align-items: center;    /* Centraliza os botões */
        gap: 15px;              /* Espaço entre eles */
    }

    /* Botões: Largos e fáceis de tocar */
    .banner-content .btn {
        font-size: 1.1rem !important; /* Letra do botão maior */
        padding: 15px 0;              /* Botão mais alto (touch friendly) */
        width: 100%;                  /* Ocupa a largura disponível */
        max-width: 320px;             /* Largura máxima para não ficar gigante */
        margin: 0 !important;         /* Remove margens antigas que jogavam p/ esquerda */
        display: block;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Sombra forte para destacar */
    }
    
    /* Setas menores no celular para não atrapalhar o texto */
    #myCarousel .carousel-control-prev i,
    #myCarousel .carousel-control-next i {
        font-size: 2rem;
        opacity: 0.5;
    }
}

/* ==========================================================================
   6. CARROSSEL DE DEPOIMENTOS (#carouselDepoimentos)
   ========================================================================== */
/* Zera a altura para que se adapte ao texto */
#carouselDepoimentos .carousel-item {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 40px; /* Espaço para as bolinhas */
}

#carouselDepoimentos .carousel-inner {
    height: auto !important;
    overflow: visible; /* Permite ver sombras */
}

/* Card Flexível */
#carouselDepoimentos .card-depoimento {
    min-height: auto !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* Setas Douradas (Exclusivas para este carrossel) */
#carouselDepoimentos .carousel-control-prev, 
#carouselDepoimentos .carousel-control-next {
    width: 5%;
    opacity: 1 !important;
    z-index: 10;
}

#carouselDepoimentos .carousel-control-prev-icon,
#carouselDepoimentos .carousel-control-next-icon {
    background-color: #a77733;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 50%, 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#carouselDepoimentos .carousel-control-prev:hover .carousel-control-prev-icon,
#carouselDepoimentos .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #8c632a;
}

/* Indicadores (Bolinhas) */
.indicador-dourado { bottom: -40px; margin-bottom: 0; }
.indicador-dourado li {
    background-color: #a77733 !important;
    height: 4px;
    opacity: 0.5;
    width: 30px;
}
.indicador-dourado li.active { opacity: 1; }

/* ==========================================================================
   7. MODALS E OUTROS
   ========================================================================== */
.modal-content.bg-dark {
    background-color: #1a1a1a !important;
    border: 1px solid #333;
}

/* Helpers de Layout */
.borda-suave-bottom { border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; }

@media (min-width: 992px) {
    .sem-borda-bottom-lg { border-bottom: none !important; }
    .separador-responsivo { border-left: 1px solid rgba(0,0,0,0.1); padding-left: 15px; }
    .linha-flex-center { display: flex; align-items: center; }
}

@media (max-width: 991px) {
    .separador-responsivo { border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 15px; margin-top: 15px; }
    
    /* Ajustes Banner Mobile */
    .banner-content h1 { font-size: 28px !important; }
    .banner-content h2 { font-size: 18px !important; margin-top: 20px; }
    .banner-content h3 { display: none; }
    .banner-content .btn { 
        font-size: 14px !important; 
        padding: 12px 20px; 
        width: 100%; 
        max-width: 300px; 
        margin: 5px auto; 
        display: block; 
    }
}