/* Custom Portalou navbar — replaces broken Avada sticky header */

#portalou-header,
.portalou-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  background: #444444;
  border-bottom: 2px solid #cbaa5c;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

#portalou-header.portalou-header-scrolled,
.portalou-header.portalou-header-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.portalou-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 90px;
}

.portalou-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.portalou-logo img {
  display: block;
  max-height: 75px;
  width: auto;
  height: auto;
}

.portalou-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.portalou-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portalou-menu > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portalou-menu > li > a {
  display: block;
  padding: 0 12px;
  height: 90px;
  line-height: 90px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-family: "PT Sans", Arial, sans-serif;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.portalou-menu > li:not(.portalou-menu-phone):not(.portalou-menu-lang) > a:hover,
.portalou-menu > li.portalou-active > a {
  background: #cbaa5c;
  color: #ffffff;
}

.portalou-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #444444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10001;
}

.portalou-has-children:hover > .portalou-submenu {
  display: block;
}

.portalou-submenu li a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}

.portalou-submenu li a:hover {
  background: #cbaa5c;
}

.portalou-menu-phone > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 90px !important;
  line-height: 1 !important;
  padding: 0 6px !important;
}

.portalou-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #cbaa5c;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.portalou-phone-btn:hover {
  background: #b89950;
}

.portalou-phone-btn .fa {
  font-size: 14px;
  width: 14px;
  text-align: center;
}

.portalou-menu-lang > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 90px !important;
  line-height: 1 !important;
  padding: 0 8px !important;
}

.portalou-menu-lang img {
  display: block;
  width: 22px;
  height: auto;
}

.portalou-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: #cbaa5c;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

#wrapper {
  padding-top: 0 !important;
}

@media (max-width: 1100px) {
  .portalou-header-inner {
    position: relative;
    padding-right: 16px;
  }

  .portalou-nav-toggle {
    display: inline-flex;
  }

  .portalou-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #444444;
    border-top: 1px solid #555555;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .portalou-header.portalou-nav-open .portalou-nav {
    display: block;
  }

  .portalou-menu {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .portalou-menu > li > a {
    height: auto;
    line-height: 1.4;
    padding: 14px 20px;
    border-bottom: 1px solid #555555;
  }

  .portalou-menu-phone > a,
  .portalou-menu-lang > a {
    height: auto !important;
    padding: 14px 20px !important;
    justify-content: flex-start !important;
  }

  .portalou-submenu {
    display: block;
    position: static;
    box-shadow: none;
    background: #3a3a3a;
    padding-left: 0;
  }

  .portalou-submenu li a {
    padding-left: 32px;
  }
}

img {
  max-width: 100%;
  height: auto;
}
