/* reset */

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* utility */
.res {
    width: 100%;
    max-width: 290px;
}

.container {
    max-width: 1200px;

}

:root {
    /* Tavolozza colore */
    --primary: #84754e;
    --light: #fff;
    --accent: #d6be6c;
    --dark: #000;
    /* Animazioni micro */
    --micro: 0.2s cubic-bezier(1, .99, .01, 0);
}

/* .lexend {
    font-family: "Lexend", sans-serif;
    font-style: normal;
} */



/* .montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
} */

.example {
    font-family: "bd-orange-variable", sans-serif;
    font-variation-settings: 'wght' 400;
}

nav {
    max-height: 300px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-gap: 10px;
    padding: 10px 20px;
}



.logo {
    grid-column: 5/6;
    place-self: center;
    justify-self: center;
    align-items: center;
    justify-content: center;
}



.logo img {
    width: 100%;
    min-width: 80px;
    padding-left: 15px;
}

.contacs {
    grid-column: 9/10;
    place-self: center;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacs i {
    color: var(--accent);
    font-size: 30px;
}

.contacs i:hover {
    color: var(--primary);
    transition: 0.5s;
}

.linkendin {
    margin-left: 10px;
}

button {
    grid-column: 1/10;
    place-self: center;
    justify-self: center;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--light);
    font-family: "Montserrat", sans-serif;
    background-color: var(--accent);
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    padding: 10px;
    margin: 8px 4px;
    border-radius: 20px;
    cursor: pointer;
}



.site-nav {
    position: fixed;
    height: 50px;
    z-index: 2;
}

.site-nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    font-family: "Lexend", sans-serif;
    font-size: 200%;

}

.header__wrapper {
    height: 60px;
    color: var(--light);

}

.site-nav__menu a:hover {
    color: var(--primary);
    transition: 0.5s;
}


.site-nav__menu a.active {
    color: var(--accent);


}

.open .site-nav__menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url(../img/texture.png);
    max-height: 100%;
    width: 100%;
    height: 100vh;
    animation: openPanel 0.5s;
    transition: 0.5s;
    z-index: 1;
}

.site-nav__menu a {
    font-size: var(--h3-font-size);
    color: #fff;
    display: grid;
    grid-column: 5/6;
    margin-top: 20px;

}


.site-nav__hamburger {
    cursor: pointer;
    grid-column: 1/2;
    justify-self: center;
    place-self: center;
    text-align: center;
    z-index: 1;
}

.icon-hamburger {
    cursor: pointer;
    height: 20px;
    width: 30px;
    position: relative;
    z-index: 3;
}

.icon-hamburger span {
    background: var(--accent);
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: var(--micro);
    z-index: 3;
}

.icon-hamburger span:nth-child(1) {
    top: 0;
    width: 100%;
    opacity: 1;
}

.icon-hamburger span:nth-child(2),
.icon-hamburger span:nth-child(3) {
    top: 8px;
    width: 80%;
}

.icon-hamburger span:nth-child(4) {
    top: 16px;
    width: 100%;
    opacity: 1;
}


/* Hamburger in open */

.open .icon-hamburger {
    transform: rotate(180deg);
    transition: var(--micro);
}

.open .icon-hamburger span:nth-child(1),
.open .icon-hamburger span:nth-child(4) {
    width: 0;
    opacity: 0;
}

.open .icon-hamburger span:nth-child(2) {
    transform: rotate(45deg);
    width: 100%;
}

.open .icon-hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 100%;
}



/* -------------------------------------------------------------------------------- */
/* ! portfolio */
/* -------------------------------------------------------------------------------- */



.portfolio__projects a {
    grid-column: 1/10;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.portfolio__projects a * {
    max-width: 100%;
    position: relative;
}

.portfolio__projects {
    margin-top: 250px;
}

.img {
    border-radius: 50px;

}

.img:hover {
    -ms-transform: scale(0.95);
    /* IE 9 */
    -webkit-transform: scale(0.95);
    /* Safari 3-8 */
    transform: scale(0.95);
    transition: 0.5s;
}

h1 {
    margin-top: 20px;
    grid-column: 5/6;
    display: flex;
    flex-direction: column;
    text-align: center;
    place-self: center;
    font-family: "Lexend", sans-serif;
    color: var(--primary);
}

p {
    grid-column: 1/10;
    display: flex;
    flex-direction: column;
    text-align: center;
    place-self: center;
    font-family: "Montserrat", sans-serif;
    color: var(--primary);
    font-size: 15px;
    /* margin-bottom: 20px; */
}

/* arrow */
.arrow {
    margin-top: 70px;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.arrow span {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid var(--accent);
    border-right: 5px solid var(--accent);
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll 2s infinite
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;

    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
}

/* footer */

footer {
    bottom: 0;
    left: 0;
    padding: 10px;
    text-align: center;
    background-color: var(--accent);
}

/* credits */
.credits {
    grid-column: 5/6;
    place-self: center;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;

}

.credits p {
    font-weight: 400px;
    color: var(--dark);
}



/* -------------------------------------------------------------------------------- */
/* !about  */
/* -------------------------------------------------------------------------------- */
.about__portfolio a {
    grid-column: 1/10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__portfolio a * {
    max-width: 100%;
    position: relative;
}

.about__portfolio img {
    border-radius: 20px;
}

.about__portfolio h1 {
    margin-top: 60px;
    grid-column: 1/10;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: "Lexend", sans-serif;
    font-size: 50px;
    color: var(--primary);
}


/* -------------------------------------------------------------------------------- */
/* ! dispositivi large */
/* -------------------------------------------------------------------------------- */

@media (min-width: 992px) {


    .logo {
        grid-column: 5/6;
        place-self: center;
        justify-self: center;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        width: 80%;
        min-width: 80px;
        padding-left: 20px;
    }


    .header__wrapper {
        height: 80px;
        color: var(--light);
    }

    p {
        font-family: "Montserrat", sans-serif;
    }



    .portfolio__projects {
        margin-top: 350px;
    }

    .portfolio__projects a {
        grid-column: span 3;
    }

    .portfolio__projects a * {
        min-width: 100%;

    }

    .about__portfolio .leading {
        grid-column: 3/8;
        display: flex;
        flex-direction: column;
        text-align: center;
        place-self: center;
    }

    #about h1 {
        margin-top: 200px;
    }

    .about__portfolio h1 {
        grid-column: 1/10;
        display: flex;
        flex-direction: column;
        text-align: left;
        font-family: "Montserrat", sans-serif;
        font-size: 50px;
        color: var(--primary);
    }

    .about__portfolio p {
        grid-column: 2/9;
        display: flex;
        flex-direction: column;
        text-align: left;
        font-family: "Montserrat", sans-serif;
        font-size: 35px;
        color: var(--primary);
    }

    .about__portfolio .leading {
        grid-column: 2/9;

    }

    button {
        grid-column: 1/10;
        place-self: center;
        justify-self: center;
        align-items: center;
        justify-content: center;
        border: none;
        color: var(--light);
        font-family: "Montserrat", sans-serif;
        background-color: var(--accent);
        text-align: center;
        text-decoration: none;
        font-size: 25px;
        padding: 20px;
        margin: 8px 4px;
        border-radius: 30px;
        cursor: pointer;

    }

    button:hover {
        background-color: var(--light);
        color: var(--accent);
        transition: 0.5s;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! arrow */
    /* -------------------------------------------------------------------------------- */
    .arrow {
        margin-top: 100px;
        padding: 50px;
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);

    }

    .arrow span {
        display: block;
        width: 30px;
        height: 30px;
        border-bottom: 5px solid var(--accent);
        border-right: 5px solid var(--accent);
        transform: rotate(45deg);
        margin: -10px;
        animation: scroll 2s infinite
    }

    .arrow span:nth-child(2) {
        animation-delay: -0.2s;
    }

    .arrow span:nth-child(3) {
        animation-delay: -0.4s;
    }

    @keyframes scroll {
        0% {
            opacity: 0;
            transform: rotate(45deg) translate(-20px, -20px);
        }

        50% {
            opacity: 1;

        }

        100% {
            opacity: 0;
            transform: rotate(45deg) translate(-20px, -20px);
        }
    }

}