/* ═══════════════════════════════════════
   BANCO — GLOBAL NAV
   Loaded on ALL pages via enqueue.php
   ═══════════════════════════════════════ */

:root {
  --nav-h: 80px;
  --nav-max-w: 1200px;
  --nav-red: #D41920;
  --nav-red-hover: #A8131A;
  --nav-navy: #0F1623;
  --nav-radius-btn: 50px;
}

/* ── On non-home pages push content below fixed nav ── */
body:not(.home) {
  padding-top: var(--nav-h);
}

/* ── Reset old header positioning that no longer applies ── */
.header-bg {
  top: 0 !important;
}
.tel-fixat {
  display: none !important;
}
.search-form-top {
  display: none !important;
}

/* ── Prevent scroll when mobile menu is open ── */
body.nav-mobile-open {
  overflow: hidden;
}

/* ═══════════ NAV BAR ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

/* ── WordPress admin bar awareness ── */
.admin-bar .nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .nav {
    top: 46px;
  }
}
.admin-bar .nav-mobile-overlay {
  top: calc(var(--nav-h) + 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .nav-mobile-overlay {
    top: calc(var(--nav-h) + 46px);
  }
}

/* Non-home pages: always show dark nav */
body:not(.home) .nav {
  background: rgba(15,22,35,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Scrolled state (homepage after scroll) */
.nav.scrolled {
  background: rgba(15,22,35,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  height: 68px;
}

/* ── Nav inner ── */
.nav-inner {
  max-width: var(--nav-max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 42px;
  width: auto;
}

/* ── Links (desktop) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 0;
  display: block;
}
.nav-links > li > a:hover,
.nav-links > li.current-menu-item > a,
.nav-links > li.current-menu-ancestor > a {
  color: #fff;
}

/* ── Submenus (desktop) ── */
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,22,35,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.nav-links > li:hover > .sub-menu {
  display: block;
}
.nav-links .sub-menu li a {
  display: block;
  padding: 10px 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links .sub-menu li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* ── Phone button ── */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nav-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: var(--nav-radius-btn);
  transition: all 0.25s;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-phone:hover {
  background: var(--nav-red-hover);
  transform: translateY(-1px);
  color: #fff;
}
.nav-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Hamburger (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Hamburger X animation when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════ MOBILE OVERLAY ═══════════ */
.nav-mobile-overlay {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(15,22,35,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  overflow-y: auto;
  padding: 30px 40px 60px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.nav-mobile-overlay.open {
  transform: translateX(0);
}

.nav-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-links > li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-links > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-mobile-links > li > a:hover,
.nav-mobile-links > li.current-menu-item > a,
.nav-mobile-links > li.current-menu-ancestor > a {
  color: #fff;
}
/* Chevron on parent items with submenu (mobile) */
.nav-mobile-links > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.nav-mobile-links > li.menu-item-has-children.open > a::after {
  transform: rotate(-135deg);
  border-color: var(--nav-red);
}
.nav-mobile-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 12px 0;
  border-left: 2px solid var(--nav-red);
  margin-left: 4px;
}
.nav-mobile-links .sub-menu li a {
  display: block;
  padding: 12px 0 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-mobile-links .sub-menu li a:hover,
.nav-mobile-links .sub-menu li.current-menu-item > a {
  color: #fff;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav {
    height: 70px;
  }
  .nav-logo img {
    height: 36px;
  }
  .nav-phone {
    margin-left: auto;
    margin-right: 16px;
  }
  .nav-mobile-overlay {
    top: 70px;
  }
}
@media (max-width: 600px) {
  .nav {
    padding: 0 16px;
    height: 64px;
  }
  .nav-logo img {
    height: 32px;
  }
  .nav-phone {
    padding: 8px 14px;
    font-size: 0;
    gap: 0;
  }
  .nav-phone svg {
    width: 20px;
    height: 20px;
  }
  .nav-phone span {
    display: none;
  }
  .nav-mobile-overlay {
    top: 64px;
    padding: 20px 24px 40px;
  }
  .nav-mobile-links > li > a {
    font-size: 0.95rem;
    padding: 16px 0;
  }
  .nav-mobile-links .sub-menu li a {
    font-size: 0.88rem;
    padding: 10px 0 10px 18px;
  }
  .nav-hamburger span {
    width: 24px;
  }
}

/* ═══════════════════════════════════════
   FOOTER OVERRIDES — Modern style
   ═══════════════════════════════════════ */

/* ── Supra-footer (partner logos) ── */
.supra-footer {
  margin-top: 80px;
  padding-bottom: 60px;
}
.supra-footer h2 {
  font: 600 14px/1 exo, sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--negru, #1d2126);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.5;
}
.carusel-sigle .swiper-slide {
  border-right: 1px solid rgba(0,0,0,0.08);
  padding: 16px 40px;
}
.carusel-sigle img {
  width: 120px;
  height: 40px;
  object-fit: contain;
  filter: saturate(0);
  opacity: 0.5;
  transition: all 0.4s;
  margin: auto;
}
.carusel-sigle a:hover img {
  filter: saturate(1);
  opacity: 1;
}

/* ── Main footer ── */
footer.footer {
  max-width: 100%;
  background: #0F1623;
  color: rgba(164,177,193,0.85);
  padding: 80px 0 0 0;
  margin: 0;
  font: 400 15px/1.75 exo, sans-serif;
}
footer .col4 {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 0 48px;
}
.sigla-footer {
  display: block;
  margin: 0 0 24px 0;
}
.sigla-footer img {
  width: 220px;
  height: auto;
}
.f-col {
  font: 400 15px/1.75 exo, sans-serif;
}
.f-col p {
  font: 400 15px/1.75 exo, sans-serif;
  margin: 0 0 8px 0;
}
.f-col1 {
  padding: 0 24px 0 0;
}
.f-col2 {
  padding: 0;
}
.f-col3 {
  padding: 0;
}
.f-col4 {
  padding: 0;
}
.f-col h3 {
  font: 700 13px/1 exo, sans-serif;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 22px 0;
}
.sociale {
  margin: 0 0 36px 0;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.f-col .sociale a {
  display: inline-block;
  font: 600 12px/1 exo, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(164,177,193,0.7);
  margin: 0;
  transition: color 0.3s;
}
.f-col .sociale a:hover {
  color: #fff !important;
}
.f-col li {
  display: block;
}
.f-col a {
  display: inline-block;
  color: rgba(164,177,193,0.85);
  transition: color 0.3s;
  font-size: 15px;
}
.f-col a:hover {
  color: #D41920 !important;
}

/* ── Subfooter ── */
.subfooter {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(164,177,193,0.12);
  padding: 28px 0;
  margin: 56px 0 0 0;
  font: 400 13px/1.4 exo, sans-serif;
  color: rgba(164,177,193,0.45);
}
.subfooter a {
  display: inline-block;
  color: rgba(164,177,193,0.45);
  margin: 0 0 0 5px;
  font: 400 13px/1.4 exo, sans-serif;
  transition: color 0.3s;
}
.subfooter a:hover {
  color: #D41920;
}
.subfooter p {
  font: 400 13px/1.4 exo, sans-serif;
  margin: 0;
}

/* ── Scroll-to-top button ── */
.sageata-footer {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  background: rgba(15,22,35,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.sageata-footer:after {
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  background: #fff;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-image: url(/wp-content/themes/endd-wptheme/images/svg/chevron-up-solid.svg);
  transition: all 0.3s;
}
.sageata-footer:hover {
  background: #D41920;
  border-color: #D41920;
  transform: translateY(-2px);
}
.sageata-footer:hover:after {
  background: #fff;
}

/* ── Footer responsive ── */
@media (max-width: 960px) {
  footer .col4 {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .sociale {
    text-align: left;
    justify-content: flex-start;
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
  footer .col4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  footer.footer {
    padding: 50px 0 0 0;
  }
  .subfooter {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
