/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */
/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utlity */
.clippy {
    grid-column: 5/9;
    /* clip-path: circle(); */
    /* clip-path: polygon(0% 20%, 41% 39%, 60% 0%, 100% 50%, 60% 100%, 63% 45%, 0% 80%); */
}

.res a h3 {
    display: none;
}

.res {
    width: 100%;
    /* max-width: 560px; */
    /* max-width: 100%; */
    transition: all 0.3s;
    display: block;
    width: 100%;
    height: auto;
}


.res:hover {
    /* transform: scale(0.97); */
    opacity: 0.6;
}


.resno {
    width: 100%;
    /* max-width: 560px; */
    display: block;
    width: 100%;
    height: auto;
}

.resno:hover {
    transform: scale(1);
}


.testo__img {
    writing-mode: tb-rl;
    display: grid;
    grid-column: 5/6;
    justify-content: end;
}


.container {
    max-width: 1200px;
}

/* ! schermata iniziale benvenuto*/

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    /* transition: openPanel 5s; */
}

.intro-screen h1 {
    color: var(--dark);
    /* font-size: 40px; */
}

.intro-screen.hidden {
    opacity: 0.5;
    /* transition: openPanel 5s; */
}

/* .content {
    margin-top: 100vh;
} */

.intro-screen.hidden {
    opacity: 0;
}



/* Tipografia */
p,
h1,
h2,
h3,
h4,
h5 {
    /* font-family: 'Chillax', sans-serif; */
    font-family: 'Houschka', sans-serif;
    color: var(--accent);
    font-weight: 200;
}

/* Tavolozza colore */
:root {
    --accent: black;
    --dark: black;
    --light: white;
}

/* Animazioni */
@keyframes openPanel {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------------- */
/* ! CAROSELLO */
/* -------------------------------------------------------------------------------- */

.carousel {
    grid-column: span 4;
    position: relative;
    /* width: 400px; */
    /* height: 300px; */
    overflow: hidden;
}


.carousel-inner {
    display: grid;
    width: 100%;
    height: 100%;
}

.carousel-item {
    flex: 1;
    display: none;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: relative;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between
}

.carousel-controls button {
    background-color: transparent;
    border: none;
    /* border-radius: 100%;
    padding: 10px; */
    cursor: pointer;
    /* margin: 0 10px; */
    scale: 200%;
}

.carousel-controls button:hover {
    opacity: 0.7;
}

.freccia_L {
    margin-left: 20px;
}

.freccia_R {
    margin-right: 20px;
}

/* -------------------------------------------------------------------------------- */
/* ! fine CAROSELLO */
/* -------------------------------------------------------------------------------- */


/* Grid system */
.grid {
    max-width: 1700px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}

/* Header */

header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 20px; */
}

.fixed {
    position: fixed;
    width: 100%;
    background: var(--light);
    z-index: 2;
}

.titoli {
    grid-column: 7/9;
    display: grid;
    justify-content: end;
}

/* .vuoto {
    height: 150px;
} */


/* Navigazione */

.site-nav {
    grid-column: 1/5;
    cursor: pointer;
    /* outline: 1px solid red; */
    z-index: 2;
    display: flex;
    align-items: center;
}

.elisadessena {
    grid-column: span 3;
}

.site-nav__menu {
    display: flex;
    grid-column: 5/9;
    justify-content: space-between;
    align-items: center;
}


/* per  cliccare l'hamburger e far apparire il menu */
.open .site-nav__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 100%;
    width: 100%;
    height: 100vh;
    background-color: #f0f0f0c7;
    animation: openPanel 0.4s;
    position: inherit;
    z-index: 1;
    overflow: visible;
    justify-content: space-around;
}

.movimento li a {
    font-family: 'houschka', sans-serif;
    font-size: 16px;
    text-transform: capitalize;
    color: var(--accent);
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
}

.movimento li a:hover {
    color: var(--accent);
    font-style: oblique;
    padding-left: 8px;
}

.site-nav__hamburger {
    display: none;
    cursor: pointer;
    grid-column: 8/9;
    justify-self: end;
    /* outline: 3px solid red; */
    z-index: 1;
}

/* Benvenuto */

.welcome__text {
    grid-column: span 4;
    /* margin-top: 50px; */
}

.progetto__text {
    grid-column: span 4;
    margin-top: 50px;
}

.welcome__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

.book__text {
    grid-column: 1/5;
}

.bianco {
    color: var(--light);
}

.book__img {
    justify-self: end;
    grid-column: span 4;
    display: flex;
    justify-content: center;
}

.book__img__left {
    justify-self: end;
    grid-column: span 4;
    grid-column: 5/9;
    display: flex;
    justify-content: center;
}

/* .book__img_1 {
    scroll-margin-top: 40px;
} */

.gif {
    grid-column: 1/9;
    max-width: 100%;
    max-height: 100%;
    display: grid;
    justify-content: center;
    justify-content: start;
}

.about__text {
    grid-column: span 4;
}

.about__text p {
    font-size: 24px;
}

.about__text__NB {
    border: 1px solid var(--accent);
    grid-column: span 8;
    padding: 20px;
}

.about__text__pdf {
    grid-column: span 8;
    cursor: pointer;
}

.formazione__text {
    grid-column: 1/2;
}

.esperienze__text {
    grid-column: span 1;
}

.competenze__text {
    grid-column: span 1;
}

.about__img {
    /* max-width: 300px; */
    justify-self: end;
    grid-column: 5/9;
    display: flex;
    justify-content: center;
}

.next__text {
    grid-column: 1/9;
    display: flex;
    justify-content: end;
}

/* Portfolio */
#portfolio {
    position: relative;
    background: #000000 url(../img/slideshow-03-palazzo.jpg);
    /* questo per uscire dalla cartellella css e accedere all'img allora scrivo ../ ecc. */
    background-size: cover;
    /* per non fare riperere l'immagine */
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: #000000; */
    opacity: 0.5;
    /* opacity è un valore che fa da 0 a 1 */
}

#portfolio h2 {
    /* come fare per far salire gli elementi */
    position: relative;
    /* z-index: 1; */
    color: #ffffff;
    text-align: center;
    /* per farlo andare nel centro il testo^ */
}

.portfolio__projects a {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio__projects a * {
    /* l'asterisco è per chiamare entrambi gli elementi sotto ancora */
    max-width: 50%;
    position: relative;
    /* z-index: 1; */
    margin: 12px;
}

.portfolio__projects h3 {
    border: 2px solid #ffffff;
    background-color: var(--accent);
    color: #ffffff;
    padding: 12px;
    border-radius: 30px;
    /* margin-top: 12px; */
}

.logo_img img {
    display: grid;
    grid-column: span 1;
    max-width: 80px;
    margin-top: 10px;
}




footer {
    display: block;
    color: var(--light);
    /* border: 1px solid var(--accent); */
    /* border-radius: 90px; */
    margin: 20px;
    /* background: #bf9463; */
    /* padding: 15px; */
}

/* footer .container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
} */


footer h3,
h6 {
    font-family: 'houschka', sans-serif;
    text-transform: uppercase;
    color: var(--accent);
}

footer p {
    font-family: 'Houschka', sans-serif;
    color: var(--accent);
}

footer>div {
    background: var(--secondary);
    /* border: 1px solid red; */
    justify-content: center;
}

.bordo {
    border: 1px solid var(--accent);
    grid-column: span 8;
    padding: 20px;
}

.fine {
    justify-content: start;
    grid-column: span 2;
    /* border: 1px solid var(--accent);
    padding: 20px; */
}

.fine p {
    display: grid;

}

.fine ul li a h4 {
    grid-column: 4/8;
    font-family: 'Houschka', sans-serif;
    font-size: 16px;
    text-transform: capitalize;
    color: var(--accent);
    text-decoration: none;
    color: var(--accent);
    /* display: block; */
    transition: all 0.3s ease;
    /* margin-top: 15px; */
}

.fine ul li a h4:hover {
    /* color: #d0b18e; */
    padding-left: 4px;
}

/* -------------------------------------------------------------------------------- */
/* !  */
/* -------------------------------------------------------------------------------- */

/* @media (max-width: 768px) */

@media (max-width: 1000px) {

    /* .fixed {
        position: absolute; */
    /* width: 100%; */
    /* height: 50px; */
    /* background: var(--light);
        z-index: 2;
    } */

    .site-nav__menu {
        position: absolute;
        top: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
    }

    .site-nav__menu {
        grid-column: 1/9;
        /* position: absolute;
        top: 0;
        left: 0;
        max-height: 0; */
        /* overflow: hidden; */
    }

    .site-nav__menu {
        z-index: 1;
    }

    .site-nav h1 {
        grid-column: 1/6;
        /* outline: 1px solid red; */
        z-index: 1;
        display: block;
    }

    .open .site-nav__menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        width: 100%;
        height: 100vh;
        background-color: #f0f0f0c7;
        /* transition: all .5s ease-in-out; */
        animation: openPanel 0.4s;
        /* transition: 0.4s cubic-bezier(.3, .01, .73, 1); */
        position: inherit;
        z-index: 1;
        overflow: visible;
        justify-content: space-evenly;
    }

    .titoli {
        grid-column: 5/9;
        display: grid;
        justify-content: end;
    }

    #portfolio {
        position: relative;
        background: var(--light);
    }

    .portfolio__projects a {
        grid-column: 1/9;
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .portfolio__projects a * {
        /* l'asterisco è per chiamare entrambi gli elementi sotto ancora */
        max-width: 90%;
        position: relative;
        margin: 12px;
    }

    .movimento li a {
        font-family: 'Houschka', sans-serif;
        font-size: 16px;
        margin: 20px;
        text-transform: capitalize;
        color: var(--accent);
        text-decoration: none;
        color: var(--accent);
        transition: all 0.3s ease;
    }

    .movimento li a:hover {
        color: var(--light);
        padding-left: 8px;
    }

    .site-nav__hamburger {
        display: block;
        cursor: pointer;
        grid-column: 8/9;
        justify-self: end;
        /* outline: 1px solid red; */
        z-index: 2;
    }

    .welcome__text {
        grid-column: 1/9;
        /* margin-top: 50px; */
    }

    .progetto__text {
        grid-column: 1/9;
        margin-top: 50px;
    }

    .about__text {
        grid-column: span 6;
    }

    .about__text p {
        font-size: 24px;
    }

    .formazione__text {
        grid-column: span 8;
    }

    .esperienze__text {
        grid-column: span 4;
    }

    .competenze__text {
        grid-column: span 4;
    }

    /* Book */
    .book__text {
        grid-column: 1/9;
    }

    .book__img {
        justify-self: end;
        grid-column: 1/9;
        display: flex;
        justify-content: center;
    }

    .book__img__left {
        justify-self: end;
        grid-column: 1/9;
        display: flex;
        justify-content: center;
    }


    .about__img {
        /* max-width: 300px; */
        justify-self: end;
        grid-column: 3/9;
        display: flex;
        justify-content: center;
    }

    .gif {
        grid-column: 1/9;
        max-width: 100%;
        display: grid;
        justify-content: center;
    }


    /* 
    .carousel img {
        width: 100%;
    } */

    /* ! CAROSELLO */


    .carousel {
        grid-column: 1/9;
        position: relative;
        overflow: hidden;
    }

    .carousel_item {
        grid-column: 1/9;
    }

    .freccia_L {
        margin-left: 20px;
    }

    .freccia_R {
        margin-right: 20px;
    }


    /* ! fine CAROSELLO */



    footer {
        display: block;
        color: var(--light);
        /* background: var(--dark); */
        border: 1px solid var(--accent);
        /* padding: 15px; */
    }

    footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    footer h3,
    h6 {
        font-family: 'Houschka', sans-serif;
        text-transform: uppercase;
        color: var(--accent);
    }

    footer p {
        font-family: 'Houschka', sans-serif;
        color: var(--accent);
    }

    footer>div {
        background: var(--secondary);
        /* border: 1px solid red; */
    }

    .fine {
        grid-column: span 4;
        width: 100%;
        padding-bottom: 20px;
    }



    .fine ul li a h4 {
        grid-column: 4/8;
        font-family: 'Houschka', sans-serif;
        font-size: 16px;
        text-transform: capitalize;
        color: var(--accent);
        text-decoration: none;
        color: var(--accent);
        /* display: block; */
        transition: all 0.3s ease;
        /* margin-top: 15px; */
    }

    .fine ul li a h4:hover {
        /* color: #bf9463; */
        padding-left: 4px;
    }



}

/* -------------------------------------------------------------------------------- */
/* !  */
/* -------------------------------------------------------------------------------- */


@media (max-width: 480px) {



    .site-nav__menu {
        position: absolute;
        top: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
    }

    .site-nav__menu {
        grid-column: 1/9;
        /* position: absolute;
        top: 0;
        left: 0;
        max-height: 0; */
        /* overflow: hidden; */
    }

    .site-nav__menu {
        z-index: 1;
    }

    .site-nav h1 {
        grid-column: 1/6;
        /* outline: 1px solid red; */
        z-index: 1;
        display: block;
    }

    .open .site-nav__menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        width: 100%;
        height: 90vh;
        background-color: #f0f0f0c7;
        transition: all .5s ease-in-out;
        /* animation: openPanel 0.4s; */
        /* transition: 0.4s cubic-bezier(.3, .01, .73, 1); */
        position: inherit;
        z-index: 1;
        overflow: visible;
        justify-content: space-evenly;
    }

    .titoli {
        grid-column: 5/9;
        display: grid;
        justify-content: end;
    }

    #portfolio {
        position: relative;
        background: var(--light);
    }

    .portfolio__projects a {
        grid-column: 1/9;
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .portfolio__projects a * {
        /* l'asterisco è per chiamare entrambi gli elementi sotto ancora */
        max-width: 90%;
        position: relative;
        margin: 12px;
    }

    .movimento li a {
        font-family: 'Houschka', sans-serif;
        font-size: 16px;
        margin: 20px;
        text-transform: capitalize;
        color: var(--accent);
        text-decoration: none;
        color: var(--accent);
        transition: all 0.3s ease;
    }

    .movimento li a:hover {
        color: var(--light);
        padding-left: 8px;
    }

    .site-nav__hamburger {
        display: block;
        cursor: pointer;
        grid-column: 8/9;
        justify-self: end;
        /* outline: 1px solid red; */
        z-index: 2;
    }

    .welcome__text {
        grid-column: 1/9;
        /* margin-top: 50px; */
    }

    .progetto__text {
        grid-column: 1/9;
        margin-top: 50px;
    }

    .about__text {
        grid-column: span 8;
    }

    .about__text p {
        font-size: 16px;
    }

    .formazione__text {
        grid-column: span 8;
    }

    .esperienze__text {
        grid-column: span 8;
    }

    .competenze__text {
        grid-column: span 4;
    }

    /* Book */
    .book__text {
        grid-column: 1/9;
    }

    .book__img {
        justify-self: end;
        grid-column: 1/9;
        display: flex;
        justify-content: center;
    }

    .book__img__left {
        justify-self: end;
        grid-column: 1/9;
        display: flex;
        justify-content: center;
    }


    .about__img {
        /* max-width: 300px; */
        justify-self: end;
        grid-column: 1/9;
        display: flex;
        justify-content: center;
    }

    .gif {
        grid-column: 1/9;
        max-width: 100%;
        display: grid;
        justify-content: center;
    }

    .logo_img img {
        display: grid;
        justify-content: end;
        max-width: 80px;
        margin-top: 10px;
    }



    /* 
    .carousel img {
        width: 100%;
    } */

    /* -------------------------------------------------------------------------------- */
    /* ! CAROSELLO */
    /* -------------------------------------------------------------------------------- */

    .carousel {
        grid-column: 1/9;
        position: relative;
        overflow: hidden;
    }

    .carousel_item {
        grid-column: 1/9;
    }

    .freccia_L {
        margin-left: 20px;
    }

    .freccia_R {
        margin-right: 20px;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! fine CAROSELLO */
    /* -------------------------------------------------------------------------------- */

    .marquee {
        behavior: scroll;
    }

    footer {
        display: block;
        color: var(--light);
        /* background: var(--dark); */
        border: 1px solid var(--accent);
        /* padding: 15px; */
    }

    footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    footer h3,
    h6 {
        font-family: 'Houschka', sans-serif;
        text-transform: uppercase;
        color: var(--accent);
    }

    footer p {
        font-family: 'Houschka', sans-serif;
        color: var(--accent);
    }

    footer>div {
        background: var(--secondary);
        /* border: 1px solid red; */
    }

    .fine {
        grid-column: 1/9;
        width: 100%;
        padding-bottom: 20px;
    }



    .fine ul li a h4 {
        grid-column: 4/8;
        font-family: 'Houschka', sans-serif;
        font-size: 16px;
        text-transform: capitalize;
        color: var(--accent);
        text-decoration: none;
        color: var(--accent);
        /* display: block; */
        transition: all 0.3s ease;
        /* margin-top: 15px; */
    }

    .fine ul li a h4:hover {
        /* color: #bf9463; */
        padding-left: 4px;
    }


}