/* ============== */
/* == Nagłówek == */
/* ============== */
header .wp-block-columns,
wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    margin-bottom: 0;
}

.ast-above-header-wrap .wp-block-column.is-layout-flow,
.main-header-bar-wrap .wp-block-column.is-layout-flow {
    flex-basis: auto;
}

.ast-above-header-wrap nav a {
    text-transform: uppercase;
}

.ast-icon.icon-search svg {
    vertical-align: -3px;
}


/* == Menu w pierwszym nagłówku == */
.main-header-menu>.menu-item>.menu-link * {
    transition: .4s ease;
}

.main-header-menu>.menu-item>.menu-link:hover {
    color: #fff;
}

.main-header-menu>.menu-item>.menu-link::after {
    opacity: 0;
    transition: opacity 0s;
}

.main-header-menu>.menu-item>.menu-link:hover::after {
    content: "";
    background-color: #fff;
    position: absolute;
    bottom: 12px;
    left: 16px;
    width: calc(100% - 32px);
    height: 2px;
    -webkit-animation: fadeIn .5s ease 0.1s forwards;
    animation: fadeIn .5s ease 0.1s forwards;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* == Przełącznik języka WPML w pierwszym nagłówku == */
.widget.widget_block>p {
    margin: 0;
}

.wpml-ls-legacy-dropdown-click {
    width: auto;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle {
    border: none;
}

.wpml-ls-legacy-dropdown-click a {
    color: #fff;
    background-color: transparent;
    text-decoration: none;
    padding: 0;
    padding-left: 4px;
    margin-top: -1px;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
.wpml-ls-legacy-dropdown-click a:focus,
.wpml-ls-legacy-dropdown-click a:hover {
    color: #fff;
    background-color: transparent;
}

.wpml-ls-legacy-dropdown-click a>span {
    text-decoration: none !important;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
    border: none;
}

.wpml-ls-statics-shortcode_actions li:not(.wpml-ls-current-language) .wpml-ls-link {
    background-color: #fff;
    border: 2px solid #001d46;
    padding: 2px 0 4px 2px;
}

a.wpml-ls-link>span {
    color: #001d46;
    font-weight: 500;
}


/* == Sticky Menu == */
/*HEADER*/
#page .site-header .ast-primary-header-bar {
    margin: 0;
    padding: 0 10vw;
    height: 100px;
}

.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
    min-height: 100px;
}

/*STICKY HEADER*/
#page .ast-sticky-active .site-primary-header-wrap .ast-builder-grid-row {
    min-height: 100px;
}


/* ======================= */
/* == Nagłówek - Mobile == */
/* ======================= */
@media(max-width:921px) {

    #masthead .ast-mobile-header-wrap .ast-primary-header-bar {
        margin: 0;
        padding: 0 10vw;
    }

    /* == Menu Toggle == */
    #page .ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle {
        flex-direction: row-reverse;
    }

    #page .ast-mobile-header-wrap .menu-toggle .mobile-menu-wrap {
        margin-right: 0.4em;
    }

    /* == Przełącznik języka-mobile == */
    #page .wpml-ls-legacy-dropdown-click a {
        color: var(--ast-global-color-0);
        background-color: transparent;
        text-decoration: none;
        padding: none;
    }

    #page .wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
    .wpml-ls-legacy-dropdown-click a:focus,
    .wpml-ls-legacy-dropdown-click a:hover {
        color: var(--ast-global-color-0);
        background-color: transparent;
    }

    /* == Wyszukiwarka-mobile == */
    #page .ast-header-search .ast-icon {
        color: var(--ast-global-color-0);
    }
}


/* ===================== */
/* == Header - Sticky == */
/* ===================== */
.ast-above-header-wrap {
    position: fixed;
    width: 100%;
    z-index: 10;
}

.ast-above-header.ast-above-header-bar {
    height: 60px;
    display: grid;
}

.ast-main-header-wrap.main-header-bar-wrap {
    position: fixed;
    padding-top: 60px;
    width: 100%;
    border-bottom: 1px solid var(--ast-global-color-0);
}

#content {
    padding-top: 161px;
}

@media(max-width:921px) {
    .ast-main-header-wrap.main-header-bar-wrap {
        padding-top: 0;
        position: relative;
    }

    #content {
        padding-top: 0;
    }
}

/* ================================================================ */
/* == Search ico mobile behavior: hidden text and show only icon == */
/* ================================================================ */
@media(max-width:500px) {
    .ast-above-header-wrap .dashicons-search.mega-menu-link {
        text-indent: -9999px !important;
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    .ast-above-header-wrap .dashicons-search.mega-menu-link:before {
        text-indent: 0;
        float: left;
        margin-right: 0 !important;
    }
}

/* ====================================================== */
/* == Przywrócenie jednolitego koloru w belce nagłówka == */
/* ====================================================== */
@media(max-width:380px) {
    #page .ast-above-header.ast-above-header-bar {
        background: none;
        background-color: #003571;
    }
}

/* ========================== */
/* == Site title in header == */
/* ========================== */
.pk-header_site-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pk-header_site-title--mobile {
	color: var(--ast-global-color-0);
	text-transform: uppercase;
	font-weight: 900;
	text-wrap: pretty;
    text-align: right;
    line-height: 1.4;
}

.pk-header_site-title--mobile:hover {
    color: var(--ast-global-color-0);
}

/* =========================== */
/* == Mobile menu hamburger == */
/* =========================== */
.ast-mobile-header-wrap .ast-button-wrap {
	margin-left: 10px !important;
}

.ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle {
	padding: 0 !important;
}

.ast-mobile-header-wrap .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
	height: 44px !important;
	width: 44px !important;
}
