#menu-head {
    width: auto; height: auto;
}
#menu-head ul {
	list-style-type: none;
}
#menu-head ul li a,
#menu-head ul li strong {
	display: block;
    text-decoration: none;
    background-image: linear-gradient(to right, var(--magenta) 50%, #ffffffcc 50%);
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    background-position: 100% 0%;
    transition: background-position 0.25s linear;
}
#menu-head ul li a:hover,
#menu-head ul li strong:hover {
    background-position: 0% 0%;
}
#menu-head > ul > li.trail > a,
#menu-head > ul > li.trail > strong,
#menu-head ul li.active strong,
#menu-head ul li a:hover {
    background-position: 0% 0%;
}

#menu-head ul li:hover #menu-head-sub {
    max-height:500px;
}

#menu-head > ul {
    display: flex;
    justify-content: center;
    gap: min(2vw, 2em);
}
#menu-head > ul > li {
	display: block;
    height: 100%;
}
#menu-head > ul > li > a,
#menu-head > ul > li > strong {
    height: 3.2em; line-height:3.2em;
    font-size: 1em;
}
#menu-head > ul > li.last > a:last-of-type,
#menu-head > ul > li.last > strong:last-of-type {
    margin-right: 0;
}

#menu-head #menu-head-sub {
    position: absolute;
    left: 0; top: 6em;
    width: 100%; max-height: 0;
    transition: max-height 0.5s linear, background-color 0.5s linear;
    text-transform:none;
    overflow: hidden;
}
#menu-head #menu-head-sub .inside {
    display: flex;
    flex-direction: row;
    justify-content:left;
    align-items: center;
    gap: 12em;
}
#menu-head #menu-head-sub .inside div {
    width: auto;
    padding: 3em 0;
}
#menu-head #menu-head-sub .inside div h2 {
    font-size: 2em;
}
#menu-head #menu-head-sub .inside div p {
    font-size: 1em;
    color: var(--grey1);
}
#menu-head ul li ul {
    width: auto;
    padding: 3em 0;
}
#menu-head ul li ul li {
    margin-bottom: 1.5em;
}
#menu-head ul li ul li:last-of-type {
    margin-bottom: 0em;
}
#menu-head ul li ul li a,
#menu-head ul li ul li strong {
    width: 100%; margin: 0.1em 0; line-height: 1.8em;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1em;
    background-image: linear-gradient(to right, var(--magenta) 50%, white 50%);
}
#menu-head ul li ul li p {
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--grey1);
}

@media screen and (max-width:864px) {
    #cont-menu-head #menu-head {
        position: relative;
        display: block;
        width: 100%;
        margin: 0;
    }
    #cont-menu-head #menu-head ul li {
        display: block;
		width:100%;
        margin: 0; padding: 0;
		border:none;
		border-top:1px solid rgba(255,255,255,.15);
		border-bottom:1px solid rgba(0,0,0,.15);
	}
    #cont-menu-head #menu-head ul li a,
    #cont-menu-head #menu-head ul li strong {
        position: relative;
        margin: 0; padding: .5em 0 .5em 3vw;
        text-align:left;
        transition: none;
    }
	#cont-menu-head #menu-head ul li a:hover {
		background:none;
		color: var(--magenta);
	}
	#cont-menu-head #menu-head ul li.first {
		border-top:none;
	}
	#cont-menu-head #menu-head ul li.last {
		border-bottom:none;
	}
    #cont-menu-head #menu-head ul li label {
        position: absolute;
        display: table;
        right: 0; top: 0;
        width: 20%; height: 100%;
        font-style: normal;
        font-size: 1.5em;
    }

    #cont-menu-head #menu-head > ul { 
        flex-direction: column;
        gap: 0;
        width: 100%;
	    margin:0; padding:0;
    }
    #cont-menu-head #menu-head > ul > li > a,
    #cont-menu-head #menu-head > ul > li > strong {
        font-size: 1em;
    }

    #cont-menu-head #menu-head #menu-head-sub {
        position: static;
        display: none;
        max-height: max-content;
        background-color: transparent !important;
    }
    #cont-menu-head #menu-head #menu-head-sub .inside {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #cont-menu-head #menu-head #menu-head-sub .inside div {
        display: none;
        width: auto;
        padding-left: 1em;
        text-align: left;
    }
    
    #cont-menu-head #menu-head ul li.submenu input:checked ~ #menu-head-sub { display: block; }

    #cont-menu-head #menu-head ul li ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 0 1em 0;
    }
    #cont-menu-head #menu-head ul li ul li {
        width: 100%;
        padding: 1em 0;
    }
    #cont-menu-head #menu-head ul li ul li a,
    #cont-menu-head #menu-head ul li ul li strong {
        padding: 0 0 0 3vw;
        font-size: 1em;
    }
    #cont-menu-head #menu-head ul li ul li p {
        padding: 0 0 0 3vw;
    }
}
