@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --color-azul: #2237a8;
    --color-roxo: #968fff;
    --color-branco: #ffffff;
    --color-preto: #000;
    --color-cinza: #f1f1f1;
    --color-cinza2: #d9d9d9;
    --max-width: 1200px;
    --header-font: "Bebas Neue", sans-serif;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;   
    height: auto;      
    display: block;    
}
a{
    text-decoration: none;
    transition: 0.3s;
}

body{
    font-family: "Poppins", sans-serif;
    overflow-x: hidden; 
}

nav{
    position: fixed;
    isolation: isolate;
    width: 100%;
    z-index: 9;
}

.nav_header{
    padding: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-azul);
}

.nav_logo a{
    font-size: 1.75rem;
    font-weight: 400;font-family: var(--header-font);
    color: var(--color-branco);
}

.nav_menu_btn{
    font-size: 1.5rem;
    color: var(--color-branco);
    cursor: pointer;
}

.nav_link{
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    padding: 2rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--color-azul);
    transition: 0.5s;
    z-index: -1;
    transform: translateY(-100%);
}

.nav_link.open{
    transform: rotateY(0);
}

.nav_link a{
    font-weight: 500;
    color: var(--color-branco);
}

.nav_link a:hover{
    color: var(--color-preto);
}

.nav_btns{
    display: none;
}

.header_container{
    max-width: var(--max-width);
    margin: auto;
    padding-block: 8rem 2rem;
    padding-inline: 1rem;
    display: grid;
    gap: 2rem;
    overflow-x: hidden;
}

.header_image{
    position: relative;
    isolation: isolate;
}

.header_image img{
    max-width: 520px;
    margin-inline: auto;
}

.header_image_card{
    position: absolute;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-preto);
    background-color: var(--color-branco);
    white-space: nowrap;
    border-radius: 5px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.header_image_card span{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-azul);
}

.header_image_card-1{
    top: 25%;
    left: 10%;
    transform: translate(-50%, -50%);
}

.header_image_card-2{
    top: 10%;
    right: 2rem;
    transform: translateY(-50%);
}

.header_image_card-3{
    top: 60%;
    left: 0.5rem; 
    transform: translateY(-50%);
}

.header_image_card-4{
    top: 70%;
    right: 0.5rem; 
    transform: translateY(-20%);
}

.header_content h1{
    margin-bottom: 1rem;
    font-size: 5rem;
    font-weight: 400;
    font-family: var(--header-font);
    color: var(--color-preto);
    line-height: 5.5rem;
    text-align: center;
    margin-top: 2rem;
}

.header_content h1 span{
    color: var(--color-azul);
}

.header_content p{
    margin-bottom: 2rem;
    color: var(--color-preto);
    line-height: 1.75rem;
    text-align: center;
}

.header_content form{
    margin-bottom: 4rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem 0;
    border-radius: calc(1rem + 10px);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.header_content .input_row{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.header_content .input_group{
    flex: 1;
}

.header_content .input_group h5{
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-preto);
}

.header_content .input_group > div{
    display: flex;
    align-items: center;
    gap: 10px;
}

.header_content input{
    width: 100%;
    outline: none;
    border: none;
    font-size: 1rem;
    background-color: transparent;
}

.header_content input::placeholder{
    font-weight: 600;
    color: var(--color-preto);
}

.header_content .input_group span{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-azul);
}

.header_content button{
    width: 100%;
    padding: 1rem 2rem;
    outline: none;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--color-branco);
    background-color: var(--color-azul);
    border-radius: 10px;
    transition: .3s;
    cursor: pointer;
}

.btnmobile{
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: -8%;
    margin-bottom: 2%;
}

.loginmobile{
    width: 100%;
    outline: none;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--color-branco);
    background-color: var(--color-azul);
    border-radius: 10px;
    transition: .3s;
    cursor: pointer;
}

.header_content button:hover{
    background-color: var(--color-roxo);
}

.header_content .bar{
    font-size: 0.9rem;
    color: var(--color-preto);
    text-align: center;
}

@media(width > 1024px){
    .header_content form{
        flex-direction: row;
    }

    .header_content button{
        width: fit-content;
    }
}

@media(width > 768px){
    nav{
        position: static;
        padding-block: 2rem 0;
        padding-inline: 1rem;
        max-width: var(--max-width);
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .nav_header{
        flex: 1;
        padding: 0;
        background-color: transparent;
    }

    .nav_logo a{
        color: var(--color-azul);
        font-size: 2rem;
    }

    .nav_menu_btn{
        display: none;
    }

    .nav_link{
        position: static;
        padding: 0;
        flex-direction: row;
        background-color: transparent;
        transform: none;
    }

    .nav_link a{
        padding-bottom: 5px;
        color: var(--color-preto);
        border-bottom: 4px solid transparent;
    }

    .nav_link a:hover{
        border-color: var(--color-azul);
    }

    .nav_btns{
        display: flex;
        flex: 1;
    }

    .nav_btns .btn{
        padding: .75rem 1.5rem;
        outline: none;
        border: none;
        font-size: 1rem;
        flex-wrap: nowrap;
        border-radius: 10px;
        transition: 0.3s;
        cursor: pointer;
    }

    .login{
        color: var(--color-branco);
        background-color: var(--color-azul);
    }

    .login:hover{
        background-color: var(--color-roxo);
    }

    .header_container{
        padding-block: 2rem;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        margin-top: 10rem;
        justify-content: space-around;
    }

    .header_image{
        grid-area: 1/2/2/3;
        margin-left: 3rem;
    }

    .header_content :is(h1, p, .bar){
        text-align: left;
    }
    .btnmobile{
        display: none;
        justify-content: center;
        align-items: center;
        margin-top: -8%;
        margin-bottom: 2%;
    }
    
    .loginmobile{
        width: 100%;
        outline: none;
        border: none;
        font-size: 1rem;
        white-space: nowrap;
        color: var(--color-branco);
        background-color: var(--color-azul);
        border-radius: 10px;
        transition: .3s;
        cursor: pointer;
    }
}

@media(width < 852px){
    .header_image_card-1,
    .header_image_card-2,
    .header_image_card-3,
    .header_image_card-4{
        display: none;
    }
}

@media(width < 769px){
    .btnmobile{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -8%;
        margin-bottom: 2%;
    }
    
    .loginmobile{
        width: 100%;
        outline: none;
        border: none;
        font-size: 1rem;
        white-space: nowrap;
        color: var(--color-branco);
        background-color: var(--color-azul);
        border-radius: 10px;
        transition: .3s;
        cursor: pointer;
    }
}

@media(width < 540px){
    form{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 500px;
    }
    .header_content{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .header_content h1{
        margin-bottom: 1rem;
        font-size: 3.5rem;
        font-weight: 400;
        font-family: var(--header-font);
        color: var(--color-preto);
        line-height: 5.5rem;
        text-align: center;
        margin-top: 2rem;
    }
    .header_content h1 span{
        color: var(--color-azul);
    }
    .header_content p{
        margin-bottom: 1rem;
        color: var(--color-preto);
        line-height: 1.75rem;
        text-align: center;
    }
    .header_content form{
        margin-bottom: 4rem;
        padding: 1.5rem;
        display: flex;
        width: 80%;
        align-items: center;
        justify-content: space-around;
        flex-direction: column;
        border-radius: calc(1rem + 10px);
        box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    }
    .header_content .input_row{
        width: 100%;
        display: flex;
        align-items: center;
        flex: 1;
    }
    .header_content .input_group{
        flex: 1;
    }
    .header_content .input_group h5{
        margin-bottom: 5px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-preto);
    }
    .header_content .input_group > div{
        display: flex;
        align-items: center;
        gap: 10px;
    } 
    .header_content input{
        width: 100%;
        outline: none;
        border: none;
        font-size: 1rem;
        background-color: transparent;
    }  
    .header_content input::placeholder{
        font-weight: 600;
        color: var(--color-preto);
    }
    
    .header_content .input_group span{
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-azul);
    }
    
    .header_content button{
        width: 100%;
        padding: 1rem 2rem;
        outline: none;
        border: none;
        font-size: 1rem;
        white-space: nowrap;
        color: var(--color-branco);
        background-color: var(--color-azul);
        border-radius: 10px;
        transition: .3s;
        cursor: pointer;
    }
    .header_image img{
        max-width: 400px;
        margin-inline: auto;
    }
}

@media (width < 420px){
    .header_container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: var(--max-width);
        margin: auto;
        padding-block: 8rem 2rem;
        padding-inline: 1rem;
        gap: 2rem;
        overflow-x: hidden;
    }

    form{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 500px;
    }
    .header_content{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .header_content h1{
        margin-bottom: 1rem;
        font-size: 2.5rem;
        font-weight: 400;
        font-family: var(--header-font);
        color: var(--color-preto);
        line-height: 5.5rem;
        text-align: center;
        margin-top: 2rem;
        width: 350px;   
    }
    .header_content h1 span{
        color: var(--color-azul);
    }
    .header_content p{
        margin-bottom: 1rem;
        font-size: 0.9rem;
        color: var(--color-preto);
        line-height: 1.75rem;
        text-align: center;
        width: 350px;
    }
    .header_content form{
        margin-bottom: 4rem;
        padding: 1.5rem;
        display: flex;
        width: 70%;
        align-items: center;
        justify-content: space-around;
        flex-direction: column;
        border-radius: calc(1rem + 10px);
        box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    }
    .header_content .input_row{
        width: 100%;
        display: none;
        align-items: center;
        flex: 1;
    }
    .header_content .input_group{
        flex: 1;
    }
    .header_content .input_group h5{
        margin-bottom: 5px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-preto);
    }
    .header_content .input_group > div{
        display: flex;
        align-items: center;
        gap: 10px;
    } 
    .header_content input{
        width: 100%;
        outline: none;
        border: none;
        font-size: 1rem;
        background-color: transparent;
    }  
    .header_content input::placeholder{
        font-weight: 600;
        color: var(--color-preto);
    }
    
    .header_content .input_group span{
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-azul);
    }
    
    .header_content button{
        width: 100%;
        padding: 1rem 2rem;
        outline: none;
        border: none;
        font-size: 1rem;
        white-space: nowrap;
        color: var(--color-branco);
        background-color: var(--color-azul);
        border-radius: 10px;
        transition: .3s;
        cursor: pointer;
    }
    .header_content .bar{
        font-size: 0.85rem;
        color: var(--color-preto);
        text-align: center;
        width: 350px;
    }
    .header_image img{
        max-width: 35   0px;
        margin-inline: auto;
    }
}

@media (width < 395px){
    .header_container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: var(--max-width);
        margin: auto;
        padding-block: 8rem 2rem;
        padding-inline: 1rem;
        gap: 2rem;
        overflow-x: hidden;
    }
    form{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 500px;
    }
    .header_content{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .header_content h1{
        margin-bottom: 1rem;
        font-size: 2.5rem;
        font-weight: 400;
        font-family: var(--header-font);
        color: var(--color-preto);
        line-height: 5.5rem;
        text-align: center;
        margin-top: 2rem;
        width: 350px;   
    }
    .header_content p{
        margin-bottom: 1rem;
        font-size: 1rem;
        color: var(--color-preto);
        line-height: 1.75rem;
        text-align: center;
        width: 350px;
    }
    .header_content .input_row{
        width: 100%;
        display: none;
        align-items: center;
        flex: 1;
    }
    .header_content .bar{
        font-size: 0.85rem;
        color: var(--color-preto);
        text-align: center;
        width: 350px;
    }
}

@media (width < 345px){
    .header_content h1{
        margin-bottom: 1rem;
        font-size: 2rem;
        font-weight: 400;
        font-family: var(--header-font);
        color: var(--color-preto);
        line-height: 5.5rem;
        text-align: center;
        margin-top: 2rem;
        width: 350px;   
    }
    .header_content p{
        margin-bottom: 1rem;
        font-size: 1rem;
        color: var(--color-preto);
        line-height: 1.75rem;
        text-align: center;
        width: 300px;
    }
    .header_content .bar{
        font-size: 0.85rem;
        color: var(--color-preto);
        text-align: center;
        width: 300px;
    }
}

@media (width < 300px){
    .header_content h1{
        margin-bottom: 1rem;
        font-size: 2rem;
        font-weight: 400;
        font-family: var(--header-font);
        color: var(--color-preto);
        line-height: 5.5rem;
        text-align: center;
        margin-top: 2rem;
        width: 350px;   
    }
    .header_content p{
        margin-bottom: 1rem;
        font-size: 1rem;
        color: var(--color-preto);
        line-height: 1.75rem;
        text-align: center;
        width: 250px;
    }
    .header_content .bar{
        font-size: 0.85rem;
        color: var(--color-preto);
        text-align: center;
        width: 300px;
    }
}