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

:root {
  --verde-ufmg: #008000;
  --cor-texto: #333333;
}

.sidebar {
  width: 100%;
  max-width: 250px;
  background-color: #f4f4f4;
  padding: 20px;
  min-height: 100vh;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transform: translateX(-100%);

  background: rgba(244, 244, 244, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar .icons {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 20px;
}
.sidebar .icons .material-symbols-outlined {
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.sidebar nav {
  margin-top: 0;
}
.sidebar a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 10px;
  border-radius: 4px;
  font-family: sans-serif;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.sidebar a:hover {
  background-color: rgba(0, 86, 179, 0.1);
  color: #008000;
}
.ativo_menu {
  color: var(--verde-ufmg) !important;
  font-weight: bold;
  background-color: rgba(0, 128, 0, 0.1);
  border-left: 4px solid var(--verde-ufmg);
  border-radius: 0 4px 4px 0;
}
.sidebar li {
  list-style: none;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-15px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.sidebar.active li {
  opacity: 1;
  transform: translateX(0);
}
.sidebar.active li:nth-child(1) {
  transition-delay: 0.1s;
}
.sidebar.active li:nth-child(2) {
  transition-delay: 0.16s;
}
.sidebar.active li:nth-child(3) {
  transition-delay: 0.22s;
}
.sidebar.active li:nth-child(4) {
  transition-delay: 0.28s;
}
.sidebar.active li:nth-child(5) {
  transition-delay: 0.34s;
}
.sidebar.active li:nth-child(6) {
  transition-delay: 0.4s;
}
.sidebar.active li:nth-child(7) {
  transition-delay: 0.46s;
}
.sidebar.active li:nth-child(8) {
  transition-delay: 0.52s;
}
.sidebar.active li:nth-child(9) {
  transition-delay: 0.58s;
}

.menu-mobile-header {
  display: flex;
  position: fixed;
  top: 7px;
  left: 7px;
  background: rgba(244, 244, 244, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.05);
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 999;
}
.menu-mobile-header .material-symbols-outlined {
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 30px 20px;
  }
}

@media (min-width: 768px) {
  .sidebar {
    transform: translateX(0);
    background-color: #f4f4f4;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-right: none;
    box-shadow: none;
  }
  .sidebar li {
    opacity: 1;
    transform: translateX(0);
    transition: none;
  }
  .sidebar .icons {
    display: none;
  }

  .menu-mobile-header {
    display: none;
  }
}

.cover-placeholder {
  width: 100%;
  aspect-ratio: 207 / 300;
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
  border: 2px dashed #cccccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}
.cover-placeholder span {
  font-size: 13px;
  color: #666666;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
}

.site-footer {
  background-color: #2c5e2e;
  color: #ffffff;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-left h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 10px;
  font-weight: normal;
}
.footer-left p,
.footer-right p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.main-content {
  margin-left: 250px;
  width: calc(100% - 250px);
}
.main-content__text {
  padding: 30px 20px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--cor-texto);
}
.main-content__text h1,
.main-content__text h2,
.main-content__text h3 {
  color: var(--verde-ufmg);
}
.main-content__text h1 {
  font-size: 2.5rem;
  color: var(--cor-texto);
  margin-bottom: 2rem;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
}
.main-content__text h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.main-content__text h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.main-content__text p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  text-align: justify;
}
.main-content__text ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}
.main-content__text li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.main-content__text a {
  color: #0056b3;
  text-decoration: none;
}
.main-content__text a:hover {
  text-decoration: underline;
}

.projetos-container,
.livros-container,
.detalhes-livro {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--verde-ufmg);
  border-radius: 4px;
  padding: 30px;
  margin-top: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.projetos-titulo,
.livros-titulo {
  color: var(--verde-ufmg);
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  margin-top: 0 !important;
}

.faixa-topo {
  width: 100%;
  padding: 40px 40px;
  background-color: #ace0b0;
}

.faixa-topo h1 {
  color: var(--cor-texto); 
  font-size: 2.4rem;
  margin: 0;
  font-weight: normal;
}

@media (max-width: 767px) {
  .faixa-topo {
    padding: 30px 15px;
  }
  .faixa-topo h1 {
    font-size: 1.8rem;
    /* Se o ícone do menu continuar absoluto e sobrepondo, você pode manter uma margin aqui ou usar o Flexbox no header como conversamos */
    margin-top: 25px; 
  }
}

/* .faixa-topo {
  width: 100%;
  padding: 40px 40px 10px 40px;
  background-color: transparent;
}
.faixa-topo h1 {
  color: var(--cor-texto);
  font-size: 2.4rem;
  margin: 0;
  font-weight: normal;
  border-bottom: 4px solid var(--verde-ufmg);
  padding-bottom: 10px;
  display: inline-block;
}
@media (max-width: 767px) {
  .faixa-topo {
    padding: 30px 15px 10px 15px;
  }
  .faixa-topo h1 {
    font-size: 1.8rem;
    margin-top: 25px;
  }
} */

.btn-voltar {
  display: block;
  width: fit-content;
  margin: 20px auto 0 auto;
  padding: 10px 25px;
  background-color: #f8f9fa;
  color: #333 !important;
  border: 1px solid #ccc;
  border-radius: 25px;
  text-decoration: none !important;
  font-weight: bold;
  transition: all 0.3s;
}
.btn-voltar:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

@media (max-width: 767px) {
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  .main-content__text {
    padding: 20px 15px;
  }
  .projetos-container,
  .livros-container,
  .detalhes-livro {
    padding: 25px 15px;
  }
}
