.sp-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99;
}

.sp-header-top {
    display: none;
}

.sp-header {
    position: relative;
    align-items: center;
    background: #fafaf9;
    border-bottom: 1px solid #D6D3D1;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--container-px-sm) 0 var(--container-px-md);
    height: 6rem;
    width: 100%;
}

.sp-header__logo {
    display: block;
    width: 13rem;
    height: auto;
}

.sp-header__navtop {
    display: none;
}

/* ── Hamburger ── */
.sp-header__actions {
    display: flex;
    align-items: center;
}

.sp-header__burger {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 10000;
}

.sp-header__burger span {
    display: block;
    width: 1.5rem;
    height: 2.5px;
    border-radius: 2.5px;
    background: #296da4;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Nasconde il burger quando il drawer è aperto */
.sp-header-wrapper.is-open .sp-header__burger {
    display: none;
}

@media (min-width: 600px) {
    .sp-header {
        padding: 0 var(--container-px-md);
        height: 4.5rem;
    }

    .sp-header__logo {
        width: 200px !important;
    }
}

@media (min-width: 1024px) {
    .sp-header-wrapper {
        position: static;
    }

    .sp-header-top {
        border-bottom: 1px solid #D6D3D1;
        padding: 0 var(--container-px-lg);
        background-color: #fafaf9;
        gap: 1.5rem;
        height: 2.5rem;
        font-size: 14px;
        font-weight: 300;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    .sp-header-top__left {
        display: flex;
        gap: 1.5rem;
        align-items: stretch;
        height: 100%;
    }

    .sp-header-top__right {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    .sp-header-top .item {
        text-decoration: none;
        color: #57534E;
        display: flex;
        align-items: center;
        transition: color 0.15s ease;
    }

    .sp-header-top .item:hover {
        color: #296da4;
    }

    .sp-header-top .item.current {
        position: relative;
        color: #296da4;
        font-weight: 300;
        cursor: default;
    }

    .sp-header-top .item.current::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 2px;
        background: #296da4;
    }

    .sp-header {
        border-bottom: none;
        box-shadow: none;
        padding: 0 var(--container-px-lg);
        height: 5rem;
        background: #fff;
        border-bottom: 1px solid #D6D3D1;
        box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    }

    .sp-header__logo {
        width: 220px !important;
    }

    .sp-header__navtop {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .sp-header__navtop a {
        font-size: 15px;
        font-weight: 300;
        text-decoration: none;
        color: #44403C;
    }

    .sp-header__navtop a:hover {
        text-decoration: underline;
    }

    .sp-header__navtop a.active {
        text-decoration: underline;
        color: #296da4;
    }

    .sp-header__actions {
        display: none;
    }
}
