@media (max-width: 767px) { 
  html, body { 
    overflow-x: hidden; 
  }
  body {
    margin: 0;
  }
  img { 
    max-width: 100%; 
  } 
  * { 
    box-sizing: border-box; 
    min-width: 0;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  .hidden {
    display: none;
  }
  .show {
    display: block;
  }
  nav.nav { 
    width: 100%; 
    padding: 0.5rem;
    position: relative; 
  } 
  .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 0;
    height: 5rem;
  }
  h2.text-company {
    width: 100%;
  }
  .menu-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    font-size: 1rem;
}
  .dashboard-link {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 80%;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch; /* scroll fluido su iPad/iPhone */
    background: #0f5482;
    flex-direction: column;
    z-index: 1000;
    transition: left 0.4s ease;
    justify-content: flex-start;
   }
  .contLogin {
    display: none;
  }
  .dashboard-link.active {
    display: flex;
  }
  .dashboard-link li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0.5rem 0;
  }
  .close-icon {
    display: block !important;
    padding: 1rem;
    position: absolute;
    right: 0.5rem;
  }
  i.fa-solid.fa-xmark {
    color: red;
    font-size: 2rem;
  }
  .brand-wrapper {
    position: relative;
    overflow: hidden; 
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
  .carousel-track {
    width: 100%;
    max-width: 100%;
  }
  .dashboard-link ul {
    margin-top: 3rem;
    padding: 0;
    list-style: none;
  }
  .menu-head {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1rem;
    transform: translateZ(0);
   }
  .menu-head a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .more-product,
  #more-services {
      display: flex !important;
      align-items: center;
      cursor: pointer;
  }
  .more-product, .more-service {
    width: 24px;
    min-width: 24px;
    flex: 0 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .more-product i, .more-service i {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s ease;
    will-change: transform;
  }
  i.fa-solid.fa-caret-down {
    color: white;
    font-size: 1.3rem;
  }
  .dashboard-link li a {
    color: white;
    font-size: 1.2rem;
  }
  .dropdown {
    display: none !important;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .dropdown-content {
    right: -6.4rem;
  }
  .dropdown.active {
    display: flex !important;
    flex-direction: column;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .more-product i, .more-service i {
    display: inline-block;
    transition: transform 0.3s ease;
    will-change: transform;
  }
  .more-product i.rotate, .more-service i.rotate {
    transform: rotate(180deg);
  }
  .logo-wrapper,
  .dashboard-login {
    width: auto;
    height: auto;
  }
  .logo-wrapper, 
  .dashboard-login { 
    max-width: 100%; 
    height: auto; 
  } 
  .logo-wrapper {
    width: auto;
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5rem;
  }
  .logo {
      width: 100%;
      max-width: 130px;
      height: auto;
      max-height: 150px;
      display: block;
  }
  .dashboard-login {
      width: auto;
      flex: 1;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.8rem;
  }
  .cont-icon {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .cont-icon > a {
    flex-shrink: 0;
  }
  #user-name {
    position: static;
    margin-left: 0;
    max-width: 120px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dropdown { 
    position: static; 
    min-width: 100%; 
  }
  section.brand {
    height: auto;
    min-height: 220px;
    padding: 2.5rem 1rem;
  }
  section.container-rental {
    height: auto;
    text-align: left;
  }
  .rental {
    flex-direction: column;
    height: auto;
  }
  div#cont-rental {
    display: flex;
    flex-direction: column;
  }
   .imgrental-wrapper {
    gap: 0.4rem;
    margin-top: 2rem;
  }
  .imgrental {
    width: 50%;
    position: relative;
  }
  .imgrental img {
    width: 100%;
    height: 100px;
    display: block;
  }
  p.text-img {
    position: absolute;
    bottom: 1rem;
    left: 0.5rem;
    color: white;
    font-size: 1rem;
  }
  .container-strenghts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .home-company .companys {
    display: flex;
  }
  .companys {
    width: 100%;
    flex-direction: column;
  }
  .home-company .img-company {
    min-height: 280px;
    height: 280px;
  }
   .img-company img {
    width: 100%;
    height: auto;
  }
  h2.text-rental {
    margin-left: 1rem;
  }
  .strenght {
    width: 100%;
    margin-bottom: 1rem;
    height: auto;
  }
  footer {
    max-height: none;
  }
  .container-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .about,
  .link,
  .area-legale,
  .newsletter {
    height: auto;
    padding: 1rem;
  }
  .whatsapp-text {
    margin-bottom: 3.5rem;
  }
  .whatsapp-button {
    position: fixed;
    bottom: 10px;
    z-index: 1000;
  }
}

@media (hover: hover) and (pointer: fine) {
    .menu-item:hover .submenu {
        display: block;
    }
}

@media (min-width:768px) and (max-width: 1024px) {
  .hidden {
    display: none;
  }
  .show {
    display: block;
  }
  .dashboard-link {
    display: none;
    position: fixed;
    top: 0;
    left: 0;

    width: 380px;
    max-width: 80%;
    height: 100dvh;

    overflow: hidden;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;

    background: #0f5482;
    flex-direction: column;
    z-index: 1000;

    transition: left 0.4s ease;
    justify-content: flex-start;
  }

  .dashboard-link.active {
    display: flex;
  }
  .dashboard-link .choiche {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
  }
  .choiche {
    flex: 1;
    min-height: 0; /* importante per flex */
    overflow-y: auto;
    overflow-x: hidden;
}
  .dashboard-link li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0.5rem 0;
  }
  .close-icon {
    display: block !important;
    padding: 1rem;
    position: absolute;
    right: 20px;
    top: 20px;
  }
  i.fa-solid.fa-xmark {
    color: red;
    font-size: 2rem;
  }
  .logo-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
  }

  .logo{
      width:170px;
      height:auto;
  }

  .contLogin{
    display:none;
  }

  .dashboard-login{
      display:flex;
      align-items:center;
  }
  .menu-icon i,
  .dashboard-login i{
      font-size:1.8rem;
  }
  .brand-wrapper {
    position: relative;
    overflow: hidden; 
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
  .carousel-track {
    width: 100%;
    max-width: 100%;
  }
  .dashboard-link ul {
    margin-top: 3.5rem;
    padding: 0;
    list-style: none;
    padding-bottom: 2rem;
  }
  .menu-head {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1rem;
    transform: translateZ(0);
   }
  .menu-head a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .more-product,
  #more-services {
    display: flex !important;
    align-items: center;
    cursor: pointer;
  }
  .more-product, .more-service {
    width: 40px;
    min-width: 24px;
    flex: 0 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .more-product i, .more-service i {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s ease;
    will-change: transform;
  }
  i.fa-solid.fa-caret-down {
    color: white;
    font-size: 1.3rem;
  }
  .dashboard-link li a{
    font-size:1.3rem;
    padding:0.7rem 1.5rem;
    color: white;
  }
  .text {
    font-size: 1.3rem;
  }
  .container{
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    justify-items: center;
    height: 90px;
    padding: 0 2rem;
  }
  .container-mobile{
    display:flex;
    justify-content:flex-start;
    align-items:center;
  }
  .menu-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    cursor:pointer;
  }
  .dropdown {
    overflow: visible;
    display: none !important;
    width: 100%;
    position: relative;
  }
  .dropdown.active {
    display: flex !important;
    flex-direction: column;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .more-product i, .more-service i {
    display: inline-block;
    transition: transform 0.3s ease;
    will-change: transform;
  }
  .more-product i.rotate, .more-service i.rotate {
    transform: rotate(180deg);
  }

  section.container-rental {
    height: auto;
  }
  div#cont-rental {
    display: flex;
    flex-direction: column;
    margin: auto;
  }
  .rental {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
  }
  .imgrental-wrapper {
    gap: 2.5rem;
  }
  .home-company .img-company {
    min-height: 420px;
  }
  .home-company .imgCompany {
    object-position: 15% center;
  }
  .strenght {
    height: auto;
  }
  .container-strenghts{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:2rem;
    height:auto;
  }
  h3.textstrenght {
    height: 50px;
    align-content: center;
  }
  footer {
    overflow: hidden;
    max-height: 750px;
  }

  .cont-text {
    display: flex;
    align-items: center;
    height: 100px;
  }

  .container-footer{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:2rem;
  }

  .about,
  .link,
  .area-legale,
  .newsletter{
      height:auto;
      flex:1;
      min-width:220px;
  }

  .link ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 3rem;
    row-gap: 1rem;
    padding: 0;
    margin: 0;
  }

  li.lilink {
    display: inline-flex;
    align-items: center;
    min-width: 100px;
  }

  div#linknews {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem 4rem;
    gap: 1rem;
  }
}