/* HEADER */
/* ----------------------------------------- */

/* Styling for header */
/* logo styling */
.logo-bar {
    display: flex;
    align-items: center;
    list-style: none;
}

.logo-wrapper {
    overflow: hidden;
    display: inline-block;
    transition: width 0.3s ease;
}

.fanatec-wrapper {
    clip-path: polygon(0 0, 100% 0, 30% 100%, 0% 100%);
}

.fanatec-wrapper:hover {
    clip-path: none;
}

.logo {
    max-width: none !important;
    display: block;
}

/* Megamenu */
@media all and (min-width: 992px) {
    .navbar {
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar .has-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        padding: 20px !important;
        background: rgba(30, 31, 36, 0.97) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .navbar .megamenu h2 {
        border-bottom: solid 1px #cc181e;
        display: inline-block;
    }

    .navbar .megamenu a {
        padding: 0 !important;
        color: #dddee0 !important;
        display: block;
    }

    .navbar .megamenu li {
        background: none !important;
        height: auto !important;
    }

    .navbar .megamenu .systems li {
        border-bottom: solid 1px #333;
        background: none !important;
    }

    .navbar .megamenu .systems li:last-child {
        border-bottom: none;
    }

    .navbar .nav-link {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .navbar .megamenu a.btn {
        padding: 1rem 2.14rem .875rem !important;
        color: #fff !important;
        font-size: .81rem;
        margin-left: 0;
        margin-right: 0;
    }

    .navbar .megamenu p {
        color: #dddee0;
    }

    header .navbar .dropdown-menu a {
        font-weight: 400;
    }
}

@media (max-width: 767.98px) {
    header {
        position: inherit !important;
    }

    #main-carousel {
        margin-top: 0px !important;
    }

    .navbar .megamenu {
        background: #000 !important;
    }

    .navbar .megamenu h2 {
        border-bottom: solid 1px #cc181e;
        display: inline-block;
    }

    .navbar .megamenu li {
        background: none !important;
        height: auto !important;
    }

    .navbar .megamenu .systems li {
        border-bottom: solid 1px #333;
    }

    .navbar .megamenu .systems li:last-child {
        border-bottom: none;
        margin-bottom: 1rem;
    }

    .navbar .megamenu li a {
        width: 100%;    
     }

    #main {
        margin-top: 0px !important;
    }
}