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

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

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

li {
    display: grid;
    grid-column: span 2;
    /* 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: 50px;
}

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

.container {
    max-width: 1200px;
}

/* 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;
}


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

/* 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 {
    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;
}

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

}



/* Benvenuto */
.welcome__text {
    grid-column: 1/9;
}

.welcome__text h4 {
    grid-column: 1/9;
    font-size: 3.5em;
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
}

.welcome__text h3 {
    grid-column: 1/9;
    font-size: 1.6em;
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
    margin-bottom: 15px;
}

.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;
}

.welcome__text p {
    grid-column: 1/9;
    font-size: 1.2em;
    margin-bottom: 65px;
    margin-top: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}




.welcome__link {
    margin-top: 50px;
    margin-bottom: 50px;
}

a {
    text-decoration: none;
    margin: 10px;
}

.welcome__link a {
    grid-column: 1/9;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4em;
    color: var(--primary);
    width: fit-content;
    text-decoration: none;
    padding: 15px;
    border: solid 2px black;
    border-radius: 17px;
}

.welcome__link a:hover {
    transform: scale(1.1);
    transition: 0.3s;
    border: solid 2px var(--accent);
}

.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__About 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;
}

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

/* SKILLS */

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

#skills img {
    width: 65px;
}

#skills ul {
    display: grid;
    gap: 30px;
    grid-column: 1/9;
}

#skills img {
    grid-column: span 2;
    text-align: center;
    border: 4px solid var(--secondary);
    /* padding: 15px;
    margin: 10px;
    border-radius: 50px */
}

.skills__app {
    display: grid;
    grid-column: span 4;
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 5px;
    margin-bottom: 5px;
    align-items: center;
}


/* 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 {
        grid-column: 1/9;
    }

    #freccia {
        position: fixed;
        top: 15px;
        left: 15px;
    }

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


    /* SKILLS */

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

    #skills img {
        width: 65px;
        display: block;
        padding: 40px;
    }

    .skills__app {
        display: grid;
        grid-column: span 2;
        max-width: 100%;
        position: relative;
        z-index: 1;
        margin-top: 5px;
        margin-bottom: 5px;
        align-items: center;
    }


    /* 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 */
    .welcome__text {
        grid-column: 1/9;
    }

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

    #freccia {
        position: fixed;
        top: 15px;
        left: 15px;
    }

    /* 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);

    } */



}