/* GLOBALWEB V3 PREMIUM - CABECALHO EDITAVEL */

/* 1. ESTRUTURA PRINCIPAL */

.site-head.gw-header-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-head.gw-header-custom.gw-header-background {
    background: var(--gw-header-background);
}

.site-head.gw-header-custom.gw-header-text {
    color: var(--gw-header-text);
}

.site-head.gw-header-custom.gw-header-padding {
    padding-top: var(--gw-header-padding);
    padding-bottom: var(--gw-header-padding);
}

.site-head.gw-header-custom.gw-header-border {
    border-bottom-style: solid;
    border-bottom-width: var(--gw-header-border-width, 1px);
    border-bottom-color: var(--gw-header-border-color, currentColor);
}

.site-head.gw-header-custom.gw-header-shadow {
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
}

.site-head.gw-header-custom.gw-header-sticky:not(.gw-header-editor) {
    position: sticky;
    top: 0;
    z-index: 9;
}

/* 2. MARCA E LOGOTIPO */

.gw-header-custom .gw-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.gw-header-custom .gw-header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gw-header-custom .gw-header-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    flex-shrink: 0;
}

.gw-header-custom .gw-header-logo-image {
    display: block;
    width: var(--gw-header-logo-width, 120px);
    max-width: 100%;
    max-height: var(--gw-header-logo-height, 60px);
    height: auto;
    object-fit: contain;
}

.gw-header-custom .gw-header-name {
    color: var(--gw-header-brand-color, inherit);
    font-family: var(--gw-header-brand-font, inherit);
    font-size: var(--gw-header-brand-size, 1.7rem);
    font-weight: var(--gw-header-brand-weight, 850);
    line-height: 1.2;
    text-decoration: none;
}

.gw-header-custom .gw-header-subtitle {
    color: var(--gw-header-subtitle-color, inherit);
    font-size: var(--gw-header-subtitle-size, 13px);
    line-height: 1.4;
}

/* 3. MENU DE NAVEGACAO */

.gw-header-custom .gw-header-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.gw-header-custom .gw-header-navigation nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gw-header-menu-gap, 22px);
    min-width: 0;
}

.gw-header-custom .gw-header-navigation nav a {
    color: var(--gw-header-link-color, inherit);
    font-size: var(--gw-header-menu-size, 1rem);
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* 4. REDES SOCIAIS */

.gw-header-custom .gw-header-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gw-header-icon-gap, 8px);
}

.gw-header-custom .gw-header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--gw-header-icon-size, 32px);
    height: var(--gw-header-icon-size, 32px);
    background: var(--gw-header-icon-background, #008cff);
    color: var(--gw-header-icon-color, #ffffff);
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
}

.gw-header-custom .gw-header-social-link.gw-shape-square {
    border-radius: 0;
}

.gw-header-custom .gw-header-social-link.gw-shape-rounded {
    border-radius: 8px;
}

.gw-header-custom .gw-header-social-link.gw-shape-plain {
    background: transparent;
    border-radius: 0;
}

.gw-header-custom .gw-header-icon-mask,
.gw-header-editor-icon-mask {
    display: block;
    width: 58%;
    height: 58%;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.gw-header-custom .gw-header-social-link img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

/* 5. BOTAO DE DESTAQUE */

.gw-header-custom .gw-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    background: var(--gw-header-button-color, var(--accent, #2764e7));
    color: var(--gw-header-button-text-color, #ffffff);
    border-radius: var(--gw-header-button-radius, 10px);
    font-size: 15px;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    line-height: 1.3;
}

.gw-header-custom .gw-header-cta.gw-size-small {
    padding: 7px 12px;
    font-size: 13px;
}

.gw-header-custom .gw-header-cta.gw-size-large {
    padding: 15px 24px;
    font-size: 17px;
}

/* 6. QUATRO DISPOSICOES */

.site-head.gw-header-custom.gw-layout-classic {
    flex-direction: row;
    justify-content: space-between;
}

.site-head.gw-header-custom.gw-layout-centered {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.gw-layout-centered .gw-header-navigation,
.gw-layout-centered .gw-header-brand,
.gw-layout-centered .gw-header-socials,
.gw-layout-centered .gw-header-navigation nav {
    justify-content: center;
}

.site-head.gw-header-custom.gw-layout-stacked {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.gw-layout-stacked .gw-header-brand {
    grid-column: 1;
    grid-row: 1;
}

.gw-layout-stacked .gw-header-socials {
    grid-column: 2;
    grid-row: 1;
}

.gw-layout-stacked .gw-header-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
}

.site-head.gw-header-custom.gw-layout-reverse {
    flex-direction: row-reverse;
    justify-content: space-between;
}

/* 7. ALINHAMENTO */

.gw-header-custom.gw-align-left .gw-header-navigation nav {
    justify-content: flex-start;
}

.gw-header-custom.gw-align-center .gw-header-navigation nav {
    justify-content: center;
}

.gw-header-custom.gw-align-right .gw-header-navigation nav {
    justify-content: flex-end;
}

/* 8. MENU PARA TELEMOVEL */

.gw-header-custom .gw-header-toggle {
    display: none;
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.gw-header-custom a:focus-visible,
.gw-header-custom button:focus-visible {
    outline: 3px solid var(--accent, #2764e7);
    outline-offset: 4px;
}

@media (max-width: 760px) {

    .site-head.gw-header-custom {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
    }

    .gw-header-custom .gw-header-brand {
        flex: 1 1 0;
        min-width: 0;
    }

    .gw-header-custom .gw-header-logo-image {
        width: var(--gw-header-mobile-logo-width, 100px);
    }

    .gw-header-custom .gw-header-name {
        overflow-wrap: anywhere;
    }

    .gw-header-custom .gw-header-navigation,
    .gw-header-custom .gw-header-socials {
        width: 100%;
    }

    .gw-header-custom .gw-header-navigation nav {
        width: 100%;
    }

    .gw-header-custom.gw-mobile-hamburger .gw-header-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .gw-header-custom.gw-mobile-hamburger:not(.gw-menu-open)
    .gw-header-navigation,
    .gw-header-custom.gw-mobile-hamburger:not(.gw-menu-open)
    .gw-header-socials {
        display: none;
    }

    .gw-header-custom.gw-mobile-hamburger .gw-header-navigation,
    .gw-header-custom.gw-mobile-hamburger .gw-header-navigation nav {
        flex-direction: column;
        align-items: stretch;
    }

    .gw-header-custom.gw-mobile-hamburger .gw-header-navigation nav a {
        padding: 8px 0;
    }

    .gw-header-custom.gw-mobile-wrap .gw-header-navigation {
        justify-content: center;
    }

    .gw-header-custom.gw-mobile-wrap .gw-header-socials {
        justify-content: center;
    }
}

/* 9. PAINEL DO EDITOR */

.gw-header-editor-section {
    border: 1px solid #dce3ec;
    border-radius: 9px;
    background: #ffffff;
    color: #14233e;
    margin-bottom: 12px;
    overflow: hidden;
}

.gw-header-editor-section > summary {
    padding: 14px;
    font-size: 14px;
    font-weight: 750;
    background: #f1f5f9;
    cursor: pointer;
}

.gw-header-editor-fields {
    display: grid;
    gap: 13px;
    padding: 14px;
}

.gw-header-editor-fields label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
}

.gw-header-editor-fields input:not([type="checkbox"]),
.gw-header-editor-fields select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 9px;
    border: 1px solid #b9c6d8;
    border-radius: 7px;
}

.gw-header-editor-fields label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gw-header-editor-fields input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gw-header-editor-fields input[type="color"] {
    height: 40px;
    padding: 3px;
    cursor: pointer;
}

.gw-header-editor-fields input[type="range"] {
    padding: 0;
    cursor: pointer;
}

.gw-header-editor-fields p,
.gw-header-editor-fields small {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #53627a;
}

.gw-header-editor-list {
    display: grid;
    gap: 12px;
}

.gw-header-editor-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dce3ec;
    border-radius: 8px;
}

.gw-header-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gw-header-editor-preview {
    display: block;
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    margin: auto;
}

.gw-header-editor-icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: auto;
}

.gw-header-editor-icon-preview img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.gw-header-editor-fields button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .gw-header-custom *,
    .gw-header-editor-section * {
        animation: none !important;
        transition: none !important;
    }
}


/* GW_HEADER_MOBILE_FALLBACK */

@media (max-width: 760px) {

    .site-head.gw-header-custom.gw-layout-classic,
    .site-head.gw-header-custom.gw-layout-centered,
    .site-head.gw-header-custom.gw-layout-stacked,
    .site-head.gw-header-custom.gw-layout-reverse {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .gw-header-custom.gw-mobile-hamburger:not(.gw-mobile-ready):not(.gw-header-editor)
    .gw-header-toggle {
        display: none;
    }

    .gw-header-custom.gw-mobile-hamburger:not(.gw-mobile-ready):not(.gw-header-editor)
    .gw-header-navigation,
    .gw-header-custom.gw-mobile-hamburger:not(.gw-mobile-ready):not(.gw-header-editor)
    .gw-header-socials {
        display: flex;
    }
}


/* GW_HEADER_RESPONSIVE_REFINEMENTS */

.gw-header-custom .gw-header-logo-link {
    flex-shrink: 1;
    min-width: 0;
}

.gw-header-custom .gw-header-brand-text {
    flex: 1 1 auto;
}

.gw-header-custom .gw-header-navigation {
    flex: 1 1 auto;
    max-width: 100%;
}

.gw-header-custom .gw-header-navigation nav {
    flex: 1 1 auto;
    max-width: 100%;
}

.gw-header-custom .gw-header-navigation nav a {
    min-width: 0;
    max-width: 100%;
}

.gw-header-custom .gw-header-socials {
    min-width: 0;
    max-width: 100%;
}

.gw-header-custom .gw-header-cta {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.gw-header-custom.gw-layout-centered .gw-header-navigation {
    width: 100%;
}

.site-head.gw-header-custom.gw-layout-stacked {
    grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
}

.site-head.gw-header-custom.gw-header-sticky:not(.gw-header-editor) {
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.gw-header-custom a:focus-visible,
.gw-header-custom button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 760px) {

    .gw-header-custom .gw-header-brand {
        flex: 1 1 0;
        min-width: 0;
    }

    .gw-header-custom .gw-header-logo-link {
        max-width: 60%;
    }

    .gw-header-custom .gw-header-logo-link:only-child {
        max-width: 100%;
    }

    .gw-header-custom .gw-header-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .gw-header-custom.gw-mobile-hamburger
    .gw-header-navigation nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 4px;
    }

    .gw-header-custom .gw-header-navigation,
    .gw-header-custom .gw-header-socials {
        flex: 0 0 100%;
    }

    .gw-header-custom.gw-mobile-hamburger
    .gw-header-navigation nav {
        align-items: stretch;
    }

    .gw-header-custom.gw-mobile-hamburger
    .gw-header-cta {
        min-height: 44px;
    }
}


/* GW_HEADER_STICKY_COMPATIBILITY */

@supports (overflow-x: clip) and selector(body:has(header)) {

    body:has(.site-head.gw-header-custom.gw-header-sticky:not(.gw-header-editor)) {
        overflow-x: clip;
    }
}
