html,
body {
    margin-top: 0 !important;
    top: 0 !important;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.home {
    position: relative !important;
}

.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
body > .skiptranslate > iframe {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

.elementor-element-ef3f76d {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    contain: layout paint !important;
    overflow: hidden !important;
    position: relative !important;
}

.elementor-element-ef3f76d >
.elementor-widget-container,
.elementor-element-ef3f76d
.elementor-template,
.elementor-element-ef3f76d
.elementor-template > .elementor {
    height: 100% !important;
    min-height: 100% !important;
    position: relative !important;
}

.elementor-element-ac3cbff,
.elementor-element-f3c4bff {
    bottom: 0 !important;
    height: 100% !important;
    left: 0 !important;
    min-height: 100% !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    visibility: hidden !important;
    width: 100% !important;
}

.elementor-element-ac3cbff.fix-slider-ready,
.elementor-element-f3c4bff.fix-slider-ready {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.elementor-element-ac3cbff .elementor-slides-wrapper,
.elementor-element-f3c4bff .elementor-slides-wrapper,
.elementor-element-ac3cbff .swiper,
.elementor-element-f3c4bff .swiper,
.elementor-element-ac3cbff .swiper-wrapper,
.elementor-element-f3c4bff .swiper-wrapper,
.elementor-element-ac3cbff .swiper-slide,
.elementor-element-f3c4bff .swiper-slide {
    height: 100% !important;
    min-height: 100% !important;
}

.elementor-element-ac3cbff .swiper-slide-bg,
.elementor-element-f3c4bff .swiper-slide-bg,
.elementor-element-ac3cbff
.swiper-slide-bg.elementor-ken-burns--active,
.elementor-element-f3c4bff
.swiper-slide-bg.elementor-ken-burns--active {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.elementor-element-ac3cbff .elementor-swiper-button,
.elementor-element-f3c4bff .elementor-swiper-button {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: 44px !important;
    min-width: 44px !important;
    width: 44px !important;
}

@media (min-width: 768px) {
    .elementor-element-ef3f76d {
        background-image: url("https://www.clapilpezzounico.com/wp-content/uploads/2026/07/ChatGPT-Image-20-lug-2026-22_17_20.png") !important;
        height: 746px !important;
        min-height: 746px !important;
    }

    .elementor-element-f3c4bff {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .elementor-element-ef3f76d {
        background-image: url("https://www.clapilpezzounico.com/wp-content/uploads/2026/07/ChatGPT-Image-20-lug-2026-22_14_08.png") !important;
        height: 339px !important;
        min-height: 339px !important;
    }

    .elementor-element-ac3cbff {
        display: none !important;
    }
}

.fix-consent {
    bottom: 0 !important;
    contain: layout style paint !important;
    left: 0 !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
}

.fix-consent,
.fix-consent *,
.fix-consent__panel {
    animation: none !important;
    transition: none !important;
}

.fix-consent__panel {
    min-height: 280px !important;
    transform: none !important;
}

.fix-consent__credit-logo {
    display: block !important;
    height: 30px !important;
    object-fit: contain !important;
    width: 100px !important;
}

.gtranslate_wrapper,
.gt_switcher_wrapper,
.gt_float_switcher {
    contain: layout style paint !important;
}

img.wp-image-25 {
    aspect-ratio: 3 / 1 !important;
    display: block !important;
    height: auto !important;
    max-width: 100% !important;
}

.elementor-nav-menu--main {
    min-height: 40px !important;
}

.ccg-card-media,
.ccg-slides {
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
    position: relative !important;
}

.ccg-slides > .ccg-slide {
    height: 100% !important;
    inset: 0 !important;
    object-fit: cover !important;
    position: absolute !important;
    width: 100% !important;
}

.fixreel-carousel__slide,
.fixreel-carousel__card,
.fixreel-carousel__embed {
    aspect-ratio: 9 / 16 !important;
    min-height: 0 !important;
}

.fixreel-carousel__embed iframe {
    height: 100% !important;
    inset: 0 !important;
    position: absolute !important;
    width: 100% !important;
}

.clap-whatsapp-float {
    align-items: center !important;
    display: flex !important;
    height: 56px !important;
    justify-content: center !important;
    width: 56px !important;
}

.clap-whatsapp-float .ri-whatsapp-line {
    display: block !important;
    height: 24px !important;
    line-height: 24px !important;
    width: 24px !important;
}

/* BEGIN FIXAGENCY CLAP AGENTIC FINAL */

/* Contrasto dei contenuti testuali della home. */
body.home .elementor-widget-text-editor p,
body.home .elementor-widget-text-editor p font,
body.home .elementor-widget-text-editor p span,
body.home .elementor-widget-text-editor p strong,
body.home .elementor-element-873595b,
body.home .elementor-element-873595b p,
body.home .elementor-element-873595b font,
body.home .elementor-element-873595b span,
body.home .elementor-element-873595b strong {
    color: #595959 !important;
}

/* Area interattiva reale di almeno 24 × 24 px. */
.elementor-slides-wrapper .swiper-pagination {
    align-items: center !important;
    display: flex !important;
    gap: 2px !important;
    justify-content: center !important;
    min-height: 28px !important;
}

.elementor-slides-wrapper .swiper-pagination-bullet {
    background: transparent !important;
    border: 0 !important;
    height: 24px !important;
    margin: 0 !important;
    min-height: 24px !important;
    min-width: 24px !important;
    opacity: 1 !important;
    position: relative !important;
    width: 24px !important;
}

.elementor-slides-wrapper
.swiper-pagination-bullet::after {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 8px;
    position: absolute;
    top: 8px;
    width: 8px;
}

.elementor-slides-wrapper
.swiper-pagination-bullet-active::after {
    background: #ffffff;
    height: 10px;
    left: 7px;
    top: 7px;
    width: 10px;
}

/* Il banner conserva la stessa geometria dal primo frame. */
.fix-consent {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    padding: 12px !important;
}

.fix-consent__panel {
    box-sizing: border-box !important;
    height: min(520px, calc(100dvh - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    max-width: 560px !important;
    min-height: 0 !important;
    overflow: auto !important;
    transform: none !important;
    width: min(560px, calc(100vw - 24px)) !important;
}

/* Riserva lo spazio della sezione mobile segnalata da Lighthouse. */
@media (max-width: 767px) {
    .fix-consent {
        padding: 8px !important;
    }

    .fix-consent__panel {
        height: min(610px, calc(100dvh - 16px)) !important;
        max-height: calc(100dvh - 16px) !important;
        width: calc(100vw - 16px) !important;
    }

    .elementor-element-ee01f79 {
        box-sizing: border-box !important;
        min-height: 230px !important;
    }

    img.wp-image-902 {
        aspect-ratio: 1 / 1 !important;
        display: block !important;
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Riduce il lavoro di rendering delle sezioni sotto la piega. */
.elementor-element-bde82ad,
.elementor-element-5de3136,
.elementor-element-78e87a2 {
    contain-intrinsic-size: auto 800px;
    content-visibility: auto;
}

/* END FIXAGENCY CLAP AGENTIC FINAL */

/* START FIX CLAP REELS VISIBILITY FINAL */

/*
 * Annulla le regole CLS che rendevano l'iframe assoluto
 * e lo riducevano all'altezza della sola intestazione Instagram.
 */
.elementor-element-5de3136{
    content-visibility: visible !important;
    contain: none !important;
    contain-intrinsic-size: auto !important;
}

.elementor-element-5de3136,
.elementor-element-5de3136 > .e-con-inner,
.elementor-element-5de3136 .elementor-widget-shortcode,
.elementor-element-5de3136 .elementor-widget-container,
.elementor-element-5de3136 .elementor-shortcode{
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.fixreel-carousel{
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
    content-visibility: visible !important;
}

.fixreel-carousel__viewport{
    height: auto !important;
    min-height: 650px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    contain: none !important;
    content-visibility: visible !important;
}

.fixreel-carousel__track{
    align-items: flex-start !important;
    height: auto !important;
    min-height: 650px !important;
    max-height: none !important;
    overflow: visible !important;
}

.fixreel-carousel__slide,
.fixreel-carousel__card,
.fixreel-carousel__embed{
    position: relative !important;
    inset: auto !important;

    height: auto !important;
    min-height: 650px !important;
    max-height: none !important;

    aspect-ratio: auto !important;

    overflow: visible !important;
    contain: none !important;
    content-visibility: visible !important;
}

.fixreel-carousel__card{
    padding: 10px !important;
}

.fixreel-carousel blockquote.instagram-media,
.fixreel-carousel .instagram-media,
.fixreel-carousel .instagram-media-rendered{
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 650px !important;
    min-height: 650px !important;
    max-height: none !important;

    margin: 0 auto !important;

    position: relative !important;
    inset: auto !important;

    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.fixreel-carousel iframe,
.fixreel-carousel iframe.instagram-media-rendered{
    display: block !important;

    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 650px !important;
    min-height: 650px !important;
    max-height: none !important;

    margin: 0 auto !important;
    border: 0 !important;

    aspect-ratio: auto !important;

    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 1024px){
    .fixreel-carousel__viewport,
    .fixreel-carousel__track,
    .fixreel-carousel__slide,
    .fixreel-carousel__card,
    .fixreel-carousel__embed,
    .fixreel-carousel blockquote.instagram-media,
    .fixreel-carousel .instagram-media,
    .fixreel-carousel .instagram-media-rendered,
    .fixreel-carousel iframe,
    .fixreel-carousel iframe.instagram-media-rendered{
        min-height: 680px !important;
    }

    .fixreel-carousel blockquote.instagram-media,
    .fixreel-carousel .instagram-media,
    .fixreel-carousel .instagram-media-rendered,
    .fixreel-carousel iframe,
    .fixreel-carousel iframe.instagram-media-rendered{
        height: 680px !important;
    }
}

@media (max-width: 767px){
    .fixreel-carousel{
        max-width: calc(100% - 20px) !important;
    }

    .fixreel-carousel__viewport,
    .fixreel-carousel__track,
    .fixreel-carousel__slide,
    .fixreel-carousel__card,
    .fixreel-carousel__embed,
    .fixreel-carousel blockquote.instagram-media,
    .fixreel-carousel .instagram-media,
    .fixreel-carousel .instagram-media-rendered,
    .fixreel-carousel iframe,
    .fixreel-carousel iframe.instagram-media-rendered{
        min-height: 720px !important;
    }

    .fixreel-carousel blockquote.instagram-media,
    .fixreel-carousel .instagram-media,
    .fixreel-carousel .instagram-media-rendered,
    .fixreel-carousel iframe,
    .fixreel-carousel iframe.instagram-media-rendered{
        height: 720px !important;
    }
}

/* END FIX CLAP REELS VISIBILITY FINAL */
