

/* fix language menu */
html[lang="en-US"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}
html[lang="it-IT"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}
html[lang="fr-FR"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}
html[lang="es-ES"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

html[lang="de-DE"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}
@media (min-width:1201px) and (max-width: 1420px) {
    html[lang="fr-FR"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
    html[lang="en-US"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
    html[lang="it-IT"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
    html[lang="es-ES"] #masthead.site-header .menu__header .menu__top .nav-link.mgc__depth1-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
}


/* --- Stile Pulsante CONTACT SALES nel Menu Superiore --- */

/* Stato Normale */
.menu-pulsante.menu-btn a.contact-sale-top-btn {
    /* Tipografia */
    font-family: "Source Sans 3", Sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    
    /* Transizione fluida per l'hover */
    transition: all 0.3s ease !important;
}

/* Stato Rollover (Hover) */
.menu-pulsante.menu-btn a.contact-sale-top-btn:hover {
    /* Cambio colore sfondo e bordo come i pulsanti hero */
    background-color: #2363BE !important; /* Blu più chiaro (identico al rollover Elementor) */
    border-color: #2363BE !important;
    color: #ffffff !important;
}


#masthead.site-header .menu__header .menu__bottom .submenu .col-5.count-0.id-menu-0.menuinner {
    flex: 0 0 16.6666666667%;
    max-width: 16.6666666667%;
}

/*
 * While a HubSpot popup is open:
 * - drop header stacking (isolation + z-index 10050 keeps overlays underneath)
 * - hide the chat shell so it cannot flash open or sit over the modal
 */
html.imgc-hs-popup-open .elementor-location-header,
html.imgc-hs-popup-open .imgc-nav,
body.imgc-hs-popup-open .elementor-location-header,
body.imgc-hs-popup-open .imgc-nav,
html.imgc-hs-popup-open #top_fixed_menu,
html.imgc-hs-popup-open #top_fixed_menu.top-fixed-menu--visible,
html.imgc-hs-popup-open #top_fixed_menu.elementor-sticky--active.top-fixed-menu--visible,
body.imgc-hs-popup-open #top_fixed_menu,
body.imgc-hs-popup-open #top_fixed_menu.top-fixed-menu--visible,
body.imgc-hs-popup-open #top_fixed_menu.elementor-sticky--active.top-fixed-menu--visible {
    z-index: 1 !important;
    isolation: auto !important;
}

/*
 * Do not use visibility:hidden on the iframe: browsers throttle hidden
 * iframes and the widget stays on a blank / pre-chat screen after the modal.
 */
html.imgc-hs-popup-open #tiledesk-container,
body.imgc-hs-popup-open #tiledesk-container {
    opacity: 0 !important;
    pointer-events: none !important;
}

/*
 * wp-block-library is dequeued, so Gutenberg alignment classes have no CSS.
 * Center is restored in the theme stylesheet; right was not.
 */
#primary.site-main.blog-single .body-blog .content-blog .has-text-align-right {
    text-align: right;
}

/*
 * CTA Round (stampaCtaRound): the img keeps its width/height attributes
 * (e.g. 575x400) while the theme sets width:90%, so the height stayed fixed
 * and the image was stretched horizontally. Let the height follow the width.
 */
.block-cta-round .immagine img {
    height: auto;
    object-fit: contain;
}

/*
 * Elementor v4 atomic Paragraph: its base CSS sets
 * ".e-paragraph-base a { all: unset }", so inline links inherit the paragraph
 * color and look like plain text. Restore the theme link color.
 */
.elementor .e-paragraph-base a {
    color: #429aff;
    transition: color .2s ease-in-out;
}

.elementor .e-paragraph-base a:hover,
.elementor .e-paragraph-base a:focus-visible {
    color: #429aff;
    text-decoration: underline;
}
