/* ==========================================================================
   MUSEO VIRTUALE DELLA CIOCIARIA - Stili
   Colori: marrone #2c1810, oro #d4a574, bianco #ffffff
   ========================================================================== */

/* Reset e base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 50%, #1a0f0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner-ring:nth-child(1) {
    border-top-color: #d4a574;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 8px;
    border-right-color: #d4a574;
    animation: spin 1.6s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    inset: 16px;
    border-bottom-color: #d4a574;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #d4a574;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.loader-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.progress-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d4a574, #e8c9a0);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* ==========================================================================
   VIEWER CONTAINER (Three.js)
   ========================================================================== */
#viewer-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    cursor: grab;
}

#viewer-container:active {
    cursor: grabbing;
}

/* Cursori forzati per editing sticker */
#viewer-container.cursor-move { cursor: move !important; }
#viewer-container.cursor-grab { cursor: grab !important; }
#viewer-container.cursor-grabbing { cursor: grabbing !important; }
#viewer-container.cursor-nwse { cursor: nwse-resize !important; }
#viewer-container.cursor-nesw { cursor: nesw-resize !important; }
#viewer-container.cursor-ns { cursor: ns-resize !important; }
#viewer-container.cursor-ew { cursor: ew-resize !important; }
#viewer-container.cursor-crosshair { cursor: crosshair !important; }
#viewer-container.cursor-default { cursor: default !important; }

#viewer-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   HOTSPOTS OVERLAY
   ========================================================================== */
#hotspots-container {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.hotspot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ---- Icone PNG (dimensione in base alla shape) ---- */
.hotspot-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hotspot-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Shape WIDE: frecce pavimento, chevron (larghe e piatte) */
.hotspot-shape-wide .hotspot-icon {
    width: 720px;
    height: 312px;
    background: none;
    border: none;
    border-radius: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 20px rgba(212,165,116,0.4));
    animation: hotspot-wide-pulse 2.5s ease-in-out infinite;
}

.hotspot-shape-wide:hover .hotspot-icon {
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.7)) drop-shadow(0 0 30px rgba(212,165,116,0.7));
    transform: scale(1.1);
}

@keyframes hotspot-wide-pulse {
    0%, 100% { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 20px rgba(212,165,116,0.4)); }
    50% { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(212,165,116,0.6)); }
}

/* Shape CIRCLE: icone rotonde (info, image, frecce in cerchio) */
.hotspot-shape-circle .hotspot-icon {
    width: 360px;
    height: 360px;
    background: none;
    border: none;
    border-radius: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    animation: hotspot-circle-pulse 2.5s ease-in-out infinite;
}

.hotspot-shape-circle:hover .hotspot-icon {
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6)) brightness(1.15);
    transform: scale(1.1);
}

@keyframes hotspot-circle-pulse {
    0%, 100% { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) drop-shadow(0 0 12px rgba(200,200,200,0.2)); }
    50% { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 20px rgba(200,200,200,0.35)); }
}

/* ---- Hotspot highlight (lampeggio dalla dashboard) ---- */
.hotspot-highlight .hotspot-icon {
    animation: hotspot-highlight-flash 0.4s ease-in-out 6 !important;
}

@keyframes hotspot-highlight-flash {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: brightness(2) drop-shadow(0 0 20px #ffcc00) drop-shadow(0 0 40px #ffcc00);
    }
}

/* ---- Nasconde label per hotspot navigation ---- */
.hotspot-type-navigation .hotspot-label {
    display: block;
    opacity: 1;                                  /* sempre visibile sotto la freccia (era display:none) */
    transform: translateX(-50%) translateY(0);
    top: calc(100% + 12px);
    background: rgba(18, 38, 86, 0.92);          /* blu scuro */
    color: #fff;
    font-size: 1.7rem;                           /* molto più grande e leggibile */
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: 30px;                         /* pillola arrotondata */
    border: 2px solid rgba(120, 160, 235, 0.6);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    text-transform: capitalize;
}

/* ---- Sticker tooltip (hover su hotspot 3D incollato alla sfera) ---- */
.sticker-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    background: rgba(44, 24, 16, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    border: 1px solid rgba(212,165,116,0.3);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

@keyframes hotspot-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212,165,116,0.4), 0 0 40px rgba(212,165,116,0.15); }
    50% { box-shadow: 0 0 25px rgba(212,165,116,0.6), 0 0 50px rgba(212,165,116,0.25); }
}

.hotspot-label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(44, 24, 16, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-4px);
    pointer-events: none;
    border: 1px solid rgba(212,165,116,0.3);
}

.hotspot:hover .hotspot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   TRANSITION OVERLAY
   ========================================================================== */
#transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#transition-overlay.active {
    opacity: 1;
}

/* ==========================================================================
   UI OVERLAY
   ========================================================================== */
#ui-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}

#ui-overlay > * {
    pointer-events: auto;
}

/* ---- Top Bar ---- */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    color: #d4a574;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #d4a574;
    letter-spacing: 0.5px;
}

.room-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(44, 24, 16, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 24px;
    border: 1px solid rgba(212, 165, 116, 0.25);
}

.room-number {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4a574;
    color: #2c1810;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.room-name {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(44, 24, 16, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.control-btn:hover {
    background: rgba(212, 165, 116, 0.3);
    border-color: rgba(212, 165, 116, 0.5);
}

.control-btn.active {
    background: rgba(212, 165, 116, 0.4);
    border-color: #d4a574;
    color: #d4a574;
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

/* ---- Bottom Navigation ---- */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: center;
}

.nav-rooms {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(44, 24, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}

.nav-rooms::-webkit-scrollbar {
    display: none;
}

.room-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.room-btn:hover {
    background: rgba(212, 165, 116, 0.15);
    color: #fff;
}

.room-btn.active {
    background: rgba(212, 165, 116, 0.25);
    color: #d4a574;
    border: 1px solid rgba(212, 165, 116, 0.4);
}

.room-btn-number {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.room-btn.active .room-btn-number {
    background: #d4a574;
    color: #2c1810;
}

/* ---- Info Panel ---- */
.info-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    background: rgba(26, 15, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212, 165, 116, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 200;
}

.info-panel.open {
    transform: translateX(0);
}

.info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.info-close:hover {
    background: rgba(255,255,255,0.15);
}

.info-content {
    padding: 50px 24px 24px;
}

.info-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #d4a574;
    margin-bottom: 12px;
}

.info-divider {
    width: 40px;
    height: 2px;
    background: #d4a574;
    margin-bottom: 16px;
}

.info-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
}

.info-controls {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-controls h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4a574;
    margin-bottom: 12px;
}

.info-controls ul {
    list-style: none;
}

.info-controls li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-controls li:last-child {
    border-bottom: none;
}

.info-controls li strong {
    color: #d4a574;
}

.info-credits {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.info-credits p {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #d4a574;
    margin-bottom: 4px;
}

.credits-sub {
    font-size: 0.72rem !important;
    color: rgba(255,255,255,0.4) !important;
}

/* ==========================================================================
   EDITOR BOTTOM BAR (toolbar + Anteprima/Pubblica)
   ========================================================================== */
#editor-bottom-bar {
    position: fixed;
    bottom: 72px;
    left: 20px;
    right: 20px;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

#editor-toolbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 8px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: auto;
}

#editor-coords {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    min-width: 180px;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: rgba(212, 165, 116, 0.25);
    border-color: rgba(212, 165, 116, 0.5);
    color: #d4a574;
}

.toolbar-btn-active {
    background: rgba(212, 165, 116, 0.35);
    border-color: #d4a574;
    color: #d4a574;
}

/* ---- Azioni destra (Anteprima + Pubblica) ---- */
.editor-actions-right {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    pointer-events: auto;
}

.btn-anteprima {
    background: #d4a056;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(212, 160, 86, 0.3);
}

.btn-anteprima:hover {
    background: #c9923e;
    box-shadow: 0 4px 16px rgba(212, 160, 86, 0.5);
}

.btn-pubblica {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-pubblica:hover {
    background: #43a047;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.5);
}

/* ==========================================================================
   PREVIEW CLOSE BUTTON
   ========================================================================== */
.preview-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 300;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.3px;
}

.preview-close-btn:hover {
    background: rgba(212, 165, 116, 0.3);
    border-color: rgba(212, 165, 116, 0.5);
    color: #d4a574;
}

/* ==========================================================================
   HOTSPOT CUSTOM (editor) - indicatore visivo per distinguerli dai config
   ========================================================================== */
.hotspot-custom .hotspot-icon {
    outline: none;
    animation: hotspot-custom-pulse 2.5s ease-in-out infinite;
}

.hotspot-custom:hover .hotspot-icon {
    outline: none;
}

/* In preview mode nessun indicatore custom */
.preview-mode .hotspot-custom .hotspot-icon {
    outline: none;
    animation: none;
}

@keyframes hotspot-custom-pulse {
    0%, 100% { outline-color: rgba(100,180,220,0.4); }
    50% { outline-color: rgba(100,180,220,0.8); }
}

/* ---- Hologram hotspot ---- */
/* L'icona HTML è un bottone play visibile alla base del piedistallo */
.hotspot-hologram {
    pointer-events: auto;
}

.hotspot-model3d {
    pointer-events: auto;
}

.hotspot-model3d .hotspot-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(0, 120, 180, 0.9);
    border: 4px solid #00ccff;
    border-radius: 50%;
    color: #ffffff;
    text-shadow: 0 0 8px #fff, 0 0 12px #00ccff;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.8), inset 0 0 10px rgba(255,255,255,0.2);
    animation: hologram-pulse-orange 2s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hotspot-model3d:hover .hotspot-icon {
    background: rgba(0, 160, 220, 0.9);
    box-shadow: 0 0 30px rgba(0, 200, 255, 1);
    transform: scale(1.15);
}

.hotspot-model3d .hotspot-label {
    color: #00ccff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
}

.hotspot-hologram .hotspot-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
    background: rgba(180, 60, 0, 0.9);
    border: 5px solid #ff6600;
    border-radius: 50%;
    color: #ffffff;
    text-shadow: 0 0 8px #fff, 0 0 15px #ff6600, 2px 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 0 25px rgba(255, 100, 0, 0.9), inset 0 0 15px rgba(255,255,255,0.2);
    animation: hologram-pulse-orange 2s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Posiziona alla base del piedistallo */
    transform: translate(0px, 460px);
}

.hotspot-hologram:hover .hotspot-icon {
    background: rgba(255, 100, 0, 0.9);
    box-shadow: 0 0 30px rgba(255, 100, 0, 1);
    transform: translate(0px, 460px) scale(1.15);
}

.hotspot-hologram .hotspot-label {
    color: #ff6600;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.7);
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    transform: translateY(460px);
}

@keyframes hologram-pulse-orange {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 100, 0, 0.6); }
    50% { box-shadow: 0 0 30px rgba(255, 100, 0, 1); }
}

/* ==========================================================================
   HOTSPOT POPUP (editor)
   ========================================================================== */
.hotspot-popup {
    position: fixed;
    z-index: 1000;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    background: rgba(26, 15, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    padding: 16px;
    min-width: 250px;
    max-width: 300px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hotspot-popup-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #d4a574;
    margin-bottom: 12px;
}

.hotspot-popup-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.hotspot-popup-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    appearance: auto;
}

.hotspot-popup-select:focus {
    border-color: rgba(212, 165, 116, 0.5);
}

.hotspot-popup-select option {
    background: #1a0f0a;
    color: #fff;
}

.hotspot-popup-input {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    outline: none;
}

.hotspot-popup-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.hotspot-popup-input:focus {
    border-color: rgba(212, 165, 116, 0.5);
}

.hotspot-popup-buttons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.hotspot-popup-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}

.hotspot-popup-btn-confirm {
    background: rgba(212, 165, 116, 0.3);
    border-color: rgba(212, 165, 116, 0.5);
    color: #d4a574;
}

.hotspot-popup-btn-confirm:hover {
    background: rgba(212, 165, 116, 0.5);
    color: #fff;
}

.hotspot-popup-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.hotspot-popup-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hotspot-popup-btn-delete {
    background: rgba(200, 50, 50, 0.3);
    border-color: rgba(200, 50, 50, 0.5);
    color: #e88;
}

.hotspot-popup-btn-delete:hover {
    background: rgba(200, 50, 50, 0.5);
    color: #fff;
}

/* ---- Sticker checkbox nel popup hotspot ---- */
.hotspot-popup-sticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.hotspot-popup-sticker-label input[type="checkbox"] {
    accent-color: #d4a574;
    width: 16px;
    height: 16px;
}

.hotspot-popup-sticker-opts {
    padding: 6px 0 0 24px;
    border-left: 2px solid rgba(212, 165, 116, 0.2);
    margin-left: 8px;
    margin-top: 4px;
}

/* ==========================================================================
   INTERACTION HINT
   ========================================================================== */
#interaction-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#interaction-hint.visible {
    opacity: 1;
}

#interaction-hint.fade-out {
    opacity: 0;
}

.hint-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(44, 24, 16, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.hint-content p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

.hint-content svg {
    color: #d4a574;
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 12px;
    }

    .logo-text {
        font-size: 0.85rem;
    }

    .room-indicator {
        display: none;
    }

    .room-name {
        font-size: 0.75rem;
    }

    .control-btn {
        width: 36px;
        height: 36px;
    }

    .bottom-nav {
        padding: 8px 10px 12px;
    }

    .nav-rooms {
        gap: 4px;
        padding: 4px;
    }

    .room-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .room-btn-label {
        display: none;
    }

    .hotspot-shape-wide .hotspot-icon {
        width: 480px;
        height: 208px;
    }

    .hotspot-shape-circle .hotspot-icon {
        width: 240px;
        height: 240px;
    }

    .hotspot-icon svg {
        width: 20px;
        height: 20px;
    }

    .info-panel {
        width: 100%;
        max-width: 100%;
    }

    #editor-bottom-bar {
        bottom: 55px;
        left: 10px;
        right: 10px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #editor-toolbar {
        padding: 6px 12px;
        gap: 8px;
        font-size: 0.7rem;
    }

    #editor-coords {
        min-width: auto;
        font-size: 0.68rem;
    }

    .toolbar-btn {
        padding: 4px 10px;
        font-size: 0.68rem;
    }

    .btn-anteprima,
    .btn-pubblica {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    #interaction-hint {
        bottom: 85px;
    }

    .hint-content p {
        font-size: 0.7rem;
    }

    .hotspot-popup {
        min-width: 200px;
        max-width: 260px;
        padding: 12px;
    }

    .hotspot-popup-title {
        font-size: 0.9rem;
    }

    .hotspot-popup-select,
    .hotspot-popup-input {
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    .hotspot-popup-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    .hotspot-custom .hotspot-icon {
        outline-width: 1px;
        outline-offset: 2px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .top-controls {
        gap: 4px;
    }
}

/* ==========================================================================
   HOTSPOT PER TIPO - Info (verde/teal), Image (viola), Navigation (oro default)
   ========================================================================== */

/* ---- Info hotspot: verde/teal ---- */
/* ---- Label colorate per tipo ---- */
.hotspot-type-info .hotspot-label {
    border-color: rgba(200, 80, 40, 0.4);
}

.hotspot-type-image .hotspot-label {
    border-color: rgba(100, 100, 100, 0.4);
}

/* ==========================================================================
   HOTSPOT OVERLAY - Info Window (modale)
   ========================================================================== */
.hotspot-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.hotspot-overlay.visible {
    opacity: 1;
}

.hotspot-overlay.fade-out {
    opacity: 0;
}

.hotspot-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hotspot-overlay-panel {
    position: relative;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hotspot-overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.hotspot-overlay-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.hotspot-overlay-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b1a1a;
    font-variant: small-caps;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-right: 40px;
}

.hotspot-overlay-divider {
    display: none;
}

.hotspot-overlay-image-wrap {
    margin-bottom: 16px;
}

.hotspot-overlay-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.hotspot-overlay-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #000;
}

.hotspot-overlay-desc p {
    margin-bottom: 10px;
}

.hotspot-overlay-desc p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   HOTSPOT LIGHTBOX - Popup Image
   ========================================================================== */
.hotspot-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 92vh;
}

.hotspot-lightbox-content .hotspot-overlay-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: rgba(26, 15, 10, 0.9);
    border-color: rgba(212, 165, 116, 0.4);
}

.hotspot-lightbox-content .hotspot-overlay-close:hover {
    background: rgba(212, 165, 116, 0.3);
    border-color: rgba(212, 165, 116, 0.6);
}

.hotspot-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    display: block;
    object-fit: contain;
}

.hotspot-lightbox-caption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    background: rgba(26, 15, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 116, 0.2);
    max-width: 600px;
}

/* ==========================================================================
   HOTSPOT POPUP TEXTAREA (editor)
   ========================================================================== */
.hotspot-popup-textarea {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    outline: none;
    resize: vertical;
    min-height: 60px;
}

.hotspot-popup-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.hotspot-popup-textarea:focus {
    border-color: rgba(212, 165, 116, 0.5);
}

/* ---- Hotspot type badge (dashboard) ---- */
.hotspot-type-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

.hotspot-type-badge-nav {
    background: rgba(212, 165, 116, 0.25);
    color: #d4a574;
}

.hotspot-type-badge-info {
    background: rgba(76, 175, 136, 0.25);
    color: #4caf88;
}

.hotspot-type-badge-image {
    background: rgba(156, 106, 222, 0.25);
    color: #9c6ade;
}

/* ---- Hotspot popup field groups ---- */
.hotspot-popup-group {
    display: none;
}

.hotspot-popup-group.active {
    display: block;
}

/* ---- Hologram Popup: layout 3 colonne ---- */
.hotspot-popup-hologram-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.hotspot-popup-hologram-col {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.hotspot-popup-hologram-col h4 {
    color: #d4a574;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotspot-popup-hologram-col .col-icon {
    font-size: 16px;
}

/* Popup più largo per ologramma */
.hotspot-popup.hologram-wide {
    min-width: 750px;
    max-width: 900px;
    left: 50% !important;
    transform: translateX(-50%);
}

/* Responsive: colonne impilate su schermi piccoli */
@media (max-width: 800px) {
    .hotspot-popup-hologram-grid {
        grid-template-columns: 1fr;
    }
    .hotspot-popup.hologram-wide {
        min-width: auto;
        max-width: 95vw;
    }
}

/* ---- Icon Picker (editor popup) ---- */
.hotspot-icon-picker {
    max-height: 160px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 10px;
}

.hotspot-icon-picker::-webkit-scrollbar {
    width: 6px;
}

.hotspot-icon-picker::-webkit-scrollbar-track {
    background: transparent;
}

.hotspot-icon-picker::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.3);
    border-radius: 3px;
}

.icon-picker-cat-label {
    font-size: 0.65rem;
    color: rgba(212, 165, 116, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 4px 0 2px 2px;
}

.icon-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.icon-picker-cell {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: all 0.15s ease;
}

.icon-picker-cell:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 165, 116, 0.4);
}

.icon-picker-cell.selected {
    background: rgba(212, 165, 116, 0.2);
    border-color: #d4a574;
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.3);
}

.icon-picker-cell img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* ---- Prop hotspot detail (dashboard) ---- */
.prop-hotspot-detail {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prop-hotspot-icon-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-hotspot-icon-thumb {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ==========================================================================
   NAV-EDITOR: Overlay split-screen per collegare sale
   ========================================================================== */

.nav-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-editor-overlay.visible { opacity: 1; }

.nav-editor-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(26, 15, 10, 0.9);
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    flex-shrink: 0;
}
.nav-editor-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #d4a574;
    letter-spacing: 0.05em;
}
.nav-editor-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.nav-editor-close:hover {
    color: #fff;
}

.nav-editor-split {
    flex: 1;
    display: flex;
    gap: 0;
    min-height: 0;
}

.nav-editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.nav-editor-room-bar {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: rgba(26, 15, 10, 0.8);
    flex-shrink: 0;
}
.nav-editor-side-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}
.nav-editor-room-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.25);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}
.nav-editor-room-select:focus {
    border-color: rgba(212, 165, 116, 0.5);
}
.nav-editor-room-select option {
    background: #1a0f0a;
    color: #fff;
}

.nav-editor-canvas-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}
.nav-editor-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-editor-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: none;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.6));
}
.nav-editor-marker.placed { display: block; }

.nav-editor-click-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.nav-editor-coords {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.nav-editor-divider {
    width: 2px;
    background: rgba(212, 165, 116, 0.4);
    align-self: stretch;
    flex-shrink: 0;
}

.nav-editor-footer {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    background: rgba(26, 15, 10, 0.9);
    border-top: 1px solid rgba(212, 165, 116, 0.3);
    flex-shrink: 0;
}

.nav-editor-btn-cancel {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}
.nav-editor-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-editor-btn-confirm {
    padding: 10px 24px;
    background: rgba(212, 165, 116, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.5);
    color: #d4a574;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}
.nav-editor-btn-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.nav-editor-btn-confirm:not(:disabled):hover {
    background: rgba(212, 165, 116, 0.5);
    color: #fff;
}

/* ==========================================================================
   NAV-MANAGER: gestione collegamenti salvati
   ========================================================================== */

.nav-manager-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-manager-overlay.visible { opacity: 1; }

.nav-manager-panel {
    background: rgba(26, 15, 10, 0.95);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.nav-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}
.nav-manager-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #d4a574;
}

.nav-manager-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.nav-manager-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 40px 20px;
    font-size: 0.9rem;
}

.nav-manager-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.3s;
}
.nav-manager-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.nav-manager-row-info {
    flex: 1;
    min-width: 0;
}

.nav-manager-row-names {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #fff;
}
.nav-manager-room-name {
    color: #d4a574;
    font-weight: 500;
}
.nav-manager-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
}

.nav-manager-row-coords {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

.nav-manager-btn-delete {
    padding: 6px 16px;
    background: rgba(200, 50, 50, 0.25);
    border: 1px solid rgba(200, 50, 50, 0.4);
    color: #e88;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    margin-left: 12px;
}
.nav-manager-btn-delete:hover {
    background: rgba(200, 50, 50, 0.45);
    color: #fff;
}

.nav-manager-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.nav-manager-btn-delete-all {
    padding: 8px 20px;
    background: rgba(200, 50, 50, 0.3);
    border: 1px solid rgba(200, 50, 50, 0.5);
    color: #e88;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
}
.nav-manager-btn-delete-all:hover {
    background: rgba(200, 50, 50, 0.5);
    color: #fff;
}

/* ==========================================================================
   STICKER EDIT CONTROLS - Icona rotazione fissa (stile 3DVista)
   ========================================================================== */

#sticker-edit-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    gap: 10px;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

#sticker-edit-controls.hidden {
    display: none;
}

.sticker-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.sticker-control-btn:hover {
    background: rgba(50, 50, 50, 0.95);
    border-color: rgba(100, 180, 255, 0.8);
    box-shadow: 0 0 20px rgba(100, 180, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.sticker-control-btn:active,
.sticker-control-btn.dragging {
    cursor: grabbing;
    background: rgba(100, 180, 255, 0.3);
    border-color: rgba(100, 180, 255, 1);
    box-shadow: 0 0 30px rgba(100, 180, 255, 0.7), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.sticker-control-btn svg {
    pointer-events: none;
}

/* Frecce direzionali per rotazione fine (nel pannello destro) */
.sticker-rotation-arrows {
    display: grid;
    grid-template-columns: 32px 32px 32px;
    grid-template-rows: 32px 32px 32px;
    gap: 4px;
    justify-content: center;
    margin: 10px 0;
}

.sticker-rotation-arrows .arrow-btn {
    width: 32px;
    height: 32px;
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.15s ease;
}

.sticker-rotation-arrows .arrow-btn:hover {
    background: rgba(60, 60, 60, 0.95);
    border-color: rgba(100, 180, 255, 0.6);
    box-shadow: 0 0 12px rgba(100, 180, 255, 0.4);
    color: #6bf;
}

.sticker-rotation-arrows .arrow-btn:active {
    background: rgba(100, 180, 255, 0.3);
    transform: scale(0.95);
}

.sticker-rotation-arrows .arrow-up { grid-column: 2; grid-row: 1; }
.sticker-rotation-arrows .arrow-left { grid-column: 1; grid-row: 2; }
.sticker-rotation-arrows .arrow-center {
    grid-column: 2;
    grid-row: 2;
    background: rgba(80, 80, 80, 0.5);
    cursor: default;
    font-size: 12px;
}
.sticker-rotation-arrows .arrow-center:hover {
    background: rgba(80, 80, 80, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: #fff;
}
.sticker-rotation-arrows .arrow-right { grid-column: 3; grid-row: 2; }
.sticker-rotation-arrows .arrow-down { grid-column: 2; grid-row: 3; }

/* Rotation value display */
.sticker-rotation-value {
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 5px;
}

.sticker-rotation-value span {
    color: #6bf;
    font-weight: 600;
}

/* ========== CONTROLLI OLOGRAMMA (Dashboard) ========== */
.prop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.prop-row-full {
    flex-wrap: nowrap;
}

.prop-label {
    color: #aaa;
    font-size: 0.85rem;
    min-width: 50px;
}

.prop-value {
    color: #fff;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: right;
}

.prop-slider {
    flex: 1;
    min-width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.prop-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #6bf;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(100, 180, 255, 0.5);
}

.prop-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #6bf;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(100, 180, 255, 0.5);
}

.prop-slider:hover::-webkit-slider-thumb {
    box-shadow: 0 0 10px rgba(100, 180, 255, 0.8);
}

.prop-input {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    padding: 4px 6px;
    font-size: 0.85rem;
    text-align: center;
}

.prop-input:focus {
    border-color: #6bf;
    outline: none;
    box-shadow: 0 0 6px rgba(100, 180, 255, 0.4);
}
