/* ============================
   Navbar
============================ */
.navbar {
  background-color: transparent !important;
  color: rgb(94, 49, 94);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: none;
}

.navbar.bg-transparent {
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: nowrap;
}

.logo {
  color: #ff9800;
}

.navbar .nav-item {
  list-style: none;
}

.navbar .nav-link {
  color: rgb(189, 180, 180) !important;
  font-weight: 700;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar .nav-link:hover {
  color: #ff9800 !important;
}

.navbar .nav-link i {
  color: inherit;
}

/* Esconde o botão de fechar no desktop */
.close-menu-btn {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.navbar-overlay.show {
  display: block;
}

.close-menu-btn {
  font-size: 2rem;
  color: #fff;
  text-align: right;
  padding: 0.5rem 1rem;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

/* Estilização geral para os cards */
.card-horizontal {
  transition: transform 0.3s ease;
  border: none;
  background-color: #fff;
  border-radius: 12px;
}

.card-horizontal:hover {
  transform: translateY(-5px);
}

/* Ícones responsivos */
.card-horizontal i {
  font-size: 1.8rem;
}

/* Melhoria de padding em telas pequenas */
@media (max-width: 576px) {
  .card-horizontal {
    padding: 1rem;
    text-align: center;
  }

  .card-horizontal i {
    margin-bottom: 0.5rem;
  }
}

/* Navbar mobile */
@media (max-width: 991.98px) {
  .navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  
  .navbar-overlay.show {
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 60%;
    max-width: 150px;
    max-height: 90vh; /* altura quase total da tela */
    height: auto; /* permite expandir conforme o conteúdo */
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    margin-top: 0;
    border-radius:10px;  
  }

  .navbar-collapse.show {
    transform: translateX(0);
  }

  .close-menu-btn {
    display: block;
    text-align: right;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .navbar-nav,
  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 0;
    padding-left: 1rem; /* adiciona espaço da borda esquerda */
    border-bottom: 0.2px solid #eee;
    color: #111 !important;
    text-align: left;
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;  /* remove o comportamento 'absolute' padrão do Bootstrap */
    float: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem; /* desloca levemente à esquerda */
    background-color: #fff; /* para garantir legibilidade */
    border: none;
    box-shadow: none;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
      padding-left: 1.5rem;
    }
  
  .dropdown-menu.showing {
    max-height: 300px; /* ou maior, conforme conteúdo */
  }

  .navbar-toggler {
    z-index: 1051;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    margin-right: auto;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 152, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* Sublinks (submenus) */
.sub-nav {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
  display: none;
}

.nav-item:hover .sub-nav,
.nav-item:focus-within .sub-nav {
  display: block;
}

.sub-nav .nav-link {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #555 !important;
  border-bottom: none;
}

.has-submenu.submenu-open .sub-nav {
    display: block;
  }

/* ============================
   Capa e topo
============================ */

/* Estética extra (opcional): */
  .navbar.scrolled {
    background-color: #121212cc !important;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
.topo {
  background-color: whitesmoke;
  color: black;
  padding: 2rem 0;
  text-align: center;
}

.topo-capa {
  position: relative;
  background-image: url('/imagens/front/historico-foto.webp');
  background-size: cover;
  background-position: center;
  height: 85vh;
  min-height: 320px;
  color: white;
}

.topo-capa .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.topo-capa .conteudo-capa {
  position: relative;
  z-index: 2;
}

/* ============================
   Post Principal
============================ */
.texto-primeiro-post {
  background-color: white;
}

.img-post {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.imagem-principal {
  width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
}

.destaque {
  background-color: #f8f9fa;
  padding: 1rem;
  border-left: 4px solid #3498db;
  margin: 1rem 0;
}

/* ============================
   Related Posts (Cards)
============================ */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 1rem;
}

.post-card {
  display: flex;
  background: #fff;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.post-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.card-content {
  padding: 12px;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #c40000;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.875rem;
  color: #555;
}

.bullet {
  color: red;
  margin-right: 6px;
}

/* Newsletter */
.newsletter-section {
  background-color: #f8f9fa;
  padding: 3rem 1rem;
  margin-top: 4rem;
  border-radius: 10px;
  text-align: center;
}

.newsletter-section input[type="email"] {
  max-width: 400px;
  margin: 0 auto;
}

.btn-primary {
  background-color: #4e2a84;
  border: none;
}

.btn-primary:hover {
  background-color: #3b2369;
}

.creditos {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 10px;
}

/* Grid responsiva */
@media (min-width: 992px) {
    .navbar-collapse {
      position: static;
      background-color: transparent;
      padding: 0;
      border-radius: 0;
    }
  }


@media (min-width: 600px) {
  .related-posts {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .post-card {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (min-width: 900px) {
  .post-card {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}

/* Card Horizontal para mobile */
@media (max-width: 767.98px) {
  .card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .card-horizontal img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .card-horizontal .card-body {
    padding: 0;
  }

  .card-horizontal h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .card-horizontal p {
    font-size: 0.875rem;
    margin-bottom: 0;
  }
}

.card-img-top {
    transition: transform 0.3s ease;
  }
  .card-img-top:hover {
    transform: scale(1.03);
  }

/* ============================
   Rodapé
============================ */
.rodape {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

footer a:hover i {
  color: #f3c1e0; /* ou qualquer tom pastel da sua paleta */
  transition: color 0.3s;
}


/* ============================
   Utilitários
============================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}