@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700');
@import url('https://fonts.googleapis.com/css?family=Muli:300, 400');

img {
    max-width: 5000%;
    height: auto;
    vertical-align: top;
}

@keyframes transformYBanner {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes transformXLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes transformXRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes transformYTop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes transformYBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Animações diferentes para cada hero-banner */
.hero-1 .hero-picture {
    animation-name: transformXLeft, transformPicture;
    animation-duration: 900ms, 1900ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
    animation-fill-mode: backwards;
}

.hero-2 .hero-picture {
    animation-name: transformYTop, transformPicture;
    animation-duration: 900ms, 1900ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
    animation-fill-mode: backwards;
}

.hero-3 .hero-picture {
    animation-name: transformXRight, transformPicture;
    animation-duration: 900ms, 1900ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
    animation-fill-mode: backwards;
}

/* Para a hero-head (títulos) */
.hero-1 .hero-head {
    animation-name: transformYBanner;
    animation-duration: 900ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
}

.hero-2 .hero-head {
    animation-name: transformYBanner;
    animation-duration: 1200ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
}

.hero-3 .hero-head {
    animation-name: transformYBanner;
    animation-duration: 1500ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
}

.hero-banner {
    display: grid;
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
    grid-gap: 3rem;
    grid-template-columns: repeat(3, minmax(100px, 1fr)); /* Três colunas no layout */
    margin: 0 auto; /* Centraliza horizontalmente */
    scrollbar-color: #eee;
    scrollbar-width: 5px;
    transition: transform 0.3s ease-in-out;
}

.hero-banner::-webkit-scrollbar {
    height: 6px;
    border-radius: 100px;
    cursor: pointer;
}

.hero-banner::-webkit-scrollbar-track {
    background: white;
    border-radius: 100px;
}

.hero-banner::-webkit-scrollbar-thumb {
    background-color: #eee;
    border-radius: 4px;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: 1fr; /* Para telas menores, empilha os itens */
    grid-template-rows: auto auto;
    overflow: hidden;
    justify-items: center; /* Centraliza o conteúdo da grid */
}

.hero-head {
    position: relative;
    z-index: 2;
    grid-column: 1 / 2;
    grid-row: 2;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 2rem;
    padding-left: 2rem;
    background-color: white;
    animation-name: transformYBanner;
    animation-duration: 900ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
    animation-fill-mode: backwards;
    text-align: center; /* Centraliza o texto */
}

.hero-picture {
    width: 100%;
    height: 250px; /* Ajuste a altura conforme necessário */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra toda a área sem distorcer */
}

.hero-picture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #004080;
    opacity: 1;
    z-index: 1;
    transform: translateX(101%);
    animation-name: opacity, transformOverlay;
    animation-duration: 300ms, 1400ms;
    animation-fill-mode: backwards;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
}

.picture {
    width: 100%;
    opacity: 1;
    animation-name: opacity, transformPicture;
    animation-duration: 1000ms, 1900ms;
    animation-fill-mode: backwards;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
}

.heading, .hero-description {
    animation-name: transformY, opacity;
    animation-duration: 900ms, 700ms;
    animation-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
    animation-fill-mode: backwards;
}

.heading {
    font-family: "Merriweather";
    color: inherit;
    letter-spacing: 1px;
    font-size: 1.3rem;
}

.hero-description {
    font-size: .9rem;
    font-weight: 300;
    color: #999;
    font-style: italic;
}

.view-more-btn {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #003366;
}

@media (max-width: 768px) {
    .hero-banner {
        grid-template-columns: 1fr; /* Coloca os itens em uma coluna única em telas pequenas */
        padding: 1rem;
    }

    .hero-head {
        text-align: center; /* Garante que o texto fique centralizado em dispositivos menores */
    }
}