body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    padding: clamp(20px, 5vw, 60px);

    background-image: url("../imagens/concreto-claro.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #222;
}


/* =========================
   NAVEGAÇÃO
========================= */

nav {
    padding: 10px 0;
    z-index: 2;
}

.voltar {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    border: none;

    background-color: var(--cor-principal);
    color: white;

    text-decoration: none;

    transition: 
        background-color 0.2s ease,
        transform 0.2s ease;

    animation: aparecer-esquerda 2s ease-in-out;
}

.voltar:hover {
    background-color: var(--cor-principal-hover);
    transform: scale(1.1);
    box-shadow: 0 0 15px  var(--cor-principal);
}

.voltar:active {
    transform: scale(0.95);
}


/* =========================
   CABEÇALHO
========================= */

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 55vh;

    max-width: 1000px;
    margin: 0 auto;

    text-align: center;

    animation: aparecer-cima 2s ease-in-out;
}

h1 {
    margin: 0 0 20px;

    color: var(--cor-principal);
    font-family: var(--fonte-titulo);
    font-size: clamp(2.5rem, 6vw, 4.5rem);

    line-height: 1.1;
}

header p {
    max-width: 750px;
}


/* =========================
   TEXTOS
========================= */

p {
    margin: 0;

    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.7;
}


/* =========================
   CONTEÚDO
========================= */

main {
    width: min(100%, 1000px);
    margin: 0 auto;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;

    min-height: 45vh;

    padding: 60px 20px;

    gap: 20px;

    animation: aparecer-frente 2s ease-in-out;
}

section h2 {
    margin: 0;
    margin-bottom: 20px;

    color: var(--cor-principal);
    font-family: var(--fonte-titulo);
    font-size: clamp(1.8rem, 4vw, 2.7rem);

    line-height: 1.2;
}

section p {
    max-width: 850px;
    text-indent: 2em;
    text-align: justify;
}


/* =========================
   LINHAS
========================= */

hr {
    width: 70%;
    margin: 100px;

    border: none;
    border-top: 2px dashed var(--cor-principal);

    opacity: 0.7;

    animation: aparecer-frente 2s ease-in-out;
}


/* =========================
   RESPONSIVIDADE: SOBRE
========================= */

@media (max-width: 768px) {

    body {
        padding: 20px;
        background-attachment: scroll;
    }

    nav {
        padding: 5px 0 15px;
    }

    .voltar {
        width: 36px;
        height: 36px;
        animation-duration: 0.7s;
    }

    header {
        min-height: auto;
        padding: 50px 0;
        animation-duration: 0.7s;
    }

    h1 {
        margin-bottom: 16px;
        font-size: clamp(2rem, 7vw, 3rem);
        overflow-wrap: anywhere;
    }

    header p {
        max-width: 100%;
    }

    main {
        width: 100%;
    }

    section {
        box-sizing: border-box;
        width: 100%;
        min-height: auto;
        padding: 40px 24px;
        gap: 16px;
        border-radius: 16px;
        animation-duration: 0.7s;
    }

    section h2 {
        margin-bottom: 10px;
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        text-align: center;
        overflow-wrap: anywhere;
    }

    section p {
        max-width: 100%;
        text-indent: 1em;
        text-align: left;
        overflow-wrap: anywhere;
    }

    p {
        font-size: 1rem;
        line-height: 1.65;
    }

    hr {
        width: 75%;
        margin: 45px auto;
        animation-duration: 0.7s;
    }
}


/* =========================
   CELULARES PEQUENOS
========================= */

@media (max-width: 400px) {

    body {
        padding: 14px;
    }

    header {
        padding: 35px 0;
    }

    h1 {
        font-size: 2rem;
    }

    section {
        padding: 30px 16px;
        gap: 14px;
        border-radius: 12px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p {
        text-indent: 0;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    hr {
        width: 85%;
        margin: 35px auto;
    }
}
