@import url('./form-top.css');
@import url('./form-bottom.css');

:root {
    --white: #FFFFFF;
    --acqua: #15A8AB;
    --grey: #6D6D6D;
    --blue: #304271;

    --sombra: rgba(0, 0, 0, 0.2) 1px 2px 10px;
}

.custom-title {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    margin: 0;
}

.custom-text {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    margin: 0;
}

.custom-title.acqua,
.custom-text.acqua {
    color: var(--acqua);
}

.custom-title.white,
.custom-text.white {
    color: var(--white);
}

.custom-title.grey,
.custom-text.grey {
    color: var(--grey);
}

.custom-title.blue,
.custom-text.blue {
    color: var(--blue);
}

.carousel-indicators {
    button {
        background-color: var(--grey) !important;
        height: 5px;
        border-radius: 10px;
    }
}

main {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
}

.banner {
    width: 100%;
    height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    article {
        max-width: 60%;
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);

        p:nth-of-type(1) {
            font-size: 14px;
            line-height: 18px;
            color: var(--white);
        }

        p:nth-of-type(2) {
            font-size: 12px;
            line-height: 16px;
            color: var(--white);
            font-weight: 600;
        }

        h1 {
            font-size: 24px;
            line-height: 28px;
            font-weight: 600;
            color: var(--acqua);
            margin-bottom: 8px;
        }
    }
}

.section-o-que-e {
    width: calc(100% - 32px) !important;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: auto;
    column-gap: 16px;
    order: 1;

    article {
        display: flex;
        flex-direction: column;
        row-gap: 16px;

        ul {
            display: flex;
            flex-direction: column;
            row-gap: 20px;
            padding: 0;

            li {
                display: flex;
                align-items: center;
                column-gap: 8px;
                color: #15A8AB;
                font-weight: 700;
                font-size: 21px;
                line-height: 0px !important;

                img {
                    width: 24px;
                }
            }
        }

    }
    
    .image {
        display: flex;
        width: 100%;
        max-width: 520px;
        height: 600px;
        border-radius: 32px !important;
        overflow: hidden;
        margin-left: auto;
        
        img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }
}

.section-sobre {
    border-bottom: 20px #15A8AB solid;
    order: 4;
    .container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: auto;
        column-gap: 8px;
        grid-template-areas: "article" "image";

        .image {
            width: 235px;
            margin: 0 auto;
            margin-top: 24px;
            grid-area: image;
        }
        
        article {
            display: flex;
            flex-direction: column;
            justify-content: center;
            row-gap: 16px;
            width: 75%;
            margin: 0 auto;
            grid-area: article;
        
            div {
                width: 170px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: end;
                margin: 0 auto;
        
                img {
                    width: 170px;
                }
        
                h2 {
                    font-weight: 400 !important;
                    color: #394669;
                    margin: 0px;
                    position: relative;
                    bottom: -20px;
                }
            }
        
            p {
                text-align: center;
            }
        }
    }
}

.section-conheca {
    display: flex;
    flex-direction: column;
    row-gap: 48px;
    width: 100%;
    position: relative;
    order: 2;

    .bg-fundo {
        width: 100%;
        position: absolute;
        top: 4%;
    }

    .bg-fundo-2 {
        width: 100%;
        position: absolute;
        top: 55%;
        z-index: 1;
    }

    h2 {
        width: 100%;
        text-align: center;
        padding: 0 16px
    }

    

    .sintomas {
        display: none;

        .card {
            display: flex;
            flex-direction: column;
            align-items: center;
            row-gap: 8px;
            text-align: center;
            border: none;
            background-color: transparent;

            .image {
                display: flex;
                align-items: center;
                height: 48px;
                margin: 0 auto;

                img {
                    margin: auto;
                    width: 40px;
                }
            }
        }
    }

    .carousel-sintomas {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 160px;

        .image {
            width: 40px;
        }
    }
}

.section-tratamentos {
    display: flex;
    flex-direction: column;
    row-gap: 48px;
    margin-top: 48px;
    order: 3;

    h2 {
        text-align: center;
        padding: 0 16px;
    }

    .tratamentos {
        z-index: 1;
        display: none;

        .card {
            height: 160px;
            align-items: center;
            row-gap: 8px;
            border-radius: 32px;
            padding: 16px 8px 0;
            border: none;
            text-align: center;
            box-shadow: var(--sombra);
        }
    }

    .tratamentos-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 160px;

        .card {
            text-align: center;
            border-radius: 32px;
            text-align: center;
            height: 130px;
            width: 80%;
            padding-top: 16px;
            margin: 0 auto;
        }      
    }

}

.importancia {
    width: calc(100% - 32px) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: var(--acqua);
    border-radius: 32px;
    padding: 24px 16px;
    text-align: center;
    order: 5;

    h2 {
        padding: 0;
    }
}

.clinico {
    width: calc(100% - 32px) !important;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: auto;
    row-gap: 16px;
    border-radius: 32px;
    box-shadow: var(--sombra);
    margin: 0 16px;
    padding: 0 !important;
    overflow: hidden;
    order: 6;

    .content {
        display: flex;
        flex-direction: column;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        padding: 32px 24px 24px;
    }

    ul {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;

        li {
            font-size: 16px;
            line-height: 20px;
            color: var(--grey);
            font-weight: 400;

            h4 {
                font-size: 16px;
                line-height: 20px;
            }

            h4, p {
                display: inline-block;
            }
        }
    }

    .image {
        display: flex;
        justify-content: end;
        height: 100%;
        overflow: hidden;

        img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }
}

.terapias {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 200px;
    gap: 8px;
    order: 7;

    .card {
        display: flex;
        align-items: center;
        justify-content: center;
        row-gap: 8px;
        text-align: center;
        border-radius: 32px;
        border: 1px solid var(--blue);
        padding: 16px 8px;
        
        img {
            width: 50px;
        }
    }

    .card:nth-of-type(1) {
        background-color: var(--blue);
    }
}

@media (min-width: 576px) {
    .banner {
        height: 500px;

        article {
            max-width: 60%;
            top: 40%;
            left: 10%;

            p:nth-of-type(1) {
                font-size: 24px;
                line-height: 28px;
            }

            p:nth-of-type(2) {
                font-size: 24px;
                line-height: 28px;
            }

            h1 {
                font-size: 32px;
                line-height: 36px;
            }
        }
    } 

    .section-sobre {
        order: 0;
        .container {
            grid-template-columns: repeat(2, 1fr);
            grid-template-areas: "image article";

            .image {
                display: inline-block;
                width: 385px;
                margin-top: auto;
                margin-right: 0;
                margin-left: auto;
            }
            
            article {
                width: 100%;
            
                div {
                    margin: 0;
                    width: 300px;
            
                    img {
                        width: 300px;
                    }
            
                    h2 {
                        bottom: -30px;
                    }
                }
            
                p {
                    text-align: left;
                }
            }
        }
    }

    .section-conheca {
        border-bottom: 20px #15A8AB solid;
        order: 0;

        

        .sintomas {
            display: flex;
            padding-bottom: 32px !important;
        }

        .carousel-sintomas {
            display: none;
        }
    }

    .section-tratamentos {
        order: 0;

        .tratamentos {
            display: flex;
        }

        .tratamentos-carousel {
            display: none;
        }

    }

    .importancia {
        max-width: 75%;
        padding: 24px 72px;
        order: 0;
    }

    .clinico {
        margin: 0 16px;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 16px;
        order: 0;

        .content {
            grid-column: span 2;
            padding: 32px 0 32px 64px;
        }
    }

    .terapias {
        order: 0;
    }
}

@media (min-width: 768px) {
    .custom-title {
        font-size: 24px;
        line-height: 28px;
    }

    .section-sobre {
        .container {
            article {
                padding-right: 72px;
            }
        }
    }

    .section-o-que-e {
        grid-template-columns: repeat(2, 1fr);
        order: 0;
        

        article {
            ul {
                padding-left: 32px;

                li {
                    img {
                        width: 40px;
                    }
                }
            }
        }

        .image {
            display: inline-block;
        }
    }

    .terapias {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto 250px;

        .card:nth-of-type(1) {
            grid-column: span 3;
        }
    }
}

@media (min-width: 992px) {
    .section-conheca {
        

        .carousel-sintomas {
            display: none;
        }
    }

    .clinico {
        min-width: auto;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .terapias {
        grid-template-columns: repeat(5, 1fr);
        grid-auto-rows: 300px;

        .card:nth-of-type(1) {
            grid-column: span 2;
        }
    }

    .section-tratamentos {
        .tratamentos {
            .card {
                height: 130px;
            }
        }
    }
}

@media (min-width: 1400px) {
    
}
