/* Ajustes para o tamanho da imagem de perfil em diferentes dispositivos */

/* Estilos base para a imagem hero */
.hero-image-container {
  position: relative;
  margin: 0 auto;
  transition: all 0.3s ease;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
  object-fit: contain;
  max-height: 500px;
}

.image-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-small);
  z-index: -1;
}

/* Telas grandes (desktops) */
@media screen and (min-width: 1200px) {
  .hero-image-container {
    max-width: 450px;
  }
}

/* Telas médias (laptops) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .hero-image-container {
    max-width: 400px;
  }
}

/* Tablets */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-image-container {
    max-width: 350px;
    margin-bottom: 1.5rem;
  }
}

/* Dispositivos móveis grandes */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .hero-image-container {
    max-width: 300px;
    margin-bottom: 1rem;
  }
}

/* Dispositivos móveis médios */
@media screen and (min-width: 480px) and (max-width: 575px) {
  .hero-image-container {
    max-width: 250px;
    margin-bottom: 1rem;
  }
}

/* Dispositivos móveis pequenos */
@media screen and (max-width: 479px) {
  .hero-image-container {
    max-width: 220px;
    margin-bottom: 0.75rem;
  }
  
  .hero-content {
    padding-top: 1rem;
  }
  
  .hero-title {
    margin-bottom: 0.5rem;
  }
  
  .title-row {
    margin-bottom: 0.25rem;
  }
}

/* Dispositivos muito pequenos */
@media screen and (max-width: 375px) {
  .hero-image-container {
    max-width: 200px;
  }
}

/* Dispositivos extremamente pequenos */
@media screen and (max-width: 320px) {
  .hero-image-container {
    max-width: 180px;
  }
}

/* Orientação paisagem */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-image-container {
    max-width: 180px;
  }
}

/* Garantir que a imagem não cubra o título em nenhum dispositivo */
.hero-row {
  gap: 1.5rem;
  align-items: center;
}

/* Ajuste do espaçamento para melhorar o layout */
@media screen and (max-width: 767px) {
  .hero {
    padding-top: 100px;
  }
  
  .hero-row {
    gap: 0.5rem;
  }
  
  .hero-content {
    margin-top: 1rem;
  }
}

/* Garantir que a ordem dos elementos funcione corretamente */
@media screen and (min-width: 768px) {
  .hero-row {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .col-lg-5.col-md-6.order-md-1 {
    order: 1;
  }
  
  .col-lg-7.col-md-6.order-md-2 {
    order: 2;
  }
}

/* Corrigir espaçamento entre elementos */
.hero-badge {
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 0.75rem;
}

.hero-specialties {
  margin-top: 0.75rem;
}