* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  padding-top: 20vh;
}

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;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 6vw;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}


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%;
}

.hero {
  position: relative;
  height: 70vh;
  flex-direction: column;
  background: url('images/direito.jpg') 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%;
}

.destaques {
  background-color: #fff;
  padding: 5vh 10%;
  margin-top: 10vh;
  display: flex;
  justify-content: space-between;
  gap: 4vh;
  flex-wrap: wrap;
}

.destaques h2 {
  font-size: 3vw;
  font-family: 'Times New Roman', Times, serif;
  color: #652728;
}

.blocos {
  flex-direction: row;
  display: flex;
  gap: 3vw;
}

.sobre .bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 1vw;
  padding: 2vw;
  text-align: left;
  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; /* Necessário para o pseudo-elemento */
  text-decoration: none; /* Remove sublinhado padrão do link */
  color: inherit; /* Mantém cores padrão do conteúdo */
  overflow: hidden; /* Garante que o preenchimento não vaze */
}

.destaques .bloco {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 1vw;
  padding: 2vw;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Necessário para o pseudo-elemento */
  text-decoration: none; /* Remove sublinhado padrão do link */
  color: inherit; /* Mantém cores padrão do conteúdo */
  overflow: hidden; /* Garante que o preenchimento não vaze */
}

.bloco:hover::before {
  width: 100%; /* Preenche completamente ao passar o mouse */
}

.bloco:hover {
  transform: translateY(-1vh);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bloco i {
  font-size: 3vw;
  color: #652728;
  margin-bottom: 1vh;
}

.destaques .bloco h3 {
  font-size: 2vw;
  color: #652728;
  font-style: italic;
  margin-bottom: 2vh;
}

.destaques .bloco p {
  font-size: 1.2vw;
  color: #333;
  line-height: 1.5;
}

.bloco:hover p {
  color: #fff;
}

.bloco:hover i {
  color: #fff;
}

.bloco:hover h3 {
  color: #fff;
}

.bloco::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #652728;
  transition: width 0.5s ease; /* Animação de preenchimento */
  z-index: -1; /* Coloca o preenchimento atrás do conteúdo */
}

.bloco:hover::before {
  width: 100%; /* Preenche completamente ao passar o mouse */
}

.sobre {
  display: flex;
  padding: 5vh 10% 0 10%; /* No bottom padding to ensure flush bottom */
  margin-top: 0;
  justify-content: space-between;
  align-items: flex-end; /* Align items to bottom */
  background-color: #652728;
  gap: 5vw;
  position: relative;
  overflow: hidden;
}

.sobre::before {
  content: '';
  position: absolute;
  top: -15vh;
  left: 0;
  width: 100%;
  height: 25vh;
  background-color: #fff;
  transform: skewY(5deg);
  z-index: 0;
}

.sobre-conteudo {
  width: 60%; /* Text takes 60% of width */
  z-index: 5;
  padding-top: 15vh; /* Reduced for compactness */
}

.sobre-conteudo p {
  font-size: 1.3vw;
  margin-bottom: 2vh;
  text-align: left;
  color: #fff;
  line-height: 1.5;
}

.imagem-perfil {
  width: 50%; /* Image takes 30% of width */
  position: relative;
  z-index: 1;
  line-height: 0; /* Remove any line-height spacing */
}

.imagem-perfil img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures image fits without distortion */
  display: block; /* Remove inline spacing */
  vertical-align: bottom; /* Align to bottom to eliminate gap */
}

.overlay-perfil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(101, 39, 40, 0.8); /* Subtle tint matching #652728 */
  z-index: 2; /* Above image, below content */
}

.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 (max-width: 768px) {

  body {
    font-family: 'Poppins', sans-serif;
    background-color: #652728;
    color: #333;
    text-align: center;
    padding-top: 10vh;
  }

  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;
  }
  .sobre {
    display: flex;
    padding: 5vh 10% 0 10%; /* No bottom padding to ensure flush bottom */
    margin-top: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end; /* Align items to bottom */
    background-color: #652728;
    gap: 5vw;
    position: relative;
    overflow: hidden;
  }

  .sobre::before {
    content: '';
    position: absolute;
    top: -15vh;
    left: 0;
    width: 100%;
    height: 25vh;
    background-color: #fff;
    transform: skewY(0deg);
    z-index: 0;
  }

  .imagem-perfil {
    width: 100%; /* Image takes 30% of width */
    position: relative;
    z-index: 1;
    line-height: 0; /* Remove any line-height spacing */
  }
  
  .imagem-perfil img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures image fits without distortion */
    display: block; /* Remove inline spacing */
    vertical-align:auto; /* Align to bottom to eliminate gap */
  }

  .destaques {
    background-color: #fff;
    padding: 5vh 10%;
    margin-top: 0vh;
    display: flex;
    justify-content: space-between;
    gap: 4vh;
    flex-wrap: wrap;
  }

  .destaques h2 {
    font-size: 8vw;
    font-family: 'Times New Roman', Times, serif;
    color: #652728;
  }

  .destaques .bloco {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 4vw;
    padding: 4vw;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Necessário para o pseudo-elemento */
    text-decoration: none; /* Remove sublinhado padrão do link */
    color: inherit; /* Mantém cores padrão do conteúdo */
    overflow: hidden; /* Garante que o preenchimento não vaze */
  }

  .blocos {
    flex-direction: column;
    display: flex;
    gap: 3vw;
  }

  .bloco i {
    font-size: 7vw;
    color: #652728;
    margin-bottom: 1vh;
  }
  
  .destaques .bloco h3 {
    font-size: 5vw;
    color: #652728;
    font-style: italic;
    margin-bottom: 2vh;
  }
  
  .destaques .bloco p {
    font-size: 4vw;
    color: #000;
    line-height: 1.5;
  }

  .sobre-conteudo {
    width: 100%; /* Text takes 60% of width */
    z-index: 5;
    padding-top: 15vh; /* Reduced for compactness */
  }

  .sobre-conteudo p {
    font-size: 4vw;
    margin-bottom: 2vh;
    text-align: center;
    color: #fff;
    line-height: 1.5;
  }

  .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;
  }
}