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;
    height: auto;
    margin-bottom: 50px;
    
}
.main-content {
    margin-top: 30px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.sidebar {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1000px;
    height: auto;  
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}  

.sidebar-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    justify-content: center;
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
}


.content {
    
    padding: 20px;
    width:  100%;
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

address {
    font-style: normal;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 18px;}

.text-content {
    
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left
    
}
.text-content span {
    font-weight: bold;
    color: var(--primary-color);
}

.text-content h2 {
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 20px;
    
}

.text-content p {
    margin-bottom: 20px;
}

.title {
    font-family: var(--font-titles);
    display: inline;
    font-size: 30px;
    font-weight: 700;
}

h1.title {
    display: inline;
    font-family: var(--font-titles);
    font-weight: 700;
}

h3.title {
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 20px;
}

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  {

display: flex;
margin-left: auto;
margin-right: auto;
width: 100%;
max-width: 1150px; 
height: auto;
flex-direction: column;
align-content: center;
align-items: center;
  
}

.contato {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    color: var(--primary-color);
    background-color: transparent;
}

.redes-sociais {
    display: flex;
    align-items: center;
}

.redes-sociais span {
    margin-right: 15px;
    font-size: 16px;
}



.lista {
    list-style: decimal inside;
    word-break: normal;
}

.lista1 {
    list-style: disc inside;
}

.politicas{
    text-align: center;
}

.terapia {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
    margin: 0 auto;
}

.img-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
}


.caption{
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 5px;
    margin: 5px auto 0;
}

@media  screen and (max-width: 900px) {
    .sidebar {
        flex-direction: column;
        
    }

    .sidebar-image {
        width: 80%;
        margin: 0 0 20px 0;
    }

    .content {
        height: auto;
        width: 90%;
        text-align: left;
    }

    .text-content {
        font-size: 20px;
        text-rendering: optimizeLegibility;
    }
    .main{
        margin-bottom: 50px;
    }
    
    .title {
        font-size: 30px;
    }
    .terapia {
        margin-right: 0;       /* tira aquele +100px */
        width: 100%;           /* garante que fique dentro do container */
        max-width: 100%;       /* evita ultrapassar a tela */
    }

    .img-container {
        display: block;
        margin-right: 0px;
    }
    .caption{
        margin-right: 0px;
    }
}
