/* ===== Navbar sóbria ===== */

/* Nome do site (marca) — discreto, elegante */
.navbar-brand {
  font-variant: small-caps;
  font-family: "Georgia", serif;     /* pode trocar por system-ui se preferir sem serifa */
  font-weight: 700;
  letter-spacing: .5px;               /* menos espaçado, mais sério */
  font-size: 1.20rem;                 /* destaca sem gritar */
  color: var(--bs-emphasis-color) !important;  /* integra com o tema */
  text-shadow: none;
}

/* Sem efeitos de hover chamativos */
.navbar-brand:hover {
  color: var(--bs-emphasis-color) !important;
  text-shadow: none;
}

/* Modo escuro: usa token do tema, sem cor especial */
[data-bs-theme="dark"] .navbar-brand {
  color: var(--bs-emphasis-color) !important;
}

/* Links do menu mais discretos que a marca */
.navbar .navbar-nav .nav-link {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--bs-body-color);
  opacity: .92;                       /* dá leve recuo visual */
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  color: var(--bs-body-color);
  opacity: 1;                         /* só ganha definição no hover */
  text-decoration: none;
}

/* Estado ativo sutil (sem barra/underline colorida) */
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .show > .nav-link {
  color: var(--bs-body-color);
  opacity: 1;
}

/* ===== Contêiner da intro ===== */
.container.intro {
  display: flex;
  align-items: flex-start;   /* topo, não centro */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* ===== Coluna de texto (esquerda) ===== */
.text-section {
  flex: 1 1 65%;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== Coluna da foto (direita) ===== */
.photo-section {
  flex: 1 1 30%;
  text-align: center;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-section img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== Empilha no mobile com a foto primeiro ===== */
@media (max-width: 800px) {
  .container.intro { flex-direction: column-reverse; }
  .photo-section { margin-bottom: 1rem; }
}

/* ===== Mapa responsivo ===== */
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 1.5rem auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== Lista manual de cursos ===== */
.lista-cursos {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.lista-cursos li {
  margin: 0.4rem 0;
}

.lista-cursos .curso-link {
  text-decoration: none;
  font-weight: 500;
}

.lista-cursos .curso-link::before {
  content: "📘";
  margin-right: 0.5em;
  font-size: 1.05em;
  line-height: 1;
}

/* ===== ÍCONES SOCIAIS ===== */
.home-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: .75rem;
}

.home-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--rb-border, #e5e7eb);
  text-decoration: none;
  background: var(--bs-body-bg);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.home-social img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.home-social a:hover {
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  background: rgba(0,0,0,.04);
}

[data-bs-theme="dark"] .home-social a {
  border-color: rgba(255,255,255,.25);
}

[data-bs-theme="dark"] .home-social a:hover {
  background: rgba(255,255,255,.08);
}

@media (max-width: 800px) {
  .home-social { justify-content: center; }
}

/* ===== CATEGORIAS ===== */
.quarto-category {
  display: inline-block;
  background-color: #f1f3f4;
  color: #333;
  font-size: 0.85em;
  border-radius: 6px;
  padding: 0.25em 0.6em;
  margin-right: 0.3em;
}

/* ===== RODAPÉ (versão ajustada e fina) ===== */
.page-footer {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.5rem !important;
  padding-top: 0.35rem;
  border-top: 1px solid #ddd;
  color: #666;
}

.page-footer strong {
  color: #2c3e50;
}

/* Evita espaço extra em páginas curtas */
body > main.content {
  margin-bottom: 0.4rem !important;
  padding-bottom: 0 !important;
}

/* Tema escuro */
[data-bs-theme="dark"] .page-footer {
  border-top-color: #444;
  color: #bbb;
}

[data-bs-theme="dark"] .page-footer strong {
  color: #ecf0f1;
}

/* Mantém a 1ª linha do rodapé (ano + nome) sem quebra */
.footer-main {
  white-space: nowrap;
}

/* ===== TÍTULOS COM SMALL-CAPS E ÍCONES (HOME) ===== */
.section-lead {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.2rem 0 .4rem;
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--bs-body-color);
  line-height: 1.2;
}

.section-lead .bi {
  font-size: 1.05em;
  transform: translateY(1px);
}

.section-lead + ul,
.section-lead + blockquote,
.section-lead + p {
  margin-top: .25rem;
}