header {
    position: relative;
    display: flex;              /* <-- isso ativa o layout em linha */
    align-items: center;        /* alinha verticalmente */
    justify-content: center; /* separa um do outro */
    z-index: 10;
    gap: 50px;                  /* espaço extra entre eles */
}

header h1 {
    font-size: 3rem;
    font-weight: 600;
    
    color: #ffffff;
    text-align: center;
}

header h1::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 5px;
    background-color: #eee;
}


header p {
    margin-top: 0;              /* remove quebra de linha visual */
    font-size: 1.2rem;
    color: #ffffff;
}

.fa-cart-arrow-down {
    margin-left: 10px;
    font-size: 2rem;
    
    color: rgb(247, 246, 246);
}

.fa-cart-arrow-down:hover {
    color: #ffffff;
    transform: scale(1.2);
    transition: all 0.8s;
    -webkit-transition: all 0.8s;
    -moz-transition: all 0.8s;
    -ms-transition: all 0.8s;
    -o-transition: all 0.8s;
}


.item{
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--background);

}

.item.active{
    display: block;
}
.item .title{
    font-size: 12rem;
    color: aliceblue;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.item .fruit img{
    width: 90%;
    position: absolute;
    top: 0;
    z-index: 3;
}
.item .refri{
    z-index: 2;
    width: 600px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#prev, #next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background:transparent;
    border: 1px solid #eee9;
    color: #eee;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: 4;
    border-radius: 50%;


}
#prev{
    left: 30px;
}
#next{
    right: 30px;
}

#prev:hover, #next:hover{
    background: #eee9;
    color: #333;
    transition: all 0.3s;
}

@keyframes toActive{
    from{
        top: 100%;
        opacity: 0;
    }
}

.item.active img.fruit{
    animation: toActive 0.8s ease-in-out;
    -webkit-animation: toActive 0.8s ease-in-out;
}

.item.active .title{
    animation: toActive 1.2s ease-in-out;
    -webkit-animation: toActive 1.2s ease-in-out;
}

.item.active .title{
    text-shadow: 2px 2px 8px rgb(255, 250, 250);
}
.item.active .refri{
    animation: toActive 2s ease-in-out;
    -webkit-animation: toActive 2s ease-in-out;
}
.logo{
    align-items: center;
    justify-content: center;
    
}