/* === Estilos Gerais === */
body {
  background-color: #f8f9fa; /* Cor de fundo clara e neutra */
}

/* === Menu lateral (sidebar) === */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  background-color: #7f0d0d;
  color: #fff;
}

.banner-topo {
  max-height: 200px;
  object-fit: cover;
  width: 100%;
}

.sidebar-logo {
  padding-bottom: 1.5rem;  /* Adiciona espaço entre imagem e links */
  display: flex;
  justify-content: center;
}

.sidebar-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sidebar a {
  width: 100%;              /* ocupa 100% da largura da sidebar */
  box-sizing: border-box;   /* inclui o padding na largura */
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #fff;
}

.sidebar a.active {
  background-color: #003d66;
  font-weight: bold;
}

.sidebar a:hover {
  background-color: #b2b2b2; /* realce em toda a largura */
  color: #000;
}

.offcanvas-body a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-body a:hover {
  text-decoration: underline;
}

.offcanvas-body {
  background-color: #7f0d0d;
  color: white;
  min-height: 100vh;
}

.text-center.small {
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 1rem;
}

.mobileSidebar {
  background-color: #7f0d0d; /* cor de fundo igual ao botão */
  color: white;
}

.mobileSidebar a {
  color: white;
  text-decoration: none;
}

.mobileSidebar a:hover {
  text-decoration: none;
}

.mobileSidebar .offcanvas-body {
  background-color: #7f0d0d;
  color: white;
}

/* === Área de conteúdo principal === */
.content {
  margin-left: 130px; /* Espaço para o menu lateral */
  padding: 1rem 2rem 2rem 1.5rem; /* Espaçamento interno, reduzido à esquerda */
}

/* === Título principal do menu === */
.logo-title {
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  font-size: 1.3rem;
}

.justify {
  text-align: justify;
}

/* === Títulos principais das páginas (ex: 6. Documentos de Apoio) === */
h2 {
  color: #000;
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* === Subtítulos (ex: 6.1, 6.2, 6.3) === */
h3 {
  color: #7f0d0d;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* === Sub-subtítulos (ex: 6.3.1, 6.4.1) === */
h4 {
  color: #7f0d0d;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Parágrafos padrão */
p {
  color: #333;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Listas */
ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Footer dentro da sidebar */
.sidebar-footer {
  font-size: 0.8rem;
  color: #ffffff;
  border-top: 1px solid #ffffff33;
  padding: 1rem;

  line-height: 1.5;
}

.sidebar-footer a {
  color: #ffffff;
  text-decoration: underline;
  background-color: transparent !important; /* cancela qualquer fundo ao passar o rato */
  pointer-events: auto;
}

/* Remove o hover só no footer */
.sidebar-footer a:hover {
  background-color: transparent !important;
  text-decoration: underline;
}

/* === Responsivo (para ecrãs pequenos) === */
/* === Default: Mobile First (xs) === */
.content {
  margin-left: 0;
  padding: 1rem;
}

/* === Small: ≥576px (ainda mobile, mas mais largo) === */
@media (min-width: 576px and (max-width: 992px) and (orientation: portrait)) {
  .content {
    padding: 1rem 1.5rem;
    margin-right: 10px !important;
  }
}

/* === Large: ≥992px e apenas em retrato === */
@media (min-width: 992px) {
  .content {
	margin-left: 270px;
    padding: 2rem 3rem 2rem 2rem;
  }
}