/* ============================= */
/* ACESSIBILIDADE - FONTES E TEMAS */
/* ============================= */

/* Fontes Acessíveis */
.fonte-grande {
    font-size: 20px !important;
}

.fonte-maior {
    font-size: 24px !important;
}

/* Container dos botões de acessibilidade */
.acessibilidade {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 50px; /* Largura fixa */
    max-height: auto; /* Altura automática */
}

.btn-acessibilidade {
    background-color: var(--laranja);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-acessibilidade:hover {
    background-color: var(--laranja-vivido);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* Remove qualquer faixa branca extra */
.acessibilidade::before,
.acessibilidade::after {
    display: none !important;
}

/* Botão Libras */
.libras {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--roxo);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.libras:hover {
    transform: scale(1.1);
}

/* ============================= */
/* TEMA ALTO CONTRASTE */
/* ============================= */
.alto-contraste {
    background-color: #000 !important;
    color: #fff !important;
}

.alto-contraste header,
.alto-contraste footer,
.alto-contraste .card,
.alto-contraste .exposicao,
.alto-contraste .sobre-conteudo,
.alto-contraste .quem-somos-conteudo,
.alto-contraste .exposicoes-conteudo,
.alto-contraste .tecnicas-conteudo {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* Links e navegação em alto contraste */
.alto-contraste nav ul li a {
    color: #ff0 !important;
    background: #000 !important;
    border: 1px solid #fff !important;
}

.alto-contraste nav ul li a:hover {
    background: #ff0 !important;
    color: #000 !important;
}

/* Botões em alto contraste */
.alto-contraste .btn-acessibilidade {
    background: #000 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important;
}

.alto-contraste .btn-acessibilidade:hover {
    background: #ff0 !important;
    color: #000 !important;
}

.alto-contraste .libras {
    background: #000 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important;
}

/* Títulos em alto contraste */
.alto-contraste .titulo-secao {
    color: #ff0 !important;
}

.alto-contraste .titulo-secao::after {
    background-color: #ff0 !important;
}

/* ============================= */
/* RESPONSIVIDADE BOTÕES ACESSIBILIDADE */
/* ============================= */

/* Tablets */
@media (max-width: 1024px) {
    .acessibilidade {
        bottom: 15px;
        left: 15px;
        padding: 8px;
        gap: 6px;
        max-width: 45px;
    }
    
    .btn-acessibilidade {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .libras {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* Smartphones */
@media (max-width: 768px) {

      .menu-toggle {
        display: flex;
    }
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(to bottom, var(--roxo), var(--marrom-acinzentado));
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        margin: 0;
        display: flex !important; /* Garante que seja flex */
    }
    
    #main-nav.active {
        right: 0;
    }
    
    #main-nav li {
        margin: 12px 0;
        width: 100%;
    }
    
    #main-nav li a {
        font-size: 18px;
        padding: 12px 15px;
        display: block;
        border-radius: 6px;
        text-align: left;
        transition: all 0.3s ease;
        width: 100%;
        color: white;
        text-decoration: none;
    }
    
    #main-nav li a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
        color: var(--laranja);
    }
    
    /* Layout do header em mobile */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    .logo {
        font-size: 1.4rem;
        z-index: 1003;
        position: relative;
    }
    
    /* CORREÇÃO: Botões de acessibilidade em mobile */
    .acessibilidade {
        bottom: 10px;
        left: 10px;
        padding: 8px;
        gap: 6px;
        max-width: 45px;
    }
    
    .btn-acessibilidade {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Remove qualquer background extra */
.acessibilidade * {
    box-sizing: border-box;
}

/* Garante que não há margens ou paddings extras */
.acessibilidade {
    margin: 0;
    padding: 10px;
}

/* Remove qualquer elemento pseudo que possa criar faixas */
.acessibilidade::before,
.acessibilidade::after {
    content: none !important;
}
:root {
    --laranja: #e6a143;
}

.btn-leitor {
    background-color: var(--laranja);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-leitor:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
}

/* ============================= */
/* RESPONSIVIDADE EXTRA PARA BOTÕES */
/* ============================= */

@media (max-width: 480px) {
    .acessibilidade {
        bottom: 8px;
        left: 8px;
        padding: 6px;
        gap: 4px;
        max-width: 42px;
    }
    
    .btn-acessibilidade {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}


/* Smartphones muito pequenos */
@media (max-width: 480px) {
    .acessibilidade {
        bottom: 8px;
        left: 8px;
        padding: 5px;
        gap: 3px;
        max-width: 38px;
    }
    
    .btn-acessibilidade {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    .libras {
        width: 40px;
        height: 40px;
        bottom: 8px;
        right: 8px;
    }
}
/* Smartphones muito pequenos */
@media (max-width: 375px) {
    .acessibilidade {
        bottom: 5px;
        left: 5px;
        padding: 5px;
        gap: 3px;
        max-width: 40px;
    }
    
    .btn-acessibilidade {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

}