/* ---- header element ---- */
header {
  background-color: #FFFFFF;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  transition: 0.3s linear all;
}
header .header-top ul {
  display: flex;
  align-items: center;
  justify-content: start;
  height: 100%;
  padding: 10px 0;
  margin: 0;
  transition: 0.15s linear all;
}
header .header-top ul li {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0 40px 0 0;
}
header .header-top ul li:last-of-type {
  margin: 0;
}
header .header-top ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 400;
  color: #001a45;
  text-decoration: none;
  transition: 0.15s linear all;
}
header.sticky .header-top ul {
  height: 0;
  opacity: 0;
  padding: 0;
  transition: 0.15s linear all;
}
header .header-top ul li a:hover {
  color: #155b95;
}
header .header-top ul li a svg {
  display: block;
  margin: 0 4px 0 0;
}
header .header-top ul li a:hover svg {
  fill: #155b95;
}

header .header-bottom {
  padding: 5px 0;
  transition: 0.15s linear all;
}
header .header-bottom.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
header .header-bottom .image-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}
header .header-bottom .image-wrapper img {
  max-width: 180px;
  display: block;
  width: 100%;
  height: auto;
}
header .header-bottom .image-wrapper a {
  display: flex;
  align-items: center;
  height: 100%;
}
header .header-bottom .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: end;
  height: 100%;
}
header .header-bottom ul {
  display: flex;
  align-items: center;
  justify-content: end;
  height: 100%;
  padding: 0;
  margin: 0 40px 0 0;
}
header .header-bottom ul li {
  list-style: none;
  display: inline-block;
}
header .header-bottom ul li a {
  font-size: 16px;
  font-weight: 400;
  color: #001a45;
  text-decoration: none;
  padding: 22px 0;
  margin: 0 40px 0 0;
  transition: 0.15s linear all;
}
header .header-bottom ul li a:hover {
  color: #155b95;
}
header .header-bottom ul li:last-of-type a {
  margin: 0;
}
header .header-bottom #call-trigger {
  display: inline-flex;
  background-color: #155b95;
  text-decoration: none;
  color: #FFFFFF;
  padding: 14px 30px;
  margin: 0 10px 0 0;
  border: 2px solid #155b95;
  border-radius: 50px;
}
header .header-bottom #call-trigger:hover {
  background-color: #FFFFFF;
}
header .header-bottom #call-trigger svg {
  transition: 0.15s linear all;
}
header .header-bottom #call-trigger:hover svg {
  fill: #155b95;
}
header .header-bottom #mail-trigger {
  display: none;
  background-color: #155b95;
  text-decoration: none;
  color: #FFFFFF;
  padding: 15px 30px;
  margin: 0 10px 0 0;
  border: 2px solid #155b95;
  border-radius: 50px;
}
header .header-bottom #mail-trigger:hover {
  background-color: #FFFFFF;
}
header .header-bottom #mail-trigger svg {
  transition: 0.15s linear all;
}
header .header-bottom #mail-trigger:hover svg {
  fill: #155b95;
}
header .header-bottom #contact-trigger {
  display: inline-block;
  background-color: #155b95;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #FFFFFF;
  padding: 14px 30px;
  border: 2px solid #155b95;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.15s linear all;
}
header .header-bottom #contact-trigger:hover {
  background-color: #FFFFFF;
  color: #155b95;
}
header .nav-mobile-wrapper {
  display: none;
  align-items: center;
  justify-content: end;
}
header .nav-trigger {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 0 0 40px;
}
header .nav-trigger.active {

}
header nav.mobile {
  display: none;
  background-color: #FFFFFF;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  padding: 30px 0;
  margin: 0 15px;
}
.mobile-nav-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  background-color: rgba(0, 0, 0, .5);
  opacity: 1;
  transition: 0.15s linear all;
  z-index: 2;
}
.mobile-nav-mask.active {
  opacity: 1;
  height: 100%;
}
header nav.mobile ul {
  padding: 0;
  margin: 0;
}
header nav.mobile ul li {
  list-style: none;
  margin: 0 0 30px 0;
}
header nav.mobile ul li:last-of-type {
  margin: 0;
}
header nav.mobile ul li a {
  text-decoration: none;
  color: #001a45;
  font-weight: 400;
  padding: 5px 0;
}


/* ---- megmenu ---- */
.has-megamenu {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  color: #001a45;
  text-decoration: none;
  padding: 22px 0;
  margin: 0 40px 0 0;
  cursor: pointer;
  transition: 0.15s linear all;
}
.has-megamenu:hover {
  color: #155b95;
}
.megamenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  background: #fff;
  min-width: 280px;
  padding: 0;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: all 0.3s ease;
}
.megamenu.active {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.megamenu-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.megamenu-inner ul li a {
  display: block;
  padding: 8px 0;
  color: #001a45;
  font-weight: 500;
  text-decoration: none;
}
.megamenu-inner ul li a:hover {
  color: #007bff;
}
header .megmanu-title {
  display: flex;
  align-items: center;
}
header .megamenu-icon {
  display: flex;
  align-items: center;
}
.megamenu-icon svg {
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.3s ease;
  font-size: 0.75em;
}
.megamenu.active ~ .megamenu-icon svg,
.has-megamenu.active .megamenu-icon svg {
  transform: rotate(180deg);
}
header .header-bottom ul ul {
  display: block;
  margin: 0;
}
header .header-bottom ul ul li {
  display: block;
  width: 100%;
}
header .header-bottom ul ul li a {
  width: 100%;
  padding: 20px;
  margin: 0;
}
/* Maska pozadine */
header .megamenu-overlay {
  position: fixed;
  top: 112px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.megamenu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
header.sticky .megamenu-overlay {
  top: 76px;
}


@media only screen and (max-width: 1280px) {
  header .header-bottom ul li a {
    margin: 0 12px 0 0;
  }
  header .header-bottom ul {
    margin: 0 20px 0 0;
  }
}

@media only screen and (max-width: 992px) {
  header ul.nav-desktop-wrapper {
    display: none;
  }
  header .nav-mobile-wrapper {
    display: flex;
  }
  header .header-top {
    display: none;
  }
  header .header-bottom {
    margin: 0;
  }
}

@media only screen and (max-width: 768px) {
  header .header-bottom {
    padding: 10px 0;
  }
  header .header-bottom #contact-trigger {
    display: none;
    font-size: 14px;
    margin: 0 10px 0px 0;
    padding: 10px 20px;
  }
  header .header-bottom #mail-trigger {
    display: inline-flex;
    margin: 0 10px 0px 0;
    padding: 10px;
    border-radius: 50%;
  }
  header .header-bottom #call-trigger {
    margin: 0 10px 0px 0;
    padding: 10px;
    border-radius: 50%;
  }
}

@media only screen and (max-width: 576px) {
  header .nav-trigger {
    margin: 0;
  }
}
