@import "../core/templates/gaidodev/css/dynamic-headline.css";

:root {
    --invasao-section: 3rem;
}

#primeira-dobra {
    height: calc(100vh);
    background: url("01.jpg") no-repeat rgba(0, 0, 0, 0.8);
    background-blend-mode: overlay;
    background-size: cover;
    display: flex;
    flex-flow: column nowrap;
    padding-bottom: calc(var(--invasao-section) + var(--altura-header));
}

#motivacional {
    margin-top: auto;
}

#motivacional p {
    color: white;
    font-size: 1.125rem;
    margin: 1rem;
    width: 200px;
}


@media screen and (min-width: 412px) {
    #motivacional p {
        font-size: 1.5rem;
        width: 300px;
    }
}

@media screen and (min-width: 1366px) {
    #primeira-dobra {
        height: calc(55vh);
        background: url("02.jpg") no-repeat rgba(0, 0, 0, 0.8);
        background-blend-mode: overlay;
        background-size: cover;
    }
}

@media screen and (min-width: 1366px) {
    #primeira-dobra {
        height: calc(59vh);
    }
}

main section {
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
    padding: 1.5rem 1rem 4rem 1rem;
    position: relative;
    margin-top: calc(var(--invasao-section) * -1);
}

#primeira-dobra {
    padding-top: 5rem;
}

#headline {
    padding: 1rem;
}

#headline :is(p, span) {
    font-size: 3.75rem;
    letter-spacing: -4px;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    color: white;
}


@media screen and (min-width: 1366px) {
    #headline :is(p, span) {
        font-size: 5rem;
    }
}

#comecar {
    color: white;
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    #comecar {
        color: black;
        background: white;
        padding: 0.5rem 1rem;
        border-radius: 1.5rem;
        text-decoration: none;
        font-weight: bold;
    }

    #comecar:hover {
        background-color: #d4d4d8;
    }
}

.call-to-action {
    display: flex;
    justify-content: center;
    margin: 1rem;
}

.call-to-action a {
    background: white;
    color: black;
    font-weight: bold;
    padding: 1rem;
    border-radius: 2rem;
    flex: 1 1 auto;
    text-align: center;
}

.call-to-action a:hover {
    background-color: #d4d4d8;
    color: black;
}

@media screen and (min-width: 768px) {

    .call-to-action {
        justify-content: flex-start;
    }

    .call-to-action a {
        flex: 0 1 300px;
    }
}

@media screen and (min-width: 1366px) {
    .largura-maxima {
        width: 1300px;
        margin: auto;
    }

    body > header {
        width: 1300px;
        margin: auto;
    }
}

#tablist span {
    font-family: "Raleway", sans-serif;
    font-size: 2rem;
}

@media screen and (min-width: 1366px) {
    #tablist span {
        font-size: 2.75rem;
    }
}

.todo-mundo h3 {
    margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
    .todo-mundo {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }

    .todo-mundo > * {
        flex: 0 1 calc(50% - 0.5rem);
        font-family: "Raleway", sans-serif;
    }

    .todo-mundo h3 {
        margin-bottom: 0;
    }

    .todo-mundo :is(p, b, a) {
        font-size: 1.125rem;
    }
}

#carrossel {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    align-items: stretch;
    scroll-snap-type: x mandatory;
}

#carrossel .cavalo {
    flex: 0 0 calc(100% / 1 - 4rem);
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    padding: 0 0.5rem;
}

#carrossel .cavalo img {
    width: auto;
    height: auto;
    max-width: 100%;
    aspect-ratio: 285/186;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

#carrossel .cavalo .titulo {
    margin: 0.5rem 0;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
}

@media screen and (min-width: 768px) {
    #carrossel {
        height: auto;
    }
}

@media screen and (min-width: 1024px) {
    #carrossel .cavalo {
        flex: 0 0 calc(100% / 3);
    }

    #carrossel .cavalo img {
        aspect-ratio: 379/300;
    }
}

.text-pretty {
    color: rgb(48 222 238);
    font-size: 1.25rem;
    margin: 1rem 0;
    text-wrap: pretty;
}

.greens {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.green-card {
    background: rgb(6, 26, 28);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid rgb(30, 44, 49);
    position: relative;
    flex: 1 1 100%;
}

.luz {
    background-image: radial-gradient(#3e4646, #0f3335 40%, #061a1c, #061a1c);
}

video, .green-card img {
    max-height: calc(100vh - var(--altura-header));
    max-width: 100%;
    display: block;
    margin: auto;
}

.green-card img.icone {
    width: 128px;
}

.green-card .luz:has(img.icone) {
    padding: 3rem 0;
}


.green-card p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media screen and (min-width: 1366px) {

    video, .green-card img {
        max-height: calc(2 * 100vh / 3);
        max-width: 100%;
    }

    .green-card.d2 {
        flex: 0 1 calc(100% / 2 - 0.5rem);
    }

    .green-card.d3 {
        flex: 0 1 calc(100% / 3 - 0.675rem);
    }




}
