body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
}

.main {
   
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 150px
}
.main-content {
    
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar {
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    max-width: 1250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.image {
    display: flex;
    justify-content: center;
    align-items: center;
   
    
}

.sidebar-image {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 50px;
    height: auto;
    border-radius: 10px;
    justify-content: center;
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
    margin-top: 100px;
}


.content {
    padding: 20px;
    width: 100%;            /* ocupa 100% da .sidebar sem ultrapassar */
    max-width: 700px; 
    height: auto;
    display: flex;
    flex-wrap: wrap;
    height:auto!important;
}



.text-content {
    
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left:16px;
    padding-right:16px;
    
}


.text-content h2 {
    font-family: var(--font-titles);
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.text-content p {
    margin-bottom: 20px;
}

.text-content span {
    font-weight: bold;
    color: var(--primary-color);
}

.title {
    font-family: var(--font-titles);
    font-size: 25px;
    font-weight: 700;
    
}

hr {
    border: 0;
    height: 1px;
    background: var(--primary-color);
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1), var(--primary-color), rgba(255, 255, 255, 0.1));
    margin-bottom: 20px;
}


.funcionamento {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.funcionamento-text h2 {
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
}

.funcionamento-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 169, 126, 0.2);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    font-family: var(--font-titles);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.step-card h3 {
    font-family: var(--font-titles);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
}

.step-card p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media screen and (max-width: 992px) {
    .funcionamento-steps {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.depoimento {
  
    max-width: 1150px; /* Largura máxima */
    width: 100%;       /* Largura fluida */
    
    height: auto; /* Deixa a altura se ajustar ao conteúdo */
    margin-top: 200px;
    margin-left: auto;   /* Centraliza o container na tela */
    margin-right: auto;  /* Centraliza o container na tela */
    
    /* Adiciona 'box-sizing' para o padding não somar à largura total */
    box-sizing: border-box; 
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* 'align-items' não funciona aqui, pois o .depoimento não é um container flex */
}

.depoimento h1 {
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 40px;
    color: var(--primary-color);
}

.carrosel_container {
    /* * TROCAMOS 'height: 300px' por 'height: auto'.
     * Em telas pequenas, o texto terá mais linhas.
     * 'height: auto' permite que o container cresça o necessário.
    */
    height: auto; 
    height: 400px; /* Define uma altura mínima para manter um espaço */
    
    /* Adiciona display flex para centralizar o carrossel ativo verticalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.carrosel {
    display: none; 
    margin-top: 40px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carrosel.active {
    display: block;
    opacity: 1;
}

.carroselText {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6; /* Melhora a legibilidade */
}

/* * Dica: Em vez de usar <br> entre os parágrafos,
 * dê uma margem para o próprio <p>. Fica mais limpo.
*/
.carroselText + .carroselText {
    margin-top: 20px;
}


.initials {
    font-size: 30px;
    text-align: center;
    margin: 20px;
    color: var(--primary-color);
}


.funcionamento-mobile {
    display: none;
    
}

.funcionamento-mobile p {
    color: var(--text-muted);
}


.title-mobile {
    display: none;
}


.contato {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: transparent;
}

.redes-sociais {
    display: flex;
    align-items: center;
}

.redes-sociais span {
    margin-right: 15px;
    font-size: 16px;
}


/* main page responsivo*/

@media screen and (max-width:768px) {

.main {
        overflow-x: hidden;
        width: 100%;
        height: auto;
    }
    .sidebar {
        flex-direction: column-reverse;
        width: 100%; /* evita que o conteúdo exceda a largura */
        align-items: center; /* centraliza os elementos internos */
        height: auto;
    }

   .sidebar-image {
        margin-left: auto;
        margin-right: auto;
        height: auto; 
        margin-top: 50px;
    }
    

    .title {
        text-align: center;
    }

    .text-content {
        text-align: justify;
    }

    .funcionamento {
        margin-top: 10px;
        flex-direction: column;
        margin-right: auto;
        margin-left: auto;
    }

    .funcionamento-content {
        flex-direction: column;
    }

    .funcionamento-text {
        margin-right: 0;
        font-size: 32px;
    }

    .funcionamento-image {
        display: none;
    }

    .funcionamento-mobile {
        text-align: center;
        margin-top: 30px;
        display: block;
    }

    .lista-mobile {
        list-style: decimal inside;
        margin: 0 auto;
        font-size: 18px;
    }

    .lista-mobile li {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .depoimento {
        margin-top: 60px;
        position: relative;
        overflow: hidden;
    }

    .depoimento h1 {
        font-size: 32px;
        text-align: center;
        margin-right: 0;
    }

    .carroselText {
        font-size: 18px;
        font-weight: normal;
    }

    .initials {
        font-size: 22px;
    }
    
    .carrosel_container {
        margin-right: 0;
        margin-top: 40px;
        height: auto;
        min-height: 300px;
        position: relative;
        overflow: hidden;
    }

}



@media screen and (max-width:1100px) {
    .sidebar {
        flex-direction: column-reverse;
        width: 100%; /* evita que o conteúdo exceda a largura */
        align-items: center; /* centraliza os elementos internos */
        height: auto;
    }

    .sidebar-image {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 400px;
        height: auto;    
    }
    
    
     .title{
        text-align: justify;
    }

    .text-content {
        text-align: justify;
    }

    .funcionamento {
        margin-top: 10px;
        flex-direction: column;
        margin-right: auto;
        margin-left: auto;
        
    }

    .funcionamento-content{
        flex-direction: column
    }
   
    .funcionamento-text{
        margin-right: 0;
        font-size: 40px;
    }
    .funcionamento-image {
       display: none;
    }

    .funcionamento-mobile{
        text-align: center;
        margin-top: 30px;
        display: block;
    }

    .lista-mobile{
        list-style: decimal inside;
        margin-right: 0;
        font-size: 20px;
    }

    .lista-mobile li {
     font-size: 30px;
    }

    
    .depoimento {
        
        margin-top: 60px; 
        position: relative;
        overflow: hidden;
        
    }

    .depoimento h1 {
        
        font-size: 32px; 
        text-align: center;
        margin-right: 0;
    }

    .carroselText {
        
        font-size: 20px;
        font-weight: normal; 
    }

    .initials {
        font-size: 24px;
    }
    
    .carrosel_container {
        margin-right: 0;
        margin-top: 40px;
        height: auto;
        position: relative;
        overflow: hidden;
        
    }
    
}


