header {
    position:absolute;
    z-index: 1;
    max-width: 1920px;
}

header.stuck {
    height:84px;
    background:#263243;
    z-index: 4;
    }

header.stuck .logo {
    height:60px;
    max-height:60px;
    width:auto;
    display:flex;
}

header.stuck .logo img {
    width:auto;
    height:60px;
}

.nav-open {
    overflow: hidden;
}

.stuck .header-phone, .stuck .header-wrap {
  display:none;
}

.stuck .nav-primary {
  top:0;
}

.stuck .nav-primary .menu-main-menu-container, .stuck .nav-primary .menu-main-menu-right-container {
  margin:0;
  border:none;
}

.stuck #menu-main-menu, .stuck #menu-main-menu-right {
  padding-top:0;
}

header.stuck .logo {
  top:1.2rem;
}

/* meny nav */
.nav-primary {
    right:5.6rem;
  }
  
  #menu-main-menu {
    margin-bottom:0;
  }

.nav-primary {
  top: 8rem;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
}
.nav-primary .menu-main-menu-container {
  position: absolute;
  width: calc(50% - 170px);
  margin: 2.5rem 0 0 4rem;
  border-top: 1px solid rgba(255,255,255,.9);
}
.nav-primary .menu-main-menu-right-container {
  position: absolute;
  width: calc(50% - 170px);
  text-align: left;
  right: 0;
  margin: 2.5rem 4rem 0 0;
  border-top: 1px solid rgba(255,255,255,.9);
}


    #menu-main-menu {
        justify-content: flex-end;
        padding-top: 1.1rem;
        padding-right: 4rem;
        gap: 4rem;
    }
        
    #menu-main-menu-right {
        justify-content: flex-start;
        padding-top: 1.1rem;
        padding-left: 4rem;
        gap: 4rem;
    }
  
    .nav-primary #menu-main-menu > li > a {
        color:#fff;
        font-size:1.2rem;
        letter-spacing:2px;
        line-height:1;
        text-transform:uppercase;
        font-weight:600;
        padding:2.4rem 0;
        display:inline-block;
    }

    .nav-primary #menu-main-menu-right > li > a {
        color: #fff;
        font-size: 1.2rem;
        letter-spacing: 2px;
        line-height: 1;
        text-transform: uppercase;
        font-weight: 600;
        padding: 2.4rem 0;
        display: inline-block;
    }
  
  .stuck .nav-primary #menu-main-menu > li > a, .stuck .nav-primary #menu-main-menu-right > li > a {
    padding:3.5rem 0;
  }
  
  .sub-menu {
    top:60px;
    border-radius:0;
    width: 205px;
  }
  
  .sub-menu li a {
    transition:.3s ease all;
    font-size: 1.3rem;
  }
  
  .sub-menu li a:hover {
    background:rgba(61, 106, 142, 0.2);
    font-weight: 800;
  }
  
  .stuck .sub-menu {
    top:84px;
  }
  
  
  
  .current-menu-item {
    border-bottom:1px solid #fff;
  }
  
  .stuck .current-menu-item {
    border-bottom:2px solid #fff;
  }
  
@media screen and (max-width:1280px){
  
    /* Mobile menu */
    .site-header, header {
        height: var(--resp-header-height);
        position:relative;
    }
  
    .nav-primary {
        transform: none;
        top:var(--resp-header-height);
        margin: 0;
        overflow: hidden;
        position: absolute;
        height:0;
        width:100%;
        padding:0 2rem;
        z-index:2;
        overflow: hidden;
        background:rgba(255,255,255,.9);
        left:0;
    }

    .stuck .nav-primary {
        top: var(--resp-header-height);
    }
  
    .nav-primary.open { 
        border-top:1px solid #d6d6d6;
        overflow: auto;
        padding:3rem 3rem 13rem;
    }
  
    .nav-primary ul { 
        display: block; 
    }
  
    .nav-primary li a {
        padding:1rem 3rem;
    }

    .nav-primary #menu-main-menu > li > a {
        color:#2f4d65;
    }

    .nav-primary #menu-main-menu > li > a {
        color:#2f4d65;
    }
  
    .nav-primary .social-menu { 
        display: none; 
    }
  
    .from-top {
        height: 0;
        width: 100%;
        overflow: hidden;
    }
  
    .from-top.open {
        height: calc( 100vh - var(--resp-header-height) );
        overflow-y:auto;
        bottom: auto;
    }
  
    .from-bottom {
        bottom: 0;
        top: auto;
        height: 0;
        width: 100%;
        position: fixed;
    }
  
    .from-bottom.open {
        height: calc(100vh - var(--resp-header-height));
        padding: 4rem 2rem;
        bottom: 0;
    }
  
    .from-left {
        height: calc(100vh - var(--resp-header-height));
        left:-100%;
        padding: 4rem 2rem;
    }
  
    .from-left.open { 
        left:0; 
    }
  
    .from-right {
        height: calc(100vh - var(--resp-header-height)); 
        right: -100%;
        padding: 4rem 2rem;
    }
  
    .from-right.open { 
        right:0; 
    }
    
    .menu-icon, .stuck .menu-icon {
        display: block;
        z-index: 2;
    }

    .no-scroll {
        overflow: hidden;
    }
  
    .nav-primary .sub-menu {
        display: none;
        width:100%;
        position: inherit;
        background-color: unset;
        top: 0;
        box-shadow: unset;
        overflow-Y: scroll;
    }

    .menu-item-has-children li {
        display: block;
    }
  
    .menu-item-has-children > a {
        position: relative;
    }
  
    .menu-item-has-children > a[href='#']::before {
        content: "\25BE"; /* down arrow */
        content: "\0002B"; /* plus */
        left: 0;
        color: #505050;
        font-size: 30px;
        font-family: Arial, sans-serif;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
  
    /* This will change the symbol for all nested divs */
    .menu-item-has-children.expanded > a[href='#']::before {
        content:"\025BF"; /* down arrow outline */
        content: "\02013"; /* minus */
    }
  
    .sub-menu-open > .sub-menu {
        display: block;
    }
  
    .sub-menu {
        padding-left: 1rem;
    }
  
    .sub-menu .menu-item-has-children:hover > .sub-menu {
        left: 0;
        top: 0;
    }
  
    .sub-menu .menu-item-has-children.sub-menu-open .sub-menu {
        right:100%;
        top: 1rem;
    }
  
    .sub-menu .menu-item-has-children:hover:after {
        content:none;
    }

    /* customize menu icons*/
    .menu-item-has-children > a[href='#']::before {
        content: "\2023"; /* side arrow */
        /* content: "\0002B"; /* plus */
    }

    .menu-item-has-children.expanded > a[href='#']::before {
        content:"\025BE"; /* down arrow */
        /* content: "\02013"; /* minus */
    }

    header {
        position: absolute;
        border-top: 4px solid var(--accent-dark);
        z-index: 3;
        height: 18rem;
    }

    .phone-number {
        display: none;
    }

    header .logo {
        /* left: 50%;
        transform:translate(-50%,-50%); */

    }

    .phone-icon {
        width:38px;
        display:block;
        top:50%;
        transform:translateY(-50%);
    }

    .nav-primary .menu-main-menu-container, .nav-primary .menu-main-menu-right-container {
        position:relative;
        width:100%;
        padding:0;
        left:0;
        transform:none;
        margin:0;
    }

    .nav-primary .menu {
        padding:0!important;
        margin:0!important;
    }

    .nav-primary #menu-main-menu > li > a {
        color:var(--accent-dark);
        font-size:2rem;
    }

    .nav-primary #menu-main-menu > li.menu-item-has-children > a {
        padding-left:3rem;
    }

    .nav-primary #menu-main-menu-right > li.menu-item-has-children > a {
        padding-left:3rem;
    }

    .menu-item-has-children > a[href='#']::before {
        color:var(--accent-med);
    }

    header {
        transition:.3s ease all;
    }

    header.stuck {
        background: #263749;
        height: 13rem;
    }

    .stuck .header-phone {
        display: block;
    }

    header.stuck .logo img {
        width: 128px;
        height: 97px;
    }

    header.stuck .logo {
        top: 1.5rem;
    }

    header.stuck .menu-icon, header.stuck .header-phone {
        z-index: 5;
    }

    header.fixed {
        position: fixed;
        top:0;
    }

    .stuck .from-top.open {
        /* height: calc( 100vh - 13rem ); */
        top: 13rem;
    }


    .hero-content {
        max-width:100%;
        padding:13.7rem 0 7rem;
        margin-top: 0;
    }

    .phone-icon {
        top:40%;
    }

    .phone-icon {
        margin-top:0;
        right:2.2rem;
    }

}
.menu li {
    letter-spacing: 1.8px;
}
.sub-menu {
    width: 195px;
}
.menu li {
    font-size: 1.1rem;
}

.sub-menu li a {
    font-size: 1.1rem;
}
/* #menu-main-menu-right li.sub-menu-open > .sub-menu {
    left: unset;
    right: 0;
}
#menu-main-menu-right .sub-menu {
    left: unset;
    right: -9999px;
    
} */


/* .sub-menu li a {
    font-size: 1.1rem;
    text-align: right;
}
li.sub-menu-open > .sub-menu {
    left: unset;
    right: 0;
}
 .sub-menu {
    left: unset;
    right: -9999px;
} */