/* ONLY XS */
@media (min-width: 0px) and (max-width: 575.98px) { ... }

/* ONLY SM */
@media (min-width: 576px) and (max-width:767.98px) { ... }

/* ONLY MD */
@media (min-width: 768px) and (max-width: 991.98px) { ... }

/* ONLY LG */
@media (min-width: 992px) and (max-width: 1199.98px) { ... }

/* ONLY XL */
@media (min-width: 1200px) and (max-width: 1399.98px) { ... }

/*// X-Small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) { 
    .container-custom {
        max-width: 540px; 
    }
    .image-page-banner {
        background-attachment: scroll; 
        background-repeat: no-repeat;
        background-size: auto; 
        background-image: none !important;
    }
    .text-banner h1 {
        font-size: 8.5vw;
    }
    .testo-processo {
        font-size: 25px;
        line-height: 33px;
    }
    .icone-gruppo.icone-aziende-fasi .icone {
        text-align: center;
        width: 33%;
        float: left;
        padding: 7px 15px;
        margin-right: 0;
    }
}

/*// Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) { 

    html {
        font-size: 15px; /* Base del rem */
    }
    
    h1 {
        font-size: 4.3rem;
        letter-spacing: -0.20rem;
    }
    
    .text-xl{
        font-size: 2.5rem;
    }
    
    .navbar {
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
    
    .navbar .navbar-container {
        border-bottom: transparent;
    }
    .height-banner {
        height: 40vh !important;
        width: 100%;
    }
    .h1 {
        font-size: 25px;
        line-height: 34px;
        font-weight: 700;
    }
    .text-sister-home {
        width: 100%;
    }
    .text-blockquote {
        font-size: 33px;
    }
}

/*// Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {
    
    section{
        padding-top:100px;
        padding-bottom:100px;
    }
    .height-banner {
        height: 50vh !important;
        width: 100%;
    }
    .h3 {
        font-size:20px;
        line-height:25px;
    }
    #navbarText {
        padding-top: 20px;
    }
    .magazine-mobile-category-grid {
    display: flex; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 2px 2px 10px;
    grid-template-columns: none;
  }
  .magazine-mobile-category-grid::-webkit-scrollbar { display: none; }
  .magazine-mobile-category-link {
    display: inline-flex; flex: 0 0 auto; width: auto; min-width: 0;
    padding: 9px 14px; border: 1px solid #dedede; border-radius: 999px;
    white-space: nowrap; overflow-wrap: normal; line-height: 1.3;
    font-size: 14px; font-weight: 500; text-decoration: none;
    scroll-snap-align: start;
  }
  .magazine-mobile-category-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .magazine-category-swipe-hint { flex-shrink: 0; color: #666; font-size: 12px; }
    
}

/*// Large devices (desktops, less than 1200px)*/
@media (max-width: 1199.98px) { 
    
 html {
    font-size: 15px; /* Definisci la base del rem */
}

}

/*// X-Large devices (large desktops, less than 1400px)*/
@media (max-width: 1399.98px) { ... }

/*// Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) { ... }

/*// Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) { ... }

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) { 
    
    .w-lg-50{
        width: 50%;
    }
    
    .w-lg-75{
        width: 75%;
    }
}

/*// X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) { ... }

/*// XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) { ... }