/* ======== VARIÁVEIS DE COR ======== */
:root {
  --cor-primaria: #486d57; /* verde escuro */
  --cor-branco: #ffffff;
}

/* ======== RESET BÁSICO ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======== ESTRUTURA DA PÁGINA ======== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--cor-branco);
  color: #222;
}

/* ======== CABEÇALHO E MENU ======== */
header {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  padding: 1rem 0;
}

header nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

header nav a {
  color: var(--cor-branco);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

header nav a:hover {
  text-decoration: underline;
}

/* ======== CONTEÚDO PRINCIPAL ======== */
#conteudo-principal {
  flex: 1;
  width: 100%;
  padding: 2rem;
  text-align: left;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: left;
}


/* ======== CARTAZ ======== */
.cartaz {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

/* ======== RODAPÉ FIXO ======== */
footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  width: 100%;
  flex-shrink: 0;
}

/* ======== TABELA DE PROGRAMAÇÃO ======== */
.tabela-programacao {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tabela-programacao th,
.tabela-programacao td {
  border: 1px solid #486d57;
  padding: 0.75rem 1rem;
  text-align: left;
}

.tabela-programacao th {
  background-color: #486d57;
  color: white;
}

.tabela-programacao a {
  color: #486d57;
  text-decoration: none;
}

.tabela-programacao a:hover {
  text-decoration: underline;
}

/* ======== FOTOS PALESTRANTES ======== */
.foto-palestrante {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: left;
  border: 3px solid #486d57;
  flex-shrink: 0;
}

.palestrante {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left; /* Mantém alinhamento à esquerda para esta seção */
  width: 100%;
  max-width: 800px;
}

.info-palestrante h2 {
  margin: 0 0 0.5rem 0;
  color: #486d57;
}

.mini-bio {
  margin: 0;
  /* Remova todas as propriedades de limitação de altura e overflow */
  line-height: 1.5em;
  color: #333;
  font-size: 1rem;
  /* Adicione um espaçamento se necessário */
  margin-bottom: 1em;
}

/* ======== BANNER LATERAL ======== */
body.index-page {
  margin-left: 700px;
  overflow-x: hidden;
  position: relative; /* Adicionado para contexto de posicionamento */
}

#banner-index {
  position: fixed;
  left: 0;
  top: 0;
  width: 700px;
  height: 100vh;
  z-index: 900;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}

#banner-index img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ======== CABEÇALHO E RODAPÉ SOBREPOSTOS ======== */
body.index-page > header,
body.index-page > footer {
  position: fixed;
  width: 100%;
  z-index: 1000; /* Garante que fiquem acima do banner */
  background-color: var(--cor-primaria);
}

body.index-page > header {
  top: 0;
  left: 0;
  padding: 1rem 0 1rem 700px; /* Adiciona padding à esquerda igual à largura do banner */
}

body.index-page > footer {
  bottom: 0;
  left: 0;
  padding: 1rem 0 1rem 700px; /* Adiciona padding à esquerda igual à largura do banner */
}

/* Ajuste para o conteúdo principal */
body.index-page main {
  margin-top: 60px; /* Espaço para o header */
  margin-bottom: 60px; /* Espaço para o footer */
  padding-left: 0; /* Remove padding extra */
}

/* Correção para o menu centralizado */
body.index-page header nav {
  width: auto;
  margin-left: 0;
  transform: none;
  padding-left: 0;
}
/* Correções para o layout */
body.index-page > header,
body.index-page > footer {
  width: calc(100% + 100px);
  left: -140px;
  padding-left: 100px;
}

body.index-page main {
  max-width: calc(1000px - 100px);
}/* Centraliza o menu APENAS na index */
body.index-page header nav {
  width: calc(100% - 100px); /* Subtrai a largura do banner */
  margin-left: auto;
  margin-right: auto;
  left: 0;
  transform: none;
  padding-left: 0;
  }/* Estilos para a página de programação */
.dias-evento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dia-card {
  display: block;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dia-card h2 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.dia-card p {
  margin: 0.3rem 0;
  color: #555;
}

/* Estilos para a página de dia específico */
.data-evento {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.mesas-container {
  margin-top: 2rem;
}

.mesa {
  margin-bottom: 3rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
}

.mesa-header {
  margin-bottom: 1.5rem;
}

.horario {
  color: #666;
  font-style: italic;
}

.participantes-mesa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.participante {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.participante:hover {
  transform: translateY(-3px);
}

.participante a {
  text-decoration: none;
  color: inherit;
}

.participante img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.participante h3 {
  margin: 0.5rem 0;
  color: #2c3e50;
}

.participante p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.btn-voltar {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn-voltar:hover {
  background: #e0e0e0;
}/* Fix para rodapé no final */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;

  /* Estilo para a seção de bio do participante */
.participante-bio {
  text-align: left; /* Alinha todo o conteúdo à esquerda */
  max-width: 800px; /* Largura máxima para melhor legibilidade */
  margin: 2rem auto; /* Centraliza a seção na página */
}

.participante-bio p {
  margin-bottom: 1.5em; /* Espaçamento entre parágrafos */
  line-height: 1.6; /* Altura da linha para melhor legibilidade */
  text-align: justify; /* Texto justificado (opcional) */
  text-indent: 1.5em; /* Recuo de parágrafo */
}

/* Remove recuo no primeiro parágrafo após título */
.participante-bio h2 + p {
  text-indent: 0;
}
}/* Estilos para a lista de participantes */
.palestrante-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.palestrante-link:hover {
  transform: translateX(10px);
}

.palestrante {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
  width: 100%;
  max-width: 800px;
  /* Adicione um padding maior se necessário */
  padding: 1.5rem;
  /* Adicione uma borda sutil se quiser destacar cada palestrante */
  border: 1px solid #e1e1e1;
  border-radius: 8px;
}


.palestrante-link:hover .palestrante {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* ======== FOTOS PALESTRANTES ======== */
.foto-palestrante {
  width: 150px;
  height: 150px;
  border-radius: 8px; /* Alterado de 50% para 8px para cantos arredondados suaves */
  object-fit: cover;
  object-position: center; /* Garante que a imagem esteja centralizada */
  border: 3px solid #486d57;
  flex-shrink: 0;
}
/* ======== FOTOS NA PROGRAMAÇÃO ======== */
.participante img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px; /* ou 0 para quadrado perfeito */
  border: 3px solid #486d57;
  margin-bottom: 1rem;
}

/* Ajuste opcional para o layout dos participantes */
.participantes-mesa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Aumente se necessário */
  gap: 1.5rem;
}

.participante {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}
.info-palestrante h2 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.mini-bio {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* Mantém o rodapé no fundo */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}
article p {
  text-indent: 1em;
  margin-bottom: 0.5em;
}
/* Espaçamento após os títulos */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.2em; /* Espaço abaixo do título */
}

/* Espaçamento acima dos parágrafos */
p {
  margin-top: 0.3em; /* Espaço acima do parágrafo */
}
/* Estilo para os parágrafos da biografia */
.participante-bio p {
  text-indent: 1.5em;       /* Recuo na primeira linha */
  margin-bottom: 1em;       /* Espaço entre parágrafos */
  line-height: 1.6;         /* Altura da linha */
  text-align: justify;      /* Texto justificado (opcional) */
}

/* Remove o recuo no primeiro parágrafo após o título */
.participante-bio h2 + p {
  text-indent: 0;
}
/* ESTILOS ESPECÍFICOS DA PÁGINA SOBRE */

/* Lista de Apoio */
.lista-apoio {
  list-style-type: none;
  padding-left: 1.5rem;
}

.lista-apoio li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.lista-apoio li::before {
  content: "•";
  color: #486d57;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
}

/* Seção de Logos */
.secao-logos {
  background-color: #f8f9fa;
  padding: 3rem 1rem;
  margin: 3rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.container-logos {
  max-width: 5000px;
  margin: 0 auto;
  text-align: center;
}

.titulo-logos {
  color: #486d57;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.logo-instituicao {
  max-width: 150px;
  max-height: 100px;
  width: auto;
  height: auto;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.logo-instituicao:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 768px) {
  .grid-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .logo-instituicao {
    max-width: 120px;
  }
  
  .secao-logos {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .grid-logos {
    grid-template-columns: 1fr;
  }
}
/* ==================== ADAPTAÇÕES MOBILE + MENU HAMBURGER ==================== */
@media (max-width: 768px) {
  /* Esconde banner lateral */
  #banner-index {
    display: none;
  }

  body.index-page {
    margin-left: 0;
  }

  body.index-page > header,
  body.index-page > footer {
    padding-left: 1rem;
  }

  body.index-page main {
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem;
  }

  /* Menu em coluna */
  header nav {
    display: none; /* Inicialmente escondido */
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--cor-primaria);
    position: absolute;
    top: 60px; /* Abaixo do header */
    right: 1rem;
    border-radius: 8px;
    padding: 1rem;
    z-index: 1100;
  }

  header nav a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  /* Botão hamburger */
  .hamburger {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1200;
  }

  .hamburger span {
    display: block;
    height: 4px;
    background: var(--cor-branco);
    margin-bottom: 4px;
    border-radius: 2px;
  }

  /* Ajustes de palestrante */
  .palestrante {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .foto-palestrante,
  .participante img {
    width: 120px;
    height: 120px;
  }

  .participantes-mesa {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0.5rem;
  }

  .foto-palestrante,
  .participante img {
    width: 100px;
    height: 100px;
  }

  .grid-logos {
    grid-template-columns: 1fr;
  }
}

