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

body {
  display: flex;
  font-family: "Georgia", serif;
  color: #3e2f1c; /* marrom escuro */
  line-height: 1.6;
  background: #faf7f2; /* bege claro */
}

/* Cabeçalho fixo */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #6b4226; /* marrom madeira */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.topbar h1 {
  display: flex;            /* coloca texto e imagem lado a lado */
  align-items: center;      /* alinha verticalmente */
  font-size: 20px;
  font-family: "Times New Roman", serif;
  margin: 0;                /* garante que não tenha espaçamento extra */
}

.topbar h1 .logo {
  height: 1.2em;            /* deixa a logo do tamanho da fonte */
  margin-right: 10px;       /* espaço entre logo e nome */
}

.topnav a {
  color: #f4e9d8;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

.topnav a:hover {
  color: #d1b17a;
}

/* Barra lateral */
.sidebar {
  width: 220px;
  background: #eae0d5; /* tom de pergaminho */
  padding: 20px;
  height: 100vh;
  position: fixed;
  top: 60px; /* abaixo do cabeçalho */
  left: 0;
  overflow-y: auto;
  border-right: 2px solid #cbb79e;
}

.sidebar h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #4a3320;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  color: #3e2f1c;
  text-decoration: none;
  font-weight: bold;
}

.sidebar ul li a:hover {
  color: #6b4226;
}

/* Conteúdo principal */
main {
  margin-left: 220px;
  padding: 80px 20px 20px 20px;
  flex: 1;
}

section {
  margin-bottom: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0d6c7;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

section h2 {
  margin-bottom: 15px;
  color: #6b4226;
  border-bottom: 2px solid #d1b17a;
  padding-bottom: 5px;
  font-family: "Georgia", serif;
}

/* Espaçamento entre parágrafos */
p {
  margin-top: 15px;
}

section p:first-of-type {
  margin-top: 0; /* não aplica no primeiro parágrafo da seção */
}

/* Rodapé */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: #eae0d5;
  border-top: 2px solid #cbb79e;
  color: #3e2f1c;
  font-style: italic;
}

.img-topico {
  display: block;
  margin: 20px auto;   /* centraliza a imagem */
  max-width: 50%;      /* ajusta ao tamanho da tela */
  border-radius: 8px;  /* bordas arredondadas (opcional) */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* sombreamento leve */
}

figure {
  text-align: center;
  margin: 20px auto;
}

figcaption {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin-top: 8px;
}

.lista-segmentos {
  margin: 15px 0;
  padding-left: 25px;
  line-height: 1.6;
}

.lista-segmentos li {
  margin-bottom: 12px;
  text-align: justify;
}

.lista-segmentos strong {
  color: #6b4226; /* marrom madeira para destacar o título */
}

.tabela-custom {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: "Georgia", serif;
}

.tabela-custom th,
.tabela-custom td {
  border: 1px solid #cbb79e;
  padding: 10px;
  text-align: left; /* alinhamento mais natural para texto maior */
}

.tabela-custom th {
  background: #eae0d5;
  color: #3e2f1c;
  font-weight: bold;
}

/* Largura das colunas */
.tabela-custom th:first-child,
.tabela-custom td:first-child {
  width: 20%; /* coluna 1 menor */
}

.tabela-custom th:last-child,
.tabela-custom td:last-child {
  width: 80%; /* coluna 2 maior */
}

.tabela-custom tr:nth-child(even) {
  background: #faf7f2; /* alterna cor para linhas pares */
}

.referencias {
  margin-top: 15px;
  padding-left: 20px;
  line-height: 1.6;
}

.referencias li {
  margin-bottom: 12px;
  text-align: justify;
  font-size: 14px;
}

.referencias a {
  color: #6b4226;
  text-decoration: none;
}

.referencias a:hover {
  text-decoration: underline;
}

.tabela-custom3 {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: "Georgia", serif;
}

.tabela-custom3 th,
.tabela-custom3 td {
  border: 1px solid #cbb79e;
  padding: 10px;
  text-align: left;
}

.tabela-custom3 th {
  background: #eae0d5;
  color: #3e2f1c;
  font-weight: bold;
}

.tabela-custom3 tr:nth-child(even) {
  background: #faf7f2; /* linhas pares em bege claro */
}

/* Definindo larguras para as 3 colunas */
.tabela-custom3 th:first-child,
.tabela-custom3 td:first-child {
  width: 20%; /* primeira coluna menor */
}

.tabela-custom3 th:nth-child(2),
.tabela-custom3 td:nth-child(2) {
  width: 40%; /* segunda coluna média */
}

.tabela-custom3 th:last-child,
.tabela-custom3 td:last-child {
  width: 40%; /* terceira coluna maior */
}

.tabela-custom4 {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: "Georgia", serif;
}

.tabela-custom4 th,
.tabela-custom4 td {
  border: 1px solid #cbb79e;
  padding: 10px;
  text-align: left;
}

.tabela-custom4 th {
  background: #eae0d5;
  color: #3e2f1c;
  font-weight: bold;
}

.tabela-custom4 tr:nth-child(even) {
  background: #faf7f2; /* alterna cor para linhas pares */
}

/* Larguras para as 4 colunas */
.tabela-custom4 th:first-child,
.tabela-custom4 td:first-child {
  width: 20%; /* coluna 1 menor (Características) */
}

.tabela-custom4 th:nth-child(2),
.tabela-custom4 td:nth-child(2) {
  width: 25%; /* coluna 2 */
}

.tabela-custom4 th:nth-child(3),
.tabela-custom4 td:nth-child(3) {
  width: 25%; /* coluna 3 */
}

.tabela-custom4 th:last-child,
.tabela-custom4 td:last-child {
  width: 30%; /* coluna 4 maior */
}

#equipe {
  text-align: center;
  padding: 40px 20px;
}

.equipe-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.membro img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.membro p {
  margin: 0;
  font-weight: bold;
  font-size: 1rem;
}

/* Link do GitHub como botão */
.github-link {
  display: inline-block;
  margin-top: 40px; /* afasta das fotos */
  padding: 10px 20px;
  background-color: #24292e; /* cor do GitHub */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.github-link:hover {
  background-color: #444d56; /* cor mais clara no hover */
}

.apresentacao-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #6b4226;
  color: #f4e9d8;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 20px auto 20px auto; /* sobe o botão afastando menos do rodapé */
}

/* centraliza só o link de apresentação */
.apresentacao-link:hover {
  background-color: #d1b17a;
  color: #3e2f1c;
  transform: translateY(-2px);
}

.apresentacao-link-container,
main > p {
  text-align: center;  /* centraliza o link dentro do <p> */
  margin-bottom: 20px; /* controla a distância até o footer */
}

.tabela-custom5 {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: "Georgia", serif;
}

.tabela-custom5 th,
.tabela-custom5 td {
  border: 1px solid #cbb79e;
  padding: 10px;
  text-align: center;
}

.tabela-custom5 th {
  background: #eae0d5;
  color: #3e2f1c;
  font-weight: bold;
}

.tabela-custom5 tr:nth-child(even) {
  background: #faf7f2; /* alterna cor para linhas pares */
}