@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: #eeebeb;
    border-radius: 5px; 
}
::-webkit-scrollbar-track {
    background-color: #000;
}

.cabecalho {
    background-color: rgb(3, 3, 3);
    width: 100%;
    min-height: 4.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.logo #marvel {
    width: 7.8rem;
}

.navegacao {
    background-color: #1b1b1c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 5vw, 13rem);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 15px;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    margin: 0;
    list-style: none;
}

.navegacao a {
    text-decoration: none;
    color: #eeebeb;
    transition: 0.3s;
    display: block;
}

.navegacao a:hover {
    transform: scale(1.2);
}

.home {
    width: 100%;
    display: flex;
    background-color: #000;
}

#fundo {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.historia {
    width: 100%;
    min-height: 95vh;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.titulo-historia h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
}

.titulo-historia h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: #f0131e;
    margin: 10px auto;
}

.historias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 1300px;
}

.historia-1, .historia-2, .historia-3 {
    background: #151515;
    border-radius: 12px;
    width: 100%;
    flex: 1 1 300px;
    max-width: 350px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.historia-1:hover, .historia-2:hover, .historia-3:hover {
    transform: translateY(-15px);
    border-color: rgba(240, 19, 30, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(240, 19, 30, 0.2);
}

.historia-1 { border-top: 4px solid #908c8c; }
.historia-2 { border-top: 4px solid #f0131e; }
.historia-3 { border-top: 4px solid #0056b3; }

.historia img {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.5);
    transition: 0.3s;
    object-fit: cover;
}

#martin, #stan, #quadrinho {
    width: 100%;
    height: 220px;
    max-width: 250px;
}

.historia p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    font-weight: 300;
}

.titulo-filmes, .titulo-series {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eeebeb;
    padding: 2rem 1rem;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bolder;
    gap: 1rem;
    text-align: center;
}

.filmes, .series {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    padding: 4rem 3rem;
    justify-items: center;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.filmes {
    background: linear-gradient(to bottom, #000, #5b0707, #000);
}

.series {
    background: linear-gradient(to top, #5b0707, #000);
}

.banner-filmes, .banner-series {
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.banner-filmes a, .banner-series a {
    text-decoration: none;
    color: #eeebeb;
    display: block;
    width: 100%;
}

.banner-filmes:hover, .banner-series:hover {
    transform: scale(1.06);
}

.imagem-tamanho {
    width: 100%;
    max-width: 12rem;
    margin: 0 auto;
}

.imagem-tamanho img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.data-filme {
    font-weight: 100;
    color: #cccccc;
    margin-top: 0.5rem;
}

footer {
    width: 100%;
    min-height: 15rem;
    background-color: #1b1b1c;
    color: #eeebeb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    box-sizing: border-box;
    gap: 2rem;
}

footer img {
    width: 7rem;
}

.redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.redes a {
    font-size: 40px;
    color: #908c8c;
    transition: 0.2s;
    text-decoration: none;
}

.redes a:hover {
    color: #eeebeb;
}

@media (max-width: 768px) {
    .historias {
        padding-top: 2rem;
        gap: 2rem;
    }

    .historia-1, .historia-2, .historia-3 {
        padding: 1.5rem;
    }

    .filmes, .series {
        gap: 2rem;
        padding: 2rem 1rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .navegacao {
        flex-direction: column;
        gap: 1rem;
    }

    .filmes, .series {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 2rem;
    }

    .imagem-tamanho {
        max-width: 100%;
    }

    .banner-filmes p, .banner-series p {
        font-size: 0.85rem; 
        margin-bottom: 0.2rem;
    }

    .data-filme {
        font-size: 0.75rem;
    }
}