/* Estilos Gerais */
:root {
    --primary-color: #0c5a7d;
    --secondary-color: #17a2b8;
    --dark-color: #1e3a4f;
    --light-color: #f8f9fa;
    --text-color: #333;
    --hero-text-color: #003249;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.section-title {
    color: #003249;
    font-size: 38.531px;
    font-weight: 800;
    line-height: 80px;
    position: relative;
    margin-bottom: 30px;
}

p {
    color: #003249;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #094563;
    border-color: #094563;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Navbar */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-transparent {
    background-color: transparent;
    border-bottom: 1px solid #DEEBFC;
}

.header-solid {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 20px;
}

.nav-link {
    font-weight: normal;
    color: #003249;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color: #003249;
}

.btn-c{
    padding:7px 40px !important;
    font-weight: normal;
}

/* Ajuste para compensar o cabeçalho fixo ao usar âncoras */
section {
    scroll-margin-top: 80px;
}

/* Hero Section */
.hero-section {
    height: 745px;
    overflow: visible;
    position: relative;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.7) 0%, rgba(228, 236, 247, 0.7) 100%);
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/back_hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: -1;
}

.hero-text-container {
    margin-top: 60px;
    margin-bottom: 58px;
}

.hero-title {
    font-size: 38.53px;
    color: var(--hero-text-color);
    letter-spacing: -0.5px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 67.888px;
    color: var(--hero-text-color);
    letter-spacing: -1px;
    line-height: 1.2;
    font-weight: 700;
}

/* Efeito de digitação */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--hero-text-color);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 25px;
    margin: 0 auto;
    color: #555;
}

.hero-image-wrapper {
    position: absolute;
    bottom: -355px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.hero-image-container {
    text-align: center;
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 1216px; /* Corresponde ao container do Bootstrap */
    display: flex;
    justify-content: center;
}

.hero-image {
    border-radius: 10px;
    width: auto;
    height: auto;
    max-width: none; /* Removido para evitar o redimensionamento que causa borrão */
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast; /* Melhora a nitidez em navegadores WebKit */
    image-rendering: crisp-edges; /* Melhora a nitidez em navegadores modernos */
    transform: translateZ(0); /* Ativa a aceleração de hardware */
    backface-visibility: hidden; /* Reduz o desfoque */
    -webkit-font-smoothing: subpixel-antialiased; /* Melhora a renderização */
    object-fit: contain; /* Mantém a proporção da imagem */
}

/* Classe adicionada quando a imagem é carregada completamente */
.hero-image.loaded {
    animation: sharpen 0.5s ease-out;
}

.txt-cta{
    font-size: 30px;
}

@keyframes sharpen {
    from {
        filter: blur(2px);
    }
    to {
        filter: blur(0);
    }
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* History Section */
.history-section {
    padding: 425px 0 80px;
    position: relative;
    z-index: 5;
    background-color: white;
}

.video-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 para vídeos */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Digital Controller Section */
.digital-controller-section {
    padding: 80px 0;
}

/* Services Section */
.services-section {
    height: 650px;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.services-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: visible;
}

.services-background {
    position: absolute;
    top: -82px;
    right: -166px;
    z-index: 1;
}

.services-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-text {
    position: absolute;
    z-index: 2;
    background-color: #003249;
    border-radius: 10px;
    padding: 40px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 70%;
    left: 0;
    top: 40%;
    width: 100%;
    height: 270px;
    display: flex;
    align-items: center;
}


.services-paragraph {
    width: 70%;
    color: white;
    font-size: 29.472px;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 0;
    padding-right: 100px;
}

.services-image-container {
    position: absolute;
    z-index: 3;
    right: 0;
    top: 58%;
    transform: translateY(-50%);
    width: 40%;
    text-align: right;
}

.services-image {
    max-width: 350px;
    height: auto;
}

/* Universe Section */
.universe-section {
    padding: 80px 0;
}

.universe-section h2 {
    line-height: 50px;
}

.modules-image {
    max-width: 800px;
    margin: 0 auto;
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
}

.clients-logos {
    text-align: center;
}

.clients-logos img {
    max-height: 80px;
    transition: transform 0.3s;
    filter: grayscale(100%);
    opacity: 0.7;
}

.clients-logos img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

.clients-counter {
    margin-top: -188px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.clients-counter p {
    margin-top: -280px;
    text-align: left;
}

.clients-image-container {
    margin-bottom: 20px;
}


.clients-counter h3 {
    color: var(--primary-color);
    font-size: 4rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-section h2 {
    margin: 0 auto;
    line-height: 36px;
}

.cta-section h3 {
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

.btn-p{
    margin-top: 20px;
    margin-bottom: 50px;
    font-size: 18px;
    padding: 10px 70px !important;
}

/* Footer */
.footer {
    background-color: var(--light-color);
    padding: 30px 0;
}

/* Responsividade */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 54px;
    }
    
    .cursor {
        width: 2.5px;
    }
    
    .hero-description {
        font-size: 22px;
    }
    
    .hero-image-wrapper {
        bottom: -210px;
    }
    
    .hero-section {
        height: 680px;
    }
    
    .history-section {
        padding-top: 200px;
    }
    
    .hero-image {
        max-width: 100%; /* Aplicar max-width apenas em telas menores */
    }
    
    .section-title {
        font-size: 34px;
        line-height: 70px;
    }

    .services-section{
        height: 530px;
    }

    .clients-counter{
        margin-top: -166px;
    }

    .clients-counter p {
        margin-top: -225px;
    }

    .clients-section{
        padding: 0;
    }
}

@media (max-width: 992px) {
    #main-header{
        background-color: #fff;
    }

    .hero-section {
        height: 600px;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-text-container{
        margin: 0;
    }
    .hero-subtitle {
        font-size: 40px;
    }
    
    .cursor {
        width: 2px;
    }
    
    .hero-description {
        font-size: 20px;
        max-width: 90%;
    }
    
    .hero-image-wrapper {
        bottom: -100px;
    }
    
    .history-section {
        padding-top: 130px;
    }

    .txt-nh{
        margin-bottom: 30px;
    }

    .txt-nh > p {
        padding: 0 !important;
    }

    .digital-controller-section .row {
        display: flex;
        flex-direction: row;
    }

    .txt-cd{
        padding: 0 !important;
        margin-bottom: 30px;
    }

    .digital-controller-section .col-lg-6:first-child {
        order: 2;
    }
    
    .digital-controller-section .col-lg-6:last-child {
        order: 1;
    }

    .digital-controller-section  .video-container{
        margin-left: -15px;
    }
    
    .services-container {
        min-height: 250px;
    }
    
    .services-text {
        width: 100%;
        padding: 30px 30px;
        height: unset;
    }
    
    .services-paragraph {
        font-size: 20px;
        padding-right: 50px;
    }
    
    .services-image-container {
        width: 35%;
        top: 43%;
    }
    
    .services-image {
        max-width: 280px;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 38px !important;
    }
    
    .hero-image {
        max-width: 90%;
    }

    .clients-image-container{
        margin-right: -142px;
    }

    .clients-counter p{
        text-align: center;
    }

    .txt-cta{
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section   .container{
        padding: 0 10px;
    }
    
    .hero-section {
        height: 550px;
        padding-top: 80px;
    }
    
    .hero-text-container {
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 38px;
    }
    
    .cursor {
        width: 1.8px;
    }
    
    .hero-description {
        font-size: 18px;
        max-width: 100%;
    }
    
    .hero-image-wrapper {
        bottom: -80px;
    }

    
    .hero-image {
        max-width: 100%;
    }
    
    .history-section {
        padding-top: 110px;
    }

    .digital-controller-section{
        padding: 0 25px;
    }
       
    .services-container {
        min-height: 400px;
    }

    .services-section{
        height: 400px;
    }
    
    .services-text {
        top: 30px;
        transform: none;
        text-align: center;
        padding: 30px;
    }
    
    .services-paragraph {
        font-size: 18px;
        padding-right: 0;
        text-align: left;
        width: 65%;
    }
    
    .services-image-container {
        width: 34%;
        right: 15px;
        top: -49px;
        bottom: 0;
        transform: none;
        text-align: center;
        overflow: hidden;
    }

    .services-background{
       display: none;
    }
    
    .services-image {
        max-width: 200px;
    }

    .services-background {
        top: -95px;
        right: -105px;
        width: 70%;
    }
    
    .clients-section{
        padding: 39px 0;
    }

    .clients-logos img {
        max-height: 100px;
        margin-bottom: 20px;
    }
    
    .clients-counter {
        margin-top: -79px;
    }
    
    
    .section-title {
        font-size: 22px;
        line-height: 50px;
    }
    
    .clients-image-container{
        margin-right: -142px;
    }

    .clients-count-image {
        max-width: 430px;
    }

    .clients-counter p {
        margin-top: -193px;
    }

    .cta-section{
        padding: 50px 0;
    }

    .hero-image-container{
        margin: -50px auto;
    }
    
}


@media (max-width: 576px) {
    .hero-section {
        height: 500px;
    }

    .hero-section .container {
        padding: 20px 10px !important;
    }
    
    .hero-text-container {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 31px;
    }
    
    .cursor {
        width: 1.5px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-image-wrapper {
        bottom: -70px;
    }
    
    .history-section {
        padding-top: 90px;
    }
    
    .services-card h3 {
        font-size: 1.3rem;
    }
    
    .clients-counter h3 {
        font-size: 3rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 30px;
        line-height: 40px;
    }
    
    .clients-image-container {
        margin-right: -69px;
    }

    .digital-controller-section{
        padding: 0 15px;
    }

    .clients-logos img {
        max-height: 100px;
    }

    .clients-count-image{
        max-width: 290px;
    }

    .clients-counter p{
        margin-top: -135px;
    }

    .services-image-container{
        width: 37%;
        right: 11px;
        top: 7px;
        bottom: 0;
        transform: none;
        text-align: center;
        overflow: hidden;
    }
    
    .services-background{
        display: none;
    }

    .hero-image-container {
        margin: 0px auto;
    }
}

@media (max-width: 590px) {
    .services-image-container{
        display: none;
    }

    .services-paragraph{
        width: 100%;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1216px;
    }
}


.txt-nh > p {
    padding: 0 40px 0 0;
}

.txt-cd {
    padding: 0 0 0 80px;
}   


/*************************************
PAGINA WEBS FIN
*************************************/
.title-wb-f {
    font-size: 6.96rem;
    font-weight: 800;
    margin-bottom: -10px;
}

.subtitle-wb-f {
    font-size: 4.12rem;
    line-height: 110%;
}

.hero-wb-f{
    max-height: 660px;
}

@media (max-width: 992px) {
    .title-wb-f {
        font-size: 5.96rem;
        font-weight: 800;
        margin-bottom: -10px;
    }

    .subtitle-wb-f {
        font-size: 2.8rem;
    } 
}

@media (max-width: 576px) {
    .hero-wb-f {
        height: 365px;
    }

    .title-wb-f {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 0px;
    }

    .subtitle-wb-f {
        font-size: 1.54rem;
    } 
}


/***************************
MFV Financeiro
***************************/

.etapas-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 17px;
    width: 100%;
    padding: 20px 0;
    overflow-x: auto;
}

.etapa-box {
    min-width: 239px;
}

.etapa-header {
    color: #003249;
    padding: 10px 0;
    font-weight: 900;
    font-size: 18px;
    border-bottom: 3px solid #003249;
    margin-bottom: 15px;
}

.etapa-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.etapa-item {
    background: #364354;
    color: white;
    margin: 2px 0;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.etapa-item:nth-child(2) {
    background: #46576E;
}

.etapa-item:nth-child(3) {
    background: #526680;
}

.etapa-item:nth-child(4) {
    background: #627A99;
}

.etapa-item:nth-child(5) {
    background: #738EB2;
}

.etapa-item:nth-child(6) {
    background: #83A3CC;
}

.etapa-item:nth-child(7) {
    background: #8FB5E5;
}

.etapa-item::before {
    content: attr(data-number);
    background: white;
    color: #465C6E;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

.seta {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #003366;
    padding: 0 10px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .etapas-container {
        flex-direction: column;
        align-items: stretch;
    }

    .seta {
        transform: rotate(90deg);
        margin: 10px 0;
        align-self: center;
    }

    .etapa-box {
        width: 100%;
    }
}