main {
    display: block;
    margin: 0 auto;
    /*max-width: 1280px;*/
    width: 100%;
}

a{
    text-decoration: none;
}

p{
    font-family: var(--font-primary);
    line-height: 1.25;
    font-size: 0.9em;
}

section#calculator p{
    margin-bottom: 1em;
}

form label{
    font-family: var(--font-primary);
    font-size: 0.9em;
}

section#quote p{
    font-family: var(--font-quote);
    font-size: 1.4em;
    line-height: 1.2;
    text-align: center;
    color: var(--color-normal-text);
}
section#quote p.quote-title{
    font-size: 2em;
    font-weight: bold;
    margin: 0.3em 0;
}
section#quote p.quote-tags{
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 0.3em;
}
section#quote p.quote-description{
    margin-bottom: 1.5em;
}

h2{
    font-family: var(--font-titles);
    font-weight: bold;
    color: var(--color-titles);
    font-size: 1.5em;
    margin-bottom: 1em;
}

#services, #portfolio, #calculator, #profile, #faq{
    display: block;
    position:relative;
    padding: 2em 0;
}
.container{
    display: block;
    margin: 0 auto;
    max-width: 1280px;
}

#faq{
    border-bottom-right-radius: 0;
}

#services{ background-color: var(--color-section-color); }
#calculator{ background-color: var(--color-section-important); }
#faq{ background-color: var(--color-section-color); }

div.services-box{
    display: flex;
    justify-content: center;
    gap: 24px;
}

.card{
    width: 30%;
    max-width: 360px;
    background-color: rgba(255, 255, 255, 0.65);
    border-top-right-radius: 24px;
}
.card h3{
    font-family: var(--font-titles);
    font-weight: bold;
    align-self: center;
    font-size: 1.2em;
    margin-left: 0.2em;
}
.card div{
    padding: 0.2em 0 0.1em;
    display: flex;
    justify-content:flex-start;
    margin: 0.6em 0.8em;
    justify-items: center;
   /* background-color: rgba(255, 255, 255, 0.5);*/
}
.card figure img{
    width: 32px;
}
.card p{
    font-size: 0.9em;
    margin: 1em 0.5em;
    font-style: italic;
}
.card ul li::before{
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    list-style: disc;
    background-image: url("../imgs/icons/list-check.svg");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.3em;
    margin-bottom: -0.2em;
}
.card ul li{
    font-family: var(--font-primary);
    font-size: 1em;
    line-height: 1.4;
    margin-left: 0.5em;
}
.card ul{
    margin-bottom: 1.4em;
}

div.profile-box{
    display: flex;
    align-items: center;
    gap: 45px;
}
div.profile-box p{
    font-size: 1em;
    margin: 0.8em 0;
}
div.profile-box img{
    width: 248px;
    border-radius: 50%;
    border: 4px solid var(--color-box-fill);
}

div.faq-box{
    color: white;
    font-weight: bold;
    margin: 1.5em 0 1em;
    padding-bottom: 0.5em;
    font-size: 1em;
    border-bottom: 2px solid white;
    cursor: pointer;
}
div.faq-box div.faq-question{
    display: flex;
    align-items: center;
}
div.faq-box div img{
    width: 28px;
    margin-right: 0.7em;
}

div.answer-box{
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: .9em;
    line-height: 1.3;
    margin-left: 2.8em;

    max-height:0;
    overflow:hidden;
    opacity:0;
    padding:0;

    transition:
        max-height .45s ease,
        opacity .35s ease,
        padding .35s ease;
}

i{ font-style: italic; }
b{font-weight: bold; color: var(--color-links-normal);}

/* portfolio */
.slide{
    position: absolute;

    width: 340px;
    height: 340px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    border-radius: 20px;

    transition:
        transform .45s ease,
        opacity .45s ease,
        left .45s ease,
        right .45s ease;
}
h3#book-title{
    margin: 0;
    font-family: var(--font-primary);
    color: gray;
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
}
.slider{
    position: relative;
    width: 980px;
    height: 320px;
    margin: 40px auto;
}
.prev, .next{
    transform: scale(.82);
    opacity: .45;
    z-index: 1;
}
.prev{ left: 0; }
.next{ right: 0; }
.active{
    left: 50%;
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 2;
}

#bullets{
    margin-top:20px;
    text-align:center;
}

.bullet{
    display:inline-block;
    width:12px;
    height:12px;
    margin:0 6px;
    border-radius:50%;
    background:rgb(182, 182, 182);
    cursor:pointer;
    transition:.3s;
}

.bullet.active{
    background:var(--color-box-fill);
    transform:scale(1.4);
}

form{
    width: 100%;
    max-width: 680px;
    display: block;
    margin: 0 auto;
}

.form-row{
    display: flex;
    align-items: left;
    flex-direction: column;
}

/* formulário */
label{
    margin: 1em 0.6em 0.6em;
    width: 100%;
    color: white;
}
.input-sizes, select {
    width: 100%;
    height: 40px;
    box-sizing: border-box;

    padding: 0 16px;

    background-color: white;
    border: 1px solid #0e0570;
    border-radius: 18px;

    font-family: var(--font-primary);
    font-size: 1em;

    box-shadow: none;
    outline: none;
}

.input-sizes:disabled {
    background-color: rgba(255, 255, 255, 0.35);
    opacity: 0.6;
    cursor: not-allowed;
}

.paper{
    display: block;
    width: 96%;
    max-width: 980px;
    margin: 1.7em auto;
    padding: 2.5em;
    background-color: bisque;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 35px;
}
.paper h2{
    font-weight: normal;
    font-size: 1.2em;
}
.paper p h2{
    font-family: 'Courier New', Courier, monospace; 
}
.paper li{
    margin: 0.5em 0;
}

@media (max-width: 800px) {

    h2{
        font-family: var(--font-titles);
        font-weight: bold;
        color: var(--color-titles);
        font-size: 1.5em;
        margin-left: 1em;
        margin-bottom: 1em;
    }

    /* profile */
    div.profile-box img{
        width: 200px;
        border-radius: 50%;
        border: 4px solid var(--color-box-fill);
    }

    div.profile-box p{
        font-size: 1em;
        margin: 0.6em 1em;
        text-align: justify;
    }

    div.services-box, div.profile-box{
        flex-direction: column;
    }

    .card{
        display: block;
        margin: 0 auto;
        width: 98%;
    }

    .form-row{
        flex-direction: column;
    }
}

@media (max-width:980px){

    .prev, .next{
        opacity:0;
        pointer-events:none;
        display: none;
    }

    .active{
        position:relative;
        left:auto;
        transform:none;
        margin:auto;
    }

    .slider{
        width:100%;
        height:330px;
    }
    .bullet{
        display:inline-block;
        width:14px;
        height:14px;
        margin:0 0.6em;
        border-radius:50%;
        background:rgb(182, 182, 182);
        cursor:pointer;
        transition:.3s;
    }
    .bullet.active{
        transform: scale(1.4);
    }

    section#calculator p{
        margin: 0 1em 1em;
        text-align: justify;
    }

}

