.custodia-header{
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.custodia-header,
.custodia-header *{
  font-family: Orbitron, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.custodia-header__inner{
  max-width: 1500px;
  margin: 0 auto;
  padding: px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custodia-brand{
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  color: #0b1220;
  min-width: 0;
}

.custodia-brand__logo{
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.custodia-brand__text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.custodia-brand__wordmark{
  display: block;
  height: 90px;
  width: auto;
  object-fit: contain;
  max-width: 320px;
}

.custodia-nav{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.custodia-nav__link{
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0b1220;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 8px 2px;
  opacity: 0.90;
  white-space: nowrap;
  line-height: 1;
}

.custodia-nav__link:hover{
  opacity: 1;
}

.custodia-nav__link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  height:3px;
  width:0;
  border-radius:3px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  transition: width .18s ease;
}

.custodia-nav__link:hover::after{
  width:100%;
}

.custodia-nav__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(0,212,255,0.85);
  color:#0b1220;
  background: rgba(255,255,255,0.45);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  line-height: 1;
}

.custodia-nav__cta:hover{
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 0 6px rgba(0,212,255,0.08);
  transform: translateY(-1px);
}

.custodia-nav__dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.custodia-nav__dropdown::after{
  content:"";
  position:absolute;
  left:-14px;
  right:-14px;
  top:100%;
  height:18px;
  pointer-events:auto;
}

.custodia-nav__link--chev{
  padding-right: 18px;
}
.custodia-lang{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
	opacity: 0.90;
}

.custodia-lang{
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0b1220;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 8px 2px;
  opacity: 0.90;
  white-space: nowrap;
  line-height: 1;
}

.custodia-lang:hover{
  opacity: 1;
}

.custodia-lang::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  height:3px;
  width:0;
  border-radius:3px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  transition: width .18s ease;
}

.custodia-lang:hover::after{
  width:100%;
}
.custodia-nav__link--chev::before{
  content:"";
  position:absolute;
  right:2px;
  top:52%;
  width:8px;
  height:8px;
  border-right:2px solid rgba(11,18,32,0.55);
  border-bottom:2px solid rgba(11,18,32,0.55);
  transform: translateY(-50%) rotate(45deg);
}

.custodia-dropdown{
  position:absolute;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(2,6,23,0.16);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999;
}

.custodia-dropdown--root{
  top: calc(100% + 8px);
  left: -12px;
  width: 320px;
}

.custodia-nav__dropdown:hover > .custodia-dropdown--root{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custodia-dropdown--root:hover{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custodia-dropdown__item{
  display:block;
  text-decoration:none;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
  position: relative;
}

.custodia-dropdown__item:hover{
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.55);
  transform: translateY(-1px);
}

.custodia-dropdown__item::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:14px;
  opacity:0;
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
  transition: opacity .14s ease;
  pointer-events:none;
}

.custodia-dropdown__item:hover::before{
  opacity:1;
}

.custodia-dropdown__title{
  font-weight: 700;
  color: #0b1220;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  text-align: left;
}

.custodia-dropdown__sub{
  margin-top: 4px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  color: #64748b;
  text-align: left;
}

.custodia-dropdown__item--has-sub{
  position: relative;
  cursor: pointer;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.custodia-dropdown__item--has-sub::after{
  content:"";
  position:absolute;
  right:14px;
  top:calc(50%+2px);
  width:7px;
  height:7px;
  border-right:2px solid rgba(11,18,32,0.55);
  border-bottom:2px solid rgba(11,18,32,0.55);
  transform: translateY(-50%) rotate(-45deg);
}

.custodia-dropdown__item--has-sub::before{
  content:"";
  position:absolute;
  top:-10px;
  bottom:-10px;
  left:100%;
  width:14px;
  pointer-events:none;
}

.custodia-dropdown__itemLink{
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.custodia-dropdown__item--has-sub:hover{
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.55);
  transform: translateY(-1px);
}

.custodia-dropdown--sub{
  top: -10px;
  left: 100%;
  margin-left: 8px;
  width: 300px;
  transform: translateX(-6px);
}

.custodia-dropdown__item--has-sub:hover > .custodia-dropdown--sub{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.custodia-dropdown--sub:hover{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
/* ACTIVE PAGE – cyan underline */
.custodia-nav__link.current-menu-item,
.custodia-nav__link.current_page_item,
.custodia-nav__link[aria-current="page"]{
  opacity: 1;
}

.custodia-nav__link.current-menu-item::after,
.custodia-nav__link.current_page_item::after,
.custodia-nav__link[aria-current="page"]::after{
  width: 100%;
}
@media (max-width: 920px){
  .custodia-nav{
    gap: 12px;
  }

  .custodia-brand__wordmark{
    height: 24px;
    max-width: 240px;
  }

  .custodia-dropdown--root{
    left: -180px;
  }

  .custodia-dropdown--sub{
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 8px;
  }

  .custodia-dropdown__item--has-sub::before{
    left: auto;
    right: 100%;
  }
}

@media (max-width: 720px){
  .custodia-header__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px 12px;
  }

  .custodia-brand{
    gap: 10px;
    align-items: center;
  }

  .custodia-brand__logo{
    width: 52px;
    height: 52px;
  }

  .custodia-brand__wordmark{
    height: 34px;
    max-width: 72vw;
  }

  .custodia-nav{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(148,163,184,0.22);
    will-change: transform, opacity;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
  }

  .custodia-nav__link{
    justify-content: center;
    width: 100%;
    padding: 10px 8px;
    font-size: 12px;
    letter-spacing: 1.2px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.28);
    background: rgba(255,255,255,0.55);
  }

  .custodia-nav__link::after{
    display:none;
  }

  .custodia-nav__dropdown{
    width: 100%;
    display: block;
  }

  .custodia-nav__dropdown::after{
    display:none;
  }

  .custodia-nav__link--chev{
    padding-right: 8px;
  }

  .custodia-nav__link--chev::before{
    display:none;
  }

  .custodia-dropdown{
    display:none !important;
  }

  .custodia-nav__cta{
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 12.5px;
    letter-spacing: 1.6px;
    border-radius: 14px;
  }

  .custodia-header{
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.2,.8,.2,1), background .25s ease, border-color .25s ease;
    max-height: none;
  }

  .custodia-header.is-nav-hidden{
    max-height: 72px;
    background: rgba(255,255,255,0.92);
  }

  .custodia-header.is-nav-hidden .custodia-nav{
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
  }

  .custodia-header__inner{
    transition: padding .32s cubic-bezier(.2,.8,.2,1), gap .32s cubic-bezier(.2,.8,.2,1);
  }

  .custodia-header.is-nav-hidden .custodia-header__inner{
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    gap: 6px !important;
  }

  .custodia-brand__logo,
  .custodia-brand__wordmark{
    transition: width .32s cubic-bezier(.2,.8,.2,1), height .32s cubic-bezier(.2,.8,.2,1);
  }

  .custodia-header.is-nav-hidden .custodia-brand__logo{
    width: 40px !important;
    height: 40px !important;
  }

  .custodia-header.is-nav-hidden .custodia-brand__wordmark{
    height: 26px !important;
    max-width: 68vw !important;
  }
}