html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffde59;
  color: #222;
}

* {
  box-sizing: border-box;
}

/* HEADER */
header {
  background: #ff3131;
  color: #ffde59;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 🔥 joga menu pra direita */
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

header h1 {
  font-weight: 700;
  font-size: 24px;
}

/* MENU */
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 🔥 direita */
  gap: 25px;
}

nav a,
.dropdown-btn {
  font-size: 18px; /* 🔥 maior */
  color: #ffde59;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

/* BOTÃO MOBILE */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #ffde59;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 120%;
  right: 0;
  background: #ff3131;
  border-radius: 10px;
  min-width: 200px;
  display: none;
}

.dropdown-content.ativo {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 12px;
  color: #ffde59;
  text-decoration: none;
  font-size: 15px;
}

.dropdown-content a:hover {
  background: #e52b2b;
}

/* SEÇÕES */
.secao {
  display: flex;
  gap: 40px;
  padding: 60px;
  margin: 30px auto;
  width: 90%;
  background: #e5c33c;
  border-radius: 20px;
}

.imagem, .texto {
  flex: 1;
}

.imagem img {
  width: 100%;
  border-radius: 16px;
}

/* 🔥 TEXTO MAIOR */
.texto h2 {
  font-size: 32px; /* maior */
  margin-bottom: 15px;
}

.texto p {
  font-size: 18px; /* maior */
  line-height: 1.8;
}

.invertido {
  flex-direction: row-reverse;
}

/* FOOTER */
footer {
  background: #ff3131;
  color: #ffde59;
  padding: 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.footer-links a {
  color: #ffde59;
  text-decoration: none;
  font-size: 16px;
}

/* ADMIN */
.admin-area {
  margin-top: 20px;
}

.admin-btn {
  background: #ffde59;
  color: #ff3131;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    background: #ff3131;
    padding: 10px;
    border-radius: 12px;
  }

  nav.ativo {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  nav a,
/* ========================= */
/* ANIMAÇÕES GERAIS */
/* ========================= */

nav a,
.dropdown-btn,
.admin-btn {
  transition: all 0.25s ease;
}

nav a:hover,
.dropdown-btn:hover,
.admin-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}


/* ========================= */
/* DROPDOWN ANIMAÇÃO SUAVE */
/* ========================= */

.dropdown-content {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
}

.dropdown-content.ativo {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


/* ========================= */
/* CORREÇÃO BUG RETÂNGULO */
/* ========================= */

header {
  overflow: visible; /* evita cortar dropdown */
}

.dropdown {
  overflow: visible;
}


/* ========================= */
/* MELHORAR CLIQUE */
/* ========================= */

.dropdown-btn:active,
nav a:active {
  transform: scale(0.96);
}


/* ========================= */
/* LOGIN (RETÂNGULO VERMELHO) */
/* ========================= */

.login-container {
  background: #ff3131;
  padding: 30px;
  border-radius: 15px;
  max-width: 350px;
  margin: 80px auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
}

.login-container button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #ffde59;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.login-container button:hover {
  transform: scale(1.05);
}
/* 🔥 DROPDOWN FICA NA FRENTE DE TUDO */
.dropdown-content {
  z-index: 9999;
}

/* 🔥 GARANTE QUE O HEADER NÃO CORTE */
header {
  overflow: visible;
}

/* 🔥 IMPORTANTE NO MOBILE */
@media (max-width: 768px) {
  .dropdown {
    position: relative;
    z-index: 9999;
  }
}
.imagem img {
  width: 100%;
  height: auto;
  display: block;
}
/* ========================= */
/* IMAGENS GRANDES E FIXAS */
/* ========================= */

.imagem {
  width: 100%;
  height: 350px; /* 🔥 tamanho padrão desktop */
  overflow: hidden;
  border-radius: 16px;
}

.imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 NÃO DISTORCE */
  display: block;
}

/* ========================= */
/* GARANTE QUE NÃO QUEBRE */
/* ========================= */

.secao {
  align-items: center;
}

/* ========================= */
/* MOBILE CORRIGIDO */
/* ========================= */

@media (max-width: 768px) {

  .imagem {
    width: 100%;
    height: 220px; /* 🔥 tamanho fixo no celular */
  }

  .imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .secao {
    flex-direction: column;
    gap: 20px;
  }

}
/* ========================= */
/* FORÇAR IMAGENS GRANDES (PC) */
/* ========================= */

.imagem {
  height: 480px !important; /* 🔥 aumenta vertical no PC */
}

.imagem img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important; /* 🔥 não distorce */
}


/* ========================= */
/* MOBILE CONTINUA NORMAL */
/* ========================= */

@media (max-width: 768px) {
  .imagem {
    height: 220px !important; /* 🔥 mantém menor no celular */
  }
}
/* ========================= */
/* CORREÇÃO DROPDOWN MOBILE */
/* ========================= */

@media (max-width: 768px) {

  /* garante que o header não corte */
  header {
    overflow: visible !important;
  }

  /* cada dropdown vira referência */
  .dropdown {
    position: relative;
    z-index: 1000;
  }

  /* 🔥 CAIXA DO DROPDOWN (FUNDO VERMELHO NA FRENTE DE TUDO) */
  .dropdown-content {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;

    background: #ff3131 !important;

    z-index: 9999 !important; /* 🔥 fica na frente de TUDO */

    border-radius: 10px;
  }

  /* 🔥 LINKS ACIMA DA CAIXA */
  .dropdown-content a {
    position: relative;
    z-index: 10000 !important;
  }

}
/* 🔥 SOMENTE DROPDOWN DO INSTAGRAM */

#dropdownMenu {
  background: #ff3131 !important;
  padding: 8px 0 !important;
  border-radius: 10px !important;
}

#dropdownMenu a {
  background: #ff3131 !important;
  display: block !important;
}

#dropdownMenu a:hover {
  background: #e52b2b !important;
}
/* ========================= */
/* CORREÇÃO DROPDOWN GERAL */
/* ========================= */

/* garante que não empurra layout */
.dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* deixa alinhado no PC */
nav {
  align-items: center;
}

/* dropdown escondido */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  width: 100%;
}

/* quando abre */
.dropdown.ativo .dropdown-content {
  max-height: 500px; /* 🔥 aumenta (resolve celular) */
}

/* links bonitos */
.dropdown-content a {
  font-size: 14px;
  padding: 6px 0;
}


/* ========================= */
/* CORREÇÃO PC (ALINHAMENTO) */
/* ========================= */

@media (min-width: 769px) {

  nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .dropdown {
    align-items: center; /* 🔥 centraliza no PC */
  }

}


/* ========================= */
/* CORREÇÃO MOBILE (APARECER) */
/* ========================= */

@media (max-width: 768px) {

  .dropdown-content {
    display: flex; /* 🔥 garante que aparece */
    flex-direction: column;
  }

}
/* DROPDOWN VIRA BLOCO NORMAL */
.dropdown {
  display: flex;
  flex-direction: column;
}

/* NÃO pode ser absolute */
.dropdown-content {
  position: static !important;
  width: 100%;
}

/* animação tipo deslizar */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.dropdown.ativo .dropdown-content {
  max-height: 500px;
}
/* ========================= */
/* RESET TOTAL DO DROPDOWN */
/* ========================= */

.dropdown {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* 🔥 centraliza */
}

/* remove comportamento antigo quebrado */
.dropdown-content {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;

  max-height: 0 !important;
  overflow: hidden !important;

  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;

  transition: max-height 0.35s ease !important;
}

/* quando abre */
.dropdown.ativo .dropdown-content {
  max-height: 500px !important;
}

/* links */
.dropdown-content a {
  text-align: center;
  width: 100%;
}


/* ========================= */
/* CENTRALIZAR MENU NO PC */
/* ========================= */

@media (min-width: 769px) {

  nav {
    justify-content: center !important; /* 🔥 CENTRALIZA TUDO */
    gap: 40px;
  }

}


/* ========================= */
/* GARANTIR FUNCIONAMENTO MOBILE */
/* ========================= */

@media (max-width: 768px) {

  nav {
    align-items: center !important;
  }

}
@media (min-width: 769px) {
  nav {
    justify-content: center !important;
  }
}
