/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   CONFIGURAÇÕES GERAIS
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}


/* =========================================
   CONTAINER
   ========================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================
   CABEÇALHO
   ========================================= */

.cabecalho {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;

    position: sticky;
    top: 0;

    z-index: 1000;
}

.cabecalho-conteudo {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.nome-igreja {
    font-size: 22px;
    font-weight: 700;

    color: #222;

    text-decoration: none;
}


/* =========================================
   CONTEÚDO
   ========================================= */

.conteudo {
    padding: 45px 0 60px;
}


/* =========================================
   TÍTULOS
   ========================================= */

.titulo-principal {
    font-size: 36px;
    font-weight: 700;

    color: #222;

    margin-bottom: 10px;
}

.subtitulo {
    font-size: 17px;
    color: #666;

    margin-bottom: 35px;
}

.secao {
    margin-bottom: 45px;
}

.titulo-secao {
    font-size: 25px;

    margin-bottom: 20px;

    color: #222;
}


/* =========================================
   GRADE DE CARDS
   ========================================= */

.grade {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* =========================================
   CARD
   ========================================= */

.card {
    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 12px;

    overflow: hidden;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-conteudo {
    padding: 22px;
}

.card-titulo {
    font-size: 19px;
    font-weight: 700;

    margin-bottom: 8px;

    color: #222;
}

.card-texto {
    font-size: 14px;
    color: #777;
}

.card-icone {
    width: 55px;
    height: 55px;

    border-radius: 12px;

    background: #f0f0f0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    margin-bottom: 15px;
}


/* =========================================
   CAMINHO DE NAVEGAÇÃO
   ========================================= */

.caminho {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-bottom: 30px;

    font-size: 14px;

    color: #777;
}

.caminho a {
    color: #555;

    text-decoration: none;
}

.caminho a:hover {
    text-decoration: underline;
}

.caminho-separador {
    color: #aaa;
}


/* =========================================
   CARDS DE EVENTOS
   ========================================= */

.evento-card {
    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 12px;

    padding: 20px;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.evento-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}

.evento-nome {
    font-size: 18px;
    font-weight: 700;

    color: #222;

    margin-bottom: 10px;
}

.evento-informacoes {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    font-size: 14px;

    color: #777;
}


/* =========================================
   GALERIA DE FOTOS
   ========================================= */

.galeria {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}


/* =========================================
   ITEM DA GALERIA
   ========================================= */

.galeria-item {
    position: relative;

    overflow: hidden;

    border-radius: 8px;

    background: #ddd;

    aspect-ratio: 1 / 1;

    cursor: pointer;
}


/* =========================================
   IMAGENS DA GALERIA
   ========================================= */

.galeria-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}


/* Efeito ao passar o mouse */

.galeria-item:hover img {
    transform: scale(1.05);
}


/* =========================================
   VISUALIZADOR DE FOTO
   ========================================= */

#visualizador-imagem {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 9999;

    display: none;
}


/* Quando estiver aberto */

#visualizador-imagem.ativo {
    display: block;
}


/* =========================================
   FUNDO DO VISUALIZADOR
   ========================================= */

.visualizador-fundo {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 70px 30px 30px;

    cursor: zoom-out;
}


/* =========================================
   FOTO GRANDE
   ========================================= */

.visualizador-foto {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow:
        0 10px 50px rgba(0, 0, 0, 0.5);

    cursor: default;

    user-select: none;

    -webkit-user-drag: none;
}


/* =========================================
   BOTÃO FECHAR
   ========================================= */

.visualizador-fechar {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 48px;
    height: 48px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    font-size: 32px;

    line-height: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 10;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.visualizador-fechar:hover {
    background: rgba(255, 255, 255, 0.30);

    transform: scale(1.05);
}


/* =========================================
   VÍDEOS
   ========================================= */

.videos {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.video-item {
    background: #ffffff;

    border-radius: 10px;

    overflow: hidden;

    border: 1px solid #e5e5e5;
}

.video-item video {
    width: 100%;

    display: block;

    background: #000;
}


/* =========================================
   BOTÕES
   ========================================= */

.botao {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 20px;

    border-radius: 8px;

    background: #222;

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition:
        background 0.2s ease;
}

.botao:hover {
    background: #444;
}


/* =========================================
   MENSAGENS
   ========================================= */

.mensagem {
    padding: 25px;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 10px;

    color: #666;

    text-align: center;
}


/* =========================================
   RODAPÉ
   ========================================= */

.rodape {
    margin-top: 50px;

    padding: 30px 0;

    border-top: 1px solid #e5e5e5;

    color: #777;

    font-size: 14px;

    text-align: center;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .grade {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria {
        grid-template-columns: repeat(3, 1fr);
    }

    .videos {
        grid-template-columns: 1fr;
    }

    .titulo-principal {
        font-size: 32px;
    }

}


/* =========================================
   CELULAR
   ========================================= */

@media (max-width: 600px) {

    .container {
        padding: 0 15px;
    }

    .conteudo {
        padding: 30px 0 45px;
    }

    .cabecalho-conteudo {
        min-height: 65px;
    }

    .nome-igreja {
        font-size: 18px;
    }

    .titulo-principal {
        font-size: 27px;
    }

    .subtitulo {
        font-size: 15px;
    }

    .grade {
        grid-template-columns: 1fr;
    }

    .galeria {
        grid-template-columns: repeat(2, 1fr);

        gap: 6px;
    }

    .evento-card {
        padding: 17px;
    }


    /* Visualizador no celular */

    .visualizador-fundo {
        padding: 65px 10px 15px;
    }

    .visualizador-fechar {
        top: 12px;
        right: 12px;

        width: 44px;
        height: 44px;

        font-size: 28px;
    }

    .visualizador-foto {
        max-width: 100%;
        max-height: 100%;
    }

}