/* =========================
   Reset e box-sizing
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   Corpo / Main
   ========================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #F2F2F2;
}

/* =========================
   Header fixo
   ========================= */
header {
  padding: 0px 0;
  position: fixed;   /* fixa no topo */
  top: 0;
  left: 0;
  width: 100%;
  background: #990033;
  z-index: 1000;
}

.header-container {
  width: 95%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo img {
  height: 60px;
  display: block;
}

nav {
  display: flex;
  gap: 25px;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
}

nav a:hover {
  color: #D9CCC1;
}

/* =========================
   Topo + Hero inclinado
   ========================= */
.topo {
  background: #990033;
  color: white;
  padding-bottom: 40px;
  padding-top: 60px; /* espaço para o header fixo */
  clip-path: polygon(
      0 0,
      100% 0,
      100% 88%,
      0 100%
  );
}

/* =========================
   Hero deslizando inteiro
   ========================= */
.hero-animado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 40px;
  animation: heroDrop 1.5s ease-out forwards;
}

.hero-text {
  flex: 0 0 60%;
}

.hero-logo {
  flex: 0 0 30%;
  display: flex;
  justify-content: left;
  align-items: left;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
}

.hero-text h1 {
  color: #F2F2F2;
  font-size: 50px;
  margin-bottom: 8px;
}

.hero-text .event-date {
  font-weight: bold;
  font-size: 40px;
  color: #F2F2F2;
}

/* =========================
   Keyframes hero inteiro
   ========================= */
@keyframes heroDrop {
  from {
    transform: translateY(-200px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   Seção do Contador 
   ========================= */
.secao-contador {
  background-color: #F2F2F2;
  /* 35px no topo para respiro, 10px na base para o banner subir */
  padding: 30px 0 20px 0; 
  border-bottom: 4px solid #003366;
}

.contador-container {
  max-width: 1200px;
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.contador-texto h2 {
  color: #003366;
  font-size: 32px; 
  margin-bottom: 5px;
}

.contador-texto p {
  color: #555;
  font-size: 17px;
}

/* Alinhamento dos quadrados */
#countdown {
  display: flex;
  gap: 15px;
}

/* O Quadrado do Contador */
.time-block {
  background: #990033;
  color: white;
  padding: 15px 22px;
  border-radius: 10px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0,0,0,0.12);
}

/* O Número */
.time-block span {
  font-size: 2.8rem; /* Aumentado de 2.5rem para 2.8rem */
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

/* Texto abaixo do número */
.time-block p {
  font-size: 0.9rem; /* Aumentado de 0.8rem */
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

/* =========================
   Espaço para header fixo em páginas que não são a home
========================= */
body:not(.index) main,
body:not(.index) .conteudo-principal {
  padding-top: 100px;   /* altura do header */
  box-sizing: border-box;
}

/* =========================
   Ajuste do topo para páginas internas
========================= */
body.pagina-interna main,
body.pagina-interna .conteudo-principal {
  padding-top: 100px; /* ajuste conforme a altura do seu header */
  box-sizing: border-box;
}

/* =========================
   Sobre + Banner
   ========================= */
.sobre-banner {
  display: flex;
  flex-wrap: nowrap;
  width: 95%;
  max-width: 1500px;
  margin: 70px auto 70px auto;
  gap: 30px;
  align-items: flex-start;
}

.sobre-banner .banner {
  flex: 0 0 33.33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.sobre-banner .sobre-evento {
  flex: 0 0 66.66%;
  padding: 30px 15px;
  border: 3px solid #003366;
  border-radius: 10px;
  position: relative;
  background: #f5f5f5;
}

.sobre-banner .sobre-evento h2 {
  position: absolute;
  top: -25px;
  left: 20px;
  background: #f5f5f5;
  padding: 0 12px;
  font-size: 35px;
  color: #003366;
}

.sobre-banner .sobre-evento p {
  font-size: 20px;
  line-height: 1.6;
}

.sobre-banner .banner img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.btn-download {
  margin-top: 15px;
  text-decoration: none;
  background: #003366;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: #990033;
  color: #ffffff;
  transform: translateY(-3px);
}

/* =========================
   Produtos
   ========================= */

.produtos-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;

  gap: 50px;

  width: 85%;
  max-width: 1400px;

  margin: 90px auto;

  padding: 0 40px;
}

.produtos-info {
  flex: 0 0 52%;

  background: #f5f5f5;

  border: 3px solid #003366;
  border-radius: 12px;

  padding: 40px 35px;

  position: relative;
}

.produtos-info h2 {
  position: absolute;

  top: -24px;
  left: 25px;

  background: #f5f5f5;

  padding: 0 14px;

  font-size: 34px;
  color: #003366;
}

.produtos-info p {
  font-size: 20px;
  line-height: 1.7;

  margin-bottom: 18px;
}

.produtos-lista {
  margin: 25px 0 30px 20px;
  padding-left: 20px;
}

.produtos-lista li {
  font-size: 20px;

  margin-bottom: 12px;

  line-height: 1.5;
}

.produtos-banner {
  flex: 0 0 32%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.produtos-banner img {
  width: 100%;
  border-radius: 12px;
}

.produtos-banner .btn-download {
  margin-top: 20px;
}

/* =========================
  Divisor de páginas
========================= */

.divisor-secao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98%;
  max-width: 1400px; /* Linha mais comprida */
  margin: 20px auto 20px auto;
  text-align: center;
}

/* Linha da Esquerda: Fading (Transparente -> Azul) */
.divisor-secao::before {
  content: "";
  flex: 1;
  height: 4px;
  background: linear-gradient(to right, transparent 0%, #003366 100%);
  border-radius: 2px;
}

/* Linha da Direita: Fading (Azul -> Transparente) */
.divisor-secao::after {
  content: "";
  flex: 1;
  height: 4px;
  background: linear-gradient(to left, transparent 0%, #003366 100%);
  border-radius: 2px;
}

.divisor-secao span {
  font-size: 40px;
  font-weight: 800;
  color: #003366;
  padding: 0 35px;
  position: relative;
  display: flex;
  align-items: center;
}

.divisor-secao span::before, 
.divisor-secao span::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #990033;
  border-radius: 50%;
}

/* Posiciona a bolinha exatamente onde a linha encontra o texto */
.divisor-secao span::before {
  left: 10px; 
}

.divisor-secao span::after {
  right: 10px;
}

/* =========================
   Datas Importantes - Home
========================= */
.datas-importantes .divider {
  text-align: center;
  margin: 0 auto 40px auto;
  position: relative;
}

.datas-importantes .divider::before,
.datas-importantes .divider::after {
  content: "";
  display: inline-block;
  width: 60%;
  max-width: 600px;
  height: 4px;
  background-color: #003366;
  vertical-align: middle;
}

.datas-importantes .divider::before {
  margin-right: 15px;
}

.datas-importantes .divider::after {
  margin-left: 15px;
}

.datas-importantes .divider span {
  display: inline-block;
  font-size: 40px;
  font-weight: bold;
  color: #003366;
  vertical-align: middle;
  white-space: nowrap;
}

.datas-importantes .data-card {
  background-color: #d9d9d9;
  border-left: 6px solid #003366;
  padding: 15px 20px;
  margin: 12px auto;
  border-radius: 6px;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.datas-importantes .data-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.datas-importantes .titulo {
  font-size: 24px;
  font-weight: bold;
  color: #003366;
}

.datas-importantes .datas {
  font-size: 22px;
  font-weight: bold;
  color: #990033;
}

/* Container da data + ícone (Home) */
.datas-importantes .acoes-data {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
}

.datas-importantes .icone-link {
  margin-left: 2px;
  color: #003366;
  font-size: 18px;
  transition: transform 0.2s, color 0.2s;
}

.datas-importantes .icone-link:hover {
  color: #990033;
  transform: scale(1.2);
}

/* =========================
   Datas Importantes - Aba Inscrições - Accordion
========================= */
.datas-importantes-inscricoes {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* AJUSTE 1: Divisor igual aos demais do site (com degradê) */
.datas-importantes-inscricoes .divisor-secao {
  width: 100%; /* Removido o calc para evitar quebra lateral */
  margin: 40px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.datas-importantes-inscricoes .divisor-secao::before,
.datas-importantes-inscricoes .divisor-secao::after {
  content: "";
  flex: 1;
  height: 4px; /* Em vez de border-bottom, usamos height + background */
  background: linear-gradient(to right, transparent 0%, #003366 100%);
  border-radius: 2px;
}

.datas-importantes-inscricoes .divisor-secao::after {
  background: linear-gradient(to left, transparent 0%, #003366 100%);
}

.datas-importantes-inscricoes .divisor-secao::before {
  margin-right: 20px;
}

.datas-importantes-inscricoes .divisor-secao::after {
  margin-left: 20px;
}

.datas-importantes-inscricoes .divisor-secao span {
  font-size: 40px;
  font-weight: bold;
  color: #003366;
  white-space: nowrap;
}

/* --- Estilo dos Cards (Mantido original) --- */
.datas-importantes-inscricoes .data-card-accordion {
  background-color: #d9d9d9;
  border-left: 6px solid #003366;
  border-radius: 6px;
  margin: 12px auto;
  overflow: hidden;
  transition: all 0.3s ease;
}

.datas-importantes-inscricoes .accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.datas-importantes-inscricoes .accordion-header:hover {
  background-color: #bfbfbf;
}

.datas-importantes-inscricoes .titulo {
  font-size: 20px;
  font-weight: bold;
  color: #003366;
}

.datas-importantes-inscricoes .data-icone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.datas-importantes-inscricoes .datas {
  font-size: 18px;
  font-weight: bold;
  color: #990033;
}

.datas-importantes-inscricoes .accordion-icon {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* AJUSTE 2: Correção do Accordion (JS volta a funcionar) */
.datas-importantes-inscricoes .accordion-content, 
#comunicacao-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  background-color: #fcfcfc;
  border-top: 1px solid #ddd;
}

/* Quando o JS colocar a classe .active, ele vai abrir independente de ser ID ou Classe */
.datas-importantes-inscricoes .accordion-content.active,
#comunicacao-content.active {
  max-height: 2500px !important; /* Aumentado para caber todo o texto */
}

/* --- Restante do Estilo (Mantido original) --- */
.datas-importantes-inscricoes .instrucoes {
  padding: 25px;
}

.datas-importantes-inscricoes .instrucoes h4 {
  color: #003366;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 20px;
}

.datas-importantes-inscricoes .instrucoes p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #333;
}

.datas-importantes-inscricoes .instrucoes ul {
  margin: 10px 0 20px 25px;
  padding-left: 10px;
  color: #333;
}

.datas-importantes-inscricoes .instrucoes li {
  margin: 10px 0;
  line-height: 1.7;
}

.datas-importantes-inscricoes .btn-submissao {
  display: inline-block;
  background-color: #990033;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  transition: background 0.3s;
}

.datas-importantes-inscricoes .btn-submissao:hover {
  background-color: #660022;
}

/* =========================
   AJUSTE DE DATAS-RISCO E ALTERAÇÃO
========================= */

.texto-alterado {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #808080;
  opacity: 0.75;
}

/* =========================
   AJUSTE DE SUBIDA DA PLANILHA (CRONOGRAMA)
========================= */

/* 1. Removemos o espaço extra do divisor que fica logo ACIMA do cronograma */
.programacao .divisor-secao {
    margin-bottom: 20px !important;
}

/* 2. Forçamos a div que contém a tabela a subir e centralizar */
.programacao .linha-blocos.subir-tabela {
    margin-top: 0px !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* 3. Ajuste na tabela em si para garantir que não haja margens internas */
.tabela-programacao {
    margin-top: 0 !important;
    border-collapse: collapse; /* Garante que as bordas não criem espaços fantasmas */
}

/* =========================
   Bloco ícone + conteúdo
========================= */

.linha-blocos {
  display: flex;
  flex-direction: column; /* um embaixo do outro */
  align-items: center;    /* centraliza */
  gap: 30px;

  padding: 0 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.bloco-info {
  display: flex;
  align-items: stretch;
  gap: 20px;

  width: 100%;
  max-width: 900px;
}

/* Caixa do ícone */
.caixa-icone {
  width: 120px;
  aspect-ratio: 1 / 1; 
  border: 4px solid #003366;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Conteúdo textual: não quebra linha */
.conteudo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  white-space: nowrap;        /* impede quebra de linha */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Título */
.conteudo-info h3 {
  margin: 0.5px;
  font-size: 28px;
  color: #003366;
  white-space: nowrap;
}

/* Subtítulo */
.subtitulo {
  margin: 6px 0 12px 0;
  color: #555;
  font-size: 20px;
  white-space: nowrap;
}

/* Links */
.links-info a {
  display: inline-block;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  color: #003366;
}

.links-info a:hover {
  text-decoration: underline;
}

/* Apenas para os minicursos */
/* Container dos minicursos */
.linha-minicursos {
  display: flex;              /* alinha horizontalmente os blocos */
  justify-content: center;    /* centraliza os blocos na página */
  gap: 60px;                  /* espaço entre os blocos */
  flex-wrap: wrap;            /* quebra linha se a tela for pequena */
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Cada bloco de minicurso */
.bloco-minicurso {
  display: flex;
  flex-direction: column;   /* ícone em cima, texto embaixo */
  align-items: center;      /* centraliza ícone e texto */
  text-align: center;       /* centraliza os textos dentro do bloco */
  max-width: 250px;         /* opcional, controla largura do bloco */
}

/* Ícone do bloco */
.bloco-minicurso i {
  margin-bottom: 15px;      /* espaço entre ícone e título */
  color: #990033;
}


/* Container da mesa redonda */
.linha-mesa-redonda {
  display: flex;
  justify-content: center;   /* centraliza os 3 blocos na tela */
  gap: 40px;                 /* espaço entre os palestrantes */
  flex-wrap: wrap;           /* quebra linha se a tela for pequena */
  margin: 30px 0;
}

/* Bloco individual da mesa redonda */
.mesa-redonda-palestrante {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centraliza foto, nome e instituição */
  text-align: center;
  max-width: 260px;          /* mesma largura das caixas de palestrantes */
}

/* Container da mesa redonda */
.linha-mesa-redonda {
  display: flex;
  justify-content: center;   /* centraliza os 3 blocos na tela */
  gap: 40px;                 /* espaço entre os palestrantes */
  flex-wrap: wrap;           /* quebra linha se a tela for pequena */
  margin: 30px 0;
}

/* Bloco individual da mesa redonda */
.mesa-redonda-palestrante {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centraliza foto, nome e instituição */
  text-align: center;
  max-width: 260px;          /* mesma largura das caixas de palestrantes */
}

/* Foto do palestrante/comite - CORRIGIDO */
.mesa-redonda-palestrante .foto {
  width: 260px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #003366;
  margin-bottom: 12px;
  background-color: #f0f0f0;
}

.mesa-redonda-palestrante .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Nome e instituição */
.mesa-redonda-palestrante .nome-instituicao h3 {
  color: #003366;
  font-weight: bold;
  font-size: 22px;
  margin: 0;
}

.mesa-redonda-palestrante .nome-instituicao .instituicao {
  color: #555;
  font-size: 18px;
  font-weight: normal;
}

.titulo-mesa-redonda {
  text-align: center;
  font-size: 35px;
  font-weight: bold;
  color: #990033;
  margin: 20px 0 15px 0;
  padding-left: 0;
}


/* Nome e instituição */
.mesa-redonda-palestrante .nome-instituicao h3 {
  color: #003366;
  font-weight: bold;
  font-size: 22px;
  margin: 0;
}

.mesa-redonda-palestrante .nome-instituicao .instituicao {
  color: #555;
  font-size: 18px;
  font-weight: normal;
}


/* =========================
   Responsividade para empilhar
========================= */
@media (max-width: 900px) {
  .linha-blocos {
    flex-direction: column; /* força empilhamento */
    gap: 15px;
  }

  .bloco-info {
    flex: 1 1 100%; /* ocupa 100% da largura do container */
    max-width: 100%;
  }

  .caixa-icone {
    width: 100px;
    aspect-ratio: 1 / 1;
  }

  .caixa-icone img {
    width: 50px;
    height: 50px;
  }

  .conteudo-info h3 {
    font-size: 24px;
  }

  .subtitulo {
    font-size: 18px;
  }

  .links-info a {
    font-size: 16px;
  }
}

/* =========================
   Linha de Palestrantes em coluna
========================= */
.linha-palestrantes {
  display: flex;
  flex-direction: column;   /* um abaixo do outro */
  gap: 20px;                /* espaço entre palestrantes */
  padding: 0 200px;          /* espaço lateral da página */
  width: 100%;              /* ocupa toda a largura da tela */
  box-sizing: border-box;
  margin: 0 auto;
}

/* Bloco individual de palestrante */
.palestrante {
  display: flex;
  gap: 20px;                /* espaço entre foto e texto */
  align-items: flex-start;
  width: 100%;              /* ocupa todo o container */
  box-sizing: border-box;
}

/* Foto do palestrante */
.foto {
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #003366;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Informações do palestrante */
.info-palestrante {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;                   /* ocupa todo o espaço restante */
  min-width: 0;              /* essencial para que o flex permita encolher/expandir */
  text-align: left;
}

/* Nome e Instituição na mesma linha */
.info-palestrante .nome-instituicao {
  display: flex;
  flex-wrap: nowrap;          /* não quebra entre nome e instituição */
  gap: 8px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.info-palestrante .nome-instituicao h3 {
  color: #003366;
  font-weight: bold;
  font-size: 25px;
  margin: 0;
}

.info-palestrante .nome-instituicao .instituicao {
  color: #555;
  font-size: 25px;
  font-weight: normal;
}

/* Nome da apresentação e horário */
.info-palestrante .apresentacao {
  color: #000;
  font-size: 25px;
  font-weight: bold;
  margin: 4px 0 2px 0;
}

.info-palestrante .horario {
  color: #000;
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 10px 0;
}

/* Links */
.info-palestrante .links a {
  display: inline-block;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: #990033;
}

.info-palestrante .links a:hover {
  text-decoration: underline;
}

.links a.indisponivel {
  color: #888888;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
  opacity: 0.8;
}

.links a.indisponivel:hover {
  text-decoration: none;
}


/* =========================
   Responsividade
========================= */
@media (max-width: 900px) {
  .foto {
    width: 200px;
  }

  .info-palestrante .nome-instituicao h3 {
    font-size: 22px;
  }

  .info-palestrante .nome-instituicao .instituicao {
    font-size: 18px;
  }

  .info-palestrante .apresentacao {
    font-size: 20px;
  }

  .info-palestrante .horario {
    font-size: 16px;
  }

  .info-palestrante .links a {
    font-size: 14px;
  }
}

/* =========================
   Linha de Comunicação Oral em coluna
========================= */
.linha-comunicacao {
  display: flex;
  flex-direction: column;   /* um abaixo do outro */
  gap: 20px;                /* espaço entre participantes */
  padding: 0 200px;         /* espaço lateral da página */
  width: 100%;              /* ocupa toda a largura da tela */
  box-sizing: border-box;
  margin: 0 auto;
}

/* Bloco individual de comunicação */
.comunicacao {
  display: flex;
  gap: 20px;                /* espaço entre foto e texto */
  align-items: flex-start;
  width: 100%;              /* ocupa todo o container */
  box-sizing: border-box;
}

/* Foto do participante */
.comunicacao .foto {
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #990033; /* agora vermelho */
}

.comunicacao .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Informações do participante */
.info-comunicacao {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;                   /* ocupa todo o espaço restante */
  min-width: 0;
  text-align: left;
}

/* Nome e Instituição na mesma linha */
.info-comunicacao .nome-instituicao {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.info-comunicacao .nome-instituicao h3 {
  color: #990033;            /* agora vermelho */
  font-weight: bold;
  font-size: 25px;
  margin: 0;
}

.info-comunicacao .nome-instituicao .instituicao {
  color: #555;
  font-size: 25px;
  font-weight: normal;
}

/* Nome da apresentação e horário */
.info-comunicacao .apresentacao {
  color: #000;
  font-size: 25px;
  font-weight: bold;
  margin: 4px 0 2px 0;
}

.info-comunicacao .horario {
  color: #000;
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 10px 0;
}

/* Links */
.info-comunicacao .links a {
  display: inline-block;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: #003366;             /* agora azul */
}

.info-comunicacao .links a:hover {
  text-decoration: underline;
}

/* =========================
   Responsividade
========================= */
@media (max-width: 900px) {
  .comunicacao .foto {
    width: 200px;
  }

  .info-comunicacao .nome-instituicao h3 {
    font-size: 22px;
  }

  .info-comunicacao .nome-instituicao .instituicao {
    font-size: 18px;
  }

  .info-comunicacao .apresentacao {
    font-size: 20px;
  }

  .info-comunicacao .horario {
    font-size: 16px;
  }

  .info-comunicacao .links a {
    font-size: 14px;
  }
}

/* =========================
   MINICURSO
========================= */

/* Linha de blocos (Minicursos / Posters) */
.linha-blocos {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  gap: 40px;               /* espaço entre blocos */
  padding: 0 200px;
  flex-wrap: wrap;          /* quebra linha se não couber */
}

/* Bloco individual */
.bloco-info {
  display: flex;
  flex-direction: column;
  align-items: center;     /* centraliza ícone e texto verticalmente */
  text-align: center;
  gap: 10px;
  max-width: 250px;        /* controla o tamanho máximo do bloco */
}

.bloco-info i {
  transition: transform 0.3s; /* efeito hover */
}

.bloco-info i:hover {
  transform: scale(1.1);
  cursor: pointer;
}


/* =========================
   POSTERS
========================= */

.linha-posters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 40px;

  width: 100%;
  padding: 0 40px;

  margin: 30px auto;
}

.poster-item {
  display: flex;
  flex-direction: column;

  align-items: center;
  text-align: center;

  width: 220px;
}

.poster-item i {
  margin-bottom: 14px;

  transition: transform 0.3s ease;
}

.poster-item i:hover {
  transform: scale(1.08);
}

.poster-item h3 {
  color: #003366;
  font-size: 24px;
  margin-bottom: 6px;
}

.poster-item p {
  color: #555;
  font-size: 18px;
  line-height: 1.4;
}

/* =========================
   TABELA - ESTRUTURA BASE
========================= */
.programacao .tabela-programacao {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto 40px auto;
  border-collapse: separate;
  border-spacing: 6px;
  white-space: nowrap;
}

.tabela-programacao th,
.tabela-programacao td {
  text-align: center;
  vertical-align: middle;
  padding: 0;
}

.tabela-programacao td.evento-cor {
  padding: 0;
}

/* =========================
   CABEÇALHO
========================= */
.col-dia {
  background-color: #003366;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 0 8px;
  height: 33px;
  line-height: 33px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  
}

/* =========================
   HORÁRIOS
========================= */
/* Horários normais */
.hora-cor {
  background-color: #b3cde0;
  font-weight: bold;
  border-radius: 10px;
  padding: 8px 8px; /* MESMO PADDING do .evento */
  min-height: 56px; /* MESMO min-height do .evento */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

/* Horários recorrentes (Coffee / Almoço) */
.hora-recorrente {
  background-color: #004080;
  font-weight: bold;
  border-radius: 8px;
  padding: 8px 8px;  /* Reduzido de 16px para 8px */
  color: white;
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  margin: 0;  /* Garante que não tem margem externa */
  line-height: 1.2;  /* Ajusta a altura da linha do texto */
}

/* Remove qualquer espaçamento extra nas células da tabela */
.tabela-programacao td {
  padding: 0 !important;
  vertical-align: middle;
}

/* Garante que o div interno não adicione espaços */
.tabela-programacao td > div {
  margin: 0;
  padding: 0;
}

/* Aumentar largura da coluna de horário */
.tabela-programacao th:first-child,
.tabela-programacao td:first-child {
  width: 140px;        /* Largura fixa */
  min-width: 140px;    /* Largura mínima */
  max-width: 140px;    /* Impede que aumente mais */
}

/* Garantir que o texto não vaze */
.hora-cor, 
.hora-recorrente {
  white-space: nowrap;
  overflow: visible;    /* Permite o texto completo */
  text-overflow: clip;  /* Não corta o texto */
}

.tabela-programacao td.evento-cor {
  min-width: 160px;
}


/* =========================
   EVENTOS - BASE
========================= */
.evento, 
.evento-longo {
  background-color: #e0e0e0;
  color: #003366;
  font-weight: bold;
  border-radius: 10px;
  padding: 16px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  white-space: nowrap;
}

.evento-recorrente {
  background-color: #004080;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 8px 8px;
  margin: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.tabela-programacao td[rowspan="2"] .evento-recorrente {
  min-height: 80px;
}


.evento-pequeno {
  background-color: #6497b1;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 16px 8px;
  min-height: 56px;
  min-width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  white-space: nowrap;
}

.evento-coffee {
  background-color: #004080;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 16px 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  white-space: nowrap;
}

.evento-especial {
  background-color: #b3003b;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 16px 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  white-space: nowrap;
}


/* =========================
   ROWSPAN - CÉLULAS
========================= */
.tabela-programacao td[rowspan] {
  padding: 0 !important;
  height: 100%;
  vertical-align: middle;
}

.tabela-programacao td:empty {
  background-color: transparent;
  padding: 0;
  border: none;
}

/* =========================
   ROWSPAN 3 LINHAS (14h-15h30)
========================= */
.tabela-programacao td[rowspan="3"] .evento,
.tabela-programacao td[rowspan="3"] .evento-longo {
  min-height: 184px;
  height: 100%;
  background-color: #e0e0e0;
  color: #003366;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
}

/* =========================
   ROWSPAN 2 LINHAS (15h30-16h30)
========================= */
.tabela-programacao td[rowspan="2"] .evento,
.tabela-programacao td[rowspan="2"] .evento-longo {
  min-height: 120px;
  height: 100%;
  background-color: #e0e0e0;
  color: #003366;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
}

/* =========================
   BLOCOS CONTÍNUOS (para células sem rowspan)
========================= */
.bloco-continuo {
  background-color: #e0e0e0;
  color: #003366;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  min-height: 56px;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  border-radius: 0;
}

tr:first-of-type .bloco-continuo {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

tr:last-of-type .bloco-continuo {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.evento-cor:has(.bloco-continuo) {
  padding: 0 !important;
}


/* =========================
   Inscrições - Blocos Lado a Lado
========================= */
.inscricoes .linha-blocos {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  gap: 40px;               /* espaço entre as caixas */
  flex-wrap: wrap;         /* permite empilhar em telas menores */
  margin: 40px auto;
  max-width: 1200px;
}

.inscricoes .bloco-info {
  background-color: #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  flex: 0 0 45%;           /* ocupa ~45% do container, ficando lado a lado */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 300px;        /* evita ficar muito pequeno */
}

.inscricoes .bloco-info h3 {
  color: #003366;
  font-size: 30px;
  margin-bottom: 16px;
}

.inscricoes .bloco-info p {
  color: #333;
  margin-bottom: 24px;
}

.inscricoes .bloco-info .botao {
  background-color: #003366;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.inscricoes .bloco-info .botao:hover {
  background-color: #002244;
}

/* =========================
   Resultados das Submissões (AJUSTADO GRANDE)
========================= */

.resultado-card {
  display: flex;
  align-items: flex-start;
  gap: 26px;

  background: #ffffff;
  border-radius: 16px;

  padding: 28px 30px;

  margin: 30px auto 0 auto;

  box-shadow: 0 3px 12px rgba(0,0,0,0.07);

  max-width: 900px; /* antes 650px */
}

/* Ícone */
.resultado-icone i {
  font-size: 4.5rem !important; /* maior */
}

/* Conteúdo geral */
.resultado-conteudo {
  display: flex;
  flex-direction: column;
  gap: 22px; /* mais respiro */
}

/* Cada bloco (minicurso) */
.resultado-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Título do minicurso */
.resultado-titulo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 700;
  color: #990033;
  font-size: 1.25rem; /* maior */
}

/* Ícone dentro do título */
.resultado-titulo i {
  font-size: 1.1rem;
}

/* Nome do palestrante */
.resultado-palestrante {
  margin-left: 26px;

  color: #003366;
  font-weight: 600;
  font-size: 1.05rem; /* maior */
}

/* Informações extras */
.resultado-info {
  margin-left: 26px;

  color: #666666;
  font-size: 1rem; /* maior */
  line-height: 1.7;

  white-space: normal;
  word-break: break-word;
}

/* Ícone + label "Minicurso" */
.resultado-icone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.resultado-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #990033;
  text-align: center;
}

/* lista mais organizada */
.resultado-info {
  margin-left: 26px;
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}

.resultado-info li {
  margin-bottom: 6px;
}

/* =========================
   RESPONSIVIDADE
========================= */
@media (max-width: 900px) {
  .resultado-card {
    max-width: 95%;
    padding: 22px 20px;
    gap: 18px;
  }

  .resultado-icone i {
    font-size: 3.5rem !important;
  }

  .resultado-titulo {
    font-size: 1.1rem;
  }

  .resultado-palestrante {
    font-size: 0.98rem;
  }

  .resultado-info {
    font-size: 0.95rem;
  }
}

/* =========================
   ICONS e Fotos
========================= */

/* Foto do palestrante */
.foto {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #003366;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* =========================
   Local do Evento
========================= */
.local-evento-section {
  width: 100%;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
}

.local-evento-titulo {
  font-size: 45px;
  font-weight: bold;
  color: #003366;
  margin-left: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.local-evento-container {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 20px;
  align-items: flex-start;
  padding: 0 20px;
}

.local-evento-mapa {
  flex: 0 0 35%;
  min-width: 250px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #003366;
}

.local-evento-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  display: block;
}

.local-evento-texto {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.local-evento-texto p {
  margin: 0;
  color: #003366;
  font-weight: bold;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: normal;
}

.endereco-grande {
  font-size: 30px;
}

.endereco-medio {
  font-size: 25px;
}

.endereco-pequeno {
  font-size: 20px;
}


/* =========================
   Rodapé - Ajustado para Espaço Central
   ========================= */
.rodape {
  background: #990033;
  color: white;
  padding: 80px 30px 60px 30px;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

.footer-container {
  display: flex;
  /* Isso garante que o primeiro bloco cole na esquerda e o último na direita */
  justify-content: space-between; 
  align-items: flex-start;
  max-width: 1600px; /* Largura máxima do conteúdo */
  margin: 0 auto;    /* Centraliza o container na página */
  flex-wrap: wrap;
  gap: 20px;         /* Gap menor, já que o space-between cuidará do resto */
}

/* --- BLOCOS INDIVIDUAIS --- */

/* Bloco 1 (Esquerda - Unicamp/Imecc) */
.footer-bloco:nth-child(1) {
  flex: 0 1 auto;    /* Ocupa apenas o espaço necessário */
  text-align: center;
  font-size: 28px;
}

/* Bloco 2 (MEIO - SBM/PRG) - O que precisa de mais espaço */
.footer-bloco:nth-child(2) {
  flex: 3;           /* Ganha prioridade total de crescimento */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza o conteúdo deste bloco especificamente */
  text-align: center;
  font-size: 28px;
}

/* Bloco 3 (Direita - Redes Sociais) */
.footer-bloco:nth-child(3) {
  flex: 0 1 auto;    /* Ocupa apenas o espaço necessário */
  text-align: center; /* Alinha o texto e ícones para a borda direita */
}

/* --- TÍTULOS --- */
.footer-bloco h3 {
  margin-top: 20px;
  margin-bottom: 25px;
  font-size: 28px;
  width: 100%;       /* Garante que o alinhamento do texto funcione */
}

/* --- LOGOS E ALINHAMENTOS --- */
.logos {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Alinhamentos específicos dos grupos de logos */
.footer-bloco:nth-child(1) .logos { justify-content: flex-start; }
.footer-bloco:nth-child(2) .logos { justify-content: center; }

/* Tamanhos dos logos */
.logo-unicamp { width: 150px;}
.logo-imecc  { width: 180px; }
.logo-sbm    { width: 300px; }
.logo-prg    { width: 350px; }

/* --- REDES SOCIAIS --- */
.redes {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Ícones colados na direita */
  gap: 20px;
}

.redes a {
  color: white;
  transition: transform 0.3s ease;
  display: inline-block;
}

.redes a:hover { transform: translateY(-5px); }
.fa-instagram { font-size: 80px; }
.fa-tiktok    { font-size: 65px; }

/* =========================
   Responsividade
   ========================= */
@media (max-width: 992px) {
  .footer-container {
    justify-content: center;
  }
  .footer-bloco {
    flex: 1 1 100% !important; /* Em tablets/celular, todos viram colunas cheias */
    text-align: center !important;
    margin-bottom: 30px;
  }
  .redes, .logos {
    justify-content: center !important;
  }
}

/* =========================
   Responsividade (Mobile)
   ========================= */
@media (max-width: 768px) {
  .footer-container { flex-direction: column; align-items: center; gap: 40px; }
  .footer-bloco    { width: 100%; text-align: center; }
  .logos           { justify-content: center; }
  .logos img       { max-width: 80px; }
}


/* =========================
   Responsividade geral
========================= */
@media (max-width: 900px) {

  .sobre-banner {
    flex-wrap: wrap;
  }

  .sobre-banner .banner,
  .sobre-banner .sobre-evento {
    flex: 1 1 100%;
    padding: 0 20px;
  }

  .local-evento-container {
    flex-direction: column;
  }

  .local-evento-mapa,
  .local-evento-texto {
    flex: 1 1 100%;
    padding: 0;
    height: auto;
  }

  .local-evento-mapa {
    height: 300px;
  }

  .local-evento-titulo {
    margin-left: 20px;
    font-size: 32px;
  }

  .hero-animado {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .hero-text {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .hero-logo {
    flex: 1 1 100%;
  }

  nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  nav a {
    font-size: 20px;
  }
}

/* Caixa centralizada sem banner */
.sobre-caixa {
  width: 95%;
  max-width: 1200px;           /* ajuste a largura da caixa */
  margin: 80px auto;          /* centraliza na tela e mantém distância do topo */
  padding: 10px 20px;
  border: 3px solid #003366;
  border-radius: 10px;
  background: #f5f5f5;
  position: relative;
  text-align: center;          /* centraliza o conteúdo, inclusive título */
}

/* Título centralizado mantendo mesma altura que a original */
.sobre-caixa h2 {
  position: absolute;
  top: -25px;                  /* mesma altura da original */
  left: 50%;
  transform: translateX(-50%); /* centraliza horizontalmente */
  background: #f5f5f5;
  padding: 0 12px;
  font-size: 35px;
  color: #003366;
}

/* Parágrafos da caixa */
.sobre-caixa p {
  font-size: 20px;
  line-height: 1.6;
}


/* =========================
   RESPONSIVIDADE - GERAL
========================= */
@media (max-width: 900px) {
  .programacao .tabela-programacao {
    width: 95%;
    margin-top: 150px;
  }

  .evento, 
  .evento-longo, 
  .evento-pequeno,
  .bloco-continuo {
    padding: 12px 6px;
    min-height: 48px;
    font-size: 13px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .tabela-programacao td[rowspan="3"] .evento,
  .tabela-programacao td[rowspan="3"] .evento-longo {
    min-height: 160px;
  }
  
  .tabela-programacao td[rowspan="2"] .evento,
  .tabela-programacao td[rowspan="2"] .evento-longo {
    min-height: 104px;
  }
}

@media (max-width: 768px) {
  .programacao .tabela-programacao {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .tabela-programacao td {
    min-width: 120px;
  }
  
  .hora-cor,
  .hora-recorrente {
    position: sticky;
    left: 0;
    background-color: #b3cde0;
    z-index: 1;
  }
  
  .hora-recorrente {
    background-color: #6497b1;
  }
}

@media (max-width: 480px) {
  .col-dia {
    font-size: 12px;
    height: 28px;
    line-height: 28px;
  }
  
  .hora-cor,
  .hora-recorrente {
    font-size: 12px;
    padding: 10px 4px;
    min-height: 40px;
  }
  
  .evento, 
  .evento-longo, 
  .evento-pequeno,
  .bloco-continuo {
    font-size: 11px;
    padding: 10px 4px;
    min-height: 40px;
    min-width: 160px;
  }

.evento-recorrente {
  background-color: #004080;
  color: white;
  font-weight: bold;

  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  min-height: 100%;

  padding: 16px 8px;
  margin: 0;
  box-sizing: border-box;

  white-space: nowrap;
}

/* Almoço ocupando corretamente os rowspans */
.tabela-programacao td[rowspan] .evento-recorrente {
  height: 100%;
  min-height: 100%;
}
  
  .tabela-programacao td[rowspan="3"] .evento,
  .tabela-programacao td[rowspan="3"] .evento-longo {
    min-height: 130px;
  }
  
  .tabela-programacao td[rowspan="2"] .evento,
  .tabela-programacao td[rowspan="2"] .evento-longo {
    min-height: 88px;
  }
}

/* =========================
   IMPRESSÃO
========================= */
@media print {
  .programacao .tabela-programacao {
    margin-top: 20px;
    border-spacing: 2px;
  }
  
  .col-dia {
    background-color: #003366 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .hora-cor,
  .hora-recorrente,
  .evento, 
  .evento-longo,
  .evento-recorrente,
  .evento-pequeno,
  .bloco-continuo {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Responsividade: mobile empilha as caixas? */
@media (max-width: 900px) {
  .inscricoes .bloco-info {
    flex: 0 0 90%; /* ocupa quase toda largura */
    margin-bottom: 20px;
  }
}


/* Ajuste específico para células com rowspan de almoço */
.tabela-programacao td[rowspan="2"] .evento-recorrente {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;  /* Altura total para 2 linhas */
}

/* Garantir que as células de horário recorrente tenham altura consistente */
td.hora-recorrente {
  vertical-align: middle;
  height: 46px;
}