* {
    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;
  }
  
  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;
  }
  
  .hero {
    position: relative;
    height: 70vh;
    flex-direction: column;
    background: url('images/direito2.webp') 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%;
  }

  #direito-medico {
    position: relative;
    z-index: 1; /* Define uma ordem de empilhamento maior que #areas-destaque */
    height: 70vh;
    margin-top: 20vh;
    padding-bottom: 10vh;
    width: 100%;
}

.direito-medico img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    position: absolute;
    right: 0;
    bottom: 0;
}

.direito-medico .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.direito-medico .content {
    position: absolute;
    top: 60%;
    left: 10%;
    transform: translateY(-50%);
    width: 33%;
    height: 105vh; /* Mantém a altura que faz o content invadir a próxima seção */
    background: #fff;
    padding: 5vh;
    z-index: 2; /* Já está presente, mantém o content acima de outros elementos */
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    justify-content: flex-start;
}

.direito-medico .content .title-container {
    display: flex;
    align-items: center;
    gap: 2vw;
    margin-bottom: 1vh;
}

.direito-medico .content .health-icon {
    font-size: 4vw;
    color: #652728;
}

.direito-medico .content h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.8vw;
    color: #652728;
    margin-bottom: 3vh;
}

.direito-medico .content p {
    font-size: 1.2vw;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1vh;
}

.direito-medico .content .trabalhe-comigo {
    position: absolute;
    bottom: 5vh;
    left: 5vh;
    border: 2px solid #652728;
    padding: 0.8vw 1vw;
    color: #652728;
    text-decoration: none;
    font-size: 1.3vw;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5vw;
    background: transparent;
    z-index: 1;
}

.direito-medico .content .trabalhe-comigo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #652728;
    transition: width 0.3s ease;
    z-index: -1;
}

.direito-medico .content .trabalhe-comigo:hover::before {
    width: 100%;
}

.direito-medico .content .trabalhe-comigo:hover {
    color: #fff;
}

.direito-medico .content .trabalhe-comigo:hover i {
    color: #fff;
}

.direito-medico .content .trabalhe-comigo i {
    font-size: 1.3vw;
    transition: color 0.3s ease;
}

#areas-destaque {
    position: relative;
    z-index: 0;
    padding: 10vh 5%;
    background-color: #652728;
    color: #fff;
  }
  
  .titulos {
    display: flex;
    justify-content: space-between;
    margin-top: 20vh;
    margin-bottom: 5vh;
  }
  
  .titulo-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .titulo-item h2 {
    font-size: 2.2vw;
    color: #b0b0b0;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1vh;
  }
  
  .titulo-item.active h2 {
    color: #fff;
  }
  
  .titulo-item:hover h2 {
    color: #fff;
  }
  
  .progress-bar {
    height: 0.2vh;
    background-color: #652728;
    border-radius: 1vw;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .titulo-item:hover .progress-bar {
    background-color: #b0b0b0;
  }
  
  .progress-bar.active::before {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background-color: #fff;
    animation: fillBar 10s linear forwards;
    animation-play-state: running; /* Explicitly set to running when active */
  }
  
  .progress-bar.paused::before {
    animation-play-state: paused; /* Pause animation when paused class is added */
  }
  
  .progress-bar.active {
    background-color: #b0b0b0;
  }
  
  @keyframes fillBar {
    to {
      width: 100%;
    }
  }
  
  .areas-content {
    display: flex;
    gap: 2vw;
    align-items: stretch;
  }
  
  .icones, .icones-direita {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .icone-texto {
    display: none;
  }
  
  .icone-texto.active {
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
  }
  
  .icone-texto .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vw;
    justify-content: center;
    border-radius: 2vw;
    border: solid 2px #fff;
    padding: 1.5vw;
    text-align: center;
    width: 20vw;
    height: 12vw;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
  }
  
  .icone-texto .item i,
  .icone-texto .item span {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .icone-texto.active .item i,
  .icone-texto.active .item span {
    animation: slideInFromRight 0.5s ease forwards;
  }
  
  @keyframes slideInFromRight {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  .icone-texto i {
    font-size: 2.3vw;
    color: #fff;
    margin-bottom: 2vh;
  }
  
  .icone-texto span {
    font-size: 1.4vw;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    text-align: center;
  }
  
  .imagem-container {
    flex: 2;
    position: relative;
    height: 60vh;
    border: solid #fff 2px;
    border-radius: 2vw;
    overflow: hidden;
  }
  
  .imagem-modelo {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 2vw;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  
  .imagem-modelo.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .imagem-modelo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2vw;
    transform: scale(1.1);
    transition: transform 0.3s ease;
  }
  
  .imagem-modelo:hover img {
    transform: scale(1);
  }
  
  .imagem-modelo .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(101, 39, 40, 0.2) 0%, rgba(101, 39, 40, 0.9) 80%);
    border-radius: 2vw;
    transition: background 0.3s ease;
  }
  
  .imagem-modelo:hover .overlay {
    background: linear-gradient(to bottom, rgba(101, 39, 40, 0.3) 0%, rgba(101, 39, 40, 0.9) 60%);
  }
  
  .imagem-modelo p {
    position: absolute;
    bottom: 4vh;
    left: 4vh;
    color: #fff;
    font-size: 1.4vw;
    padding-right: 4vh;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transform: translateX(100%);
    opacity: 0;
    transition: bottom 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  }
  
  .imagem-modelo.active p {
    animation: slideInFromRight 0.5s ease forwards;
  }
  
  .imagem-modelo:hover p {
    bottom: 13vh;
  }
  
  .imagem-modelo .trabalhe-comigo {
    position: absolute;
    bottom: 11vh;
    width: 16vw;
    left: 4vh;
    border: 2px solid #fff;
    padding: 0.6vw 1vw;
    color: #fff;
    text-decoration: none;
    font-size: 1.3vw;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
  }
  
  .imagem-modelo:hover .trabalhe-comigo {
    opacity: 1;
  }
  
  .imagem-modelo .trabalhe-comigo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
    z-index: -1;
  }
  
  .imagem-modelo .trabalhe-comigo:hover::before {
    width: 100%;
  }
  
  .imagem-modelo .trabalhe-comigo:hover {
    color: #652728;
  }
  
  .imagem-modelo .trabalhe-comigo:hover i {
    color: #652728;
  }
  
  .imagem-modelo .trabalhe-comigo i {
    font-size: 1.4vw;
    transition: color 0.3s ease;
  }

.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: #000;
    line-height: 1.5;
    margin: 0;
  }
  
  .contato-item p strong {
    color: #652728;
  }
  
  .contato-item a {
    color: #000;
    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 {
      padding-top: 10vh;
      background-color: #fff;
    }
  
    header {
      height: auto;
    padding: 10px 5%;
    justify-content: space-between;
    align-items: center;
    }
  
    .logo {
      height: 10vh;
    }
  
    .menu-toggle {
      display: block;
      font-size: 8vw;
    }
  
    .nav-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: rgba(101, 39, 40, 0.95);
      display: flex;
      justify-content: center;
      align-items: center;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      z-index: 1000;
    }
  
    .nav-menu.active {
      transform: translateX(0);
    }
  
    nav ul {
      flex-direction: column;
      gap: 8vh;
      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 {
      transform: scale(1.1);
    }
  
    .hero {
      height: 60vh;
    }
  
    .hero h1 {
      font-size: 10vw;
    }
  
    .hero p {
      font-size: 5vw;
    }
  
    section {
      padding: 5vw;
    }
  
    #direito-medico {
      height: auto;
      margin-top: 5vh;
      padding-bottom: 5vh;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .direito-medico img {
      position: relative;
      width: 100%;
      height: 40vh;
      object-fit: cover;
      right: auto;
      bottom: auto;
      border-radius: 3vw;
    }
  
    .direito-medico .overlay {
      display: none;
    }
  
    .direito-medico .content {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      width: 100%;
      height: auto;
      padding: 5vw;
      margin-top: -5vh;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      z-index: 2;
    }
  
    .direito-medico .content .title-container {
      flex-direction: column;
      align-items: center;
      gap: 3vw;
      margin-bottom: 5vw;
    }
  
    .direito-medico .content .health-icon {
      font-size: 10vw;
    }
  
    .direito-medico .content h2 {
      font-size: 8vw;
      text-align: center;
      margin-bottom: 5vw;
    }
  
    .direito-medico .content p {
      font-size: 4vw;
      line-height: 1.8;
      text-align: center;
    }
  
    .direito-medico .content .trabalhe-comigo {
      position: relative;
      bottom: auto;
      left: auto;
      padding: 3vw 5vw;
      font-size: 4vw;
      margin: 5vw auto 0;
      text-align: center;
      border-radius: 2vw;
    }
  
    .direito-medico .content .trabalhe-comigo i {
      font-size: 4vw;
      margin-left: 2vw;
    }
  
    #areas-destaque {
      padding: 5vh 5%;
    }
  
    .titulos {
      flex-direction: column;
      gap: 5vw;
      margin-top: 5vh;
      margin-bottom: 8vh;
    }
  
    .titulo-item {
      padding: 3vw 0;
    }
  
    .titulo-item h2 {
      font-size: 8vw;
    }
  
    .progress-bar {
      height: 0.5vh;
      width: 80%;
    }
  
    .areas-content {
      flex-direction: column;
      gap: 5vw;
    }
  
    .icones, .icones-direita {
      flex: none;
      width: 100%;
    }
  
    .icone-texto.active {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 3vw;
    }
  
    .icone-texto .item {
      width: 45%;
      height: auto;
      padding: 5vw;
      border-radius: 3vw;
    }
  
    .icone-texto i {
      font-size: 7vw;
    }
  
    .icone-texto span {
      font-size: 3.5vw;
      line-height: 1.5;
    }
  
    .imagem-container {
      flex: none;
      width: 100%;
      height: 50vh;
      border-radius: 3vw;
    }
  
    .imagem-modelo p {
      position: absolute; /* Restaurado para posicionar em relação ao .imagem-modelo */
      bottom: 12vh; /* Ajustado para ficar acima do botão */
      left: 5vw;
      right: 5vw; /* Adicionado para limitar a largura do texto */
      font-size: 3.5vw;
      padding: 0;
      line-height: 1.5;
      text-align: left;
      transform: translateX(100%); /* Mantém a animação inicial */
      opacity: 0; /* Mantém a animação inicial */
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
  
    .imagem-modelo.active p {
      animation: slideInFromRight 0.5s ease forwards; /* Garante que a animação seja aplicada */
    }
  
    .imagem-modelo:hover p {
      bottom: 15vh; /* Mantém a posição sem mudança no hover */
    }
  
    .imagem-modelo .trabalhe-comigo {
      position: absolute; /* Mantém o posicionamento em relação ao .imagem-modelo */
      bottom: 2vh; /* Ajustado para ficar na parte inferior */
      left: 5vw;
      width: 60%; /* Ajustado para melhor proporção */
      padding: 3vw 5vw;
      font-size: 4vw;
      border: 2px solid #fff;
      border-radius: 2vw;
      color: #fff;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2vw;
      opacity: 1; /* Sempre visível em mobile */
      z-index: 1;
    }
  
    .imagem-modelo .trabalhe-comigo i {
      font-size: 4vw;
    }
  
    .contato {
      padding: 5vh 5%;
    }
  
    .contato .logo {
      height: 15vh;
    }
  
    .contato h2 {
      font-size: 6vw;
    }
  
    .contato .oab {
      font-size: 5vw;
    }
  
    .contato-info {
      flex-direction: column;
      gap: 5vw;
      align-items: center;
    }
  
    .contato-item {
      max-width: 100%;
      flex-direction: row;
      align-items: center;
      gap: 3vw;
    }
  
    .contato-item i {
      font-size: 6vw;
    }
  
    .contato-item p {
      font-size: 3.5vw;
    }
  
    footer {
      padding: 5vh 5%;
    }
  
    footer p {
      font-size: 4vw;
    }
  
    .mencao {
      font-size: 3vw;
    }
  }