/* .grid-3x3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 2fr);
} */

/* .grid-3x3>div {
    background-color: yellow;
    border: 1px solid black;
    padding: 20px;
    text-align: center;
} */


/* color */
:root {
    --primary: rgb(255, 37, 37);
    --light: rgb(255, 255, 255);
    --accent: rgb(49, 49, 244);
    --dark: rgb(15, 15, 15);

}


/* reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}



/* utility */


html {
    scroll-behavior: smooth;
}

h1,
h2,

h4,
h5,
h6,
p.leading {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.8em;
    color: var(--primary);
}

h3 {
    font-family: 'Clash Display', sans-serif;
    font-size: 4.4em;
    color: var(--primary);
}

p {
    font-family: 'Clash Grotesk', sans-serif;
    font-size: 1.2em;
    color: var(--accent);
}


.clippy {
    clip-path: circle(50% at 50% 50%);
    object-fit: contain;
}



.res {
    width: 100%;
    max-width: 290px;
}

.container {
    max-width: 1200px;
}

section {
    margin: 20px;
}

/* tipografia */

/* tavolozza colore */




/* animazioni */

@keyframes openPanel {
    0% {
        transform: scale(1.2);

    }

    100% {
        transform: scale(1);
    }
}


/* -------------------------------------------------------------------------------- */
/* ! GRID PER MOBILE FIRST */
/* -------------------------------------------------------------------------------- */

/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;

}


/* navigazione */

.open .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900000;

}


.site-nav__hb {
    z-index: 100002;
}

.site-nav h1 {
    grid-column: 2/3;

    cursor: pointer;
    z-index: 1;
    align-self: center;
    z-index: 10001;
}

.site-nav__img {
    z-index: 100007;
    width: 100px;
}

.site-nav__menu {

    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    font-family: 'Clash Grotesk', sans-serif;
    /* z-index: 9999; */
    font-size: 2.8em;
    position: fixed;

}

.site-nav__menu li {

    margin-left: 20px;
}

.site-nav__menu li.ui-btn a {
    font-size: 3em;
}



.site-nav {
    overflow-y: hidden;



}

.open .site-nav__menu {
    display: flex;
    gap: 50px;
    flex: wrap;
    align-content: space-between;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column-reverse;
    max-height: 100%;
    width: 100%;
    height: 100vh;
    background-color: var(--light);

    animation: openPanel .6s;
    z-index: 999;
    position: fixed;
}

.open .site-nav__menu li:hover {
    transform: rotate(360deg);
    font-weight: bold;
    border-bottom: 3px solid var(--primary);

    transition: all 0.8s cubic-bezier(.215, .61, .355, 1);
    color: var(--accent);
}


/* 
.site-nav__img {
    grid-column: 1/2;

} */



.site-nav__hb {
    grid-column: 7/9;
    justify-self: end;
    /* outline: 1px solid red; */
    cursor: pointer;

    color: var(--primary);
    align-self: center;
    font-size: 1.6em;

}


/* button settings 👆 */


.ss {
    color: var(--accent);


}

.ui-btn {
    --btn-padding: 12px 20px;

    --btn-transition: .3s;
    --btn-letter-spacing: .1rem;
    --btn-animation-duration: 2.3s;


    /* 👆 this field should not be empty */

    --font-family: 'Clash Grotesk', sans-serif;
    /* 👆 this field should not be empty */
}

.ui-btn {
    box-sizing: border-box;
    margin: 20px;

    color: var(--accent);
    font-family: 'Clash Grotesk', sans-serif;
    background: none;
    border: 2px solid var(--accent);
    cursor: pointer;
    padding: 2px;
    overflow: hidden;

    transition: all .3s ease-in-out;

}

.ui-btn span {

    box-sizing: border-box;
    position: relative;
    background: inherit;
}

.ui-btn span::before {
    box-sizing: border-box;
    position: absolute;
    content: "";
    background: inherit;
}

.ui-btn:hover,
.ui-btn:focus {
    background: var(--dark);
    transform: scale(1.1);
}

.ui-btn:hover span,
.ui-btn:focus span {
    color: var(--light);

}

.ui-btn:hover span::before,
.ui-btn:focus span::before {
    animation: chitchat linear both 2.3s;
}

@keyframes chitchat {

    0% {
        content: "N#@";
    }

    5% {
        content: ".?+ò";
    }

    10% {
        content: "*{";
    }

    15% {
        content: "-!";
    }

    20% {
        content: "e$_";
    }

    25% {
        content: "X:e";
    }

    30% {
        content: "#t+.";
    }

    35% {
        content: "@}-?";
    }

    40% {
        content: "?{4@%";
    }

    45% {
        content: "=.n^!";
    }

    50% {
        content: "?a@%";
    }

    55% {
        content: "\;ee]";
    }

    60% {
        content: "?{%:%";
        right: 0;
    }

    65% {
        content: "|{f[4";
        right: 0;
    }

    70% {
        content: "{4%0%";
        right: 0;
    }

    75% {
        content: "'1_0t<";
        right: 0;
    }

    80% {
        content: "{0%";
        right: 0;
    }

    85% {
        content: "]>'";
        right: 0;
    }

    90% {
        content: "A";
        right: 0;
    }

    95% {
        content: "2";
        right: 0;
    }

    100% {
        content: "";
        right: 0;
    }
}

/* hi */

.hi {
    padding: 7px;
    line-height: 1;
    text-align: center;


}



a {
    color: var(--primary);
}

.outline {
    width: 34px;
    height: 34px;
    border-radius: 100%;
    border: 2px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999;
    mix-blend-mode: difference;
    transform: translate(-64px, -64px);
    transition: all 0.3s cubic-bezier(.215, .61, .355, 1);
    pointer-events: none;


}

.cursor {
    width: 0px;
    height: 0px;
    border-radius: 100%;
    background: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    mix-blend-mode: difference;
    transform: translate(-8px, -8px);
    pointer-events: none;
    filter: none;
}

.outline.hover {
    background-color: var(--primary);
    border-color: var(--primary);
    width: 158px;
    height: 158px;

}

.cursor.hover {
    width: 0px;
    height: 0px;

    cursor: alias;
}


/* benvenuto */

.welcome__text {
    grid-column: 1/9;
    text-align: center;

}

.leading a {

    color: var(--accent);

}

.curbut {
    all: unset;
    font-family: 'Clash Grotesk', sans-serif;
    color: var(--accent);
    padding: 5px;
    box-shadow: 0 10px 15px rgba(49, 49, 244, 0.32);
}

.curbut:hover {
    color: var(--light);
    background-color: var(--dark);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.32);
    font-weight: 500;
}





.leading a:hover,
.penglish a:hover {
    background-color: var(--dark);
    color: var(--light);
}

p.leading {
    margin-bottom: 50px;
}



/* tesi */

/* .thesis__text {
    grid-column: 1/7;
}

.thesis__img {
    grid-column: 1/9;
    display: flex;
   
    justify-content: center;
    justify-content: baseline;
} */


/* -------------------------------------------------------------------------------- */
/* ! POPUP COOKIES */
/* -------------------------------------------------------------------------------- */


#modalbox {
    position: absolute;
    bottom: 20px;
    left: 25px;

    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 20px 20px;
    font-size: 1em;
    font-weight: 500;
    border: 2px solid var(--accent);
    background-color: var(--light);
    border-radius: 8px;
    display: none;
    box-shadow: 0px 10px 15px rgba(49, 49, 244, 0.32);
}


.cookies {
    width: 100px;
    margin-bottom: 15px;
}

#modalbox button {
    background-color: var(--dark);
    padding: 15px 0;
    color: var(--light);
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    width: 100%;
    border: 0;
    outline: 0;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 10px 15px rgb(49, 49, 244, 0.2);
}

#modalbox button:hover {
    color: var(--primary);
    background-color: var(--dark);
}

.close-icon {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
}



/* -------------------------------------------------------------------------------- */
/* ! INIZIO PROGETTI */
/* -------------------------------------------------------------------------------- */





.swiper-container {
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2/9;
    overflow-x: hidden;
}

.swiper-wrapper {
    max-width: 100%;
}

.swiper-slide {
    touch-action: pan-x;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;



}

#raccolta {
    background-color: var(--dark);
    border-radius: 20px;
}

#bird {
    background-color: rgba(222, 167, 18, 0.86);
    border-radius: 20px;
}

#sky {
    background-color: rgb(62, 142, 233);
    border-radius: 20px;
}

#sun {
    background-color: rgb(254, 82, 188);
    border-radius: 20px;
}

#lmtg {
    background-color: black;
    border-radius: 20px;
}



#fl,
#glovo,
#FINVISIBLE,
#tt,
#fftw {
    background-color: var(--dark);
    border-radius: 20px;
}


#flo .swiper-slide img {
    object-fit: cover;
    border-radius: 20px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: flex;
    justify-content: center;
    transition: all 3s ease;
}




.more-button {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--light);
    padding: 20px;
    color: var(--accent);
    border: none;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 15px 0 rgb(15, 15, 15, .4);
    border-radius: 20px;
    transition: all 0.3s ease;

}

.more-button::before {
    content: '+';
}

/* .more-button:hover::before {
    content: '-';
}

.more-button::before {
    content: '+';
} */

/* .more-button.clicked {
    content: 'x';
} */

/* @keyframes plus-to-minus {
    0% {
        content: '+';
    }

    50% {
        content: '-';
    }

    100% {
        content: '-';
    }
}



.more-button.clicked {
    animation: plus-to-minus 0.5s forwards;
    background-color: rgb(49, 49, 244, .3);
} */

.description-overlay {
    display: none;

    position: absolute;
    top: 0px;
    left: 0px;
    width: auto;
    height: fit-content;
    background-color: var(--accent);
    color: white;
    margin: 20px;
    box-sizing: border-box;
    z-index: 9;

    flex-direction: column;
    border-radius: 20px;
    text-align: center;
    padding: 20px;

}

.description-overlay .only {
    margin-top: 100px;
    align-self: center;
    font-size: 1.2em;

}

.description-overlay h1 {

    margin-top: 0px;
    color: var(--light);
    font-size: 24px;
    margin-left: 20px;
    z-index: 10;
    text-align: right;

}

.description-overlay p {
    margin-left: 10px;
    color: var(--light);
    padding: 10px;
    /* margin-top: 40px; */
    font-size: 20px;
    text-align: left;

}

.swiper-container {
    position: relative;
}




.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    content: none;
    color: var(--light);
    background-color: var(--dark);
    padding: 6px;
    border-radius: 60px;
    max-height: 25px;
    opacity: 100%;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--accent);
}

.swiper-button-next {
    right: 10px;

}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next i,
.swiper-button-prev i {
    font-size: 24px;
}


/* -------------------------------------------------------------------------------- */
/* ! FINE PROGETTI */
/* -------------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------------- */
/* ! INIZIO ABOUT */
/* -------------------------------------------------------------------------------- */
.info {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.info__text {
    grid-column: 1/6;
    text-align: center;
}

.info__text h1 {
    font-size: 3em;
    text-align: right;
    color: var(--accent);
    line-height: 1;
    font-weight: normal;
}

.info__text h2 {
    font-weight: normal;
    text-align: right;
    padding: 20px 0;
}

.info__text p {
    margin-top: 20px;
    text-align: left;
}

.info__text .penglish {
    grid-column: 1/9;
    color: var(--primary);
}

.info__img {
    grid-column: 6/9;
    max-width: 320px;

}



.skills h2 {
    text-align: center;
    font-weight: normal;
    margin-bottom: 20px;
}

.skills-program>div {
    grid-column: span 8;
    padding: 20px;

    text-align: center;
}

.skills-program>div:hover {

    transform: scale(1.5) rotate(10deg);



}



.skills-program h1 {
    color: var(--accent);
    font-weight: normal;
    font-size: 1.2em;
}

.invito {
    border-bottom: 2px solid var(--primary);
    border-top: 2px solid var(--primary);
    padding: 20px 40px;
}

.invito h3 {
    font-weight: normal;
    font-size: 1.2em;
    text-align: center;
}

.invito a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);

}


.progress h2 {
    font-weight: normal;
    padding: 15px;
    grid-column: 1/9;

    text-align: center;

    border-radius: 10px;
}

.progress>div {
    grid-column: 1/9;
    padding: 20px 5px;

    border-radius: 10px;
    background-color: var(--light);
    display: flex;
    flex-direction: column;

    margin-bottom: 30px;

}

.progress h1 {
    font-size: 1.2em;
    font-weight: semibold;
    text-align: center;
    color: var(--accent);

}

.progress p {
    padding: 20px;
    text-align: center;
    color: var(--accent);
}

.more {

    color: var(--primary);
    font-family: 'Clash Grotesk', sans-serif;
    font-weight: bold;
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 0 0 var(--primary);
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;



}

.more:hover {
    background-color: #fff;
    transform: translateY(10px);
    box-shadow: 0 0px 0 0 #fff;
    font-weight: 800;
}

.contact>div {

    padding: 15px;

}

.contact {
    margin-top: 40px;
    margin-bottom: 60px;
    border: 6px solid var(--primary);
    border-radius: 25px;
    padding: 10px;
    border-style: dashed;
}

.mail {
    grid-column: 1/9;
}

.phone {
    grid-column: 1/9;
}

.contact>div {

    text-align: center;
}

.contact a {
    font-size: 1.6em;
    font-family: 'Clash Grotesk', sans-serif;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
}



/* -------------------------------------------------------------------------------- */
/* ! FINE ABOUT */
/* -------------------------------------------------------------------------------- */


.gotopbtn {
    position: fixed;
    width: 50px;
    height: 50px;
    color: var(--light);
    background-color: var(--primary);
    bottom: 40px;
    right: 26px;
    font-size: 22px;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    z-index: 300000;
    border-radius: 30px;
    box-shadow: 0px 3px 0;
    transition: all 0.3s ease-in-out;
    border: 2px solid var(--light);

}

.gotopbtn:hover {
    background-color: var(--light);
    color: var(--primary);
    transform: translateY(10px);
    box-shadow: 0 0px 0 0 #fff;
    font-weight: 800;
}

/* -------------------------------------------------------------------------------- */
/* ! FOOTER */
/* -------------------------------------------------------------------------------- */
/* footer */


/* footer {
    margin: 0 auto;
    width: 100%;
    
} */

footer {

    bottom: 0;
    left: 0;

}

.social p {
    grid-column: 1/9;
}

footer>div {
    grid-column: 1/9;
    padding: 5px 20px;
    text-align: center;
    border-top: 2px solid var(--primary);

}

footer>div:hover {
    border-top: none;

}

footer a:hover {


    color: var(--light);
    background-color: var(--dark);
}

.copyright {
    text-align: center;
    font-size: 1em;
    margin-bottom: 20px;
}

/* footer {
    bottom: 0;
    position: sticky;
}







} */

/* -------------------------------------------------------------------------------- */
/* ! METTO TUTTO CIò CHE è MEDIUM */
/* -------------------------------------------------------------------------------- */

@media (min-width:768px) {

    .res {
        text-align: center;
    }


    .site-nav__menu {


        font-size: 4.8em;


    }

    /* hi */
    .hi {
        font-family: 'Clash Display', sans-serif;
        font-size: 1.8em;
        color: var(--primary);
        text-align: center;
        line-height: 1;
    }

    /* welcome */

    .welcome__text {
        grid-column: 1/9;


    }

    .leading,
    .penglish {
        text-align: center;
        grid-column: 2/8;
    }



    /* tesi */
    .thesis__text {
        grid-column: 1/6;
    }

    .thesis__img {
        grid-column: 6/9;
    }

    /* portfolio */

    .portfolio__project {
        margin-top: 50px;
    }

    /* .portfolio__project img {
        width: 500px;
    } */

    .portfolio__project a {
        grid-column: span 4;
    }

    .portfolio__project a * {
        max-width: 60%;
    }

    .portfolio__project a:nth-child(3) {
        grid-column: 3/7;
    }


    /* slider */
    .image-container {

        height: 500px;
        /* Set a fixed height for the container */

    }

    .description-overlay {
        width: 60%;
    }

    .description-overlay h1 {
        text-align: right;
        padding: 60px 10px;
        color: var(--light);
        margin-bottom: 0;
        margin-left: 20px;

    }

    .description-overlay .only {
        padding-top: 0;
    }

    .description-overlay p {
        margin-left: 10px;
        color: var(--light);
        padding: 20px;
        margin-top: none;

    }

    .info__img {
        max-width: 600px;
    }

    /* cookies */
    #modalbox {
        position: absolute;
        bottom: 20px;
        left: 20px;
        z-index: 999;
        width: 40%;
        max-width: 250px;
        text-align: center;
        padding: 20px 20px;
        font-size: 1em;
        font-weight: 500;
        border: 2px solid var(--accent);
        background-color: var(--light);
        border-radius: 8px;
        display: none;
        box-shadow: 0px 10px 15px rgba(49, 49, 244, 0.32);
    }


    .cookies {
        width: 100px;
        margin-bottom: 15px;
    }

    #modalbox button {
        background-color: var(--dark);
        padding: 15px 0;
        color: var(--light);
        border-radius: 4px;
        font-size: 1em;
        font-weight: 500;
        width: 100%;
        border: 0;
        outline: 0;
        margin-top: 20px;
        cursor: pointer;
        box-shadow: 0 10px 15px rgb(49, 49, 244, 0.2);
    }

    #modalbox button:hover {
        color: var(--primary);
        background-color: var(--dark);
    }

    .close-icon {
        width: 25px;
        height: 25px;
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
    }


}

/* -------------------------------------------------------------------------------- */
/* ! METTO TUTTO CIò CHE è large */
/* -------------------------------------------------------------------------------- */

@media (min-width:992px) {

    /* voglio un container ma con grid posso sfruttare GRID!!!!!! */
    .grid {
        max-width: 1060px;
        margin: 0 auto;
    }

    /* sitenav */



    .site-nav__menu {
        all: unset;
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        align-content: center;

        align-items: baseline;
        width: max-content;
        grid-column: 7/9;
        gap: 50px;
    }



    .site-nav__menu li {
        all: unset;
        display: inline-block;
        margin-left: 15px;
        font-size: 1.5em;
        font-family: 'Clash Display', sans-serif;

    }

    .site-nav__menu li:hover {
        border-bottom: 4px solid var(--primary);
    }

    .site-nav__hb {
        display: none;
    }



    /* hi */
    .hi {
        font-size: 2em;
        line-height: 1;
    }



    /* portfolio */
    .portfolio__project a * {
        max-width: 100%;
    }

    .portfolio__project a:nth-child(1) {
        grid-column: 2/4;
    }

    .portfolio__project a:nth-child(2) {
        grid-column: 4/6;
    }

    .portfolio__project a:nth-child(3) {
        grid-column: 6/8;
    }

    /* skills */
    /* #skills li {
        grid-column: span 2;
    } */


    .info {
        display: grid;
        align-items: start;
    }

    .info__text {
        grid-column: 2/5;
        text-align: center;
    }

    .info__img {
        grid-column: 5/8;
        text-align: center;
        max-width: 420px
    }

    .info__text .penglish {

        color: var(--primary);
    }

    .skills-program>div {
        grid-column: span 4;
    }


    .invito h3 {
        font-weight: normal;
        font-size: 3em;
        text-align: center;
    }

    .progress>div {
        grid-column: 1/9;

        padding: 20px 5px;

        border-radius: 10px;


    }

    #fl,
    #glovo,
    #tt,
    #fftw {
        border: none;

    }

    #tt .swiper-slide img,
    #fl .swiper-slide img,
    #glovo .swiper-slide img,
    #fftw .swiper-slide img {
        object-fit: cover;
        border-radius: 20px;
    }

    #flo {
        background-color: var(--dark);
        border-radius: 20px;
    }

    #flo .swiper-slide img {
        object-fit: contain;

    }

    /* footer */
    .grid2 {
        margin-top: 13px;


    }

    /* slider */
    .image-container {

        height: 600px;
        /* Set a fixed height for the container */

    }

    #raccolta .swiper-slide img:nth-child(4),
    #raccolta .swiper-slide img:nth-child(5),
    #raccolta .swiper-slide img:nth-child(6),
    #glovo .swiper-slide img:nth-child(7),
    #glovo .swiper-slide img:nth-child(8),
    #glovo .swiper-slide img:nth-child(9) {
        object-fit: contain;
    }

    #glovo .swiper-slide img:hover {

        transition: 0.6s cubic-bezier(.09, .78, .62, .49);
    }

    .illo .swiper-slide img:hover {
        object-fit: contain;
        transition: 0.6s cubic-bezier(.09, .78, .62, .49);
    }

    .description-overlay {
        width: 60%;
    }

    .description-overlay h1 {
        text-align: right;
        padding: 20px 10px;
        color: var(--light);
        margin-bottom: 0px;


    }



    .description-overlay p {
        margin-left: 10px;
        color: var(--light);
        padding: 20px;
        margin-top: none;

    }


    .contact {
        margin-bottom: 60px;
    }

    .mail {
        grid-column: 1/5;
    }

    .phone {
        grid-column: 5/9;
    }

    footer>div:nth-child(1) {
        grid-column: 1/3;

    }

    footer>div:nth-child(2) {
        grid-column: 3/5;

    }

    footer>div:nth-child(3) {
        grid-column: 5/7;

    }

    footer>div:nth-child(4) {
        grid-column: 7/9;

    }
}