
/* Hamburger Menu - Mobile e Tablet */
@media only screen and (max-width: 991px) {
    .desktop-menu {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        align-items: stretch;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px 4px;
        z-index: 1001;
        float: right;
        margin-top: 0.5em;
        outline: none;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #0A0A0A;
        background-color: var(--nero, #0A0A0A);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-menu:active span {
        background-color: var(--colore1);
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9999;
        display: flex;
        justify-content: flex-start;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0s 0.3s;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.3s ease, visibility 0s 0s;
    }

    .mobile-menu-content {
        background: #fff;
        background: var(--bianco, #fff);
        width: 100%;
        max-width: 375px;
        height: 100%;
        padding: 2em 1.5em;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        position: relative;
    }

    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateX(0);
    }

    .mobile-menu-close {
        position: absolute;
        top: 1em;
        right: 0.5em;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        font-size: 36px;
        color: #0A0A0A;
        color: var(--nero, #0A0A0A);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
        outline: none;
    }

    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 7em;
    }

    .mobile-menu-nav a {
        color: #0A0A0A;
        color: var(--nero, #0A0A0A);
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 500;
        padding: 0.5em 0;
        transition: color 0.2s ease;
    }

    .mobile-menu-nav a:hover {
        color: #0161FE;
        color: var(--colore1, #0161FE);
    }

    .mobile-menu-nav a.mobile-menu-cta {
        background-color: #0161FE;
        background-color: var(--colore1, #0161FE);
        color: #fff !important;
        color: var(--bianco, #fff) !important;
        padding: 1em 1.5em;
        border-radius: 10em;
        text-align: center;
        margin-top: 2em;
        border: none;
        font-size: 1.2rem;
    }

    .mobile-menu-nav a.mobile-menu-cta:hover {
        background-color: #0051d4;
    }
}

/*TELEFONO - Mobile Optimization*/
@media only screen and (min-width: 230px) and (max-width: 480px) {

    /* Header e Logo */
    .logo-menu {
        padding: 1em;
        margin-left: 0;
        text-align: center;
    }

    .logo-menu img {
        width: 100%;
        max-width: 200px;
    }
    
    .logo {
        width: 14em;
    }

    /* Header Title */
    .header-title {
        min-height: 285px;
        height: auto;
        display: flex;
        align-items: center;
        padding: 2rem 0;
    }

    .header-title h1 {
        font-size: clamp(2rem, 15vw, 3.6rem);
        text-align: left;
        line-height: 0.9;
    }

    /* Bottoni Header */
    .header-bottoni {
        position: fixed !important;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        padding: 0.8em;
        flex-direction: column;
        gap: 0.5em;
    }

    .bottone-vuoto,
    .bottone-pieno {
        width: 100%;
        text-align: center;
        padding: 10px 1em;
        font-size: 1rem!important;
    }

    /* Sezioni generali */
    .no-pad-mobile {
        padding: 0px !important;
    }

    .container {
        padding-left: 1em;
        padding-right: 1em;
    }

    /* Box Cosa Facciamo */
    .box-cosa-facciamo {
        padding-top: 3em !important;
        padding-bottom: 0em !important;
    }

    .box-cosa-facciamo h3 {
        justify-content: left !important;
        text-align: left;
        font-size: 1.2rem;
        padding-top: 0;
        margin-bottom: 1em;
    }

    .box-cosa-facciamo h1 {
        text-align: left;
        font-size: clamp(2rem, 11vw, 3rem);
        font-weight: 600;
        line-height: 1.1;
        margin-bottom: 0.5em;
    }

    /* Service Cards */
    .service-box {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
    }

    .service-card {
        border-radius: 20px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-card h3 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .service-card p {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        flex-grow: 1;
        font-weight: 500;
    }

    .service-card .img-container {
        margin-bottom: 1rem;
    }

    .service-card .img-container img {
        max-width: 280px;
        height: auto;
    }

    .card-footer {
        display: flex;
        flex-direction: column;
        gap: 0rem;
    }

    .btn-more {
        width: 100%;
        text-align: center;
        padding: 10px 1rem;
        font-size: 0.95rem;
    }

    /* Box Chi Siamo / Team */
    .box-chisiamo {
       margin-top: 2em !important;
    }

    .box-chisiamo h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        text-align: left;
        line-height: 1.1;
    }

    .box-chisiamo h3 {
        font-size: 0.9rem;
        text-align: left;
    }

    .box-chisiamo p {
        font-weight: 500;
        font-size: 1.3rem;
        padding-left: 0;
        padding-right: 0;
        padding-top: 1.5em;
        padding-bottom: 1.5em;
        line-height: 1.4;
    }

    /* Box Scelta / Perché Sceglierci */
    .perche-sceglierci {
        padding-top: 3em !important;
        padding-bottom: 3em !important;
    }

    .box-scelta h3 {
        font-size: 0.9rem;
        text-align: left;
        margin-bottom: 1em;
    }

    .box-scelta h1 {
        text-align: left;
        font-size: clamp(2rem, 10vw, 3rem);
        font-weight: 600;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .box-scelta p {
        font-weight: 500;
        font-size: 1rem;
        padding-top: 1em;
        padding-right: 0;
        padding-bottom: 1.5em;
        line-height: 1.4;
    }

    .box-scelta .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .card-body h5 {
        font-size: 1rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .card-body img {
        max-width: 280px;
        height: auto;
        margin-bottom: 1rem;
    }

    /* Testimonianze */
    .testimonianze {
        padding-top: 3em !important;
        padding-bottom: 3em !important;
    }

    .testimonianze h3 {
        text-align: left;
        font-size: 0.9rem;
        margin-bottom: 1em;
    }

    .testimonianze h1 {
        text-align: left;
        font-size: clamp(2rem, 10vw, 3rem);
        font-weight: 600;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .reviews-container {
        padding: 0 10px;
        margin: 20px auto;
        gap: 15px;
    }

    .review-card {
        padding: 20px;
        min-height: auto;
    }

    .review-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .bottone-vuoto-recensioni {
        margin-left: 0;
        width: 100%;
        padding: 8px 0.2em;
        max-width: 365px;
        display: block;
        text-align: center;
        margin-top: 2em;
        margin: 0 auto !important;
        display: flex;
        justify-content: center;
        font-size: clamp(1.2rem, 2vw, 1.2rem) !important;
    }
    
    .paghesolution-blog-section{
        
        padding: 0 !important;
    } 
    /* Blog Section */
    .box-cosa-facciamo.py-5 {
        padding-top: 3em !important;
        padding-bottom: 3em !important;
    }

    /* Footer */
    .footer-top {
        padding: 2em 1em;
    }

    .footer-top h2 {
        margin-bottom: 10px;
        font-weight: 600;
        font-family: var(--font-titoli);
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.1;
        text-align: left;
    }

    .footer-subtitle {
        margin-top: 1em;
        text-align: left;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Popup Mobile */
    .popup-container {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }

    .popup-title h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .popup-title p {
        font-size: 0.9rem;
    }

    .popup-service-card {
        padding: 15px;
    }

    .popup-service-card h3 {
        font-size: 1.2rem;
    }

    /* Utilità generali */
    .box-bianco {
        background-color: var(--bianco);
        padding-bottom: 2em;
    }

    .py-5 {
        padding-top: 3em !important;
        padding-bottom: 3em !important;
    }

    
    #center-mobile {  
        display: flex;
        align-items: center;
    }  
    
    #team-paghe {
        margin: 0;
        font-size: 12px;
    }
}