header .row-header {
	width: 100%;		height: 72px;
	margin-top: 40px;
	padding: 16px 40px;

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;

	border-radius: 64px;
	
}
header .row-header .title {
    flex: 0 0 auto;
	cursor: pointer;
}
header .row-header .title img.logo {
	width: auto;
	height: 39px;
}

/*    ================================================================================ */
/*                             BURGER BUTTON                                           */
/*    ================================================================================ */
header .menu-burger-button {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    background: transparent;
    border: none;
    cursor: pointer;
}
header .menu-burger-button .burger-icon {
    flex: 0 0 3px;
    width: 100%;    height: 3px;

    background: var(--color-text-black);
    border-radius: 4px;
    
    transition: transform 0.3s ease-in-out,
                opacity 0.3s ease-in-out;
    transform-origin: center center;
}
header .menu-burger-button.opened .burger-icon:first-child {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}
header .menu-burger-button.opened .burger-icon:nth-child(2) {
    opacity: 0;
}
header .menu-burger-button.opened .burger-icon:last-child {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/*    ================================================================================ */
/*                                 NAV BAR                                             */
/*    ================================================================================ */
header nav.menu {
    flex: 1 1 auto;

    display: block;
}
header nav.menu ul {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;

    list-style-type: none;
}
header nav.menu ul li {
    flex: 0 0 auto;
    position: relative;
    max-height: 34px;

    display: flex;
    align-items: center;
    border-radius: 8px;
    white-space: normal;
}
header nav.menu ul li.menu-item.active {
    background: rgba(0, 0, 0, 0.10);
}
header nav.menu ul li a {
    display: block;
    padding: 8px 16px;

    color: var(--color-text-black);
    font-family: var(--font-family-title);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
}
header nav.menu ul li a:hover {
    color: var(--color-yale-blue);
}
header nav.menu ul li.menu-item > .menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
header nav.menu ul li.menu-item > .menu-dropdown ul {
    padding: 8px;
    margin-top: 24px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;

    border-radius: 16px;
}

header nav.menu ul li.menu-item:hover > .menu-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/*    ================================================================================ */
/*                               MENU MOBILE                                           */
/*    ================================================================================ */
.nav-mobile {
    position: fixed;
    top: 0;
    width: 200vw;   height: 100%;
    right: 100vw;

    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    
    transition: right 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.nav-mobile.opened {
    right: 0;
}
.nav-mobile .nav-mobile-content {
    position: absolute;
    top: 0;         right: 0;
    width: 100vw;
    min-height: 100%;
    padding-top: 92px;
}
.nav-mobile .nav-mobile-content .nav-mobile-main, 
.nav-mobile .nav-mobile-content .nav-mobile-dropdown {
    position: absolute;
    top: 92px;      left: 0;
    width: 100%;

    transition: left 0.3s ease-in-out;
}
.nav-mobile .nav-mobile-content .nav-mobile-dropdown {
    left: 100%;
}
.nav-mobile .nav-mobile-content.show-dropdown .nav-mobile-main {
    left: -100%;
}
.nav-mobile .nav-mobile-content.show-dropdown .nav-mobile-dropdown {
    left: 0;
}

.nav-mobile .nav-mobile-main ul {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;

    list-style-type: none;
}
.nav-mobile .nav-mobile-main ul li {
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    border-radius: 8px;
}
.nav-mobile .nav-mobile-main ul li.active {
    background: rgba(0, 0, 0, 0.10);
}
.nav-mobile .nav-mobile-main ul li::after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;

    background: url(../images/pictio-arrow-right.svg) no-repeat center center;
}
.nav-mobile .nav-mobile-main ul li .menu-link {
    flex: 1 1 auto;
    padding: 8px 16px;

    border: 0;
    background: transparent;
    appearance: none;

    color: var(--color-text-black);
    font-family: var(--font-family-title);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
}
.nav-mobile .nav-mobile-main ul li .menu-link:hover {
    color: var(--color-yale-blue);
}

.nav-mobile .nav-mobile-dropdown ul {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;

    list-style-type: none;
}
.nav-mobile .nav-mobile-dropdown ul.hidden {
    display: none;
}
.nav-mobile .nav-mobile-dropdown ul li {
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.nav-mobile .nav-mobile-dropdown ul li.menu-back {
    margin-bottom: 16px;
}
.nav-mobile .nav-mobile-dropdown ul li.menu-back::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;

    background: url(../images/pictio-arrow-left.svg) no-repeat center center;
}
.nav-mobile .nav-mobile-dropdown ul li * {
    flex: 1 1 auto;
    padding: 8px 16px;

    border: 0;
    background: transparent;
    appearance: none;

    color: var(--color-text-black);
    font-family: var(--font-family-title);
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    text-align: left;
}
.nav-mobile .nav-mobile-dropdown ul li.menu-back * {
    padding-left: 0;
    font-weight: 700;
    font-size: .9rem;
}
.nav-mobile .nav-mobile-dropdown ul li *:hover {
    color: var(--color-yale-blue);
}


/*    ================================================================================ */
/*                                   MOBILE.                                           */
/*    ================================================================================ */
@media screen and (min-width: 992px) {
    header .menu-burger-button {
        display: none;
    }
    .nav-mobile {
        display: none;
    }
}
@media screen and (max-width: 992px) {
    header .row-header {
        width: calc(100% - 32px);
        height: 60px;
        margin: 16px 16px 0 16px;
        padding: 16px 32px;
    }
    header .row-header .title img.logo {
        height: 27px;
    }
    header nav.menu {
        display: none;
    }    
}