/* -------------------------------------------------------------------------------- */
/* ! Settings */
/* -------------------------------------------------------------------------------- */
/*font*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "tussilago", sans-serif;
}

body {
    font-family: "fantabular-sans-mvb", mono;
    font-weight: 400;
    font-style: normal;
}

/*Tavolozza colore*/
:root {
    --primary: #e83b68;
    --secondary: #e4b7e5;
    --light: #faf0ca;
    --accent: #7ebdc2;
    --dark: #3d2c55;
}

/*Grid system*/
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}

/*reset*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.4em;
}

a {
    text-decoration: none;
    color: var(--dark);
    cursor: pointer;
}

a:hover {
    color: var(--accent);
    transform: scale(1.2, 1.2);
    /*non funzionaaa*/
    transition: 0.2s;
}

/*Utility*/
html {
    scroll-behavior: smooth;
}

/* .res {
    width: 100%;
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.clippy {
    clip-path: circle(50% at 50% 50%);
}

/*animazione*/

@keyframes openPanel {
    0% {
        transform: translateY(-100);
    }

    100% {
        transform: translatey(0);
    }
}

body {
    background-color: #030c2f;
}

/*animazione*/
.animated {
    opacity: 0;
    transform: translateY(80%);
    filter: blur(10px);
    transition: opacity 0.8s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
}

.animated.visible {
    opacity: 1;
    transform: translateY(0%);
    filter: blur(0);
}

.blurred {
    opacity: 0;
    transform: translateY(80%);
    filter: blur(10px);
    transition: opacity 0.8s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
}

.blurred.add {
    opacity: 1;
    transform: translateY(0%);
    filter: blur(0);
}

/* -------------------------------------------------------------------------------- */
/* ! Mobile first */
/* -------------------------------------------------------------------------------- */
p {
    font-size: 0.8em;
    line-height: 1em;
}

/*Header*/
header {
    height: auto;
    z-index: 6;
    width: 100%;
    height: 50px;
    display: grid;
    grid-column: 1/9;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

header::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    max-height: 100vh;
    top: 0;
    left: 0;
    background: linear-gradient(-45deg, #E83B68 50%, #63458a 100%);
    z-index: 5;
    background-size: 100%;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    animation: shrinkHeader 0.8s cubic-bezier(.42, .31, .52, .9) forwards;
    position: fixed;
    opacity: var(--header-opacity, 1);
    transition: opacity 0.2s;
}

@keyframes shrinkHeader {
    from {
        height: 100vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    to {
        height: 50px;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }
}

/*popup*/
.popup-wrapper {
    width: 100%;
    max-width: auto;
    height: 100vh;
    background-color: rgb(232, 59, 104, 0.5);
    z-index: 100;
    opacity: 0;
    animation: showWrapper 0.2s ease 1.2s forwards;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

@keyframes showWrapper {
    to {
        opacity: 1;

    }
}

.popup {
    place-items: center;
    margin-top: 100px;
    grid-column: 2/8;
    justify-self: center;
    width: 300px;
    height: 300px;
    background-color: var(--light);
    color: var(--dark);
    border-radius: 12px;
    box-shadow: 0 0 10px (0, 0, 0, 0.2);
    transform: scale(0.5);
    animation: showPopup 0.2s ease 1.2s forwards;
}

@keyframes showPopup {
    to {
        transform: scale(1);
    }
}

.popup-content {
    padding: 10px;
}

p.headline {
    grid-column: 1/4;
    justify-self: start;
    font-family: 'tussilago', sans-serif;
    font-weight: 600;
    font-style: bold;
}

.popup-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.popup-close {
    cursor: pointer;
}

.popup-close:hover {
    transform: rotate(30deg);
    transform-origin: center;
    transition: 0.2s;
    color: var(--accent);
}

.popup-content {
    grid-column: 1/9;
    justify-self: center;
    line-height: 1em;
}

#a-popup {
    font-family: "fantabular-sans-mvb", mono;
    font-weight: 500;
}

#a-popup:hover {
    color: var(--accent);
    font-size: 1.15em;
    transition: 0.3s;
}

/*navigazione*/
.site-nav {
    max-height: 80px;
    align-items: center;
}


.site-nav__menu {
    display: none;
}

.site-nav>h4 {
    grid-column: 1/3;
    justify-content: left;
    color: white;
    z-index: 6;
    align-items: center;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 400;
    top: 0;
    position: fixed;
}

.site-nav__lingua {
    grid-column: 8/9;
    justify-self: end;
    color: white;
    z-index: 6;
    align-items: center;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 400;
    font-family: "tussilago", sans-serif;
    position: fixed;
    top: 0;
    right: 20px;
}

.site-nav__lingua>a {
    color: white;
}

.site-nav__lingua>a:hover {
    color: var(--accent);
}

/*button top*/
#myBtn {
    display: none;
}

/*hero*/
#hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
    overflow: hidden;
}

#hero>h1 {
    animation: 2s anim-lineUp ease-out 0.2s forwards;
    grid-column: 1/9;
    justify-self: center;
    font-size: 2.5em;
}

@keyframes anim-lineUp {
    0% {
        opacity: 0;
        transform: translateY(80%);
        filter: blur(50px);
        color: white;
    }

    20% {
        opacity: 0;
        filter: blur(30px);
        color: var(--primary);
    }

    50% {
        opacity: 1;
        transform: translateY(0%);
        filter: blur(10px);
        color: var(--secondary);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
        filter: blur(0);
        color: white;
    }
}

#window-1 {
    background-color: var(--dark);
    border-radius: 15px;
    box-shadow: 0 0 20px black;
    grid-column: 2/8;
}

#window-1:hover {
    transform: translateX(15px);
    transition: 0.2s;
}

#window-foto {
    background-color: var(--dark);
    border-radius: 15px;
    box-shadow: 0 0 20px black;
    grid-column: 3/9;
    justify-self: center;
    margin-top: -15px;
}

#window-foto:hover {
    transform: translate3D(5px, 15px, 10px);
    transition: 0.2s;
}

.window-body>img {
    max-width: 200px;
    border-radius: 15px;

}

#window-foto:hover .window-body>img {
    border-radius: 50%;
    transition: 0.5s;
    mix-blend-mode: multiply;
}


#window-2 {
    background-color: var(--dark);
    border-radius: 15px;
    box-shadow: 0 0 20px black;
    grid-column: 1/7;
    justify-self: left;
    margin-top: -15px;
}

#window-2:hover {
    transform: translateY(-15px);
    transition: 0.2s;
}

#window-3 {
    background-color: var(--dark);
    border-radius: 15px;
    box-shadow: 0 0 20px black;
    grid-column: 3/9;
    margin-top: -15px;
    justify-self: end;
}

#window-3:hover {
    transform: translate3D(15px, 20px, -30px);
    transition: 0.2s;
}

.window-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #20172d;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.window-header-left {
    margin-right: auto;
}

.window-header-button {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-radius: 8px;
    background: white;
}

.window-header-button.close {
    background: #ed1c6f;
}

.window-header-button.maximize {
    background: #e8e925;
}

.window-header-button.minimize {
    background: #74c54f;
}

.window-header-right {
    display: flex;
}

.window-header-ellipsis {
    width: 3px;
    height: 3px;
    margin-left: 2px;
    border-radius: 8px;
    background: var(--light);
}

.window-body {
    padding: 20px;
}


#divider {
    cursor: pointer;
    padding-top: 10px;
}

#divider>h2 {
    display: block;
    cursor: pointer;
    font-size: 1em;
}

#divider>h2:hover {
    color: var(--primary);
    transition: 0.3s;
}

#divider {
    animation: 2s anim-lineUp ease-out 0.2s forwards;
}

#down-wrapper {
    display: table;
    width: 100%;
    height: 100%;
}

#wrapper-inner {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;
}

#scroll-down {
    display: block;
    position: relative;
    padding-top: 79px;
    text-align: center;
}

.arrow-down {
    display: block;
    margin: 0 auto;
    width: 10px;
    height: 18px;
}

.arrow-down:after {
    content: '';
    display: block;
    margin: 0;
    padding: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid #b91a2f;
    border-right: 2px solid #b91a2f;
    behavior: url(-ms-transform.htc);
    -moz-transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}

#scroll-title {
    display: block;
    text-transform: uppercase;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

#scroll-title>a {
    color: var(--primary);
}

#scroll-down::before {
    -webkit-animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* Safari 4+ */
    -moz-animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* Fx 5+ */
    -o-animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* Opera 12+ */
    animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* IE 10+, Fx 29+ */
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 90px;
    background: #b91a2f;
    content: ' ';
}

@-webkit-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }

    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}

@-moz-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }

    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}

@-o-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }

    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}

@keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }

    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}

#paschka {
    display: block;
    color: white;
    font-family: helvetica neue, helvetica, arial;
    font-size: 32px;
    text-decoration: none;
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 0px;
    transition: all 0.1s ease;
    background: #000;
    height: 40px;
    line-height: 30px;
    vertical-align: middle;
    width: 40px;
    text-align: center;
    border-radius: 5%;
    bottom: 20px;
    right: 20px;
}

#paschka:hover {
    background: #232323;
    transition: all 0.1s ease;
    color: #f0f0f0;
}



#stickynav {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: visible;
    /* Assicura che il contenitore principale abbia overflow visibile */
}

#navbar {
    background-color: white;
    width: 300px;
    height: 50px;
    border-radius: 32px;
    box-shadow: 0 5px 20px var(--accent);
    position: fixed;
    bottom: 30px;
    overflow: hidden;
    z-index: 10;
    transform: translateZ(0);
}

#item-list {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    text-align: center;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

#item-list>.fa-solid {
    font-size: 1.15em;
}

#item-about,
#item-skill,
#item-port,
#item-mail {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}

#item-about a,
#item-skill a,
#item-port a,
#item-mail a {
    color: var(--primary);
    text-align: center;
}

#item-name {
    font-size: 0.6em;
    font-weight: lighter;
    transform: translate(0, 50px);
    transition: transform 0.5s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    text-align: center;
    position: absolute;
    opacity: 0;
}

#item-about:hover,
#item-skill:hover,
#item-port:hover,
#item-mail:hover {
    color: var(--accent);
    transform: translateY(-6px);
    transition: transform 0.2s ease, color 0.2s ease;
}

#item-about:hover #item-name {
    transform: translate(-8px, 0px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

#item-skill:hover #item-name {
    transform: translate(-15px, 0px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

#item-port:hover #item-name {
    transform: translate(-20px, 0px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

#item-mail:hover #item-name {
    transform: translate(-17px, 0px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

section {
    padding: 20px 0;
}

/*skills*/
#skills {
    padding-top: 50px;
}

#skills>h2 {
    color: white;
    grid-column: 1/9;
    justify-self: center;
    text-align: center;
}

#skills>h2 span {
    color: var(--primary);
}

#skills img {
    width: 80px;
}

#skills>ul {
    grid-column: 2/8;
    justify-self: center;
    list-style-type: none;
}

#skills li {
    grid-column: span 4;
    text-align: center;
    background-color: #ccc;
    padding: 12px;
    border: 1px solid black;
    list-style-type: none;
    border-radius: 12px;
    box-shadow: 0 0 10px black;
    overflow: hidden;
}

#skills li>h4 {
    text-align: center;
    font-size: 0.8em;
}

#skills li:hover {
    background-color: var(--primary);
    transition: 0.2s;
    transform: scale(1.04, 1.04);
}

/*carosello lavori*/

@keyframes anim-lineUp {
    0% {
        opacity: 0;
        transform: translateY(80%);
    }

    20% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        transform: translateY(0%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

#lavori {
    padding-top: 50px;
}

#lavori h2 {
    grid-column: 1/9;
    justify-self: center;
    text-align: center;
    color: white;
}

#lavori h2>span {
    color: var(--primary);
}

.carosello {
    position: relative;
    width: 300px;
    grid-column: 3/7;
    justify-self: center;
    transform-style: flat;
    perspective: none;
    margin: 0;
    max-width: 480px;
    margin-top: -30px;
}

.carosello .box {
    position: relative;
    width: 300px;
    height: 300px;
    background: #000;
    transition: 0.5s;
    transform-style: flat;
    overflow: hidden;
    margin-right: 10px;
    margin-top: 45px;
    border-radius: 12px;
}

.carosello:hover .box {
    transform: rotateY(25deg);
}

.carosello .box:hover~.box {
    transform: rotateY(-25deg);
}

.carosello .box:hover {
    transform: rotateY(0deg) scale(1.05);
    z-index: 1;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5);
}

.carosello .box .imgBx:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #E83B68, #63458a);
    z-index: 1;
    opacity: 0;
    transition: 0.5s;
    mix-blend-mode: multiply;
}

.carosello .box:hover .imgBx:before {
    opacity: 1;
}

.carosello .box .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carosello .box .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    padding: 20px;
    align-items: flex-end;
    box-sizing: border-box;
}

.carosello .box .content h2 {
    color: #fff;
    transition: 0.5s;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 20px;
    transform: translateY(200px);
    transition-delay: 0.3s;
}

.carosello .box:hover .content h2 {
    transform: translateY(0px);
}

.carosello .box .content p {
    color: #fff;
    transition: 0.5s;
    font-size: 14px;
    transform: translateY(200px);
    transition-delay: 0.4s;
}

.carosello .box:hover .content p {
    transform: translateY(0px);
}

.carosello .box .content p>a {
    color: var(--secondary);
    transition: 0.5s;
    font-size: 14px;
    transform: translateY(200px);
    transition-delay: 0.4s;
    font-family: 'tussilago', sans-serif;
    font-weight: 400;
}

.carosello .box .content p>a:hover {
    color: var(--accent);
    transition: 0.5s;
    font-size: 14px;
    font-size: 1.3em;
}


#a-portfolio {
    grid-column: 3/7;
    justify-self: left;
    margin-top: 30px;
}

#a-portfolio>a {
    color: var(--light);
}

.the-arrow {
    width: 1px;
    transition: all 0.2s;
}

.the-arrow.-left {
    position: absolute;
    top: 60%;
    left: 0;
}

.the-arrow.-left>.shaft {
    width: 0;
    background-color: #4c4c4c;
}

.the-arrow.-left>.shaft:before,
.the-arrow.-left>.shaft:after {
    width: 0;
    background-color: #4c4c4c;
}

.the-arrow.-left>.shaft:before {
    transform: rotate(0);
}

.the-arrow.-left>.shaft:after {
    transform: rotate(0);
}

.the-arrow.-right {
    top: 3px;
    display: none;
}

.the-arrow.-right>.shaft {
    width: 1px;
    transition-delay: 0.2s;
}

.the-arrow.-right>.shaft:before,
.the-arrow.-right>.shaft:after {
    width: 8px;
    transition-delay: 0.3s;
    transition: all 0.5s;
}

.the-arrow.-right>.shaft:before {
    transform: rotate(40deg);
}

.the-arrow.-right>.shaft:after {
    transform: rotate(-40deg);
}

.the-arrow>.shaft {
    background-color: #4c4c4c;
    display: block;
    height: 1px;
    position: relative;
    transition: all 0.2s;
    transition-delay: 0;
    will-change: transform;
}

.the-arrow>.shaft:before,
.the-arrow>.shaft:after {
    background-color: #4c4c4c;
    content: "";
    display: block;
    height: 1px;
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.2s;
    transition-delay: 0;
}

.the-arrow>.shaft:before {
    transform-origin: top right;
}

.the-arrow>.shaft:after {
    transform-origin: bottom right;
}

.animated-arrow {
    display: inline-block;
    color: #4c4c4c;
    font-size: 1.25em;
    font-style: italic;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.animated-arrow:hover {
    color: #808080;
}

.animated-arrow:hover>.the-arrow.-left>.shaft {
    width: 64px;
    transition-delay: 0.1s;
    background-color: #808080;
}

.animated-arrow:hover>.the-arrow.-left>.shaft:before,
.animated-arrow:hover>.the-arrow.-left>.shaft:after {
    width: 8px;
    transition-delay: 0.1s;
    background-color: #808080;
}

.animated-arrow:hover>.the-arrow.-left>.shaft:before {
    transform: rotate(40deg);
}

.animated-arrow:hover>.the-arrow.-left>.shaft:after {
    transform: rotate(-40deg);
}

.animated-arrow:hover>.main {
    transform: translateX(17px);
    transform: translateX(80px);
}

.animated-arrow:hover>.main>.the-arrow.-right>.shaft {
    width: 0;
    transform: translateX(200%);
    transition-delay: 0;
}

.animated-arrow:hover>.main>.the-arrow.-right>.shaft:before,
.animated-arrow:hover>.main>.the-arrow.-right>.shaft:after {
    width: 0;
    transition-delay: 0;
    transition: all 0.1s;
}

.animated-arrow:hover>.main>.the-arrow.-right>.shaft:before {
    transform: rotate(0);
}

.animated-arrow:hover>.main>.the-arrow.-right>.shaft:after {
    transform: rotate(0);
}

.animated-arrow>.main {
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.animated-arrow>.main>.text {
    margin: 0 16px 0 0;
    line-height: 1;
    font-family: "fantabular-sans-mvb", mono;
}

.animated-arrow>.main>.the-arrow {
    position: relative;
}

.screen {
    position: relative;
    background: var(--dark);
    border-radius: 15px;
    grid-column: 1/9;
    justify-self: center;
}

.screen:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    bottom: 0;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    z-index: -1;
}

.screen-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #20172d;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.screen-header-left {
    margin-right: auto;
}

.screen-header-button {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-radius: 8px;
    background: white;
}

.screen-header-button.close {
    background: #ed1c6f;
}

.screen-header-button.maximize {
    background: #e8e925;
}

.screen-header-button.minimize {
    background: #74c54f;
}

.screen-header-right {
    display: flex;
}

.screen-header-ellipsis {
    width: 3px;
    height: 3px;
    margin-left: 2px;
    border-radius: 8px;
    background: var(--light);
}

.screen-body {
    display: flex;
}

.screen-body-item {
    flex: 1;
    padding: 50px;
}

.screen-body-item.left {
    display: flex;
    flex-direction: column;
}

.app-title {
    display: flex;
    flex-direction: column;
    position: relative;
    color: var(--primary);
    font-size: 26px;
    font-family: 'tussilago', sans-serif;
}

.app-title:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 25px;
    height: 4px;
    background: #ea1d6f;
}

.app-contact {
    margin-top: auto;
    font-size: 8px;
    color: white;

}

.privacy {
    margin-top: auto;
    font-size: 8px;
    color: white;

}

.privacy {
    margin-top: auto;
    font-size: 8px;
    color: white;

    display: flex;
    align-items: center;
}

.privacy input[type="checkbox"] {
    margin-right: 5px;
    /* Spazio tra il checkbox e il testo del label */
}

#a-privacy {
    color: var(--accent);
}

.app-form-group {
    margin-bottom: 15px;
}

.app-form-group.message {
    margin-top: 40px;
}

.app-form-group.buttons {
    margin-bottom: 0;
    text-align: right;
}

.app-form-control {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--light);
    color: var(--light);
    font-size: 14px;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s;
}

.app-form-control::placeholder {
    color: white;

}

.app-form-control:focus {
    border-bottom-color: var(--light);
}

.app-form-button {
    background: none;
    border: none;
    color: #ea1d6f;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    font-family: 'tussilago', sans-serif;
}

.app-form-button:hover {
    color: #b9134f;
}

@media screen and (max-width: 768px) {
    .screen-body {
        flex-direction: column;
    }

    .screen-body-item.left {
        margin-bottom: 30px;
    }

    .app-title {
        flex-direction: row;
    }

    .app-title span {
        margin-right: 12px;
    }

    .app-title:after {
        display: none;
    }
}

@media screen and (max-width: 992px) {
    .screen-body {
        padding: 40px;
    }

    .screen-body-item {
        padding: 0;
    }
}

#mail {
    margin-bottom: 30px;
}

footer {
    background-color: #010514;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
    padding-bottom: 20px;
    width: 100%;
}

footer>h4 {
    grid-column: 2/8;
    justify-self: center;
    padding: 20px 0px;
}

#footer-left,
#footer-mappa,
#footer-legal,
#footer-3,
#footer-4 {
    grid-column: 1/9;
    text-align: center;
    padding: 20px 0px;
}

#footer-contacts {
    text-align: start;
}

#text-footer {
    color: white;
    font-size: 0.7em;
    line-height: 0.5em;
}

#footer-corso {
    text-align: center;
    font-size: 0.9em;
    line-height: 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#logo-isia {
    margin-top: 10px;
    filter: invert(1);
    width: 150px;
    text-align: end;
}

#corso-text {
    text-align: start;
    margin-top: 10px;
}

#footer-mappa {
    text-align: center;
}

#footer-legal {
    text-align: center;
}

#footer-mappa>ul,
#footer-legal>ul,
#footer-3>ul,
#footer-4>ul {
    list-style-type: none;
}

#footer-3 {
    text-align: center;
}

#footer-4 {
    text-align: center;
    margin-bottom: 70px;
}

#a-footer {
    color: white;
    font-size: 0.8em;
    line-height: 0.75em;
}

#a-footer:hover {
    color: var(--accent);
}

/*pagina portfolio*/
#window5 {
    background-color: var(--dark);
    border-radius: 15px;
    box-shadow: 0 0 20px black;
    width: 300px;
}

#window5:hover {
    transform: translateX(15px);
    transition: 0.2s;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


/* -------------------------------------------------------------------------------- */
/* ! Dispositivi medi */
/* -------------------------------------------------------------------------------- */
@media(min-width:769px) {



    /*sticky nav*/
    #navbar {
        width: 350px;
        height: 55px;
    }

    #item-list {
        transform: translateY(-3px);
    }

    #myBtn {
        position: fixed;
        bottom: 40px;
        right: 30px;
        z-index: 3;
        border: none;
        outline: none;
        background-color: var(--primary);
        color: white;
        cursor: pointer;
        padding: 15px;
        border-radius: 50%;
        font-size: 15px;
        text-align: center;
        width: 55px;
        height: 55px;
    }

    .carosello {
        width: 600px;
        max-width: 750px;
        grid-column: 1/9;
        justify-self: center;
        perspective: none;
        transform-style: flat;
        margin: 0;
        margin-top: -30px;
    }

    .carosello .box {
        width: 600px;
        align-self: center;
    }

    #a-portfolio {
        margin-top: 30px;
    }

    #footer-4 {
        margin-bottom: 80px;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi large */
/* -------------------------------------------------------------------------------- */
@media(min-width: 992px) {
    section {
        height: 100vh;
    }

    p {
        font-size: 1em;
        line-height: 1.2em;
    }

    header {
        z-index: 2;
        height: 70px;
    }

    @keyframes shrinkHeader {
        from {
            height: 100vh;
        }

        to {
            height: 70px;
        }
    }

    .site-nav__lingua {
        display: none;
    }

    .site-nav>h4 {
        grid-column: 1/3;
        justify-content: left;
        border: none;
        text-align: left;
        font-size: 1.1em;
        margin-top: 20px;
        z-index: 7;
    }

    #stickynav {
        display: none;
    }

    #myBtn {
        position: fixed;
        bottom: 20px;
        right: 30px;
        z-index: 3;
        border: none;
        outline: none;
        background-color: var(--primary);
        color: white;
        cursor: pointer;
        padding: 15px;
        border-radius: 50%;
        font-size: 18px;
        text-align: center;
        width: 70px;
        height: 70px;
    }

    #myBtn:hover {
        background-color: var(--dark);
        box-shadow: 0 0 10px black;
        font-size: 20px;
    }

    /*carosello lavori*/
    .carosello {
        grid-column: span 4;
    }

    .site-nav>h4 {
        grid-column: 1/4;
        justify-self: left;

    }

    .site-nav__hamburger {
        cursor: pointer;
        grid-column: 8/9;
        justify-self: end;
        z-index: 6;
        color: white;
        height: 30px;
        width: 50px;
        position: relative;
        transition: 0.25s;
        position: fixed;
        top: 25px;
    }

    .site-nav__hamburger span {
        background-color: white;
        height: 1.5px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;
        transition: var(--micro);
        z-index: 3;
    }

    .site-nav__hamburger span:nth-child(1) {
        top: 0;
        width: 90%;
        opacity: 1;
    }

    .site-nav__hamburger span:nth-child(2) {
        top: 5px;
        width: 0%;
    }

    .site-nav__hamburger span:nth-child(3) {
        top: 5px;
        width: 90%;
        opacity: 1;
    }

    .site-nav__hamburger span:nth-child(4) {
        top: 10px;
        width: 90%;
        opacity: 1;
    }

    .site-nav__menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        width: 100%;
        height: 100%;
        background-color: var(--secondary);
        z-index: 6;
        position: fixed;
        top: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        font-size: 2em;
        font-family: 'tussilago', sans-serif;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out;
    }

    /*in open*/
    .open .site-nav__menu {
        max-height: 100vh;
        transform: translateY(0);
    }

    .open .site-nav__hamburger {
        transform: rotate(180deg);
        top: 10px;
    }

    .open .site-nav__hamburger span:nth-child(1),
    .open .site-nav__hamburger span:nth-child(4) {
        width: 0;
        opacity: 0.4;
    }

    .open .site-nav__hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 80%;
        opacity: 1;
    }

    .open .site-nav__hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 80%;
    }

    .popup-wrapper {
        width: 100vw;
        height: 100vh;
        background-color: rgb(232, 59, 104, 0.5);
        z-index: 100;
        opacity: 0;
        animation: showWrapper 0.2s ease 1.2s forwards;
        z-index: 100;
        position: fixed;
        top: 0;
        left: 0;
    }

    @keyframes showWrapper {
        to {
            opacity: 1;

        }
    }

    .popup {
        place-items: center;
        margin-top: 100px;
        grid-column: 3/7;
        justify-self: center;
        width: 400px;
        height: fit-content;
        padding: 20px;
        background-color: var(--light);
        color: var(--dark);
        border-radius: 12px;
        box-shadow: 0 0 10px (0, 0, 0, 0.2);
        transform: scale(0.5);
        animation: showPopup 0.2s ease 1.2s forwards;
        font-size: 1.3em;
        top: 50%;
    }

    @keyframes showPopup {
        to {
            transform: scale(1);
        }
    }

    #hero {
        height: 100vh;
        place-items: center;
    }

    #hero>h1 {
        font-size: 4em;
    }

    #hero-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: first baseline;
        margin-top: -40px;
    }

    #window-1 {
        grid-column: 1/3;
        height: fit-content;
        justify-self: left;
        margin-top: 40px;
    }

    #window-1:hover {
        transform: translateY(15px);
        transition: 0.2s;
    }

    #window-foto {
        grid-column: 3/5;
        justify-self: center;
        margin-top: 0;
        height: fit-content;

    }

    #window-2 {
        grid-column: 5/7;
        margin-top: 0;
        justify-self: center;
        height: fit-content;


    }

    #window-2:hover {
        transform: translateY(-30px);
        transition: 0.2s;
    }

    #window-3 {
        grid-column: 7/9;
        justify-self: center;
        margin-top: 0;
        height: fit-content;
    }

    #window-3:hover {
        transform: translate3D(-15px, -30px, -40px);
        transition: 0.2s;
    }

    #divider {
        cursor: pointer;
        margin-top: 20px;
    }

    #divider {
        animation: 2s anim-lineUp ease-out 0.2s forwards;
    }

    #divider>h2 {
        display: inline;
        cursor: pointer;
        font-size: 1.2em;
    }

    #divider h2:hover {
        color: var(--accent);
    }

    #down-wrapper {
        margin-top: -40px;
        animation: 2s anim-lineUp ease-out 0.2s forwards;
    }


    #skills li {
        grid-column: span 2;
    }

    #lavori .carosello {
        display: flex;
        flex-wrap: nowrap;
    }

    #lavori {
        place-items: center;
    }

    .carosello {
        position: relative;
        width: 900px;
        grid-column: 1/9;
        justify-self: center;
        transform-style: preserve-3d;
        perspective: 500px;
        margin: 0;
        max-width: 900px;
        margin-top: -50px;
    }

    .carosello .box {
        width: 500px;
        height: 300px;
    }

    #mail {
        height: 100vh;
        padding-top: 10%;
    }

    footer {
        display: inline-block;
    }

    footer>h4 {
        font-size: 1.3em;
        grid-column: 1/9;
        justify-self: center;
    }

    #footer-left {
        grid-column: 1/5;
        justify-self: start;
        padding-left: 20px;
    }

    #footer-contacts {
        text-align: start;
    }

    #text-footer {
        color: white;
        font-size: 0.75em;
    }

    #footer-corso {
        margin-top: 10px;
    }

    #footer-corso>p {
        font-size: .75em;
        line-height: 1.5em;
    }

    #logo-isia {
        margin-top: 10px;
        filter: invert(1);
        width: 150px;
    }


    #footer-mappa {
        grid-column: 5/6;
        justify-self: center;
        text-align: start;
    }

    #footer-legal {
        grid-column: 6/7;
        justify-self: center;
        text-align: start;
    }

    #footer-mappa>ul,
    #footer-legal>ul,
    #footer-3,
    #footer-4 {
        list-style-type: none;
    }

    #footer-3 {
        grid-column: 7/8;
        justify-self: center;
        text-align: start;
    }

    #footer-4 {
        grid-column: 8/9;
        justify-self: center;
        text-align: start;
    }

    #a-footer {
        color: white;
        font-size: 0.8em;
        line-height: 0.75em;
    }

    #a-footer:hover {
        color: var(--accent);
    }
}