/* Arquivo CSS Completo para o MILES Summit II */

/* Variáveis */
:root {
    --primary: #0B094D;
    --secondary: #FFDD66;
    --light: #F2F2F2;
    --grey: #D5C5B0;
}

/* Reset e Estilos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilo adicional para rolagem suave da página */
html {
    scroll-behavior: smooth;
}

/* Botões */
.btn {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--secondary);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 22px;
    margin: 0 -2px;
}

.btn-inverse {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-inverse:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Header e Navegação */
header {
    background-color: var(--primary);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-globe {
    font-size: 1.5rem;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
    display: inline-flex;
    align-items: center;
    height: 36px;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Estilos específicos para o botão Inscreva-se no menu */
.nav-links a.btn {
    color: var(--primary);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-top: -8px; /* Ajuste para alinhar com os outros itens */
    border: 2px solid var(--secondary);
}

.nav-links a.btn:hover {
    color: var(--primary);
    padding: 8px 22px;
    margin-left: -2px;
    margin-right: -2px;
}

.nav-links a.btn::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary);
    z-index: 1050;
    padding: 80px 40px 40px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}

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

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    margin-top: 20px;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--secondary);
}

/* Estilos específicos para o botão Inscreva-se no menu mobile */
.mobile-nav-links a.btn {
    color: var(--primary);
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.mobile-nav-links a.btn:hover {
    color: var(--primary);
}

/* Seções Gerais */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
}

.section-title h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 10px auto 0;
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 400px;
    height: 400px;
    background-color: var(--secondary);
    transform: rotate(45deg);
    opacity: 0.1;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 400px;
    height: 400px;
    background-color: var(--secondary);
    transform: rotate(45deg);
    opacity: 0.1;
}

.hero-content {
    color: var(--light);
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero .dates {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-title-image {
    max-width: 100%;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Countdown Timer */
.countdown {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.countdown-item {
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* About Section */
.about-content {
    display: flex;
    align-items: flex-start;  /* Alterado para flex-start para melhor alinhamento */
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-stats {
    flex: 1;
    background-color: var(--primary);
    border-radius: 10px;
    color: var(--light);
    display: flex;
    flex-direction: column;
}

/* Galeria de Fotos - Corrigido */
.gallery-wrapper {
    flex: 1;
    max-width: 500px;  /* Ajustado para ter um tamanho máximo */
}

.photo-gallery {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 330px;  /* Ajustado para melhor proporção com as imagens */
    border-radius: 10px 10px 0 0;
    background-color: var(--primary);
}

.gallery-container {
    display: flex;
    height: 100%;
    position: relative;
}

.gallery-item {
    min-width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-item.active {
    display: block;
    opacity: 1;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém a proporção da imagem cobrindo todo o espaço */
    border-radius: 0;  /* Remove arredondamento nas bordas da imagem */
}

.gallery-navigation {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    border-radius: 0 0 10px 10px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Novo estilo para os pontos da galeria */
.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block; /* Garante que seja visível */
}

.gallery-dot.active {
    background-color: var(--secondary);
    transform: scale(1.2);
}

/* Estilos gerais para pontos/dots (usado no carousel dos palestrantes) */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--secondary);
    transform: scale(1.2);
}

/* Schedule Section */
.schedule {
    background-color: var(--light);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.tab {
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background-color: var(--secondary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.schedule-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s;
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.schedule-time {
    background-color: var(--primary);
    color: var(--light);
    padding: 10px;
    border-radius: 5px;
    margin-right: 20px;
    text-align: center;
    min-width: 80px;
}

.schedule-info {
    flex: 1;
}

.schedule-info h3 {
    color: var(--primary);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}

/* Aplicar cursor pointer e seta apenas para itens expansíveis */
.schedule-info h3.expandable {
    cursor: pointer;
    padding-right: 25px;
}

.schedule-info h3:hover {
    color: var(--secondary);
}

.schedule-info h3.expandable::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    transition: transform 0.3s ease-in-out;
}

.schedule-info h3.expandable.active::after {
    transform: translateY(-50%) rotate(-180deg);
}

.schedule-info h3.active::after {
    transform: translateY(-50%) rotate(-180deg);
}

.schedule-speakers {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.schedule-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out;
    margin-top: 5px;
    background-color: var(--light);
    border-radius: 5px;
    opacity: 0;
    padding: 0;
    margin-top: 0;
}

.schedule-details.active {
    max-height: 500px;
    padding: 15px;
    margin-top: 10px;
    border-left: 3px solid var(--secondary);
    opacity: 1;
}

.speakers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Remover o ícone atual de pessoa */
.speakers-list li:before {
    display: none; /* Esconder o ícone existente */
}

/* Novo estilo para fotos de perfil redondas */
.speakers-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 40px; /* Aumentar o padding para acomodar a imagem */
    color: var(--primary);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.speaker-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%; /* Tornar a imagem redonda */
    object-fit: cover; /* Garantir que a imagem cubra a área sem distorção */
    position: absolute;
    left: 0;
    border: 2px solid var(--secondary); /* Adicionar borda na cor secundária */
}

/* Speakers Section */
.speakers {
    background-color: var(--primary);
    color: var(--light);
}

.speakers .section-title h2 {
    color: var(--light);
}

/* Carrossel de Palestrantes */
.speakers-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-inner {
    display: flex;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.speaker-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    width: 250px; /* Tamanho fixo para todos os cards */
    height: 340px; /* Tamanho fixo para todos os cards */
    cursor: pointer;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-image {
    height: 250px;
    overflow: hidden;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.speaker-card:hover .speaker-image img {
    transform: scale(1.05);
}

.speaker-info {
    padding: 20px;
    text-align: center;
    background-color: var(--primary);
    height: 90px; /* Altura fixa para a parte informativa */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.speaker-info h3 {
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 1rem; /* Tamanho reduzido para nomes longos */
}

.speaker-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0; /* Remove margins para evitar overflow */
}

/* Controles do carrossel apenas com bolinhas amarelas */
.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Estilo para bolinhas amarelas (substituindo as setas) */
.speakers .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 221, 102, 0.3); /* Amarelo com opacidade */
    cursor: pointer;
    transition: all 0.3s;
}

.speakers .dot.active {
    background-color: var(--secondary); /* Amarelo sólido */
    transform: scale(1.2);
}

/* Modal do currículo dos palestrantes - Corrigido */
.speaker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.speaker-modal.active {
    opacity: 1;
    visibility: visible;
}

.speaker-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -30px;
    right: -30px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Pitch Section */
.pitch {
    background-color: var(--light);
}

.pitch-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.pitch-text {
    flex: 1;
}

.pitch-text h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.pitch-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.pitch-topics {
    margin: 30px 0;
}

.topic {
    background-color: white;
    padding: 15px;
    border-left: 4px solid var(--secondary);
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.topic h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.topic p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Location Section */
.location {
    background-color: var(--primary);
    color: var(--light);
}

.location .section-title h2 {
    color: var(--light);
}

.location-content {
    display: flex;
    gap: 50px;
}

.location-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-info {
    flex: 1;
}

.location-info h3 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.location-address {
    margin-bottom: 30px;
    line-height: 1.7;
}

.location-address i {
    color: var(--secondary);
    margin-right: 10px;
}

.location-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.location-feature {
    display: flex;
    align-items: center;
}

.location-feature i {
    background-color: var(--secondary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* Register Section */
.register {
    background-color: var(--light);
    text-align: center;
}

.register p {
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.register .btn {
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* Partners Section */
.partners {
    background-color: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.partner-logo {
    background-color: transparent;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: brightness(1.1);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    padding: 0 20px;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--light);
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about-content, 
    .pitch-content,
    .location-content {
        flex-direction: column;
    }

    .about-content > div,
    .pitch-content > div,
    .location-content > div {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .gallery-wrapper {
        margin-top: 20px;
        max-width: 100%; /* No modo responsivo, ocupar toda a largura */
    }

    .footer-content {
        flex-wrap: wrap;
    }

    .footer-column {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }

    .logo-image {
        height: 36px;
    }
}

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

    h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 70px 0;
    }

    .schedule-item {
        flex-direction: column;
    }

    .schedule-time {
        flex: 0 0 auto;
        padding: 10px;
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .footer-column {
        flex: 0 0 100%;
    }
    
    .carousel-slide {
        gap: 20px;
    }
    
    .carousel-controls {
        margin-top: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-image {
        height: 32px;
    }
    
    /* Ajustes para a galeria em telas menores */
    .photo-gallery {
        height: 280px;
    }
    
    .close-modal {
        top: -20px;
        right: -10px;
    }
}