/* =========================================
   RESET E VARIÁVEIS GERAIS
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1a3a5c;
  --accent-blue: #00a8e8;
  --accent-orange: #ff8c00;
  --accent-green: #7ec850;
  --dark-navy: #0d1b2a;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-dark: #333333;
  --text-light: #666666;
  --font-main: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--bg-dark); /* Fallback */
}

/* =========================================
   MENU DE NAVEGAÇÃO (DESKTOP)
   ========================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 58, 92, 0.98);
  backdrop-filter: blur(10px);
  padding: 0 2%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left, .nav-right {
  flex: 1;
  display: flex;
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-center {
  flex: 2;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
}

nav a:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
}

/* =========================================
   SECÇÃO HERO (CAPA)
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  background-image: 
    linear-gradient(to bottom, rgba(12, 28, 55, 0.95) 0%, rgba(12, 28, 55, 0.60) 100%),
    url('hero-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 110px 2rem 5rem 2rem; 
}

.logo-container {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
  z-index: 2;
  position: relative;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 30px; 
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s backwards;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.3s backwards;
  font-weight: 300;
  color: #ffffff !important;
  opacity: 1;
}

.hero-content .date {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s backwards;
  color: var(--accent-orange) !important;
  text-align: center; 
  width: 100%;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
  font-size: 1.1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 140, 0, 0.6);
}

/* =========================================
   CONTADOR (COUNTDOWN)
   ========================================= */
.countdown {
  background: var(--primary-blue);
  padding: 3rem 5% 6rem 5%;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.countdown-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.countdown-container h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--white);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  min-width: 120px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.3);
}

.countdown-box .number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
}

.countdown-box .label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* =========================================
   SECÇÕES GERAIS (MENSAGEM, AGENDA, ETC)
   ========================================= */
section {
  padding: 5rem 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.opening-message {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.message-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--accent-orange);
}

.message-content h2 { margin-bottom: 2rem; }

.message-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.message-highlight {
  color: var(--primary-blue);
  font-weight: 700;
}

/* =========================================
   ORADORES
   ========================================= */
.speakers { background: var(--white); }

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.speaker-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.speaker-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 168, 232, 0.2);
  border-color: var(--accent-blue);
}

.speaker-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.speaker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-info { padding: 1.5rem; text-align: center; }
.speaker-info h3 { color: var(--primary-blue); font-size: 1.4rem; margin-bottom: 0.5rem; }
.speaker-info .title { color: var(--accent-orange); font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.speaker-info p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   AGENDA
   ========================================= */
.agenda { background: var(--light-gray); }

.tabs-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 12px 25px;
  border: 2px solid var(--primary-blue);
  background-color: transparent;
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.agenda-timeline { max-width: 900px; margin: 3rem auto; }
.agenda-day {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--accent-blue);
}

.agenda-day-title {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.day-number {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.agenda-item {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.agenda-item:hover {
  transform: translateX(10px);
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.1), rgba(126, 200, 80, 0.1));
}

.agenda-time { color: var(--accent-orange); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.agenda-title { color: var(--primary-blue); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.agenda-description { color: var(--text-light); font-size: 0.95rem; }

/* =========================================
   PARCEIROS
   ========================================= */
.sponsors {
  background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
  color: var(--white);
  padding: 5rem 5%;
}

.partner-grid-mono {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.partner-logo-mono {
  max-width: 200px;
  height: 100px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.partner-logo-mono:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =========================================
   TESTEMUNHOS E SLIDESHOW
   ========================================= */
.testimonials {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
  overflow: hidden;
  min-height: 400px;
}

.testimonial-card {
  position: absolute;
  top: 0; left: 0; width: 100%;
  padding: 0 2rem;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.testimonial-quote { font-style: italic; margin-bottom: 2rem; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.testimonial-avatar { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent-orange); }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-info h4 { color: var(--white); font-size: 1.3rem; }
.testimonial-info p { color: var(--accent-orange); font-size: 0.95rem; }
.testimonial-stars { color: var(--accent-orange); }

.carousel-dots { display: flex; justify-content: center; gap: 0.8rem; margin: 15px auto; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.carousel-dot.active { background: var(--accent-orange); transform: scale(1.3); }

/* SLIDESHOW DESTAQUES */
#destaques .slideshow-container { max-width: 700px; position: relative; margin: auto; border: 2px solid rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
#destaques .mySlides { display: none; }
#destaques .mySlides img { width: 100%; }
#destaques .prev, #destaques .next { cursor: pointer; position: absolute; top: 50%; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; background-color: rgba(0,0,0,0.3); }
#destaques .next { right: 0; }
#destaques .dot { cursor: pointer; height: 12px; width: 12px; margin: 0 4px; background-color: #bbb; border-radius: 50%; display: inline-block; }
#destaques .dot.active { background-color: var(--accent-orange); }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* =========================================
   FAQ E FOOTER
   ========================================= */
.faq-question { width: 100%; border: none; padding: 1.5rem; text-align: left; font-size: 1.1rem; font-weight: 600; color: var(--primary-blue); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: none; }
.faq-question:hover { background: linear-gradient(135deg, rgba(0, 168, 232, 0.05), rgba(126, 200, 80, 0.05)); }
.faq-answer-content { padding: 0 1.5rem 1.5rem; color: var(--text-light); line-height: 1.8; }

footer {
  background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
  color: var(--white);
  padding: 3rem 5%;
}
footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
footer a:hover { color: var(--accent-orange); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SOLUÇÃO FINAL - RESPONSIVIDADE TELEMÓVEL
   (A CORREÇÃO CIRÚRGICA)
   ========================================= */
@media (max-width: 768px) {

  /* 1. Header relativo para não tapar conteúdo */
  header, nav {
    position: relative !important; 
    height: auto !important;
    padding: 10px 0;
  }
  
  .nav-container {
    flex-direction: column;
    padding-bottom: 5px;
  }

  /* 2. Menu ajustado */
  nav ul {
    display: flex;
    flex-wrap: wrap;        
    justify-content: center;
    gap: 4px;
    padding: 0 5px;
  }

  nav a {
    font-size: 11px !important;
    padding: 6px 8px !important;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
  }

  /* 3. Hero e Logos */
  .hero, #hero {
    padding-top: 30px !important; /* Espaço normal, pois o menu já não está "por cima" */
    background-position: center top;
  }

  .logo-container, .hero-logos {
    flex-direction: row;    
    gap: 15px;
    margin-bottom: 1rem;
  }

  .logo-container img {
    height: 40px !important;
    max-width: 40%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-top: 0.5rem;
  }
  
  /* 4. Ajustes gerais */
  section { padding: 3rem 5%; }
  h2 { font-size: 1.8rem; }
  
  .agenda-day-title { flex-direction: column; align-items: flex-start; }
  .testimonial-author { flex-direction: column; gap: 1rem; }
  .testimonial-info { text-align: center; }
  .footer-grid { flex-direction: column; gap: 40px; }
}
/* =========================================
   CORREÇÃO DE CORES (Títulos em Fundo Escuro)
   ========================================= */
.testimonials h2 {
  color: var(--white) !important;
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}