/* o8partners*/
#o8partners {
    isolation: isolate;
}

body.no-scroll {
    overflow: hidden;
    padding-right: 0;
    padding-left: 0;
}

.shadow_box {
    box-shadow: var(--bottom-shadow);
}

header {
    position: sticky;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 99999;
    background-color: var(--header-bg);
    box-shadow: var(--bottom-shadow);
}

.header {
    padding: 1rem 0rem;
    display: flex;
    justify-content: flex-start;
    max-width: var(--container-max-width);
    margin: auto;
}

.logo img {
    aspect-ratio: 1;
    position: relative;
    width: 100px;
}

/* Main Container */
main {
    width: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
    box-shadow: var(--bottom-shadow);
}

#main_container li {
    list-style: inside;
    padding: 4px 0px;
}


/* Single Post */
#header-post-bg {
    position: sticky;
    top: 0;
    width: 100%;
    height: calc(-124px + 100vh);
}

#header-post-bg .header-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

#header-post-bg .header-bg-post {
    position: sticky;
    top: 0;
    width: 100%;
    height: calc(-124px + 100vh);
    background: rgba(0, 0, 0, 0.5);

}

#header-post-bg .header-title {
    width: 100%;
    max-width: var(--content-width);
    color: white;
    margin: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    height: 80%;
    align-content: stretch;
    justify-content: flex-end;
    padding-left: 2%;
}

#header-post-bg .header-title h1 {
    font-size: var(--font-xxl) !important;
    font-weight: 500 !important;
    color: #FFFFFF;
    line-height: 0;
}

#header-post-bg .header-title p {
    color: #FFFFFF;
    font-weight: var(--font-medium);
    font-size: 14px;
}

/* Single Page */
#banner-page-bg {
    width: 100%;
    height: 15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #dcdcdc;
    position: sticky;
    z-index: -1;
}

#banner-page-bg .banner-title h1,
#banner-page-bg .banner-title p {
    margin: 20px 0;
}

#banner-page-bg[style*="background-color"] {
    color: #DCDCDC;
}



/* Page Home */
#header-page-home {
    position: relative;
    width: 100%;
    height: calc(-124px + 100vh);
    z-index: 100;
}

#header-page-home .header-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-wrapper {
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    align-content: stretch;
    height: 100%;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
}

#header-page-home .header-title {
    position: relative;
    max-width: var(--content-width);
    bottom: 28px;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    margin: auto;
    color: #000;
    height: 100%;
    width: 100%;
    margin: auto;
}

#header-page-home .header-title h1 {
    font-size: var(--font-xxl) !important;
    font-weight: 500 !important;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    color: #fff;
}


/* Section Styles */
#main_container #section_dark,
#main_container #section_light {
    width: 100%;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}


#main_container #section_dark>div,
#main_container #section_light>div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: auto;
    gap: 0%;
    flex-wrap: wrap;
    align-content: stretch;
    flex-direction: row;
    align-items: stretch;
    box-sizing: border-box;
    max-width: var(--container-max-width);
    padding: 0px;
}

#main_container #section_dark {
    background: var(--grey);
    padding: 20px 0px;
}

#main_container #section_light {
    background: var(--light-grey);
    padding: 20px 0px;
}



/* Footer */
footer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--bottom-shadow);
    z-index: 994;
}

.footer-links {
    background-color: var(--darker-grey);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 995;
    padding: 4rem 0;
}

.footer-links div {


    font-weight: 500;
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 2rem;
    width: 100%;
    max-width: var(--content-width);
    background-color: var(--darker-grey);
    z-index: 995;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links ul {
    padding: 0;
    list-style: none;
    width: 100%;
}

.footer-links li a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500 !important;
    font-size: var(--font-md) !important;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary);
}



.footer-bottom {
    position: sticky;
    width: 100%;
    background-color: var(--light-grey);
    bottom: 0;
    display: flex;
    justify-content: space-evenly;
    z-index: 996;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.footer-bottom div {
    width: 100%;
    max-width: var(--content-width);
    z-index: 996;
    bottom: 0px;
    display: flex;
    justify-content: space-evenly;
    padding: 10px 0;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
    background: var(--light-grey);
    z-index: 996;
}

.footer-bottom .footer-info {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: pre-line;
    align-content: flex-start;
    align-items: flex-start;
}

.footer-bottom .footer-partner {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: space-evenly;
    align-items: stretch;
}









#main_container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: space-evenly;
    z-index: 50;
    margin: auto;
    isolation: isolate;
}

.main_container_home.page-content .discovery_o8 {
    position: sticky !important;
    z-index: 70;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    bottom: 0px;
    order: 1;
}


.main_container_home.page-content .for_company {
    position: relative;
    z-index: 50;
    height: 220px;
    background-color: #FFF !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    bottom: 0px;
    order: 2;
}

.main_container_home.page-content .home_services {
    position: relative;
    z-index: 50;
}

.main_container_home.page-content #future_bank_box {
    position: relative;
    padding: 0;
    box-shadow: var(--bottom-shadow);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 28;
}



.main_container_home.page-content .discovery_o8_future {
    position: relative;
    z-index: 20;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    bottom: 0px;
    order: 3;

}

.main_container_home.page-content .faq_home {
    position: sticky;
    z-index: 10;
    display: flex;
    height: 220px;
    justify-content: center;
    flex-direction: column;
    order: 4;
}

.main_container_home.page-content .faq_home_answers {
    position: relative;
    z-index: 10;
}

.main_container_home.page-content .future_bank_title {
    position: sticky;
    z-index: 10;
    height: 220px;
    order: 4;
}



.main_container_home.page-content #future_bank_box .future_bank h3 {
    border-bottom: 1px solid #e0e0e0 !important;
    padding-bottom: 20px !important;
}

.main_container_home.page-content #future_bank_box .future_bank p {
    padding: 0;
    margin: 10px 0;
}

#future_bank_box #section_light,
#future_bank_box #section_dark {
    padding: 0;
}




.main_container_home.page-content .faq_home_sanfona {
    position: relative;
    max-width: var(--container-max-width) !important;
    margin: auto;
    margin: 40px 0 100px !important
}

#section_movie_rodape {
    display: inline-flex;
    display: inline-flex;
    width: 100%;
    height: auto;
    max-height: 300px !important;
    padding: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    vertical-align: top;
    flex-direction: row;
}

#section_movie_rodape video {
    object-fit: cover;
    width: 100%;
    height: 300px;
    max-height: 300px !important;
}



#hamburger-menu {
    display: flex;
    align-items: end;
    flex-shrink: 0;
    width: 10%;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.8s cubic-bezier(0, 0, 0, 1);
    cursor: pointer;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.5s ease-in-out;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: 0.5s ease-in-out;
}

/* Animação para transformar o ícone de hambúrguer em um "X" */
#hamburger-menu.active .hamburger-menu {
    transform: rotate(90deg);
}

#hamburger-menu.active .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger-menu.active .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

#hamburger-menu.active .hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Idiomas no Lado Direito */

.language-switcher {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    bottom: 20PX;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}


.language-switcher .current-lang a {
    text-decoration: underline;
}

.language-switcher a:hover {
    text-decoration: underline;
}


.language-switcher a {
    text-decoration: none;
    position: relative;
    color: rgb(14, 14, 14);
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: var(--font-lg) !important;
}


#main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    transition: opacity 0.5s ease-in-out;
    z-index: 998;
    max-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: start;
    height: 100%;
    right: 0;
    bottom: 0;
}

#main-navigation.active {
    transform: translateY(0);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
}

.main-navigation-group {
    flex: 1 0 33%;
    min-height: 50%;
    max-width: var(--content-width);
    margin: auto;
    position: relative;
    top: 106px;

}

.menu-item a {
    text-transform: uppercase;
    font-weight: 500;
    font-size: var(--font-lg) !important;
    color: #0e0e0e;
}

.menu-item {
    padding: 0.8rem;
    cursor: pointer;
}

.menu-item:not(:last-child) {
    border-bottom: 1px solid var(--darker-grey);
}

.menu-item.has-children>a:after {
    content: "▶";
    float: right;
    font-size: 0.8rem;
    color: var(--dark);
    transition: transform 0.3s ease-in-out;
}

.menu-item.has-children.active>a:after {
    transform: rotate(90deg);
}

.menu-item:hover>a,
.menu-item:hover>a {
    color: var(--primary);
}

.nav-menu {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;

}

.nav-menu div {
    position: relative;
}

.menu-group,
.sub-menu-grupo {
    flex: 1 0 33.3%;
    max-width: 33.3%;
    background-color: var(--header-bg);
    box-shadow: rgba(0, 0, 0, 0.3) 5px 0px 5px 0px;
    padding: 1rem;

}

.sub-menu-grupo {
    display: none;
    opacity: 0;
    transform: translateX(-100%);
    min-width: 320px;
    width: 100%;
    position: relative;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}


.sub-menu-grupo.active {
    opacity: 1;
    transform: translateX(0);
    animation: slideLeftIn 0.5s ease-in-out forwards;
}

.menu-group a,
.sub-menu-grupo a {
    display: block;
}


.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f0f0f0;
    border: none;
    padding: 10px;
    cursor: pointer;
}

body.menu-open {
    overflow: hidden;
    padding: 0;
    margin: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
}


@media (max-width: 768px) {

    header {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        z-index: 99999;
        background-color: var(--header-bg);
        box-shadow: var(--bottom-shadow);
    }

    .header {
        padding: 1rem 1rem 0rem;
        display: flex;
        justify-content: space-between;
        max-width: unset;
        margin: auto;
        flex-direction: column;
        align-content: space-between;
    }

    #header-page-home {
        position: relative;
        width: 100%;
        height: 100dvh;
        display: flex;
        flex-direction: column;

    }

    .header-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    #header-page-home .header-title h1 {
        font-weight: 500 !important;
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
        color: #fff;
        text-align: left;
        left: 0px;
        position: relative;
        font-size: 32px !important;
        padding: 8px;
    }

    #hamburger-menu {
        position: fixed;
        top: 12px;
        right: 20px;
        z-index: 1001;
    }

    .language-switcher {
        position: relative;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: flex-end;
        width: 100%;
        bottom: 20PX;
        gap: 15px;
        align-items: center;
        font-size: 14px;
        font-weight: bold;
        right: 6px;
    }

    .back_mobile {
        background: var(--light-grey);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        text-transform: uppercase;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        position: relative;
        z-index: 100;
        display: none;
        width: 100%;
        padding: 1.0rem 1rem 0;
    }

    .back_mobile_g {
        width: 100%;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        cursor: pointer;
    }

    .back_mobile_icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: var(--darker-grey);
        border-radius: 100%;
        margin-right: 0.25rem;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .back_mobile_icon::before {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-left: 2px solid #33363F;
        border-bottom: 2px solid #33363F;
        transform: rotate(45deg);
        position: absolute;
        top: 8px;
        left: 8px;
    }

    .back_mobile_name {
        padding-left: 4px;
        padding-top: 4px;
        font-size: 1rem;
        color: var(--dark) !important;
        position: relative;
        display: flex;
        flex-direction: row;
        align-content: center;
        align-items: stretch;
    }

    .nav-menu {
        flex-direction: column;
    }

    .menu-group {
        z-index: 50;
    }

    .menu-group.active {
        z-index: 80;
    }

    .menu-group,
    .sub-menu-grupo {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        background-color: var(--header-bg);
    }

    .sub-menu-grupo {
        z-index: 100;
        top: 0;
        left: 0;
        width: 100%;
        min-width: 100%;
        height: 100%;
        background-color: var(--header-bg);
        display: none;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .sub-menu-grupo.active {
        display: block;
        opacity: 1;
        transform: translateX(0);
        position: absolute;
        z-index: 200;
    }

    .back-button {
        display: block;
        margin-bottom: 15px;
        background-color: #f0f0f0;
        border: none;
        color: #000;
        padding: 10px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        text-align: left;
    }

    #main_container #section_dark>div,
    #main_container #section_light>div {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }

    #main_container #section_dark>div>div,
    #main_container #section_light>div>div {
        width: 100%;
        margin-bottom: 20px;
    }

    #main_container #section_dark>div>div,
    #main_container #section_light>div>div {
        width: 100%;
        box-sizing: border-box;
    }

    #main_container #section_light>div>div:nth-child(1):has(img),
    #main_container #section_dark>div>div:nth-child(1):has(img) {
        order: 0;
    }


    #main_container #section_light>div>div:nth-child(2):has(img),
    #main_container #section_dark>div>div:nth-child(2):has(img) {
        order: 0;
    }


    #main_container #section_light>div>div:not(:has(img)),
    #main_container #section_dark>div>div:not(:has(img)) {
        order: 1;
    }

    #main_container #section_light>div>div:nth-child(2):has(img),
    #main_container #section_dark>div>div:nth-child(2):has(img) {
        order: 0;
    }




    #main-navigation {
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
    }

    #main_container {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 0;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        z-index: 80;
        margin: auto;
    }

    .main-navigation-group {
        flex: 1 0 33%;
        min-height: 50%;
        max-width: var(--content-width);
        margin: auto;
        position: relative;
        top: 130px;
    }

    footer {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        box-shadow: var(--bottom-shadow);
        z-index: 994;
        flex-wrap: wrap;
        align-content: stretch;
        align-items: stretch;
    }

    .footer-links {
        background-color: var(--darker-grey);
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        z-index: 995;
        flex-direction: row;
        align-content: stretch;
        align-items: stretch;
    }

    .footer-bottom div {
        width: 100%;
        max-width: var(--content-width);
        z-index: 996;
        bottom: 0px;
        display: flex;
        justify-content: space-evenly;
        padding: 10px 0;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        background: var(--light-grey);
        z-index: 996;
        align-content: center;
        text-align: center;
    }

    .footer-links ul {
        padding: 0px 12px;
        list-style: none;
        width: unset;
    }

    .footer-links div {
        font-weight: 500;
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 0rem;
        width: 100%;
        max-width: var(--content-width);
        background-color: var(--darker-grey);
        z-index: 995;
    }

    .footer-bottom .footer-partner {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        justify-content: space-evenly;
        align-items: stretch;
        margin: 10px 0;
    }


    .footer-bottom .footer-info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        white-space: pre-line;
        align-content: flex-start;
        align-items: flex-start;
    }

    .footer-bottom .footer-partner {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        justify-content: space-evenly;
        align-items: stretch;
    }


    /* Single Post */
    #header-post-bg {
        position: sticky;
        top: 0;
        width: 100%;
        height: 100vh;
    }

    #header-post-bg .header-image {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }

    #header-post-bg .header-bg-post {
        position: sticky;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);

    }

    #header-post-bg .header-title {
        width: 90%;
        max-width: var(--content-width);
        color: white;
        margin: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        height: 100%;
        align-content: stretch;
        justify-content: flex-end;
        margin: auto;
    }

    #header-post-bg .header-title h1 {
        font-size: var(--font-xxl) !important;
        font-weight: 500 !important;
        color: #FFFFFF;
        line-height: 0;
    }

    #header-post-bg .header-title p {
        color: #FFFFFF;
        font-weight: var(--font-medium);
        font-size: 14px;
    }

    /* Single Page */
    #banner-page-bg {
        width: 100%;
        height: 40vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        text-align: center;
        background: #dcdcdc;
        position: sticky;
        z-index: -1;
        flex-wrap: wrap;
        align-content: stretch;
    }

    #banner-page-bg .banner-page-content {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-evenly;
        height: 100vh;
        align-items: stretch;
        align-content: space-between;
    }

    #banner-page-bg .banner-title {
        display: flex;
        width: 100%;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        align-content: flex-start;
        height: 50vh;
        justify-content: flex-start;
    }

    #banner-page-bg .banner-title h1,
    #banner-page-bg .banner-title p {
        margin: unset;
        font-size: 2.8rem;
    }

    #banner-page-bg[style*="background-color"] {
        color: #DCDCDC;
    }
}