/*
4289	NEW Header – Final Responsive (Elementor)
admin2	Site Wide Header	30 September 2025 at 06:49		css	10
*/

/* === 1) Dimensiuni logo (nemodificat) === */
.hdr-logo img, .hdr-logo-mobile img {
    display:block; width:auto; height:auto; margin:0 auto; max-height:108px;
}
@media (max-width:1024px){ .hdr-logo img, .hdr-logo-mobile img{ max-height:92px; } }
@media (max-width:480px){  .hdr-logo img, .hdr-logo-mobile img{ max-height:76px; } }

/* === 2) Layout de bază (nemodificat) === */
.hdr{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; padding:0 16px; box-sizing:border-box; width:100%;
}
.hdr-col-left,.hdr-col-center,.hdr-col-right{ display:flex; align-items:center; }

/* === 3) Desktop (nu intervenim în afară de vizibilități) === */
@media (min-width:1025px){
    .hdr-col-left{  flex:0 0 auto; justify-content:flex-start; }
    .hdr-col-center{flex:1 1 auto; justify-content:center; }
    .hdr-col-right{ flex:0 0 auto; justify-content:flex-end; }

    .hdr .elementor-nav-menu{ display:flex !important; }
    .hdr .elementor-menu-toggle{ display:none !important; }
    .hdr-logo-mobile{ display:none !important; }
}

/* === 4) Tabletă – ascundem DOAR meniul orizontal, NU dropdown-ul === */
@media (max-width:1024px) and (min-width:769px){
    .hdr .elementor-nav-menu--main{ display:none !important; }
    .hdr .elementor-menu-toggle{ display:inline-flex !important; }

    .hdr-col-left .hdr-logo{ display:none !important; }
    .hdr-logo-mobile{ display:flex !important; }
}

/* === 5) Mobil – 25% / 50% / 25% + vizibilități corecte === */
@media (max-width:768px){
    .hdr-col-left{  flex:0 0 25%; min-width:0; }
    .hdr-col-center{flex:0 0 50% !important; width:50% !important; justify-content:center; }
    .hdr-col-right{ flex:0 0 25%; justify-content:flex-end; min-width:0; }

    .hdr .elementor-nav-menu--main{ display:none !important; }
    .hdr .elementor-menu-toggle{ display:inline-flex !important; }

    .hdr-col-left .hdr-logo{ display:none !important; }
    .hdr-logo-mobile{ display:flex !important; }
}

/* === 6) Toggle – SVG CUSTOM cu text "Meniu" inclus - DOAR MOBIL/TABLETĂ === */
@media (max-width:1024px){
    .hdr .elementor-menu-toggle{
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 60px !important;
        height: 60px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 8px !important;
        z-index: 10;
        padding: 0 !important;
        transition: background 0.25s ease !important;
        position: relative !important;
        transform: none !important;
        rotate: none !important;
        animation: none !important;
    }

    /* BLOCHEZ orice rotații când e activ */
    .hdr .elementor-menu-toggle.elementor-active{
        transform: none !important;
        rotate: none !important;
        animation: none !important;
        background: transparent !important;
    }

    /* Ascundem iconițele default Elementor */
    .hdr .elementor-menu-toggle i,
    .hdr .elementor-menu-toggle svg,
    .hdr .elementor-menu-toggle .eicon,
    .hdr .elementor-menu-toggle [class*="icon"] {
        display: none !important;
        transform: none !important;
        rotate: none !important;
    }

    /* SVG custom ca background - HAMBURGER */
    .hdr .elementor-menu-toggle::before{
        content: '';
        display: block;
        width: 60px;
        height: 60px;
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><rect x="15" y="15" width="30" height="3" rx="1.5" fill="%23D4AF37"/><rect x="15" y="23.5" width="30" height="3" rx="1.5" fill="%23D4AF37"/><rect x="15" y="32" width="30" height="3" rx="1.5" fill="%23D4AF37"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23D4AF37" text-anchor="middle">Meniu</text></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: none !important;
        rotate: none !important;
        animation: none !important;
    }

    /* SVG custom când e ACTIV - X */
    .hdr .elementor-menu-toggle.elementor-active::before{
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><line x1="18" y1="15" x2="42" y2="35" stroke="%23D4AF37" stroke-width="3" stroke-linecap="round"/><line x1="42" y1="15" x2="18" y2="35" stroke="%23D4AF37" stroke-width="3" stroke-linecap="round"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23D4AF37" text-anchor="middle">Meniu</text></svg>');
        transform: none !important;
        rotate: none !important;
    }

    /* HOVER */
    .hdr .elementor-menu-toggle:hover{
        background: rgba(212, 175, 55, 0.15) !important;
    }

    .hdr .elementor-menu-toggle:hover::before{
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><rect x="15" y="15" width="30" height="3" rx="1.5" fill="%23F6D773"/><rect x="15" y="23.5" width="30" height="3" rx="1.5" fill="%23F6D773"/><rect x="15" y="32" width="30" height="3" rx="1.5" fill="%23F6D773"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23F6D773" text-anchor="middle">Meniu</text></svg>');
    }

    .hdr .elementor-menu-toggle.elementor-active:hover::before{
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><line x1="18" y1="15" x2="42" y2="35" stroke="%23F6D773" stroke-width="3" stroke-linecap="round"/><line x1="42" y1="15" x2="18" y2="35" stroke="%23F6D773" stroke-width="3" stroke-linecap="round"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23F6D773" text-anchor="middle">Meniu</text></svg>');
    }

    /* Ascundem textul ::after dacă exista */
    .hdr .elementor-menu-toggle::after{
        display: none !important;
    }

    /* ASCUNDE COCOSUL (logo-ul din header pe mobil/tabletă) */
    .hdr-logo-mobile {
        display: none !important;
    }
    .hdr-col-center .elementor-widget-theme-site-logo {
        display: none !important;
    }
}

/* PE DESKTOP - ASCUNDE TOGGLE COMPLET */
@media (min-width:1025px){
    .hdr .elementor-menu-toggle{
        display: none !important;
    }
    /* Ascunde butonul galben "Contul meu" pe desktop - prin data-id */
    [data-id="7"].elementor-widget-button,
    .elementor-element[data-id="7"],
    .mobile-account-btn{
        display: none !important;
        visibility: hidden !important;
    }
}

/* === 7) DROPDOWN mobil/tabletă — FIX poziționare + afișare === */
@media (max-width:1024px){
    .elementor-nav-menu--dropdown{
        position:fixed !important;
        right:12px !important;
        top:100px !important;  /* tabletă */
        background:#fff; padding:16px; border-radius:12px;
        box-shadow:0 12px 30px rgba(0,0,0,.12);
        z-index:99999;
        min-width:260px; max-width:min(92vw,360px);
        max-height:calc(100vh - 120px); overflow:auto;
    }
}
/* mobil: puțin mai jos decât pe tabletă (fine-tune) */
@media (max-width:768px){
    .elementor-nav-menu--dropdown{ top:92px !important; }
}

/* === 8) Itemi dropdown – aspect (nemodificat) === */
.elementor-nav-menu--dropdown li{ list-style:none; margin:4px 0; }
.elementor-nav-menu--dropdown a{
    display:block; font-family:Poppins,sans-serif; font-weight:600; font-size:16px;
    color:#222; padding:12px 6px; text-decoration:none; letter-spacing:0.2px;
}
.elementor-nav-menu--dropdown a:hover,
.elementor-nav-menu--dropdown .current-menu-item>a{ color:#C5A059; }

/* === 9) Desktop – prevenim wrap (opțional, îl păstrez dacă îl aveai) === */
@media (min-width:1025px){
    .hdr .elementor-nav-menu--main{ flex-wrap:nowrap !important; }
    .hdr .elementor-nav-menu--main > li{ margin:0 16px; }
}

/* === OVERRIDES: doar meniu mobil/tabletă === */
/* 1) Tabletă – font mai mic un pic */
@media (max-width:1024px) and (min-width:769px){
    .elementor-nav-menu--dropdown a{ font-size:14px; }
}
/* 2) Ridică fereastra dropdown */
@media (max-width:1024px) and (min-width:769px){
    .elementor-nav-menu--dropdown{ top:130px !important; }
}
@media (max-width:768px){
    .elementor-nav-menu--dropdown{ top:120px !important; }
}

/* === MOBILE + TABLETĂ: submeniile rămân în card === */
@media (max-width:1024px){
    .hdr .elementor-nav-menu--dropdown .sub-menu{
        position:static !important; left:auto !important; top:auto !important;
        transform:none !important; min-width:100% !important; width:100% !important;
        margin:6px 0 0; padding:0; background:transparent; box-shadow:none; display:none;
    }
    .hdr .elementor-nav-menu--dropdown li.menu-item-has-children > a[aria-expanded="true"] + .sub-menu,
    .hdr .elementor-nav-menu--dropdown li.menu-item-has-children.elementor-item-active > .sub-menu{
        display:block !important; background:#fff; padding:8px 10px; border-radius:10px;
        box-shadow:0 4px 14px rgba(0,0,0,.06);
    }
    .hdr .elementor-nav-menu--dropdown > li{ margin:2px 0; }
    .hdr .elementor-nav-menu--dropdown a{ padding:10px 8px; line-height:1.25; }
    .hdr .elementor-nav-menu--dropdown .sub-menu a{ padding:8px 8px; font-weight:500; }
    .hdr .elementor-nav-menu--dropdown li.menu-item-has-children > a{
        display:flex; align-items:center; justify-content:space-between;
    }
}

/* === MOBIL: strângem înălțimea headerului (fără să atingem logo) === */
@media (max-width:768px){
    .hdr{
        padding-top:6px !important; padding-bottom:6px !important;
        gap:8px; min-height:auto !important;
    }
    .hdr-col-left, .hdr-col-center, .hdr-col-right{
        padding-top:0 !important; padding-bottom:0 !important;
    }
    .hdr .elementor-widget, .hdr .elementor-widget-container{
        margin-top:0 !important; margin-bottom:0 !important;
    }
    /* ȘTERS: width/height fix pentru toggle - acum e auto */
}

/* === TABLETĂ: ajustare fină verticală === */
@media (max-width:1024px) and (min-width:769px){
    .hdr{ padding-top:8px !important; padding-bottom:8px !important; gap:10px; }
}

/* === DESKTOP: meniu puțin mai compact === */
@media (min-width:1025px){
    .hdr .elementor-nav-menu--main{
        flex-wrap:nowrap !important; justify-content:center !important; column-gap:0 !important;
    }
    .hdr .elementor-nav-menu--main > li{ margin:0 6px !important; }
    .hdr .elementor-nav-menu--main > li > a{
        padding-left:4px !important; padding-right:4px !important;
        font-size:15px; line-height:1.2; white-space:nowrap !important;
    }
    .hdr-col-right .elementor-button{ padding:8px 12px !important; font-size:14px; }
}

/* === DESKTOP: squeeze suplimentar DOAR pe spaniolă === */
@media (min-width:1025px){
    html[lang^="es"] .hdr .elementor-nav-menu--main > li{ margin:0 5px !important; }
    html[lang^="es"] .hdr .elementor-nav-menu--main > li > a{ font-size:14.5px; }
}

/* === Avatar: aspect-ratio fallback (poți lăsa aici sau în Elementor) === */
.cacc-avatar{ aspect-ratio:1/1; }
@supports not (aspect-ratio:1/1){ .cacc-avatar{ height:auto; } }
/* Desktop: mută doar conținutul header-ului cu 30px spre stânga,
   păstrând fundalul pe toată lățimea */
@media (min-width:1025px){
    .elementor-location-header .hdr{
        position: relative;
        padding-right: calc(16px + 30px);   /* compensăm deplasarea ca să nu taie din dreapta */
        overflow: visible;
    }
    .elementor-location-header .hdr > .hdr-col-left,
    .elementor-location-header .hdr > .hdr-col-center,
    .elementor-location-header .hdr > .hdr-col-right{
        transform: translateX(-30px);
    }
}
/* ------- Desktop: mută DOAR conținutul header-ului cu 30px stânga ------- */
@media (min-width:1025px){
    /* 0) curățăm orice mutări anterioare pe coloane */
    .elementor-location-header .hdr > .hdr-col-left,
    .elementor-location-header .hdr > .hdr-col-center,
    .elementor-location-header .hdr > .hdr-col-right{
        transform:none !important;
    }

    /* 1) containerul care ține cele 3 coloane */
    .elementor-location-header .hdr > .elementor-container{
        position: relative;
        transform: translateX(-30px);                 /* deplasarea reală */
        padding-right: calc(16px + 30px);             /* compensăm în dreapta ca să nu „taie” */
    }

    /* păstrăm aerul standard la stânga pe secțiune */
    .elementor-location-header .hdr{
        padding-left:16px; padding-right:16px;        /* ce foloseai deja */
    }
}
/* Afișare în funcție de login */
body.logged-in .show-when-logged-out { display: none !important; }
body:not(.logged-in) .show-when-logged-in { display: none !important; }

/* Stil buton Autentificare din header (mic, gold, fără să lărgească headerul) */
.hdr-login-btn .elementor-button {
    height: 36px; line-height: 36px;            /* compact */
    padding: 0 14px;                             /* îngust */
    border-radius: 10px;
    font-weight: 700; font-size: 14px; letter-spacing: .2px;
    color: #171717; text-decoration: none;
    background-image: linear-gradient(180deg,#F2C94C,#D4AF37);
    box-shadow: 0 6px 12px rgba(212,175,55,.22), inset 0 1px 0 rgba(255,255,255,.45);
    transition: filter .2s ease, transform .06s ease-in-out;
    white-space: nowrap;                         /* nu rupe pe 2 rânduri */
}
.hdr-login-btn .elementor-button:hover { filter: saturate(1.05); }
.hdr-login-btn .elementor-button:active { transform: translateY(1px) scale(.99); }

/* Asigură-te că nu bagă margini suplimentare în coloană */
.hdr-col-right .elementor-widget.hdr-login-btn,
.hdr-col-right .hdr-login-btn .elementor-widget-container {
    margin: 0 !important; padding: 0 !important;
}

/* Pe desktop, menține-l compact lângă avatar */
@media (min-width:1025px){
    .hdr-col-right { gap: 10px; }               /* mic spațiu între buton și badge */
}
.elementor-location-header .cacc-dd a{
    position:relative; z-index:60; pointer-events:auto;
}
/* Ascunde avatar + dropdown pe ≤1024px: folosim meniul mobil pentru cont */
@media (max-width:1024px){
    .hdr .cacc { display:none !important; }
}
/* === TOGGLE (burger) – mobil & tabletă: mărime, auriu, stare activă (Elementor + Astra) === */
@media (max-width:1024px){
    /* butonul în sine */
    .elementor-location-header .hdr .elementor-menu-toggle,
    .ast-header-break-point .elementor-location-header .elementor-menu-toggle{
        position: relative;
        z-index: 1000;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px; height: 46px;          /* touch target sănătos */
        border: none; border-radius: 12px;
        background: transparent;
        color: #D4AF37 !important;          /* auriu în stare normală */
        transition: color .2s, box-shadow .2s, transform .08s;
    }

    /* DIMENSIUNI ICON – dacă e font-icon */
    .elementor-location-header .elementor-menu-toggle i,
    .elementor-location-header .elementor-menu-toggle .eicon-menu-bar:before{
        font-size: 26px !important;
        line-height: 1 !important;
    }

    /* DIMENSIUNI & CULOARE ICON – dacă e SVG */
    .elementor-location-header .elementor-menu-toggle svg{
        width: 26px !important; height: 26px !important;
        display:block;
    }
    .elementor-location-header .elementor-menu-toggle svg *,
    .elementor-location-header .elementor-menu-toggle svg path,
    .elementor-location-header .elementor-menu-toggle svg rect,
    .elementor-location-header .elementor-menu-toggle svg line{
        fill: #D4AF37 !important;
        stroke: #D4AF37 !important;
    }

    /* hover (nu exagerăm) */
    .elementor-location-header .elementor-menu-toggle:hover{
        color:#F2C94C !important;
    }
    .elementor-location-header .elementor-menu-toggle:hover svg *,
    .elementor-location-header .elementor-menu-toggle:hover svg path,
    .elementor-location-header .elementor-menu-toggle:hover svg rect,
    .elementor-location-header .elementor-menu-toggle:hover svg line{
        fill:#F2C94C !important; stroke:#F2C94C !important;
    }

    /* ACTIV (meniul deschis) – gradient auriu pe fundal și icon închis la culoare */
    .elementor-location-header .elementor-menu-toggle.elementor-active{
        background: linear-gradient(180deg,#F2C94C,#D4AF37) !important;
        box-shadow: 0 6px 16px rgba(212,175,55,.25);
        color:#171717 !important;
    }
    .elementor-location-header .elementor-menu-toggle.elementor-active svg *,
    .elementor-location-header .elementor-menu-toggle.elementor-active svg path,
    .elementor-location-header .elementor-menu-toggle.elementor-active svg rect,
    .elementor-location-header .elementor-menu-toggle.elementor-active svg line{
        fill:#171717 !important; stroke:#171717 !important;
    }
}
@media (max-width:1024px){
    /* păstrează mereu fundalul auriu pe toggle când meniul e deschis */
    .elementor-location-header .elementor-menu-toggle.elementor-active{
        background: linear-gradient(180deg,#F2C94C,#D4AF37) !important;
        box-shadow: 0 6px 16px rgba(212,175,55,.25);
    }
    @media (max-width:1024px){
        /* dacă observi că fundalul rămâne închis, creștem contrastul pe X */
        .elementor-location-header .elementor-menu-toggle.elementor-active,
        .elementor-location-header .elementor-menu-toggle.elementor-active i,
        .elementor-location-header .elementor-menu-toggle.elementor-active .eicon-close:before{
            color:#F2C94C !important;
        }
        .elementor-location-header .elementor-menu-toggle.elementor-active svg,
        .elementor-location-header .elementor-menu-toggle.elementor-active svg *,
        .elementor-location-header .elementor-menu-toggle.elementor-active svg path,
        .elementor-location-header .elementor-menu-toggle.elementor-active svg rect,
        .elementor-location-header .elementor-menu-toggle.elementor-active svg line{
            fill:#F2C94C !important; stroke:#F2C94C !important;
        }
    }
    /* ===== URGENT RESET ===== */

    /* 0) Oprește sticky pe mobil + tabletă (≤1024px) și elimină golurile */
    @media (max-width:1024px){
        .elementor-location-header .elementor-sticky{
            position: static !important;
            transform: none !important;
            top: 0 !important;
        }
        .e-sticky__spacer, .she-header-placeholder{ height:0 !important; min-height:0 !important; }
    }

    /* 1) TABLETĂ (769–1024): un singur logo (mobile), chiar și când ar fi sticky */
    @media (max-width:1024px) and (min-width:769px){
        .hdr-col-left .hdr-logo{ display:none !important; }
        .hdr-logo-mobile{ display:flex !important; }
        .elementor-location-header .elementor-sticky--effects .hdr-col-left .hdr-logo{ display:none !important; }
        .elementor-location-header .elementor-sticky--effects .hdr-logo-mobile{ display:flex !important; }
    }

    /* 2) DESKTOP (≥1025): fără flicker în sticky (nu micșora, nu estompa) */
    @media (min-width:1025px){
        .elementor-location-header .elementor-sticky--effects .hdr{
            min-height: 80px !important; /* ajustează 72–84 după gust */
        }
        .elementor-location-header .elementor-sticky--effects .hdr-logo img{
            max-height: 80px !important;
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }
    /* === PATCH: Perfecționare buton Autentificare (append-only) === */
    .hdr-login-btn .elementor-button{
        /* aliniere perfectă + “touch target” */
        display:inline-flex; align-items:center; justify-content:center; gap:8px;
        height:38px; padding:0 16px; line-height:1;
        border-radius:12px; border:1px solid rgba(212,175,55,.55);
        /* aur „curat” fără halo pe margini */
        background-image: linear-gradient(180deg,#F6D773 0%, #D4AF37 100%);
        background-clip: padding-box;
        /* text */
        font-weight:800; font-size:14px; letter-spacing:.15px;
        color:#171717; text-decoration:none;
        /* umbră discretă, fără a ridica vizual headerul */
        box-shadow:
                0 8px 18px rgba(212,175,55,.22),
                inset 0 1px 0 rgba(255,255,255,.45);
        /* micro-tranziții */
        transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
        -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    }

    /* icon/text din Elementor – spacing corect */
    .hdr-login-btn .elementor-button .elementor-button-icon{ line-height:1; }
    .hdr-login-btn .elementor-button .elementor-button-icon svg{ display:block; }

    /* hover: ușor mai luminos + lift subtil */
    .hdr-login-btn .elementor-button:hover{
        filter:saturate(1.06);
        transform:translateY(-1px);
        box-shadow:
                0 10px 22px rgba(212,175,55,.28),
                inset 0 1px 0 rgba(255,255,255,.52);
    }

    /* active: “tap” natural, fără a schimba înălțimea headerului */
    .hdr-login-btn .elementor-button:active{
        transform:translateY(0);
        box-shadow:
                0 6px 14px rgba(212,175,55,.22),
                inset 0 1px 0 rgba(255,255,255,.45);
    }

    /* accesibilitate: focus vizibil, dar curat pe fundal închis */
    .hdr-login-btn .elementor-button:focus-visible{
        outline:2px solid #F6D773;
        outline-offset:2px;
    }

    /* asigură baseline cu meniul */
    @media (min-width:1025px){
        .hdr-col-right{ align-items:center; }
        .hdr-col-right .elementor-widget.hdr-login-btn,
        .hdr-col-right .hdr-login-btn .elementor-widget-container{ margin:0 !important; }
    }
    /* === MENIU DESKTOP — prevenire wrap când adaugi un item în plus === */

    /* 0) Asigură shrink corect pe listă și itemi */
    @media (min-width:1025px){
        .hdr .elementor-nav-menu--main{
            flex: 1 1 auto !important;      /* permite micșorarea meniului */
            min-width: 0 !important;
            column-gap: 0 !important;
            white-space: nowrap !important;  /* rămâne pe un singur rând */
        }
        .hdr .elementor-nav-menu--main > li{
            flex: 0 1 auto !important;       /* itemii pot „strânge” */
            margin: 0 10px !important;       /* puțin mai îngust default */
        }
        .hdr .elementor-nav-menu--main > li > a{
            padding: 0 6px !important;
        }
        /* și coloanele au voie să se strângă */
        .hdr-col-left, .hdr-col-center, .hdr-col-right{ min-width:0 !important; }
        .hdr-col-right{ gap:8px !important; }  /* micșorează spațiul din dreapta */
    }

    /* 1) Treaptă la 1366px: micșorează fin font+padding+margini */
    @media (min-width:1025px) and (max-width:1366px){
        .hdr .elementor-nav-menu--main > li{ margin:0 8px !important; }
        .hdr .elementor-nav-menu--main > li > a{
            font-size:14.5px !important;
            padding: 0 5px !important;
            letter-spacing: .1px !important;
        }
        /* relaxează deplasarea globală la stânga (de la -30px → -16px) */
        .elementor-location-header .hdr > .elementor-container{
            transform: translateX(-16px) !important;
            padding-right: calc(16px + 16px) !important;
        }
    }

    /* 2) Treaptă la 1200px: strânge și mai mult ca să eviți wrap */
    @media (min-width:1025px) and (max-width:1200px){
        .hdr .elementor-nav-menu--main > li{ margin:0 6px !important; }
        .hdr .elementor-nav-menu--main > li > a{
            font-size:14px !important;
            padding: 0 4px !important;
        }
        /* dacă încă e la limită, oprește deplasarea ca să câștigi ~30px */
        .elementor-location-header .hdr > .elementor-container{
            transform: none !important;
            padding-right:16px !important;
        }
    }

    /* 3) Siguranță: împiedică forțarea pe 2 rânduri de CSS extern */
    @media (min-width:1025px){
        .hdr .elementor-nav-menu--main{ overflow:visible !important; }
        .hdr .elementor-nav-menu--main > li > a{ white-space:nowrap !important; }
    }
    /* === DESKTOP: Adu meniul mai aproape de logo (fără efect pe mobil/tabletă) === */
    @media (min-width:1025px){
        /* aliniază meniul pe stânga în coloana centrală */
        .hdr-col-center{ justify-content:flex-start !important; }

        /* anulăm padding-ul implicit pe coloanele Elementor din header,
           ca să nu mai existe „pernă” între logo și meniu */
        .elementor-location-header .hdr > .elementor-container > .elementor-column{
            padding-left:0 !important; padding-right:0 !important;
        }

        /* un mic offset ca să nu fie lipit de logo */
        .hdr .elementor-nav-menu--main{ margin-left:8px !important; }
    }
    /* Center poate să se strângă: elimină limite implicite ale containerelor */
    @media (min-width:1025px){
        .elementor-location-header .hdr > .elementor-container,
        .elementor-location-header .hdr > .elementor-container > .elementor-column,
        .elementor-location-header .hdr > .elementor-container > .e-con {
            min-width:0 !important;
        }

        /* meniu mai aproape de logo */
        .hdr .elementor-nav-menu--main{ margin-left:8px !important; }

        /* logo puțin mai mic pe desktop ca să câștigăm lățime */
        .hdr-logo img{ max-height:92px !important; } /* încearcă 92; poți coborî la 88/90 dacă mai trebuie */
    }

    /* anti-wrap + compactare blândă când e strâns */
    @media (min-width:1025px) and (max-width:1366px){
        .hdr .elementor-nav-menu--main > li{ margin:0 8px !important; }
        .hdr .elementor-nav-menu--main > li > a{ font-size:14.5px !important; padding:0 5px !important; }
    }
    @media (min-width:1025px) and (max-width:1280px){
        .hdr .elementor-nav-menu--main > li{ margin:0 6px !important; }
        .hdr .elementor-nav-menu--main > li > a{ font-size:14.2px !important; padding:0 4px !important; }
    }

    /* Ascunde Misiuni pentru nelogați */
    body:not(.logged-in) a[href*="/misiuni"] {
        display: none !important;
    }

    body:not(.logged-in) li:has(a[href*="/misiuni"]) {
        display: none !important;
    }