/* -------------------------------------------------------------------------------- */
/* ! basici */
/* -------------------------------------------------------------------------------- */

/* Tavolozza */
:root {
    --primary: #F5005E;
    --secondary: #651b37;
    --accent: #3fd7d9;
    --light: #e7e7e7;
    --dark: #07080a;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

.res {
    width: 100%;
    max-width: 500px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* tipografia */
body {
    background: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: 'Space Grotesk', sans-serif;
}


/* -------------------------------------------------------------------------------- */
/* ! mobile first!! */
/* -------------------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 20px;
}

/* -------------------------------------------------------------------------------- */
/* ! home page */
/* -------------------------------------------------------------------------------- */

/*? header */
.header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 20px;
    transition: 0.8s ease-in-out;
}

/* barra navigazione */
.header__menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    margin-top: 0px;
    top: -30px;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    background-color: var(--primary);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: 3;
}

.site-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px;
    margin-top: 60px;
    width: 100%;
}

.site-nav a {
    color: var(--light);
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.site-nav li {
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.site-nav li:hover {
    background-color: var(--accent);
}

.site-nav li:hover a {
    color: var(--dark);
}

.open .header__menu {
    height: 580px;
}

/* icona hb */
.hb-icon {
    cursor: pointer;
    width: 25px;
    height: 25px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--light);
    border-radius: 50%;
    transition: 0.3s ease-in-out;
    scale: 1.6;
    z-index: 5;
}

.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 {
    display: none;
}

.social {
    display: none;
}

.btt-big {
    display: none;
}

/*? hero */
.container__landing {
    width: 60%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px auto 175px;
}

#gnamo {
    width: 100%;
    height: 100%;
    max-width: 450px;
    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 {
    margin: 10px auto;
    max-width: 60%;
    justify-items: center;
}

.aboutme__leading {
    grid-row: 1;
    grid-column: 1/9;
    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 img {
    border-radius: 30px;
}

.aboutme__propic:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    opacity: 0;
    border-radius: 30px;
}

.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;
    border-radius: 30px;
}

.aboutme__propic:hover {
    filter: grayscale(1);
}

.aboutme__propic:hover:before {
    opacity: 0.8;
}

.aboutme__propic:hover:after {
    top: 0;
    left: 0;
}

.aboutme__motto {
    display: flex;
    align-items: center;
    grid-row: 2;
    z-index: 1;
    visibility: hidden;
    grid-column: 1/9;
    margin: auto;
    padding: 70px 10px;
    border-radius: 30px;
    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.2em;
    line-height: 1.4em;
}

.aboutme__curriculum {
    grid-column: 1/9;
    margin: 50px auto;
}

.aboutme__curriculum a {
    color: var(--accent);
    padding: 10px;
    border: 3px solid var(--accent);
    border-radius: 50px;
    opacity: 1;
    transition: 0.3s ease-in-out;
}

.aboutme__curriculum a:hover {
    opacity: 1;
    letter-spacing: 2px;
    border-radius: 0;
}

/* -------------------------------------------------------------------------------- */
/* ! sezione curriculum */
/* -------------------------------------------------------------------------------- */

/*? logosvg */
.landing-cv {
    height: 100vw;
    width: 60%;
    margin: 70px auto 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cls-1 {
    fill: var(--primary);
}

#logo {
    max-width: 200px;
    display: block;
    margin-top: 30px;
    animation: animazioneLogo 3s ease-in-out infinite;
    -webkit-animation: animazioneLogo 3s ease-in-out infinite;
    padding: 5px;
    grid-column: 2/8;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    opacity: 1;
}

#C,
#bocca {
    fill-opacity: 0;
    stroke: var(--accent);
    stroke-width: 3px;
    stroke-dashoffset: 0;
    stroke-dasharray: 3500;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    transform: scale(0);
    -webkit-transform: scale(0);
}

#C {
    animation: animazioneC 3s ease-in-out infinite;
    -webkit-animation: animazioneC 3s ease-in-out infinite;
}

#bocca {
    animation: animazioneBocca 3s ease-in-out infinite;
    -webkit-animation: animazioneBocca 3s ease-in-out infinite;
}

@keyframes animazioneLogo {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    80% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes animazioneLogo {
    0% {
        -webkit-transform: rotate(0deg);
        opacity: 0;
    }

    80% {
        -webkit-transform: rotate(360deg);
    }

    100% {
        -webkit-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;
        transform: scale(1);
    }

    90% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
        stroke-opacity: 0;
        transform: scale(1);
    }

    100% {
        transform: scale(0);
        fill-opacity: 0;
        stroke: var(--dark);
    }
}

@-webkit-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;
        -webkit-transform: scale(1);
    }

    90% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
        stroke-opacity: 0;
        -webkit-transform: scale(1);
    }

    100% {
        -webkit-transform: 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% {
        transform: scale(1);
    }

    90% {
        fill-opacity: 1;
        transform: scale(1);
    }

    100% {
        stroke-dashoffset: 0;
        fill-opacity: 0;
        stroke-opacity: 0;
        transform: scale(0);
        stroke: var(--dark);
    }
}

@-webkit-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% {
        -webkit-transform: scale(1);
    }

    90% {
        fill-opacity: 1;
        -webkit-transform: scale(1);
    }

    100% {
        stroke-dashoffset: 0;
        fill-opacity: 0;
        stroke-opacity: 0;
        -webkit-transform: scale(0);
        stroke: var(--dark);
    }
}


.icon {
    position: absolute;
    top: 100%;
    margin: 90px auto;
    left: 45%;
    transform: rotate(90deg);
    width: 80px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    transform-origin: center center;
    opacity: 0.2;
    animation: arrow 1s linear infinite;
}

.arrow {
    position: absolute;
    top: 25px;
    width: 70%;
    height: 5px;
    background-color: var(--light);
}

.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;
    transform: rotate(-45deg);
}

.icon:hover {
    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);
    padding: 20px;
}


.cv h2 {
    color: var(--primary);
    grid-column: 1/9;
    opacity: 0.8;
    margin: 20px;
    font-size: 28px;
    padding: 20px;
    text-decoration: underline;
    z-index: 0;
}

.formazione,
.esperienze,
.esperienze2 {
    grid-column: 1/9;
    margin: 20px;
    padding: 20px;
}

.date {
    color: var(--dark);
    font-weight: bold;
    opacity: 0.4;
    font-size: 18px;
}

.cv p {
    color: var(--dark);
    line-height: 28px;
    font-size: 16px;
}

.client {
    font-style: italic;
}

/*? skills */
.skills {
    margin: 10px auto;
    max-width: 60%;
    justify-items: center;
}

.skills h2 {
    grid-row: 1;
    grid-column: 1/9;
    color: var(--light);
    margin-bottom: 30px;
    margin-top: 50px;
    font-size: 28px;
}

.skills__icons {
    grid-column: 1/9;
    grid-row: 2;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.sc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100px;
    transform: translateX(0);
    transition: 0.5s ease-in-out;
}

.sc svg {
    width: 4em;
    height: 40px;
    width: 40px;
    fill: var(--dark);
    background-color: var(--light);
    border-radius: 50px;
    box-shadow: 0 3px 5px rgba(237, 237, 237, 0.3);
    cursor: pointer;
    z-index: 5;
    padding: 10px;
    transform: translateX(0);
    transition: 0.5s ease-in-out;
}

.sc:hover svg {
    transform: translateX(-140px);
}

.line,
.line1,
.line2,
.line3,
.line4,
.line5 {
    position: absolute;
    display: block;
    background-color: rgba(231, 231, 231, 0.5);
    width: 0;
    height: 6px;
    margin: 10px auto;
    transition: 0.5s ease-in-out;
    border-radius: 50px;
}

.line::after,
.line1::after,
.line2::after,
.line3::after,
.line4::after,
.line5::after {
    position: absolute;
    content: '';
    background-color: var(--accent);
    width: 0;
    height: 10px;
    opacity: 1;
    transition: 0.5s ease-in-out;
    transition-delay: 0.5s;
    bottom: -1.9px;
    border-radius: 50px;
}

.sc:hover .line,
.sc:hover .line1,
.sc:hover .line2,
.sc:hover .line3,
.sc:hover .line4,
.sc:hover .line5 {
    width: 200px;
}

.sc:hover .line::after {
    width: 180px;
}

.sc:hover .line1::after {
    width: 180px;
}

.sc:hover .line2::after {
    width: 150px;
}

.sc:hover .line3::after {
    width: 160px;
}

.sc:hover .line4::after {
    width: 130px;
}

.sc:hover .line5::after {
    width: 150px;
}

#Figma {
    fill: #F24E1E;
}

/* -------------------------------------------------------------------------------- */
/* ! sezione lavori */
/* -------------------------------------------------------------------------------- */

.landing-works {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 150px;
    max-width: 80%;
    height: 100vw;
    transition: 0.3s ease-in-out;
}

.landing-works__site-nav {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    margin-top: 40%;
    margin-left: 15%;
    margin-right: 15%;
    width: 100%;
    font-size: 1.2em;
}

.landing-works__site-nav li {
    border: 3px solid var(--accent);
    padding: 10px;
    border-radius: 50px;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.landing-works__site-nav a {
    color: var(--light);
    cursor: pointer;
    padding: 0px auto;
    transition: 0.3s ease-in-out;
}

.landing-works__site-nav li:hover {
    background-color: var(--light);
}

.landing-works__site-nav li:hover a {
    opacity: 1;
    letter-spacing: 1px;
    color: var(--dark);
    font-weight: bold;
}

.wrapper-banner {
    position: relative;
    overflow: hidden;
    margin-top: 25px;
    margin-bottom: 25px;
    z-index: -1;
}

.wrapper-banner::before {
    content: "";
    position: absolute;
    top: -1;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 0;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    background-color: var(--dark);
    z-index: 0;
}

.wrapper-banner::after {
    content: "";
    position: absolute;
    bottom: -1;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 0;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    background-color: var(--dark);
}

.banner {
    position: relative;
    width: 100%;
    height: 150px;
    padding: 10px;
    margin: auto auto;
    background: var(--light);
    color: var(--primary);
    font-size: 1.2em;
    overflow: hidden;
    z-index: -1;
}

.banner p {
    overflow: hidden;
    animation: banner 5s ease-in-out infinite;
    margin: 60px auto;
    text-align: center;
    font-weight: bold;
}

@keyframes banner {
    0% {
        transform: translateX(-100%);
    }

    46% {
        opacity: 1;
    }

    50% {
        transform: translateX(-3%);
        opacity: 0.5;
    }

    54% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
    }
}

.works {
    margin: 20px auto;
    max-width: 100%;
    justify-items: center;
    background: var(--dark);
}

.works h2 {
    grid-column: 1/9;
    margin-top: 40px;
    margin-bottom: 40px;
    color: var(--light);
    border: 3px solid var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
}

.brand-identity,
.motion,
.web,
.other {
    grid-column: 2/8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    scale: 1;
    transition: 0.3s ease-in-out;
}

.brand-identity__mugello,
.brand-identity__planetA,
.brand-identity__whyelen,
.motion__enigma,
.motion__capecchi,
.motion__pb,
.motion__rotoscoping,
.web__memofonte,
.web__libriliberi,
.other__cartagine,
.other__deck,
.other__gelato {
    transition: 0.3s ease-in-out;
    position: relative;
    border-radius: 30px;
}

.brand-identity__mugello img,
.brand-identity__planetA img,
.brand-identity__whyelen img,
.motion__enigma video,
.motion__capecchi video,
.motion__pb video,
.motion__rotoscoping video,
.web__memofonte img,
.web__libriliberi img,
.other__cartagine img,
.other__deck img,
.other__gelato img {
    border-radius: 30px;
}

.po-text,
.po-text-static {
    color: var(--light);
    overflow: visible;
    padding: 20px;
    margin-top: 10px;
    z-index: 1;
    opacity: 0.7;
    cursor: pointer;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.po-text a,
.po-text-static a {
    color: var(--light);
}

.bi-cta {
    height: 40px;
    width: 40px;
    border: 3px solid var(--primary);
    border-radius: 50px;
    transform: translateX(-300px) rotate(90deg);
    transition: 0.4s ease-in-out;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi-cta a {
    transform: rotate(-90deg);
    color: var(--light);
    padding: 20px;
    font-weight: bold;
}

.po-text h3,
.po-text-static h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    transform: translate(0) translateY(0);
    transition: 0.3s ease-in-out;
}

.title {
    font-size: 1.2em;
    font-style: italic;
    margin: 5px auto;
    transform: translate(0);
    transition: 0.3s ease-in-out;
}

.subtitle {
    transform: translate(0);
    transition: 0.3s ease-in-out;
}

.title-static {
    font-size: 1.1em;
    font-style: italic;
    margin: 5px auto;
    transform: translate(0);
}

.subtitle-static {
    transform: translate(0);
    font-size: 0.9em;
}

.po-text:hover,
.po-text-static:hover {
    opacity: 1;
}

.po-text:hover h3,
.po-text:hover .title,
.po-text:hover .subtitle {
    transform: translate(90px);
    opacity: 1;
}

.po-text:hover .bi-cta {
    transform: translateX(-170px) rotate(90deg);
    opacity: 1;
}

.bi-cta:hover {
    background: var(--primary);
    color: var(--light);
    border: 3px solid var(--light);
}

/* -------------------------------------------------------------------------------- */
/* ! sezione contatti */
/* -------------------------------------------------------------------------------- */
.landing-contacts {
    height: 100vw;
    margin: 150px auto 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing-contacts h1 {
    font-size: 3em;
}

.t1 {
    color: var(--light);
}

.t2 {
    color: var(--primary);
}

.landing-contacts h3 {
    font-size: 1.4em;
    font-weight: 400;
    margin-top: 20px;
}

.landing-contacts h4 {
    font-size: 1.2em;
    font-weight: 400;
    font-style: italic;
    margin-top: 40px;
    text-align: center;
}

.cta-contacts {
    margin-top: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 1.2em;
    position: relative;
    border-radius: 30px;
    transition: 0.3s ease-in-out;
    opacity: 0.7;
}

.cta-contacts::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease-in-out;
}

.cta-contacts:hover {
    opacity: 1;
}

.cta-contacts:hover::after {
    width: 110%;
}

.cta-contacts a {
    color: var(--light);
}

.circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary);
    cursor: pointer;
    overflow: hidden;
    margin: -20px auto;
    transition: 0.3s ease-in-out;
    position: relative;
    visibility: hidden;
    opacity: 0;
    transform: translateX(0)
}

.circle i {
    color: var(--light);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50px) translateY(-100%);
    scale: 0;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

.cta-contacts:hover .circle {
    visibility: visible;
    opacity: 1;
    transform: translate(20px);
}

.cta-contacts:hover .circle i {
    scale: 1;
    opacity: 1;
    transform: translateX(-50%) translateY(-50%);
}

.social-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    margin: 0 auto 60px;
    padding: 20px;
    gap: 20px;
}

.social-icons i {
    color: var(--light);
    font-size: 2.5em;
    transition: 0.3s ease-in-out;
}

.social-icons i:hover {
    transform: translateY(-10px);
    color: var(--accent);
}

/* -------------------------------------------------------------------------------- */
/* ! footer */
/* -------------------------------------------------------------------------------- */

.footer {
    display: block;
    margin-top: 60px;
    background: var(--light);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer__top,
.footer__middle,
.footer__bottom,
.footer__logo {
    grid-column: 1/9;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer__top p,
.footer__middle p {
    color: var(--primary);
    font-size: 1.3em;
    font-weight: bold;
    margin: 10px auto;
    text-align: center;
}

.footer__top a,
.footer__middle a {
    position: relative;
    color: var(--dark);
    margin: 10px auto;
    text-align: center;
}

.footer__top a::after,
.footer__middle a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease-in-out;
}

.footer__top a:hover::after,
.footer__middle a:hover::after {
    width: 0;
}

.footer__logo img {
    scale: 0.6;
    margin-bottom: 10px;
}

.footer__bottom-cta {
    margin: 5px auto;
    color: var(--primary);
}

.footer__bottom-cta a {
    color: var(--primary);
    opacity: 0.5;
}

.footer__bottom-cta a:hover {
    opacity: 1;
}

.btt {
    position: relative;
    margin: 40px auto 10px;
    transform: rotate(90deg);
    transition: 0.3s;
    z-index: 3;
}

.btt span:nth-child(1) {
    display: block;
    width: 25px;
    height: 6px;
    transform: rotate(-45deg);
    margin: 7px auto;
    background-color: var(--primary);
    border-radius: 3px;
    margin-bottom: 8px;
    z-index: 3;
}

.btt span:nth-child(2) {
    display: block;
    width: 25px;
    height: 6px;
    transform: rotate(45deg);
    margin: 7px auto;
    background-color: var(--primary);
    border-radius: 3px;
    margin-top: 8px;
    z-index: 3;
}

.btt:hover {
    transform: translateY(-10px) rotate(90deg);
}

/* -------------------------------------------------------------------------------- */
/* ! sezione mugello */
/* -------------------------------------------------------------------------------- */
.landing-project {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 60px;
    z-index: -1;
}

.landing-project::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 35px;
    z-index: 0;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    background-color: var(--dark);
}

.project-description {
    margin: 11% auto;
    width: 80%;
}

.project-description h1 {
    color: var(--primary);
    font-size: 2.3em;
    font-weight: bold;
    margin: 10px auto;
}

.project-description p {
    color: var(--light);
    font-size: 1.2em;
    line-height: 1.5em;
    margin: 20px auto;
}

.wrapper-project {
    background: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -10;
}

.wrapper-project img {
    width: 100%;
    background: white;
}

.hearth-project {
    position: relative;
    background: var(--dark);
    gap: 40px;
}

.hearth-project::after {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 35px;
    z-index: -1;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    background-color: var(--dark);
}

.hearth-project::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 35px;
    z-index: -1;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    background-color: var(--dark);
}

.project-text {
    grid-column: 1/9;
    color: var(--light);
    padding: 20px;
    margin: 20px auto;
}

.project-text h1 {
    font-size: 1.9em;
    margin: 10px auto;
}

.project-text p {
    font-size: 1.2em;
    line-height: 1.3em;
    margin: 20px auto;
}

.project-text h2 {
    font-size: 1.4em;
    margin: 50px auto;
    margin-bottom: 10px;
    color: var(--primary);
}

.fiore {
    margin: 30px auto;
    max-width: 530px;
}

.vari {
    margin: 30px auto;
    max-width: 470px;
}

.hearth-project img,
.hearth-project video {
    grid-column: 1/9;
    max-width: 350px;
    border-radius: 30px;
    margin: 10px auto;
}

/* -------------------------------------------------------------------------------- */
/* ! media query large*/
/* -------------------------------------------------------------------------------- */
@media (min-width: 992px) {

    /*? header */
    .header__menu {
        margin-top: 40px;
        top: 0px;
        background-color: transparent;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin-top: 0px;
    }

    .site-nav a {
        font-size: 1.6em;
    }

    .open .header__menu {
        height: 140%;
    }

    /*? vari */
    /* chevron */
    .btt-big {
        position: relative;
        transform: rotate(90deg);
        position: fixed;
        right: 37px;
        margin: 5px;
        bottom: 40px;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        border: 2px solid var(--light);
        background-color: var(--dark);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        scale: 1.4;
        transition: 0.3s ease-in-out;
        transform-origin: center center;
        display: none;
        z-index: 10;
    }

    .btt-big span:nth-child(1) {
        display: block;
        width: 15px;
        height: 3px;
        transform: rotate(-45deg) translateY(-1px);
        margin: 8px auto;
        background-color: var(--light);
        border-radius: 3px;
        margin-bottom: 4px;
        z-index: 3;
        transition: 0.3s ease-in-out;
        z-index: 10;
    }

    .btt-big span:nth-child(2) {
        display: block;
        width: 15px;
        height: 3px;
        transform: rotate(45deg) translateY(1px);
        margin: 15px auto;
        background-color: var(--light);
        border-radius: 3px;
        margin-top: 4px;
        z-index: 3;
        transition: 0.3s ease-in-out;
        z-index: 10;
    }

    .btt-big:hover {
        transform: translateY(-10px) rotate(90deg);
        border: 2px solid var(--primary);
        background-color: var(--primary);
    }

    /* left sidebar */
    .left-sidebar {
        position: fixed;
        z-index: 10;
        bottom: 75px;
        margin: 10px 28px;
        /* border: 1px solid red; */
        overflow: hidden;
        text-align: center;
        display: block;
    }

    .sidebar__socials li {
        transform: rotate(-90deg) translatex(-150px);
        padding: 10px;
        transition: 0.5s ease-in-out;
        opacity: 0;
        z-index: 10;
    }

    .sidebar__socials a {
        color: var(--primary);
        display: flex;
        flex-direction: column;
        gap: 30px;
        transition: 0.4s ease-in-out;
        transform: rotate(0deg);
        font-size: 1.3em;
        z-index: 10;
    }

    .active .sidebar__socials li {
        transform: rotate(-90deg) translatex(0);
        opacity: 1;
    }

    .sidebar__socials li:hover a {
        color: var(--accent);
        transform: rotate(450deg);
    }

    /* icona+ */
    .social {
        position: fixed;
        z-index: 10;
        display: block;
    }

    .plus-box {
        width: 25px;
        height: 25px;
        border: 2px solid var(--light);
        background-color: var(--dark);
        position: fixed;
        bottom: 40px;
        margin: 5px 37px;
        cursor: pointer;
        border-radius: 50%;
        z-index: 10;
        opacity: 1;
        scale: 1.4;
    }

    .text {
        position: absolute;
        left: 2px;
        bottom: -620px;
        transition: 0.3s ease;
        color: var(--primary);
        overflow: hidden;
        visibility: hidden;
        transform: translateX(20px);
        opacity: 0;
        font-size: 1.2em;
        z-index: 10;
    }

    .social:hover .text {
        transform: translateX(80px);
        visibility: visible;
        opacity: 1;
    }

    .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;
        z-index: 10;
    }

    .horizontal-line,
    .vertical-line {
        position: absolute;
        background-color: var(--light);
        width: 80%;
        height: 3px;
        border-radius: 2px;
        transition: 0.3s ease;
        z-index: 10;
    }

    .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);
    }

    .footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__top,
    .footer__middle,
    .footer__bottom,
    .footer__logo {
        margin: 10px auto;

    }

    .footer__top p {
        font-size: 1.5em;
    }

    .footer__top a,
    .footer__middle a {
        font-size: 1.1em;
    }

    .footer__middle {
        display: none;
    }

    .btt {
        display: none;
    }

    /* header */
    .hb-icon {
        scale: 1.8;
    }


    .container__landing {
        margin: 100px auto 220px;
    }

    .aboutme__leading {
        font-size: 2.5em;
    }

    .aboutme__text {
        font-size: 1.5em;
    }

    .aboutme__motto {
        font-size: 1.5em;
    }

    .aboutme__curriculum a {
        font-size: 1.3em;
    }

    .aboutme__curriculum a:hover {
        letter-spacing: 3px;
    }

    /*? sezione cv */

    .landing-cv {
        max-width: 1200px;
        height: 88vh;
        margin: 10px auto 0px;
    }

    #logo {
        max-width: 400px;
        margin-bottom: 100px;
    }

    .cv h2 {
        grid-column: 2/3;
        font-size: 32px;
    }

    .formazione,
    .esperienze,
    .esperienze2 {
        grid-column: 4/9;
        font-size: 1.3em;
    }

    .cv p {
        color: var(--dark);
        line-height: 28px;
        font-size: 20px;
    }

    .date {
        font-size: 1.2em;
    }

    .skills h2 {
        font-size: 32px;
    }

    .icon {
        display: none;
    }

    /*? sezione porftfolio */
    .landing-works {
        max-width: 1200px;
        height: 68vh;
        margin: 10px auto;
    }

    .landing-works__site-nav {
        gap: 40px;
        padding: 40px;
        margin-top: 10px;
        width: 25%;
        font-size: 1.5em;
    }

    .banner p {
        font-size: 1.4em;
    }

    .brand-identity,
    .motion,
    .web,
    .other {
        grid-column: 1/9;
        gap: 100px;
    }

    .brand-identity__mugello,
    .brand-identity__planetA,
    .brand-identity__whyelen,
    .motion__enigma,
    .motion__capecchi,
    .motion__pb,
    .motion__rotoscoping,
    .web__memofonte,
    .web__libriliberi,
    .other__cartagine,
    .other__deck,
    .other__gelato {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .po-text,
    .po-text-static {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .bi-cta {
        height: 60px;
        width: 60px;
        transform: translateX(-300px) rotate(90deg);
        border: 5px solid var(--primary);
    }

    .bi-cta:hover {
        border: 5px solid var(--light);
    }

    .bi-cta a {
        font-size: 1.2em;
    }

    .po-text h3,
    .po-text-static h3 {
        font-size: 1.8em;
    }

    .title,
    .title-static {
        font-size: 1.5em;
    }

    .subtitle,
    .subtitle-static {
        font-size: 1.3em;
    }

    .po-text:hover,
    .po-text-static:hover {
        opacity: 1;
    }

    .po-text:hover h3,
    .po-text:hover .title,
    .po-text:hover .subtitle {
        transform: translate(200px);
    }

    .po-text:hover .bi-cta {
        transform: translateX(-400px) rotate(90deg);
    }

    /*? sezione contatti */
    .landing-contacts {
        height: 77vh;
        margin: 40px auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .landing-contacts h1 {
        font-size: 5em;
        letter-spacing: -4px;
    }

    .landing-contacts h3 {
        font-size: 1.8em;
    }

    .landing-contacts h4 {
        font-size: 1.4em;
    }

    .cta-contacts {
        font-size: 1.5em;
    }

    .cta-contacts::after {
        bottom: -8px;
        height: 4px;
    }

    .circle {
        width: 45px;
        height: 45px;
    }

    .circle i {
        font-size: 1.3em;
    }

    .social-icons {
        justify-content: center;
        gap: 70px;
    }

    .social-icons i {
        font-size: 3em;
    }

    /*? mugello */
    .landing-project {
        margin: 30px auto 0px;
    }

    .project-description h1 {
        font-size: 3em;
    }

    .project-description p {
        color: var(--light);
        font-size: 2em;
        line-height: 1.5em;
        margin: 20px auto;
    }

    .wrapper-project img {
        width: 100%;
        background: white;
    }

    .project-text {
        grid-column: 2/8;
    }

    .project-text h1 {
        font-size: 2.5em;
    }

    .project-text p {
        font-size: 1.5em;
        line-height: 1.3em;
        margin: 20px auto;
    }

    .project-text h2 {
        font-size: 1.8em;
        margin: 50px auto;
        margin-bottom: 10px;
        color: var(--primary);
    }

    .fiore {
        margin: 30px auto;
        max-width: 800px;
    }

    .vari {
        margin: 30px auto;
        max-width: 700px;
    }

    .hearth-project img,
    .hearth-project video {
        grid-column: 1/9;
        max-width: 600px;
        border-radius: 30px;
    }
}


/* -------------------------------------------------------------------------------- */
/* ! media query medium */
/* -------------------------------------------------------------------------------- */
@media screen and (min-width: 420px) and (max-width: 991px) {

    /* vari */
    .site-nav a {
        font-size: 1.4em;
    }

    .aboutme__leading {
        font-size: 1.6em;
    }

    .aboutme__text {
        font-size: 1.6em;
    }

    .aboutme__motto {
        font-size: 1.6em;
    }

    .aboutme__curriculum a {
        font-size: 1.1em;
    }

    /*? cv */
    .landing-cv {
        max-width: 1200px;
        height: 87vh;
        margin: 60px auto 0px;
    }

    #logo {
        max-width: 300px;
        margin-bottom: 120px;
    }


    .cv h2 {
        grid-column: 1/9;
        font-size: 28px;
    }

    .formazione,
    .esperienze,
    .esperienze2 {
        grid-column: 1/9;
    }

    .cv p {
        color: var(--dark);
        line-height: 28px;
        font-size: 18px;
    }

    .skills h2 {
        font-size: 28px;
    }

    .edu {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /*? sezione porftfolio */
    .landing-works {
        max-width: 1200px;
        height: 68vh;
        margin: 10px auto;
    }

    .landing-works__site-nav {
        gap: 40px;
        padding: 40px;
        margin-top: 10px;
        width: 45%;
        font-size: 1.2em;
    }

    .banner p {
        font-size: 1.2em;
    }

    .brand-identity,
    .motion,
    .web,
    .other {
        grid-column: 1/9;
        gap: 100px;
    }

    .brand-identity__mugello,
    .brand-identity__planetA,
    .brand-identity__whyelen,
    .motion__enigma,
    .motion__capecchi,
    .motion__pb,
    .motion__rotoscoping,
    .web__memofonte,
    .web__libriliberi,
    .other__cartagine,
    .other__deck,
    .other__gelato {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .po-text,
    .po-text-static {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .bi-cta {
        height: 50px;
        width: 50px;
        transform: translateX(-250px) rotate(90deg);
    }

    .bi-cta a {
        font-size: 1em;
    }

    .po-text h3,
    .po-text-static h3 {
        font-size: 1.4em;
    }

    .title,
    .title-static {
        font-size: 1.1em;
    }

    .subtitle,
    .subtitle-static {
        font-size: 1em;
    }

    .po-text:hover,
    .po-text-static:hover {
        opacity: 1;
    }

    .po-text:hover h3,
    .po-text:hover .title,
    .po-text:hover .subtitle {
        transform: translate(30px);
    }

    .po-text:hover .bi-cta {
        transform: translateX(10%) rotate(90deg);
    }

    /*? mugello */
    .wrapper-project img {
        width: 1200px;
    }

    .project-text h1 {
        font-size: 1.9em;
    }

    .project-text p {
        font-size: 1.3em;
    }

    .project-text h2 {
        font-size: 1.6em;
    }

    .fiore {
        max-width: 580px;
    }

    .vari {
        max-width: 500px;
    }

    .hearth-project img,
    .hearth-project video {
        grid-column: 1/9;
        max-width: 350px;
    }

    /*? sezione contatti */
    .landing-contacts {
        height: 70vh;
        margin: 80px auto;
    }

    .landing-contacts h1 {
        font-size: 4.2em;
        letter-spacing: -3px;
    }

    .landing-contacts h3 {
        font-size: 1.6em;
    }

    .landing-contacts h4 {
        font-size: 1.3em;
    }

    .cta-contacts {
        font-size: 1.2em;
    }

    .cta-contacts::after {
        bottom: -8px;
        height: 4px;
    }

    .circle {
        width: 40px;
        height: 40px;
    }

    .circle i {
        font-size: 1.2em;
    }

    .social-icons {
        justify-content: center;
        gap: 50px;
    }

    .social-icons i {
        font-size: 2.8em;
    }
}