header {
    /*background-color: var(--color-main);*/
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    background-image: linear-gradient(var(--color-main), var(--color-main-opacity-2));
    /*border-bottom: 4px solid var(--color-button);*/
    transition: background-color 250ms;
}

header.background {
    background-color: var(--color-main);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:94%;
    max-width: var(--max-width);
    margin-inline: auto;
    position: relative;
    padding: 1rem;
    text-align: right;
    transition: all 125ms;
}

.header-content > a img {
    display: block;
    transition: all 125ms;
    width: 240px;
}

.header-contact a {
    color: var(--color-text-light);
    text-decoration: none;
    background-color: var(--color-button);
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    line-height: 1;
    border: 1px solid var(--color-border);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    position: relative;
    display: block;
    text-align: center;
}
.header-contact a::before {
    content: "";
    position: absolute;
    top: 55%;
    left: 0.75rem;
    transform: translateY(-50%);
    background-color: var(--color-text-light);
    mask-image: url("/assets/icons/arrow_outward.svg");
    mask-size: contain;
    mask-position: center;
    width: 1.5rem;
    height: 1.5rem;
}
.header-contact a::after {
    content: '';
    transition: transform 250ms;
    transform: scaleX(0);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0003;
    transform-origin: left;
}
.header-contact a:hover::after {
    transform: scaleX(1);

}

.sticky .header-content {
    padding: 0.25rem 0;
}

.menu-icon {
    display: none;
    height: 2rem;
    width: 2rem;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text-light);
}

.menu-resp {
    background-color: var(--color-text-light);
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    transform: translateX(100%);
    background-color: var(--color-main-opacity);
    z-index: 100;
    transition: all 250ms;
    max-width: none;
    display: none;
    text-align: left;
}

.menu-resp .close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--color-text-light);
}

.menu-resp nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
}

.menu-resp nav li {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: #fff;
}

.menu-resp nav a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.menu-resp nav>li>ul {
    overflow: hidden;
    height: 0;
    transition: all 250ms;
}

.menu-resp nav>li>ul>li a {
    font-size: 1.125rem;
    font-weight: normal;
}
.menu-resp nav>li>ul>li button {
    font-size: 1.125rem;
    background-color: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.has-submenu.show>ul {
    display: block;
    padding-top: 0.5rem;
}

.has-submenu {
    position: relative;
    display: block;
}

.submenu-plus {
    position: absolute;
    top: 0.625rem;
    right: -1rem;
    background: transparent;
    border: none;
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.has-submenu .submenu-plus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #fff;
}

.has-submenu.show .submenu-plus::before {
    display: none;
}

.has-submenu .submenu-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background-color: #fff;
}

.menu-lang-resp {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--color-text-light);
}
.menu-lang-resp a {
    color: var(--color-text-light);
}

@media only screen and (max-width: 1120px) {
    header .header-contact {
        display: none;
    }
}

@media only screen and (max-width: 960px) {
    header .header-contact {
        margin: auto;
        display: block;
    }

    .menu-icon {
        display: flex;
    }

    .menu-resp.show {
        display: flex;
        transform: translateX(0);
    }
}

@media only screen and (max-width: 640px) { 
    header .header-contact {
        display: none;
    }
}

/*************************************************************************************************/

.header-menu {
    font-family: Flama;
}
.menu-wrapper {
    position: relative;
    margin: auto;
}

.header-menu nav {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    padding: 0;
}
.header-menu nav:hover .header-menu {
    background-color: var(--color-main);
}
.header-menu nav li {
    list-style: none;
    position: relative;
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    
}
.header-menu nav > li {
    text-align: center;
}
.header-menu nav > li > a {
    text-align: center;
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    /*font-weight: 500;*/
}
.header-menu nav > li:hover, .header-menu nav > li:hover > a {
    color: #eee;
}
.header-menu nav > li > a.selected span {
    border-bottom: 1px solid var(--color-text-light);
}

.header-menu nav > li > ul {
    position: absolute;
    display: none;
    top: calc(100% - 0.5rem);
    /*left: 1.5rem;*/
    left: 0;
    width: max-content;
    padding-top: 0.25rem;
    flex-direction: column;
    text-align: left;
    height: auto;
    height: fit-content;
}
header:has(li:hover) {
    background-color: var(--color-main);
}
.header-menu nav > li:has(ul):after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.25rem;
    width: 0;
    height: 0;
    border-right: 0.25rem solid transparent;
    border-top: 0.375rem solid var(--color-text-light);
    border-left: 0.25rem solid transparent;
}
.header-menu nav > li > ul > li {
    margin: 0;
    display: block;
    padding: 0.5rem 0;
}
.header-menu nav > li > ul > li > button {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0 2rem;
}
.header-menu nav > li > ul > li::before {
    content: '';
    background-color: var(--color-main);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-100vw);
    width: 200vw;
    height: 100%;
    z-index: -1;
}
.header-menu nav > li > ul > li:first-child {
    padding-top: 1rem;
}
.header-menu nav > li > ul > li:last-child {
    padding-bottom: 1rem;
}
.header-menu nav > li > ul > li > a {
    text-decoration: none;
    font-size: 1.125rem;
    color: var(--color-text-light);
    display: block;
    padding: 0 2rem;
}
.header-menu nav > li > ul > li:hover a {
    color: #ccc;
}   
.header-menu nav > li:hover::after {
    border-top: 0.375rem solid #ccc;
}
.header-menu nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    /*background-color: var(--color-text-light);*/
    background-color: #ccc;
    transform: scaleX(0);
    transition: transform 250ms;
}
.header-menu nav > li:hover > a::after {
    transform: scaleX(1);
}
.header-menu nav > li:hover ul {
    display: flex;
}
.header-menu nav > li:hover > ul::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: fit-content;
    width: 100%;
    background-color: var(--color-main);
    z-index: -1;
}

@media only screen and (max-width: 960px) {
    .header-menu {
        display: none;
        box-shadow: none;
    }
}