* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eaeaea;
    overflow: auto;
}

.container_1 {
    position: relative;
    margin-top: 400px;
    margin-bottom: -200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 600px;
    background: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
}

.container_1 .slide .item,
.container_1 .slide1 .item1,
.container_1 .slide2 .item2 {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(100%, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

/* Apenas o primeiro elemento ocupa o destaque */
.slide .item:nth-child(1),
.slide1 .item1:nth-child(1),
.slide2 .item2:nth-child(1) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

/* Restantes em fila horizontal à direita */
.slide .item:nth-child(2),
.slide1 .item1:nth-child(2),
.slide2 .item2:nth-child(2) {
    left: 50%;
}

.slide .item:nth-child(3),
.slide1 .item1:nth-child(3),
.slide2 .item2:nth-child(3) {
    left: calc(50% + 220px);
}

.slide .item:nth-child(4),
.slide1 .item1:nth-child(4),
.slide2 .item2:nth-child(4) {
    left: calc(50% + 440px);
}

.slide .item:nth-child(n + 5),
.slide1 .item1:nth-child(n + 5),
.slide2 .item2:nth-child(n + 5) {
    left: calc(50% + 660px);
    opacity: 0;
}

.item .content,
.item1 .content,
.item2 .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 400px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}

.slide .item:nth-child(1) .content,
.slide1 .item1:nth-child(1) .content,
.slide2 .item2:nth-child(1) .content {
    display: block;
}

.content .text_background {
    background: rgba(75, 75, 75, 0.6);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0.3s 1 forwards;
}

.content .name {
    font-family: "Quicksand", sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 1 forwards;
    color: #fbfbfb;
}

.content .des {
    font-family: "Nunito", sans-serif;
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0.3s 1 forwards;
    color: #fbfbfb;
    font-weight: bold;
}

.content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0.6s 1 forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover {
    background: #ababab;
    color: #fff;
}

.img_logo {
    max-width: 100px;
    max-height: 100px;
}

@media (max-width: 768px) {
    .container_1 {
        width: 100%;
        padding: 10px;
    }

    .slide .item {
        min-width: 150px;
        height: 200px;
    }

    .content .name {
        font-size: 16px;
    }

    .content .des {
        font-size: 12px;
    }
}

/* Carrossel 3D final da página */

.box {
    position: relative;
    width: 200px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotate3D 20s linear infinite;
    margin: 0 auto;
    margin-top: 200px;
    margin-bottom: 250px;
    box-sizing: border-box;
}

.box:hover {
    animation-play-state: paused;
}

@keyframes rotate3D {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.box span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 51.428deg)) translateZ(300px);
    -webkit-box-reflect: below 2px linear-gradient(transparent, transparent, rgba(4, 4, 4, 0.267));
}

.box span img {
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: 0.5s;
    border-radius: 15px;
    border: 4px double rgb(0, 0, 0);
    object-fit: cover;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

img:hover {
    transform: translateY(-2px);
}






