:root {
    --primary-red: #e31837;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-gray);
    color: white;
    line-height: 1.6;
}

.navbar {
    background-color: black;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 150px;
    height: 60px;
    object-fit: contain;
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    background-color: black; /* Fundo preto base */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.ministryvoice.com/wp-content/uploads/worship5.webp'); /* Substitua pela sua imagem */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0; /* Alterado para ficar atrás do conteúdo */
}

.hero-content {
    position: relative;
    z-index: 2; /* Aumentado para garantir que fique sobre a imagem */
}

.hero-content h1 {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.scroll-button {
    position: relative;
    z-index: 2;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.3);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.scroll-button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.3);
}

.scroll-button:hover {
    background-color: #c41330;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.4);
}

.scroll-button:active {
    transform: translateY(0);
}

.red-accent {
    color: var(--primary-red);
}

.calendar-section {
    background-color: white;
    padding: 8rem 20px 4rem 20px; /* Aumentado o padding-top */
    /*scroll-margin-top: 100px;  Adiciona margem para o scroll */
}

.section-title {
    text-align: center;
    color: black;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.section-title-white {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.calendar-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calendar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: black;
}

.month-year {
    font-size: 1rem;
    font-weight: bold;
    color: var(--dark-gray);
}

.nav-button {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #c41330;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    cursor: pointer;
    border-radius: 5px;
    color: var(--dark-gray);
    transition: all 0.3s;
    height: 38px;
}

.day:hover {
    background-color: #f8f8f8;
}

.day.has-event {
    background-color: var(--primary-red);
    color: white;
    font-weight: bold;
    border: none;
}

.day.has-event:hover {
    background-color: #c41330;
}

.other-month {
    color: #ccc;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    color: var(--dark-gray);
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark-gray);
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-red);
}

.event-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

#event-title {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 2rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.8rem;
}

.social-links a:hover {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .scroll-button {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    .calendar-container {
        padding: 1rem;
    }
}
.gallery-section {
    background-color: var(--dark-gray);
    padding: 4rem 20px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .scroll-button {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .section-title, .section-title-white {
        font-size: 2rem;
    }

    .calendar-container {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .gallery-section {
        padding: 2rem 10px;
    }

    .lightbox-content {
        max-width: 95%;
    }
}

/* Título branco para seções escuras */
.section-title-white {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
}