/* Main site header (views/partial/header/_mainHeader.php), 2026-11 redesign.
   Self-contained: no Bootstrap JS or jQuery needed. Menus open on hover with a mouse, on click/tap everywhere
   (js/header/main-header.js). Everything is scoped under .wzh so page styles can't leak in or out. */

.wzh, .wzh *, .wzh *::before, .wzh *::after { box-sizing: border-box; }
.wzh { position: relative; z-index: 1000; background: #0b1018; color: #e6e9ee; font-family: 'Open Sans', 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
.wzh a, .wzh a:hover, .wzh a:focus { text-decoration: none !important; color: inherit; }
:where(.wzh) ul, :where(.wzh) li { list-style: none; margin: 0; padding: 0; }
:where(.wzh) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: inherit; }
.wzh :focus-visible { outline: 2px solid #4aa8ff; outline-offset: 2px; border-radius: 4px; }
.wzh p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; font-family: inherit; }
.wzh-i { display: inline-block; vertical-align: middle; flex: none; }
.wzh-wrap { max-width: 1170px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 74px; gap: 36px; }
.wzh .menuLang__flag { margin: 0; flex: none; border-radius: 2px; }
.wzh .menuLang__flag--pt-br { background: #229e45 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23229e45'/%3E%3Cpath d='M8 1.4 14.6 6 8 10.6 1.4 6z' fill='%23f8e509'/%3E%3Ccircle cx='8' cy='6' r='2.6' fill='%232b49a3'/%3E%3C/svg%3E") no-repeat center / 16px 12px; }

/* Logo */
.wzh-logo { display: inline-flex; flex: none; width: 136px; line-height: 0; }
.wzh-logo img { display: block; width: 100%; height: auto; }

/* Open / close (JS toggles .is-open) */
.wzh [data-wzh-panel] { display: none; }
.wzh [data-wzh-panel].is-open { display: block; }
.wzh-noscroll { overflow: hidden !important; }

/* Main links */
.wzh-nav { flex: 1; display: flex; align-items: center; height: 100%; }
.wzh-list { display: flex; align-items: center; height: 100%; gap: 4px; }
.wzh-list > li { height: 100%; display: flex; align-items: center; }
.wzh-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px; color: #d2d6dc !important; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.wzh-link:hover, .wzh-link.is-open, .wzh-link.is-active { color: #fff !important; background: rgba(255,255,255,.07); }
.wzh-link .wzh-i { opacity: .65; transition: transform .2s; }
.wzh-link.is-open .wzh-i { transform: rotate(180deg); }
.wzh-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Full-width menus */
.wzh-mega { position: absolute; left: 0; right: 0; top: 100%; background: #101724; border-top: 1px solid rgba(255,255,255,.07); box-shadow: 0 30px 60px rgba(0,0,0,.55); z-index: 10; }
.wzh-mega__in { max-width: 1170px; margin: 0 auto; padding: 28px 20px 30px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.wzh-eyebrow { color: #7d8794; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.wzh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.wzh-tile { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.wzh-tile:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.wzh-tile__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--c); background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 30%, transparent); }
.wzh-tile__name { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.wzh-tile__desc { display: block; color: #9aa3af; font-size: 13px; margin-top: 2px; }
.wzh-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; padding: 22px; border-radius: 14px; background: radial-gradient(120% 90% at 100% 0%, #3d7be0 0%, #1d3f7a 45%, #13213d 100%); color: #fff !important; }
.wzh-feature img { position: absolute; right: 12px; top: 14px; width: 118px; height: auto; transform: rotate(6deg); filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.wzh-feature__tag { align-self: flex-start; background: #6eac35; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; margin-bottom: 10px; }
.wzh-feature__title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.wzh-feature__txt { color: #c9d6ee; font-size: 13.5px; margin: 6px 0 14px; }
.wzh-feature__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.wzh-feature__cta .wzh-i { transition: transform .15s; }
.wzh-feature:hover .wzh-feature__cta .wzh-i { transform: translateX(3px); }
.wzh-mega__foot { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; color: #9aa3af; }
.wzh-mega__foot a { color: #7cc0ff !important; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.wzh-mega__foot a:hover { color: #fff !important; }
.wzh-sup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; }
.wzh-sup a { display: block; padding: 9px 12px; border-radius: 8px; color: #c7ccd4 !important; font-size: 14px; }
.wzh-sup a:hover { background: rgba(255,255,255,.05); color: #fff !important; }
.wzh-helpcard { padding: 22px; border-radius: 14px; background: #172033; border: 1px solid rgba(255,255,255,.07); }
.wzh-helpcard .wzh-i { color: #7cc0ff; }
.wzh-helpcard p { color: #c7ccd4; font-size: 14px; margin: 10px 0 16px !important; }
.wzh-helpcard a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 8px; background: #fff; color: #0b1018 !important; font-weight: 700; font-size: 14px; }

/* Language */
.wzh-langwrap { position: relative; }
.wzh-langbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 8px; color: #d2d6dc; font-size: 14px; font-weight: 600; }
.wzh-langbtn:hover, .wzh-langbtn.is-open { background: rgba(255,255,255,.07); color: #fff; }
.wzh-langmenu { position: absolute; top: calc(100% + 16px); right: 0; width: 480px; padding: 10px; background: #121926; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; box-shadow: 0 22px 48px rgba(0,0,0,.5); z-index: 11; }
.wzh-langmenu.wzh-blog { width: 380px; }
.wzh-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; }
.wzh-langs--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wzh-langs a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #c7ccd4 !important; font-size: 14px; white-space: nowrap; }
.wzh-langs a:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.wzh-langs a[aria-current] { background: rgba(74,168,255,.14); color: #fff !important; font-weight: 600; }
.wzh-langs a[aria-current]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4aa8ff; margin-left: auto; }
.wzh-mobilelang { display: none; }
.wzh-burger { display: none; }

@media (hover: hover) and (min-width: 992px) {
    .wzh-list > li.wzh-dd:hover > .wzh-mega { display: block; }
    .wzh-list > li.wzh-dd:hover > .wzh-link { color: #fff !important; background: rgba(255,255,255,.07); }
}
@media (min-width: 992px) { .wzh-nav { display: flex !important; } }
@media (max-width: 1100px) and (min-width: 992px) { .wzh-wrap { gap: 18px; } .wzh-link { padding: 0 10px; } }

/* Phones and small tablets */
@media (max-width: 991px) {
    .wzh-wrap { height: 64px; gap: 10px; }
    .wzh-logo { width: 118px; }
    .wzh-right .wzh-langwrap { display: none; }
    .wzh-burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; background: rgba(255,255,255,.06); }
    .wzh-burger .wzh-i--close, .wzh-burger.is-open .wzh-i--menu { display: none; }
    .wzh-burger.is-open .wzh-i--close { display: inline-block; }
    .wzh-nav { position: absolute; left: 0; right: 0; top: 64px; display: none; flex-direction: column; align-items: stretch; height: auto; max-height: calc(100vh - 64px); overflow-y: auto; background: #0e1420; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 40px rgba(0,0,0,.5); padding: 8px 12px 20px; }
    .wzh .wzh-nav.is-open { display: flex; }
    .wzh-list { flex-direction: column; align-items: stretch; height: auto; gap: 2px; }
    .wzh-list > li { height: auto; display: block; }
    .wzh-link { width: 100%; height: 52px; justify-content: space-between; font-size: 17px; padding: 0 12px; }
    .wzh-mega { position: static; box-shadow: none; border: 0; background: transparent; }
    .wzh-mega__in { grid-template-columns: 1fr; padding: 4px 0 12px; gap: 12px; }
    .wzh-mega .wzh-eyebrow { display: none; }
    .wzh-tiles { grid-template-columns: 1fr; gap: 2px; }
    .wzh-tile { padding: 8px 12px; }
    .wzh-tile__ic { width: 38px; height: 38px; border-radius: 10px; }
    .wzh-feature { min-height: 0; padding-right: 130px; }
    .wzh-feature img { width: 96px; top: 50%; transform: translateY(-50%) rotate(6deg); }
    .wzh-sup { grid-template-columns: 1fr; }
    .wzh-mega__foot { padding: 12px; }
    .wzh-mobilelang { display: block; margin-top: 12px; padding: 14px 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
    .wzh-langs, .wzh-langs--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
