/* ============================================================
   REMER - HERO HOMEPAGE
   CSS completo: sostituisce interamente /gallery/hero.css
   Solo #remer-home-hero: non modifica gli altri slider
   ============================================================ */

#remer-home-hero.rh-hero {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100svh;
    min-height: 500px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #191919;
    color: #fff;
    border-radius: 0;
}

#remer-home-hero * { box-sizing: border-box; }
#remer-home-hero[hidden] { display: none !important; }

/* Slide e contenuti multimediali */
#remer-home-hero .rh-stage,
#remer-home-hero .rh-slide,
#remer-home-hero .rh-media,
#remer-home-hero .rh-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#remer-home-hero .rh-slide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .7s ease, visibility .7s ease;
}

#remer-home-hero .rh-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

#remer-home-hero .rh-media {
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}

#remer-home-hero .rh-shade {
    background: linear-gradient(90deg, rgba(0,0,0,.54), rgba(0,0,0,.08) 82%);
    pointer-events: none;
}

/* Testi della hero */
#remer-home-hero .rh-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(5vw, 30px);
    right: 30px;
    max-width: 760px;
    transform: translateY(-50%);
    text-align: left;
}

#remer-home-hero .rh-label {
    display: block;
    margin-bottom: 18px;
    letter-spacing: 3px;
    font-size: clamp(13px, 1vw, 17px);
    color: #fff;
}

#remer-home-hero .rh-title {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: clamp(38px, 5.5vw, 86px) !important;
    font-weight: 500;
    line-height: 1.08;
}

#remer-home-hero .rh-subtitle {
    margin: 0 0 30px;
    font-size: clamp(17px, 1.6vw, 25px);
    color: #fff;
}

#remer-home-hero .rh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,.67);
    border-radius: 0;
    background: rgba(255,255,255,.15);
    color: #fff !important;
    text-decoration: none !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background .2s ease;
}

#remer-home-hero .rh-cta:hover { background: rgba(255,255,255,.3); }

/* Niente frecce laterali */
#remer-home-hero .rh-prev,
#remer-home-hero .rh-next { display: none !important; }

/* Controlli in basso a destra: una sola capsula */
#remer-home-hero .rh-dots {
    position: absolute !important;
    z-index: 50;
    top: auto !important;
    left: auto !important;
    right: 32px !important;
    bottom: 28px !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(14,14,14,.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Pulsanti: niente evidenziazione grigia al tocco/click.
   Conserviamo il focus visibile solo per navigazione da tastiera. */
#remer-home-hero .rh-dots button {
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    outline: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Pallini: area cliccabile generosa, cerchio visivo piccolo */
#remer-home-hero .rh-dot {
    position: relative;
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 32px !important;
    min-width: 28px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
    cursor: pointer;
}

#remer-home-hero .rh-dot::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 50%;
    background: transparent;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#remer-home-hero .rh-dot.is-active::before {
    background: #fff;
    border-color: #fff;
    transform: scale(1.06);
}

@media (hover: hover) {
    #remer-home-hero .rh-dot:hover::before {
        background: rgba(255,255,255,.55);
        border-color: #fff;
    }
    #remer-home-hero .rh-dot.is-active:hover::before { background: #fff; }
}

/* Bottone play/pausa, mostrato o nascosto dal JS */
#remer-home-hero .rh-video-toggle {
    position: static !important;
    inset: auto !important;
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.5) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.11) !important;
    color: #fff !important;
    font: 13px/1 Arial, sans-serif;
    transform: none !important;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

@media (hover: hover) {
    #remer-home-hero .rh-video-toggle:hover {
        background: rgba(255,255,255,.26) !important;
        border-color: #fff !important;
    }
}

#remer-home-hero .rh-dots button:focus:not(:focus-visible) { outline: none !important; }
#remer-home-hero .rh-dots button:focus-visible,
#remer-home-hero .rh-cta:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 767px) {
    #remer-home-hero.rh-hero { min-height: 450px; }
    #remer-home-hero .rh-content {
        left: 24px;
        right: 24px;
        max-width: none;
        text-align: center;
    }
    #remer-home-hero .rh-label { letter-spacing: 2px; }
    #remer-home-hero .rh-dots {
        right: 16px !important;
        bottom: 20px !important;
        padding: 5px 7px !important;
    }
    #remer-home-hero .rh-dot {
        width: 26px !important;
        min-width: 26px !important;
        flex-basis: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #remer-home-hero .rh-slide,
    #remer-home-hero .rh-dot::before,
    #remer-home-hero .rh-video-toggle,
    #remer-home-hero .rh-cta { transition: none; }
}


/* ==========================================
   REMER HERO - TESTI STILE ORIGINALE DESKTOP
   ========================================== */

@media (min-width: 992px) {

    #remer-home-hero .rh-content {
        position: absolute;
        z-index: 2;

        /* Allineamento in basso a sinistra */
        top: auto !important;
        bottom: 12% !important;
        left: 7% !important;
        right: auto !important;
        transform: none !important;

        max-width: 850px;
        text-align: left;
    }

    /* Etichetta superiore */
    #remer-home-hero .rh-label {
        display: block;
        margin-bottom: 20px;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    /* Titolo principale */
    #remer-home-hero .rh-title {
        margin: 0 0 24px !important;
        font-size: clamp(48px, 5vw, 82px) !important;
        font-weight: 500;
        line-height: 1.08;
        letter-spacing: -1px;
        text-transform: uppercase;
    }

    /* Sottotitolo */
    #remer-home-hero .rh-subtitle {
        margin: 0 0 32px;
        font-size: 22px;
        line-height: 1.5;
    }

    /* Pulsante Scopri di più */
    #remer-home-hero .rh-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-height: 46px;
        padding: 12px 26px;

        border: 1px solid rgba(255,255,255,.75);
        border-radius: 30px;
        background: rgba(0,0,0,.15);

        color: #fff !important;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none !important;

        backdrop-filter: blur(5px);
        transition: background .25s ease;
    }

    #remer-home-hero .rh-cta:hover {
        background: rgba(255,255,255,.25);
    }
}
