@media screen and (max-width: 991px) {
  .so-mobilenav-standard + * {
    display: block !important;
  }
}
@media screen and (max-width: 991px) {
  .so-mobilenav-mobile + * {
    display: none !important;
  }
}
@media screen and (max-width: 768px) {
  .so-mobilenav-standard + * {
    display: none !important;
  }
}
@media screen and (max-width: 768px) {
  .so-mobilenav-mobile + * {
    display: block !important;
  }
}

#masthead .hgroup {
    padding: 0 !important;
    margin-top: 35px !important;
}
@media screen and (max-width: 768px) {
    #masthead .hgroup {
        padding-top: 24px;
    }
    #masthead .hgroup:not(.masthead-sidebar) {
        justify-content: center !important;
    }
}

header#masthead {
    padding-bottom: 0px;
    position: fixed;
    width: 100vw;
    z-index: 9999;
    background-color: transparent;
}



header#masthead nav.site-navigation {
    position: absolute;
    top: calc(50% + 17.5px);
    left: 50%;
    transform: translate(-50%, -50%);
}
@media screen and (max-width: 768px) {
    header#masthead nav.site-navigation {
        position: absolute;
        top: 0 !important;
        left: 20px !important;
        transform: unset;
    }  
}


#masthead .main-navigation,
#masthead .main-navigation ul li:hover > a, .main-navigation ul li.focus > a {
    background-color: transparent;
}

#masthead .menu li a,
.mobile-nav-frame .mobile li a  {
    font-size: 24px;
    font-weight: 900;
    line-height: 100%;
    color: var(--brown)
}
@media screen and (max-width: 1228px) {
    #masthead .menu li a,
    .mobile-nav-frame .mobile li a  {
        font-size: 18px;
    }
}
@media screen and (max-width: 1228px) {
    .main-navigation ul li a {
        font-size: 18px;
        padding: 16px 24px;
    }  
}
@media (min-width: 480px) and (max-width: 860px) {
     #masthead .menu li a,
    .main-navigation ul li a {
        font-size: 16px;
    }  
}


#masthead .menu li,
.mobile-nav-frame .mobile li {
    position: relative;
    text-align: center;
}

.mobile-nav-frame .mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px
}

.mobile-nav-frame .mobile .obrovo-ihrisko{
    width: 200px;
}

#masthead .menu .info-pre-navstevnika {
    width: fit-content;
}
.mobile-nav-frame .mobile .info-pre-navstevnika {
    width: 265px;
}

#masthead .menu .skolske-vylety {
    width: fit-content;
}
.mobile-nav-frame .mobile .skolske-vylety {
    width: 205px;
}

#masthead .menu .obrovo-ihrisko::after,
.mobile-nav-frame .mobile .obrovo-ihrisko::after,
#masthead .menu .info-pre-navstevnika::after,
.mobile-nav-frame .mobile .info-pre-navstevnika::after,
#masthead .menu .skolske-vylety::after,
.mobile-nav-frame .mobile .skolske-vylety::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 130%;
    transform: translate(-50%, -50%);
    z-index: -1;
}
#masthead .menu .obrovo-ihrisko::after,
.mobile-nav-frame .mobile .obrovo-ihrisko::after {
    background: transparent url('/wp-content/plugins/obrovo/assets/img/menu-podklad__home.svg') no-repeat center center;
    background-size: auto;
}
#masthead .menu .info-pre-navstevnika::after,
.mobile-nav-frame .mobile .info-pre-navstevnika::after {
    background: transparent url('/wp-content/plugins/obrovo/assets/img/menu-podklad__info.svg') no-repeat center center;
    background-size: auto;
}
#masthead .menu .skolske-vylety::after {
    background: transparent url('/wp-content/plugins/obrovo/assets/img/menu-podklad__vylety.svg') no-repeat center center;
    background-size: auto;
}
.mobile-nav-frame .mobile .skolske-vylety::after {
    background: transparent url('/wp-content/plugins/obrovo/assets/img/menu-podklad__vylety--mobile.svg') no-repeat center center;
    background-size: 100%;
}


#masthead .menu .obrovo-ihrisko a,
.mobile-nav-frame .mobile .obrovo-ihrisko a {
    transform: rotate(-7.13deg);
}
#masthead .menu .info-pre-navstevnika a,
.mobile-nav-frame .mobile .info-pre-navstevnika a {
    transform: rotate(2.68deg);
}
#masthead .menu .skolske-vylety a {
    transform: rotate(2.68deg);
}
.mobile-nav-frame .mobile .skolske-vylety a {
    transform: rotate(-2.68deg);
}

#masthead .menu li::before,
.mobile-nav-frame .mobile li::before,
#masthead .menu .current-menu-item::before,
.mobile-nav-frame .mobile .current-menu-item::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    position: absolute;
    top: 0%;
    left: 50%;
}
#masthead .menu li:hover.obrovo-ihrisko::before,
.mobile-nav-frame .mobile li:hover.obrovo-ihrisko::before,
#masthead .menu li:focus.obrovo-ihrisko::before,
.mobile-nav-frame .mobile li:focus.obrovo-ihrisko::before,
#masthead .menu .obrovo-ihrisko.current-menu-item::before,
.mobile-nav-frame .mobile .obrovo-ihrisko.current-menu-item::before {
    border-top: 22px solid var(--green); /* farba šípky */
    transform: translate(-50%, -30%) rotate(-7.13deg);
}
#masthead .menu li:hover.info-pre-navstevnika::before,
.mobile-nav-frame .mobile li:hover.info-pre-navstevnika::before,
#masthead .menu li:focus.info-pre-navstevnika::before,
.mobile-nav-frame .mobile li:focus.info-pre-navstevnika::before,
#masthead .menu .info-pre-navstevnika.current-menu-item::before,
.mobile-nav-frame .mobile .info-pre-navstevnika.current-menu-item::before {
    border-top: 22px solid var(--yellow); /* farba šípky */
    transform: translate(-50%, -80%) rotate(2.68deg);
}
#masthead .menu li:hover.skolske-vylety::before,
.mobile-nav-frame .mobile li:hover.skolske-vylety::before,
#masthead .menu li:focus.skolske-vylety::before,
.mobile-nav-frame .mobile li:focus.skolske-vylety::before,
#masthead .menu .skolske-vylety.current-menu-item::before,
.mobile-nav-frame .mobile .skolske-vylety.current-menu-item::before {
    border-top: 22px solid var(--blue); /* farba šípky */
    transform: translate(-50%, -80%) rotate(2.68deg);
}


#masthead .menu .info-pre-navstevnika.current-menu-item,
.mobile-nav-frame .mobile .info-pre-navstevnika.current-menu-item {
    background: transparent url('/wp-content/plugins/obrovo/assets/img/menu-sipka__home.svg') no-repeat center center;
}
#masthead .menu .skolske-vylety.current-menu-item,
.mobile-nav-frame .mobile .skolske-vylety.current-menu-item {
    background: transparent url('/wp-content/plugins/obrovo/assets/img/menu-sipka__home.svg') no-repeat center center;

}


/* Animovanie skryytie  nav */ 
nav::before,
nav::after,
nav *,
nav *::before,
nav *::after {
  box-shadow: none !important;
  /* content: none !important; */
  filter: none !important;
}



/* Menu items: bounce keyframes */
.nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#menu-hlavne-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#menu-hlavne-menu .menu-item {
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
    transform: translateY(-200px); /* Skryté na začiatku */
    opacity: 0;
}

#menu-hlavne-menu .menu-item a {
    display: block;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

#menu-hlavne-menu .menu-item a:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

#menu-hlavne-menu .menu-item.visible {
    opacity: 1;
    animation: bounceDown 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

#menu-hlavne-menu .menu-item.hidden {
    animation: slideUp 0.5s ease-in forwards;
}

@keyframes bounceDown {
    0% {
        transform: translateY(-200px);
        opacity: 0;
    }
    60% {
        transform: translateY(20px);
        opacity: 1;
    }
    75% {
        transform: translateY(-10px);
    }
    85% {
        transform: translateY(5px);
    }
    92% {
        transform: translateY(-3px);
    }
    96% {
        transform: translateY(1px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px);
        opacity: 0;
    }
}



/* SIDE LANG  */
.cutko-side__lang {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);

    height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 5px 30px;
}
@media screen and (max-width: 1519px) {
    .cutko-side__lang {
        height: 38px;
    }
}
@media screen and (min-width: 768px) {
    .cutko-side__lang {
        min-width: 35px;
    }  
}
@media screen and (max-width: 768px) {
    .cutko-side__lang {
        width: 48px;
        height: 45px;
        left: unset;
        top: 0;
        right: 0;
        transform: translate(25%, -25%);
        padding: 0;

        display: none;
    }
    
}
.cutko-side__lang #search-icon {
    position: relative;
    top: 0;
    right: 0;
    height: auto;

    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
}
@media screen and (max-width: 768px) {
    .cutko-side__lang #search-icon  {
        display: none;
    }   
}

#search-icon #search-icon-icon {
    width: 35px;
    height: 35px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
#search-icon #search-icon-icon:hover, 
#search-icon #search-icon-icon:focus {
    background-color: transparent !important;
}

.cutko-side__lang #search-icon #search-icon-icon .vantage-icon-search {
    color: var(--wheat);
}
.cutko-side__lang .menu-nav__side--lang {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}



.cutko-side__lang .custom-wpml-lang-switcher {
    position: relative;
    z-index: 1;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.cutko-side__lang .custom-wpml-lang-switcher a,
.cutko-side__lang .custom-wpml-lang-switcher span {
    font-size: 18px;
    font-weight: 700;
    color: var(--wheat);
}
@media screen and (max-width: 1519px) {
    .cutko-side__lang .custom-wpml-lang-switcher a,
    .cutko-side__lang .custom-wpml-lang-switcher span {
        font-size: 16px;
    }
    
}

/* MOBILE NAV */
.mobile-nav-icon::before {
    content: unset !important;
}
.desktop__svg {
    display: block;
    position: relative;
    top: -2px;
    height: 100%;
}
.desktop__svg svg {
    width: 100%;
    height: 100%;
}

.mobile__svg {
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}
@media screen and (max-width: 768px) {
    .desktop__svg {
        display: none;
    }
    .mobile__svg {
        display: block;
    }
    .cutko-side__lang .custom-wpml-lang-switcher {
        width: 100%;
        text-align: center;
    }
    
}

.mobile-nav-frame {
    /* position: relative; */
    background: var(--nav-mobile-blue);
    font-family: 'Mikado', sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mobile-nav-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/wp-content/plugins/obrovo/assets/img/sum-blue.png') repeat center center;
    background-size: auto;
    z-index: -2;
    opacity: 0.07;
}
@media screen and (max-width: 640px) {
    /* .mobile-nav-frame::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        background: url('/wp-content/plugins/obrovo/assets/img/mobile-nav__cloud--podklad.svg') 
            no-repeat center center;
        background-size: cover;
        z-index: -2;
    } */
}

.mobile-nav-frame .title {
    position: absolute;
    top: 0;
    width: 100vw;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}
.mobile-nav-frame .slides {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.mobile-nav-frame ul {
    border: none;
    background: transparent;
    box-shadow: none;
}

.mobile-nav-frame ul li {
    border: none;
}

.mobile-nav-frame ul li a.link {
    text-shadow: none;
    color: var(--brown);
    margin: 0;
    font-size: 27px;
    font-weight: 900;
    line-height: 100%;
}

.mobile-nav-frame .title {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.mobile-nav-frame .title h3 {
    font-size: 0;
    position: relative;
    width: 137px;
    height: 112px;
    margin: 0 auto;
}
.mobile-nav-frame .title h3::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent url('/wp-content/plugins/obrovo/assets/img/mobile-nav__logo.svg') no-repeat center center;
    background-size: contain;
}

.mobile-nav-frame .title .close {
    right: unset;
    left: 30px;
    top: 15px;
}
.mobile-nav-frame .title .close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 45px;
    transform: translate(-50%, -50%);
    background: url('/wp-content/plugins/obrovo/assets/img/mobile-nav__close.svg') no-repeat center center;
    background-size: cover;
}


.mobile-nav-frame .title .custom-nav__cont {
    position: absolute;
    top: 15px;
    right: 30px;
    width: 47px;
    height: 45px;
}
.mobile-nav-frame .title .custom-nav__cont .cutko-lang {
    width: 100%;
    height: 100%;
}
.mobile-nav-frame .title .custom-nav__cont .cutko-lang svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
}




/* SEARCH FORM */
#search-icon .searchform {
    position: relative;
    display: flex;
    width: 0 !important;
    background: transparent !important;
    margin: 0;
     transition: width 0.4s ease;
}
#search-icon .searchform.open {
    width: 170px !important;
    display: flex !important;
}
#search-icon .searchform input[name="s"] {
    background: transparent !important;
}
input[type="search"] {
    color: var(--wheat) !important
}
input[type="search"]::placeholder {
    color: var(--wheat);
}
input[type="search"]::-webkit-input-placeholder { /* Chrome/Safari */
    color: var(--wheat);
}
input[type="search"]::-moz-placeholder { /* Firefox 19+ */
    color: var(--wheat);
}
input[type="search"]:-ms-input-placeholder { /* IE 10+ */
    color: var(--wheat);
}
input[type="search"]::-ms-input-placeholder { /* Edge */
    color: var(--wheat);
}

/* mobilne menu PADANIE */
/* VÝCHODZIA POZÍCIA */
ul.mobile li {
    transform: translateY(-100vh);
    opacity: 0;
    transition: all 0.3s ease;
}

ul.mobile li.visible {
    opacity: 1;
    animation: mobileBounceDown 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* POSTUPNÉ PADANIE - každé <li> o 300ms neskôr */
ul.mobile li:nth-child(1).visible {
    animation-delay: 0ms;
}
ul.mobile li:nth-child(2).visible {
    animation-delay: 300ms;
}
ul.mobile li:nth-child(1).visible {
    animation-delay: 300ms;
}

/* Ak chceš ešte väčší rozdiel: */
/* */
ul.mobile li:nth-child(2).visible {
    animation-delay: 300ms;
}
ul.mobile li:nth-child(1).visible {
    animation-delay: 325ms;
}
/*/

/* Ostatné pravidlá zostávajú */
ul.mobile li.hidden {
    transform: translateY(-100vh);
    opacity: 0;
}

ul.mobile li.slide-up {
    animation: mobileSlideUp 0.5s ease-in forwards;
}

@keyframes mobileBounceDown {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    60% {
        transform: translateY(25px);
        opacity: 1;
    }
    75% {
        transform: translateY(-12px);
    }
    85% {
        transform: translateY(6px);
    }
    92% {
        transform: translateY(-3px);
    }
    96% {
        transform: translateY(1px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes mobileSlideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}



/* mrak ako normálny element = žiadne prebliknutie */
.mobile-nav-cloud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: url('/wp-content/plugins/obrovo/assets/img/mobile-nav__cloud--podklad.svg') no-repeat center center;
    background-size: cover;
    z-index: -2;

    transform: scale(0);
    opacity: 0;
    transition: transform 0.55s ease-out,
                opacity 0.55s ease-out;
}

@media screen and (min-width: 550px) {
    .mobile-nav-cloud {
        display: none !important;
    }
}


/* LOGO */
@media (min-width: 769px) and  (max-width: 1228px) {
    #masthead .hgroup .logo img {
        width: 9vw;
    }
}
@media (max-width: 768px) {
    #masthead .hgroup .logo img {
        width: 13vw;
    }
}
@media screen and (max-width: 480px) {
    #masthead .hgroup .logo img {
        width: 19vw;
    }
}

/* WPML */
.custom-wpml-lang-switcher {
    display: none;
}
