/* ============================================================
   RESPONSIVE.CSS — VERSÃO FINAL CONSOLIDADA (SAFE)
   Breakpoint principal: até 768px
   ============================================================ */

@media screen and (max-width: 768px) {

  /* ============================================================
     1. AJUSTES GERAIS
     ============================================================ */

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* ============================================================
     2. CONTAINERS PRINCIPAIS
     ============================================================ */

  .container {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    margin: 0 auto;
    display: block;
  }

  main {
    width: 100%;
    margin: 0 auto;
  }

  /* ============================================================
     3. HERO / BANNER (REDUÇÃO DE ESPAÇOS)
     ============================================================ */

  .hero {
    position: relative;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
  }

  .hero-img {
    width: 100%;
    height: 200px; /* banner mais compacto */
    object-fit: cover;
    position: static;
  }

  .hero-text {
    position: static;
    transform: none;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    background: #000;
    text-align: center;
  }

  .hero-text .btn,
  .hero-text a {
    margin-top: 10px;
    display: inline-block;
  }

  header {
    margin-bottom: 0 !important;
  }

  /* ============================================================
     4. CONTEÚDO / POSTS / EVENTOS
     ============================================================ */

  .content {
    width: 100%;
    float: none;
  }

  /* Garante que seções de eventos não fiquem escondidas */
  .posts,
  .events-section,
  .events-container,
  .cards,
  .event-cards {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .post-card,
  .event-card {
    width: 100%;
    margin-bottom: 24px;
  }

  /* Texto "EVENTOS NACIONAIS E INTERNACIONAIS" */
  .events-title,
  .events-text,
  .local-video h2,
  .local-video p {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 20px 0 10px;
    text-align: center;
  }

  /* ============================================================
     5. SIDEBAR + VÍDEOS
     ============================================================ */

  /* Neutraliza qualquer absolute/fixed no mobile */
  .sidebar,
  .youtube-sidebar {
    position: static !important;
    width: 100% !important;
    margin: 32px 0 0 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
  }

  .local-video {
    width: 100%;
    margin-bottom: 32px;
  }

  .local-video video {
    width: 100%;
    height: auto;
  }

  /* ============================================================
     6. CONTADOR DE VISITANTES
     ============================================================ */

  .visitors-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 32px;
  }

  .visitors-box {
    text-align: center;
  }

  .visitors-box img {
    max-width: 100%;
    height: auto;
  }

  /* ============================================================
     7. MENU / NAVEGAÇÃO
     ============================================================ */

  .main-menu ul {
    flex-direction: column;
    height: auto;
  }

  .main-menu ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #333;
  }

  .main-menu ul li:last-child {
    border-bottom: none;
  }

} /* ===== FIM DO MOBILE ===== */

@media (max-width: 768px) {

  header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
  }

  .hero {
    min-height: auto !important;
  }

  .hero-img {
    height: 180px !important;
  }

}

@media (max-width: 768px) {

  .events-section,
  .events-container,
  .events-wrapper {
    position: static !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

}

@media (max-width: 768px) {

  .events-title,
  .events-text {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

}
