/* Mudar cor de fundo do menu por página */
.menu{
    --bgColor: #9C7ED6;
}


/* ------- Configurações gerais */
body{
    padding: 30px 0;
    background-color: #dfdede;
}

body::before{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 5%;
    filter: blur(5px);
    z-index: -1;

    background-image: url(../imgs/fundoclinica.jpeg);
    background-size: 1950px 1000px;
    background-position: center;
}

body > .title{
    width: fit-content;
    margin: 0 auto;
    padding: 0 10px;
    padding-bottom: 20px;
    margin-top: 40px;
    
    position: relative;
    text-align: center;
    color: var(--fourColor);
}
body > .title::after{
    width: 80%;
    height: 8px;
    border-radius: 100vmax;
    background-color: var(--fourColor);
    margin: 0 auto;

    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(-10px);
}
.btn{
    width: fit-content;
    background: transparent;
    border: none;
    cursor: pointer;    
    transition: filter .3s;
}
.btn span{
    text-decoration: none;
}
.btn>:focus{
    outline: none;
}
.btn:hover{
    transition: filter .5s;
    filter: brightness(.8);
}


/* ------- Configurações para caixas */
.boxes{
    max-width: 1000px;
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
    margin-top: 10px;
    box-sizing: border-box;

    display: grid;
    grid-template-areas:
		"objA bigA"
		"objB bigA"
        "bigB objC"
        "bigB objD";
    gap: 10px;
}
.boxes > .box:nth-child(2){
    grid-area: objB;
}
.boxes > .box:nth-child(3){
    grid-area: bigA;
}
.boxes > .box:nth-child(4){
    grid-area: bigB;
}
.boxes > .box{
    background-color: white;
    /* background-color: var(--bgColor); */
    border-radius: 10px;
    padding: 0;

    box-sizing: border-box;
    box-shadow: 0px -4px 15px #0000002a;
    --bgColor: var(--fourColor);
}

.boxes > .box > .title{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    min-height: 15px;
    height: fit-content;
    background-color: var(--bgColor);
    border-radius: 10px 10px 0 0;    
    box-sizing: content-box;
    /* background: linear-gradient(0deg, transparent 12.5%, #00000038 100%); */
    padding: 15px;
    position: relative;
}
.boxes > .box > .title > *{
    margin: 0;
    height: 25px;
    display: block;
    color: white!important;
}
.boxes > .box > .title > h1{
    margin-right: auto;
}
.boxes > .box > .title > #icon{
    width: 25px;
}
.boxes > .box > .title > #icon img{
    width: 100%;
    height: auto;
}
.boxes > .box > .title > .btn{
    display: none;

    color: white;
    font-size: 18px;
    
    transform: rotate(180deg);
}
.boxes > .box > .content{
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 19.4px;

    padding: 20px;
    text-align: justify;
    line-height: 28px;
}
.boxes > .box > .content > *{
    margin: 0;
}
.boxes > .box > .content > #duration{
    background-color: var(--bgColor);
    color: white!important;
    width: fit-content;
    border-radius: 5px;
    padding: 5px 10px;
}


/* ------- Configurações para TABLET */
@media(max-width: 820px){
    .boxes{
        display: flex;
        flex-direction: column;
        grid-template-areas: none;
        gap: 15px;
    }
    .boxes > .box > .title{
        height: 40px;
    }
    .boxes > .box > .title > .btn{
        display: block;
    }

    .boxes > .box.closed .title{ border-radius: 10px; }
    .boxes > .box.closed .content{ padding: 0; }
    .boxes > .box.closed .content > *{ display: none; }

    .boxes > .box.closed .title .btn{
        transform: scaleY(-1);
        transition: transform .5s;
    }
    .boxes > .box.opened .title .btn{
        transform: scaleY(1);
        transition: transform .5s;
    }
}


/* ------- Configurações para CELULAR */
@media(max-width: 520px){
    body > .title::after{
        width: 40%;
    }
    .boxes{
        gap: 25px;
    }
  }