/* -------------------------------------------------------------------------------- */
/* ! basici */
/* -------------------------------------------------------------------------------- */

/* Tavolozza */
:root {
    --primary: #F5005E;
    --secondary: #651b37;
    --accent: #62F7F9;
    --light: #e7e7e7;
    --dark: #0b101b;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

.res {
    width: 100%;
    max-width: 500px;
}

html {
    scroll-behavior: smooth;
}

/* tipografia */
body {
    background: var(--dark);
    /* font-family: 'Kanit', sans-serif; */
    font-family: 'Maven Pro', sans-serif;
    /* font-family: 'Raleway', sans-serif; */
}


/* -------------------------------------------------------------------------------- */
/* ! mobile first!! */
/* -------------------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 20px;
}

/* -------------------------------------------------------------------------------- */
/* ! landing page */
/* -------------------------------------------------------------------------------- */

/*? header */
.header {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* border: 1px solid red; */
    margin: 20px 30px;
    transition: 0.8s ease-in-out;
}

/* barra navigazione */
.header__menu {
    /* border: 1px solid red; */
    display: flex;
    margin-top: 70px;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    /* border: 1px solid blue; */
    width: 100%;
}

.site-nav a {
    color: var(--light);
    cursor: pointer;
}

.site-nav li {
    /* border: 1px solid red; */
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
}

.site-nav li:hover {
    background-color: var(--accent);
}

.site-nav li:hover a {
    color: var(--dark);
}

/* .open .header {
    justify-content: space-between;
} */

.open .header__menu {
    height: 100%;
}

/* icona hb */
.hb-icon {
    cursor: pointer;
    width: 25px;
    height: 25px;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--light);
    border-radius: 50%;
    transition: 0.3s ease-in-out;
    scale: 1.8;
}

.hb-icon span {
    position: absolute;
    height: 3px;
    border-radius: 2px;
    width: 100%;
    background-color: var(--light);
    transition: 0.3s ease-in;
    scale: 0.6;
}


.hb-icon span:nth-child(1) {
    top: 30%;
}

.hb-icon span:nth-child(2) {
    top: 45%;
    z-index: 1;
    transition: 0.4s ease-in;
}

.hb-icon span:nth-child(3) {
    top: 45%;
    background-color: var(--primary);
    z-index: 0;
    opacity: 0.3;
}

.hb-icon span:nth-child(4) {
    top: 60%;
}

.open .hb-icon {
    scale: 1.5;
    opacity: 0.8;
}

.open .hb-icon span:nth-child(2) {
    transform: translate(-140%);
    width: 100%;
    left: 0;
}

.open .hb-icon span:nth-child(3) {
    transform: translate(-140%);
    width: 100%;
    left: 0;
}

.open .hb-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 45%;
}

.open .hb-icon span:nth-child(4) {
    transform: rotate(-45deg);
    top: 45%;
}


/*? left sidebar */
.left-sidebar {
    position: fixed;
    z-index: 3;
    bottom: 75px;
    margin: 5px 20px;
    /* border: 1px solid red; */
    overflow: hidden;
    text-align: center;
}

.sidebar__socials li {
    transform: rotate(-90deg) translatex(-150px);
    padding: 10px;
    transition: 0.5s ease-in-out;
    opacity: 0;
    /* border: 1px solid red; */
}

.sidebar__socials a {
    color: var(--light);
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: 0.4s ease-in-out;
    transform: rotate(0deg);
}

.active .sidebar__socials li {
    transform: rotate(-90deg) translatex(0);
    opacity: 1;
}

/* .sidebar__socials li:hover {
    background-color: var(--accent);
} */

.sidebar__socials li:hover a {
    color: var(--accent);
    transform: rotate(450deg);
}

/*! da mettere nel desktop */

/* icona+ */
.social {
    position: relative;
}

.plus-box {
    width: 25px;
    height: 25px;
    border: 1px solid var(--light);
    position: fixed;
    bottom: 40px;
    margin: 5px 26px;
    cursor: pointer;
    border-radius: 50%;
    background: var(--dark);
    z-index: 1;
    opacity: 1;
}

.text {
    position: absolute;
    left: 2px;
    bottom: 2px;
    transition: 0.3s ease;
    color: var(--light);
    overflow: hidden;
    transform: translate(-30px);
    visibility: hidden;
    opacity: 0;
    font-size: 0.8em;
    z-index: 4;
}

.plus-box:hover {
    opacity: 1;
}

.plus-box:hover .text {
    transform: translateX(2px);
    visibility: visible;
}

.plus-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    scale: 0.8;
}

.horizontal-line,
.vertical-line {
    position: absolute;
    background-color: var(--light);
    width: 80%;
    height: 3px;
    border-radius: 2px;
    transition: 0.3s ease;
}

.horizontal-line {
    top: 47%;
    left: 9%;
    transform-origin: center;
}

.vertical-line {
    left: 9%;
    top: 47%;
    transform-origin: center;
    transform: rotate(90deg);
}

.active .horizontal-line {
    transform: rotate(45deg);
}

.active .vertical-line {
    transform: rotate(-45deg);
}

/*? hero */
.container__landing {
    /* max-width: 1400px; */
    width: 60%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid red; */
    margin: 80px auto 150px;
}

#gnamo {
    width: 100%;
    height: 100%;
    max-width: 450px;
    /* border: 1px solid red; */
    position: relative;
    fill: var(--primary);
    overflow: hidden;
    display: block;
    scale: 1.1;
}

#fila1 {
    animation: fila1 4s ease-in-out infinite;
}

@keyframes fila1 {
    0% {
        transform: translateX(-120%);
    }

    20% {
        transform: translateX(0%);
    }

    60% {
        transform: translateX(2%);
    }

    100% {
        transform: translateX(0%);
    }

}

#fila6,
#esclamativo {
    animation: fila6 4s ease-in-out infinite;
}

@keyframes fila6 {
    0% {
        transform: translateX(120%);
    }

    20% {
        transform: translateX(0%);
    }

    60% {
        transform: translateX(-2%);
    }

    100% {
        transform: translateX(0%);
    }

}

#fila2,
#fila3,
#fila4,
#fila5 {

    fill-opacity: 0;
    stroke: var(--primary);
    stroke-width: 3px;
    stroke-dashoffset: 0;
    stroke-dasharray: 3000;
}

#fila2,
#fila4 {
    animation: fila24 4s ease-in-out infinite;
}

#fila3,
#fila5 {
    animation: fila35 4s ease-in-out infinite;
}

@keyframes fila24 {
    0% {
        transform: translateX(0%);
        stroke-dashoffset: 3000;
    }

    50% {
        transform: translateX(-2%);
        stroke-dashoffset: 0;
    }
}

@keyframes fila35 {
    0% {
        transform: translateX(0%);
        stroke-dashoffset: 3000;
    }

    50% {
        transform: translateX(2%);
        stroke-dashoffset: 0;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! about me */
/* -------------------------------------------------------------------------------- */

.aboutme {
    /* border: 1px solid red; */
    margin: 10px auto;
    max-width: 60%;
    justify-items: center;
}

.aboutme__leading {
    grid-row: 1;
    grid-column: 1/9;
    /* border: 1px solid red; */
    white-space: nowrap;
    font-size: 1.5em;
    font-weight: bold;
    justify-self: center;
}

.aboutme__leading span {
    display: inline-block;
    flex-wrap: wrap;
    color: var(--primary);
    padding: 2px;
    opacity: 0.8;
    animation: randomScale 3s infinite;
    animation-delay: 0.5s;
}

@keyframes randomScale {

    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(0.8);
    }

    90% {
        transform: scale(1.4);
    }
}

.aboutme__propic {
    grid-row: 2;
    grid-column: 1/9;
    margin: 30px auto;
    filter: grayscale(0);
    cursor: pointer;
    position: relative;
}

.aboutme__propic:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    opacity: 0;
}

.aboutme__propic::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: 0.2s ease-in-out;
}

.aboutme__propic:hover {
    filter: grayscale(1);
}

.aboutme__propic:hover:before {
    opacity: 0.8;
}

.aboutme__propic:hover:after {
    top: 0;
    left: 0;
}

.aboutme__motto {
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    grid-row: 2;
    z-index: 1;
    visibility: hidden;
    grid-column: 1/9;
    margin: auto;
    padding: 70px 10px;
    border-radius: 10px;
    color: var(--accent);
    text-align: center;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.2em;
    font-weight: bold;
}

.aboutme__propic:hover+.aboutme__motto {
    visibility: visible;
}

.aboutme__text {
    grid-row: 3;
    grid-column: 1/9;
    margin: 15px auto;
    color: var(--light);
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.4em;
    line-height: 1.4em;
}

.aboutme__curriculum {
    grid-column: 1/9;
    margin: 50px auto;
}

.aboutme__curriculum a {
    color: var(--accent);
    padding: 10px;
    border: 2px solid var(--accent);
    border-radius: 50px;
    opacity: 0.8;
    transition: 0.3s ease-in-out;
}

.aboutme__curriculum a:hover {
    opacity: 1;
    letter-spacing: 2px;
    border-radius: 0;
}

/* -------------------------------------------------------------------------------- */
/* ! sezione curriculum */
/* -------------------------------------------------------------------------------- */

/*? logosvg */

.landing-cv {
    /* border: 1px solid red; */
    height: 100vw;
    max-height: 600px;
    width: 60%;
    margin: 40px auto 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cls-1 {
    fill: var(--primary);
}

#logo {
    max-width: 400px;
    /* border: 1px solid red; */
    display: block;
    animation: animazioneLogo 3s ease-in-out infinite;
    padding: 5px;
    grid-column: 2/8;
    transform-origin: center center;
}

#C,
#bocca {
    fill-opacity: 0;
    stroke: var(--accent);
    stroke-width: 3px;
    stroke-dashoffset: 0;
    stroke-dasharray: 3500;
    transform-origin: center center;
    scale: 0;
}

#C {
    animation: animazioneC 3s ease-in-out infinite;
}

#bocca {
    animation: animazioneBocca 3s ease-in-out infinite;
}

@keyframes animazioneLogo {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    80% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@keyframes animazioneC {
    0% {
        stroke-dashoffset: 3500;
        fill-opacity: 0;
        stroke-opacity: 1;
    }

    50% {
        fill-opacity: 0;
        stroke-opacity: 80%;
    }

    80% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
        stroke-opacity: 0;
        scale: 1;
    }

    90% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
        stroke-opacity: 0;
        scale: 1;
    }

    100% {
        scale: 0;
        fill-opacity: 0;
        stroke: var(--dark)
    }
}

@keyframes animazioneBocca {
    0% {
        stroke-dashoffset: 3500;
        fill-opacity: 0;
        stroke-opacity: 0;
    }

    30% {
        stroke-dashoffset: 3500;
        fill-opacity: 0;
        stroke-opacity: 70%;
    }

    45% {
        fill-opacity: 0;
    }

    80% {
        scale: 1;
    }

    90% {
        fill-opacity: 1;
        scale: 1;
    }

    100% {
        stroke-dashoffset: 0;
        fill-opacity: 0;
        stroke-opacity: 0;
        scale: 0;
        stroke: var(--dark)
    }
}

.icon {
    position: absolute;
    top: 99%;
    transform: rotate(90deg);
    width: 80px;
    height: 60px;
    cursor: pointer;
    /* border: 1px solid red; */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
    scale: 0.5;
    opacity: 0.2;
    animation: arrow 1s linear infinite;
}

.arrow {
    position: absolute;
    top: 25px;
    width: 70%;
    height: 5px;
    background-color: var(--light);
    box-shadow: 0 3px 5px rgba(136, 235, 255, 0.4);
    /* animation: arrow 700ms linear infinite; */
}

.arrow::after,
.arrow::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 5px;
    right: -8px;
    background-color: var(--light);
}

.arrow::after {
    top: -12px;
    transform: rotate(45deg);
}

.arrow::before {
    top: 12px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .2);
    transform: rotate(-45deg);
}

.icon:hover {
    scale: 0.8;
    opacity: 0.8;
}

@keyframes arrow {
    0% {
        transform: rotate(90deg) translateX(0);
    }

    50% {
        transform: rotate(90deg) translateX(10px);
    }

    100% {
        transform: rotate(90deg) translateX(0);
    }
}

/*? cv */

.cv {
    background: var(--light);
    /* border: 1px solid red; */
}

.cv h2 {
    color: var(--primary);
    grid-column: 1/3;
    opacity: 0.8;
    margin: 20px;
    font-size: 28px;
    padding: 20px;
}

.formazione,
.esperienze {
    grid-column: 4/9;
    margin: 20px;
    padding: 20px;
}

.date {
    color: var(--dark);
    font-weight: bold;
    opacity: 0.4;
    font-size: 22px;
}

.cv p {
    color: var(--dark);
    line-height: 28px;
    font-size: 18px;
}

/*? skills */
.skills {
    /* border: 1px solid red; */
    margin: 10px auto;
    max-width: 60%;
    justify-items: center;
}

.skills h2 {
    grid-row: 1;
    grid-column: 1/9;
    color: var(--light);
    margin-bottom: 30px;
}

.skills__icons {
    grid-column: 1/9;
    grid-row: 2;
    max-width: 500px;
    /* border: 1px solid red; */
    display: flex;
    flex-direction: row;
    gap: 20px;
    /* margin: 20px;
    padding: 20px;  */
    transition: 0.3s ease-in-out;
    padding: 20px;
}

.skills__icons svg {
    width: 2em;
    height: 100%;
    fill: var(--light);
    transition: border 0.3s ease-in-out;
    /* border: 2px solid blue; */
    border: 0;
    border-radius: 50px;
}

/* .skills__icons svg:hover {
    border: 2px solid blue;
} */

#Figma {
    fill: none;
}