 *{
        box-sizing: border-box;
        padding: 0px;
        margin: 0px;
    }

body{
        background-color: #f6f5f1;
        overflow-x: hidden;
    }

h1, h3, h5{
        font-family: "Google sans flex", sans-serif ;
        font-weight: 500;
        color: black;
        text-decoration: none;
    }

p{
        font-family: "Inter", sans-serif;
        font-size: 16px;
        color: black;
        text-decoration: none;
    }

.btn{
        font-family: "Inter", sans-serif;
        font-size: 16px;
        text-transform: uppercase;
        text-decoration: none;
        color: black;
        padding: 10px;
        position: relative;
        width: fit-content;
    }

    .btn::before{
        content: "";
        display: block;
        position: absolute;
        top: 48%;
        left: 0;
        width: 20%;
        height: 2px;
        background-color: black;
        transition: width 0.5s ease;
    }

    .btn:hover:before{
        width: 100%;
    }

span{
        font-family: "Inter", sans-serif;
        font-size: 16px;
        font-style: italic;
        color: black;
        text-decoration: none;
    }

a{
        text-decoration: none;
        color: black;
        font-family: "Inter", sans-serif;
    }

header span{
        font-size:26px;
        font-style: normal;
    }

    /*
    a{
    font-family: "Google Sans Flex", sans-serif;
    font-weight: 500;
    text-decoration: none; /*Toglie la sottolineatura al link
    text-transform: uppercase; /*Tutto maiuscolo
    border: 2px solid rgba(0 , 255, 60, 0.5); /*RGBA il valore ha definisce l'opacità, che può andare da 0 a 1
    letter-spacing: 1.5px; /*Crenatura
    font-size: 14px;
    padding: 18px 14px; /*spaziatura interna
    margin-top: 20px; /*spaziatura esterna
    display: inline-block;
    color: #333;
    transition: all 200ms ease; /*la transizione da uno stato all'altro con hover. Da inserire in a, non a:hover.
    Nel sito cubic-bezier.com ci sono le coordinate per modificare le accelerazioni delle transizioni, altrimenti "ease" è accelerazione standard
    con transform-origin scegliamo il punto di ancoraggio della trasformazione, ad esempio sinistro o destra*/

    /*
    a:hover{ /*:hover definisce quando il mouse è sopra l'elemento
        background-color: rgb(0 , 255, 60);
        transform: translateY(-15px);    
    }

    /* #bottone-rosso{
        border-color: red;
    }

    #bottone-rosso:hover{
        background-color:red;
        color:white;
    }

    .bottone-rosso-classe{
        background-color: black;
    }

    .contenitore {
        width: 100%;
        height: 100vh;
        border: 5px solid black;
        display: flex; /* display flex mi permette di lavorare sugli allineamenti
        flex-direction: row; /* direzione dell'allineamento
        justify-content: space-evenly; /*allineamento rispetto all'orientamento della flex-direction comandi: space-between, space-evenly, space-around 
        align-items:center ;  /* allineamento opposto rispetto a justify content
    }

    .rosso {
        background-color: red;
    }

    .verde {
        background-color: green;
    }

    .blu {
        background-color:blue;
    }

    .box {
        width: 100px;
        height: 100px;
    } */

header{
        width: 100%;
        padding: 40px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }



.logo{
        width: 85px;
    }

.menu{
        font-size:18px;
        padding:15px;
        background-color: black;
        color: white;
        text-transform: uppercase;
    }

#hero{
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: space-around;
        align-items: center;
        padding: 40px;
        margin-top: 100px;
        min-height: 80%;
    }

    #hero:has(.hero-box:hover) .hero-box:not(:hover){
        transform: scale(0.9);
    }

    #hero:has(.hero-box:hover) .hero-box:not(:hover) img{
        filter: brightness(0.6);
    }


.hero-box{
        width: 20%;
        max-height: 600px;
        transition: all 300ms ease;
        background-size: cover; /*l'immagine deve coprire l'intero div*/
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-box:hover{
        transform: scale(1.1);
    }

    .hero-box:hover img{
        opacity: 0;
    }

.hero-prima {
        background-image: url("img/images.webp");

    }

.hero-seconda {
    background-image: url("img/images.webp");
    }

.hero-terza{
    background-image: url("img/images.webp");
    }

    .hero-quarta {
    background-image: url("img/images.webp");
    }

    .hero-quinta {
        background-image: url("img/images.webp");
    }

    .hero-box img{
        width: 100%;
        height: auto;
        transition: all 300ms ease;
        }

    .hero-testo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding:80px 30px 10px 30px;
    }

    #chi-siamo{
        display: flex;
        flex-direction: row;
        justify-content: center;
        min-height: 100vh;
        margin: 100px 0px;
        position: relative;
    }

    .chi-siamo-titolo{
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: end    ;

    }

    .chi-siamo-titolo h3 {
        font-size: 20vw;
        font-weight: 500;
        line-height: 0.8em;
    }

    .chi-siamo-testo{
        width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: end;
        gap: 20px;
        padding-right: 40px;
    }

    #chi-siamo .kanji{
        position: absolute;
        top: 20%;
        right: -10%;
        width: 300px;
        height: auto;
        opacity: 0.3;
    }

    #artisti   {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 400px 0px;
        padding: 0px 40px;
    }

    .artista {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding-top: 40px;
    }

    .artista h5{
        font-size: 65px;
        transition: all 0.3s ease;
    }

    #artisti h3{
        font-size: 30px;
        margin-bottom: 40px;
    }

    .artista hr{
        width: 35%;
        height: 2px;
        background-color: black;
        margin-top: 40px;
        transition: all 0.5s ease;
    }

    .artista span{
            margin-top: -10px;
            transition: transform 0.5s ease;
            transition-delay: 0.1s;
        }   

    .artista img{
        position:absolute;
        right: 10vw;
        top: -25vh;
        width: 25vw;
        height: auto;
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.7);
        transition: all 0.5s ease;
    }

    .artista:hover img{
        opacity: 1;
        transform: scale(1);
        filter:blur(0px)
    }

    .artista:hover hr{
        width: 70%;
        z-index: 1;
    }

    .artista:hover h5{
        transform: translateX(20px); scale:(1.05);
    }

    .artista:hover span{
        transform: translateX(20px); scale:(1.05);
    }

    #artisti:has(.artista:hover) .artista:not(:hover) {
        opacity: 0.5;
    }

    #exhibitions{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        margin: 200px 0px;
        padding: 0px 40px;
        position: relative;
    }

    #exhibitions h3{
        font-size:30px;
        margin-bottom: 40px;
    }

    .anno{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border-top: 2px solid black;
        padding: 80px 20px;
        width: 70%;
        gap: 40px;
        transition: all 0.5s ease;
    }

    .anno:last-child{
        border-bottom:2px solid black
    }

    .anno div{
        width: 25%;
    }

    .anno h3 {
        font-size: 20px;
        transition: all 0.5s ease;
    }

    .anno h5 {
        font-size: 16px;
    }

    .anno span{
        font-size: 16px;
    }

    .anno h5:nth-of-type(2){ /*nth-of-type ti permette di selezionare il (2) h5 all'interno del div anno */
        padding-top: 20px;
    }

    .anno:hover {
        background-color: black;
    }

    .anno:hover h5{
        color: white;
    }

    .anno:hover h3{
        color: white;
        transform: translateX(40px); 
        scale: 1.1;
    }

    .anno:hover span{
        color: white;
    }

    #exhibitions .kanji{
        position: absolute;
        top: 45%;
        left: -5%;
        width: 15%;
        height: auto;
        opacity: 0.3;
    }

#spazio{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin: 200px 0px;
    padding: 0px 40px;
}

.spazio-testo{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    }

.spazio-img-bg{
    width: 100%;
    min-height: 90vh;
    background-image: url(img/ma-space.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /*rimane fisso sulla pagina, di norma è impostato in scroll*/
}

.spazio-img{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /*manda a capo gli elementi in eccedenza*/
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.spazio-img img{
    width: 32%;
    height: auto;
}

footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 200px;
    padding: 0px 40px 20px 40px;
    position:relative;
    overflow: hidden;
}

footer div{
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer div:first-child{
    align-items: flex-start;
    gap: 10px;
}

footer div:last-child{
    align-items: flex-end;
}

footer h5{
    text-align: right;
    font-size: 30px;
    font-weight: 500;
    line-height: 0.8em;
}

footer span{
    font-size: 14px;
}

footer a{
    font-size: 14px;
}

footer img{
    width: 40%;
    height: auto;
    }

footer .kanji{
        position: absolute;
        bottom: -35%;
        right: 10%;
        width: 200px;
        height: auto;
        opacity: 0.3;
}

@media screen and (max-width:1680px){
    hero{
        gap:10px
    }
    .chi-siamo-testo .kanji{
        width: 250px;
    }
    #artisti{
    margin: 200px 0px;
    }
    .artista img{
        right: 10vw;
        top: -10vh;
        width: 20vw;
        height: auto;
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.7);
        transition: all 0.5s ease;
    }
    .anno{
        width: 85%;
    }

    #exhibitions .kanji{
        width: 15%;
    }
}

@media screen and (max-width:1367px){
    .artista h5{
        font-size:35px;
    }
}

@media screen and (max-width:1024px){
    .hero-prima, .hero-quinta{
        display: none;
    }
    .hero-box{
        width: 30%;
    }
    #chi-siamo{
        flex-direction: column;
        padding: 0px 40px;
        gap: 20px;
        min-height: 60vh;
    }
    .chi-siamo-titolo{
        width: 100%;
    }
    .chi-siamo-testo{
        width: 100%;
    }

    .chi-siamo-testo .kanji{
        width: 100%;
    }

    #artisti{
        margin: 100px 0px;
    }
    .artista img{
        display: none;
    }
    .artista h5{
        font-size: 65px;
    }
    .anno {
        width: 100%;
    }
    .spazio-img-bg{
        min-height: 40vh;
    }
    .spazio-img img{
        width: 48%;
    }
    footer{
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    footer div:first-child{
        align-items: center;
    }
    footer h5{
        text-align: center;
    }
}

@media screen and (max-width:767px) {

    header, #hero, #chi-siamo, #artisti, #exhibitions, footer{
        padding: 0px 15px;
    }

    .hero-testo{
        display: none;
    }
    .hero-seconda, .hero-quarta{
        display: none;
    }
    .hero-box{
        width: 100%;
    }
    .chi-siamo-titolo h3{
        font-size: 30vw;
    }
    #chi-siamo .kanji{
        width: 150px;
    }
    .artista {
        padding-top: 20px;
    }

    .artista h5{
        font-size: 35px;
    }

    .artista hr{
        margin-top: 10px;
        width: 100%;
        margin-bottom: 20px;
    }
    .anno{
        flex-direction: column;
    }
    .anno div{
        width: 100%;
    }
    .spazio-testo{
        flex-direction: column;
        align-items: start;
    }

    .spazio-img-bg{
        min-height: 70vh;
    }

    .spazio-img img{
        width: 45%;
    }
}

#hero-manifesto{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
   
}

#hero-manifesto span{
    display: flex;
    text-align: center;
    flex-direction: row;
    font-family: "Inter", sans-serif;
    width: 20%;
    font-size: 25px;
    font-weight: 450;
}

#hero-manifesto span:hover{
    width: 30%;
}

#our-manifesto{
     position: relative;
}

#our-manifesto h1{
    padding: 0px 40px;
    font-size: 65px;
    line-height: 0.9;
    font-weight: 500;
}

.our-manifesto-s{
    margin: 60px 0px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px 40px;
    gap: 40px;
}

.our-manifesto-img{
    display: block;
    background-image: url(img/manifesto.jpg);
    width: 100%;
    min-height: 75vh;
    background-size: 100%; /*l'immagine deve coprire l'intero div*/
    background-position: center;
    background-repeat: no-repeat;
    align-content: center;
    transition: all 500ms ease;
    transform-origin: center center;
    overflow: hidden;
}

.our-manifesto-img:hover{
    background-size: 110% ;   
}


.our-manifesto-testo{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    text-align: justify;
}

#our-manifesto .kanji{
        position: absolute;
        top: 25%;
        right: -10%;
        width: 300px;
        height: auto;
        opacity: 0.3;
}

#cosa-facciamo{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 400px 0px;
    padding: 0px 40px;
    position: relative;
}

.cosa-facciamo-titolo{
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: end    ;
}

.cosa-facciamo-titolo h3{
        font-size: 20vw;
        font-weight: 500;
        line-height: 0.8em;
        text-align: right;
}

.cosa-facciamo-testo{
        width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: end;
        gap: 20px;
        padding-right: 40px;
        text-align: justify;
}

#cosa-facciamo .kanji{
        position: absolute;
        top: 15%;
        left: -10%;
        width: 300px;
        height: auto;
        opacity: 0.3;
}

.man-btn{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 50px;
}

#man-artists a{
    font-size: 24px;
    font-weight: 600;
}