/* Estilos para o header fora do body */
.container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: none;
    height: 125px; /* Altura total do header (75px logo + 50px sub-header) */
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(45deg, transparent, white, transparent);
    height: 75px;
}

.logo img {
    max-height: 100%;
    width: auto;
}

/* Estilos gerais */
body {
    background-color: rgb(255, 255, 255);
    color: rgb(18, 23, 30);
    margin: 0;
    padding-top: 125px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > footer {
    position: sticky;
    top: 100vh;
}

a {
    color: rgb(18, 23, 30);
}

a:hover {
    color: rgb(21, 0, 33);
    transition: 0.3s all;
}

h1 {
    font-weight: 200;
}

/* Header e navegação */
.shop-sub-bnr {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: rgba(18, 23, 30, 1);
    height: 50px;
    color: white;
    font-size: 3rem;
    font-weight: 600;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#title {
    flex-direction: column;
    line-height: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
}

li {
    display: inline-block;
    margin: 20px;
}

#inscreva-se-btn {
    border: 2px solid rgb(21, 0, 106);
    padding: 10px;
    border-radius: 15px;
}

#inscreva-se-btn:hover {
    background-color: rgb(0, 6, 56);
    color: rgb(0, 0, 0);
}

/* Conteúdo principal */
.main {
    flex: 1;
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.main p {
    line-height: 20px;
    max-width: 500px;
    font-size: 30px;
}

.main img {
    width: 650px;
    max-width: 100%;
}

.main h2 {
    font-size: 96px;
    line-height: 10px;
    margin-bottom: 60px;
    font-weight: 600;
}

span {
    color: rgb(11, 0, 66);
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    width: 50%;
}

form [type="submit"] {
    height: 50px;
    width: 50%;
    background-color: rgb(11, 0, 59);
    color: rgb(255, 255, 255);
    font-weight: bold;
    line-height: 20px;
    
}



form [type="submit"]:hover {
    cursor: pointer;
    
}

input, .product-select {
    margin-top: 20px;
    height: 55px;
    padding: 15px;
    border-radius: 20px;
    border: none;
    font-size: 20px;
    background-color: rgb(18, 23, 30);
    color: white;
}

input::placeholder, .product-select::placeholder {
    color: white;
}

input[type="text"] {
    transition: 0.5s !important;
    max-width: 455px;
}

input[type="submit"] {
    max-width: 455px;
}

select{
    max-width: 455px;
}

input[type="text"]:focus {
    outline-color: rgb(25, 175, 153);
    
}

/* Wrappers */
.wrapper, .wrapper_top {
    width: 911px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Bottom page */
.bottom_page {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    padding-top: 200px;
    width: 100%;
    background-color: #f5f5f5;
}

.bottom_page p {
    line-height: 20px;
    max-width: 500px;
    font-size: 30px;
}

.bottom_page img {
    width: 500px;
    max-width: 100%;
}

.bottom_page h2 {
    font-size: 60px;
    color: rgb(17, 124, 109);
    font-weight: 400;
}

.bottom_page h3 {
    color: black;
}

.wrapper_bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.inner_text {
    width: 50%;
    padding-left: 50px;
}

/* Logo */
.imglogo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
    margin-top: 20px;
}

.imglogo img {
    max-width: 100%;
    height: auto;
    width: 300px;
}

/* Botões */
.button-access:hover {
    background-color: rgb(25, 175, 153);
    transition: 0.7s;
}

/* Artigo na main */
.main article {
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out, visibility 0s 0.3s;
    opacity: 1;
    max-height: 1000px;
    overflow: hidden;
    visibility: visible;
}

/* Footer */
footer {
    width: 100%;
}

/* Media queries */
@media screen and (max-width: 1649px) {
    .main {
        flex-direction: column;
        margin-top: 50px;
    }

    .main img {
        width: 100%;
        max-width: 500px;
    }

    .main h2 {
        font-size: 60px;
        line-height: 10px;
        margin-bottom: 30px;
    }

    .main p {
        font-size: 24px;
    }

    .wrapper, .wrapper_top, .wrapper_bottom {
        width: 100%;
        margin: 0 auto;
        
    }

    form {
        width: 50%;
    }

    .bottom_page {
        margin-top: 50px;
        padding-top: 100px;
    }

    .main article {
        opacity: 0;
        max-height: 0;
        visibility: hidden;
    }

    .imglogo img {
        width: 250px;
    }


    .wrapper{
        /* width: 911px; */
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .wrapper_top{
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
    }

    .wrapTop{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50%;
    }


}

@media screen and (max-width: 768px) {
    .container {
        height: 145px; /* Ajuste para a altura maior do sub-header em telas menores */
    }

    body {
        padding-top: 145px;
    }

    .shop-sub-bnr {
        height: 70px;
    }

    .logo img {
        max-width: 80%;
        height: auto;
    }

    header {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    li {
        margin: 10px 0;
    }

    .main h2 {
        font-size: 40px;
    }

    .main p {
        font-size: 20px;
    }

    input, .product-select {
        font-size: 16px;
    }

    .bottom_page h2 {
        font-size: 40px;
    }

    .bottom_page img {
        width: 100%;
        max-width: 300px;
    }

    .wrapper_bottom {
        flex-direction: column;
    }

    .wrapper_bottom img,
    .wrapper_bottom .inner_text {
        width: 100%;
        text-align: center;
    }

    .imglogo img {
        width: 200px;
    }

    .inner_text {
        width: 90%;
        padding-left: 0;
        text-align: center;
    }

    .wrapper{
        flex-direction: column;
    }

    
    .wrapTop{
        width: 100%;
    }

    form {
        width: 80%;
    }
}