
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azulEscuro: #173C7D;
    --azulClaro: #4360A4;
    --verde: #65CB93;
    --verde-escuro: #39855b;
    --corFundo: #E6EDEA;
}

body {
    background: linear-gradient(135deg, #E6EDEA 0%, #d4e4de 100%);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    color: #333;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

.Cabecalho {
    background: var(--azulClaro);
    position: fixed;
    display: flex;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2%;
    margin: 1rem 0;
    width: 90%;
    max-width: 1400px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    top: 0;
}

.logoCabecalho img {
    height: 60px;
    width: 90px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.logoCabecalho img:hover {
    transform: scale(1.05);
}

.navCabecalho ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navCabecalho a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.navCabecalho a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--verde);
    transition: width 0.3s;
}

.navCabecalho a:hover::after,
.navCabecalho a.ativo::after {
    width: 100%;
}

.navCabecalho a.ativo {
    color: var(--verde);
}

.menu-mobile-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.doeAgora {
    background: var(--verde);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.doeAgora:hover {
    background: var(--verde-escuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 203, 147, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    min-width: 48px;
    min-height: 48px;
    position: relative;
    z-index: 10002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.main-noticias {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 3rem;
}

.main-noticias h1 {
    color: var(--azulEscuro);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.main-noticias h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--verde);
    border-radius: 2px;
}

/* ==================== CONTAINER DE NOTÍCIAS ==================== */
.noticias-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==================== ITEM DE NOTÍCIA ==================== */
.noticia-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.noticia-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== MÍDIA DA NOTÍCIA - CORRIGIDO ==================== */
.noticia-midia-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container adaptativo para vídeos */
.video-container {
    height: auto;
    min-height: 350px;
    max-height: 600px;
    background: #000;
}

/* Ajuste automático baseado na proporção do vídeo */
.video-container.vertical {
    min-height: 450px;
    max-height: 650px;
}

.video-container.horizontal {
    min-height: 300px;
    max-height: 450px;
}

.video-container.square {
    min-height: 400px;
    max-height: 500px;
}

/* Ajuste para imagens - CORRIGIDO PARA EVITAR ZOOM */
.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
    transition: transform 0.4s ease;
}

/* Para imagens em carrossel, usar cover */
.noticia-com-multiplas-imagens .noticia-img {
    object-fit: cover;
    object-position: center;
}

/* Ajuste específico para imagens muito altas */
.noticia-midia-container.portrait .noticia-img {
    object-fit: contain;
    max-height: 600px;
}

.noticia-video {
    width: 100%;
    height: 100%;
    max-height: 600px;
    display: block;
    object-fit: contain;
}

/* Hover suave apenas para scale menor */
.noticia-midia-container:hover .noticia-img {
    transform: scale(1.02);
}

/* ==================== CONTROLES DE VÍDEO ==================== */
.video-play-btn,
.evento-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-play-btn:hover,
.evento-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn.playing,
.evento-play-btn.playing {
    display: none;
}

.video-play-btn svg,
.evento-play-btn svg {
    margin-left: 5px;
}

/* Controles customizados de áudio */
.video-controls-custom,
.evento-controls-custom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: none;
    gap: 10px;
    z-index: 11;
}

.video-controls-custom.visible,
.evento-controls-custom.visible {
    display: flex;
}

.video-sound-btn,
.evento-sound-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-sound-btn:hover,
.evento-sound-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ==================== CONTROLES DE IMAGENS - SETAS AZUIS ==================== */
.noticia-imagens-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.noticia-midia-container:hover .noticia-imagens-controls {
    opacity: 1;
    pointer-events: all;
}

.noticia-prev,
.noticia-next {
    background: var(--azulClaro);
    border: 2px solid white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.noticia-prev:hover,
.noticia-next:hover {
    background: var(--azulEscuro);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==================== DOTS DE IMAGENS ==================== */
.noticia-imagens-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.noticia-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.noticia-dot.ativo {
    background: white;
    transform: scale(1.3);
    border-color: var(--verde);
}

/* ==================== CONTEÚDO DA NOTÍCIA ==================== */
.noticia-conteudo {
    padding: 2.5rem;
}

.noticia-data {
    color: var(--azulClaro);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.noticia-data::before {
    content: '📅';
}

.noticia-conteudo h2 {
    color: var(--azulEscuro);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.noticia-descricao {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-line;
}

/* ==================== NOTÍCIAS EXTRAS ==================== */
.noticias-extras {
    animation: expandDown 0.5s ease;
}

.noticias-extras .noticia-item {
    animation: fadeInUp 0.6s ease;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 5000px;
    }
}

/* ==================== BOTÃO VER MAIS ==================== */
.ver-mais-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.ver-mais-btn {
    background: var(--azulEscuro);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

.ver-mais-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.ver-mais-btn:hover::before {
    left: 100%;
}

.ver-mais-btn:hover {
    background: var(--azulClaro);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.ver-mais-btn.expandido .btn-arrow {
    transform: rotate(180deg);
}

/* ==================== SEÇÃO DE EVENTOS - CORRIGIDO ==================== */
.eventos-section {
    margin-top: 5rem;
    padding: 3rem 0;
}

.eventos-section h2 {
    color: var(--azulEscuro);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.eventos-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--verde);
    border-radius: 2px;
}

.evento-destaque {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 2rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.evento-destaque:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.evento-midia {
    flex: 0 0 400px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.evento-midia.video-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.evento-midia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.evento-midia:hover img {
    transform: scale(1.05);
}

.evento-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.evento-data {
    color: var(--azulClaro);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.evento-info h3 {
    color: var(--azulEscuro);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.evento-info p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    white-space: pre-line;
}

/* ==================== RODAPÉ ==================== */
.footer-ccb {
    background: var(--azulClaro);
    color: #fff;
    margin-top: 4rem;
    padding: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-logo {
    width: 120px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.footer-logo-info p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.footer-nav h3,
.footer-contato h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--verde);
}

.footer-contato {
    background: var(--azulEscuro);
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.label-formulario {
    font-size: 0.95rem;
    font-weight: 500;
}

.input-formulario,
.textarea-formulario {
    width: 100%;
    padding: 0.7rem;
    border-radius: 6px;
    border: none;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.textarea-formulario {
    min-height: 100px;
    resize: vertical;
}

.button-formulario {
    background: var(--verde);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Poppins", sans-serif;
}

.button-formulario:hover {
    background: var(--verde-escuro);
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    padding: 1.5rem 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social a img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    border-radius: 7px;
    box-shadow: 0 4px 16px rgba(23, 60, 125, 0.25);
}

.footer-social a img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(23, 60, 125, 0.35);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copy {
    font-size: 1rem;
    color: #e0e0e0;
    margin: 0;
}

/* ==================== RESPONSIVIDADE MELHORADA ==================== */
@media (max-width: 768px) {
    .Cabecalho {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0.8rem 3%;
        border-radius: 0;
        transform: none;
    }

    .menu-toggle {
        display: block;
        z-index: 102;
    }

    .logoCabecalho img {
        height: 50px;
        width: 75px;
    }

    .navCabecalho {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--azulClaro);
        transition: transform 0.5s ease-in-out;
        z-index: 101;
        padding: 2rem 1rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        overflow-y: auto;
    }

    .navCabecalho.active {
        transform: translateX(0);
    }

    .navCabecalho ul {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 3rem;
    }

    .navCabecalho a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }

    .main-noticias {
        padding: 5rem 1rem 2rem;
    }

    .main-noticias h1 {
        font-size: 2rem;
    }

    /* Ajuste de mídia para mobile */
    .noticia-midia-container {
        height: 280px;
        max-height: 350px;
    }

    .video-container {
        min-height: 250px;
        max-height: 400px;
    }

    .video-container.vertical {
        min-height: 350px;
        max-height: 500px;
    }

    /* Garantir que imagens não fiquem cortadas em mobile */
    .noticia-img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .noticia-com-multiplas-imagens .noticia-img {
        object-fit: cover;
    }

    .noticia-conteudo {
        padding: 1.5rem;
    }

    .noticia-conteudo h2 {
        font-size: 1.4rem;
    }

    .evento-destaque {
        flex-direction: column;
        padding: 1.5rem;
    }

    .evento-midia {
        flex: 1;
        width: 100%;
        height: 220px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-info {
        align-items: center;
    }

    .video-play-btn,
    .evento-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn svg,
    .evento-play-btn svg {
        width: 40px;
        height: 40px;
    }

    .video-sound-btn,
    .evento-sound-btn {
        width: 35px;
        height: 35px;
    }

    /* Ajuste das setas de navegação em mobile */
    .noticia-prev,
    .noticia-next {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .eventos-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-noticias h1 {
        font-size: 1.8rem;
    }

    .noticia-conteudo h2 {
        font-size: 1.2rem;
    }

    .noticia-descricao {
        font-size: 0.95rem;
    }

    .ver-mais-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Ajuste ainda mais conservador para telas muito pequenas */
    .noticia-midia-container {
        height: 240px;
        max-height: 300px;
    }

    .video-container {
        min-height: 220px;
        max-height: 350px;
    }

    .noticia-prev,
    .noticia-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .eventos-section h2 {
        font-size: 1.8rem;
    }

    .evento-info h3 {
        font-size: 1.3rem;
    }
}

/* ==================== AJUSTES PARA PROPORÇÕES DE IMAGEM ==================== */
.noticia-midia-container.portrait {
    max-height: 500px;
}

.noticia-midia-container.landscape {
    max-height: 350px;
}

.noticia-midia-container.square {
    max-height: 400px;
}

@media (max-width: 768px) {
    .noticia-midia-container.portrait {
        max-height: 400px;
    }
    
    .noticia-midia-container.landscape {
        max-height: 280px;
    }
    
    .noticia-midia-container.square {
        max-height: 320px;
    }
}