/* TAVOLOZZA COLORE */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #760000;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

/* Utility */
.clippy {
    clip-path: circle();
}

.res {
    width: 100%;
    max-width: 290px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

/* tipografia */
body {
    font-family: "Roboto", sans-serif;
    background-color: var(--secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "EB Garamond", serif;
}

p {
    font-size: 1.4em;
    margin-bottom: 15px;
}

p.leading {
    font-size: 1.6em;
}


/* -------------------------------------------------------------------------------- */
/* ! Grid per mobile first */
/* -------------------------------------------------------------------------------- */
/* grid sistem */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}

/* header */
.header {
    position: fixed;
    width: 100%;
    z-index: 3;
    background-color: var(--accent);
}

.header__logo img {
    filter: invert(1);
    width: 180px;
    height: auto;
}

.site-nav__menu {
    display: none;
    font-family: "EB Garamond", serif;
}

.site-nav__menu.open {
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-gap: 10px;
    justify-content: center;
    color: var(--secondary);
    display: none;
}

.site-nav__menu.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--accent);
    color: var(--secondary);
    z-index: 2;
    cursor: pointer;
}

.site-nav__menu li {
    padding: 10px;
    text-align: center;
    font-size: 2em;
    cursor: pointer;
}

.site-nav li a {
    color: var(--secondary);
}


.site-nav__menu {
    color: var(--secondary);
}

.site-nav__hb {
    cursor: pointer;
    grid-column: 8/9;
    justify-self: end;
    /* outline: 1px solid red; */
    color: var(--secondary);
    font-size: 20px;
}

/* fondazione*/

.fondazione {
    background: var(--accent);
    color: var(--secondary);
    padding: 50px;
}

.fondazione__text {
    grid-column: 1/9;
}

.fondazione__img {
    grid-column: 1/ 9;
    cursor: pointer;
    display: none;
    /* justify-content: center; */
    object-fit: cover;
    margin: 0;
}

.fondazione__text h1 {
    font-size: 4em;
    margin-bottom: 20px;
}

.fondazione__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    max-width: 100px;
}


/* slider */
#slider {
    position: relative;
    /* max-width: 600px; */
    /* margin: auto; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px;
}

#img_slider {
    width: 100%;
    height: auto;
    overflow: hidden;
}

#img_slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* display: none; */
}

#img_slider img:nth-child(1) {
    display: block;
}



/* riviste online */
.riviste {
    display: grid;
    padding: 30px;
}

.riviste__text {
    grid-column: span 8;
    font-size: 0.8em;
}

.riviste__text h1 {
    font-size: 4em;
    margin-bottom: 10px;
}

/* cta */
.cta_group {
    font-size: 1.4em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cta__primary {
    padding: 10px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-align: left;
    background: var(--accent);
    color: var(--secondary);
    border: 2px solid var(--accent);
}


.cta__primary:hover {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: var(--secondary);
}

/* didattica */
.didattica {
    display: grid;
    padding: 20px;
}

.didattica__text {
    grid-column: span 8;
    font-size: 0.8em;
}

.didattica__text h1 {
    font-size: 4em;
    margin-bottom: 10px;
}

.didattica__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

/* Footer */
footer {
    color: var(--secondary);
    background: var(--accent);
    font-size: 1.2em;
    padding: 25px;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marchio img {
    width: 25%;
    filter: invert(1);
    width: 180px;
}

.social {
    width: 25%;
}

.legal {
    width: 25%;
}

.link {
    width: 25%;
}


footer a {
    font-size: 0.8em;
    color: var(--secondary);
    display: block;
}

footer h3 {
    text-transform: uppercase;
}


/* Punto di interruzione per dispositivi medium */
@media (min-width: 768px) {
    .header__logo img {
        filter: invert(1);
        width: 200px;
        height: auto;
    }

    .site-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-nav__menu {
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: flex-end;
        gap: 20px;
        grid-column: span 8;
        font-family: "EB Garamond", serif;
        font-size: 1.5em;
    }

    .site-nav__menu li {
        color: var(--secondary);
        font-size: 1em;
        padding-top: 0px;
        width: auto;
        text-align: center;
    }

    .site-nav__hb {
        display: none;
    }

    .cta_group {
        grid-column: 1/9;
    }

    .cta__primary {
        padding: 30px;
        text-align: center;
        display: flex;
        align-items: center;
        height: 30%;
        font-size: 1em;
    }

    footer .container {
        flex-direction: row;
    }

}

/* Punto di interruzione per dispositivi grandi */
@media(min-width:992px) {
    .content {
        display: grid;
    }

    .fondazione__text {
        grid-column: 1/5;
    }

    .fondazione__img {
        grid-column: 6/9;
        display: block;
        align-items: center;
        justify-content: center;
    }

    .fondazione__img img {
        width: 100%;
        height: 100%;
        object-fit: none;
        display: grid;
        max-width: 500px;
    }

    .didattica__img {
        grid-column: 6/9;
        display: flex;
        justify-content: center;
    }

    .didattica__img img {
        width: 100%;
        height: 100%;
        object-fit: none;
        display: grid;
        max-width: 500px;
    }

    .didattica__text {
        grid-column: 1/5;
    }

    .riviste__text {
        grid-column: 1/4;
    }

    .cta_group {
        grid-column: 5/9;
        margin-top: 150px;
    }

    .cta__primary {
        padding: 30px;
        text-align: center;
        display: flex;
        align-items: center;
        height: 20%;
        font-size: 1em;

    }
}