/* ===== RESET E ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f7fb;
    overflow-x: hidden;
    width: 100%;
}

/* ===== HEADER ===== */
header {
    background-color: #004286;
    height: 106px;
    display: flex;
    align-items: center;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.logo-link {
    display: block;
    height: 100%;
    text-decoration: none;
    margin-right: 20px;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 90%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.menu a i {
    font-size: 1rem;
}

.menu a:hover {
    opacity: 0.8;
}

.menu a.ativo {
    font-weight: bold;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* ===== CARROSSEL PRINCIPAL ===== */
.carrossel {
    height: 440px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carrossel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carrossel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrossel-btn img {
    width: 60%;
    height: auto;
    filter: invert(1);
}

.carrossel-btn.prev {
    left: 20px;
}

.carrossel-btn.next {
    right: 20px;
}

/* ===== WRAPPER DE FUNDO ===== */
.background-wrapper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: calc(100vh - 106px);
}

/* ===== BOTÕES DE SERVIÇOS ===== */
.botoes-servicos {
    padding: 60px 0 0;
    width: 100%;
}

.botoes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
    max-width: 100%;
}

.botao {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    height: 320px;
    width: auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.botao:hover {
    transform: scale(1.03);
}

.botao img {
    width: auto;
    height: 100%;
    display: block;
    cursor: pointer;
}

/* ===== CONVÊNIOS ===== */
.convenios {
    padding: 50px 0 30px;
}

.convenios-container {
    max-width: 75%;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}

.convenios-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SEÇÃO COMUNICAÇÃO (CARROSSEL DE NOTÍCIAS) ===== */
.noticias-section {
    padding: 60px 0;
    text-align: center;
}

.comunicacao-header {
    margin-bottom: 40px;
    text-align: center;
}

.comunicacao-titulo {
    display: inline-block;
    background-color: #004286;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,66,134,0.3);
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.comunicacao-titulo:hover {
    background-color: #002856;
    transform: translateY(-3px);
    text-decoration: none;
}

.carrossel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.carrossel-noticias {
    overflow: hidden;
}

.carrossel-container-noticias {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px;
}

.card-noticia {
    flex: 0 0 calc(25% - 15px);
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card-noticia:hover {
    transform: translateY(-5px);
}

.card-noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.card-noticia h3 {
    margin-bottom: 10px;
}

.card-noticia h3 a {
    color: #004286;
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.card-noticia h3 a:hover {
    color: #002856;
    text-decoration: underline;
}

.card-noticia .data {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.card-noticia p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-noticia a.leia-mais {
    color: #004286;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.card-noticia a.leia-mais:hover {
    text-decoration: underline;
}

.carrossel-btn-noticias {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #004286;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carrossel-btn-noticias:hover {
    background: #002856;
}

.prev-noticias {
    left: -20px;
}

.next-noticias {
    right: -20px;
}

.indicadores-noticias {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.indicador.ativo {
    background: #004286;
}

/* ===== SEÇÃO QUEM SOMOS ===== */
.quem-somos {
    padding: 40px 0 2cm;
    background-color: transparent;
}

.quem-somos .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.quem-somos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.quem-somos-texto h2 {
    color: #004286;
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.quem-somos-texto p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-saiba-mais {
    display: inline-block;
    background-color: #004286;
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-saiba-mais:hover {
    background-color: #002856;
}

.carrossel-quem-somos {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    touch-action: pan-y pinch-zoom;
}

.carrossel-quem-somos-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    cursor: grab;
}

.carrossel-quem-somos-container:active {
    cursor: grabbing;
}

.carrossel-quem-somos-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carrossel-quem-somos-container img.active {
    opacity: 1;
}

.carrossel-quem-somos-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 66, 134, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carrossel-quem-somos-btn:hover {
    background: #004286;
}

.carrossel-quem-somos-btn.prev {
    left: 10px;
}

.carrossel-quem-somos-btn.next {
    right: 10px;
}

/* ===== SEÇÃO DOAÇÃO ===== */
.doacao-section {
    padding: 10px 0 60px;
    text-align: center;
    background-color: transparent;
}

.doacao-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.9);
    border-radius: 30px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.doacao-content h2 {
    color: #004286;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.doacao-content p {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-doacao {
    display: inline-block;
    background-color: #004286;
    color: white;
    text-decoration: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.3rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 5px 15px rgba(0,66,134,0.3);
}

.btn-doacao:hover {
    background-color: #002856;
    transform: translateY(-3px);
}

/* ===== ÍCONES FIXOS DE REDES SOCIAIS ===== */
.social-icons-fixed {
    position: fixed;
    left: 20px;
    bottom: 20px;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.social-icon.instagram i {
    color: #E4405F;
}

.social-icon.facebook i {
    color: #1877F2;
}

.social-icon i {
    font-size: 22px;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-icon:hover i {
    transform: scale(1.1);
}

.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-icon:hover::after {
    opacity: 1;
}

/* ===== MODAL DE COOKIES ===== */
.cookie-consent-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    width: calc(100% - 40px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    z-index: 10001;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    display: none;
    flex-direction: column;
    gap: 15px;
    border-top: 5px solid #004286;
}

.cookie-consent-modal h3 {
    color: #004286;
    font-size: 1.4rem;
    margin: 0;
}

.cookie-consent-modal p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.cookie-btn-primary {
    background: #004286;
    color: white;
}

.cookie-btn-primary:hover {
    background: #002856;
}

.cookie-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.cookie-btn-secondary:hover {
    background: #ccc;
}

.cookie-settings-link {
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    color: #004286;
    background: none;
    border: none;
    width: fit-content;
}

.cookie-options-detail {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cookie-option input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.cookie-option label {
    font-weight: 600;
    color: #004286;
}

.cookie-option p {
    font-size: 0.8rem;
    color: #666;
    margin: 2px 0 0 0;
}

/* ===== RODAPÉ ===== */
footer {
    background-image: url('/images/rodape.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0 30px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contato-item i {
    width: 24px;
    font-size: 1.2rem;
    text-align: center;
}

.contato-item span {
    flex: 1;
}

.whatsapp-cdi {
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    color: white;
    font-size: 1.3rem;
}

.footer-social a:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .botoes-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    .botao {
        height: 280px;
    }
    .convenios {
        padding: 40px 0 20px;
    }
}

@media (max-width: 992px) {
    .quem-somos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .quem-somos-texto h2 {
        font-size: 2rem;
    }
    .quem-somos-texto p {
        font-size: 1rem;
    }
    .btn-saiba-mais {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 0;
    }
    .logo img {
        height: 70px;
    }
    .menu-toggle {
        display: flex;
    }
    nav .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(0,66,134,0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        margin: 0;
        list-style: none;
        gap: 1.5rem;
    }
    nav .menu.active {
        right: 0;
    }
    nav .menu li {
        width: 100%;
        text-align: center;
    }
    nav .menu a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
        color: white;
        white-space: normal;
        text-align: center;
    }
    .convenios-container {
        max-width: 95%;
    }
    .carrossel {
        height: 280px;
    }
    .botoes-servicos {
        padding: 40px 0 0;
    }
    .botoes-container {
        gap: 20px;
    }
    .botao {
        height: 240px;
    }
    .convenios {
        padding: 30px 0 15px;
    }
    .background-wrapper {
        min-height: calc(100vh - 70px);
    }
    .noticias-section {
        padding-bottom: 20px;
    }
    .comunicacao-titulo {
        font-size: 2rem;
        padding: 12px 30px;
    }
    .carrossel-noticias {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #004286 #ccc;
    }
    .carrossel-noticias::-webkit-scrollbar {
        height: 6px;
    }
    .carrossel-noticias::-webkit-scrollbar-thumb {
        background-color: #004286;
        border-radius: 10px;
    }
    .carrossel-noticias::-webkit-scrollbar-track {
        background-color: #ccc;
        border-radius: 10px;
    }
    .carrossel-container-noticias {
        display: inline-flex;
        gap: 15px;
        padding: 10px;
        white-space: normal;
        transform: none !important;
        transition: none;
    }
    .card-noticia {
        flex: 0 0 auto;
        width: 280px;
        min-width: 280px;
    }
    .carrossel-btn-noticias {
        display: none;
    }
    .indicadores-noticias {
        display: none;
    }
    .doacao-section {
        padding: 10px 0 30px;
    }
    .footer-col:nth-child(2) {
        transform: translateY(23%);
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .quem-somos {
        padding-bottom: 1cm;
    }
    .quem-somos-grid {
        text-align: center;
    }
    .quem-somos-texto {
        text-align: center;
    }
    .quem-somos-texto h2 {
        text-align: center;
    }
    .btn-saiba-mais {
        margin-left: auto;
        margin-right: auto;
    }
    .card-noticia {
        padding: 15px;
    }
    .card-noticia img {
        height: 133px;
    }
    .card-noticia h3 a {
        font-size: 1.2rem;
    }
    .card-noticia p {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) and (orientation: landscape) {
    .quem-somos {
        padding-bottom: 1.5cm;
    }
    .quem-somos-grid {
        text-align: center;
    }
    .quem-somos-texto {
        text-align: center;
    }
    .quem-somos-texto h2 {
        text-align: center;
    }
    .btn-saiba-mais {
        margin-left: auto;
        margin-right: auto;
    }
    .convenios-container {
        max-width: 86.25%;
    }
    .botoes-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-items: center;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
    }
    .botao {
        height: auto;
        width: 100%;
        max-width: 280px;
    }
    .botao:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .botao:nth-child(2) { grid-column: 1 / 3; grid-row: 2; justify-self: center; }
    .botao:nth-child(3) { grid-column: 2 / 3; grid-row: 1; }
    .botao img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .noticias-section {
        padding-bottom: 2%;
    }
    .carrossel-quem-somos {
        width: 70%;
        margin: 0 auto;
    }
    .footer-col:nth-child(2) {
        transform: translateY(30%);
    }
}

@media (max-width: 600px) and (orientation: portrait) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    .footer-col:nth-child(2) {
        transform: translateY(25%) !important;
    }
    .footer-col h3 {
        font-size: 1.2rem;
    }
    .footer-col p, .footer-col a, .contato-item span {
        font-size: 0.9rem;
    }
    .footer-logo {
        max-width: 140px;
    }
}

@media (max-width: 400px) and (orientation: portrait) {
    .footer-grid {
        gap: 10px;
    }
    .footer-col h3 {
        font-size: 1rem;
    }
    .footer-col p, .footer-col a, .contato-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        padding: 0 20px;
    }
}