/* BEGIN NAV */
#nav {
    /* margin-top: 25px; */
    display: inline-block;
    float: left;
    overflow: hidden;
}

@media (max-width: 560px) {
   #nav {
        /* margin-top: 25px; */
    } 
}

@media (min-width: 1024px) {
   #nav {
        margin-top: 0px;
        height: auto;
    } 
}

#nav label {
    cursor: pointer;
    height: 72px;
    line-height: 72px;
    position: relative;
    /* left: 0; */
    /* top: 0; */
    /* z-index: 2; */
    width: 50px;
    color: #fff;
    font-size: 12px;
    text-indent: 16px;
    text-transform: uppercase;
    display: inline-block;
}

#nav label:after {
    content: '';
    /* display: block; */
    left: 28px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid white;
    position: absolute;
    top: 46px;
}

#nav input {
    display: none;
}

#nav ul {
    background: #fff;
    max-height: 0;
    padding: 0;
    position: absolute;
    display: block;
    /* z-index: 3; */
    z-index: 0;
    margin: 0;
    /* transition: max-height 0.4s cubic-bezier(0.4, 0, 0, 1); */
    width: 100vw;
    overflow: hidden;
}

#nav input:checked + ul {
    max-height: 800px;
    /* z-index: 4; */
    z-index: 3;
    /* overflow: hidden; */
}

#nav li {
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    margin: 0;
    list-style: none;
}

#nav li:last-child {
    border-bottom-color: #ddd;
}

#nav a {
    color: #282828;
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    text-decoration: none;
}

#nav li li a {
    text-indent: 1em;
}

#nav ul ul {
    height: 100%;
    left: calc(100% + 1em);
    max-height: none;
    padding-bottom: 56px;
    position: absolute;
    top: 41px;
    width: 100%;
    transition: left 0.3s;
}

#nav ul ul.active {
    left: 0;
}

#nav ul ul h2 {
    display: none;
    font-size: 24px;
    position: absolute;
    top: 1em;
}

#catNavHead {
    left: 36px;
}

#actNavHead {
    left: 750px;
}

#nav #menuClose {
    box-sizing: border-box;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 1em;
    top: 72px;
    width: 48px;
    z-index: 4;
}

#nav input:checked ~ #menuClose {
    display: block;
}

#nav > ul > li.haschildren > a:after {
    border: 0 solid #333;
    border-width: 2px 2px 0 0;
    content: '';
    display: inline-block;
    height: 6px;
    margin-left: 4px;
    width: 6px;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

#nav > ul ul li.P23 {
    background: #f2871f;
}

#nav > ul ul li.P31 {
    background: #b3bb35;
}

#nav > ul ul li.P32 {
    background: #127dc2;
}

#nav > ul ul li.P23 a,
#nav > ul ul li.P31 a,
#nav > ul ul li.P32 a {
    color: #fff;
}

@media (min-width:560px) {
    #nav #menuClose {
        top: 72px;
    }

}

@media (min-width:1024px) {
    #nav input:checked ~ #menuClose {
        display: none;
    }

    .mouse #nav li li a:hover {
        background: #111;
        color: #fff;
        transition: all 0.1s ease-in;
    }

    #nav > ul ul li.P23 a:hover,
    #nav > ul ul li.P31 a:hover,
    #nav > ul ul li.P32 a:hover {
        background: none;
    }

    #nav li.haschildren > a {
        pointer-events: none;
    }

    #nav ul ul h2 {
        display: block;
        margin: 0;
    }

}