.elementor-811 .elementor-element.elementor-element-1388703{--display:flex;}/* Start custom CSS for html, class: .elementor-element-d93b7d9 *//* --- 1. OTTIMIZZAZIONE SELEZIONE E INTERATTIVITA' --- */
body {
    -webkit-user-select: none;
    user-select: none;
    margin: 0;
    overflow: hidden !important;
}

img {
    -webkit-user-drag: none !important;
    user-drag: none !important;
}

/* Elementi di form selezionabili per i popup */
input, textarea, .selectable {
    -webkit-user-select: text;
    user-select: text;
}

/* --- 2. LAYOUT GLOBALE E SCROLL --- */
html, body {
    max-width: 100vw !important;
    height: 100dvh !important; 
}

::-webkit-scrollbar {
    display: none !important;
}

/* --- 3. CONTENITORE OPEN SEADRAGON --- */
#mappa-osd {
    touch-action: none; /* Blocca il pinch-to-zoom di sistema, lascia fare a OSD */
}

/* Gestione Font ereditata da Elementor */
#mappa-osd * {
    font-family: var(--e-global-typography-text-font-family), sans-serif;
}

/* Regole di padding responsivo (adattate per il nuovo contenitore #mappa-osd) */
@media only screen and (min-width: 1701px) {
    #mappa-osd { padding: 0 0 0 160px !important; }
}
@media only screen and (min-width: 1025px) and (max-width: 1700px) {
    #mappa-osd { padding: 0 0 0 130px !important; }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #mappa-osd { padding: 110px 0 0 0 !important; }
}
@media only screen and (max-width: 767px) {
    #mappa-osd { padding: 90px 0 0 0 !important; }
}

/* --- 4. POPUP OVERLAY "DISCOVERY" --- */
#discovery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#discovery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.discovery-content img {
    width: 400px;
    max-width: 40vw !important;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Impedisce interazioni accidentali con l'immagine in animazione */
}

#discovery-overlay.active .discovery-content img {
    transform: scale(1.5); /* Effetto zoom */
}

.hidden { 
    display: none !important; 
}/* End custom CSS */