/* 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: #181818;
}

/* Tipografia */

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #000000;
    background: var(--primary);
}

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;
}


/* -------------------------------------------------------------------------------- */
/* ! Grid System */
/* -------------------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 30px;
}

/* -------------------------------------------------------------------------------- */
/* ! CORNICETTA */
/* -------------------------------------------------------------------------------- */

.cornicetta {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.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/9;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: ease 0.5s;
}

.on {
    display: none;
}

.boom .on {
    display: block;
    grid-column: 1/9;
    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/5;
}

.title a {
    font-family: 'Silkscreen', cursive;
}

.title span {
    color: var(--accent);
    background: var(--dark);
}

.notte {
    grid-column: 6/7;
    justify-self: end;
    font-size: 2em;
}

/* Crispy McBackon*/

.hb {
    grid-column: 7/9;
    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);
}

.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(--secondary);
    z-index: 2;
    opacity: 1;
    transition: ease 0.5s;
    overflow-y: hidden;
}

.menu__items {
    padding: 50px 20px;
    scroll-behavior: none;
}

.menu__items a {
    font-family: 'silkscreen', cursive;
    font-size: 2em;
    line-height: 2em;
    color: white;
}

.open .menu {
    top: 0;
}

.open .hb {
    position: fixed;
    color: white;
}

.open .icon-hb span {
    background: white;
}

/* -------------------------------------------------------------------------------- */
/* ? COVER */
/* -------------------------------------------------------------------------------- */

.logo3d {
    grid-column: 2/8;
    animation-name: rotate;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    margin-bottom: 30px;
}

@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__title {
    grid-column: 1/9;
    font-size: 4em;
    color: var(--accent);
    justify-self: center;
}

.io__headline {
    grid-column: 1/9;
    justify-self: start;
    font-size: 1.2em;
    font-family: 'Silkscreen', cursive;
    text-align: center;
    margin-bottom: 50px;
}


/* -------------------------------------------------------------------------------- */
/* ? DESIGN */
/* -------------------------------------------------------------------------------- */

#design {
    height: 100%;
    background: #ED1C24;
    background-position: center;
    background-size: cover;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
}

#design h2 {
    z-index: 1;
    color: var(--light);
    font-size: 1.5em;
}

.select {
    grid-column: 2/5;
    display: flex;
}

.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);
    }
}

.loghi {
    grid-column: 5/8;
    max-height: 300px;
    margin-bottom: 50px;
    z-index: 1;
}

.loghi: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;
}

@media (min-width: 768px) {

    .select {
        grid-column: 1/9;
    }

    .loghi {
        grid-column: span 4;
        padding: 70px;
    }
}

@media (min-width: 992px) {


    .logo3d {
        position: absolute;
        grid-column: 1/9;
        justify-self: center;
        width: 40%;
        z-index: 1;
        opacity: 0.3;
        margin: 0;
        padding: 0;
    }

    .cornicetta {
        display: none;
    }

    .site-nav,
    .cornicetta,
    #cover,
    #design,
    #io {
        position: relative;
        z-index: 2;
    }

    .site-nav {
        z-index: 6;
    }

    #io h2 {
        grid-column: 1/3;
    }

    #io p {
        grid-column: 3/7;
    }

    #design {
        height: 300px;
        width: 100%;
        background: rgba(0, 0, 0, 0.448);

    }

    .loghi {
        grid-column: span 2;
        padding: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}




















/* -------------------------------------------------------------------------------- */
/* ! ABOUT.HTML */
/* -------------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------------- */
/* ? FORMAZIONE */
/* -------------------------------------------------------------------------------- */

#formazione h2 {
    grid-column: 1/5;
    justify-self: center;
    font-size: 1.2em;
}

#formazione h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;

}

.formazione {
    grid-column: 5/9;
    justify-self: start;
}

.formazione__item {
    padding: 0 0 20px 0;
}

/* -------------------------------------------------------------------------------- */
/* ? LAVORO */
/* -------------------------------------------------------------------------------- */

#lavoro h2 {
    grid-column: 1/5;
    justify-self: center;
    font-size: 1.2em;
}

#lavoro h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;

}

.lavoro {
    grid-column: 5/9;
    justify-self: start;
}

.lavoro__item {
    padding: 0 0 20px 0;
}