/* Galleria homepage a tutta larghezza, con taglio panoramico come l'immagine in evidenza. */
.dcic-home-gallery {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: clamp(320px, 38vw, 610px);
    margin: 0 calc(50% - 50vw) 1.5rem;
    overflow: hidden;
    background: #e6e9f2;
}

.dcic-home-gallery__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.dcic-home-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

.dcic-home-gallery__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.dcic-home-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 48%;
}

.dcic-home-gallery__pause {
    position: absolute;
    z-index: 2;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    opacity: .25;
    transition: opacity .2s ease, background-color .2s ease;
}

.dcic-home-gallery:hover .dcic-home-gallery__pause,
.dcic-home-gallery__pause:focus-visible {
    opacity: 1;
}

.dcic-home-gallery__pause:hover,
.dcic-home-gallery__pause:focus-visible {
    background: rgba(0, 0, 0, .85);
    color: #fff;
}


.dcic-home-gallery__news-link {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
}

.dcic-home-gallery__news-link:hover,
.dcic-home-gallery__news-link:focus-visible {
    color: #fff;
}

.dcic-home-gallery__news-caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, 0));
    text-align: left;
}

.dcic-home-gallery__news-kicker {
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dcic-home-gallery__news-title {
    max-width: 60rem;
    font-size: clamp(1.5rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

.dcic-home-gallery__news-cta {
    display: inline-block;
    margin-top: .35rem;
    padding: .35rem .8rem;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
}

.dcic-home-gallery__news-link:hover .dcic-home-gallery__news-cta,
.dcic-home-gallery__news-link:focus-visible .dcic-home-gallery__news-cta {
    background: #fff;
    color: #17334f;
}

@media (max-width: 575.98px) {
    .dcic-home-gallery {
        height: clamp(240px, 56vw, 380px);
    }

    .dcic-home-gallery__pause {
        right: .75rem;
        bottom: .75rem;
        opacity: .8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dcic-home-gallery__slide,
    .dcic-home-gallery__pause {
        transition: none;
    }
}
