
/* ==========================================
   REMER - SLIDER VERTICALE
   Design moderno, minimale e responsive
   ========================================== */

#remer-location-slider {
    --rs-gap: 22px;

    position: relative;
    width: calc(100% - 60px);
    max-width: 1900px;
    margin: 0 auto;

    box-sizing: border-box;
    font-family: inherit;
}

#remer-location-slider * {
    box-sizing: border-box;
}

/* ==========================================
   CONTENITORE E SCORRIMENTO
   ========================================== */

#remer-location-slider .rs-window {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

#remer-location-slider .rs-track {
    display: flex;
    gap: var(--rs-gap);

    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

/* ==========================================
   CARD SLIDER
   ========================================== */

#remer-location-slider .rs-card {
    position: relative;
    display: block;

    flex: 0 0 calc((100% - 3 * var(--rs-gap)) / 4);
    min-width: 0;
    aspect-ratio: 4 / 5;

    overflow: hidden;
    border-radius: 10px;

    background: #343434;
    color: #fff;
    text-decoration: none;

    isolation: isolate;
}

/* Immagini */

#remer-location-slider .rs-card img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

#remer-location-slider .rs-card:hover img {
    transform: scale(1.045);
}

/* Sfumatura inferiore */

#remer-location-slider .rs-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.70) 0%,
        rgba(0,0,0,.22) 35%,
        transparent 65%
    );

    pointer-events: none;
}

/* ==========================================
   TESTI E PULSANTE
   ========================================== */

#remer-location-slider .rs-info {
    position: absolute;
    z-index: 1;

    bottom: 30px;
    left: 18px;
    right: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    text-align: center;
    pointer-events: none;
}

#remer-location-slider .rs-title {
    margin: 0;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

#remer-location-slider .rs-subtitle {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,.95);
}

/* Bottone scopri di più */

#remer-location-slider .rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 11px 25px;

    border: 1px solid rgba(255,255,255,.45);
    border-radius: 35px;

    background: rgba(60,60,60,.35);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    color: #fff;
    font-size: 13px;
    font-weight: 400;

    transition: background .25s ease;
}

#remer-location-slider .rs-card:hover .rs-btn {
    background: rgba(255,255,255,.25);
}

/* ==========================================
   NAVIGAZIONE - FRECCE MINIMAL
   ========================================== */

#remer-location-slider .rs-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
    margin-top: 20px;
}

/* Frecce */

#remer-location-slider .rs-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;
    width: 36px;
    height: 36px;

    padding: 0;
    margin: 0;

    border: 1px solid rgba(30,30,30,.22);
    border-radius: 50%;

    background: transparent;
    color: #222;

    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        opacity .25s ease;
}

/* Hover */

#remer-location-slider .rs-arrow:hover:not(:disabled) {
    background: #242424;
    border-color: #242424;
    color: #fff;
}

/* Disabilitato */

#remer-location-slider .rs-arrow:disabled {
    opacity: .25;
    cursor: default;
    background: transparent;
}

/* Evita evidenziazione al click */

#remer-location-slider .rs-arrow:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Accessibilità tastiera */

#remer-location-slider .rs-arrow:focus-visible,
#remer-location-slider .rs-card:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 991px) {

    #remer-location-slider {
        width: calc(100% - 40px);
    }

    #remer-location-slider .rs-card {
        flex-basis: calc(
            (100% - var(--rs-gap)) / 2
        );
    }
}

/* ==========================================
   SMARTPHONE
   ========================================== */

@media (max-width: 600px) {

    #remer-location-slider {
        --rs-gap: 14px;
        width: calc(100% - 30px);
    }

    #remer-location-slider .rs-card {
        flex-basis: 100%;
        aspect-ratio: 4 / 4.5;
        border-radius: 10px;
    }

    #remer-location-slider .rs-info {
        bottom: 22px;
        gap: 14px;
    }

    #remer-location-slider .rs-title {
        font-size: 18px;
    }

    #remer-location-slider .rs-controls {
        gap: 8px;
        margin-top: 16px;
    }

    #remer-location-slider .rs-arrow {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

/* ==========================================
   ACCESSIBILITÀ
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    #remer-location-slider .rs-track,
    #remer-location-slider .rs-card img,
    #remer-location-slider .rs-arrow {
        transition: none;
    }
}
