/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --white-color: #ffffff;
    --text-color: #333;
    --gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensa a altura do header fixo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    height: 100%;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1533174414092-f9ad3032b9e9?w=1600&h=900&fit=crop') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding-top: 80px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-date {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem !important;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    margin: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    margin-right: 8px;
}

/* Seções Gerais */
section {
    padding: 100px 0 80px 0; /* Aumenta o padding-top para compensar o header */
    position: relative;
}

section:first-of-type {
    padding-top: 0; /* Hero section não precisa do padding extra */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Sobre o Evento */
.sobre {
    background: var(--light-color);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.sobre-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: #666;
}

.sobre-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* História / Timeline */
.historia {
    background: var(--white-color);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 40%;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.timeline-content {
    width: 40%;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Galeria */
.galeria {
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white-color);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Localização */
.localizacao {
    background: var(--white-color);
}

.localizacao-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.localizacao-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 5px;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.mapa {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mapa iframe {
    display: block;
}

/* Contato */
.contato {
    background: var(--light-color);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contato-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contato-info > p {
    margin-bottom: 2rem;
    color: #666;
}

.contato-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white-color);
    border-radius: 10px;
}

.contato-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 5px;
}

.contato-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contato-item p {
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.whatsapp-box {
    background: var(--white-color);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.whatsapp-box i {
    font-size: 4rem;
    color: #25d366;
    margin-bottom: 1rem;
}

.whatsapp-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.whatsapp-box p {
    color: #666;
    margin-bottom: 2rem;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: #25d366;
    color: var(--white-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-whatsapp-large:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large i {
    margin-right: 8px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: var(--white-color);
    padding: 15px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 998; /* Menor que o header mas maior que o conteúdo */
    transition: all 0.3s;
    animation: pulse 2s infinite;
    text-decoration: none;
    white-space: nowrap;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.whatsapp-text {
    font-size: 1rem;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px; /* Menor para mobile */
    }

    header {
        height: 70px; /* Altura menor no mobile */
    }

    section {
        padding: 90px 0 60px 0; /* Ajuste para mobile */
    }

    section:first-of-type {
        padding-top: 0;
    }

    .hero {
        padding-top: 70px; /* Ajuste para mobile */
        height: 100vh;
        min-height: 600px; /* Altura mínima para garantir que o conteúdo seja visível */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-date {
        font-size: 1.3rem;
    }

    .sobre-content {
        grid-template-columns: 1fr;
    }

    .sobre-features {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .timeline-year,
    .timeline-content {
        width: 100%;
        text-align: left;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .localizacao-content,
    .contato-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .whatsapp-float {
        padding: 12px 20px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        margin-right: 6px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-whatsapp {
        padding: 12px 25px;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Em telas muito pequenas, mostrar apenas o ícone do WhatsApp flutuante */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
    }

    .whatsapp-float i {
        margin-right: 0;
        font-size: 1.5rem;
    }

    .whatsapp-text {
        display: none;
    }
}
