/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */
/* Reset */
* {
    margin: 0;
    padding: 0;
}

/* Tavolozza colore */
:root {
    --primary: #000000;
    --light: #ffffff;
    --accent: #20ba01;
}

a {
    text-decoration: none;
    color: var(--primary);
}

li {
    list-style-type: none;
    font-size: 2em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary);
    padding: 10px;
    text-decoration: underline;
    text-align: center;
}

/* li :hover {
        list-style-type: none;
        font-size: 1.5em;
        font-family: 'Montserrat', sans-serif;
        padding: 10px;
        transition: 0.3;
        color: var(--accent);
        font-weight: 700;
        transition: 0.3s;
    } */

/* Utlity */

.clippy {
    border-radius: 30px;
}

.res {
    width: 100%;
    max-width: 370px;
}

.container {
    max-width: 1200px;
}

/* Tipografia */

/* Tavolozza colore */

/* Animazioni */

@keyframes openPanel {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Grid per Mobile first */
/* -------------------------------------------------------------------------------- */
/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    padding: 10px 20px;
}

/* NAVIGAZIONE */

.site-nav h1 {
    font-size: 3.5em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    display: flex;
    align-items: flex-end;
}

.site-nav__menu {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 1;
}

.open .site-nav__menu {
    display: flex;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-height: 100%;
    width: 100%;
    height: 100vh;
    background-color: rgb(255, 255, 255);
    animation: openPanel 0.6s;
    z-index: 2;
}

.site-nav__hamburger {
    /* position: fixed;
    top: 5px;
    right: 15px; */
    cursor: pointer;
    grid-column: 8/9;
    justify-self: end;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    font-size: 2.3em;
    margin-top: 20px;
}


/* DROPDOWN MENU */

.dropdown {
    display: inline-block;
}

.dropdown button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2em;
    color: var(--primary);
    background-color: var(--light);
    padding: 10px 15px;
    text-decoration: underline var(--primary);
    text-align: center;
    border: none;
    cursor: pointer;
}

.dropdown a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    color: var(--primary);
    text-decoration: none;
    padding: 15px 28px;
    text-align: center;
}

.dropdown .content {
    display: none;
    position: absolute;
    background-color: var(--light);
    min-width: 100px;
    box-shadow: 2px 2px 5px hsla(0, 0%, 0%, 0.8);
}

.dropdown:hover .content {
    display: block;
}

.dropdown:hover .button {
    background-color: hsl(0, 0, 70%);
    transform: scale(1.1);
    transition: 0.3s;
    text-decoration: underline var(--accent);
}

.dropdown a:hover {
    background-color: hsl(0, 0, 90%);
    color: var(--accent);

}


#freccia {
    display: grid;
    grid-column: 1/9;
    position: fixed;
    left: 15px;

}

/* Benvenuto */

.welcome__text h4 {
    grid-column: 1/9;
    font-size: 2.7em;
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
    line-height: 0.9em;
    margin-top: 60px;
}

.welcome__text h5 {
    grid-column: 1/9;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.2em;
}

/* GEMME */
.Gemme__text h5 {
    grid-column: 1/9;
    font-size: 2em;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 15px;
    line-height: 1em;
}

.Gemme__text p {
    grid-column: 1/9;
    font-size: 1.2em;
    margin-bottom: 45px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
}

.Gemme__text img {
    grid-column: 1/9;
    min-width: 340px;
    max-width: 340px;
    border: solid 2px var(--primary);
    align-items: center;
}

.res {
    width: 100%;
    max-width: 370px;
    margin-top: 45px;
}

/* LINK */

.welcome__link {
    grid-column: 1/3;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4em;
    color: var(--primary);
    width: fit-content;
    text-decoration: underline;
}

.welcome__link:hover {
    color: var(--accent);
    transform: scale(1.1);
    transition: 0.3s;
}

.portfolio__link a {
    grid-column: 1/3;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4em;
    color: var(--primary);
    width: fit-content;
    text-decoration: underline;
}

.portfolio__link a:hover {
    text-decoration: underline var(--accent);
    transform: scale(1.1);
    transition: 0.3s;
}

/* BANDE DI SCORRIMENTO */

.event__testo__latest {
    border-top: solid 2px black;
    border-bottom: solid 2px black;
    text-align: center;
    background-color: #fff;
    margin-top: 40px;
    margin-bottom: 40px;
}

#scorrimento__Gemme p {
    background-color: white;
    font-family: "montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: -8px;
    margin-top: 8px;
}

#scorrimento__Avanziamo p {
    background-color: white;
    font-family: "montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: -8px;
    margin-top: 8px;
}

#scorrimento__Scape p {
    background-color: white;
    font-family: "montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: -8px;
    margin-top: 8px;
}

#scorrimento__Gds p {
    background-color: white;
    font-family: "montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: -8px;
    margin-top: 8px;
}

#scorrimento__SanCarlo p {
    background-color: white;
    font-family: "montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: -8px;
    margin-top: 8px;
}

#scorrimento__Contacts p {
    background-color: white;
    font-family: "montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: -8px;
    margin-top: 8px;
}

/* PORTFOLIO */

#portfolio {
    position: relative;
    /* background: black url(../img/IMG_20220211_135512_384.jpg); */
    margin-top: 45px;
}

#portfolio::before {
    display: grid;
    grid-column: span 2;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    opacity: 0.7;
}

#portfolio h2 {
    z-index: 1;
    grid-column: 1/9;
    margin-top: 45px;
    margin-bottom: 20px;
    grid-column: span 2;
    font-size: 2.5em;
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
}

#portfolio a {
    text-align: center;
    /* background: #ccc; */
    padding: 12px;
    /* border: 1px solid #000; */
}

.portfolio__projects a * {
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 5px;
    margin-bottom: 5px;
    align-items: center;
}

#portfolio a {
    display: grid;
    /* grid-column: span 3; */
    text-align: center;
    /* background: #ccc; */
    padding: 12px;
    /* border: 1px solid #000; */
}

.portfolio__projects a * {
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 5px;
    margin-bottom: 5px;
    align-items: center;

}

.portfolio__projects a:nth-child(1) {
    grid-column: 1/9;

}

.portfolio__projects a:nth-child(2) {
    grid-column: 1/9;

}

.portfolio__projects a:nth-child(3) {
    grid-column: 1/9;

}

.portfolio__projects a:nth-child(4) {
    grid-column: 1/9;

}


.portfolio__projects h3 {
    border: 2px solid whitesmoke;
    background: black;
    color: whitesmoke;
    padding: 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
}

/* FOOTER */

.footer-nav ul {
    flex-direction: column;
}

.footer-nav ul li {
    width: 0 auto;
    text-align: center;
    margin: 10px;
}

.social__icons {
    display: flex;
    justify-content: center;
}

.social__icons a {
    text-decoration: none;
    padding: 10px;
    border-color: var(--primary);
    margin: 10px;
    border-radius: 50px;
}

.social__icons a i {
    font-size: 2em;
    color: var(--primary);
    opacity: 0, 9;
}

hr {
    color: var(--primary);
    border: solid 0.5px;
}

.footer__bottom {
    color: var(--light);
    padding: 20px;
    text-align: center;
}

.footer__bottom p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.6em;
    color: var(--primary);
    margin-top: 20px;
}


.footer-nav ul li a {
    color: var(--primary);
    margin: 20px;
    text-decoration: none;
    font-size: 0.8em;
}


/* -------------------------------------------------------------------------------- */
/* ! METTO TUTTO CIO' CHE E' BIG */
/* -------------------------------------------------------------------------------- */

@media (min-width: 768px) {

    /* Welcome */
    .welcome__text h4 {
        grid-column: 1/9;
        font-size: 4em;
        font-family: 'Montserrat', sans-serif;
        font-weight: bolder;
        line-height: 0.9em;
        margin-top: 90px;
    }

    .welcome__text h5 {
        grid-column: 1/9;
        font-size: 2em;
        margin-bottom: 20px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        margin-top: 15px;
        line-height: 1em;
    }

    /* GEMME */
    .Gemme__text h5 {
        grid-column: 1/9;
        font-size: 2.5em;
        margin-bottom: 10px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        margin-top: 15px;
        line-height: 1em;
    }

    .Gemme__text p {
        grid-column: 1/4;
        font-size: 1.1em;
        font-family: 'Montserrat', sans-serif;
        font-weight: 200;
    }

    .Gemme__text img {
        grid-column: 5/9;
        max-width: 100%;
        border: solid 2px var(--primary);
        align-items: center;
    }

    /* Portfolio */
    #portfolio a {
        display: grid;
        /* grid-column: span 3; */
        text-align: center;
        /* background: #ccc; */
        padding: 12px;
        /* border: 1px solid #000; */
    }

    .portfolio__projects a * {
        max-width: 100%;
        position: relative;
        z-index: 1;
        margin-top: 5px;
        margin-bottom: 5px;
        align-items: center;

    }

    .portfolio__projects a:nth-child(1) {
        grid-column: 1/5;
        grid-row: 1/2;
    }



    .portfolio__projects a:nth-child(2) {
        grid-column: 5/9;
        grid-row: 1/4;
    }



    .portfolio__projects a:nth-child(3) {
        grid-column: 1/5;
        grid-row: 1/3;
    }



    .portfolio__projects a:nth-child(4) {
        grid-column: 1/9;
        grid-row: 3/4;
    }

    /* FOOTER */
    footer {
        background-color: var(--light);
    }

    .footer-nav ul {
        flex-direction: initial;
    }

    .footer__container {
        margin: 0 auto;
        padding: 70px 30px 20px;
    }

    .social__icons {
        display: flex;
        justify-content: center;
    }

    .social__icons a {
        text-decoration: none;
        padding: 10px;
        border-color: var(--primary);
        margin: 10px;
        border-radius: 50px;
    }

    .social__icons a i {
        font-size: 3em;
        color: var(--primary);
        margin-inline: 50px;
    }

    .social__icons a:hover {
        background-color: var(--light);
        transition: 0.5s;
    }

    .social__icons a:hover i {
        scale: 1.2;
        transition: 0.5s;
    }

    .footer-nav {
        margin: 30px 0;
    }

    .footer-nav ul {
        display: flex;
        justify-content: center;
        list-style-type: none;
    }

    .footer-nav ul li a {
        color: var(--primary);
        margin: 20px;
        text-decoration: none;
        font-size: 1em;
        transition: 0.5;
    }

    .footer-nav ul li a:hover {
        transform: scale(1.1);
        color: var(--accent);
        transition: 0.3s;
    }

    .footer__bottom {
        color: var(--light);
        padding: 20px;
        text-align: center;
    }

    .footer__bottom p {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 1em;
        color: var(--primary);
    }
}

/* -------------------------------------------------------------------------------- */
/* ! ISTRUZIONI PER LARGE */
/* -------------------------------------------------------------------------------- */

@media(min-width:992px) {
    .grid {
        max-width: 1060px;
        margin: 0 auto;
    }

    .site-nav__menu {
        all: unset;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
        align-items: center;
        width: max-content;
        grid-column: 6/9;
        gap: 25px;
    }

    .site-nav__menu li {
        font-size: 1.5em;
        display: inline-block;
    }

    .site-nav__menu li:hover {
        transform: scale(1.1);
        color: var(--accent);
        transition: 0.3s;
    }

    .site-nav__hamburger {
        display: none;
    }

    .welcome__img {
        grid-column: 1/9;
        width: 100%;

    }


    /* DROPDOWN MENU */

    .dropdown {
        display: inline-block;
    }

    .dropdown button {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 1.5em;
        color: var(--primary);
        background-color: var(--light);
        padding: 10px 15px;
        text-decoration: underline var(--primary);
        text-align: center;
        border: none;
        cursor: pointer;
    }

    .dropdown a {
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 1.1em;
        color: var(--primary);
        text-decoration: none;
        padding: 5px 10px;
        text-align: center;
    }

    .dropdown .content {
        display: none;
        position: absolute;
        background-color: var(--light);
        min-width: 100px;
        box-shadow: 2px 2px 5px hsla(0, 0%, 0%, 0.8);
    }

    .dropdown:hover .content {
        display: block;
    }

    .dropdown:hover .button {
        background-color: hsl(0, 0, 70%);
        transform: scale(1.1);
        transition: 0.3s;
        text-decoration: underline var(--accent);
    }

    .dropdown a:hover {
        background-color: hsl(0, 0, 90%);
        color: var(--accent);

    }




    /* PORTFOLIO */

    #portfolio a {
        display: grid;
        text-align: center;
        padding: 12px;
    }

    .portfolio__projects a * {
        max-width: 100%;
        position: relative;
        z-index: 1;
        margin-top: 5px;
        margin-bottom: 5px;
        align-items: center;

    }

    .portfolio__projects a:nth-child(1) {
        grid-column: 1/9;
        grid-row: 1/2;
    }

    .portfolio__projects a:nth-child(2) {
        grid-column: 1/9;
        grid-row: 2/3;
    }

    .portfolio__projects a:nth-child(3) {
        grid-column: 1/9;
        grid-row: 3/4;
    }

    a {
        margin-top: 25px;
        line-height: 1.2em;
        margin-bottom: 15px;
    }


    /* skills */
    #skills li {
        grid-column: span 2;
    }

    /* Welcome */
    .welcome__text {
        grid-column: 1/6;
    }

    .welcome__img {
        grid-column: 6/9;
        width: max-content;
    }

    .Gemme__text img {
        grid-column: 5/9;
        width: 100%;
        border: solid 2px var(--primary);
        align-items: first baseline;
    }

}