header div.logo {
    text-align: center;
    padding: 10px;
}

header div.logo img {
    width: 300px;
}

header form.search {
    position: absolute;
    top: 30px;
    right: 30px;
}

header nav {
    background-color: var(--blue);
    color: var(--white);
}

header nav h3 {
    text-transform: uppercase;
    font-size: 16px;
}

header nav a {
    color: var(--white);
    text-decoration: none;
}

header nav > div > a {
    display: inline-block;
    padding: 12px 25px;
    font-size: 18px;
    line-height: 24px;
}

header nav > .nav > a::after {
    display: inline-block;
    margin-left: 10px;
    content: '';
    width: 5px;
    height: 5px;
    border-bottom: 1px solid var(--white);
    border-right: 1px solid var(--white);
    transform: translateY(-50%) rotate(45deg);
    transition: transform .3s;
}

header nav > .nav:hover > a::after {
    transform:  rotate(225deg);
}

header nav .nav > div a {
    display: inline-block;
    padding: 5px 6px;
    font-size: 15px;
    line-height: 17px;
}

header nav a:hover {
    transition: color .3s;
}

header nav a:hover {
    color: var(--l-blue1);
}

/* Mobile & Tablet */
@media (max-width: 1120px) {
    header .mgE {
        position: absolute;
        top: 10px;
        left: 5px;
    }

    header form.search {
        top: 15px;
        right: 20px;
    }

    header nav {
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        padding: 30px 10px;
        text-align: center;
        overflow: hidden;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        transition: clip-path 1s;
    }

    header nav h3 {
        margin: 20px 0 10px 0;
        padding: 10px 15px;

        background-repeat: no-repeat;
        background-position: bottom left 15px;
        background-size: contain;
        background-image: url(/img/header/hygene.png);
    }

    header nav > div > a {
        font-weight: bold;
    }

    body:not(.nav) header nav {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    header nav > div > div {
        margin-bottom: 30px;
    }

    header nav > div > div picture {
        display: none;
    }

    header nav > div > div a {
        display: inline-block;
        padding: 15px 10px;
        font-weight: 400;
    }
}

/* Desktop */
@media (min-width: 1120px) {
    header .mgE {
        display: none;
    }

    header nav {
        text-align: center;
        position: relative;
    }

    header nav > div {
        display: inline-block;
    }

    header nav h3 {
        margin: 0 0 10px 0;
        padding: 3px 15px;
        display: inline-block;
        color: #FFF;
    }

    header nav .nav > div {
        position: absolute;
        left: 0;
        right: 0;
        text-align: left;
        padding: 20px 100px;
        background-color: var(--blue);
        overflow: hidden;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        transition: clip-path .3s;
        z-index: 1;
    }

    header nav .nav:not(:hover) a + div {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    header nav .nav picture {
        display: inline-block;
        width: 80px;
        height: 200px;
        /*margin-right: 20px;*/
        vertical-align: top;
        margin: -40px -20px 0 0;
    }

    header nav .nav picture + div {
        display: inline-block;
        width: calc(100% - 80px);
        vertical-align: top;
    }

    header .gama {
        display: flex;
        justify-content: center;
    }

    header .gama > div {
        min-width: 360px;
    }
}

picture.slider {
    aspect-ratio: 3 / 1;
}

header form.search {
    display: inline-block;
    background-color: #FFF;
    border: 2px solid var(--blue);
    border-radius: 20px;
    box-sizing: border-box;
    text-align: right;
    white-space: nowrap;
    overflow: auto;
}

header form.search input {
    width: 38px;
    height: 38px;
    padding: 5px 18px;
    color: transparent;
    box-sizing: border-box;
    border: none;
    vertical-align: top;

    font-family: 'Open Sans', sans-serif;
    font-size: 15px;

    position: relative;
    margin-right: -44px;
    background-color: transparent;
    cursor: pointer;

    transition: width 0.3s ease, color 0.3s ease, margin-right 0.3s ease;
}

header form.search button {
    background-color: #FFF;
    border: none;
    vertical-align: top;
    box-sizing: border-box;
    width: 44px;
    height: 38px;
    background-image: url(../svg/header/search.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center right 8px;
    cursor: pointer;

    transition: background-position 0.3s ease;
}

header .search input:not(:placeholder-shown),
header .search input:focus {
    color: black;
    width: 200px;
    cursor: default;
    margin-right: 0;
}

header .search input:not(:placeholder-shown) + button,
header .search input:focus + button { background-position: center; }
