/* ==========================================================
   REMER - COLLECTION HERO VIDEO
   Fullscreen / Responsive / HTML5
   ========================================================== */

/* ==========================================================
   CONTENITORE PRINCIPALE
   Attivo soltanto in presenza di un video valido
   ========================================================== */

.rm-cover-v2 .collection-cover.rm-collection-hero-active {
    position: relative !important;

    width: 100% !important;

    height: 100vh !important;
    height: 100dvh !important;

    min-height: 0 !important;
    max-height: none !important;

    overflow: hidden !important;
}

/* Contenitori originali del carousel */

.rm-collection-hero-active #carouselSlider,
.rm-collection-hero-active .carousel-inner,
.rm-collection-hero-active .carousel-item-top-home {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.rm-collection-hero-active .carousel-item-top-home {
    position: relative !important;
    width: 100% !important;
}

/* ==========================================================
   IMMAGINE ORIGINALE / FALLBACK
   ========================================================== */

.rm-collection-hero-active .carousel-item-top-home > img {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center !important;
}

/* ==========================================================
   VIDEO FULLSCREEN
   ========================================================== */

.rm-collection-hero-video {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    pointer-events: none;

    opacity: 0;
    z-index: 1;

    transition: opacity .6s ease;
}

/* Mostra il video quando inizia la riproduzione */

.rm-collection-hero-video.is-visible {
    opacity: 1;
}

/* ==========================================================
   TITOLO ORIGINALE DELLA COLLEZIONE
   ========================================================== */

.rm-collection-hero-active .carousel-caption {
    z-index: 5 !important;
}

.rm-collection-hero-active .title-slide {
    text-shadow: 0 2px 15px rgba(0, 0, 0, .2);
}

/* ==========================================================
   CONTROLLER PLAY / PAUSA
   ========================================================== */

.rm-collection-hero-controller {
    position: absolute !important;

    right: 30px !important;
    bottom: 30px !important;

    z-index: 20 !important;

    box-sizing: border-box;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 44px !important;
    height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(255, 255, 255, .7) !important;
    border-radius: 50% !important;

    background: rgba(0, 0, 0, .25) !important;
    color: #fff !important;

    cursor: pointer;

    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    transition:
        background .25s ease,
        border-color .25s ease;
}

/* Icone SVG universali */

.rm-collection-hero-controller svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: currentColor;

    pointer-events: none;
}

/* Hover desktop */

@media (hover: hover) and (pointer: fine) {

    .rm-collection-hero-controller:hover {
        background: rgba(0, 0, 0, .55) !important;
        border-color: #fff !important;
    }

}

/* Accessibilita */

.rm-collection-hero-controller:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .rm-collection-hero-controller {
        right: 15px !important;
        bottom: 20px !important;

        width: 44px !important;
        height: 44px !important;
    }

}

/* ==========================================================
   RIDUZIONE ANIMAZIONI
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .rm-collection-hero-video,
    .rm-collection-hero-controller {
        transition: none !important;
    }

}

/* ==========================================
   REMER - BARRA PRELOADER COLLEZIONI
   ========================================== */

html.rm-collection-loading #remer-preloader .remer-preloader-bar {
    position: relative;

    display: block !important;

    width: 160px;
    height: 2px;

    background: rgba(255, 255, 255, .15);

    overflow: hidden;
    border-radius: 2px;
}

html.rm-collection-loading #remer-preloader .remer-preloader-bar > span {
    position: absolute;

    display: block !important;

    top: 0;
    left: 0;

    width: 40%;
    height: 100%;

    background: #ffffff;

    animation: rmCollectionLoading 1.4s ease-in-out infinite !important;
}

@keyframes rmCollectionLoading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

/* ==========================================
   REMER - ALLINEAMENTO TITOLO COPERTINA
   ========================================== */

.rm-cover-v2 .collection-cover .carousel-caption {
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    max-width: 1600px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: clamp(20px, 5vw, 90px) !important;
    padding-right: clamp(20px, 5vw, 90px) !important;

    box-sizing: border-box;
    text-align: left !important;
}

.rm-cover-v2 .collection-cover .title-slide {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* MOBILE */

@media (max-width: 767px) {

    .rm-cover-v2 .collection-cover .carousel-caption {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

}

.rm-cover-v2 {
    --rm-v2-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v5h4M9 12h6M9 16h6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.rm-cover-v2 {
    --rm-v2-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}