/* reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* utilità */
.res {
    width: 100%;
    max-width: 500%;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}


/* tavolozza colori */
:root {
    --primary: #6d9dc5;
    --secondary: #53599a;
    --accent: #80ded9;
    --light: #e7fcfd;
    --dark: #068d9d;

}

/* Tipografia */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;

}


.title,
.subtitle,
.headline {
    /* font-family: 'Ubuntu', sans-serif; */
    font-family: 'Libre Baskerville', serif;
    color: var(--secondary);
    display: flex;
    position: relative;

}

.title {
    font-size: 90px;


}

.subtitle {
    font-size: 40px;
    font-style: italic;
}

.headline {
    font-size: 30px;
}

p {
    font-size: 1.3em;
    line-height: 1.3em;
    padding: 10px;
}

.leading {
    font-size: 1.2em;
    line-height: 1.3em;
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
}

/* Macro */
.wrapper {
    width: 100%;
    margin: 0 auto;
}

section {
    scroll-margin-top: 170px;
    display: flex;
}




/* Header */
.fixed {
    position: fixed;
    background: var(--secondary);
    width: 100%;
    z-index: 4;

}

.header {

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}



.header__icon {
    display: none;

}

/* hamburger */
.icon__hamburger {
    cursor: pointer;
    width: 2em;
    height: 1.5em;
    position: relative;
    transition: 0.5s cubic-bezier(.19, .83, 1, .42);

}

.icon__hamburger span {
    display: block;
    position: absolute;
    left: 0;
    height: 4px;
    width: 90%;
    background: var(--light);
    border-radius: 30%;



}

.icon__hamburger span:nth-child(1) {
    top: 0;
}



.icon__hamburger span:nth-child(2),
.icon__hamburger span:nth-child(3) {
    top: 10px;

}

.icon__hamburger span:nth-child(4) {
    top: 20px;
}

/* hamburger in apertura */
.open .icon__hamburger {
    transform: rotate(180deg);
}

.open .icon__hamburger span:nth-child(1),
.open .icon__hamburger span:nth-child(4) {
    width: 0%;
}

.open .icon__hamburger span:nth-child(2) {
    transform: rotate(45deg);
    width: 100%;
    background: var(--accent);
    border-radius: 40%;
}

.open .icon__hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 100%;
    background: var(--accent);
    border-radius: 40%;
}

.header__cta,
.header__logo {
    width: 130px;
}

.header__logo img {
    padding: 10px;
}


/* navigazione primaria */
.site-nav li {
    display: inline-block;
    grid-column: 3/9;
}

.site-nav a {
    padding: 20px;
    color: var(--light);
}

.site-nav a:is(:hover, :focus) {
    color: var(--accent);
}



.button {
    display: block;
    color: var(--light);
    border: 1px solid var(--light);
    background: var(--dark);
    border-radius: 15%;
    padding: 10px;
    width: 130px;
    text-align: center;
}

.button:is(:hover, :focus) {
    background: var(--accent);
    color: var(--primary);
    border: var(--primary);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding-right: 20px;
}



/* cover */
.cover {
    background: var(--accent) url(img/screen\ video\ memo\ copia.png) no-repeat center center;
    height: 100vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;

}

.cover::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--dark);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.4;
    z-index: 2;
}

.cover__content {
    position: relative;
    z-index: 3;
    color: var(--dark);
    text-align: center;

}

body {
    background-color: var(--light);
}






/* -------------------------------------------------------------------------------- */
/* ! Grid System */
/* -------------------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid h2 {
    grid-column: 1/9;
    /* background: var(--dark); */
    font-family: 'Ubuntu', sans-serif;
    /* font-size: 2.5em; */
    font-size: 3em;
    color: var(--dark);
    text-align: center;
    padding-top: 5%;
    padding-bottom: 5%;

}


.fondazione_text {
    grid-column: 1/4;
    padding-top: 20%;

}

.fondazione_img {
    grid-column: 5/9;
    /* clip-path: ellipse(); */
    padding-bottom: 40px;
    max-width: 80%;
    padding: 10px;
}

.fondazione_img img {
    border-radius: 100%;
    padding: 10px;
}



.fondazione_cta {
    grid-column: 2/3;
    padding-bottom: 15%;
    padding: 10px;
}

.storia_img img {

    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.6);
}

.storia_img {
    grid-column: 1/9;
    padding-bottom: 70px;
    padding-top: 50px;

}



.biografia_img {
    grid-column: 1/4;
    border-radius: 40px;
    padding: 10px;

}

.biografia_img img {

    border-radius: 40px;

}


.biografia_text {
    grid-column: 5/9;
    padding-bottom: 20px;
}



.riviste_text {
    grid-column: 1/9;
    padding-bottom: 5%;

}

.riviste_img1 img {
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.6);
}

.riviste_img2 img {
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.6);
}

.riviste_img1 {
    grid-column: 3/5;
    padding-bottom: 30px;

}

.riviste_img2 {
    grid-column: 5/7;
    padding-bottom: 30px;

}

.eventi_text1 {
    grid-column: 6/9;
    /* padding-top: 50px; */
    padding-top: 20%;

}

.eventi_img {
    grid-column: 1/5;
    padding-top: 5%;
    /* max-width: 100%; */
    width: 100%;

    padding-bottom: 80px;
}

.eventi_img img {
    /* border-radius: 3000px; */
    clip-path: circle();
}

.eventi_text2 {
    grid-column: 1/7;
    font-size: 1.5em;
    color: var(--primary);
    padding-top: 20px;
    text-align: center;
}

.eventi_cta {
    grid-column: 8/9;
    padding-bottom: 15%;


}

/* evento */
.copertina {
    background: var(--accent) url(img/background-g52c492f30_1920\ copia.jpg) no-repeat center center;
    height: 100vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;

}

.copertina::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--light);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    z-index: 2;
}

.copertina__content {
    position: relative;
    z-index: 3;
    color: var(--dark);
    text-align: center;

}

.copertina__content h1 {
    font-size: 90px;
    padding-left: 20px;
}

.copertina__content p {
    font-size: 60px;
}

.mapping__text {
    grid-column: 2/8;
    padding-bottom: 80px;
}

.mapping2__text {
    grid-column: 2/8;
    padding-bottom: 80px;
}

.mapping3__text {
    grid-column: 2/8;
    padding-bottom: 80px;
}


.bubble_img1 {
    grid-column: 2/5;
    padding-bottom: 30px;
    padding-bottom: 40px;
    width: 100%;

}

.bubble_img1 img {
    border-radius: 80px;
}

.bubble_img2 {
    grid-column: 5/8;
    padding-bottom: 30px;
    padding-bottom: 40px;
    width: 100%;

}

.bubble_img2 img {
    border-radius: 80px;
}

.logo1 {
    grid-column: 4/5;
    padding-bottom: 60px;


}

.logo1 img {
    width: 120px;
    border-radius: 40px;
}

.logo2 {
    grid-column: 5/6;

}

.logo2 img {
    width: 120px;
    border-radius: 40px;
    background: var(--light);
    border: 1px solid var(--light);
}

/* fine evento */



.didattica_text {
    grid-column: 1/9;
    padding-bottom: 5%;
}

/* Carousel */
.main-carousel {
    padding: 40px 0;
}

.carousel-cell {
    height: 350px;
    width: 350px;
    background: var(--accent);
    border-radius: 100%;
    line-height: 350px;
    text-align: center;
    margin-right: 40px;
}

.carousel-cell img {
    height: 350px;
    width: 350px;
    border-radius: 100%;
}


/* btt */
.btt {
    position: fixed;
    bottom: 5px;
    right: 10px;
    /* background: var(--light); */
    z-index: 2;
    padding: 5px;
    border-radius: 80%;



}

.btt a {
    background: var(--dark);
    padding: 8px;
    color: var(--light);
    font-size: 2em;
}

/* tabbar */

.tabbar {
    height: 100px;
    width: 100%;
    position: relative;
    /* posizione relativa in modo da poter gestire ulteriori elementi assoluti */
    background: var(--secondary);
}

.tabbar__menu {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 95px;
    background: var(--accent);

}

.tabbar li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 60px;
    width: 60px;
}

.tabbar a {
    font-size: 2em;
    color: var(--dark);


}

.tabbar a:is(:hover, :focus) {
    font-size: 2.8em;
    color: var(--light);
    background: var(--accent);
    border-radius: 50px;
    padding: 10px;
    transform: translateY(-20px);
    transition: cubic-bezier(.19, .83, 1, .42)
}

.tabbar__due {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: var(--secondary);
}

.tabbar__due li {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0 5px;
    height: 60px;
    width: 60px;
    color: var(--accent);


}

.tabbar__due p {
    display: flex;
    flex-direction: column;
    color: var(--accent);
    font-size: 0.8em;
    line-height: 1.3em;
    padding-top: 10px;

}



/* -------------------------------------------------------------------------------- */
/* ! Media query mobile */
/* -------------------------------------------------------------------------------- */

@media (max-width: 992px) {

    .grid h2 {
        grid-column: 1/9;
        /* background: var(--dark); */
        font-family: 'Ubuntu', sans-serif;
        /* font-size: 2.5em; */
        font-size: 6vw;
        color: var(--dark);
        text-align: center;
        padding-top: 5%;
        padding-bottom: 5%;

    }

    .header__icon {
        display: block;
        color: var(--light);
        z-index: 3;
    }



    .header__logo {
        width: 200px;
        overflow: hidden;
    }

    /* per pannello a  sx */
    .header__menu {
        background: rgba(0, 0, 0, 0.8);
        /* per opacizzare ho usato rgba */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        transition: 0.5s cubic-bezier(.36, .75, .93, .5);


    }



    body.open .header__menu {
        transform: translateX(0);
    }



    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;


    }

    .site-nav li {
        margin-bottom: 2em;
    }

    .site-nav a {
        border: none;
        font-size: 1.5em;
        text-transform: uppercase;
        font-family: 'Ubuntu', sans-serif;
        color: var(--light);
    }

    .site-nav a:hover {
        color: var(--accent);
    }

    .cover__content h1 {
        font-size: 12vw;
        padding-left: 20px;


    }

    .cover__content h2 {
        font-size: 8vw;
        padding-left: 10px;

    }

    .cover__content p {
        font-size: 6vw;

    }

    /* grid system mobile */

    /* .title {
        font-size: 50px;


    }

    .subtitle {
        font-size: 40px;
        font-style: italic;
    }

    .headline {
        font-size: 30px;
    } */

    .button {
        display: block;
        color: var(--light);
        border: 1px solid var(--light);
        border-radius: 15%;
        background: var(--dark);
        padding: 10px;
        width: 80px;
        text-align: center;
    }

    .button:is(:hover, :focus) {
        background: var(--accent);
        color: var(--primary);
        border: var(--primary);
    }




    .fondazione_text {
        grid-column: 1/9;
        padding-top: 10px;
        padding-left: 20px;
        padding-right: 20px;

    }

    .fondazione_img {
        grid-column: 1/9;
        max-width: 70%;
        clip-path: circle();
        margin: 5px auto;


    }


    .biografia_text {
        grid-column: 1/9;
        padding-right: 20px;
        padding-left: 20px;


    }

    .biografia_img {
        grid-column: 1/9;
        max-width: 60%;
        margin: 5px auto;


    }

    .eventi_text1 {
        grid-column: 1/9;
        padding-top: 10px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .eventi_img {
        grid-column: 1/9;
        max-width: 100%;
        margin: 5px auto;
    }

    .eventi_text2 {
        grid-column: 1/9;
        padding: 0%;
        padding-right: 20px;
        padding-right: 20px;
    }


    .eventi_cta {
        grid-column: 1/9;
        padding-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .copertina__content h1 {
        font-size: 12vw;
        padding-left: 20px;
    }

    .copertina__content p {
        font-size: 6vw;
    }

    .riviste_text {
        grid-column: 1/9;
        padding-top: 10px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .riviste_img1 {
        grid-column: 1/9;
        margin: 5px auto;
        max-width: 50%;
    }

    .riviste_img2 {
        grid-column: 1/9;
        margin: 5px auto;
        max-width: 50%;

    }

    .didattica_text {
        grid-column: 1/9;
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .tabbar__due p {
        padding-top: 10px;
        font-size: 0.7em;
    }


    .bubble_img1 {
        grid-column: 1/9;
        margin: 5px auto;
        max-width: 50%;
    }

    .bubble_img2 {
        grid-column: 1/9;
        margin: 5px auto;
        max-width: 50%;

    }


}