@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;800&display=swap');

:root {
    --gap: 24px;
    --corner: 8px;
    --max-width: 1280px;

    --blue: #0c3451;
    --blue-10: #0c34511e;
    --blue-dark: #141f39;

    --green: #bac934;
    --green-dark: #78b337;

    --cyan: #00aec1;

    --black: #171c2b;
    --grey: #41434a;
    --white: #ffffff;

    --verde-claro: 221, 223, 75;
    --verde-escuro: 119, 178, 56;
    --ciano: 0, 174, 193;
    --ciano-claro: 77, 189, 198;
    --ciano-escuro: 0, 127, 152;

    --azul-claro: 13, 69, 116;

}

* {
    box-sizing: border-box;
}

html {
    scrollbar-color: smooth;
}

body {
    position: relative;
    height: 100%;
    background-image: url("img/materiais/materiais_bg.webp");
    background-position: top;
    background-size: cover;
    font-family: 'Montserrat', sans-serif;
    color: var(--grey);
    font-size: 18px;
    background-attachment: fixed;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

img {
    max-width: 100%;
}

section {
    padding: calc(2*(var(--gap))) 0px;
}

section.rounded {
    border-radius: calc(2*var(--gap));
}

section.blue-dark {
    background-color: var(--blue-dark);
    color: var(--white);
}

.container {
    max-width: var(--max-width);
    display: flex;
    gap: var(--gap);
    margin: auto;
    padding: 0 var(--gap);
}

.col {
    display: flex;
    gap: var(--gap);
    flex-direction: column;
    width: 100%;
    justify-content: center;
    padding: var(--gap) 0;
}

.col.ta-right {
    text-align: right;
    align-items: end;
}

.col.ta-center {
    text-align: center;
    align-items: center;
}

.col.va-top {
    justify-content: start;
}

@media screen and (max-width:640px) {
    .container {
        flex-direction: column;
    }

    .col {
        align-items: center;
        text-align: center;
    }
}

#top {
    background: linear-gradient(180deg, var(--blue-10) 0%, var(--white));
    margin-top: 0;
    padding-top: 24px;
}

#top h1 {
    font-size: 3em;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: var(--gap);
    color: var(--blue-dark)
}

#top h4 {
    font-weight: 400;
    font-size: 1.5em;
    margin: 0;
}

#top .form {
    background-color: var(--white);
    padding: var(--gap);
    border-radius: 8px;
    box-shadow: 0 6px 12px 0 #0003;
}

#top .image {
    position: relative;
    width: 75%;
    aspect-ratio: 1;
}

#top .image img {
    position: absolute;
    z-index: 2;
    max-width: 100%;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-width:640px) {
    #top header img {
        max-width: 128px;
    }

    #top header .container {
        height: fit-content;
    }

    #top nav ul {
        padding: 0;
        gap: 0;
    }
}

#top .image .circle {
    position: absolute;
    z-index: 1;
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    aspect-ratio: 1/1;
    background: linear-gradient(45deg, var(--green-dark) 0%, var(--white) 80%);
}

.container.grid-3col {
    display: grid;
    grid-gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 24px;
}

.item-card {
    background-color: #ffffff33;
    padding: var(--gap);
    border-radius: var(--corner);
    display: flex;
    flex-direction: column;
    grid-gap: var(--gap);
    align-items: center;
    text-align: center;
}

.item-card h3 {
    margin: 0px;
}

.badge {
    font-size: 10px;
    font-weight: bolder;
    padding: 2px 8px;
    border-radius: 8px;
    display: block;
}

.badge.green {
    color: #ffffff;
    background-color: rgb(var(--verde));
}

.ebook_container {
    position: relative;
}

.ebook_container span {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 50%;
    aspect-ratio: 1;
    display: block;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 160px;
    max-height: 160px;
}

.ebook_img {
    max-width: 180px;
    height: auto;
    position: relative;
    z-index: 2;
}

.content-button {
    display: block;
    margin: auto;
    padding: 8px 24px;
    border-radius: var(--corner);
    color: #ffffff;
    background-color: rgb(var(--verde));
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
}

header {
    width: 100%;
}

header .container {
    height: 100%;
    justify-content: space-between;
    padding: 0;
}


.header-logo {
    margin: auto 0;
    height: 100%;
}

.header-bg {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    background: #57ca63;
    background: -moz-linear-gradient(-45deg, #57ca63 0%, #05abe0 100%);
    background: -webkit-linear-gradient(-45deg, #57ca63 0%, #05abe0 100%);
    background: linear-gradient(135deg, #57ca63 0%, #05abe0 100%);
    z-index: -1;
}

@media screen and (max-width:832px) {
    .container.col-2 {
        flex-direction: column;
        text-align: center;
    }

    #top img {
        margin: auto;
        max-width: 100%;
    }

    #top h1 {
        font-size: 2em;
    }

    .container.grid-3col {
        justify-content: center;
    }
}

header .container {
    max-width: var(--max-width);
    width: 100%;
    background-color: var(--blue-dark);
    border-radius: 40px;
    height: 80px;
    padding: 8px 24px;
    margin: var(--gap) auto;
    display: flex;
    justify-content: space-between;
}

nav {}

nav ul {
    list-style: none;
    text-indent: 0;
    color: var(--white);
    height: 100%;
    margin: 0;
    display: flex;
    gap: calc(var(--gap)/2);
}

nav ul li {
    height: 100%;
}

nav ul li a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: var(--gap);
    padding-right: var(--gap);
    width: fit-content;
    border-radius: 36px;
    transition: all .15s ease-in-out;
}

nav ul li a:hover {
    background-color: var(--cyan);
    transition: all .15s ease-in-out;
}

.green-cta {
    color: var(--blue-dark);
    background-color: var(--green);
    padding: calc(2*var(--gap)) var(--gap);
    border-radius: 80px;
    margin-bottom: calc(2*var(--gap));
    width: 100%;
    text-align: center;
}

.icon.large {
    background-color: var(--white);
    width: 128px;
    height: 128px;
    border-radius: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: var(--gap);
}

.icon.large i {
    color: var(--blue-dark);
    font-size: 64px;
}

.post-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap);
}

.post-item {
    background-color: var(--white);
    box-shadow: 0 3px 6px 0px #0003;
    border-radius: 24px;
    overflow: hidden;
}

.post-item .image {
    width: 100%;
    aspect-ratio: 9/6;
    overflow: hidden;
}

.post-item .image .image-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: all .3s ease-in-out;
}

.post-item:hover .image .image-container {
    transform: scale(1.1);
    transition: all .3s ease-in-out;
}

.post-item .info {
    padding: 24px;
    font-display: flex;
    flex-direction: column;
    justify-content: start;
}

.post-item h4 {
    margin: 0;
    font-weight: 400;
}

#content {
    background: linear-gradient(0deg, var(--blue-10) 0%, var(--white));
}

footer {
    color: var(--white);
    background-color: var(--blue-dark);
    padding: calc(2*var(--gap)) 0;
}

footer img {
    max-width: 256px;
}

.socialmedia {
    display: flex;
    gap: 12px
}

.socialmedia i {
    font-size: 32px;
}