/* Standalone PHP runtime overrides: video cover, sticky, animations, modals, cookie banner */
body.page-id-1153 .video-intro,
body.page-id-1153 .video-scale,
body.page-id-1153 .piq-registra,
body.page-id-1383 .video-intro,
body.page-id-1383 .video-scale,
body.page-id-1383 .piq-registra {
    display: none !important;
}

.elementor-background-video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.elementor-background-video-hosted {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Sticky elements inside parent container */
@media (min-width: 768px) {
    .pq-sticky-enabled {
        position: -webkit-sticky;
        position: sticky;
        top: 60px;
        align-self: flex-start;
        z-index: 10;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .pq-sticky-enabled {
        top: 30px;
    }
}
/* Ensure ancestors of sticky elements don't break position:sticky */
.e-con:has(.pq-sticky-enabled) {
    overflow: visible !important;
}
/* Some page CSS sets html/body { overflow-x: hidden }, which turns them into scroll
   containers and disables position:sticky (stacking module cards, sticky columns).
   clip still prevents horizontal scrolling without that side effect, as on the home. */
html,
body {
    overflow-x: clip !important;
}

/* Smooth mega-menu visibility */
.premium-nav-menu .premium-mega-nav-item > .premium-mega-content-container,
.premium-nav-menu .menu-item-has-children > .premium-sub-menu {
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.premium-nav-menu .premium-item-hovered > .premium-mega-content-container,
.premium-nav-menu .premium-item-hovered:not(.premium-mega-nav-item) > .premium-sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Home client logos: white band to separate it from the following grey section */
.elementor .elementor-element.pq-logos-section:not(.elementor-motion-effects-element-type-background) {
    background-color: #FFFFFF;
}

/* Soluzione / Solution: PIQAPART Node cards, same 4:3 photo crop as on the PIQAPART Node page */
.elementor-439 .elementor-element.elementor-element-18867ab img,
.elementor-439 .elementor-element.elementor-element-9f6431c img,
.elementor-439 .elementor-element.elementor-element-38e2daf img,
.elementor-1439 .elementor-element.elementor-element-7a90ee1 img,
.elementor-1439 .elementor-element.elementor-element-9e8cce5 img,
.elementor-1439 .elementor-element.elementor-element-7724436 img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 50%;
}
.elementor-439 .elementor-element.elementor-element-18867ab img,
.elementor-1439 .elementor-element.elementor-element-7a90ee1 img {
    object-position: 50% 45%;
}

/* Footer links: brand orange on hover */
.elementor-location-footer .elementor-widget-text-editor a {
    transition: color 0.3s;
}
.elementor-location-footer .elementor-icon-list-item > a:hover .elementor-icon-list-text,
.elementor-location-footer .elementor-icon-list-item > a:focus-visible .elementor-icon-list-text,
.elementor-location-footer .elementor-widget-text-editor a:hover,
.elementor-location-footer .elementor-widget-text-editor a:focus-visible {
    color: var(--e-global-color-accent, #E88D00);
}

/* Mobile nested accordion smooth open/close */
.e-n-accordion-item > summary.e-n-accordion-item-title {
    cursor: pointer;
    list-style: none;
}
.e-n-accordion-item > summary.e-n-accordion-item-title::-webkit-details-marker {
    display: none;
}

/* Entrance animations */
.elementor-invisible {
    opacity: 0;
}
.animated {
    animation-duration: 0.75s;
    animation-fill-mode: both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.fadeIn { animation-name: fadeIn; }
.fadeInUp { animation-name: fadeInUp; }

/* Popup modal container */
.elementor-popup-modal.pq-modal-open {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999999 !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    padding: 20px;
    overflow-y: auto;
}
.elementor-popup-modal:not(.pq-modal-open) {
    display: none !important;
}
.elementor-popup-modal.pq-modal-open .dialog-widget-content {
    position: relative;
    margin: auto;
}
.elementor-popup-modal.pq-modal-open .dialog-close-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Form UX helpers */
.pq-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.pq-field-error {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 1px #d93025 !important;
}
.pq-form-feedback {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    width: 100%;
}
.pq-form-feedback--error {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}
.pq-form-feedback--ok {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
}

/* Complianz consent hidden class */
.cmplz-hidden {
    display: none !important;
}

/* Accessibility statements are plain pages without an Elementor container, so nothing keeps
   their title clear of the floating header. Same title position as the privacy policies. */
main.post-1217 > .page-header,
main.post-1456 > .page-header {
    padding-top: 192px;
}

/* Legal pages: the page title is the H1 but keeps the H2 typography it was designed with. */
.elementor-kit-6 :is(.elementor-1199, .elementor-1200, .elementor-1458, .elementor-1460) h1.elementor-heading-title {
    font-family: var( --e-global-typography-secondary-font-family ), Sans-serif;
    font-size: var( --e-global-typography-secondary-font-size );
    font-weight: var( --e-global-typography-secondary-font-weight );
    line-height: var( --e-global-typography-secondary-line-height );
    letter-spacing: var( --e-global-typography-secondary-letter-spacing );
}

/* Headings promoted for a correct outline keep the typography of the tag they replaced. */
.elementor-kit-6 :is(.post-1217, .post-1456) h2.wp-block-heading {
    font-family: var( --e-global-typography-96d9362-font-family ), Sans-serif;
    font-size: var( --e-global-typography-96d9362-font-size );
    font-weight: var( --e-global-typography-96d9362-font-weight );
    line-height: var( --e-global-typography-96d9362-line-height );
    letter-spacing: var( --e-global-typography-96d9362-letter-spacing );
}

:is(.elementor-1746, .elementor-1749) .elementor-element.elementor-element-1c11e75 p {
    background: linear-gradient(144deg, #E88D00 5.6%, #3D4654 78.1%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
