/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
    --header-height: 3rem;

    /*========== Colors ==========*/
    /* Change favorite color */
    --hue-color: 230;
    /*Purple 250 - Green 142 - Blue 230 - Pink 340  green 140*/

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margenes Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;

    /* Animazioni micro */
    --micro: 0.2s cubic-bezier(1, .99, .01, 0);
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */
/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

.res {
    width: 100%;
    max-width: 390px;
    border-radius: 15px;
}

.container {
    max-width: 1200px;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

/* Animazioni */
@keyframes openPanel {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* palete cromatica */



/* -------------------------------------------------------------------------------- */
/* ! Grid per Mobile first */
/* -------------------------------------------------------------------------------- */
/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 20px 20px;
}


/*==================== NAVIGAZIONE ====================*/
.header {
    /* background-color: var(--first-color); */
    background: linear-gradient(170deg,
            hsl(230, 57%, 53%) 0%,
            hsl(230, 92%, 85%) 100%);
    position: fixed;
    width: 100%;
    height: 4.6rem;
    top: 0;
    left: 0;
    z-index: 2;
    display: grid;
    grid-column: 1/9;
}

.nav__nome {
    z-index: 2;
}

.nav__logo {
    z-index: 1;
    filter: invert(1);
}

.nav__nome:hover {
    color: var(--first-color-alt);
}

.site-nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
}

.open .site-nav__menu {
    background: linear-gradient(170deg,
            hsl(230, 57%, 53%) 0%,
            hsl(230, 92%, 85%) 100%);
    row-gap: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-height: 100%;
    width: 100%;
    height: 100vh;
    animation: openPanel 0.6s;
}

.site-nav__menu {
    grid-column: 6/9;
    padding-top: 8px;
}

.site-nav__menu a {
    font-size: var(--h2-font-size);
    color: #fff;
}


.site-nav__hamburger {
    cursor: pointer;
    grid-column: 8/9;
    justify-self: end;
    align-content: center;
    /* outline: 1px solid red; */
    z-index: 1;
}

.icon-hamburger {
    cursor: pointer;
    height: 18px;
    width: 30px;
    position: relative;
}

.icon-hamburger span {
    background: var(--container-color);
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: var(--micro);
}

.icon-hamburger span:nth-child(1) {
    top: 0;
    width: 70%;
    opacity: 1;
}

.icon-hamburger span:nth-child(2),
.icon-hamburger span:nth-child(3) {
    top: 7px;
    width: 70%;
}

.icon-hamburger span:nth-child(4) {
    top: 14px;
    width: 70%;
    opacity: 1;
}


/*==================== HAMBURGER 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: 80%;
}

.open .icon-hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 80%;
}


/*==================== HOME ====================*/

#home {
    margin-top: 70px;
}

.home__social {
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    row-gap: 3rem;
    align-self: center;
    justify-content: center;
}

.home__social-icon {
    font-size: 1.25rem;
    color: var(--first-color);
}

.home__social-icon:hover {
    color: var(--first-color-alt);
}

.home__img {
    grid-column: 2/9;
    align-self: center;
    max-width: 350px;
}

.home__blob {
    fill: var(--first-color);
}

.home__blob-img {
    width: 250px;
}

.home__data {
    grid-column: 1/9;
    padding-top: 50px;
}

.home__titolo {
    font-size: var(--big-font-size);
    color: var(--first-color);
}

.home__sottotitolo {
    font-size: var(--h3-font-size);
    columns: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.home__descrizione {
    margin-bottom: var(--mb-2);
    margin-bottom: 32px;
}

.home__scroll {
    margin-top: 10px;
    display: none;
}

.home__scroll-button {
    display: flex;
    grid-column: 1/9;
    color: var(--first-color);
    transition: .3s;
}

.home__scroll-button:hover {
    transform: translateY(.25rem);
}

.home__scroll-mouse {
    padding-right: 10px;
    font-size: 2rem;
}

.home__scroll-nome {
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-right: var(--mb-0-25);
}

.home__scroll-freccia {
    padding-left: 10px;
    font-style: 1.25rem;
}



/*==================== BUTTONS ====================*/
.button {
    display: grid;
    grid-column: 1/4;
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
}

.button:hover {
    background-color: var(--first-color-alt);
}

.button__icon {
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: .3s;
}


/* <!--==================== ABOUT ====================--> */

.about__1 {
    grid-column: 1/9;
}

.about__titolo {
    font-size: var(--h1-font-size);
    color: var(--first-color);
    display: grid;
    grid-column: 1/9;
    margin-top: 70px;
}

.about__sottotitolo {
    font-size: var(--small-font-size);
    display: grid;
    grid-column: 1/9;
    margin-bottom: var(--mb-3);
}

.about__titolo,
.about__sottotitolo {
    text-align: center;
}

.about__img {
    grid-column: 1/9;
    border-radius: 15px;
    justify-self: center;
    align-self: center;
    margin-bottom: 20px;
}

.about__data {
    grid-column: 1/9;
}

.about__descrizione {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: var(--mb-0-75);
}

.about__info {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 30px;
    column-gap: 30px;
}

.about__info-titolo {
    font-style: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    text-align: center;
    padding-bottom: 5px;
}

.about__info-nome {
    font-style: var(--small-font-size);
    text-align: center;
    padding-bottom: 40px;
}

.about__info-titolo,
.about__info-nome {
    display: block;
    text-align: center;
}

.about__buttons {
    display: flex;
    justify-content: center;
}

/* <!--==================== SKILLS ====================--> */

.skills__contents {
    display: grid;
    grid-column: 1/9;
}

.skills__content {
    margin-bottom: var(--mb-2-5);
    grid-column: 1/9;
}

.skills__data {
    padding-bottom: 1rem;
}

.skills__1 {
    grid-column: 1/9;
    flex-direction: column;
}

.skills__titolo {
    font-size: var(--h1-font-size);
    margin-top: 70px;
    color: var(--first-color);
    grid-column: 1/9;
}

.skills__sottotitolo {
    font-size: var(--small-font-size);
    display: grid;
    grid-column: 1/9;
    margin-bottom: var(--mb-3);
}

.skills__titolo,
.skills__sottotitolo {
    text-align: center;
}

.skills__header {
    /* grid-column: 1/9; */
    display: flex;
    column-gap: .75rem;
    align-items: center;
    margin-bottom: var(--mb-2-5);
    cursor: pointer;
}

.skills__icon,
.skills__freccia {
    font-size: 2rem;
    color: var(--first-color);
}

.skills__icon {
    margin-right: var(--mb-0-75);
}

.skills__title {
    font-size: var(--h3-font-size);
}

.skills__subtitle {
    font-size: var(--small-font-size);
}

.skills__freccia {
    margin-left: auto;
    transition: .4s;
}

.skills__list {
    row-gap: 1.5rem;
    padding-left: 2.7rem;
}

.skills__titles {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--mb-0-5);
}

.skills__nome {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentuale {
    height: 5px;
    border-radius: .25rem;
}

.skills__bar {
    background-color: var(--first-color-lighter);
}

.skills__percentuale {
    display: block;
    background-color: var(--first-color);
}

.skills__html {
    width: 75%;
}

.skills__css {
    width: 80%;
}

.skills__js {
    width: 50%;
}

.skills__python {
    width: 5%;
}

.skills__psd {
    width: 70%;
}

.skills__ai {
    width: 90%;
}

.skills__id {
    width: 85%;
}

.skills__ae {
    width: 45%;
}

.skills__rhino {
    width: 75%;
}

.skills__3ds {
    width: 80%;
}

.skills__blender {
    width: 70%;
}

.skills__corona {
    width: 80%;
}

.skills__close .skills__list {
    height: 0;
    overflow: hidden;
}

.skills__open .skills__list {
    height: max-content;
    overflow: visible;

}

.skills__open .skills__freccia {
    transform: rotate(-180deg);
}


/* <!--==================== PORTFOLIO ====================--> */

#portfolio {
    position: relative;
    /* background: var(--first-color); */
    background: linear-gradient(170deg,
            hsl(230, 57%, 53%) 0%,
            hsl(230, 92%, 85%) 90%);
    /* padding-bottom: 40px; */
}


.portfolio__titolo {
    grid-column: 1/9;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: #fff;
    padding-top: 70px;
    display: flex;
    justify-content: center;
}

.portfolio__sottotitolo {
    font-size: var(--small-font-size);
    display: grid;
    grid-column: 1/9;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}


.portfolio__projects a {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio__projects a * {
    max-width: 70%;
    position: relative;
    z-index: 1;
}

.portfolio__projects img {
    border-radius: 2rem;
    margin: 12px;
    opacity: .8;
}

.portfolio__projects img:hover {
    opacity: 1;
}

/* RIVISTA AMAE */

.portfolio__projects img {
    margin: 12px;
}

.portfolio__title {
    font-size: var(--h3-font-size);
    color: #fff;
    margin-left: 12px;
    margin-top: 8px;
}

.portfolio__subtitle {
    font: 100;
    font-size: var(--normal-font-size);
    color: #fff;
    margin-bottom: 10px;
    margin-left: 12px;
}

/* <!--==================== AMAE SECONDA PAGINA ====================--> */
/* Benvenuto */

.amae__img {
    grid-column: 2/9;
    align-content: center;
}

.amae__data {
    grid-column: 1/9;
    margin-top: 30px;
}

.amae__titolo {
    margin-top: var(--mb-3);
    font-size: var(--big-font-size);
    color: var(--first-color);
}

.amae__sottotitolo {
    font-size: var(--h3-font-size);
    columns: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.amae__descrizione {
    margin-bottom: var(--mb-2);
    margin-bottom: 32px;
}

.amae__buttons {
    display: flex;
    grid-column: 1/4;
}

.amae__info {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 30px;
    column-gap: 40px;
}

.amae__info-titolo {
    font-style: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    text-align: center;
    padding-bottom: 5px;
}

.amae__info-nome {
    font-style: var(--small-font-size);
    text-align: center;
    padding-bottom: 40px;
}

.amae__info-titolo,
.amae__info-nome {
    display: block;
    text-align: center;
}

.amae__data1 {
    grid-column: 1/9;
    margin-bottom: var(--mb-3);
}

/* rivista */

#rivista {
    position: relative;
    /* background: var(--first-color); */
    background: linear-gradient(170deg,
            hsl(230, 57%, 53%) 0%,
            hsl(230, 92%, 85%) 90%);
    padding-bottom: 40px;
}

.rivista__1 {
    grid-column: 1/9;
    text-align: center;
}

.rivista__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.rivista__img {
    grid-column: 1/9;
    align-content: center;
    justify-self: center;
}

.rivista__img img {
    max-width: 350px;
}

.rivista__data {
    grid-column: 2/8;
}

.rivista__titolo {
    font-size: var(--h3-font-size);
    /* margin-bottom: var(--mb-1); */
    font-weight: var(--font-medium);
    color: var(--container-color);
}

.rivista__sottotitolo {
    font-size: var(--small-font-size);
    color: var(--container-color);
    columns: var(--text-color);
    margin-bottom: var(--mb-0-75);
}

.rivista__descrizione {
    font-size: var(--smaller-font-size);
    color: var(--container-color);
    padding-bottom: 20px;
}

/* manifesto */


.manifesto__1 {
    grid-column: 1/9;
    text-align: center;
}

.manifesto__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: var(--first-color);
    padding-top: 20px;
    padding-bottom: 20px;
}

.manifesto__img {
    grid-column: 1/9;
    align-content: center;
    justify-self: center;
}

.manifesto__img img {
    max-width: 350px;
}

.manifesto__data1 {
    grid-column: 2/8;
}

.manifesto__titolo {
    font-size: var(--h3-font-size);
    /* margin-bottom: var(--mb-1); */
    font-weight: var(--font-medium);
    color: var(--first-color);
}

.manifesto__sottotitolo {
    font-size: var(--small-font-size);
    color: var(--text-color);
    columns: var(--text-color);
    margin-bottom: var(--mb-0-75);
}

.manifesto__descrizione {
    font-size: var(--smaller-font-size);
    padding-bottom: 20px;
}

/* testimonianze */

#testimonianze {
    position: relative;
    /* background: var(--first-color); */
    background: linear-gradient(170deg,
            hsl(230, 57%, 53%) 0%,
            hsl(230, 92%, 85%) 90%);
    padding-bottom: 40px;
}

.testimonianze__1 {
    grid-column: 1/9;
    text-align: center;
}

.testimonianze__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.testimonianze__img {
    grid-column: 1/9;
    align-content: center;
    justify-self: center;
}

.testimonianze__img img {
    max-width: 350px;
}

.testimonianze__data2 {
    grid-column: 2/8;
}

.testimonianze__titolo {
    font-size: var(--h3-font-size);
    /* margin-bottom: var(--mb-1); */
    font-weight: var(--font-medium);
    color: var(--container-color);
}

.testimonianze__sottotitolo {
    font-size: var(--small-font-size);
    color: var(--container-color);
    columns: var(--text-color);
    margin-bottom: var(--mb-0-75);
}

.testimonianze__descrizione {
    font-size: var(--smaller-font-size);
    color: var(--container-color);
    padding-bottom: 20px;
}

/* illustrazioni */

.illustrazioni__projects {
    padding-bottom: 40px;
}

.illustrazioni__projects a {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.illustrazioni__projects a * {
    max-width: 70%;
    position: relative;
    z-index: 1;
}

.illustrazioni__projects img {
    border-radius: 2rem;
    margin: 12px;
    opacity: .8;
}

.illustrazioni__projects img:hover {
    opacity: 1;
}

.illustrazioni__1 {
    grid-column: 1/9;
    text-align: center;
}

.illustrazioni__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: var(--first-color);
    padding-top: 40px;
    padding-bottom: 20px;
}

/* <!--==================== CORALINE SECONDA PAGINA ====================--> */
.coraline__img {
    grid-column: 1/9;
    align-content: center;
}

.coraline__data {
    grid-column: 1/9;
    margin-top: 30px;
}

.coraline__titolo {
    margin-top: var(--mb-3);
    font-size: var(--big-font-size);
    color: #e42320;
}

.coraline__sottotitolo {
    font-size: var(--h3-font-size);
    columns: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.coraline__descrizione {
    margin-bottom: var(--mb-2);
    margin-bottom: 32px;
}

.coraline__buttons {
    display: flex;
    grid-column: 1/4;
}

.coraline__buttons a {
    background-color: #e42320;
}

.coraline__data1 {
    grid-column: 1/9;
    margin-bottom: var(--mb-3);
}

/* copertina 1 */

#copertina1 {
    position: relative;
    /* background: var(--first-color); */
    background: linear-gradient(170deg,
            hsl(0.9, 78.4%, 51%) 0%,
            hsl(0, 100%, 87%) 90%);
    padding-bottom: 40px;
}

.copertina__1 {
    grid-column: 1/9;
    text-align: center;
}

.copertina1__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.copertina1__img {
    grid-column: 1/9;
    align-content: center;
    justify-self: center;
}

.copertina1__data {
    grid-column: 2/8;
}

.copertina1__titolo {
    font-size: var(--h3-font-size);
    /* margin-bottom: var(--mb-1); */
    font-weight: var(--font-medium);
    color: var(--container-color);
}

.copertina1__sottotitolo {
    font-size: var(--small-font-size);
    color: var(--container-color);
    columns: var(--text-color);
    margin-bottom: var(--mb-0-75);
}

.copertina1__descrizione {
    font-size: var(--smaller-font-size);
    color: var(--container-color);
    padding-bottom: 20px;
}

/* online */

.online__1 {
    grid-column: 1/9;
    text-align: center;
}

.online__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: #e42320;
    padding-top: 20px;
    padding-bottom: 20px;
}

.online__img {
    grid-column: 1/9;
    align-content: center;
    justify-self: center;
}

.online__data1 {
    grid-column: 2/8;
}

.online__titolo {
    font-size: var(--h3-font-size);
    /* margin-bottom: var(--mb-1); */
    font-weight: var(--font-medium);
    color: #e42320;
}

.online__sottotitolo {
    font-size: var(--small-font-size);
    color: var(--text-color);
    columns: var(--text-color);
    margin-bottom: var(--mb-0-75);
}

.online__descrizione {
    font-size: var(--smaller-font-size);
    padding-bottom: 20px;
}

/* copertina 2 */

#copertina2 {
    position: relative;
    background: linear-gradient(170deg,
            hsl(29, 87%, 50%) 0%,
            hsl(29, 100%, 84%) 90%);
    padding-bottom: 40px;
}

.copertinaa__1 {
    grid-column: 1/9;
    text-align: center;
}

.copertina2__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.copertina2__img {
    grid-column: 1/9;
    align-content: center;
    justify-self: center;
}

.copertina2__data2 {
    grid-column: 2/8;
}

.copertina2__titolo {
    font-size: var(--h3-font-size);
    /* margin-bottom: var(--mb-1); */
    font-weight: var(--font-medium);
    color: var(--container-color);
}

.copertina2__sottotitolo {
    font-size: var(--small-font-size);
    color: var(--container-color);
    columns: var(--text-color);
    margin-bottom: var(--mb-0-75);
}

.copertina2__descrizione {
    font-size: var(--smaller-font-size);
    color: var(--container-color);
    padding-bottom: 20px;
}

/* online 2 */

.onlinee__1 {
    grid-column: 1/9;
    text-align: center;
}

.online2__title {
    display: grid;
    grid-column: 4/7;
    z-index: 1;
    font-size: var(--h1-font-size);
    color: #EE7E12;
    padding-top: 20px;
    padding-bottom: 20px;
}

.online2__img {
    grid-column: 1/9;
    align-content: center;
    justify-self: center;
}

.online2__data3 {
    grid-column: 2/8;
}

.online2__titolo {
    font-size: var(--h3-font-size);
    /* margin-bottom: var(--mb-1); */
    font-weight: var(--font-medium);
    color: #EE7E12;
}

.online2__sottotitolo {
    font-size: var(--small-font-size);
    color: var(--text-color);
    columns: var(--text-color);
    margin-bottom: var(--mb-0-75);
}

.online2__descrizione {
    font-size: var(--smaller-font-size);
    padding-bottom: 20px;
}

/* <!--==================== FORMAZIONE ====================--> */

.formazione__1 {
    display: grid;
    grid-column: 1/9;
    justify-content: center;
}

.formazione__informazioni {
    grid-column: 1/9;
    flex-direction: column;
}

.formazione__titolo {
    display: grid;
    grid-column: 1/9;
    font-size: var(--h1-font-size);
    margin-top: 70px;
    padding-top: 30px;
    color: var(--first-color);
    justify-content: center;
}

.formazione__sottotitolo {
    display: grid;
    font-size: var(--small-font-size);
    grid-column: 1/9;
    justify-content: center;
    margin-bottom: var(--mb-3);
}

.formazione__titolo,
.formazione__sottotitolo {
    text-align: center;
}

.formazione__content {
    grid-column: 1/9;
    background-color: var(--container-color);
    padding: 3.5rem .5rem 1.25rem 1.5rem;
    border-radius: .25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
    transition: 3s;
    margin-bottom: 1rem;
}

.formazione__content:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
}

.formazione__icon {
    display: block;
    font-size: 1.5rem;
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.formazione__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    font-weight: var(--font-medium);
}

/* formazione button */
.formazione__button {
    cursor: pointer;
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
}

.formazione__button:hover .button__icon {
    transform: translateX(.25rem);
}

.button--small {
    padding: .75rem 1rem;
}

.button--link {
    padding: 0;
    background-color: transparent;
    color: var(--first-color-alt);
}

.button--link:hover {
    background-color: transparent;
    color: var(--first-color);
}

.button__icon {
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: .3s;
}

.formazione__modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.formazione__modal-content {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .5rem;
}

.formazione__modal-formazione {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
}

.formazione__modal-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1-5);
}

.formazione__modal-close {
    position: relative;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
    float: right;
}

.formazione__modal-icon {
    color: var(--first-color);
    margin-right: var(--mb-0-25);
}

.form__icon {
    color: var(--first-color);
    font-size: 1rem;
}

/* Active Modal */
.active-modal {
    opacity: 1;
    visibility: visible;
}


/* <!--==================== CONTATTI ====================--> */

.contatti__1 {
    grid-column: 1/9;
    text-align: center;
}

.contatti__titolo {
    display: grid;
    grid-column: 4/7;
    font-size: var(--h1-font-size);
    margin-top: 70px;
    padding-top: 30px;
    color: var(--first-color);
    justify-content: center;
}

.contatti__sottotitolo {
    display: grid;
    grid-column: 4/7;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
}

.contatti__content2 {
    margin-top: 1rem;
    grid-column: 1/9;
    row-gap: 2rem;
}

.contatti__content1 {
    grid-column: 1/9;
}

.contatti__informazioni {
    padding-bottom: 2rem;
    display: flex;
}

.contatti__icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-right: var(--mb-0-75);
}

.contatti__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
}

.contatti__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.contatti__content {
    background-color: var(--input-color);
    border-radius: .5rem;
    padding: .75rem 1rem .25rem;
    margin-bottom: 1rem;
}

.contatti__label {
    font-size: var(--smaller-font-size);
    color: var(--title-color);
}

.contatti__input {
    width: 100%;
    background-color: var(--input-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    border: none;
    outline: none;
    padding: .25rem .5rem .5rem 0;
}

a.button {
    margin-bottom: 50px;
}

/* <!--==================== FOOTER ====================--> */

.footer__bg {
    /* background-color: var(--first-color-second); */
    background: linear-gradient(170deg,
            hsl(230, 57%, 53%) 0%,
            hsl(230, 92%, 85%) 90%);
    display: grid;
    grid-column: 1/9;
}

.footer__1 {
    margin-bottom: 2rem;
    grid-column: 1/4;
}

.footer__1 p {
    color: #fff;
    font-size: var(--smaller-font-size);
    margin-top: 1rem;
}

.footer__titolo {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-0-25);
}

.footer__sottotitolo {
    font-size: var(--small-font-size);
    margin-bottom: 2rem;
}

.footer__content1,
.footer__content2 {
    grid-column: 1/9;
}

.footer__links li {
    margin-bottom: 2rem;
}

.footer__link:hover {
    color: var(--first-color-lighter);
}

.footer__social {
    font-size: 1.25rem;
    margin-right: var(--mb-1-5);
}

.footer__social:hover {
    color: var(--first-color-lighter);
}

.footer__titolo,
.footer__sottotitolo,
.footer__link,
.footer__social {
    color: #fff;
}



/* -------------------------------------------------------------------------------- */
/* ! Metto tutto ciò che è medium */
/* -------------------------------------------------------------------------------- */

@media (min-width: 568px) {

    .portfolio__projects a * {
        max-width: 60%;
    }


    .home__data {
        grid-column: 5/9;
        padding-left: 2rem;
        /* padding-right: 2rem; */
    }

    .home__social {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        text-align: right;
    }

    .home__img {
        grid-column: 2/5;
        justify-content: center;
    }

    .skills__content {
        grid-column: 2/8;
        margin-bottom: var(--mb-2-5);
    }

    .formazione__content {
        grid-column: 2/8;
    }

    .footer__1 {
        grid-column: 1/4;
    }

    .footer__content1 {
        grid-column: 6/9;
        align-content: end;
        text-align: right;
    }

    /* <!--==================== AMAE SECONDA PAGINA ====================--> */

    .amae__data,
    .amae__data1 {
        grid-column: 2/8;
    }

    /* rivista */

    .rivista__img {
        grid-column: 2/5;
        align-content: center;
        justify-self: center;
    }

    .rivista__data {
        padding-top: 30px;
        grid-column: 5/8;
        padding-left: 20px;
    }


    /* manifesto */

    .manifesto__img {
        grid-column: 5/8;
        align-content: center;
        justify-self: center;
    }

    .manifesto__data1 {
        padding-top: 40px;
        grid-column: 2/5;
        padding-right: 30px;
        margin-bottom: 70px;
    }


    /* testimonianze */

    .testimonianze__img {
        grid-column: 2/5;
        align-content: center;
        justify-self: center;
        padding-right: 10px;
    }

    .testimonianze__data2 {
        padding-top: 20px;
        padding-left: 30px;
        grid-column: 5/8;
    }

    /* illustrazioni */
    .illustrazioni__projects a * {
        max-width: 40%;
    }

    /* <!--==================== CORALINE SECONDA PAGINA ====================--> */

    .coraline__data {
        grid-column: 2/8;
    }

    .coraline__img {
        grid-column: 3/7;
    }

    /* copertina 1 */

    .copertina1__img {
        grid-column: 1/5;
        align-content: center;
        justify-self: center;
    }

    .copertina1__data {
        padding-top: 60px;
        grid-column: 5/8;
        padding-left: 20px;
    }

    /*online */

    .online__img {
        grid-column: 5/9;
        align-content: center;
        justify-self: center;
    }

    .online__data1 {
        padding-top: 70px;
        grid-column: 2/5;
        padding-right: 30px;
        margin-bottom: 70px;
    }


    /* copertina 1 */

    .copertina2__img {
        grid-column: 1/5;
        align-content: center;
        justify-self: center;
    }

    .copertina2__data2 {
        padding-top: 60px;
        grid-column: 5/8;
        padding-left: 20px;
    }

    /* online 2 */
    .online2__img {
        grid-column: 5/9;
        align-content: center;
        justify-self: center;
    }

    .online2__data3 {
        padding-top: 70px;
        grid-column: 2/5;
        padding-right: 30px;
        margin-bottom: 70px;
    }

}



@media (min-width: 768px) {


    /* <!--==================== HEADER ====================--> */

    .site-nav__hamburger {
        display: none;
    }

    .site-nav__menu {
        position: relative;
        max-height: 100%;
        display: flex;
        overflow: visible;
        column-gap: 2rem;
        justify-content: end;
    }

    .site-nav__menu a {
        font-size: 1rem;
    }

    .nav__logo {
        grid-column: 1/8;
    }


    /* <!--==================== HOME ====================--> */
    .home__data {
        grid-column: 2/6;
        padding-top: 80px;
    }

    .home__social {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        text-align: right;
    }

    .home__img {
        order: 2;
        grid-column: 6/9;
        justify-content: center;
    }

    /* <!--==================== ABOUT ====================--> */
    .about__img {
        grid-column: 1/5;
        padding-left: 2rem;
        padding-right: 1rem;
    }

    .about__data {
        order: 1;
        grid-column: 5/9;
        margin-right: 1.5rem;
    }

    .about__descrizione {
        text-align: left;
    }

    .about__buttons {
        justify-content: flex-start;
    }

    /* <!--==================== SKILLS ====================--> */
    .skills__content {
        grid-column: span 4;
    }

    .skills__content {
        margin: 1.25rem;
    }

    /* <!--==================== PORTFOLIO ====================--> */

    .portfolio__projects a {
        grid-column: span 4;
    }

    .portfolio__projects a:nth-child(9) {
        grid-column: 3/7;
    }

    .portfolio__projects a * {
        max-width: 55%;
    }

    .portfolio__subtitle {
        text-align: center;
    }

    /* <!--==================== AMAE SECONDA PAGINA ====================--> */

    .amae__data {
        grid-column: 2/6;
        margin-top: 70px;
    }

    .amae__data1 {
        grid-column: 4/9;
        margin-bottom: var(--mb-3);
    }

    .amae__img {
        grid-column: 6/9;
        justify-content: center;
    }

    .amae__img img {
        object-fit: contain;
    }

    .amae__info {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        margin-top: 30px;
        column-gap: 40px;
    }

    /* rivista */

    .rivista__img {
        grid-column: 2/5;
        align-content: center;
        justify-self: center;
    }

    .rivista__data {
        padding-top: 60px;
        grid-column: 5/8;
    }

    /* manifesto */

    .manifesto__img {
        grid-column: 5/8;
        align-content: center;
        justify-self: center;
    }

    .manifesto__data1 {
        padding-top: 80px;
        grid-column: 2/5;
    }

    /* testimonianze */

    .testimonianze__img {
        grid-column: 2/5;
        align-content: center;
        justify-self: center;
    }

    .testimonianze__data2 {
        padding-top: 80px;
        grid-column: 5/8;
    }

    /* illutrazioni */

    .illustrazioni__projects a {
        grid-column: span 2;
    }

    .illustrazioni__projects a:nth-child(1) {
        grid-column: 2/4;
    }

    .illustrazioni__projects a:nth-child(2) {
        grid-column: 4/6;
    }

    .illustrazioni__projects a:nth-child(3) {
        grid-column: 6/8;
    }

    .illustrazioni__projects a * {
        max-width: 95%;
    }

    /* <!--==================== CORALINE SECONDA PAGINA ====================--> */

    .coraline__data {
        grid-column: 2/6;
        margin-top: 70px;
    }

    .coraline__img {
        grid-column: 6/9;
        justify-content: center;
    }

    .coraline__img img {
        object-fit: contain;
    }

    /* copertina 1 */

    .copertina1__img {
        grid-column: 1/5;
        align-content: center;
        justify-self: center;
    }

    .copertina1__data {
        padding-top: 60px;
        grid-column: 5/8;
    }

    /* online */

    .online__img {
        grid-column: 5/9;
        align-content: center;
        justify-self: center;
    }

    .online__data1 {
        padding-top: 90px;
        grid-column: 2/5;
    }

    /* copertina 2 */

    .copertina2__img {
        grid-column: 1/5;
        align-content: center;
        justify-self: center;
    }

    .copertina2__data2 {
        padding-top: 70px;
        grid-column: 5/8;
    }

    /* online 2 */

    .online2__img {
        grid-column: 5/9;
        align-content: center;
        justify-self: center;
    }

    .online2__data3 {
        padding-top: 90px;
        grid-column: 2/5;
    }


    /* <!--==================== FORMAZIONE ====================--> */

    .formazione__icon {
        font-size: 2rem;
    }

    .formazione__content {
        grid-column: span 4;
        /* padding: 6rem 0 2 rem 2.5rem; */
    }

    /* <!--==================== CONTATTI ====================--> */

    .contatti__content1 {
        padding-right: 1rem;
        grid-column: 1/3;
    }

    .contatti__content2 {
        padding-right: 1rem;
        grid-column: 4/9;
    }


    /* <!--==================== FOOTER ====================--> */

    .footer__bg {
        grid-column: 1/9;
    }

    .footer__1 {
        grid-column: 1/3;
    }

    .footer__content1 {
        grid-column: 4/6;
        text-align: center;
        justify-content: center;
    }

    .footer__content2 {
        grid-column: 7/9;
        justify-self: end;
    }


}

/* -------------------------------------------------------------------------------- */
/* ! Qui vado a mettere le istruzione per LARGE */
/* -------------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .grid {
        padding: 30px;
    }

    /* <!--==================== HEADER ====================--> */
    .header {
        /* background-color: var(--first-color); */
        background: linear-gradient(170deg,
                hsl(230, 57%, 53%) 0%,
                hsl(230, 92%, 85%) 100%);
        position: fixed;
        width: 100%;
        height: 5rem;
        top: 0;
        left: 0;
        z-index: 2;
        display: grid;
        grid-column: 1/9;
    }

    /* <!--==================== HOME ====================--> */

    .home__data {
        grid-column: 2/6;
        padding-top: 100px;
    }

    .home__social {
        grid-column: 1/2;
        text-align: right;
    }

    .home__img {
        grid-column: 6/9;
        padding-left: 2rem;
        width: 350px;
        padding-top: 30px;
    }

    /* <!--==================== ABOUT ====================--> */

    .about__data {
        grid-column: 5/8;
    }

    /* <!--==================== SKILLS ====================--> */

    .skills__informazioni {
        display: flex;
        justify-content: center;
        column-gap: 50px;
    }



    /* <!--==================== PORTFOLIO ====================--> */
    .portfolio__projects a * {
        max-width: 90%;
    }

    .portfolio__projects a:nth-child(1) {
        grid-column: 2/4;
    }

    .portfolio__projects a:nth-child(2) {
        grid-column: 4/6;
    }

    .portfolio__projects a:nth-child(3) {
        grid-column: 6/8;
    }

    .portfolio__projects a:nth-child(4) {
        grid-column: 2/4;
    }

    .portfolio__projects a:nth-child(5) {
        grid-column: 4/6;
    }

    .portfolio__projects a:nth-child(6) {
        grid-column: 6/8;
    }

    .portfolio__projects a:nth-child(7) {
        grid-column: 2/4;
    }

    .portfolio__projects a:nth-child(8) {
        grid-column: 4/6;
    }

    .portfolio__projects a:nth-child(9) {
        grid-column: 6/8;

    }

    /* <!--==================== AMAE SECONDA PAGINA ====================--> */

    /* amae */

    .amae__data {
        grid-column: 1/5;
        padding-left: 50px;
    }

    .amae__img {
        grid-column: 5/9;
    }

    /* rivista */

    .rivista__data {
        grid-column: 5/8;
        padding-right: 50px;
        padding-top: 200px;
    }

    .rivista__img {
        grid-column: 1/5;
    }

    .rivista__img img {
        min-width: 500px;
    }

    /* manifesto */

    .manifesto__img {
        grid-column: 5/9;
    }

    .manifesto__img img {
        min-width: 500px;
    }

    .manifesto__data1 {
        grid-column: 2/5;
        padding-top: 200px;
    }

    /* testimonianze */

    .testimonianze__data {
        grid-column: 5/8;
        padding-top: 200px;
    }

    .testimonianze__img {
        grid-column: 1/5;
    }

    .testimonianze__img img {
        min-width: 430px;
    }

    .testimonianze__data2 {
        padding-top: 200px;
    }

    /* illutrazioni */

    .illustrazioni__projects a {
        grid-column: span 2;
    }

    .illustrazioni__projects a:nth-child(1) {
        grid-column: 2/4;
    }

    .illustrazioni__projects a:nth-child(2) {
        grid-column: 4/6;
    }

    .illustrazioni__projects a:nth-child(3) {
        grid-column: 6/8;
    }

    .illustrazioni__projects a * {
        max-width: 95%;
    }

    /* <!--==================== CORALINE SECONDA PAGINA ====================--> */

    .copertina1__img img {
        min-width: 500px;
    }

    .copertina2__img img {
        min-width: 500px;
    }

    .online__img img {
        min-width: 500px;
    }

    .online2__img img {
        min-width: 500px;
    }

    .copertina1__data {
        padding-top: 200px;
    }

    .copertina2__data2 {
        padding-top: 200px;
    }

    .online__data1 {
        padding-top: 200px;
    }

    .online2__data3 {
        padding-top: 200px;
    }

    /* <!--==================== FORMAZIONE ====================--> */
    .formazione__informazioni {
        display: grid;
        column-gap: 30px;
    }

    .formazione__content {
        display: grid;
        padding-right: 20px;
        grid-column: span 2;
        align-content: center;
    }

    .formazione__content:nth-child(1) {
        grid-column: 2/4;
    }

    .formazione__content {
        max-width: 300px;
    }


    /* <!--==================== CONTATTI ====================--> */
    .contatti__content1 {
        padding-left: 4rem;
    }

    .contatti__content2 {
        padding-right: 4rem;
    }


    /* <!--==================== FOOTER ====================--> */
}