/* Importação da fonte CMGSans (usando Inter como fallback) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "CMGSans", sans-serif;
  color: #f2cb79;
  background: linear-gradient(135deg, #400904 0%, #a6511f 50%, #8c683e 100%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Cabeçalho fixo */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(64, 9, 4, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(242, 203, 121, 0.2);
  padding: 15px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  transform: scale(1.60); 
  transition: transform 0.3s;
  margin-top: -8px;
  margin-bottom: -8px;
}

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

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #f2cb79;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: #f2cb79;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #bf7315;
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #bf7315;
  transition: width 0.3s ease;
}

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

/* Menu hamburger para mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #f2cb79;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(64, 9, 4, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(242, 203, 121, 0.2);
}

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

.mobile-menu ul {
  list-style: none;
  padding: 20px;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  color: #f2cb79;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(242, 203, 121, 0.1);
}

/* Seção Hero com imagem */
#inicio {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(64, 9, 4, 0.6);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: white;
  opacity: 0.9;
  margin-bottom: 50px;
  font-weight: 400;
}

/* Contador regressivo */
.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.time-block {
  background: rgba(242, 203, 121, 0.1);
  border: 2px solid rgba(191, 115, 21, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.time-block:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #bf7315;
  box-shadow: 0 20px 40px rgba(191, 115, 21, 0.4);
}

.number {
  font-size: 4rem;
  font-weight: 700;
  color: #f2cb79;
  text-shadow: 0 0 20px rgba(242, 203, 121, 0.5);
  line-height: 1;
}

.label {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  color: #bf7315;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Seções principais */
main section {
  padding: 100px 0;
  margin-bottom: 0;
  background: rgba(64, 9, 4, 0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(242, 203, 121, 0.1);
  opacity: 0;
  transform: translateY(50px);
}

main section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #f2cb79;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

/* Seção Preletores */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* Classe necessária para ajustar as fotos que ficam cortadas na parte de cima */
.ajuste-foto {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: 100%;
}

.info-block {
  margin-top: 12px;
  margin-bottom: 30px;
  background: #f2cb79;
  color: #400904;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-block;
}
.info-time {
  font-size: 1rem;
}

.speaker-card {
  background: rgba(242, 203, 121, 0.05);
  border: 2px solid rgba(191, 115, 21, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.speaker-card:hover {
  transform: translateY(-15px);
  border-color: #bf7315;
  box-shadow: 0 20px 40px rgba(191, 115, 21, 0.3);
}

.speaker-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #bf7315;
  transition: all 0.3s ease;
}

.speaker-card:hover img {
  transform: scale(1.1);
  border-color: #f2cb79;
}

.speaker-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f2cb79;
}

.speaker-card p {
  font-size: 1rem;
  color: #bf7315;
  font-weight: 500;
}

/* Seção Programação */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button {
  background: rgba(242, 203, 121, 0.1);
  border: 2px solid rgba(191, 115, 21, 0.3);
  color: #f2cb79;
  padding: 15px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tab-button:hover {
  background: rgba(191, 115, 21, 0.2);
  transform: translateY(-3px);
}

.tab-button.active {
  background: #bf7315;
  color: #400904;
  border-color: #bf7315;
}

.tab-content {
  display: none;
  background: rgba(242, 203, 121, 0.05);
  border: 1px solid rgba(191, 115, 21, 0.2);
  border-radius: 15px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

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

.tab-content ul {
  list-style: none;
}

.tab-content ul li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #f2cb79;
  padding: 10px 0;
  border-bottom: 1px solid rgba(191, 115, 21, 0.2);
}

/* Seção Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 40px rgba(191, 115, 21, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease;
}

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

/* Seção Local */
.location-info {
  text-align: center;
  margin-bottom: 40px;
}

.location-address {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f2cb79;
}

/* Botões de navegação */
.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.nav-button {
  background: linear-gradient(135deg, #bf7315, #a6511f);
  color: #f2cb79;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(191, 115, 21, 0.3);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 115, 21, 0.5);
  border-color: #f2cb79;
  background: linear-gradient(135deg, #a6511f, #8c683e);
}

.nav-button:active {
  transform: translateY(-1px);
}

.map-container {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.map-iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Mensagem final */
.message {
  text-align: center;
  margin-top: 60px;
}

.message h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #f2cb79;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

.hidden {
  display: none;
}

/* Rodapé */
footer {
  background: rgba(64, 9, 4, 0.8);
  padding: 60px 0 40px;
  text-align: center;
  border-top: 2px solid rgba(191, 115, 21, 0.3);
  /* margin-top: 100px; */
}

footer p {
  color: #f2cb79;
  font-size: 1rem;
  opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
  /* Header responsivo */
  .logo {
    font-size: 1.5rem;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero section */
  .hero-title {
    font-size: 2.5rem;
  }

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

  .countdown {
    gap: 15px;
  }

  .time-block {
    padding: 20px 15px;
    min-width: 100px;
  }

  .number {
    font-size: 2.5rem;
  }

  .label {
    font-size: 0.8rem;
  }

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

  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  main section {
    padding: 60px 0;
  }

  .navigation-buttons {
    gap: 10px;
  }

  .nav-button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .time-block {
    padding: 15px 10px;
    min-width: 80px;
  }

  .number {
    font-size: 2rem;
  }

  .label {
    font-size: 0.7rem;
  }

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

  .nav-button {
    padding: 8px 15px;
    font-size: 0.7rem;
  }
}

/* Animações personalizadas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}
