@media (max-width: 1300px) {
  /* se serve */
}

@media (max-width: 1120px) {
  /* se serve */
}

@media (max-width: 992px) {
  .slider_section {
    min-height: auto;
  }

  .slider_section .detail-box {
    padding: 90px 0 75px 0;
  }

  .info_main_row > div:nth-child(1),
  .info_main_row > div:nth-child(2) {
    margin-bottom: 25px;
  }
}

@media (max-width: 800px) {
  /* se serve */
}

@media (max-width: 768px) {
  .slider_section{
    margin-top: 80px;
  }

  .about_sectionC {
    margin-top: 120px;
  }

  .services_section {
    margin-top: 120px;
  }

  .policy_section {
    margin-top: 120px;
  }

  .slider_section .detail-box h1 {
    font-size: 2.5rem;
  }

  .slider_section .slider_bg_box img {
    object-position: 20% center;
  }

  .about_section .img-box {
    margin-bottom: 45px;
  }

  .contact_section .form_container {
    margin-bottom: 45px;
  }

  .client_section .box {
    flex-direction: column;
    text-align: center;
    margin: 45px 15px;
  }

  .client_section .box .detail-box {
    align-items: center;
  }

  .client_section .box .img-box {
    margin-right: 0;
    margin-bottom: 25px;
  }

  .info_main_row > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info_main_row > div:not(:nth-last-child(1)) {
    margin-bottom: 25px;
  }

  .info_section .social_box {
    justify-content: center;
    margin-top: 25px;
  }

  .info_section .info_contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team_grid {
    grid-template-columns: repeat(1, 1fr); /* 1 colonna su mobile */
    gap: 15px; /* Riduci lo spazio tra gli elementi */
  }

  .team_grid_due {
    grid-template-columns: repeat(1, 1fr); /* Anche per i filtri specifici, 1 colonna su mobile */
  }

  .team_member img {
    width: 100%; /* L'immagine occupa il 100% della larghezza del contenitore */
    height: auto; /* Mantiene le proporzioni dell'immagine */
    max-height: 470px; /* Limita l'altezza massima per evitare immagini troppo grandi */
    object-fit: cover; /* Assicura che l'immagine copra l'area senza distorsioni */
    border-radius: 10px; /* Mantieni i bordi arrotondati */
  }

  .team_member .text-content {
    top: 10px; /* Riduci la distanza dal bordo superiore */
    left: 10px; /* Allinea il testo a sinistra */
    transform: none; /* Rimuovi la trasformazione */
    width: calc(100% - 20px); /* Larghezza del testo adattata al contenitore */
    padding: 10px; /* Riduci il padding */
    background-color: rgba(30, 30, 30, 0.9); /* Sfondo semi-trasparente */
  }

  .team_filter {
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  }

  .filter_button {
    flex: 1 1 45%; /* Two buttons per row */
    margin: 5px;
  }

  .recruitment-banner {
    font-size: 1rem; /* Riduci la dimensione del font su dispositivi mobili */
    padding: 8px 0; /* Riduci il padding su dispositivi mobili */
  }

  .recruitment_section{
    margin-top: 80px;
  }

  .recruitment_section .service_box {
    margin-bottom: 20px;
  }

  .recruitment_section .icon-box {
    font-size: 2rem;
  }

  .recruitment_section .service_box h4 {
    font-size: 1.3rem;
  }

  .recruitment_section .service_box p {
    font-size: 0.9rem;
  }

  .recruitment_section .btn-box a {
    padding: 8px 30px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .info_section .info_insta .insta_box {
    flex-direction: column;
  }

  .info_section .info_insta .insta_box .img-box {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .filter_button {
    flex: 1 1 100%;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .about_section .img-box::before {
    width: 150px;
    height: 150px;
  }

  .slider_section .slider_bg_box img {
    object-position: 40% center;
  }
}

@media (max-width: 420px) {
  /* se serve */
}

@media (max-width: 376px) {
  .slider_section .detail-box h1 {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 0;
    outline: 0;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  .navbar-collapse {
    background-color: var(--secondary-color);
  }

  .nav_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav_container a {
    font-size: 10px;
    padding: 8px 0;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .about_section .img-box {
    margin-bottom: 20px;
  }

  .about_section .detail-box {
    padding-left: 0;
    text-align: center;
  }

  .about_section .btn-primary {
    width: 100%;
  }

  .network_section .network_box {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.9rem;
  }

  .layout_padding {
    padding: 30px 0;
  }

  .heading_container {
    margin-bottom: 20px;
  }

  .services_section .service_box {
    margin-bottom: 20px;
  }

  .services_section .img-box img {
    width: 80px;
    height: 80px;
  }

  .services_section .detail-box h4 {
    font-size: 1.3rem;
  }

  .services_section .detail-box p {
    font-size: 0.9rem;
  }
  
  .privacy-banner {
    height: 100px;
    bottom: 10px;
    width: 90%;
    max-width: 400px;
    padding: 8px 15px;
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
  }

  .privacy-banner p {
    font-size: 0.7rem;
    text-align: center;
  }

  .privacy-banner button {
    padding: 5px 12px;
    font-size: 0.7rem;
    border-radius: 15px;
  }

  @keyframes float {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(-3px);
    }
  }

}
