header {
    height: 100px;
    width: 100vw;
    background-color: #fff;
    box-shadow: 0 1px 5px 1px #999;
    padding: 10px 50px;
    z-index: 10;
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

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

/* NAVIGATION */
nav {
    height: 100%;
}

#toggle-mobile-nav,
#toggle-mobile-nav:hover,
#toggle-mobile-nav:active {
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    height: 40px;
    width: 35px;
    display: none;
    border: none;
    background-color: transparent;
    color: var(--color-comp-green);
    z-index: 5;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

#toggle-mobile-nav .btn-menu-line,
#toggle-mobile-nav:hover .btn-menu-line,
#toggle-mobile-nav:active .btn-menu-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-comp-green);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

#toggle-mobile-nav.active .btn-menu-line,
#toggle-mobile-nav.active:hover .btn-menu-line,
#toggle-mobile-nav.active:active .btn-menu-line {
    background-color: #fff;
}

#toggle-mobile-nav .btn-menu-line:first-child,
#toggle-mobile-nav:hover .btn-menu-line:first-child,
#toggle-mobile-nav:active .btn-menu-line:first-child {
    top: 20%;
}

#toggle-mobile-nav .btn-menu-line:nth-child(2),
#toggle-mobile-nav:hover .btn-menu-line:nth-child(2),
#toggle-mobile-nav:active .btn-menu-line:nth-child(2) {
    top: calc(50% - 1px);
}

#toggle-mobile-nav .btn-menu-line:last-child,
#toggle-mobile-nav:hover .btn-menu-line:last-child,
#toggle-mobile-nav:active .btn-menu-line:last-child {
    bottom: 20%;
}

#toggle-mobile-nav.active .btn-menu-line:first-child,
#toggle-mobile-nav.active:hover .btn-menu-line:first-child,
#toggle-mobile-nav.active:active .btn-menu-line:first-child {
    transform: rotateZ(45deg);
    -webkit-transform: rotateZ(45deg);
    -moz-transform: rotateZ(45deg);
    -ms-transform: rotateZ(45deg);
    -o-transform: rotateZ(45deg);
    width: 130%;
    top: calc(50% - 1px);
    left: -4px;
}

#toggle-mobile-nav.active .btn-menu-line:nth-child(2),
#toggle-mobile-nav.active:hover .btn-menu-line:nth-child(2),
#toggle-mobile-nav.active:active .btn-menu-line:nth-child(2) {
    opacity: 0;
}

#toggle-mobile-nav.active .btn-menu-line:last-child,
#toggle-mobile-nav.active:hover .btn-menu-line:last-child,
#toggle-mobile-nav.active:active .btn-menu-line:last-child {
    transform: rotateZ(-45deg);
    -webkit-transform: rotateZ(-45deg);
    -moz-transform: rotateZ(-45deg);
    -ms-transform: rotateZ(-45deg);
    -o-transform: rotateZ(-45deg);
    width: 130%;
    top: calc(50% - 1px);
    left: -4px;
}

.nav-list {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;

    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

.nav-list-item {
    height: 80%;
}

.nav-site-link:link,
.nav-site-link:visited,
.nav-site-link:hover,
.nav-site-link:active {
    color: var(--color-comp-green);
    text-decoration: none;
    height: 100%;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 62%;
    font-weight: 500;
    font-style: italic;
    padding: 0 10px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-site-link:link::after,
.nav-site-link:visited::after,
.nav-site-link:hover::after,
.nav-site-link:active::after {
    position: absolute;
    top: 80%;
    left: 10px;
    height: 2px;
    background-color: #777;
    display: block;
    content: "";
    transition: right 0.3s;
    -webkit-transition: right 0.3s;
    -moz-transition: right 0.3s;
    -ms-transition: right 0.3s;
    -o-transition: right 0.3s;
}

.nav-site-link:link::after,
.nav-site-link:visited::after {
    right: 100%;
}

.nav-site-link:hover::after,
.nav-site-link:active::after {
    right: 35%;
}

.nav-sliding-link:link ion-icon,
.nav-sliding-link:visited ion-icon,
.nav-sliding-link:hover ion-icon,
.nav-sliding-link:active ion-icon {
    margin-left: 3px;
    transition: transform 0.3s;
    -webkit-transition: transform 0.3s;
    -moz-transition: transform 0.3s;
    -ms-transition: transform 0.3s;
    -o-transition: transform 0.3s;
}

.nav-sliding-link:hover ion-icon,
.nav-sliding-link:active ion-icon {
    transform: rotateZ(180deg);
    -webkit-transform: rotateZ(180deg);
    -moz-transform: rotateZ(180deg);
    -ms-transform: rotateZ(180deg);
    -o-transform: rotateZ(180deg);
}

.nav-sliding-link:hover + .nav-subnav,
.nav-sliding-link:active + .nav-subnav {
    max-height: 300px;
}

/* SUBNAV */
.nav-subnav {
    position: absolute;
    top: 90%;
    left: -50px;
    width: 300px;
    max-height: 0;
    list-style: none;
    background-color: var(--color-comp-blue);
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    transition: max-height 0.4s ease-in-out;
    -webkit-transition: max-height 0.4s ease-in-out;
    -moz-transition: max-height 0.4s ease-in-out;
    -ms-transition: max-height 0.4s ease-in-out;
    -o-transition: max-height 0.4s ease-in-out;
}

.nav-subnav:hover {
    max-height: 300px;
}

.subnav-site-link:link,
.subnav-site-link:visited,
.subnav-site-link:hover,
.subnav-site-link:active {
    font-size: 65%;
    color: #fff;
    padding: 10px 25px;
    display: block;
    width: 100%;
    background-color: var(--color-comp-blue);
    transition: background-color 0.2s;
    -webkit-transition: background-color 0.2s;
    -moz-transition: background-color 0.2s;
    -ms-transition: background-color 0.2s;
    -o-transition: background-color 0.2s;
}

.subnav-site-link:hover,
.subnav-site-link:active {
    background-color: #116c88;
}

.subnav-site-link:link::after,
.subnav-site-link:visited::after,
.subnav-site-link:hover::after,
.subnav-site-link:active::after {
    position: absolute;
    left: 0;
    top: 0;
    background-color: #fff;
    width: 4px;
    display: block;
    content: "";

    transition: height 0.2s;
    -webkit-transition: height 0.2s;
    -moz-transition: height 0.2s;
    -ms-transition: height 0.2s;
    -o-transition: height 0.2s;
}

.subnav-site-link:link::after,
.subnav-site-link:visited::after {
    height: 0;
}

.subnav-site-link:hover::after,
.subnav-site-link:active::after {
    height: 100%;
}

/* TOP-MARGIN-TO-NAV */
#auto-margin {
    width: 100%;
    height: 100px;
}

/*#BTN-LINK-FORM */
#btn-link-form:link,
#btn-link-form:visited,
#btn-link-form:hover,
#btn-link-form:active {
    font-size: 140%;
    display: block;
    padding: 15px 25px;
    background-color: #fff;
    border: 4px solid var(--color-comp-green);
    position: fixed;
    bottom: 45px;
    right: 45px;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

#btn-link-form:link,
#btn-link-form:visited {
    color: var(--color-comp-green);
}

#btn-link-form:hover,
#btn-link-form:active {
    color: #fff;
    background-color: var(--color-comp-green);
}

@media only screen and (max-width: 1140px) {
    nav {
        display: flex;
        align-items: center;
    }

    #toggle-mobile-nav,
    #toggle-mobile-nav:hover,
    #toggle-mobile-nav:active {
        display: flex;
    }
    
    .nav-list {
        padding-top: 100px;
        position: fixed;
        top: 0;
        right: 0;
        bottom: -50px;
        width: 350px;
        max-width: 100vw;
        background: linear-gradient(rgba(100, 100, 100, 0.9), rgba(100, 100, 100, 0.9), rgba(100, 100, 100, 0.9));
        flex-direction: column;
        align-items: end;
        margin-right: -350px;
    }

    .nav-list.visible {
        margin-right: 0;
    }

    .nav-list-item {
        width: 100%;
        height: auto;
    }

    .nav-sliding-link:link,
    .nav-sliding-link:visited,
    .nav-sliding-link:hover,
    .nav-sliding-link:active {
        height: fit-content;
        background-color: unset;
    }

    .nav-sliding-link.active:link,
    .nav-sliding-link.active:visited,
    .nav-sliding-link.active:hover,
    .nav-sliding-link.active:active {
        background-color: var(--color-comp-blue);
    }

    .nav-subnav {
        position: relative;
        top: unset;
        left: unset;
        width: 100%;
    }

    .subnav-site-link:link,
    .subnav-site-link:visited,
    .subnav-site-link:hover,
    .subnav-site-link:active {
        text-align: right;
    }

    .nav-site-link:link,
    .nav-site-link:visited,
    .nav-site-link:hover,
    .nav-site-link:active {
        justify-content: right;
        padding: 10px 25px;
        font-size: 70%;
        font-style: normal;
        text-align: right;
        color: #fff;
    }

    .nav-site-link:hover,
    .nav-site-link:active {
        background: linear-gradient(rgba(8, 138, 179, 25), rgba(8, 138, 179, 25), rgba(8, 138, 179, 25));
    }

    .nav-site-link:link::after,
    .nav-site-link:visited::after,
    .nav-site-link:hover::after,
    .nav-site-link:active::after {
        display: none;
    }

    #btn-link-form:link,
    #btn-link-form:visited,
    #btn-link-form:hover,
    #btn-link-form:active {
        position: absolute;
        width: fit-content;
        bottom: 10px;
        right: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        -webkit-transform: translate(-50%, -50%) !important;
        -moz-transform: translate(-50%, -50%) !important;
        -ms-transform: translate(-50%, -50%) !important;
        -o-transform: translate(-50%, -50%) !important;
}
}