#dynamic-height-image img,
.article__body pre {
    border-radius: 3px
}

#dynamic-height-image .image-entity {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    padding: 0;
    margin: 0;
    position: relative;
    display: block;
    border-radius: 0;
}

#dynamic-height-image-container {
    position: relative;
    width: 100%;
    transition: .2s ease-in-out;
}

.slide-image {
    padding: 0;
    margin: 0;
    border-bottom: 3px solid #2196f3;
}

#dynamic-height-image-container:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow-strong);
}

#dynamic-height-image-container:before {
    content: "\e989";
    background: rgba(0, 0, 0, .5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    height: 40px;
    width: 40px;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    transition: opacity .3s;
    opacity: 0;
    font-family: ito-icon-to5-essential !important
}

#dynamic-height-image-container:hover:before {
    opacity: 1;
    z-index: 100
}


.google-anno-skip {
    width: fit-content !important;
    position: relative;
    display: inline-flex !important;
    margin: auto !important;
    padding: 2px !important;
    align-items: center;
}

.google-anno-skip svg {
    height: 20px !important;
}

.switch-container {
    position: relative;
    display: grid;
    margin: auto;
    padding: 0;
}

.switch-body {
    position: relative;
    display: block;
    padding: 15px;
    margin: auto;
    margin-top: 1rem;
}

.switch {
    opacity: 0;
    width: 0;
    height: 0;
    display: none;
}

.slider {
    position: relative;
    cursor: pointer;
    display: inline-block;
    height: 18px;
    width: 116px;
    margin: auto;
    /* margin-top: 1rem; */
}

.btnSlide {
    position: absolute;
    display: block;
    border-radius: 50%;
    border: 1px solid #97988c;
    background: #d9d9d9;
    width: 28px;
    height: 28px;
    transition: all 0.5s ease-in-out;
    right: 22px;
    top: -6px;
    box-shadow: 0 0 3px rgb(0 0 0 / 45%);
}

.slider::before {
    position: absolute;
    content: attr(data-content-off);
    font-size: 9px;
    color: white;
    top: 8px;
    left: 0px;
    border-radius: 6px;
    transform: translateY(-50%);
    transition: .4s;
    width: -webkit-fill-available;
    height: 16px;
    background: #1877f2;
    padding-top: 2px;
    margin-left: auto;
    border: 1px solid darkgray;
    text-transform: uppercase;
}

.switch:checked+.slider .btnSlide {
    transform: translateX(19px);
}

.slider .btnSlide {
    transform: translateX(-63px);
}

.switch:checked+.slider::before {
    content: attr(data-content-on);
    background: #330e0e;
}

.center-content {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.google-auto-placed {
    margin: 1rem auto 3rem auto !important;
    width: 94% !important;
    display: flex;
    justify-content: center;
}

.imgGridSingle:hover>.exif-info {
    display: flex;
}

.exif-info {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    transition: all 0.3s;
    display: none;
}

.btn-exif {
    display: flex;
    background: var(--color-teal-200);
    color: var(--text-color);
    cursor: pointer;
    padding: 11px;
    margin: 7px;
    transition: .2s ease-in-out;
    border-radius: 20px;
    box-shadow: 0 0 20px rgb(49 49 49 / 64%);
}

.btn-exif:hover {
    background: var(--bg-color-hover);
    color: var(--text-color);
}


.preloadLazy {
    position: absolute;
    width: 100%;
    height: 100%;
    background: no-repeat center/30% #404040 url(/pic/standard/icon/preloader-primary.svg);
    background-size: auto;
}

.preloadLazy {
    -webkit-transition: opacity .3s;
    -moz-transition: opacity .3s;
    -ms-transition: opacity .3s;
    -o-transition: opacity .3s;
    transition: opacity .3s;
    opacity: 1
}

.fb_iframe_widget {
    display: flex !important;
    height: 44px;
    width: 129px;
    margin: auto;
    margin-bottom: 32px !important;
    margin-top: 11px !important;
    justify-content: center;
    align-items: center;
}

.share-dev {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: normal !important;
}

.share-dev button {
    margin: 4px 3px;
    padding: 10px 18px;
    border-radius: 10px 4px
}

.share-dev button i {
    padding-right: 8px;
}

.info-circle {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border: 1px solid;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    margin-right: 7px;
    margin-left: 7px;
}

.info-circle:hover {
    background: var(--background-shadow-alf-0);
    color: var(--always-gray-95);
}

#notfound object {
    overflow-clip-margin: padding-box !important;
    overflow: hidden !important;
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
    padding-top: 0rem;
}

.waves-effect {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

.waves-effect .waves-ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    pointer-events: none;
    background: rgba(0, 0, 0, .2);
    background: radial-gradient(rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, .5) 60%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    -webkit-transition: .5s ease-out;
    transition: .5s ease-out;
    -webkit-transform: scale(0) translate(0, 0);
    transform: scale(0) translate(0, 0)
}

.waves-effect.waves-light .waves-ripple {
    background: rgba(255, 255, 255, .4);
    background: radial-gradient(rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .3) 40%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .5) 60%, rgba(255, 255, 255, 0) 70%)
}


.align-auto {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 4px;
    align-content: space-around;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly
}

.align-auto iframe {
    max-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 20px !important
}

#article iframe {
    padding: 6px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: var(--background-card) !important;
    margin: 0;
}

#article iframe.rumble,
#article iframe.youtube {
    background: -webkit-linear-gradient(78deg, #101011 0, rgb(50 50 66) 54%, #141617 100%);
    background: linear-gradient(78deg, #101011 0, rgb(50 50 66) 54%, #141617 100%);
    padding: 7px;
    margin-top: auto;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: -webkit-fill-available;
    min-height: 320px;
}

#article .image-gallery iframe {
    margin: auto;
    padding: 29px;
    border: none
}

.rumble:not(iframe) {
    height: 40px !important;
    padding: 18px 13px !important
}


/* GRIGLIA APPLICATA DIRETTAMENTE AI SOCIAL-EMBED */
.article__body>.social-embed {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 2%);
    margin: 0.5rem 0.25rem;
    box-sizing: border-box !important;
    align-items: flex-start;
}

/* EMBED LARGHI - occupano tutta la riga */
.article__body>.social-embed.instagram-embed,
.article__body>.social-embed.tiktok-embed,
.article__body>.social-embed.youtube-embed {
    display: inline-flex;
    flex-wrap: wrap;
}

/* EMBED STRETTI - si affiancano */
.article__body>.social-embed.tiktok-embed,
.article__body>.social-embed.facebook-video-embed,
.article__body>.social-embed.facebook-post-embed,
.article__body>.social-embed.facebook-photo-embed,
.article__body>.social-embed.twitter-embed,
.article__body>.social-embed.linkedin-embed {
    width: calc(49% - 0.5rem);
}


.article__body>.social-embed.facebook-photo-embed iframe {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Altezze specifiche */
.article__body>.social-embed iframe,
.article__body>.social-embed blockquote {
    width: 100%;
}

.article__body>.social-embed iframe {
    height: 85vh;
    max-width: 100%;
}

.article__body>.social-embed blockquote {
    height: 97vh !important;
}

.article__body>.social-embed.tiktok-embed iframe,
.article__body>.social-embed.tiktok-embed blockquote {
    height: 762px !important;
}

.article__body>.social-embed.youtube-embed iframe {
    height: 480px !important;
}

.article__body>.social-embed.facebook-video-embed iframe {
    height: 100vh;
    min-height: inherit;
    width: -webkit-fill-available;
}

.article__body>.social-embed.facebook-post-embed iframe {
    height: 500px !important;
}

.article__body>.social-embed.twitter-embed iframe {
    height: 400px !important;
}

.article__body>.social-embed.linkedin-embed iframe {
    height: 400px !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .article__body>.social-embed {
        width: 100% !important;
        display: block !important;
        margin: 0.75rem 0 !important;
        min-height: min-content;
        height: min-content;
        display: flex !important;
    }

    .article__body>.social-embed.facebook-video-embed,
    .article__body>.social-embed.facebook-post-embed,
    .article__body>.social-embed.facebook-photo-embed,
    .article__body>.social-embed.twitter-embed,
    .article__body>.social-embed.linkedin-embed {
        width: calc(100% - 0.5rem) !important;
        margin: 0 !important;
        display: flex !important;
        padding: 0 !important;
        flex-direction: column;
        height: 494px !important;
    }

    .article__body>.social-embed.facebook-photo-embed iframe {
        width: 100% !important;
        padding: 0 !important;
    }

    .article__body>.social-embed.instagram-embed iframe {
        height: 500px !important;
    }

    .article__body>.social-embed.tiktok-embed iframe,
    .article__body>.social-embed.tiktok-embed blockquote {
        height: 762px !important;
        width: 100% !important;
    }

    .article__body>.social-embed.youtube-embed iframe {
        height: 300px !important;
    }

    .img-gallery[data-image-count="2"] {
        flex-direction: column;
        gap: 7px;
    }

    .img-gallery[data-image-count="2"] .column {
        width: 100%;
    }

    .img-gallery[data-image-count="2"] .imgGridSingle {
        aspect-ratio: 16 / 9;
        /* 🔥 SU MOBILE PIÙ LARGHE */
    }

}

blockquote:not(.instagram-media),
blockquote:not(.twitter-tweet) {
    border-left-color: rgb(154 128 92 / 69%);
}

blockquote:not(.instagram-media),
blockquote:not(.twitter-tweet) {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 40px;
    margin-inline-end: 40px;
    unicode-bidi: isolate;
    border-left: 4px solid rgb(154 128 92 / 69%);
    padding-left: 15px;
    padding-right: 14px;
    margin-left: 3px;
}

blockquote.tiktok-embed {
    width: -webkit-fill-available;
    margin-block-start: inherit;
    margin-block-end: inherit;
    margin-inline-start: inherit;
    margin-inline-end: inherit;
    font-style: italic;
}

blockquote.tiktok-embed iframe {
    padding: 0 !important;
}

blockquote:before:not(.instagram-media),
blockquote:before:not(.twitter-tweet) {
    content: "\fa8e";
    font-size: 25px;
    font-family: ito-icon-to5-essential;
    margin-left: -43px;
    width: 35px;
    padding-left: 0px;
    background: var(--article-border-color);
    position: absolute;
    margin-top: 0px;
    display: block;
    border-left: 3px solid var(--accent);
    line-height: normal;
}

/* instagram stile post */
/* Instagram Embed Styles */
.instagram-embed-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.instagram-media {
    background: #FFF;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 10px 0 rgba(0, 0, 0, 0.15);
    margin: 1px;
    max-width: 540px;
    min-width: 326px;
    padding: 0;
    width: 99.375%;
}

.ig-inner {
    padding: 16px;
}

.ig-link {
    background: #FFFFFF;
    line-height: 0;
    padding: 0 0;
    text-align: center;
    text-decoration: none;
    width: 100%;
    display: block;
}

.ig-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 16px;
}

.ig-avatar {
    background-color: #F4F4F4;
    border-radius: 50%;
    flex-grow: 0;
    height: 40px;
    margin-right: 14px;
    width: 40px;
}

.ig-userinfo {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

.ig-username {
    background-color: #F4F4F4;
    border-radius: 4px;
    flex-grow: 0;
    height: 14px;
    margin-bottom: 6px;
    width: 100px;
}

.ig-post-type {
    background-color: #F4F4F4;
    border-radius: 4px;
    flex-grow: 0;
    height: 14px;
    width: 60px;
}

.ig-content-placeholder {
    padding: 19% 0;
    background: #fafafa;
}

.ig-instagram-logo {
    display: block;
    height: 50px;
    margin: 0 auto 12px;
    width: 50px;
}

.ig-instagram-logo svg {
    width: 100%;
    height: 100%;
    fill: #000000;
}

.ig-view-text {
    color: #3897f0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 550;
    line-height: 18px;
    padding-top: 8px;
}

.ig-loading-animation {
    padding: 12.5% 0;
}

.ig-loading-dots {
    display: flex;
    flex-direction: row;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
}

.ig-dot {
    background-color: #F4F4F4;
    border-radius: 50%;
    height: 12px;
    width: 12px;
    margin: 0 4px;
}

.ig-caption-placeholder {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    margin-bottom: 24px;
}

.ig-caption-line {
    background-color: #F4F4F4;
    border-radius: 4px;
    flex-grow: 0;
    height: 14px;
    margin-bottom: 6px;
    width: 224px;
}

.ig-caption-line.short {
    width: 144px;
}

.ig-footer {
    color: #c9c8cd;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 17px;
    margin-bottom: 0;
    margin-top: 8px;
    overflow: hidden;
    padding: 8px 0 7px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-footer-link {
    color: #c9c8cd;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    line-height: 17px;
    text-decoration: none;
}

/* fine instagram stile post */

/* FACEBOOK */
.facebook-video-embed,
.facebook-post-embed {
    /* display: flex; */
    /* justify-content: center; */
    /* margin: 20px 0px !important; */
}

.facebook-video-embed iframe,
.facebook-post-embed iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Responsive per video */
.facebook-video-embed iframe {
    width: 267px;
    height: 476px;
}

/* Responsive per post */
.facebook-post-embed iframe {
    width: 500px;
    height: 600px;
}

/* Tablet */
@media (min-width: 768px) {
    .facebook-video-embed iframe {
        width: 400px;
        height: 712px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .facebook-video-embed iframe {
        width: 500px;
        height: 890px;
    }
}

/* FACEBOOK FINE */
.social-embed.linkedin-embed,
.social-embed.twitter-embed {
    display: flex;
    height: auto;
    justify-content: center;
    margin: auto;
    gap: 20px;
}

.article__body .rect a:hover,
fieldset .rect a:hover {
    color: #ffeb3bc2
}

.article__body input[type=search] {
    float: left;
    padding: 9px 13px 9px 23px;
    margin: auto 10px;
    border-radius: 22px;
    border: 2px solid rgba(41, 52, 171, .46);
    transition: .5s
}

.btn {
    border: none;
    outline: 0;
    padding: 12px 16px
}

.image-gallery {
    scroll-snap-type: x mandatory;
    width: 100%;
    justify-content: center
}

.image-item {
    flex: 0 0 auto;
    scroll-snap-align: start
}

.image-item img {
    width: 100%;
    max-width: 100vw;
    cursor: pointer
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 90%);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding-left: 4px;
    padding-right: 4px;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-duration: .63s;
    animation-duration: .63s;
    flex-wrap: wrap
}

.fullscreen-image {
    display: block;
    max-width: 100%;
    overflow-y: auto
}

.fullscreen-modal img {}

.close-button {
    position: fixed;
    top: 17px;
    right: 17px;
    cursor: pointer;
    font-size: 35px;
    border-radius: 50%;
    color: var(--white);
    background: var(--bg-body-block);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    opacity: .7;
    transition: .2s ease-in-out;
    z-index: 1000
}

.close-button:hover {
    background: var(--bg-body-block-hover);
    color: var(--bg-color-hover);
}

.article__body li {
    text-align: -webkit-match-parent;
    display: list-item;
    text-align: -webkit-match-parent
}

.image.left img,
.image.right img {
    float: right;
    margin: auto auto auto 24px;
}

.image.right {
    float: right;
    margin: auto auto auto 24px;
}

.image.left {
    float: left;
    margin: auto 24px auto auto;
    top: -24px;
}

.image.right+div,
.image.right+p,
.image.right+span {
    clear: left
}

.image.left+div,
.image.left+p,
.image.left+span {
    clear: right
}

.image.left,
.image.right {
    max-width: 50%;
    max-height: inherit;
}

.image.left+em,
.image.right+em {
    margin: 20px
}

.image.right img {
    margin: auto auto 24px auto;
    border: none !important;
    max-width: 100%;
}

.image.left img {
    margin: 24px auto auto auto;
    border: none !important;
    max-width: 100%;
}

.image {
    border: 0;
    display: flex;
    position: relative;
    margin-top: -3px;
    margin-bottom: 18px;
    margin-right: 20px;
    padding: 0;
    flex-wrap: wrap;
    align-items: center
}

.img-gallery {
    background: black;
    padding: 0;
    border-radius: 4px;
    box-sizing: border-box;
}

/* GALLERIA GRID*/
:root {
    --black: 0 0% 0%;
    --dark: 0 0% 9%;
    --white: 0 0% 100%;
}

/* GALLERIA GRID - PER GALLERIE MULTIPLE */
.img-gallery {
    background: #000;
    background: -webkit-linear-gradient(rgb(1 7 12 / 86%), #062643);
    background: -o-linear-gradient(rgb(1 7 12 / 86%), #062643);
    background: -moz-linear-gradient(rgb(1 7 12 / 86%), #062643);
    background: linear-gradient(rgb(1 7 12 / 86%), #062643);
    border-radius: 4px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: auto;
    margin-bottom: 10px;
    /* Spazio tra gallerie multiple */
    padding: 5px;
}

.img-gallery+em,
.video-wrapper+em {
    align-items: self-end;
    margin-top: 0px;
    margin-bottom: 25px;
    padding: 9px 18px;
    line-height: 17px;
    font-style: normal;
    font-size: 13px;
    width: fit-content;
    display: block;
    border-radius: 14px;
    background: var(--badge-bg-info);
}

.img-gallery:last-child {
    margin-bottom: 0;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.imgGridSingle {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    flex: 1;
    aspect-ratio: auto;
    /* oppure 4/3, 16/9 ecc. */
    display: flex;
    align-items: center;
}


.img-gallery[data-image-count="2"] .imgGridSingle:nth-child(2) {
    display: flex;
    height: -webkit-fill-available;
}

.img-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
}

.imgGridSingle:hover .overlay {
    opacity: 1;
    cursor: pointer;
}

/* GESTIONE AUTOMATICA PER 1-2-3 IMMAGINI */
.img-gallery[data-image-count="1"] .column,
.img-gallery[data-image-count="2"] .column,
.img-gallery[data-image-count="3"] .column {
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    gap: 0.625rem;
}

/* 1 IMMAGINE - Centrata e grande */
.img-gallery[data-image-count="1"] {
    justify-content: center !important;
    align-items: center !important;
}

.img-gallery[data-image-count="1"] .column {
    max-width: 100% !important;
    max-height: 100vh;
}

.img-gallery[data-image-count="1"] .imgGridSingle {
    max-height: 50vh !important;
}

/* 2 IMMAGINI - Affiancate */
.img-gallery[data-image-count="2"] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 7px;
    width: 100%;
}

.img-gallery[data-image-count="2"] .column {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(50% - 3.5px);
    /* 50% - metà gap */
}

.img-gallery[data-image-count="2"] .imgGridSingle {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    /* 🔥 FORZA STESSA ALTEZZA */
    aspect-ratio: 1 / 1;
    /* 🔥 MANTIENE PROPORZIONI */
}

.img-gallery[data-image-count="2"] .imgGridSingle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 ADATTA IMMAGINE AL CONTENITORE */
    object-position: center;
}

/* GESTIONE AUTOMATICA ORIENTAMENTO */
/* Se una è landscape e l'altra portrait, entrambe si adattano */
.img-gallery[data-image-count="2"] .imgGridSingle.landscape img {
    object-fit: contain;
    /* 🔥 PER LANDSCAPE MOSTRA TUTTA L'IMMAGINE */
    background: #1a1a1a;
    /* Sfondo per spazi vuoti */
}

.img-gallery[data-image-count="2"] .imgGridSingle.portrait img {
    object-fit: cover;
    /* 🔥 PER PORTRAIT RIEMPIE IL CONTENITORE */
}

/* 3 IMMAGINI - Layout triangolare */
.img-gallery[data-image-count="3"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0.625rem !important;
}

.img-gallery[data-image-count="3"] .column:nth-child(1) {
    gap: 0.625rem;
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
}

.img-gallery[data-image-count="3"] .column:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.img-gallery[data-image-count="3"] .column:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* RESPONSIVE - Su mobile torna a colonna singola */
@media (max-width: 768px) {

    .img-gallery[data-image-count="1"] .column,
    .img-gallery[data-image-count="2"] .column,
    .img-gallery[data-image-count="3"] .column {
        width: 100% !important;
        max-width: 100% !important;
    }

    .img-gallery[data-image-count="2"],
    .img-gallery[data-image-count="3"] {
        flex-direction: column !important;
        display: flex !important;
    }

    .img-gallery[data-image-count="3"] {
        display: flex !important;
    }
}

@media (min-width: 1024px) {

    /* GESTIONE AUTOMATICA PER 1-2-3 IMMAGINI */
    .img-gallery[data-image-count="1"] .column,
    .img-gallery[data-image-count="2"] .column,
    .img-gallery[data-image-count="3"] .column {
        flex: none !important;
        width: 100% !important;
    }

    /* 1 IMMAGINE - Centrata e grande */
    .img-gallery[data-image-count="1"] {
        justify-content: center !important;
        align-items: center !important;
    }

    .img-gallery[data-image-count="1"] .column {
        max-width: 100% !important;
    }

    .img-gallery[data-image-count="1"] .imgGridSingle {
        max-height: 70vh !important;
    }

    /* 2 IMMAGINI - Affiancate */
    .img-gallery[data-image-count="2"] {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .img-gallery[data-image-count="2"] .column {
        display: flex;
        width: 50% !important;
        height: 100% !important;
        flex: 1 !important;
        align-items: center;
        flex-direction: row;
        gap: 0.625rem;
    }

    .img-gallery[data-image-count="2"] .column:nth-child(2) {
        height: 100% !important;
    }

    /* 3 IMMAGINI - Layout triangolare */
    .img-gallery[data-image-count="3"] {
        display: flex;
        width: 100% !important;
        gap: 0 !important;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .img-gallery[data-image-count="3"] .column:nth-child(1) {
        flex-direction: row;
        width: 100% !important;
        gap: 0.625rem;
    }

    .img-gallery[data-image-count="3"] .column:nth-child(2) {
        flex-direction: row;
        width: 33% !important;
    }

    .img-gallery[data-image-count="3"] .column:nth-child(3) {
        flex-direction: row;
        width: auto !important;
    }
}

.fa-heart {
    font-size: 2rem;
    mix-blend-mode: difference;
    position: absolute;
    top: 5%;
    right: 5%;
}

/* parte google */
.ipr-container {
    max-width: 240px !important;
}

.ipr-info {
    max-width: 250px;
    padding: 7px;
    text-align: left;
    line-height: 19px;
    margin: auto;
}

@media screen and (max-width: 768px) {
    .result-container {
        padding: 0;
    }

    blockquote {
        margin-block-start: 7px;
        margin-inline-start: 12px;
        margin-inline-end: 2px;
    }

    blockquote:before {
        font-size: 19px;
        margin-left: -31px;
        width: 28px;
        padding-left: 0px;
        background: var(--article-border-color);
        position: absolute;
        margin-top: -2px;
        display: block;
        border-left: 3px solid var(--accent);
    }

    .result-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .result-title a {
        font-size: 15px;
    }

    .result-meta .block {
        font-size: 88%;
    }

    .result-meta .avatar-container {
        width: 46px;
        height: 46px;
        right: 16px;
    }

    article #inarticle {}

    .result-meta .article-img {
        width: 48px;
        height: 48px;
        margin-right: 6px;
    }

    .result-item .channel a,
    .result-item .author a {
        margin-left: 5px;
    }
}


.article__body p img.img-alf {
    position: relative;
    border-radius: 4px;
    background: var(--background);
    z-index: 1;
    margin-left: auto;
}

.article__body span.image.left~em,
.article__body span.image.right~em {
    margin: 20px 0 15px;
    display: math;
    position: relative;
    padding: 8px 19px;
    display: math;
    font-style: normal
}

.article__body img.img-alf~em {
    margin: 16px 16px 16px 10px;
    background: #5e5c5c1c;
    padding: 14px 19px;
    width: calc(50% + 50%);
    font-size: 88%;
    line-height: initial;
    top: unset;
    border-right: 1px solid #c7c7c7a6;
    border-left: 1px solid #c7c7c7a6;
    border-radius: 1px 1px 11px 11px;
    clear: right;
    position: relative
}

.article__body p img {
    position: relative;
    margin-top: auto;
    margin-bottom: 10px;
    margin-right: auto;
    float: none;
    display: initial;
    width: -webkit-fill-available;
    border-radius: 14px;
    overflow: hidden;
}

.article__body .image-entity {
    display: flex;
    justify-content: center;
    padding: 1px 1px;
    border-radius: 5px;
    background: var(--color-charcoal-800);
    width: 100%;
}

.article__body img~em,
.article__body span.image.left~em {
    display: flex;
    position: sticky;
    top: 20px;
    margin-top: 26px;
    margin-bottom: 11px;
    font-weight: 400;
    flex-wrap: wrap;
}

.article__body .videoWrapper~em,
.article__body iframe~em,
.article__body img~em,
.fb-video~em {
    display: flex;
    font-weight: 400;
    font-style: normal;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 9px 16px;
    margin: auto;
    clear: both
}

.article__body span.image.right~em {
    display: flex;
    position: sticky;
    top: 20px;
    margin-top: 26px;
    margin-bottom: 11px;
    font-weight: 600;
    flex-wrap: wrap;
}

.fb-video~em {
    margin: 0 14px 16px 10px !important;
    top: 8px
}

.article__body .videoWrapper~em,
.article__body iframe~em {
    margin: auto
}

.article__body p img:hover {
    box-shadow: 1px 0 19px 2px rgba(96, 96, 96, .5)
}


#CookieLaw,
#anniversario,
.flashneve {
    position: absolute
}

i.rounded-x {
    padding: 2px
}


@media screen and (min-width: 980px) {
    .article__body table td {
        min-width: 120px
    }

    .image.right {
        float: right;
        display: block;
        margin: auto 2px 24px 24px
    }

    .image.left {
        float: left;
        display: block;
        margin: auto 24px 24px auto;
    }

    .article__body span.image.left~em {
        display: flex;
        position: sticky;
        top: 20px;
        margin-top: 36px;
        margin-bottom: 11px;
        flex-wrap: wrap;
    }

    .article__body span.image.right~em {
        display: flex;
        position: sticky;
        top: 20px;
        margin-top: 26px;
        margin-bottom: 11px;
        font-weight: 600;
        flex-wrap: wrap;
    }
}


@media screen and (max-width: 768px) {

    .article__body .rect,
    fieldset .rect {
        padding: 18px 28px;
        line-height: 1.4;
        margin-top: 1rem;
        margin-bottom: 1rem
    }

    .article-head {
        padding: 26px 25px;
        font-size: 15px;
        margin: 1rem auto 3rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center
    }

    .titled .source {
        position: relative;
        font-size: 16px
    }

    .article__body p img {
        max-width: 100% !important;
        width: -webkit-fill-available;
        float: none !important;
    }

    .article__body p strong {
        position: relative
    }

    img.adatta {
        width: inherit;
        overflow: hidden;
        margin: auto;
        height: auto
    }

    .image.left,
    .image.right {
        max-width: 100%;
        margin: 1rem auto auto auto;
        display: block !important;
        width: 100%;
        float: none;
    }

    .image.right+div,
    .image.right+p,
    .image.right+span {
        clear: both
    }

    .article__body p span img.img-alf {
        position: relative;
        display: block;
        float: none !important;
        width: 100% !important;
    }

    .article__body img.img-alf~em {
        margin: -8px 1% 4px;
        background: #5e5c5c1c;
        width: calc(98%);
        font-size: 88%;
        line-height: initial;
        font-style: normal;
        border-top: 1px solid #c7c7c7a6;
        border-right: 1px solid #c7c7c7a6;
        border-left: 1px solid #c7c7c7a6;
        border-bottom: 2px solid #c7c7c7a6;
        border-radius: 1px 1px 11px 11px;
        position: relative;
        z-index: 0;
        clear: inline-end;
        padding: 8px 19px;
        top: -2px
    }

    .article__body span.image.left~em,
    .article__body span.image.right~em {
        padding: 8px 19px;
        display: inline-block;
        margin-top: 0;
        width: 100%
    }

}

@media screen and (max-width: 480px) {
    header {
        padding: 0px;
    }
}



/* Rimozione del preloader */
.article__body-area .loading-element {
    position: absolute;
    display: block;
    top: 2rem;
}

.loading-element {
    position: relative;
    display: block;
    top: 2rem;
}

.preloader-done::before {
    content: "";
    display: none;
}

/* .article-preloader */

.article-preloader,
.lazy-load,
.lazy-loading {
    position: relative;
    height: 150px;
    overflow: hidden;
    color: transparent;
    background: #e7e7e7;
    background: linear-gradient(90deg, #eaeaea 25%, #b8b8b8 50%, #d3d3d3 75%);
    border-radius: 20px !important;
    display: block !important;
    object-fit: cover;
    z-index: 10000;
    animation: placeHolderShimmer 1.8s linear infinite, placeHolderColorShift 3.6s linear infinite alternate !important;
    -webkit-font-smoothing: antialiased;
    animation-delay: 0ms;
    filter: blur(0px);
    /* margin: auto !important; */
}

.lazy-loading .card-title,
.lazy-loading .card-content,
.lazy-loading .info,
.lazy-loading .card-image,
.lazy-loading .avatar {
    border: none !important;
    background: transparent !important;
    color: transparent !important;
    margin: auto !important;
    display: none !important;
    opacity: 0 !important;
}

/* .gradient */
.gradient {
    background: #343434;
    background: linear-gradient(90deg, #2c2c2c 25%, #1f1f1f 50%, #292929 75%);
    background-size: 1000px 640px;
    position: relative;
    animation: placeHolderShimmer 1.8s linear infinite;
}

/* Keyframes */
@keyframes placeHolderShimmer {
    0% {
        background-position: -200% 0;
    }

    55% {
        background-position: 100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.gradient {
    background: #e4e4e4;
    background-size: 1000px 640px;
    position: relative;
    animation: placeHolderShimmer 1.8s linear infinite, placeHolderColorShift 3.6s linear infinite alternate;
}

.waves-effect {
    position: relative;
}

.waves-effect:hover {
    opacity: 1;
}

img {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

#allMedia .facebook {
    background-color: #1776f1;
    color: white;
    clear: both;
    overflow: auto;
    width: -webkit-fill-available;
    text-align: center;
    min-height: 500px;
    padding: 0;
}

#allMedia .facebook * {
    margin: auto;
    padding: 0;
}

@keyframes ripple {
    to {
        transform: scale(4);
        /* Scala l'onda a una dimensione sufficientemente grande */
        opacity: 0;
        /* Durante l'animazione, l'onda diventa trasparente */
    }
}

@keyframes animate {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* Define heart animation */
@keyframes beat {
    0% {
        transform: scale(1) rotate(0deg);
    }

    15% {
        transform: scale(1.2) rotate(0deg);
    }

    30% {
        transform: scale(1) rotate(0deg);
    }

    45% {
        transform: scale(1.2) rotate(0deg);
    }

    70% {
        transform: scale(0.82) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}