/* Variaveis */
:root {
    --background: #EEEEEE;
    --primaria: #0F044C;
    --secundaria: #141E61;
    --subtitulo: #25D366;
    --titulo: #0F172A;
}

/* Resete e base de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--titulo);
    line-height: 1.6;
}

/* Header */
nav {
    background-color: white;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.logo-icon {
    background: var(--primaria);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(15, 76, 129, 0.2);
}

.logo-text {
    color: var(--primaria);
    font-size: 1.2rem;
    font-weight: 600;
}

.logo-symbol {
    color: var(--secundaria);
    font-size: 1.1rem;
    margin-left: 0.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primaria);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:last-child {
    bottom: 0;
}

.hamburger.active span:first-child {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: translateY(-11px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--titulo);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    padding-bottom: 0.2rem;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 50%;
    background-color: var(--primaria);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--primaria);
}

nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Botões CTA */
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cta-button {
    background-color: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-button i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background-color: white;
    color: var(--primaria);
    transform: translateY(-2px);
}

.cta-button:hover i {
    transform: translateY(3px);
}

/* Seções */
section {
    padding: 5rem 10%;
}

h2 {
    color: var(--primaria);
    font-size: clamp(1.8rem, 4vw, 2rem);
    margin-bottom: 3rem;
    text-align: center;
}

/* Cronograma de palestras */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 120px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primaria), var(--subtitulo));
}

.timeline-item:last-child::before {
    height: 50%;
}

.time {
    width: 120px;
    padding-right: 2rem;
    font-weight: 600;
    color: var(--primaria);
    text-align: right;
    font-size: 0.9rem;
    padding-top: 0.2rem;
}

.content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-left: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.content::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primaria);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primaria);
}

.content:hover {
    transform: translateX(10px);
}

.content h3 {
    color: var(--primaria);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.content .speaker {
    color: var(--subtitulo);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.content .schedule {
    color: var(--secundaria);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.content .description {
    font-size: 0.9rem;
    color: var(--titulo);
    line-height: 1.5;
}

section#cronograma {
    padding: 5rem 10% 0;
}

/* Formulário de inscrição */
#inscricao-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, select {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primaria);
}

.submit-button {
    background-color: var(--primaria);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--secundaria);
}

/* Galeria de fotos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(114, 9, 183, 0.95), 
        rgba(58, 12, 163, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-content {
    color: white;
    text-align: center;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.gallery-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-content .event-date {
    color: var(--subtitulo);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gallery-content .event-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

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

/* Mapa */
.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#map {
    height: 400px;
    border-radius: 8px;
    background-color: #eee;
    z-index: 1;
}

.leaflet-popup-content h3 {
    color: var(--primaria);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.leaflet-popup-content p {
    margin: 0;
    color: var(--titulo);
}

.endereco {
    padding: 1rem;
}

.endereco h3 {
    color: var(--primaria);
    margin-bottom: 1rem;
}

.endereco p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.endereco p i {
    font-size: 1.2rem;
}

.endereco i {
    color: var(--primaria);
    margin-right: 0.5rem;
    transition: color 0.3s;
}

/* Footer */
footer {
    background-color: var(--primaria);
    color: white;
    padding: 2rem;
    text-align: center;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

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

/* Responsividade */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s ease;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

    nav a {
        font-size: 1rem;
        padding-bottom: 0.3rem;
    }

    nav a::after {
        height: 2px;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    h2 {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    section {
        padding: 3rem 5%;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding: 10px;
    }

    .timeline-item::before {
        left: 80px;
    }

    .time {
        width: 80px;
        font-size: 0.8rem;
    }

    .content {
        margin-left: 1.5rem;
        padding: 1.2rem;
    }

    .content::before {
        left: -2rem;
    }

    .content h3 {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    .content .speaker,
    .content .description {
        font-size: 0.85rem;
    }

    .content .schedule {
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-content {
        padding: 1.5rem;
    }

    .gallery-content h3 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .gallery-content .event-desc {
        font-size: 0.8rem;
    }

    .logo-icon {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .logo-symbol {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .scroll-indicator {
        font-size: 1.2rem;
    }
    
    .cta-container {
        gap: 1rem;
    }
}

.scroll-indicator {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--primaria);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--primaria);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
} 