/* -------------------------------------------------------------------------------- */
/* ! 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.8;
}


.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;
}



/* Tipografia */
p,
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Chillax', sans-serif;
    color: var(--accent);
}

/* Tavolozza colore */
:root {
    --accent: #885313;
    --dark: black;
    /* --secondary: #a02db7; */
    --light: white;
    /* --primary: hsl(113, 58%, 62%); */
}

/* Animazioni */
@keyframes openPanel {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------------- */
/* ! CAROSELLO */
/* -------------------------------------------------------------------------------- */

/* body {
    padding: 0 35px;
} */

.wrapper {
    grid-column: 1/9;
    padding: 0 100px;
    /* align-items: center;
    justify-content: center; */
    max-width: 1200px;
    position: relative;
}

.wrapper i {
    grid-column: 1/9;
    top: 50%;
    height: 46px;
    width: 46px;
    cursor: pointer;
    position: absolute;
    font-size: 1.2rem;
    text-align: center;
    line-height: 46px;
    background: var(--light);
    border-radius: 50%;
    transform: translateY(-50%);
}

.wrapper i:first-child {
    left: -23px;
    display: none;
}

.wrapper i:last-child {
    right: -23px;
}

.wrapper .carousel {
    grid-column: 1/9;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.carousel.dragging {
    cursor: grab;
    scroll-behavior: auto;
}

.carousel.dragging img {
    pointer-events: none;
}

.carousel img {
    height: 340px;
    object-fit: cover;
    margin-left: 14px;
    width: calc(100% / 3);
}

.carousel img:hover {
    height: 340px;
    object-fit: cover;
    margin-left: 14px;
    width: calc(100% / 3);
    opacity: 0.8;
    transform: scale(0.97);
    transition: all 0.3s;
}

.carousel img:first-child {
    margin-left: 0px;
}

.testo__carosello {
    display: flex;
    justify-content: center;
}

/* Testo in basso a destra */
.text-block {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--light);
    margin-left: 20px;
    margin-right: 20px;
}

.text-block h4 {
    color: var(--light);
}

/* -------------------------------------------------------------------------------- */
/* ! fine CAROSELLO */
/* -------------------------------------------------------------------------------- */



/* Grid system */
.grid {
    max-width: 1200px;
    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%; */
    /* height: 50px; */
    background: var(--light);
    z-index: 2;
}

/* .vuoto {
    height: 150px;
} */


/* Navigazione */

.site-nav {
    grid-column: 1/4;
    cursor: pointer;
    /* outline: 1px solid red; */
    z-index: 2;
    display: flex;
    /* justify-content: center;
    align-items: center; */
}

.site-nav__menu {
    display: flex;
    grid-column: 4/9;
    justify-content: space-between;
    align-items: center;
    /* position: absolute;
    top: 0;
    left: 0;
    max-height: 0; */
    /* overflow: hidden; */
}

/* per  cliccare l'hamburger e far apparire il menu */
.open .site-nav__menu {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    max-height: 100%;
    width: 100%;
    height: 100vh;
    background-color: #d0b18e;
    animation: openPanel 0.4s;
    /* position: relative; */
    z-index: 1;
    overflow: visible;
}

/* 
.site-nav__menu li a {
    font-family: 'Chillax', sans-serif;
    color: var(--dark);
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    font-size: 1em;
    text-transform: capitalize;
    color: var(--accent);
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
    margin-top: 15px;
} */


.movimento li a {
    font-family: 'Chillax', 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: 1/5;
    margin-top: 50px;
}

.welcome__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

/* Book */
.book__text {
    grid-column: 1/5;
}

.bianco {
    color: var(--light);
}

.book__img {
    justify-self: end;
    grid-column: 5/9;
    display: flex;
    justify-content: center;
}

.book__img__left {
    justify-self: end;
    grid-column: 1/5;
    display: flex;
    justify-content: center;
}



/* 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; */
}

.sfondo {
    margin-bottom: 30px;
    background-color: #d0b18e;
    padding-top: 20px;
}


.tornasu {
    grid-column: 4/6;
    justify-content: center;
    display: flex;
    border: 3px solid var(--accent);
    padding: 12px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.tornasu:hover {
    grid-column: 4/6;
    justify-content: center;
    display: flex;
    padding: 12px;
    border: 5px solid var(--accent);
    border-radius: 30px;
    margin-bottom: 20px;
}

/* !Provaaaaa */


footer {
    display: block;
    color: var(--light);
    /* border: 3px 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: 'Chillax', sans-serif;
    text-transform: uppercase;
    color: var(--accent);
}

footer p {
    font-family: 'Chillax', sans-serif;
    color: var(--accent);
}

footer>div {
    background: var(--secondary);
    /* border: 1px solid red; */
    justify-content: center;
}


.fine {
    width: 100%;
    padding: 10px;
}


.fine ul li a {
    grid-column: 4/8;
    font-family: 'Chillax', 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:hover {
    color: #d0b18e;
    padding-left: 8px;
}


.striscia {
    background-color: #d0b18e;
    padding: 15px;
}

.striscia h2 {
    color: var(--light);
}

/* -------------------------------------------------------------------------------- */
/* !  */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {

    /* .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;

    }

    #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: 'Chillax', 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: 1;
    }

    .welcome__text {
        grid-column: 1/9;
        margin-top: 50px;
    }

    /* 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;
    }


    .tornasu {
        grid-column: 1/9;
        justify-content: center;
        display: flex;
        border: 4px solid var(--accent);
        padding: 12px;
        border-radius: 30px;
        margin-bottom: 20px;
    }

    .tornasu:hover {
        grid-column: 1/9;
        justify-content: center;
        display: flex;
        padding: 12px;
        border: 5px solid var(--accent);
        border-radius: 30px;
        margin-bottom: 20px;
    }




    /* -------------------------------------------------------------------------------- */
    /* ! carosello */
    /* -------------------------------------------------------------------------------- */

    .carousel img {
        width: 100%;
    }


    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: 'Chillax', sans-serif;
        text-transform: uppercase;
        color: var(--accent);
    }

    footer p {
        font-family: 'Chillax', sans-serif;
        color: var(--accent);
    }

    footer>div {
        background: var(--secondary);
        /* border: 1px solid red; */
    }

    .fine {
        grid-column: span 2;
        width: 100%;
        padding-bottom: 20px;
    }


    .fine ul li a {
        grid-column: 4/8;
        font-family: 'Chillax', 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:hover {
        color: #bf9463;
        padding-left: 8px;
    }

}