section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

section::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;

    background: var(--cor-principal);
    box-shadow: 0 0 10px 5px var(--cor-principal);
}

/* BARRA DE NAVEGAÇÃO */
        
nav {
    position: fixed;
    padding: 20px;
    width: 100%;
    height: 20vh;
    z-index: 2;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-nav);
}

.itens {
    display: flex;
    gap: 3rem;
    margin-right: 30px
}

.cadastrar {
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    
    background-color: var(--cor-principal);
    border-radius: 10px;
    color: white;
    padding: 10px 15px;
    font-size: 1.5rem;
    transition: var(--transicao);
}

.cadastrar:hover {
    background-color: var(--cor-principal-hover);
    transform: scale(1.1);
}

.entrar {
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    
    background: none;
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    padding: 10px 13px;
    font-size: 1.5rem;
    transition: 0.3s;
}

.entrar:hover {
    transform: scale(1.1);
}


/* TÍTULO */

.titulo {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 1),
        rgba(0, 0, 0, .5),
        rgba(0, 0, 0, 0)
    ),
    
    url(../imagens/inicial.jpeg);

    background-size: cover;
    background-position: center;

    min-height: 100vh;
    padding-top: 150px;

    align-items: flex-start;
    justify-content: center;
}

.titulo-text {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: space-between;

    margin: 2rem;
    height: 300px;
    width: max-content;
    padding: 3rem;

    background-color: var(--bg-principal);
    border-radius: 20px;

    position: relative;
    isolation: isolate;
    overflow: hidden;

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

.titulo-text::before{

    content: '';

    position: absolute;

    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    translate: -50% -50%;

    background: conic-gradient(
        from var(--angle),
        transparent 80%,
        var(--cor-principal) 90%,
        transparent 100%
    );

    animation: spin 10s linear infinite;

}

.titulo-text::after{

    content: '';

    position: absolute;

    inset: 3px;

    background: var(--bg-principal);

    border-radius: 20px;

}

.titulo-text > *{
    position: relative;
    z-index: 2;
}
        
.titulo-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 700;
}

.titulo-text p {
    color: var(--texto-secundario);
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 350px;
}

.sub-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.sub-titulo i {
    animation: scroll 2s infinite ease-in-out;
    transition: none !important;
}


        /* SOBRE NÓS */
        
.sobre {
    min-height: 700px;

    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;

    gap: clamp(50px, 6vw, 100px);
    padding: 100px 7%;

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

    position: relative;
    overflow: hidden;
}

.sobre figure {
    flex: 1;
    max-width: 650px;
    margin: 0;
    animation: aparecer-frente 2s ease-in-out;
}

.sobre img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.fachada {
    width: 100%;
    height: 500px;
    object-fit: cover;

    border-radius: 70% 30% 65% 35% / 35% 65% 35% 65%;
    border: none;
    border-left: 5px solid var(--cor-principal);
    padding: 8px;

    transition: 0.4s ease;
}

.fachada:hover {
    transform: scale(1.02);
}

.sobre-texto {
    width: min(100%, 600px);

    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sobre-texto h2 {
    margin-bottom: 20px;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;

    color: var(--bg-principal);

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

.sobre-texto p {
    max-width: 600px;

    padding: 10px;

    font-size: clamp(1rem, 1.3vw, 1.2rem);
    text-align: justify;
    text-indent: 2em;
    line-height: 1.8;

    color: #222;

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

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

.mais {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 200px;

    padding: 14px 18px;

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

    border: none;
    border-radius: 8px;

    font-size: 1rem;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

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

.mais:hover {
    background: var(--cor-principal-hover);
    transform: translateY(-4px);
}

.mais i {
    transition: transform 0.3s ease;
}

.mais:hover i {
    transform: translateX(5px);
}


/* ============================= */
/* CARROSSEL */
/* ============================= */

.interior {
    min-height: 700px;

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

    padding: 100px 7%;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.75)
        ),
        url(../imagens/concreto.jpg);

    background-size: cover;
    background-position: center;
}


/* TÍTULO */

.interior h2 {
    margin: 0 0 45px;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;
    text-align: center;

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

.interior h2 span {
    position: relative;
}

.interior h2 span::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -12px;

    width: 60px;
    height: 4px;

    background: var(--cor-principal);

    border-radius: 10px;

    transform: translateX(-50%);
}


/* ÁREA DO CARROSSEL */

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

    gap: clamp(12px, 3vw, 40px);
    width: 100%;
}

/* CONTAINER DAS IMAGENS */

.slides {
    position: relative;

    width: clamp(280px, 55vw, 650px);
    height: 430px;

    overflow: hidden;

    border: 2px solid var(--cor-principal);
    border-radius: 25px;
}

/* IMAGENS */

.slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: brightness(75%);
    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.5s ease,
        filter 0.3s ease,
        box-shadow 0.3s ease;
}

.slide.ativa {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slides:hover .slide.ativa {
    filter: brightness(100%);
}

/* SETAS */

.anterior,
.proximo {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    cursor: pointer;

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

    border: 2px solid var(--cor-principal);
    border-radius: 50%;

    width: 45px;
    height: 45px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.anterior i,
.proximo i {
    font-size: 28px;
}

.anterior:hover,
.proximo:hover {
    background: var(--cor-principal);
    color: white;
    transform: scale(1.1);
}

/* INDICADORES */

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

    gap: 12px;
    margin-top: 20px;
}

.bolinha {
    width: 11px;
    height: 11px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: var(--cor-principal);
    opacity: 0.4;

    cursor: pointer;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.bolinha.ativa {
    opacity: 1;
    transform: scale(1.3);
}


/* ANIMAÇÃO DAS IMAGENS */

.sair-esquerda {
    animation: sairEsquerda 0.5s ease forwards;
}

.sair-direita {
    animation: sairDireita 0.5s ease forwards;
}

.entrar-direita {
    animation: entrarDireita 0.5s ease forwards;
}

.entrar-esquerda {
    animation: entrarEsquerda 0.5s ease forwards;
}


@keyframes sairEsquerda {

    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }

}


@keyframes sairDireita {

    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }

}


@keyframes entrarDireita {

    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}


@keyframes entrarEsquerda {

    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}


/* RODAPÉ */

footer {
    display: flex;
    height: 30vh;
    align-content: center;
}

hr {
    border: 1px dashed white;
    height: 100%;
}

.area {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.area h2, .area i{
    color: var(--cor-principal);
}

.area h2 {
    margin: 10px 0;
}

.area i {
    font-size: 25px;
}

.copy {
    color: var(--texto-secundario) !important;
    font-size: 15px !important;
}

.area a, .area p {
    color: white;
    font-size: 17px;
}

.links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.links a {
    font-size: 1.5rem;
}

.links a:hover {
    transform: scale(1.05);
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
}

.social a i {
    color: white;
    font-size: 3rem;
}

.social a:hover {
    transform: scale(1.2);
}
        

/* ============================= */
/* RESPONSIVIDADE */
/* ============================= */

/* TABLETS */
@media (max-width: 900px) {

    /* NAV */
    nav {
        height: auto;
        min-height: 80px;
        padding: 15px 20px;
    }

    .itens {
        gap: 1rem;
        margin-right: 10px;
    }

    .cadastrar,
    .entrar {
        font-size: 1rem;
        padding: 8px 12px;
    }


    /* TÍTULO */
    .titulo {
        padding-top: 120px;
    }

    .titulo-text {
        width: auto;
        max-width: 80%;
        height: auto;
        min-height: 250px;
        padding: 2rem;
        margin: 2rem;
    }

    .titulo-text h2 {
        font-size: 2.5rem;
    }


    /* SOBRE */
    .sobre {
        flex-direction: column;
        padding: 70px 6%;
        gap: 50px;
    }

    .sobre figure {
        width: 100%;
        max-width: 600px;
    }

    .sobre img,
    .fachada {
        height: 400px;
    }

    .sobre-texto {
        width: 100%;
        max-width: 600px;
        gap: 25px;
    }


    /* CARROSSEL */
    .interior {
        padding: 70px 5%;
    }

    .slide {
        width: min(65vw, 550px);
        height: 350px;
    }

    .carrossel {
        gap: 20px;
    }


    /* RODAPÉ */
    footer {
        height: auto;
        padding: 40px 6%;
        gap: 10px;
    }

    .area {
        flex-direction: row;
        justify-content: space-between;
        gap: 30px;
        height: auto;
        gap: 15px;
        padding: 10px 0;
        width: 100%;
    }

    .links,
    .area h2,
    .social {
        flex: 1;
    }

    hr {
        width: 100%;
        height: 0;
        border-top: 1px dashed white;
        border-left: none;
    }

    .links,
    .social {
        height: auto;
    }
}


/* CELULARES */
@media (max-width: 600px) {

    /* EVITA SOBRAS LATERAIS */
    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
    }

    /* NAV */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 68px;
        box-sizing: border-box;
        padding: 10px 14px;
        gap: 10px;
        z-index: 1000;
    }

    .logo {
        width: 65px;
        max-width: 20%;
        height: auto;
        flex-shrink: 0;
    }

    .itens {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 7px;
        margin: 0;
        min-width: 0;
    }

    .cadastrar,
    .entrar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 8px 10px;
        border-radius: 7px;
        white-space: nowrap;
    }

    .cadastrar:hover,
    .entrar:hover {
        transform: none;
    }

    /* TÍTULO / HERO */
    .titulo {
        min-height: 100vh;
        min-height: 100vh;
        box-sizing: border-box;
        padding: 100px 16px 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .titulo-text {
        box-sizing: border-box;
        width: 100%;
        max-width: 440px;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 2rem 1.25rem;
        border-radius: 15px;
    }

    .titulo-text::after {
        border-radius: 15px;
    }

    .titulo-text h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        line-height: 1.15;
        overflow-wrap: break-word;
        margin: 0 0 14px;
    }

    .titulo-text p {
        font-size: 1rem;
        line-height: 1.65;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .sub-titulo {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* SOBRE */
    .sobre {
        min-height: auto;
        box-sizing: border-box;
        padding: 55px 20px;
        gap: 30px;
    }

    .sobre figure {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }

    .sobre img,
    .fachada {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .fachada {
        border-radius: 35% 15% 35% 15% / 15% 35% 15% 35%;
        border-left-width: 4px;
        padding: 5px;
    }

    .fachada:hover {
        transform: none;
    }

    .sobre-texto {
        width: 100%;
        min-width: 0;
        gap: 20px;
    }

    .sobre-texto h2 {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    .sobre-texto p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .mais {
        box-sizing: border-box;
        width: fit-content;
        max-width: 100%;
        padding: 12px 18px;
    }

    /* CARROSSEL */
    .interior {
        min-height: auto;
        box-sizing: border-box;
        padding: 50px 12px;
        overflow: hidden;
    }

    .interior h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        line-height: 1.2;
        margin: 0 0 28px;
        text-align: center;
    }

    .carrossel {
        gap: 10px;
    }

    .slides {
        width: calc(100% - 90px);
        height: 280px;
    }

    .anterior,
    .proximo {
        width: 35px;
        height: 35px;
    }

    .anterior i,
    .proximo i {
        font-size: 23px;
    }

    .anterior:hover,
    .proximo:hover {
        transform: none;
    }

    .indicadores {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 18px;
    }

    /* RODAPÉ */
    footer {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
        padding: 35px 20px;
        gap: 25px;
    }

    .area {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        gap: 12px;
        padding: 0;
        align-items: center;
    }

    hr {
        width: 100%;
        margin: 0;
    }

    .area h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin: 0;
        text-align: center;
    }

    .copy {
        text-align: center;
        line-height: 1.5;
    }

    .links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .links a {
        font-size: 1rem;
    }

    .area a,
    .area p {
        max-width: 100%;
        font-size: 0.95rem;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .social {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .social a i {
        font-size: 2rem;
    }
}
