/* -------------------------------------------------------------------------------- */
/* ! Impostazioni BASE */
/* -------------------------------------------------------------------------------- */

/* Tavolozza colore */
:root {
    --primary: #000000;
    --light: #ffffff;
    --accent: #fe0000;
    --dark: #4a4949;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;


}

html,
body {
    overflow-x: hidden;
    /* scrooll più morbido chiedere al prof se ho fatto bene  */
    scroll-behavior: smooth;

}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utility */
html {
    scroll-behavior: smooth;
}


/* responsive image */

.res {
    width: 100%;
    max-width: 200px;
}

.res2 {
    width: 100%;
    max-width: 300px;

}

.res3 {

    width: 100%;
    max-width: 600px;
}

.resgrid {
    width: 100%;

}



.container {
    max-width: 1200px;
    margin: 0 auto;
    /* outline: 1px solid red; */
}

/* Tipografia */
body {
    font-family: "Atkinson", sans-serif;


}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
}

p {
    font-size: 22px;
    /* margin-bottom: 15px; */
}

p.leading {
    /* font-size: 1.4em; */
    font-weight: 600;
    font-style: italic;

}

h2 {
    font-size: 30px;
}


/* linea decorazione per i paragrafi */

hr.linea {
    width: 90%;
    border: 2px;
    border-radius: 6px;
    border-bottom: 4px solid #000000;
    margin: 0;

}







/* Header */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.fixed {
    position: fixed;
    width: 100%;
    background: var(--primary);
    z-index: 6;
}

/* Provvisorio */
/* .header__logo,
.header__menu,
.header__cta,
.header__icon {
    outline: 1px solid red;
} */

/* .header__logo, */
/* .header__menu, */
/* .header__cta,
.header__icon {
    width: 130px;
} */

.header__logo img {
    filter: invert(1);
    /* larghezza logo */
    width: 80px;
    cursor: pointer;
}


/* mi mette e scritte orizzontali */
.header__menu .site-nav li {
    display: inline-block;
    padding: 0px 20px;

}


.site-nav li a {

    transition: all 0.3s ease 0s;
    background-color: black;
    color: var(--light);
    border: 1px solid black;
    border-radius: 50px;
    padding: 10px;

}

.site-nav li a:hover {
    background-color: black;
    border: 1px solid var(--light);

}


/* button contatti */
.header__cta .button {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    font-size: 20px;
}


/* Se passi il mouse su contatti diventa lo sfondo nero e scritte bianche */

.header__cta .button:hover {

    background-color: black;
    border: 1px solid var(--light);
    color: var(--light);
}


.header__icon {
    /* visibility: hidden; */
    display: none;
}



/* Hero */
/* .hero {
    background: url(../img/slideshow-05-lampadario.jpg) no-repeat center center;
    height: 100vh;
    background-size: cover;
    display: flex;
    align-items: center;
}

.hero::before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0.7;
} */


.cover {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 100vh;
    position: relative;

}

.cover::before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0.70;
}


/* immagini prese dal sito memofonte che fanno da background */
.mySlides {

    position: absolute;
    top: 0;
    display: none;
    height: 100%;
    width: 100%;
    z-index: -3;
    object-fit: cover;
    transition: opacity 0.75s ease-in-out
}

/* ho provato a mettere il logo accanto alle scritte */
/* .hero__content img {
    display: flex;
    flex-direction: row;
} */


.hero__content {
    z-index: 1;
    /* outline: 1px solid red; */
    color: var(--light);
    padding: 20px;

    /* mi permette di mettere il logo a sinistra e le scritte a destra dato che ho creato due classi distinte */
    display: flex;
    flex-direction: column;



    /* text-align: center; */
}

.scritte__cover,
.logo__cover {
    text-align: center;
}

.hero__content img {
    filter: invert(1);
    width: 200px;

}




.hero__content h2 {
    font-size: 1.6em;
    margin-bottom: 25px;
}

.hero__content p {
    font-size: 1em;
    line-height: 1.6em;
}


/* freccia di scopri di più */
.fa-solid {
    /* si disponeva accanto alla scritta e non volevo e quindi ho messo block così va sotto, va bene?? */
    display: block;
    font-size: 30px;
    /* distanza icona da scopri di più */
    margin: 0 3%;
    margin-top: 15px;
    color: #ffffff;
}

/* scritta scopri di più */
a.button2 {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    font-size: 20px;


}


/* quando passi sulla scritta scopri di più */
.button2:hover {
    font-weight: 800;
    text-decoration: underline;
    transition: 0.2s cubic-bezier(.3, .01, .73, 1);
}


/* section chi siamo più paragrafo si deve posizionare accanto */
.content__about {

    margin-top: 40px;

}

/* chi siamo e paragrafo testo */
.testi__sezione {
    display: flex;
    flex-direction: row;
}

/* titolo sezione e gli dico le distanze */
.title__section {
    display: flex;
    letter-spacing: 1px;
    width: 100%;
}

.paragraph__section {
    display: flex;
    flex-direction: column;
    letter-spacing: 1px;
    width: 100%;

}


/* immagini sezione chi siamo */

/* sfumatura nera su foto */
#product {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    margin-top: 50px;
    padding: 20px;
}

.product {
    width: 300px;
    aspect-ratio: 3/4;
    border-radius: 10px;
    margin: 0 auto;
    /* background: #fe0000; */
    background-size: cover;
    background-position: center;
    overflow: hidden;


}

.productInfo {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 6) 0%, rgba(0, 0, 0, 0) 80%);

    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}


.productInfo:hover {
    opacity: 1;
}

.productInfo:hover .productText,
.productInfo:hover .productButton {
    transform: translateY(0);
}

.productText {
    color: var(--light);
    font-size: 25px;
    margin: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-20px);
    transition: all 2s ease-in-out;
}


.productButton {
    width: fit-content;
    padding: 7px 20px;
    margin: 20% auto;
    border: solid white 2px;
    color: var(--light);
    font-size: 15px;
    border-radius: 10px;
    transition: all 2s ease-in-out;


}

.productButton:hover {
    background-color: var(--light);
    color: var(--primary);
    border: solid rgb(0, 0, 0) 2px;
}




/* linea sotto scritta la fondazione */
hr {
    width: 90%;
    border: solid 2px rgb(40, 40, 40);
    border-radius: 6px;

}

.testi,
h2,
p {
    margin-bottom: 10px;
    margin-top: 10px;
}





/* parte testi e immagini fondazione section 2 */
.content__fondazione {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
}



.testi {
    display: flex;
    flex-direction: column;
    /* max-width: 50%; */
    justify-content: center;
    grid-column: 1/4;
}


/* immagine zoom */

.image-box {
    position: relative;
    margin: auto;
    overflow: hidden;
    /* width: 100px; */
    grid-column: 5/9;


}

.image-box img {
    max-width: 100%;
    transition: all 0.3s;
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    padding: 20px;
}

.image-box:hover img {
    transform: scale(1.1);
}




/* grid system */
.grid {

    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;

}

.figura__contesti {
    grid-column: 1/5;
    /* outline: 1px solid red; */

}

.testi__contesti {

    grid-column: 6/9;
    /* outline: 1px solid red; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testi__studi {

    grid-column: 1/4;
    /* outline: 1px solid red; */
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.figura__studi {
    grid-column: 5/9;
    /* outline: 1px solid red; */
}







/* sezione spes */
.spes {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    max-width: 1400px;
    justify-content: space-around;
    letter-spacing: 1px;
}



.spes__catalogues {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 60px;
}

.spes__1 {
    position: relative;
    margin: auto;

    /* altezza e larghezza foto */
    width: 300px;
    height: 450px;
    background: url(../img/arteSPEScatalogo-e1516797854995.png) no-repeat center center;
    background-size: cover;
    border-radius: 6px;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
    /*  posizione tasto scopri di più */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;

}

.spes__2 {
    position: relative;
    margin: auto;
    width: 300px;
    height: 450px;
    background: url(../img/musicaSPEScatalogo-e1516797719373.png) no-repeat center center;
    background-size: cover;
    border-radius: 6px;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;

}

.spes__1-cta a,
.spes__2-cta a {
    color: var(--primary);

    display: none;
    background: var(--light);
    padding: 10px;
    border: 1px solid var(--primary);
    border-radius: 30px;
    box-shadow: 3px 3px 8px rgba(255, 255, 255, 50%);
    transition: 0.2s ease-in;
}

.spes__1:hover,
.spes__2:hover {
    opacity: 1;
    filter: grayscale(0);

}

.spes__1:hover .spes__1-cta a,
.spes__2:hover .spes__2-cta a {
    display: block;
}

.spes__1-cta a:hover,
.spes__2-cta a:hover {
    color: var(--light);
    background: var(--primary);
    border: 1px solid var(--light);

}



/* Section */
section {
    /* outline: 1px solid red; */
    scroll-margin-top: 80px;
    margin-bottom: 25px;
    padding: 15px;
}





/* CAROSELLO */


.content__autori {

    margin-top: 30px;
    margin-bottom: 30px;

    text-align: center;


}


.wrapper {
    max-height: 1000px;
    display: flex;
    overflow-x: auto;
    margin-top: 60px;
    margin-bottom: 40px;
    margin: 20px;
    padding-bottom: 20px;

}

/* SCROLLBAR */
.wrapper::-webkit-scrollbar {
    height: 18px;
    background-color: var(--light);
    border-radius: 20px;
    width: 80%;
    border: 2px solid var(--primary);
    padding-bottom: 10px;

}

.wrapper::-webkit-scrollbar-thumb {
    height: 4px;
    background-color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    width: 20px;
}

.wrapper .item {
    min-width: 400px;
    height: 400px;
    line-height: 400px;
    text-align: center;
    margin-right: 50px;
    background-size: cover;
    background-position: center;

}


#product {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    /* background-color: #000000; */
}

.item {
    width: 200px;
    aspect-ratio: 3/4;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 0px;

}

.iteminfo {
    width: 100%;
    height: 100%;

    background: linear-gradient(0deg, rgba(10, 10, 10, 0.421) 0%, rgba(0, 0, 0, 0.867) 80%);
    display: flex;
    flex-direction: column;

    align-items: center;
    /* flex-direction: row; */
    opacity: 0;
    cursor: pointer;

}

.iteminfo:hover {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    transform: translateY(0);
}

.item__text {
    color: rgb(255, 255, 255);

    /* border-bottom: 2px solid white; */

    font-size: 20px;
    font-weight: 800;
    margin: 0;
    width: 100%;
    max-height: 30px;
    text-align: center;
    transform: translateY(-20px);

}



.item__button a {
    width: fit-content;
    padding: 7px 10px;
    margin: 20% auto;
    border: solid 2px var(--light);
    border-radius: 14px;
    color: var(--light);
    background-color: var(--primary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5em;
    transition: all 0.2s ease-in-out;
    transform: translateY(-20px);

}

a {
    text-decoration: none;
}

.item__button a:hover {
    background-color: var(--light);
    color: var(--primary);
    border: solid 2px var(--primary);



}






/* footer */
footer {
    width: 100%;
    position: absolute;
    background-color: #000000;
    color: #ffffff;
    padding: 100px o 30px;
    border-top-left-radius: 125px;
    line-height: 20px;
    font-size: 20px;
}


.row {
    width: 85%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.col {
    flex-basis: 25%;
    padding: 30px;
}

.col>p {
    line-height: normal;
}


.col:nth-child(2),
.col:nth-child(3) {
    flex-basis: 15%;

}

.logo {
    width: 120px;
    margin-bottom: 30px;
    filter: invert(1);

}


.col h3 {
    width: fit-content;
    margin-bottom: 40px;
    position: relative;
}

.email-id {
    width: fit-content;
    border-bottom: 1px solid #ccc;
    margin: 20px 0;

}

ul li {

    margin-bottom: 12px;
}

ul li a {
    color: #ffffff;
}

form {
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    margin-bottom: 50px;
}

form .far {
    font-size: 18px;
    margin-right: 10px;
}

form input {
    width: 100%;
    background: transparent;
    color: #ccc;
    border: 0;
    outline: none;
    margin-left: 15px;
}

form button {
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

form button .fa-regular {
    font-size: 16px;
    color: #ccc;
}

.button {
    all: unset;
}

.social-icons .fa-brands {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    background: #ffffff;
    margin-right: 15px;
    cursor: pointer;
}


/* icona mail e freccia */
.fa-regular,
.ancora {
    font-size: 20px;
    color: var(--light);
}


/* linea copiright */
hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
}


/* scritta diritti e copyrigh */

.lineaok {
    display: flex;
    justify-content: center;
    width: 100%;
}



.underline {
    width: 100%;
    height: 5px;
    background: #767676;
    border-radius: 3px;
    position: absolute;
    top: 25px;
    left: 0;
    overflow: hidden;
}

.underline span {
    width: 15px;
    height: 100%;
    background: #ffffff;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
}

@keyframes moving {
    0% {
        left: -20px;
    }

    100% {
        left: 100%;
    }
}





/* -------------------------------------------------------------------------------- */
/* ! Media query medium */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {


    /* logo più piccolo */
    /* .scritte__cover {
        font-size: 1em;

    } */

    .header__icon {
        display: block;
        color: var(--light);
        text-align: center;
        z-index: 3;
    }

    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transform: translateY(-100%);
        transition: var(--micro);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hamburger */

    .icon-hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: 0.3s cubic-bezier(.38, .95, .67, -0.19);
    }

    .icon-hamburger span {
        background: var(--light);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;
        transition: var(--micro);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
        width: 90%;
        opacity: 1;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 10px;
        width: 70%;
    }

    .icon-hamburger span:nth-child(4) {
        top: 20px;
        width: 90%;
        opacity: 1;
    }

    /* Hamburger in open */
    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    .open .icon-hamburger span:nth-child(1),
    .open .icon-hamburger span:nth-child(4) {
        width: 0;
        opacity: 0.4;
    }

    .open .icon-hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 25px;
        font-size: 3em;
    }

    /* Richiamo la classe in base al click */
    .open .header__menu {
        transform: translateY(0);
    }



    /* logo, scritte centrate  */
    .hero__content,
    .logo__cover,
    .scritte__cover {
        display: flex;
        flex-direction: column;
        align-items: center;

        /* per il contenitore */
        /* margin: 20px; */
        justify-content: space-between;



    }



    /*  sezione chi siamo + immagini con hover*/

    .content__about {
        flex-direction: column;

    }

    .testi__sezione {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .title__section {
        margin-bottom: 20px;
    }

    .paragraph__section {
        width: 100%;
    }





    /* sezione la fondazione con immagine zoom */

    .testi {
        width: 100%;
        padding: 20px;
    }

    .content__fondazione {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;

    }






    /* riviste online */

    .content__riviste {

        gap: 30px;
    }


    /* contesti d'arte */
    .testi__contesti {
        grid-column: 1/9;
        padding: 20px;
    }


    .figura__contesti {
        grid-column: 2/8;
        margin-top: 20px;

    }


    /* riviste online studi fondaazione */

    .testi__studi {

        grid-column: 1/9;
        padding: 20px;

    }

    .figura__studi {
        grid-column: 2/8;
        /* outline: 1px solid red; */
        padding-top: 40px;
    }







    /* sezione spes */
    .spes {
        padding: 40px;
    }


    /* i due cataloghi */
    .spes__catalogues {
        flex-wrap: wrap;
        gap: 30px;
        margin: 0;
        margin-top: 30px;
        margin-bottom: 30px;
    }




}


/* -------------------------------------------------------------------------------- */
/* ! Dispositivi piccoli */
/* -------------------------------------------------------------------------------- */
@media (max-width: 480px) {

    .header__cta {
        display: none;
    }

    .hero__content h1 {
        font-size: 3em;
    }

    /* 
    .hero__content h2 {
        font-size: 2em;
    } */

    .hero__content p {
        font-size: 1.3em;
    }




    /* versione mobile scritte più piccole */
    .hero__content {

        /* mi adatta i testi sulla viewport */
        font-size: 4vw;
        margin-top: 30%;

    }




    /* effetto hover su immagini sezione chi siamo */
    @media screen and (max-widht:400px) {
        #product {
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            ;
        }

        .product {
            width: 90%;
        }
    }


    @media screen and (max-widht:200px) {
        .productText {
            font-size: 15px;
        }

        .productButton {
            font-size: 10px;
        }
    }


    @media (hover:none) {
        .productInfo {
            opacity: 1;
        }

        .productButton,
        .productText {
            transform: translateY(0);
        }
    }

}


.lineaok {
    text-align: center;

}