header {
    position: relative;
    width: 100%;
}

.landing-page header {
    min-height: 80vh;
    display: grid;
    place-content: center;
}

.landing-page header::after {
    content: "";
    position: absolute;
    width: 329px;
    height: 50px;
    transform: rotate(-5deg);
    margin: auto;
    z-index: 1;
    display: block;
    background: var(--yellow);
    inset: 100% 0 0 0;
}

header .swiper {
    position: absolute;
    width: 100%;
    height: 80vh;
    top: 0;
    z-index: 0;
}

header .swiper img {
    width: 100%;
    object-fit: cover;
    height: 100%;
}

header ul {
    display: none;
}

header ul a {
    text-decoration: none;
}

#menu-toggle {
    display: flex;
    flex-flow: column;
    gap: 4px;
    z-index: 299;
    position: relative;
    width: fit-content;
}

header .toggle-container {
    position: absolute;
    top: 2rem;
    width: 100%;
    left: 0;
}

div#identity-header {
    padding: 2rem 15px;
    width: 100%;
}

header .toggle-container .toggle-wrapper {
    max-width: 1280px;
    margin: auto;
    padding: 0px;
    direction: rtl;
    height: 98px;
    place-content: center;
}

.menu-bar {
    width: 30px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body:not(.landing-page) .menu-bar {
    background-color: var(--footer-bg);
}

body.open #menu-toggle .menu-bar {
    background: var(--white);
}

body.open #menu-toggle .menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.open #menu-toggle .menu-bar:nth-child(2) {
    opacity: 0;
}

body.open #menu-toggle .menu-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

body header .main_menu > div {
    display: none;
    opacity: 0;
    transition-property: display opacity;
    transition-duration: .25s;
    transition-behavior: allow-discrete;
    translate: 0 -46.5%;

}

body.open header .main_menu > div {
    display: block;
    background-color: var(--footer-bg);
    height: 100vh;
    width: 100%;
    z-index: 2;
    position: fixed;
    top: 0;
    right: 0;
    display: grid;
    place-content: center;
    place-items: start center;
    padding-top: 0em;
    opacity: .95;
    translate: 0 0;
    grid-template-columns: repeat(4, 1fr);

    @starting-style {
        opacity: 0;
        translate: 0 -46.5%;
    }
}

body.open header .main_menu > div > ul {
    display: flex;
    position: absolute;
    flex-flow: column;
    gap: 2em;
    padding-top: 2em;
    text-align: center;
    left: 0px;
    width: 100%;
    align-items: center;
}

body.open header .main_menu > div > ul > li:first-of-type {
    margin-bottom: 90px;
}

header ul a:hover,
header ul a:focus,
header ul a:active,
header ul a {
    color: var(--white);
    font-weight: 400;
    font-size: 38px;
    font-family: 'Lora', sans-serif;
}

a.logo {
    height: auto;
    display: block;
    z-index: 300;
    position: relative;
}

#identity-header a {
    display: block;
    z-index: 2;
    position: relative;
    width: fit-content;
    margin: auto;
}

.landing_header_content {
    z-index: 2;
    position: absolute;
    color: var(--white);
    width: 100%;
    text-align: center;
    bottom: 5rem;
}

.landing_header_content h1 {
    font-family: 'Lora', sans-serif;
    font-size: 37px;
    margin: 0;
    font-weight: 400;
    filter: drop-shadow(0px 0px 0px var(--white));
}


header img.logo {
    max-width: 400px;
    height: 105px;
    width: 100%;
    object-fit: contain;
}

@media(max-width: 1325px) {
    body.open header .main_menu > div > ul {
        padding: 2em 15px;
        right: 0;
        left: unset;
    }

    #menu-toggle {
        padding-right: 15px;
    }
}

@media(max-width: 740px) {

    header .toggle-container {
        top: 1rem;
    }

    #identity-header a {
        display: block;
    }

    #identity-header a img {
        max-width: 250px;
    }

    body.open header .main_menu > div > ul {
        padding: 9em 15px;
        gap: 1em;
    }

    body.open header .main_menu > div {
        width: 100%;
    }

    html:has(body.open), body.open {
        overflow: hidden;
    }

}


@media(max-width: 680px) {
    body.open header .main_menu > div > ul {
        padding: 2.2em 15px;
    }

    body.open header .main_menu > div > ul > li:first-of-type {
        margin-bottom: 40px;
    }

    header ul a:hover, header ul a:focus, header ul a:active, header ul a {
        font-size: 28px;
    }
}