* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azulEscuro: #173C7D;
    --azulClaro: #4360A4;
    --verde: #65CB93;
    --verde-escuro: #39855b;
    --corFundo: #E6EDEA;
    --corCardFundo: #FFFFFF;
}

html {
    font-size: 16px;
}

body {
    background: linear-gradient(135deg, #E6EDEA 0%, #d4e4de 100%);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.menu-open {
    overflow: hidden;
}

h2 {
    color: var(--azulEscuro);
    margin: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    text-decoration: underline;
    text-decoration-color: var(--verde);
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
    text-align: center;
}

/* ==================== CABEÇALHO ATUALIZADO ==================== */
.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;
}

/* Linha verde embaixo dos links */
.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%;
}

/* Link ativo em verde */
.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;
}

/* ==================== CONTEÚDO PRINCIPAL ==================== */
main {
    padding-top: 7rem;
}

.titulo-quem-somos {
    min-height: 25vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 1;
}

.titulo-quem-somos h2 {
    color: var(--azulEscuro);
    text-shadow: none;
    text-decoration: underline;
    text-decoration-color: var(--verde);
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
    margin: 0;
    padding-bottom: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    position: relative;
    z-index: 3;
}

.quem-somos-box {
    display: flex;
    max-width: 1200px;
    background-color: var(--corCardFundo);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 3rem auto;
    gap: 2rem;
    align-items: center;
    width: 90%;
}

.quem-somos-box .texto {
    flex: 1;
}

.quem-somos-box .texto h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.quem-somos-box p {
    line-height: 1.7;
    color: #333;
    font-size: 1.05rem;
    text-align: justify;
}

.quem-somos-box .imagem {
    flex: 1;
    text-align: center;
}

.foto-instituicao {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.missao-visao {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

.card {
    background-color: var(--corCardFundo);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.card h2 {
    text-decoration: underline;
    text-decoration-color: var(--verde);
    text-underline-offset: 8px;
    margin: 0 0 1rem 0;
}

/* ==================== NOSSOS VALORES ==================== */
.nossos-valores {
    padding: 4rem 5%;
    color: var(--azulEscuro);
    text-align: center;
}

.nossos-valores h2 {
    color: var(--azulEscuro);
    text-decoration-color: var(--verde);
    margin-bottom: 3rem;
}

.valores-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    gap: 1rem;
}

.valor-card {
    background-color: var(--corCardFundo);
    border: 1px solid var(--corFundo);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-grow: 1;
    min-height: 250px;
}

.valor-card h3 {
    background-color: var(--verde);
    color: #fff;
    display: inline-block;
    padding: 0 10px;
    border-radius: 5px;
    line-height: 1.4;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.valor-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.prev,
.next {
    background: none;
    border: none;
    color: var(--azulEscuro);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.prev:hover,
.next:hover {
    color: var(--azulClaro);
}

.dots {
    text-align: center;
    margin-top: 2rem;
}

.dots span {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #b8b5b5;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dots span.active {
    background-color: var(--azulEscuro);
}

/* ==================== FUNDADOR ==================== */
.fundador {
    background-color: #FFFFFF;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.fundador-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.foto-fundador {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.foto-fundador img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-fundador {
    flex-grow: 1;
}

.info-fundador p {
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 1rem;
}

/* ==================== VÍDEO DO FUNDADOR ==================== */
.video-fundador-container {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-fundador {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-overlay.show-icon {
    opacity: 1;
}

/* Ícone de play/pause */
.play-pause-icon {
    display: block;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-pause-icon:hover {
    transform: scale(1.1);
}

/* Estado de pause (barras) */
.play-pause-icon::before,
.play-pause-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 30px;
    background-color: var(--azulEscuro);
    transform: translateY(-50%);
}

.play-pause-icon::before {
    left: 22px;
}

.play-pause-icon::after {
    right: 22px;
}

/* Estado de play (triângulo) */
.video-overlay.paused .play-pause-icon {
    width: 0;
    height: 0;
    background: transparent;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid var(--azulEscuro);
    border-radius: 0;
    margin-left: 5px;
}

.video-overlay.paused .play-pause-icon::before,
.video-overlay.paused .play-pause-icon::after {
    content: none;
}

/* ==================== FOOTER ATUALIZADO ==================== */
.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;
}

/* ==================== MEDIA QUERIES ==================== */
@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 {
        padding-top: 5rem;
    }

    .titulo-quem-somos {
        min-height: 15vh;
        padding-top: 0;
    }

    .quem-somos-box {
        flex-direction: column;
        padding: 2rem 5%;
        width: 95%;
    }

    .missao-visao {
        flex-direction: column;
        gap: 1.5rem;
    }

    .fundador-container {
        flex-direction: column;
        text-align: center;
    }

    .foto-fundador {
        width: 180px;
        height: 180px;
        order: -1;
        margin-bottom: 1rem;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-info {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .Cabecalho {
        padding: 0.7rem 3%;
    }

    .logoCabecalho img {
        height: 45px;
        width: 68px;
    }

    .doeAgora {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .titulo-quem-somos h2 {
        font-size: 1.8rem;
    }

    .play-pause-icon {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 1400px) {
    html {
        font-size: 18px;
    }

    .Cabecalho {
        padding: 1rem 3%;
    }

    .navCabecalho ul {
        gap: 2rem;
    }
}