/* reset */

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utilità */

.res {
    width: 100%;
    min-width: 200px;
}

html {
    scroll-behavior: smooth;
}

/* Palette */

:root {
    --primary: #d1d1d1;
    --secondary: #00AEEF;
    --accent: #ED1C24;
    --light: #ffffff;
    --dark: #231F20;
}

/* Tipografia */

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #000000;
    background: var(--primary);
    transition: 0.5s cubic-bezier(.93, .52, .94, .23);
    margin: 0;
}

h1,
h2,
h3,
h3,
h5,
h6 {
    font-family: 'Silkscreen', cursive;
    font-weight: 300;
    color: #000000;
}

a,
p,
li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #000000;
    margin-bottom: 0rem;
}

ol,
ul {
    padding-left: 0em;
}

/* -------------------------------------------------------------------------------- */
/* ! Grid System */
/* -------------------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 30px;
}

/* -------------------------------------------------------------------------------- */
/* ! CORNICETTA */
/* -------------------------------------------------------------------------------- */

.cornicetta {
    grid-column: 1/13;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cornicetta span {
    height: 5px;
    width: 5px;
    background: rgb(0, 0, 0);
}

/* -------------------------------------------------------------------------------- */
/* ! Openin */
/* -------------------------------------------------------------------------------- */

#intro {
    height: 100vh;
    width: 100%;
    background: var(--primary);
    position: fixed;
    z-index: 4;
    left: 0;
}

#intro h1 {
    font-size: 3em;
}

.on,
.off {
    grid-column: 1/13;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: ease 0.5s;
}

.on {
    display: none;
}

.boom .on {
    display: block;
    grid-column: 1/13;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: ease 0.5s;
}

.boom .off {
    display: none;
    transition: ease 0.5s;
}

.boom #intro {
    left: -120%;
    transition: ease 0.5s;
    transition-delay: 0.8s;
}

#intro span {
    color: var(--accent);
    background: var(--dark);
    animation: off 1s infinite;
}

@keyframes off {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* -------------------------------------------------------------------------------- */
/* * Navigazione  */
/* -------------------------------------------------------------------------------- */

.site-nav {
    align-items: center;
    margin-bottom: 20px;
}

.site-nav h1 {
    grid-column: 1/9;
    font-size: 2.5em;
}

.title {
    z-index: 3;
}

.open .title a {
    color: white;
    transition: ease 0.5s;
}

.title a {
    font-family: 'Silkscreen', cursive;
    transition: ease 0.5s;
}

.title span {
    color: var(--accent);
    background: var(--dark);
}

.menu__title {
    display: none;
}


.moon2 {
    grid-column: 9/11;
    justify-self: end;
    z-index: 3;
    height: 30px;
}

/* Crispy McBackon*/

.hb {
    grid-column: 11/13;
    justify-self: end;
    z-index: 3;
}

.icon-hb {
    cursor: pointer;
    width: 2em;
    height: 1.5em;
    transform: rotate(0);
    transition: ease 0.5s;
    z-index: 2;
}

.open .icon-hb {
    transform: rotate(180deg);
    transition: ease 0.5s;
}

.icon-hb span {
    display: block;
    position: absolute;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgb(0, 0, 0);
    transition: ease 0.5s;
}

.icon-hb span:nth-child(1) {
    top: 0;
    transition: ease 0.5s;
}

.icon-hb span:nth-child(2) {
    top: 10px;
    transition: ease 0.5s;
}

.icon-hb span:nth-child(3) {
    top: 10px;
    transition: ease 0.5s;
}

.icon-hb span:nth-child(4) {
    top: 20px;
    transition: ease 0.5s;
    display: block;
}

.open .icon-hb span:nth-child(1) {
    top: 0;
    width: 0%;
    transition: ease 0.5s;
}

.open .icon-hb span:nth-child(2) {
    top: 10px;
    transform: rotate(45deg);
    transition: ease 0.5s;
}

.open .icon-hb span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
    transition: ease 0.5s;
}

.open .icon-hb span:nth-child(4) {
    top: 20px;
    width: 0%;
    transition: ease 0.5s;
}

/*MENU*/

.menu {
    position: fixed;
    top: -100%;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent);
    z-index: 2;
    opacity: 1;
    transition: ease 0.5s;
    overflow-y: hidden;
}

.menu__items {
    padding-top: 150px;
    scroll-behavior: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: ease 0.5s;
}

.menu__items a {
    font-family: 'silkscreen', cursive;
    font-size: 2em;
    opacity: 0;
    transition: ease 0.5s;
    color: white;

}

.open .menu__items a {
    transition: ease 0.5s;
    opacity: 1;
}

.open .menu {
    top: 0;
}

.open .hb {
    color: white;
}

.open .site-nav {
    position: fixed;
    z-index: 5;
}

.open .icon-hb span {
    background: white;
}

.open .moon2 {
    filter: invert(1);
}

/* -------------------------------------------------------------------------------- */
/* ? COVER */
/* -------------------------------------------------------------------------------- */

.cover__logo {
    grid-column: 3/11;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
}

#cover .cornicetta {
    padding-top: 50px;
}

.logo3d {
    animation-name: rotate;
    animation-duration: 15s;
    animation-iteration-count: infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
        filter: invert(0);
    }

    25% {
        transform: rotate(90deg);
        filter: invert(1);
    }

    50% {
        transform: rotate(180deg);
        filter: invert(0);
    }

    75% {
        transform: rotate(270deg);
        filter: invert(1);
    }

    100% {
        transform: rotate(360deg);
        filter: invert(0);
    }
}

/* -------------------------------------------------------------------------------- */
/* * IO */
/* -------------------------------------------------------------------------------- */

#io-1 h2,
#io-2 h2 {
    grid-column: 1/13;
    font-size: 4em;
    color: var(--accent);
    justify-self: center;
    margin-bottom: 50px;
}

#io-1 p,
#io-2 p {
    grid-column: 2/12;
    font-size: 1.2em;
    font-family: 'Silkscreen', cursive;
    text-align: center;
    margin-bottom: 50px;
}

#io-1 {
    display: none;
}

/* -------------------------------------------------------------------------------- */
/* ? DESIGN */
/* -------------------------------------------------------------------------------- */

#design {
    height: 100%;
    background: #ED1C24;
    background-position: center;
    background-size: cover;
    position: relative;
}

#design h2 {
    z-index: 1;
    color: var(--light);
    font-size: 1.5em;
}

.select {
    grid-column: 1/13;
    display: flex;
}

.d-img {
    grid-column: span 6;
    padding: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.select span {
    height: 30px;
    width: 5px;
    background: white;
    animation-name: blink;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes blink {
    0% {
        background: var(--light);
    }

    50% {
        background: rgba(0, 0, 0, 0);
    }

    100% {
        background: var(--light);
    }
}


#design img {
    max-height: 300px;
    margin-bottom: 50px;
    z-index: 1;
}

#design img:nth-child(5) {
    transform: rotate(90deg);
}

#design img {
    transition: ease 0.5s;
    filter: invert(1);
}

#design img:hover {
    filter: invert(0);
    transition: ease 0.5s;
}

/* -------------------------------------------------------------------------------- */
/* ! ABOUT.HTML */
/* -------------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------------- */
/* ? FORMAZIONE */
/* -------------------------------------------------------------------------------- */

#formazione h2 {
    grid-column: 1/7;
    justify-self: center;
    font-size: 1.2em;
}

#formazione h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;

}

.formazione {
    grid-column: 7/13;
    justify-self: start;
}

.formazione__item {
    padding: 0 0 20px 0;
}

/* -------------------------------------------------------------------------------- */
/* ? LAVORO */
/* -------------------------------------------------------------------------------- */

#lavoro h2 {
    grid-column: 1/7;
    justify-self: center;
    font-size: 1.2em;
}

#lavoro h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;

}

.lavoro {
    grid-column: 7/13;
    justify-self: start;
}

.lavoro__item {
    padding: 0 0 20px 0;
}

/* -------------------------------------------------------------------------------- */
/* ! DARK MODE */
/* -------------------------------------------------------------------------------- */

body.dark {
    background: #231F20;
    transition: 0.5s cubic-bezier(.93, .52, .94, .23);
}

.dark .moon2 {
    filter: invert(1);
}

.title2 {
    grid-column: 1/7;
    display: none;
    z-index: 3;
}

.title2 a {
    font-family: 'Silkscreen', cursive;
    color: white;
}

.title2 span {
    color: var(--accent);
    background: black;
}

.dark .title2 {
    display: block;
}

.dark .title {
    display: none;
}

.dark .io__headline {
    color: white;
}

.menu__title2 {
    display: none;
}

.dark .cornicetta span {
    background: white;
}

.dark .hb span {
    background: white;
}

.dark .menu {
    background: #231F20;
}

/* -------------------------------------------------------------------------------- */
/* ! FOOTER */
/* -------------------------------------------------------------------------------- */

footer {
    background: var(--accent);
    padding-top: 100px;
}

footer h2,
footer h3,
footer h4,
footer a,
footer p,
footer li {
    color: white;
}



footer.grid {
    margin-bottom: 0;
}


@media (min-width: 768px) {

    .select {
        grid-column: 1/13;
    }

    #design img {
        grid-column: 1/7;
    }

    .dark .title2 {
        display: none;
    }
}

@media (min-width: 992px) {

    .grid {
        margin-left: 240px;
    }

    #intro.grid {
        padding-left: 0;
        margin-left: 0;
    }

    #io-1 {
        display: grid;
    }

    #io-2 {
        display: none;
    }

    .cover__logo {
        grid-column: 3/11;
        padding: 50px;
    }

    #cover .cornicetta {
        display: none;
    }

    .logo3d {
        padding: 50px;
        animation: none;
    }

    .title {
        display: none;
    }

    .menu__title {
        display: block;
    }

    .menu__title a {
        font-family: 'Silkscreen', cursive;
        color: white;
    }

    .menu__title span {
        color: var(--accent);
        background: black;
    }

    .hb {
        display: none;
    }

    .menu {
        top: 0;
        width: 240px;
        left: 0;
        background: var(--accent);
    }

    .menu__items {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .menu__items a {
        line-height: 2em;
        opacity: 1;
    }

    .menu a {
        font-size: 1.2em;

    }

    /* Dark Mode */

    .menu__title2 {
        display: none;
    }

    .menu__title2 a {
        font-family: 'Silkscreen', cursive;
        color: white;
    }

    .menu__title2 span {
        color: var(--accent);
        background: black;
    }

    .dark .menu__title2 {
        display: block;
    }

    .dark .menu__title {
        display: none;
    }

    .moon2 {
        display: none;
    }

    body.dark .title2 {
        display: none;
    }

}