
@font-face {
    font-family: multicolore;
    src: url(fonts/multicolore.otf);
}

@font-face {
    font-family: EXO;
    src: url(fonts/Exo-VariableFont_wght.ttf);
}

@font-face {
    font-family: openSans;
    src: url(fonts/OpenSans-VariableFont_wdth\,wght.ttf);
}


@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


html {
    scroll-behavior: smooth;
    height: 100%;
}

p{
    font-family: openSans;
}

body {
    margin: 0;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

#progress{
    background-color: #17AC4B;
    position: fixed;
    bottom: 20px;
    right: 10px;
    height: 70px;
    width: 70px;
    display: none;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0,2);
    transition: ease-in-out all 0.15s;
    transform: scale(1);   
    cursor: pointer;
    z-index: 999;
}

#progress:active{
    transform: scale(0.8);
}

#progress-value{
    font-family: 'Poppins', sans-serif;
    display: block;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    background-color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    color: #001a2e;
}   

header {
    padding: 1em;
}

section {
    margin: auto 90px auto 90px;
    padding: 1em;
    overflow: hidden;
}

header {
    background-color: #17AC4B;
    width: 100%;
    position: relative;
    font-family: multicolore;
    z-index: 10;
    box-shadow: 0px 0px 15px 2px black;
}

h1 {
    text-align: center;
    font-size: x-large;
    font-family: multicolore;
}

header.img {
    display: flex;
}


nav {
    margin-left: 250px;
    overflow: hidden;
    padding: 1em;
    display: inline-block;
}

nav a {
    font-family: multicolore;
    position: relative;
    border-bottom: 2px;
    color: white;
    font-weight: bolder;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-size: 17px;
}


nav a:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
}

nav a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom;
    transition: transform 0.2s ease-out;
    cursor: pointer;
}

.toggle-btn-menu{
    top: 40px;
    right: 65px;
    display: none;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all .5s ease-in-out;
}

.toggle-btn{
    height: 10px;
    right: 6px;
    width: 40px;
    height: 4px;
    position: absolute;
    background: white;
    border-radius: 5px;
    transition: all .5s ease-in-out;
}

.toggle-btn::before,
.toggle-btn::after{
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: white;
    border-radius: 5px;
    transition: all .5s ease-in-out;
}

.toggle-btn::before{
    transform: translateY(-14px);
}

.toggle-btn::after{
    transform: translateY(14px);
}

.toggle-btn-menu.open .toggle-btn{
    transform: translateX(-50px);
    background: transparent; 
}

.toggle-btn-menu.open .toggle-btn::before{
    transform: rotate(45deg) translate(35px, -35px);
}

.toggle-btn-menu.open .toggle-btn::after{
    transform: rotate(-45deg) translate(35px, 35px);
}

.cards {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, min-content));
    gap: 30px;
    justify-content: center;
    padding: 0 1rem;
}


.card {
    background-color: lightgray;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    height: 350px;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img{
    width: 250px;
    height: 140px;
    margin-top: -7px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    scale: 1.125;
}

.content{
    margin-bottom: 40px;
    font-family: openSans;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-family: EXO;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.2s;
}

.overlay > *{
    transform: translateY(20px);
    transition: transform 0.2s;
}

.overlay:hover{
    opacity: 1;
}

.overlay:hover > *{
    transform: translateY(0);
}

.overlay--blur{
    backdrop-filter: blur(2px);
}

.title{
    font-size: 2em;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.title::after{
    content: '';
    position: absolute;
    width: 70%;
    transform: scaleX(0);
    height: 2px;
    bottom: -10px;
    left: 18%;
    background-color: white;
}

.title:hover:after {
    transform: scaleX(1);
    transform-origin: bottom;
    transition: transform 0.2s ease-out;
    cursor: pointer;
}

.author{
    position: relative;
    margin-top: 25px;
    font-size: 14px;
    text-align: center;
    font-style: italic;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3);
}

.grid-container-contact {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-areas:
    "col1 col2 col3"
    "links links links";
    grid-gap: 30px;
    padding: 1em;
    justify-content: center;
}

.links{
    grid-area: links;
    width: 94%;
}

.links a{
    color: black;
    text-decoration: none;
    padding: 1em;
}   

.grid-container-contact>.container-contact {
    text-align: center;
    padding: 1em;
    font-size: 17px;
}

.texto-servicos {
    color: rgb(88, 88, 88);
    text-align: center;
    font-size: medium;
}

span {
    color: black;
}


.email:link {
    color: rgb(88, 88, 88);
    text-decoration: none;
}

.email:hover {
    color: green;
    text-decoration: underline;
    cursor: pointer;
}

.email:visited {
    color: rgb(88, 88, 88);
}

.mapa:link {
    color: rgb(88, 88, 88);
    text-decoration: none;
}

.mapa:hover {
    color: green;
    text-decoration: underline;
    cursor: pointer;
}

.mapa:visited {
    color: rgb(88, 88, 88);
}

.mapa:visited:hover {
    color: green;
    cursor: pointer;
}

#contactos1{
    background-color: lightgrey;
    margin: 0;
}

.fade-in {
    opacity: 0;
    transition: opacity 250ms ease-in;
}

.fade-in.appear{
    opacity: 1;
}


h3{
    color: rgb(2, 99, 2);
    font-family: multicolore;
    text-align: center;
    margin-bottom: 60px;
}

hr{
    color: #17AC4B;
    width: 25%;
    margin-bottom: 30px;
}

footer {
    padding: 0.5em;
    background-color: #24242b;
    color: lightgray;
    text-align: center;
    font-size: x-small;
}

.nav-toggle, .nav-toggle-label{
    display: none;
}


@media (max-width: 1200px) {

    nav {
        margin-left: 10px;
        overflow: hidden;
        padding: 1em;
        display: inline-block;
    }

}

@media (max-width: 1000px) {
    nav{
        display: none;
        align-items: center;
    }
    
    nav.active{
        display: flex;
        animation: fadeIn .7s;
    }
    
    nav{
        flex-direction: column;
        margin-top: 10px;
    }

    nav a{
        padding: 0.5rem;
    }

    .toggle-btn{
        display: flex;
        margin-left: 3em;
        cursor: pointer;
    }

    .toggle-btn-menu{
        display: flex;
    }

    .grid-container-contact {
        display: grid;
        width: 95%;
        align-items: center;
        grid-template-columns: 250px 250px 250px;
        grid-template-areas:
        "col1 col2 col3"
        "links links links";
        grid-gap: 50px;
        row-gap: 5px;
        padding: 1em;
        justify-content: center;
    }


    .links{
        width: 100%;
    }

}

@media (max-width: 820px){
    .grid-container-contact {
        display: grid;
        align-items: center;
        grid-template-columns: 300px;
        grid-template-areas:
        "col1" 
        "col2" 
        "col3"
        "links";
        grid-gap: 50px;
        row-gap: 5px;
        padding: 1em;
        justify-content: center;
    }
}

@media (max-width: 500px) {

    nav{
        z-index: 1000;
    }

    nav.active{
        position: relative;
        min-height: 100vh;
    }

    header{
        opacity: 1;
        text-align: left;
    }

    nav a{
        padding: 2rem;
        right: 15px;
    }

    section{
        margin: auto;
        padding: 1em;
    }
}

@media (max-width: 430px) {


    nav a:after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: white;
    }
    
    
    nav a:hover:after {
        transform: scaleX(1);
        transform-origin: bottom;
        transition: transform 0.2s ease-out;
        cursor: pointer;
    }

    section {
        margin: auto;
        padding: 1em;
    }

}

@media (max-width: 330px){
    .grid-container-contact{
        width: 90%;
    }
}