@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #652728;
  color: #333;
  padding-top: 20vh;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  top: var(--background-top, 55%);
  background-color: #fff;
  z-index: -1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgb(255,255,255);
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20vh;
  padding: 0 5%;
  box-shadow: 0 2px 5px rgba(51, 51, 51, 0.1);
}

.logo {
  height: 15vh;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3vw;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.3vw;
  position: relative;
  padding: 1vh 0;
  transition: all 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 0.3vh;
  background-color: #652728;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #652728;
  transform: scale(1.05);
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 6vw;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}

.nav-menu {
  transition: transform 0.3s ease;
}

.nav-menu.active {
  transform: translateX(0);
}

/* Estilos para as demais seções (mantidos como no original) */
.hero {
  position: relative;
  height: 70vh;
  flex-direction: column;
  background: url('images/tribunal.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(101, 39, 40, 0.4);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-family: 'Times New Roman', Times, serif;
  font-size: 4vw;
  text-align: center;
}

.hero p {
  position: relative;
  z-index: 2;
  font-size: 2vw;
  text-align: center;
  font-style: italic;
}

section {
  padding: 2vh 10%;
}

.areas, .sobre, .contato {
  margin-top: 15vh;
}

.areas h2, .sobre h2, .contato h2, .declaracoes h2 {
  font-size: 3.5vw;
  color: #652728;
  margin-bottom: 4vh;
}

.sobre {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5vw;
  position: relative;
  overflow: hidden;
}

.sobre-conteudo {
  flex: 1 1 50%;
  z-index: 2;
}

.sobre-conteudo p {
  font-size: 1.3vw;
  text-align: center;
}

.sobre-conteudo .sobre-mim-text {
  text-align: left;
}

.imagem-perfil {
  position: relative;
  flex: 1 1 85vw;
  display: flex;
  border-radius: 4vw;
  justify-content: flex-end;
  z-index: 1;
}

.sobre .perfil {
  width: 100%;
  border-radius: 1vw;
  display: block;
}

.overlay-perfil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #652728;
  opacity: 0;
  border-radius: 4vw;
  z-index: 1;
}

.perfil-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1vw;
  border-bottom-left-radius: 1vw;
  border-bottom-right-radius: 1vw;
  z-index: 2;
  transition: height 0.3s ease, background-color 0.3s ease;
}

.perfil-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.perfil-text h3 {
  font-size: 1.7vw;
  color: #652728;
  margin: 0;
  font-weight: 600;
}

.perfil-text p {
  font-size: 1.2vw;
  color: #333;
  margin: 0;
}

.imagem-perfil:hover .perfil-text {
  height: 100%;
  background-color: rgba(101, 39, 40, 0.5);
  border-radius: 1vw;
}

.imagem-perfil:hover .perfil-text-content {
  transform: translateY(-2vh);
}

.imagem-perfil:hover .perfil-text h3,
.imagem-perfil:hover .perfil-text p {
  color: #fff;
}

.conhecer-btn {
  position: relative;
  font-size: 1.2vw;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.2vw 0.5vw;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(2vw);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, color 0.3s ease;
}

.conhecer-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #fff;
  z-index: -1;
  transition: width 0.3s ease;
}

.conhecer-btn i {
  margin-left: 0.8vw;
  font-size: 1.2vw;
}

.imagem-perfil:hover .conhecer-btn {
  opacity: 1;
  transform: translateY(0);
}

.conhecer-btn:hover {
  color: #652728;
}

.conhecer-btn:hover:before {
  width: 100%;
}

.conhecer-btn:hover i {
  color: #652728;
}

.destaques {
  display: flex;
  gap: 4vw;
  margin-top: 8vh;
  flex-wrap: wrap;
}

.sobre .bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 1vw;
  padding: 2vw;
  text-align: center;
  width: 13vw;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.sobre .bloco::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #652728;
  transition: width 0.5s ease;
  z-index: -1;
}

.sobre .bloco:hover::before {
  width: 100%;
}

.sobre .bloco:hover {
  transform: translateY(-1vh);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sobre .bloco i {
  font-size: 3vw;
  color: #652728;
  margin-bottom: 2vh;
  transition: color 0.3s ease;
}

.sobre .bloco:hover p {
  color: #fff;
}

.sobre .bloco:hover i {
  color: #fff;
}

.sobre .bloco p {
  font-size: 1.3vw;
  font-weight: 500;
  font-style: italic;
  color: #333;
  transition: color 0.3s ease, font-style 0.3s ease;
}

.areas {
  z-index: 2;
  padding: 15vh 0% 15vh 0%;
  margin-top: -10vh;
  background-color: #652728;
  color: #fff;
}

.areas h2 {
  padding-left: 10%;
  margin-bottom: 5vh;
  margin-top: 5vh;
  color: #fff;
}

.container {
  background-color: #fff;
  display: flex;
  align-items: center;
  margin-left: 10%;
  gap: 2vw;
  border-top-left-radius: 1vw;
  border-bottom-left-radius: 1vw;
  flex-wrap: wrap;
}

.image-wrapper {
  position: relative;
  flex: 0 0 50%;
  height: 100%;
}

.container-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #652728;
  opacity: 0.3;
  z-index: 1;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 3vw;
  font-weight: 600;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  padding: 2vw 2vw 2vw;
  color: #333;
}

.icons-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.icons-container h2 {
  color: #652728;
  margin: 0;
  font-size: 2.8vw;
  padding-left: 0;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5vw;
  height: 5vw;
  background-color: #652728;
  border-radius: 50%;
}

.health-icon {
  font-size: 3vw;
  color: #fff;
}

.content-right p {
  font-size: 1.4vw;
}

.ver-mais-btn {
  display: inline-block;
  padding: 1vw 1.5vw;
  background-color: #652728;
  color: #fff;
  text-decoration: none;
  font-size: 1.4vw;
  font-weight: 500;
  border-radius: 1vw;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: center;
}

.ver-mais-btn:hover {
  background-color: #4a1d1e;
  transform: translateY(-1.5vh);
}

.areas-grid {
  display: flex;
  gap: 2vw;
  margin: 8vh 10% 0 10%;
  flex-wrap: wrap;
}

.area-wrapper {
  flex: 1;
  position: relative;
  height: 60vh;
}

.area-item {
  height: 100%;
  position: relative;
  border-radius: 1vw;
  overflow: hidden;
}

.area-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.area-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #652728;
  opacity: 0.6;
  border-radius: 1vw;
  z-index: 1;
}

.area-info {
  width: 20vw;
  height: 35vh;
  background-color: #fff;
  position: absolute;
  bottom: -20vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1vw;
  border-radius: 1vw;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.area-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  transition: transform 0.3s ease;
}

.area-info h3 {
  font-size: 1.3vw;
  color: #333;
  margin: 0;
}

.area-info p {
  font-size: 1.1vw;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.area-info i {
  font-size: 2vw;
  color: #652728;
}

.area-info .ver-mais-btn {
  padding: 0.6vw 1.2vw;
  font-size: 1.1vw;
  background-color: #652728;
  color: #fff;
  text-decoration: none;
  border-radius: 1vw;
  opacity: 0;
  transform: translateY(2vh);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.area-info:hover .area-content {
  transform: translateY(-2vh);
}

.area-info:hover .area-overlay {
  opacity: 0.3;
}

.area-info:hover .ver-mais-btn {
  opacity: 1;
  transform: translateY(0);
}

.declaracoes {
  padding: 10vh 10% 0 10%;
  margin-top: 10vh;
  background-color: #652728;
}

.declaracoes h2 {
  color: #fff;
}

.declaracoes p {
  font-size: 1.3vw;
}

.declaracoes-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}

#data1, #data2 {
  font-size: 1.5vw;
}

.texto {
  font-size: 1vw;
  
}

#texto1, #texto2 {
  font-size: 1.5vw;
  text-align: left;
}

.blocos {
  display: flex;
  gap: 2vw;
  flex: 1;
  overflow: hidden;
}

.moldura {
  position: relative;
  background-color: #fff;
  border-radius: 1vw;
  background-size: cover;
  width: 40vw;
  background-position: center;
  justify-content: center;
  align-items: center;
  padding: 2vw;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.depoimento {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 1.2vw;
  flex: 1;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.avatar {
  width: 4vw;
  height: 4vw;
  border-radius: 50%;
  border: 2px solid #652728;
  object-fit: cover;
  margin-right: 0.1vw;
}

#nome1, #nome2 {
  font-size: 2vw;
  font-family: 'Times New Roman', Times, serif;
}

.depoimento-header {
  display: flex;
  align-items: center;
  border-bottom: #652728 solid 2px;
  padding-bottom: 2vh;
  justify-content: space-between;
  margin-bottom: 2vh;
  gap: 0.5vw;
}

.person {
  display: flex;
  gap: 1vw;
  align-items: center;
}

.depoimento-header span {
  font-size: 1.2rem;
}

.depoimento p {
  font-size: 1.1rem;
  color: #000;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.linha-texto {
  display: block;
  border-bottom: 1px solid #999;
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.navegacao {
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.navegacao button {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 5vw;
  height: 5vw;
  font-size: 2vw;
  cursor: pointer;
  transition: background 0.3s ease;
}

.navegacao button:hover {
  background: #555;
  color: #fff;
}

.contato {
  background-color: #fff;
  padding: 5vh 10%;
  text-align: center;
}

.contato .logo {
  height: 20vh;
  margin-bottom: 4vh;
}

.contato h2 {
  font-size: 2.5vw;
  font-weight: 600;
  color: #652728;
  margin-bottom: 2vh;
}

.contato .oab {
  font-size: 1.8vw;
  color: #333;
  margin-bottom: 4vh;
}

.contato-info {
  display: flex;
  justify-content: center;
  gap: 3vw;
  flex-wrap: wrap;
}

.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 1vw;
  max-width: 27vw;
  text-align: left;
}

.contato-item i {
  font-size: 2vw;
  color: #652728;
}

.contato-item p {
  font-size: 1.2vw;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.contato-item p strong {
  color: #652728;
}

.contato-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contato-item a:hover {
  color: #4a1d1e;
}

footer {
  text-align: center;
  padding: 4vh;
  background-color: #652728;
  color: #fff;
}

footer p {
  font-size: 1.5vw;
}

.mencao {
  font-size: 1.2vw;
  opacity: 0.6;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {

  body {
    font-family: 'Poppins', sans-serif;
    background-color: #652728;
    color: #333;
    padding-top: 10vh;
  }

  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 0%;
    top: var(--background-top, 40%);
    background-color: #fff;
    z-index: -1;
  }

  header {
    height: auto;
    padding: 10px 5%;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    height: 10vh;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(101, 39, 40, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 5vh;
    text-align: center;
  }

  nav ul li a {
    font-size: 6vw;
    color: #fff;
    padding: 2vh 0;
  }

  nav ul li a::after {
    background-color: #fff;
  }

  nav ul li a:hover {
    color: #fff;
    transform: scale(1.1);
  }

  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 10vw;
  }

  .hero p {
    font-size: 5vw;
  }

  .areas, .sobre, .contato {
    padding-top: 5vh;
    margin-top: 0;
  }

  .areas {
    z-index: 2;
    padding: 0vh 0% 15vh 0%;
    background-color: #652728;
    color: #fff;
  }

  .sobre {
    flex-direction: column;
    background-color: #fff;
    gap: 20px;
  }

  .sobre-conteudo .sobre-mim-text {
    text-align: center;
  }
  

  .sobre-conteudo {
    flex: 1 1 100%;
  }

  .imagem-perfil {
    flex: 1 1 100%;
    border-radius: 4vw;
    justify-content: center;
  }
  .sobre .perfil {
    border-radius: 4vw;
  }

  .sobre .bloco {
    width: 40%;
    border-radius: 4vw;
    display: none;
    margin: 10px auto;
    background-color: #652728;
  }

  .sobre-conteudo p {
    font-size: 4vw;
  }

  .sobre .bloco p {
    font-size: 4vw;
    color: #fff;
  }

  .sobre .bloco i {
    font-size: 8vw;
    color: #fff;
  }

  .perfil-text {
    height: 100%;
    background-color: rgba(101, 39, 40, 0.5);
    border-radius: 4vw;
  }
  
  .perfil-text-content {
    transform: translateY(-2vh);
  }
  
  .perfil-text h3,
  .perfil-text p {
    color: #fff;
  }
  
  .conhecer-btn {
    position: relative;
    font-size: 4vw;
    color: #fff;
    border: 2px solid #fff;
    padding: 1vw 2vw;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transform: translateY(2vw);
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, color 0.3s ease;
  }
  
  .conhecer-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transition: width 0.3s ease;
  }
  
  .conhecer-btn {
    opacity: 1;
    transform: translateY(0);
  }

  .perfil-text h3 {
    font-size: 6vw;
    color: #fff;
  }

  .perfil-text p {
    font-size: 4vw;
    color: #fff;
  }

  .conhecer-btn {
    font-size: 4vw;
  }

  .conhecer-btn i {
    font-size: 4vw;
  }

  .areas h2, .sobre h2, .contato h2, .declaracoes h2 {
    font-size: 8vw;
    text-align: center;
  }
  .areas h2{
    padding-left: 0;
  }

  .container {
    flex-direction: column-reverse;
    margin-left: 0;
    
    border-radius: 10vw;
  }

  .image-wrapper {
    flex: 1 1 100%;
  }

  .content-right {
    padding: 10%;
  }

  .icons-container h2 {
    font-size: 6vw;
    text-align: center;
    margin: auto;
  }

  .icon-circle {
    width: 10vw;
    height: 10vw;
  }

  .health-icon {
    font-size: 6vw;
  }

  .content-right p {
    font-size: 4vw;
    text-align: center;
  }

  .ver-mais-btn {
    font-size: 4vw;
    padding: 2vw 3vw;
    border-radius: 2vw;
    margin: auto;
  }

  .areas-grid {
    flex-direction: column;
    gap: 20vw; /* Aumentado para garantir espaço entre os itens */
    margin: 10vh 5% 0 5%;
  }

  .area-wrapper {
    flex: none;
    height: auto; /* Altura automática para conter vídeo e info */
    min-height: 50vh; /* Aumentado para garantir espaço */
    display: flex;
    flex-direction: column;
    gap: 5vw; /* Espaço interno entre vídeo e info */
  }

  .area-item {
    height: 40vh; /* Altura fixa para o vídeo */
    position: relative;
    overflow: hidden;
    border-radius: 3vw; /* Ajustado para mobile */
  }

  .area-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
  }

  .area-overlay {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 1;
    border-radius: 3vw; /* Consistência com area-item */
  }

  .area-info {
    position: relative;
    width: 80%;
    height: auto;
    left: auto;
    
    transform: none;
    padding: 5vw;
    margin: 0 auto;
    border-radius: 3vw; /* Ajustado para mobile */
    margin-top: -35vh;
  }

  .area-info h3 {
    font-size: 5vw;
  }

  .area-info p {
    font-size: 3.5vw;
    margin-bottom: 3vh;
  }

  .area-info i {
    font-size: 7vw;
  }

  .area-info .ver-mais-btn {
    font-size: 4vw;
    padding: 2vw 3vw;
    opacity: 1;
    border-radius: 2vw;
    transform: translateY(0);
  }

  .blocos {
    flex-direction: column;
    gap: 20px;
  }

  .declaracoes {
    padding: 5vh 5% 0 5%;
    margin-top: -10vh;
  }

  .declaracoes-container {
    flex-direction: column;
    align-items: center;
  }

  .blocos {
    flex-direction: column;
    gap: 5vw;
    width: 90%;
  }

  .moldura {
    width: 100%;
    padding: 5vw;
    border-radius: 3vw;
  }

  .moldura-2 {
    display: none; /* Oculta o segundo depoimento em mobile */
  }

  .avatar {
    width: 10vw;
    height: 10vw;
    margin-right: 1vw;
  }

  #nome1, #nome2 {
    font-size: 6vw;
  }

  #data1, #data2 {
    font-size: 4vw;
  }

  #texto1, #texto2 {
    font-size: 4vw;
  }

  .depoimento p {
    font-size: 3vw;
  }

  .navegacao {
    flex-direction: row;
    gap: 5vw;
    margin-top: 5vw;
    margin-bottom: 5vh;
  }

  .navegacao button {
    width: 10vw;
    height: 10vw;
    font-size: 4vw;
  }
  .navegacao button:hover {
    background: #fff;
    color: #000;
  }

  .contato-info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contato-item {
    max-width: 100%;
  }

  .contato h2 {
    font-size: 6vw;
  }

  .contato .oab {
    font-size: 5vw;
  }

  .contato-item i {
    font-size: 6vw;
  }

  .contato-item p {
    font-size: 3.5vw;
  }

  footer p {
    font-size: 4vw;
  }

  .mencao {
    font-size: 3vw;
  }
}
