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

header.stuck {
    height:84px;
    background: rgba(61, 106, 142,.8);
    z-index: 4;
    }

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

header.stuck .logo img {
    width:auto;
    height:100%;
}

/* meny nav */
.nav-primary {
    right:5.6rem;
  }
  
  #menu-main-menu {
    margin-bottom:0;
  }
  
  .nav-primary #menu-main-menu > li > a {
    color:#fff;
    font-size:1.4rem;
    letter-spacing:2.8px;
    line-height:1;
    text-transform:uppercase;
    font-weight:600;
    padding:2.4rem 0;
    display:inline-block;
  }
  
  .stuck .nav-primary #menu-main-menu > li > a {
    padding:3.5rem 0;
  }
  
  .sub-menu {
    top:60px;
    border-radius:0;
    width: 255px;
  }
  
  .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;
    }
  
    .nav-primary.open { 
        border-top:1px solid #d6d6d6; 
    }
  
    .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) ); */
        height:auto;
        padding: 4rem 2rem;
        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;
    }
  
    .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:relative;
        border-top:4px solid var(--accent-dark);
        z-index:3;
    }

    .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 > 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: #fff;
        border-bottom: 1px solid #e9e9e9;
        top:-84px;
    }

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

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

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

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

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

    .stuck .from-top.open {
        height: calc( 100vh - 80px );
        top: 80px;
    }

    .nav-primary {
        top:146px;
    }

    .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;
    }

}