.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    padding: 16px 50px 16px 0;
    justify-content: space-between;
    align-items: center;
    background: var(--primary, #01A2B7);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
    z-index: 1030;
}
.topbar.navbar {
    min-height: 82px;
    padding-top: 0;
    padding-bottom: 0;
}
.topbar .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.logo-rect {
    width: 237px;
    height: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/images/layout.svg') center / contain no-repeat;
    position: relative;
    left: 0px;
}

@media (max-width: 991px) {
    .logo-rect {
        left: -30px;
        position: absolute;
    }

    .support-text {
        display: none !important;
    }
}

.topbar-logo {
    width: 111px;
    aspect-ratio: 111 / 50;
    object-fit: contain;
    z-index: 2;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* Pulsante "Apri una richiesta di assistenza" unificato in css/base.css (.topbar-new-ticket) */

.topbar-ticket-list {
    display: flex;
    height: 38px;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 2px;
    background: var(--white);
    border: 1px solid var(--primary-dark-1);
    cursor: pointer;
    color: var(--primary-dark-1);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

.topbar-ticket-list:hover {
    background-color: var(--primary);
}

.topbar-ticket-list:focus,
.topbar-ticket-list:active,
.topbar-ticket-list.focus,
.topbar-ticket-list:active:focus {
    outline: 2px solid #E6007E;
    outline-offset: 0px;
    box-shadow: 0 0 0 0.25rem rgba(230,0,126,0.25);
}

.icon-btn {
    width: 38px;
    height: 38px;
    background: var(--white, #01A2B7);
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
}

.icon-btn {
    width: 38px;
    height: 38px;
    background: var(--primary, #01A2B7);
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
}

.icon-inner {
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-inner img {
    height: auto;
}

.badge-notify {
    position: absolute;
    top: -1px;
    right: 0px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc3545;
    color: #fff;
    border:none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.badge-notify:empty {
    display: none;
}

.icon-btn:hover {
    background-color: var(--primary-dark-1);
}

.icon-btn:focus,
.icon-btn:active,
.icon-btn.focus,
.icon-btn:active:focus {
    outline: 2px solid #E6007E;
    outline-offset: 0px;
}

.button-text{
    white-space:nowrap;
}

.topbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.2);
    z-index: 1045;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .topbar-overlay.active {
        opacity: 1;
    }

.navbar-toggler {
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #01A2B7);
}

.navbar-toggler-icon {
    height: auto;
}

    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none;
        box-shadow: none;
    }

    .navbar-toggler .bi-list {
        font-size: 29px;
        color: black;
    }

.navbar .d-flex.align-items-center.gap-2 {
    gap: 8px;
}

@media (max-width: 991px) {
    .topbar {
        padding: 16px 16px 16px 0;
    }
}

.notification-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.notification-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.notification-panel {
    position: fixed;
    top: 82px;
    right: 20px;
    z-index: 1050;
    transform: translateY(calc(-100% - 90px));
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.notification-panel.open {
    transform: translateY(0);
}

.notification-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 280px;
    max-width: 280px;
    padding: 12px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 -6px 56px rgba(88, 65, 49, 0.16);
}

.notification-box-title {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #292929;
}

.notification-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
    align-self: stretch;
}

.notification-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    width: 100%;
    padding: 8px;
    align-items: flex-start;
    cursor: pointer;
    text-decoration: none;
    color: #292929;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: rgba(3, 96, 107, 0.06);
    color: #292929;
    text-decoration: none;
}

.notification-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-item-number {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #03606B;
}

.notification-item-title {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: #292929;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-loading,
.notification-empty {
    width: 100%;
    padding: 8px;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #717182;
}

.notification-see-all {
    display: flex;
    width: 100%;
    padding: 6px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #03606B;
}

.notification-see-all:hover {
    background: rgba(3, 96, 107, 0.08);
    color: #03606B;
    text-decoration: none;
}