:root {
    --label-bg: rgba(0, 0, 0, 0.3);
    --pager-dot-bg: rgba(255, 255, 255, 0.35);
    --pager-dot-active: #fff;
}

/* SLIDESHOW WRAP */
.edil_slideshow-wrap {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* CONTAINER SLIDES */
.edil_slides {
    width: 100%;
    height: 100%;
    transition: transform 700ms cubic-bezier(.22, .9, .3, 1);
    will-change: transform;
}

/* OGNI SLIDE */
.edil_slide {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 5vw, 64px);
    font-weight: 700;
    text-align: center;
    background-size: cover;
    background-position: center;
}

/* SLIDE VIDEO */
.edil_slide.edil_slide--video {
    position: relative;
    background: #000;
}

.edil_video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

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

/* LABEL NORMALE */
.edil_label {
    padding: clamp(1rem, 5vw, 20rem);
    color: #fff;
    font-size: clamp(24px, 5vw, 128px);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* PAGER */
.edil_pager {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    cursor: pointer;
}
.edil_pager {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


.edil_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pager-dot-bg);
    transition: all .3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.edil_dot.edil_active,
.edil_dot:hover {
    background: var(--pager-dot-active);
    transform: scale(1.4);
}

/* CONTROLLI VIDEO */
.edil_video-toggle-sound,
.edil_video-playpause {
    position: absolute;
    z-index: 1000;
    width: clamp(44px, 6vw, 56px);
    height: clamp(44px, 6vw, 56px);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: clamp(18px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.edil_video-toggle-sound:hover,
.edil_video-playpause:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.edil_video-playpause {
    left: 50%;
    bottom: clamp(40px, 8vh, 80px);
    transform: translateX(-50%);
}

.edil_video-toggle-sound {
    right: clamp(20px, 4vw, 40px);
    bottom: clamp(40px, 8vh, 80px);
}

.edil_video-toggle-sound.is-muted::before { content: '🔇'; }
.edil_video-toggle-sound.is-unmuted::before { content: '🔊'; }
.edil_video-playpause.is-paused::before { content: '▶'; }
.edil_video-playpause.is-playing::before { content: '⏸'; }

@media (max-width: 768px) {
    .edil_pager { right: 15px; gap: 8px; }
    .edil_dot { width: 8px; height: 8px; }
}
/* Nascondi pallini all'ultima slide */
.edil_pager.edil_pager--hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}
/* BOX EMAIL - RELATIVO ALLO SLIDER */
.edil_slideshow-wrap {
    position: relative; /* Container padre */
}

.edil_email-link {
	font-family: 'adobe-garamond-pro';
    font-size: 20px;
    width: 200px;
    position: absolute;
    bottom: 0px;
    right: 0;
    background: #fff;
    color: #000 !important;
    padding: 12px 20px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.15); */
    z-index: 100;
    transition: all 0.3s ease;
    border: 0px solid rgba(0,0,0,0.1);
    white-space: nowrap;
}
.edil_email-link:hover {
    /*transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);*/
    background: #eee;
}

@media (max-width: 768px) {
    .edil_email-link {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

.edil_slideshow-wrap.scrolled .edil_pager {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
