/* ===========================================================
   BASE / RESET LEVE
   =========================================================== */
:root {
  --ufpa-azul: #1a355e;
  --ufpa-azul-escuro: #142846;
  --texto: #444;
  --texto-suave: #666;
  --bg: #f2f2f2;
  --borda: #e5e5e5;
}

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Trebuchet MS", sans-serif;
}

/* ===========================================================
   CONTEÚDO PRINCIPAL
   =========================================================== */
.item-page {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 80px;
  text-align: center;
}

/* ===========================================================
   LAYOUT INSTITUCIONAL
   =========================================================== */
.landing-ufpa {
  width: min(920px, 100%);
  margin-inline: auto;
  animation: fadeIn .4s ease-out;
}

.landing-ufpa__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--borda);
}

.landing-ufpa__logo {
  display: block;
  width: 72px;
  height: auto;
  object-fit: contain;
}

.landing-ufpa__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.landing-ufpa__sigla {
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ufpa-azul-escuro);
  text-transform: uppercase;
  font-size: .95rem;
}

.landing-ufpa__evento {
  font-weight: 800;
  color: var(--ufpa-azul);
  font-size: 1.4rem;
}

/* ===========================================================
   CONTEÚDO / TEXTO
   =========================================================== */
.landing-ufpa__content h1 {
  color: var(--ufpa-azul);
  font-size: 2rem;
  margin: 22px 0 10px;
}

.landing-ufpa__content p {
  margin: 0 auto 18px;
  max-width: 720px;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

/* ===========================================================
   BOTÕES / AÇÕES
   =========================================================== */
.landing-ufpa__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.landing-ufpa__btn,
.landing-ufpa__btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 180px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  cursor: pointer;
}

/* Botão cheio */
.landing-ufpa__btn {
  background: var(--ufpa-azul);
  color: #fff;
  border: 2px solid var(--ufpa-azul);
}

/* Botão contornado */
.landing-ufpa__btn--outline {
  background: transparent;
  color: var(--ufpa-azul);
  border: 2px solid var(--ufpa-azul);
  backdrop-filter: saturate(120%);
}

/* Estados */
.landing-ufpa__btn:hover,
.landing-ufpa__btn--outline:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.landing-ufpa__btn:active,
.landing-ufpa__btn--outline:active {
  transform: translateY(0);
  filter: brightness(.98);
}

.landing-ufpa__btn:focus-visible,
.landing-ufpa__btn--outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,53,94,.25);
}

.landing-ufpa__btn[aria-disabled="true"],
.landing-ufpa__btn--outline[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
  cursor: not-allowed;
}

/* Mobile: botões 100% */
@media (max-width: 560px) {
  .landing-ufpa__btn,
  .landing-ufpa__btn--outline {
    width: 100%;
    max-width: 320px;
    min-width: unset;
  }
}

/* ===========================================================
   RODAPÉ
   =========================================================== */
.landing-ufpa__footer {
  width: 100%;
  text-align: center;
  font-size: .9rem;
  color: #999;
  margin-top: 32px;
}

/* ===========================================================
   LOGOS ADICIONAIS (UFPA + MERCEDÁRIOS)
   =========================================================== */
.landing-ufpa__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 4px;
}

.landing-ufpa__logo-mercedarios {
  width: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
}

@media (max-width: 560px) {
  .landing-ufpa__logos {
    flex-direction: column;
    gap: 10px;
  }
  .landing-ufpa__logo,
  .landing-ufpa__logo-mercedarios {
    width: 64px;
  }
}

/* ===========================================================
   TOPO INSTITUCIONAL
   =========================================================== */
.topo-cihclb {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 1030;
}

.topo-cihclb__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topo-cihclb__brand img {
  height: 64px;
  width: auto;
  display: block;
}

.topo-cihclb__title {
  text-align: center;
  line-height: 1.2;
  padding: 4px 8px;
}

.topo-cihclb__title .linha1 {
  display: block;
  font-weight: 800;
  font-size: 1.6rem;
  color: #1e3a8a;
}

.topo-cihclb__title .linha2 {
  display: block;
  font-size: .95rem;
  color: #475569;
}

/* Responsivo do topo */
@media (max-width: 720px) {
  .topo-cihclb__inner { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .topo-cihclb__brand img { height: 48px; }
  .topo-cihclb__title { order: 3; margin-top: 4px; flex: 1 1 100%; }
  .topo-cihclb__title .linha1 { font-size: 1.25rem; }
  .topo-cihclb__title .linha2 { font-size: .85rem; }
}

/* ===========================================================
   HERO / BANNER PRINCIPAL
   =========================================================== */
.hero-cihclb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}

.hero-cihclb .hero-img {
  width: 100%;
  height: clamp(260px, 36vw, 460px);
  object-fit: cover;
  display: block;
}

.hero-cihclb .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  background: linear-gradient(180deg, rgba(8,21,64,.35), rgba(8,21,64,.55));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.hero-cihclb h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 .25rem;
}

.hero-cihclb .hero-meta {
  opacity: .95;
  font-weight: 600;
}

/* Hero full-bleed (preenche toda a largura da tela) */
.moduletable.full-bleed,
.full-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.full-bleed .hero-cihclb {
  border-radius: 0;
}

.full-bleed .hero-cihclb .hero-img {
  height: clamp(260px, 36vw, 460px);
  object-fit: cover;
}

/* Mobile: hero ajustado */
@media (max-width: 768px) {
  .hero-cihclb .hero-img {
    height: clamp(200px, 40vw, 360px);
  }
  .hero-cihclb .hero-overlay h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
  .hero-cihclb .hero-overlay p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }
}

/* ===========================================================
   ACESSIBILIDADE E ANIMAÇÃO
   =========================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ===== Botão modo escuro elegante ===== */
.theme-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  /* reset */
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(26, 53, 94, 0.25);
  background-color: #ffffffcc;
  cursor: pointer;

  /* centralização do ícone */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* esconde qualquer texto interno */
  font-size: 0;
  line-height: 0;

  /* efeitos */
  backdrop-filter: blur(4px);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.theme-toggle:hover {
  background-color: #f1f5f9;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Ícone via pseudo-elemento */
.theme-toggle::before {
  content: '🌙';
  font-size: 1.2rem;   /* controla o tamanho do ícone */
  line-height: 1;
}

body.tema-escuro .theme-toggle {
  background-color: #1a355ecc;
  border-color: rgba(255,255,255,.25);
}

body.tema-escuro .theme-toggle:hover {
  background-color: #223d6a;
}

body.tema-escuro .theme-toggle::before {
  content: '☀️';
}

/* Responsivo */
@media (max-width: 560px){
  .theme-toggle {
    width: 36px; height: 36px;
    top: 10px; left: 10px;
  }
  .theme-toggle::before { font-size: 1rem; }
}

body.site.tema-escuro {
  --bg:#0b1220;
  --texto:#e5e7eb;
  --texto-suave:#cbd5e1;
  --borda:#1f2937;
  background:var(--bg);
  color:var(--texto);
}

/* Cassiopeia: barra superior fixa (menu azul) */
.container-header {
  position: sticky;
  justify-content: center;
  top: 0;
  z-index: 1200;            /* acima do banner/hero */
  background: inherit;      /* garante fundo sólido */
}

/* Centraliza o menu principal */
.container-header .mod-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;                /* espaçamento entre links */
  flex-wrap: wrap;
}

/* (opcional) sombreamento quando houver rolagem */
body.has-scroll .container-header {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* === Cor dos links do menu principal === */
.container-header .mod-menu a,
.container-header .mod-menu span {
  color: #b20000 !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Efeito de sublinhado animado no hover */
.container-header .mod-menu a {
  position: relative;
  color: #b20000 !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.container-header .mod-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b20000;
  transition: width 0.25s ease;
}

.container-header .mod-menu a:hover::after {
  width: 100%;
}

.container-header .mod-menu a:hover {
  color: #7a0000 !important;
}

:root{ --navH: 56px; }

/* botão hambúrguer (esconde no desktop) */
.menu-toggle{
  display:none;
  position: sticky;          /* gruda junto com o header */
  top: 8px;
  margin-left: 8px;
  z-index: 1300;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  align-items:center; justify-content:center;
  gap:4px; cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-toggle span{
  display:block; width:20px; height:2px; background:#b20000; transition:transform .2s ease, opacity .2s ease;
}
.menu-toggle:hover{ box-shadow:0 2px 8px rgba(0,0,0,.12); }

/* estado “X” quando aberto */
body.is-menu-open .menu-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.is-menu-open .menu-toggle span:nth-child(2){ opacity:0; }
body.is-menu-open .menu-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* MOBILE: recolhe menu e mostra o botão */
@media (max-width: 992px){
  .menu-toggle{ display:inline-flex; }

  /* esconde o menu por padrão */
  .container-header .mod-menu{
    display:none;
  }

  /* quando aberto: vira um dropdown abaixo do header */
  body.is-menu-open .container-header .mod-menu{
    display:flex;
    flex-direction:column;
    position:absolute;
    top: var(--navH);
    left: 0; right: 0;
    padding: 12px 16px;
    gap: 12px;
    background:#fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    z-index: 1290;
  }

  /* links maiores para toque */
  .container-header .mod-menu a{
    padding:10px 2px;
  }
}

/* garante que o header fique acima do menu */
.container-header{ z-index: 1200; }

:root{ --navH: 56px; }

/* Botão hambúrguer */
.menu-toggle{
  display:none;
  position: fixed;           /* fica sempre visível */
  top: 8px; left: 8px;
  z-index: 1600;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  align-items:center; justify-content:center;
  gap:4px; cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-toggle span{
  display:block; width:20px; height:2px; background:#b20000;
  transition:transform .2s ease, opacity .2s ease;
}
.menu-toggle:hover{ box-shadow:0 2px 8px rgba(0,0,0,.12); }
body.is-menu-open .menu-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.is-menu-open .menu-toggle span:nth-child(2){ opacity:0; }
body.is-menu-open .menu-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Backdrop */
.offcanvas-backdrop{
  position: fixed; inset:0;
  background: rgba(0,0,0,.35);
  opacity:0; pointer-events:none;
  transition: opacity .3s ease;
  z-index: 1500;
}
body.is-menu-open .offcanvas-backdrop{
  opacity:1; pointer-events:auto;
}

/* HEADER acima de tudo */
.container-header{
  position: sticky; top:0; z-index: 1550;
  background:#fff;
}

/* ===== Off-canvas no MOBILE ===== */
/**@media (max-width: 992px){

  /* mostra o botão no mobile */
  /*.menu-toggle{ display:inline-flex; }

  /* transforma o menu em painel lateral */
 /* .container-header .mod-menu{
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: min(78vw, 340px);
    padding: 16px;
    display: flex; flex-direction: column; gap: 10px;

    background:#fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);

    transform: translateX(-100%);
    transition: transform .30s ease;
    z-index: 1550;      /* acima do backdrop, abaixo do botão */
  /*  overflow-y: auto;
  }
  body.is-menu-open .container-header .mod-menu{
    transform: translateX(0);
  }

  /* links mais “tocáveis” */
 /* .container-header .mod-menu a{
    padding: 10px 4px;
    color: #b20000 !important;
    font-weight: 600;
    text-decoration: none;
  }

  /* evita que a página role quando o menu estiver aberto */
 /* body.is-menu-open{ overflow: hidden; }
}

/* ===== Desktop normal ===== */
/*@media (min-width: 993px){
  .container-header .mod-menu{
    position: static; height:auto; width:auto;
    transform: none; box-shadow: none; overflow: visible;
    display: flex; flex-direction: row; gap: 18px; background: transparent; padding: 0;
  }
}

/* ===== Off-canvas refinado ===== */
@media (max-width: 992px) {

  .menu-toggle {
    display: inline-flex;
    background: #fff;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1600;
    transition: all .2s ease;
  }
  .menu-toggle:hover {
    transform: scale(1.05);
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #b20000;
    margin: 4px 0;
    border-radius: 2px;
    transition: all .25s ease;
  }
  body.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  body.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* painel lateral */
  .container-header .mod-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: #fff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,.1,.2,1);
    z-index: 1550;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  body.is-menu-open .container-header .mod-menu {
    transform: translateX(0);
  }

  /* links */
  .container-header .mod-menu a {
    font-size: 1.05rem;
    color: #b20000 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color .2s ease, transform .15s ease;
  }
  .container-header .mod-menu a:hover {
    color: #000;
    transform: translateX(4px);
  }

  /* backdrop */
  .offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1500;
  }
  body.is-menu-open .offcanvas-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* evita scroll do fundo */
  body.is-menu-open {
    overflow: hidden;
  }
}
/* ==== Rodapé institucional integrado, sem caixa ==== */
.footer-cihclb {
  background: transparent;         /* remove bloco branco */
  color: #333;
  text-align: center;
  padding: 36px 16px;
  border-top: 2px solid var(--ufpa-azul);
  display: flex;
  justify-content: center;
}

.footer-cihclb__inner {
  max-width: 900px;
  width: 100%;
}

.footer-cihclb__brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ufpa-azul);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.footer-cihclb__addr {
  font-style: normal;
  line-height: 1.6;
  font-size: 0.97rem;
  color: #555;
  margin: 0 auto;
}

/* ---- Responsivo ---- */
@media (max-width: 560px) {
  .footer-cihclb {
    padding: 28px 10px;
  }
  .footer-cihclb__brand {
    font-size: 1rem;
  }
  .footer-cihclb__addr {
    font-size: 0.92rem;
  }
}

/* ---- Modo escuro ---- */
body.site.tema-escuro .footer-cihclb {
  background: transparent;
  color: #e5e7eb;
  border-top-color: #1e3a8a;
}
body.site.tema-escuro .footer-cihclb__brand {
  color: #dbeafe;
}
body.site.tema-escuro .footer-cihclb__addr {
  color: #cbd5e1;
}

/* ==== Rodapé institucional UFPA (fundo azul + texto branco) ==== */
.footer-cihclb {
  color: #ffffff;
  text-align: center;
  padding: 36px 16px;
  display: flex;
  justify-content: center;
}

.footer-cihclb__inner {
  max-width: 900px;
  width: 100%;
}

.footer-cihclb__brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.footer-cihclb__addr {
  font-style: normal;
  line-height: 1.6;
  font-size: 0.97rem;
  color: #e5e7eb;
  margin: 0 auto;
}

/* ---- Responsivo ---- */
@media (max-width: 560px) {
  .footer-cihclb {
    padding: 28px 10px;
  }
  .footer-cihclb__brand {
    font-size: 1rem;
  }
  .footer-cihclb__addr {
    font-size: 0.92rem;
  }
}

/* ---- Modo escuro ---- */
body.site.tema-escuro .footer-cihclb {
  background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
  border-top-color: #1e3a8a;
}
body.site.tema-escuro .footer-cihclb__brand {
  color: #ffffff;
}
body.site.tema-escuro .footer-cihclb__addr {
  color: #dbeafe;
}

.footer .grid-child {
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 21.5em;
}

/* ==== Efeito Ken Burns no banner ==== */
.hero--kenburns .hero-img{
  will-change: transform;
  transform-origin: center;
  animation: kenburns 18s ease-in-out infinite alternate;
}

@keyframes kenburns{
  0%   { transform: scale(1.05) translate3d(-1%, -1%, 0); }
  100% { transform: scale(1.15) translate3d(1%, 1%, 0); }
}

/* respeita preferências do usuário */
@media (prefers-reduced-motion: reduce){
  .hero--kenburns .hero-img{ animation:none; transform:none; }
}


/* Parallax: a imagem move um pouquinho no scroll */
.hero--parallax .hero-img{
  will-change: transform;
  transition: transform .08s linear;
}

/* empilha as imagens */
.hero--fade{ position:relative; }
.hero--fade .slide{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:0; animation: fadeCycle 18s infinite;
}
.hero--fade .slide:nth-child(1){ animation-delay: 0s; }
.hero--fade .slide:nth-child(2){ animation-delay: 6s; }
.hero--fade .slide:nth-child(3){ animation-delay:12s; }

@keyframes fadeCycle{
  0%{opacity:0} 6%{opacity:1} 28%{opacity:1} 34%{opacity:0} 100%{opacity:0}
}

/* reduz movimento se preferido */
@media (prefers-reduced-motion: reduce){
  .hero--fade .slide{ animation:none; opacity:1; }
  .hero--fade .slide:not(:first-child){ display:none; }
}

/* ==== Brilho diagonal + textura suave no banner ==== */
.hero-cihclb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(0,0,0,.18), transparent 60%);
  mix-blend-mode: soft-light;
  z-index: 1;
}

/* Textura de ruído (para dar vida ao fundo sem atrapalhar) */
.hero-cihclb::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.035"/></svg>');
  background-size: 140px 140px;
  z-index: 1;
}

/* Logos laterais equilibradas */
.topo-cihclb__logos-esq,
.topo-cihclb__logos-dir {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topo-cihclb__brand img {
  height: 64px;
  width: auto;
  display: block;
  transition: transform .2s ease;
}

.topo-cihclb__brand img:hover {
  transform: scale(1.05);
}

/* Reajuste do grid central */
.topo-cihclb__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.topo-cihclb__title {
  text-align: center;
  flex: 1 1 100%;
  order: 2;
  margin-top: 4px;
}

/* Responsivo */
@media (min-width: 768px) {
  .topo-cihclb__title {
    flex: 0 1 auto;
    order: 0;
    margin-top: 0;
  }
  .topo-cihclb__inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .topo-cihclb__brand img {
    height: 52px;
  }
}

.topo-cihclb__apoio {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.topo-cihclb__apoio img {
  height: 36px;
  width: auto;
  opacity: 0.9;
  transition: opacity .2s ease;
}
.topo-cihclb__apoio img:hover { opacity: 1; }

.topo-cihclb__title .linha3 {
  display: block;
  font-size: 0.9rem;
  color: #475569;
  font-style: italic;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .topo-cihclb__title .linha3 {
    font-size: 0.8rem;
  }
}

/* ====== Página Comissões ====== */
.comissoes-cihclb {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: system-ui, sans-serif;
  color: #333;
}

.comissoes-cihclb__header h1 {
  text-align: center;
  color: var(--ufpa-azul);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 24px;
}

.comissao__titulo {
  color: var(--ufpa-azul-escuro);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  text-align: center;
}

.comissao__org {
  color: var(--ufpa-azul);
  font-weight: 600;
}

.comissao__lista {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;              /* duas colunas no desktop */
  column-gap: 40px;
}

.comissao__lista li {
  padding: 6px 0;
  break-inside: avoid;
  font-size: 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--ufpa-azul);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge--pres {
  background: #b20000;
}

/* Responsivo */
@media (max-width: 700px) {
  .comissao__lista {
    columns: 1;
  }
  .comissoes-cihclb {
    padding: 30px 14px;
  }
}

/* Modo escuro */
body.site.tema-escuro .comissoes-cihclb { color: #e5e7eb; }
body.site.tema-escuro .comissao__titulo { color: #dbeafe; }
body.site.tema-escuro .badge { background: #1e3a8a; }
body.site.tema-escuro .badge--pres { background: #b91c1c; }

/* ====== E-mail institucional no rodapé ====== */
.footer-cihclb__email {
  margin-top: 10px;
  font-size: 0.95rem;
}

.footer-cihclb__email a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-cihclb__email a:hover {
  color: #dbeafe;
  text-decoration: underline;
}

/* Modo claro */
body.site:not(.tema-escuro) .footer-cihclb__email a {
  color: #1a355e;
}

body.site:not(.tema-escuro) .footer-cihclb__email a:hover {
  color: #b20000;
}

/* ===== Rodapé institucional com rótulos brancos ===== */
.footer-cihclb {
  
  color: #ffffff;
  text-align: center;
  padding: 36px 16px;
  display: flex;
  justify-content: center;
}

.footer-cihclb__inner {
  max-width: 900px;
  width: 100%;
}

.footer-cihclb__brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-cihclb__info {
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-cihclb__info strong {
  display: block;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.footer-cihclb__info a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.footer-cihclb__info a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 560px) {
  .footer-cihclb {
    padding: 28px 10px;
  }
  .footer-cihclb__brand {
    font-size: 1rem;
  }
  .footer-cihclb__info {
    font-size: 0.9rem;
  }
}

/* Modo escuro – mantém o mesmo visual */
body.site.tema-escuro .footer-cihclb {
  background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
  border-top-color: #1e3a8a;
}

/* ============= MOBILE PACK – Artigos /o-congresso e afins ============= */

/* 1) Tipografia fluida (evita títulos gigantes no celular) */
.item-page h1 { font-size: clamp(1.4rem, 4.8vw, 2.1rem); }
.item-page h2 { font-size: clamp(1.2rem, 4.2vw, 1.7rem); }
.item-page h3 { font-size: clamp(1.05rem, 3.8vw, 1.35rem); }
.item-page p, .item-page li { font-size: clamp(.98rem, 3.2vw, 1.05rem); line-height: 1.55; }

/* 2) Largura e respiro do artigo */
.item-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

/* 3) Imagens sempre responsivas */
.item-page img,
.item-page figure img {
  max-width: 100%;
  height: auto !important;
}

/* 4) Figuras e legendas bonitas */
.item-page figure { margin: 16px auto; text-align: center; }
.item-page figure figcaption {
  font-size: .9rem; color: #666; margin-top: 6px;
}

/* 5) Alinhamentos “float” do Joomla/Bootstrap resolvidos no mobile */
@media (max-width: 768px){
  .item-page .pull-left, .item-page .pull-right,
  .item-page .float-start, .item-page .float-end,
  .item-page img[style*="float:left"], .item-page img[style*="float:right"]{
    float: none !important;
    display: block !important;
    margin: 12px auto !important;
  }
}

/* 6) Tabelas roláveis (não estouram a tela) */
.item-page table { width: 100%; border-collapse: collapse; }
.item-page table th, .item-page table td { padding: 8px; border: 1px solid #e5e7eb; }
.item-page .table-responsive { overflow-x: auto; }
.item-page .table-responsive table { min-width: 640px; }

@media (max-width: 768px){
  /* envelopa automaticamente tabelas comuns */
  .item-page table { display: block; width: 100%; overflow-x: auto; }
}

/* 7) Listas com duas colunas viram uma no mobile (se usadas) */
@media (max-width: 700px){
  .comissao__lista { columns: 1 !important; }
}

/* 8) Blocos de conteúdo com grid que “quebra” bem no celular */
.grid-2, .grid-3 {
  display: grid; gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px){
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* 9) Hero/banner já compatível – só garante altura confortável no mobile */
@media (max-width: 768px){
  .hero-cihclb .hero-img { height: clamp(200px, 42vw, 360px); }
  .hero-cihclb .hero-overlay h2 { font-size: clamp(1.1rem, 4.2vw, 1.6rem); }
  .hero-cihclb .hero-overlay p { font-size: clamp(.9rem, 3.4vw, 1rem); }
}

/* 10) Topo institucional com várias logos – empilha e centraliza no mobile */
@media (max-width: 820px){
  .topo-cihclb__inner{ flex-wrap: wrap; justify-content: center; gap: 10px; }
  .topo-cihclb__title{ order: 3; flex: 1 1 100%; text-align: center; }
  .topo-cihclb__logos-esq, .topo-cihclb__logos-dir{
    order: 1; display: flex; gap: 10px; justify-content: center; flex: 1 1 100%;
  }
  .topo-cihclb__brand img{ height: 50px; }
}

/* 11) Vídeos/iframes responsivos */
.embed-responsive {
  position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
}
.embed-responsive iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0;
}

/* 12) Ajuste fino no cabeçalho fixo + off-canvas (já implementado) */
@media (max-width: 992px){
  .container-header .mod-menu a{ padding: 10px 2px; }
}
