/* --- START OF FILE css/magistralis_custom_select.css --- */
/**
 * UI COMPONENT: Magistralis Custom Select (Expanded State)
 * FIX: Rimozione visualizzazione scrollbar
 */

.mag-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

/* La parte visibile (chiusa) */
.mag-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(13, 20, 30, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 6px;
    color: #c5a059;
    padding: 12px 15px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mag-select-wrapper.open .mag-select-trigger {
    border-color: #c5a059;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

/* Il menu a comparsa (ESTESO) */
.mag-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #0d141e;
    border: 1px solid #c5a059;
    border-radius: 6px;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: none; 
    max-height: 300px;
    overflow-y: auto;

    /* --- RIMOZIONE VISUALE SCROLLBAR --- */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE e Edge */
}

/* Chrome, Safari e versioni recenti di Edge */
.mag-select-options::-webkit-scrollbar {
    display: none;
}

.mag-select-wrapper.open .mag-select-options {
    display: block;
    animation: magDropdownFade 0.2s ease-out;
}

/* Le singole voci del menu */
.mag-option {
    padding: 12px 15px;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mag-option:hover {
    background-color: rgba(197, 160, 89, 0.2);
    color: #c5a059;
}

.mag-option.selected {
    background-color: rgba(197, 160, 89, 0.1);
    border-left: 3px solid #c5a059;
}

/* Icona freccia */
.mag-select-arrow {
    width: 12px;
    height: 12px;
    fill: #c5a059;
    transition: transform 0.3s;
}

.mag-select-wrapper.open .mag-select-arrow {
    transform: rotate(180deg);
}

@keyframes magDropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}