/* Header */
header {
  	height: 100px;
	width: 100%;
  	transition: all 0.3s ease-in-out;
  	position: fixed;
  	z-index: 9999;
    margin-top: 1rem;
}
header.scrolled{
	height: 94px;
    margin-top: 0;
    background-color: #fff;
    border-bottom: 1px solid #F54082;
}
header > div.container{
    border: 1px solid #fff;
    width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
/*header.scrolled > div.container{
     border-bottom: 1px solid #F54082; 
    width: 100vw;
}*/
.header{
	background-color: #fff;
	padding: 2rem 1.5rem;
}

#header-logo{
	width: 280px;
    height: 75px;
    position: relative;
	z-index: 999;
    background: transparent url("/layout/Logo-Daniela-Michel.svg")no-repeat center;
    background-size: contain;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin: 0.25rem 0.5rem;
}
header.scrolled #header-logo{
	width: 220px;
    height: 50px;
}
#header-logo > a{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

#header-right{
    padding: 0.25rem 1.25rem 0.25rem 0;
    margin-top: -0.25rem;
    width: calc(100% - 300px - 2rem);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
#header-right ul{
    display: flex;
	flex-direction: row;
    justify-content: flex-end;
}
#header-right ul li{
    display: inline;
    margin: 0 1.5rem;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;

}
#header-right ul li:last-of-type{
	margin-right: 0;
}
#header-right ul li:first-of-type{
	margin-left: 0;
}
#header-right ul > li.active > a,
#header-right ul > li > a:hover,
#nav.open ul > li.active > a{
	color: #F54082;
    position: relative;
}
#header-right ul > li.active > a::after,
#header-right ul > li > a:hover::after,
#nav.open ul > li.active > a::after{
	content: "";
  	position: absolute;
  	bottom: -0.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 2px;
	background-color: #F54082;
}
#header-right li.has-sub{
	position: relative;
	background-image: url('/layout/arrow-down.svg');
  	background-repeat: no-repeat;
  	background-size: 15px;
  	background-position: center right;
  	padding-right: 20px;
}
#header-right li.has-sub ul{
	display: none;
	background-color: #fff;
	border: solid 1px #F54082;
	position: absolute;
	width: 300px;
  	padding: 1rem;
  	top: 1.5rem;
}
#header-right li.has-sub:hover,
#header-right li.has-sub.open{
	background-color: #fff;
	background-image: url('/layout/arrow-up.svg');
	background-repeat: no-repeat;
  	background-size: 15px;
  	background-position: center right;
  	padding-right: 20px;
}
#header-right li.has-sub.open ul{
	display: none;
}
#header-right li.has-sub:hover ul,
#header-right li.has-sub.open ul{
	display: flex;
	flex-direction: column;	
}
#header-right li.has-sub:hover ul li,
#header-right li.has-sub.open ul li{
	margin: 0.5rem 0;
}
#header-right li.has-sub ul li{
	text-align: center;
	position: relative;
}
#header-right li.has-sub ul li a{
	display: block;
	width: 100%;
}

#header-right li.has-sub:hover ul li:not(:last-child),
#header-right li.has-sub.open ul li:not(:last-child){
	border-bottom: 1px solid #fff;
 	padding-bottom: 1rem;
}

/* Mobile */
#mobile_button{
	position: relative;
	z-index: 9999;
  	width: 35px;
  	height: 35px;
  	overflow: hidden;
  	-webkit-transform: rotate(0deg);
  	-moz-transform: rotate(0deg);
  	-o-transform: rotate(0deg);
  	transform: rotate(0deg);
  	-webkit-transition: .5s ease-in-out;
  	-moz-transition: .5s ease-in-out;
  	-o-transition: .5s ease-in-out;
  	transition: .5s ease-in-out;
  	cursor: pointer;
}
#mobile_button span{
  	display: block;
  	position: absolute;
  	height: 3px;
  	width: 100%;
    background-color: #434343;
  	opacity: 1;
	border-radius: 0;
  	left: 0;
  	-webkit-transform: rotate(0deg);
  	-moz-transform: rotate(0deg);
  	-o-transform: rotate(0deg);
  	transform: rotate(0deg);
  	-webkit-transition: .25s ease-in-out;
  	-moz-transition: .25s ease-in-out;
  	-o-transition: .25s ease-in-out;
  	transition: .25s ease-in-out;
}
#mobile_button span:nth-child(1) {
  	top: 2px;
}
#mobile_button span:nth-child(2) {
  	top: 14px;
}
#mobile_button span:nth-child(3) {
  	top: 26px;
}
#mobile_button.open span{
	background-color: #F54082;
}
#mobile_button.open span:nth-child(1) {
  	-webkit-transform: rotate(45deg);
  	-moz-transform: rotate(45deg);
  	-o-transform: rotate(45deg);
  	transform: rotate(45deg);
  	top: 16px;
}
#mobile_button.open span:nth-child(2) { 
  	width: 0%;
}
#mobile_button.open span:nth-child(3) {
  	-webkit-transform: rotate(-45deg);
  	-moz-transform: rotate(-45deg);
  	-o-transform: rotate(-45deg);
  	transform: rotate(-45deg);
  	top: 16px;
}
#mobile_button, #nav.closed {
	display: none;
}
#nav.open{
	display: block;
	position: fixed;
	right: 0;
	top: 0;
	width: 50%;
	height: 100vh;
	z-index: 9990;
	background-color: #fff;
	padding: 100px 2rem;
	overflow-y: scroll;
	border-left: solid 1px #F54082;
}
#nav.open ul{
	display: flex;
	flex-direction: column;
	list-style: none;
}
#nav.open ul li{
    text-transform: uppercase;
}
#nav.open ul li:not(:last-child){
	border-bottom: 1px solid #F54082;
  	padding-bottom: 0.75rem;
  	margin-bottom: 0.75rem;
}
#nav.open ul li a{
	display: inline-block;
	color: #434343;
	margin: 0.5rem 0;
}
#nav.open ul li.has-sub>ul{
	margin-left: 2rem;
}
#nav.open ul li.has-sub>ul li a{
	font-weight: 400;
}

@media (max-width: 1280px){
    header > div.container{
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    #header-logo{
        width: 250px;
        height: 60px;
    }
    header.scrolled #header-logo{
        width: 220px;
        height: 50px;
    }
}
@media (max-width: 1080px){
	header{
		height: 95px;
	}
    header > div.container{
        align-items: center;
    }
    header.scrolled{
        height: 84px;
    }
    #header-logo{
        width: 220px;
        height: 50px;
    }
    header.scrolled #header-logo{
        width: 180px;
        height: 40px;
    }
	#header-right{
		display: none;
	}
    #mobile_button{
		display: block;
        margin-right: 1rem;
	}
	#nav.open ul > li.active > a::after {
		left: 0;
		transform: translateX(0);
	}
}
@media (max-width: 820px){
	header{
		height: 85px;
	}
    header.scrolled{
        height: 66px;
    }
    header.scrolled > div.container{
        padding: 0.75rem 1rem;
    }
    #header-logo{
        width: 180px;
        height: 40px;
    }
    header.scrolled #header-logo{
        width: 150px;
        height: 30px;
    }
    #nav.open{
		width: 100%;
	}
    /* #nav.open ul li{
        text-align: center;
    } */
    #nav.open ul > li.active > a::after{
        bottom: -0.35rem;
    }
}