/* Rifatto in 3D - Menu a Tendina Responsive v1.1 */
.r3d-nav {
    background: #0f172a;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.admin-bar .r3d-nav { top: 32px; }
.r3d-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
}
.r3d-nav-brand {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.r3d-nav-brand span {
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}
.r3d-nav-toggle {
    display: none;
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.r3d-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.r3d-nav-list > li { position: relative; margin: 0; }
.r3d-nav-list > li > a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 10px 14px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s;
}
.r3d-nav-list > li > a:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.r3d-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    color: #0f172a;
    min-width: 260px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    padding: 10px;
    list-style: none;
    z-index: 10000;
}
.r3d-has-dropdown:hover > .r3d-dropdown,
.r3d-has-dropdown.open > .r3d-dropdown {
    display: block;
}
.r3d-dropdown ul { list-style: none; margin: 0; padding: 0; }
.r3d-dropdown li a {
    display: block;
    padding: 8px 12px;
    color: #1e293b;
    text-decoration: none;
    font-size: 13.5px;
    border-radius: 6px;
}
.r3d-dropdown li a:hover { background: #eff6ff; color: #1d4ed8; }

.r3d-mega-menu { min-width: 580px; padding: 16px; }
.r3d-has-dropdown.r3d-mega:hover > .r3d-mega-menu,
.r3d-has-dropdown.r3d-mega.open > .r3d-mega-menu {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
}
.r3d-mega-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 0 12px 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.r3d-nav-cta {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 9px 16px !important;
    border-radius: 8px !important;
}
.r3d-nav-cta:hover { background: #1d4ed8 !important; }

@media (max-width: 920px) {
    .admin-bar .r3d-nav { top: 0; }
    .r3d-nav-toggle { display: block; }
    .r3d-nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 12px 16px 20px;
        border-top: 1px solid #1e293b;
        max-height: 80vh;
        overflow-y: auto;
    }
    .r3d-nav-list.is-open { display: flex; }
    .r3d-dropdown, .r3d-mega-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        margin-top: 6px;
        background: #1e293b;
        border-color: #334155;
    }
    .r3d-has-dropdown.r3d-mega.open > .r3d-mega-menu { display: block; }
    .r3d-dropdown li a { color: #e2e8f0; }
    .r3d-dropdown li a:hover { background: #334155; color: #ffffff; }
    .r3d-mega-title { color: #94a3b8; border-color: #334155; }
    .r3d-nav-cta-wrap { margin-top: 10px; }
    .r3d-nav-cta { text-align: center; }
}
