/* ============================
   RESET E BASE
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f4f4;
    color: #111;
}

/* ============================
   MENU SUPERIOR
============================ */
header.menu {
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-principal {
    height: 55px;
}

.mevam-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mevam-logo {
    height: 45px;
    border-radius: 6px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu-links a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.menu-links a:hover {
    color: #00a884;
}

/* MOBILE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #111;
        padding: 20px;
    }

    .menu-links a {
        color: white;
        padding: 10px 0;
    }

    .menu-links.ativo {
        display: flex;
    }
}

/* ============================
   BANNER ROTATIVO
============================ */
.banner-rotativo {
    position: relative;
    width: 100%;
    height: 780px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.ativo {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Título sobreposto */
.banner-titulo {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.slide.ativo .banner-titulo {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Setas */
.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: white;
    cursor: pointer;
    padding: 10px;
    text-shadow: 0 0 10px black;
    z-index: 10;
}

.seta.esquerda { left: 20px; }
.seta.direita { right: 20px; }

/* Bolinhas */
.bolinhas {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
}

.bolinha {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.bolinha.ativa {
    background: white;
    transform: scale(1.3);
}

/* ============================
   BANNER BÍBLICO
============================ */
.banner-biblico {
    background: #00a884;
    padding: 25px;
    text-align: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

/* ============================
   HORÁRIOS DOS CULTOS
============================ */
.horarios-cultos {
    padding: 40px 20px;
    text-align: center;
}

.titulo-cultos {
    font-size: 32px;
    margin-bottom: 25px;
}

.cultos-lista {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.culto-card {
    background: white;
    padding: 25px;
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.culto-card i {
    font-size: 40px;
    color: #00a884;
    margin-bottom: 10px;
}

/* ============================
   PLAYER DE MÚSICA
============================ */
.player-musica {
    text-align: center;
    margin: 40px auto;
}

.btn-play,
.btn-pause,
.btn-vol {
    margin: 5px;
}

/* ============================
   BANNER VISÃO
============================ */
.banner-visao {
    background: url('../img/banner-visao.jpg') center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.banner-visao-conteudo h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

/* ============================
   MOMENTOS DO CULTO
============================ */
.momentos-culto {
    padding: 40px 20px;
    text-align: center;
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.galeria img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

/* ============================
   PIX / DOAÇÕES
============================ */
.secao-doacoes {
    padding: 40px 20px;
    text-align: center;
}

.doacoes-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pix-info,
.pix-gerador {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pix-chave-area {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f4f4;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.pix-icon {
    width: 28px;
}

/* Popup PIX */
.popup-overlay-pix {
    display: none;
}

/* ============================
   ENDEREÇO
============================ */
.endereco-igreja {
    padding: 40px 20px;
    text-align: center;
}

.endereco-card {
    background: white;
    padding: 25px;
    width: 350px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================
   REDES SOCIAIS
============================ */
.redes-sociais {
    padding: 40px 20px;
    text-align: center;
}

.icones-redes {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.icone-circular {
    width: 60px;
    height: 60px;
    background: #111;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

/* ============================
   WHATSAPP FIXO
============================ */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.whatsapp-btn img {
    width: 40px;
}

/* ============================
   RODAPÉ
============================ */
.footer-igreja {
    background: #111;
    color: white;
    padding: 30px;
    text-align: center;
}

/* ============================
   POPUPS (CORRIGIDO)
============================ */
.popup-overlay,
.popup-overlay-oracao,
.popup-overlay-pix {
    display: none; /* ESSENCIAL */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup {
    background: white;
    padding: 25px;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    position: relative;
}

.popup .fechar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
}

/* ============================
   RESPONSIVIDADE GERAL
============================ */
@media (max-width: 768px) {
    .cultos-lista {
        flex-direction: column;
        align-items: center;
    }

    .doacoes-container {
        flex-direction: column;
        align-items: center;
    }

    .galeria img {
        width: 90%;
        height: auto;
    }
}