/* -------------------------------------------------------------------------------- */
/* ! reset */
/* -------------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    cursor: pointer;
}

li {
    list-style-type: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* -------------------------------------------------------------------------------- */
/* ! utilità */
/* -------------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.res {
    width: 100%;
    max-width: 1200px;
}

/* -------------------------------------------------------------------------------- */
/* ! tavolozza colori */
/* -------------------------------------------------------------------------------- */
:root {
    --primary: #890620;
    --secondary: rgb(179, 86, 86);
    --accent: rgb(255, 90, 95);
    --light: #f1f1f1;
    --dark: rgb(1, 22, 56);
}

/* -------------------------------------------------------------------------------- */
/* ! tipografia */
/* -------------------------------------------------------------------------------- */
body {
    font-family: 'Philosopher', sans-serif;
}

.leading {
    font-weight: bold;
}

/* -------------------------------------------------------------------------------- */
/* ! macro */
/* -------------------------------------------------------------------------------- */
section {
    scroll-margin-top: 140px;
}

/* -------------------------------------------------------------------------------- */
/* ! header */
/* -------------------------------------------------------------------------------- */
.fixed {
    background: rgba(1, 22, 56, 1);
    position: fixed;
    width: 100%;
    height: 70px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 70px;
    width: 1400px;
    margin: 0 auto;
    z-index: 5;
}

/*? header navbar */
.header__menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.site-nav li {
    display: inline-block;
}

.site-nav a {
    position: relative;
    padding: 0px 10px;
    margin: 0 30px;
    color: var(--light);
    font-size: 1.4em;
}

.site-nav a:after {
    content: '';
    position: absolute;
    background: var(--light);
    height: 3px;
    border-radius: 2px;
    width: 0;
    left: 0;
    bottom: -5px;
    transition: 0.3s ease-in;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav a:hover:after {
    width: 100%;
}

.header__contacts i {
    font-size: 1.5em;
    color: var(--light);
}

.email.active .close,
.email .open {
    display: none;
}

.email .close,
.email.active .open {
    display: block;
}

.header__icon {
    display: none;
}

/* -------------------------------------------------------------------------------- */
/* ! hero */
/* -------------------------------------------------------------------------------- */
.hero {
    width: 100%;
    height: 100vh;
    background: transparent;
    margin-top: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero__image {
    width: 100%;
    height: 100vh;
    background: transparent;
    margin-top: auto;
    overflow: hidden;
    position: absolute;
    opacity: 1;
    flex-wrap: wrap
}

.hero__image::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.7;
    border-radius: 10px;
    z-index: 2;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(1, 22, 56, 1), rgba(1, 22, 56, 0.3));
}

.hero__logo {
    position: absolute;
    z-index: 3;
}

.hero__logo p {
    color: white;
    text-align: center;
    font-size: 1.3em;
    font-style: italic;
    font-weight: lighter;
}

.logomemofonte {
    filter: invert(1);
}

/* -------------------------------------------------------------------------------- */
/* ! fondazione */
/* -------------------------------------------------------------------------------- */
.content {
    max-width: 1400px;
    margin: 120px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

.content__text {
    font-size: 1.8em;
    line-height: 1.5em;
    padding: 0 20px;
    border-left: 6px solid var(--primary);
}

.content__cta {
    margin: 40px;
}

.cta-primary {
    background: transparent;
    color: var(--primary);
    border: 3px solid var(--primary);
    border-radius: 10px;
    padding: 10px;
    font-size: 1.3em;
    cursor: pointer;
    transition: .2s ease-in;
}

.cta-primary:is(:hover, :focus) {
    border: 3px solid var(--dark);
    background: var(--dark);
    color: var(--accent);
    font-size: 1.5em;
}

/* -------------------------------------------------------------------------------- */
/* ! aree di navigazione  */
/* -------------------------------------------------------------------------------- */

/*? intestazioni aree di navigazione */
#ricerche,
#riviste,
#spes {
    width: 1400px;
    margin: 120px auto 20px;
    border-left: 6px solid var(--primary);
    scroll-margin-top: 140px;
}

#ricerche h1,
#riviste h1,
#spes h1,
#notizie h1 {
    padding: 0 20px;
    font-size: 1.8em;
}

/* ? ricerche */
.research {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* flex-wrap: wrap; */
    margin: 20px auto;
    max-width: 1400px;
    justify-content: center;
}

.card1 {
    margin: 30px;
    display: flex;
    width: 250px;
    height: 350px;
    background: url(immagini/michelangelo.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
}

.card2 {
    margin: 30px;
    display: flex;
    width: 250px;
    height: 350px;
    background: url(immagini/Lanzi-605x400.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    /* filter: grayscale(100%); */
    position: relative;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
}

.card3 {
    margin: 30px;
    display: flex;
    width: 250px;
    height: 350px;
    background: url(immagini/Baldinucci-491x400.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    /* filter: grayscale(100%); */
    position: relative;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
}

.card4 {
    margin: 30px;
    display: flex;
    width: 250px;
    height: 350px;
    background: url(immagini/Martelli.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    /* filter: grayscale(100%); */
    position: relative;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
}

.card1::before,
.card2::before,
.card3::before,
.card4::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--dark);
    position: absolute;
    opacity: 0;
    border-radius: 10px;
    z-index: 2;
    top: 0;
    left: 0;
}

.card1:hover,
.card2:hover,
.card3:hover,
.card4:hover {
    transform: translateY(30px);
}

.card1:hover:before,
.card2:hover:before,
.card3:hover:before,
.card4:hover:before {
    opacity: 0.4;
}

.card__info {
    margin-top: 250px;
    font-size: 1.6em;
    line-height: 1.3em;
    opacity: 0;
    padding: 40px;
    color: white;
    transform: translateY(150px);
    z-index: 3;
    visibility: hidden;
}

.card__info .name {
    font-weight: bold;
    border-left: 3px solid white;
    padding: 0 15px;
}

.card1:hover .card__info,
.card2:hover .card__info,
.card3:hover .card__info,
.card4:hover .card__info {
    opacity: 1;
    transition: 0.6s ease-in;
    transform: translateY(-20px);
    visibility: visible;
}

.research-nav {
    display: flex;
    flex-direction: row;
    margin: auto;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.research__nav__themes {
    font-size: 1.4em;
    padding: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    margin: auto;
    background: transparent;
    display: flex;
    justify-content: space-between;
    z-index: 0;
    transition: .8s ease-in-out;
}

.research__nav__themes .others {
    display: block;
    transition: .8s ease-in-out;
    color: var(--primary);
    opacity: 1;
}

.research-text {
    color: white;
    z-index: 1;
    font-size: 0.8em;
    visibility: hidden;
    text-decoration: hidden;
}

.research__nav__themes:hover {
    width: 1400px;
    border-bottom-right-radius: 50px;
    border-top-right-radius: 50px;
    background: var(--primary);
}

.research__nav__themes:hover .others {
    display: none;
    color: white;
}

.research__nav__themes:hover .research-text {
    visibility: visible;
}

.research-text:hover {
    text-decoration: underline;
}

/* ? riviste */
.magazines {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    margin: 20px auto;
    max-width: 1400px;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.magazines__text {
    grid-column: 1/5;
    line-height: 1.3em;
    font-size: 22px;
    padding: 0 20px;
}

.magazines__1 {
    grid-column: 5/7;
    position: relative;
    margin: auto;
    width: 300px;
    height: 450px;
    background: url(immagini/Studi-di-Memofonte-2017speciale.png) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magazines__2 {
    grid-column: 7/9;
    position: relative;
    margin: auto;
    width: 300px;
    height: 450px;
    background: url(immagini/Contesti-darte-201701.png) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    /* filter: grayscale(100%); */
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    transition: 0.4s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magazines__1-cta,
.magazines__2-cta {
    background: var(--light);
    font-size: 1.3em;
    /* border: 1px solid red; */
    padding: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    box-shadow: 1px 1px 4px rgba(255, 255, 255, 0.7);
    display: none;
    z-index: 4;
    opacity: 0.8;
    transition: 0.2s ease-in;
}


.magazines__1-cta i,
.magazines__2-cta i {
    color: rgba(0, 0, 0, 0.3);
    transition: 0.6s ease-in;
}

.magazines__1:hover,
.magazines__2:hover {
    width: 290px;
    height: 430px;
}

.magazines__1:hover .magazines__1-cta,
.magazines__2:hover .magazines__2-cta {
    display: block;
}

.magazines__1-cta:hover,
.magazines__2-cta:hover {
    opacity: 1;
    width: 25px;
}

.magazines__1-cta:hover i,
.magazines__2-cta:hover i {
    transform: translateX(8px);
}

.magazines__1::before,
.magazines__2::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--dark);
    position: absolute;
    opacity: 0;
    border-radius: 10px;
    z-index: 2;
    top: 0;
    left: 0;
}

.magazines__1:hover:before,
.magazines__2:hover:before {
    opacity: 0.4;
}

/*? spes */
.spes {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    max-width: 1400px;
    justify-content: space-around;
}

.spes p {
    line-height: 1.3em;
    font-size: 22px;
    padding: 0 20px;
}

.spes__catalogues {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 60px;
}

.spes__1 {
    position: relative;
    margin: auto;
    width: 300px;
    height: 450px;
    background: url(immagini/spes1.png) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    filter: grayscale(100%);
    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__2 {
    position: relative;
    margin: auto;
    width: 300px;
    height: 450px;
    background: url(immagini/spes2.png) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    filter: grayscale(100%);
    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);
    font-size: 0.9em;
    display: none;
    background: var(--light);
    padding: 10px;
    border: 3px solid var(--primary);
    border-radius: 10px;
    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: 3px solid var(--light);
    letter-spacing: 0.1em;
}

/* ? notizie */
.news {
    position: relative;
    width: 100%;
    height: 800px;
    margin: 120px auto;
    background: url(immagini/slideshow-01-cartiglio.jpg);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

#notizie {
    margin: 50px auto;
    scroll-margin-top: 120px;
    color: white;
    border: 1px solid white;
    z-index: 3;
}

.cardnews {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.news1 {
    margin: 30px;
    display: flex;
    width: 300px;
    height: 400px;
    background: url(immagini/news4.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    filter: grayscale(100%);
    position: relative;
    box-shadow: 3px 3px 8px rgba(255, 255, 255, 0.3);
    z-index: 4;
    overflow: hidden;
}


.news2 {
    margin: 30px;
    display: flex;
    width: 300px;
    height: 400px;
    background: url(immagini/studi\ ok.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    filter: grayscale(100%);
    position: relative;
    box-shadow: 3px 3px 8px rgba(255, 255, 255, 0.3);
    z-index: 4;
    overflow: hidden;
}

.news3 {
    margin: 30px;
    display: flex;
    width: 300px;
    height: 400px;
    background: url(immagini/contesti\ ok.png) no-repeat center center;
    background-size: cover;
    /* background-size: 100%;
    object-fit: cover; */
    border-radius: 10px;
    filter: grayscale(100%);
    position: relative;
    box-shadow: 3px 3px 8px rgba(255, 255, 255, 0.3);
    z-index: 4;
    overflow: hidden;
}


.news4 {
    margin: 30px;
    display: flex;
    width: 300px;
    height: 400px;
    background: url(immagini/news3.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    filter: grayscale(100%);
    position: relative;
    box-shadow: 3px 3px 8px rgb(0, 0, 0, 30%);
    z-index: 4;
    overflow: hidden;
}

.news1__info,
.news2__info,
.news3__info,
.news4__info {
    margin-top: 250px;
    line-height: 1.3em;
    opacity: 1;
    padding: 40px;
    color: white;
    transform: translateY(180px);
    z-index: 3;
    transition: 0.4s ease-in;
    /* visibility: hidden; */
}

.title {
    margin-top: 50px;
    font-size: 1.4em;
    color: white;
    opacity: 0.8;
}

.news::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.7;
    z-index: 2;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(1, 22, 56, 1), rgba(1, 22, 56, 0.3));
}

.news1::before,
.news2::before,
.news3::before,
.news4::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--primary);
    filter: grayscale(0);
    position: absolute;
    opacity: 0;
    z-index: 2;
    top: 0;
    left: 0;
    transform: translateY(410px);
    transition: 0.4s ease-in;
    /* 200 punto di arrivo */
}

.news1:hover,
.news2:hover,
.news3:hover,
.news4:hover {
    filter: grayscale(0);
}

.news1:hover:before,
.news2:hover:before,
.news3:hover:before,
.news4:hover:before {
    transform: translateY(200px);
    opacity: 0.8;
}

.news1:hover .news1__info,
.news2:hover .news2__info,
.news3:hover .news3__info,
.news4:hover .news4__info {
    transform: translateY(-25px);
}

.title:hover {
    opacity: 1;
}

/*? invia */
.send {
    /* border: 1px solid red; */
    max-width: 100%;
    margin: 120px auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#invia h1 {
    font-size: 1.8em;
    margin: 20px;
    /* color: var(--primary); */
    border-bottom: 6px solid var(--primary);
    padding: 10px 0;
}

#form {
    position: relative;
    width: 500px;
    margin: 50px auto 100px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input {
    font-size: 0.875em;
    width: 470px;
    height: 50px;
    padding: 0px 15px 0px 15px;
    background: transparent;
    outline: none;
    color: var(--primary);
    border: solid 1px var(--light);
    border-bottom: none;
}

textarea {
    margin-top: 10px;
    max-width: 470px;
    min-width: 470px;
    max-height: 500px;
    min-height: 200px;
    padding: 15px;
    background: transparent;
    outline: none;
    color: var(--primary);
    font-size: 0.875em;
    border: solid 1px var(--light);
}

input:hover,
textarea:hover {
    background: rgba(137, 6, 32, 0.2);
    color: var(--primary);
}

#submit {
    margin-top: 20px;
    width: 502px;
    font-size: 0.875em;
    color: var(--primary);
    outline: none;
    cursor: pointer;
    border: solid 1px rgba(1, 22, 56, 0.2);
    background: transparent;
}

#submit:hover {
    background: var(--dark);
    color: var(--accent);
}

#c1 {
    width: 20px;
    height: 20px;
    margin-top: 20px;
    opacity: 0.7;
}

.check-anchor {
    text-decoration: underline;
    color: var(--dark);
    opacity: 0.4;
}

.check-anchor:hover {
    opacity: 1;
    color: var(--accent);
}

/*? footer */
.bottom {
    /* border: 1px solid red; */
    background: rgba(1, 22, 56, 1);
    width: 100%;
    /* height: 70px;  */
    color: white;
    line-height: 1.3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom__main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 50px;
    border-bottom: 1px solid white;
    padding: 20px;
    flex-wrap: wrap;
}

.logomemofonte2 {
    filter: invert(1);
    width: 150px;
    /* overflow: hidden; */
}

.bottom__text {
    text-align: center;
}

.bottom__icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fa-brands {
    color: white;
    font-size: 1.5em;
    transition: 0.2s ease-in;
}

.fa-brands:hover {
    transform: translateY(-5px);
    color: var(--accent);
}

.fa-instagram:hover .fa-square-facebook {
    opacity: 0.5;
}

.bottom__link {
    color: var(--light);
}

.bottom__link:hover {
    color: var(--accent);
}

.bottom__second {
    color: white;
    line-height: 1.3em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 20px;
    gap: 20px;
}

.bottom__second a {
    color: white;
    text-decoration: underline;
}

.bottom__second a:hover {
    color: var(--accent);
}

/*? chevron */
.bottom__chevron {
    padding: 5px;
    margin: auto;
    z-index: 5;
}

.chevron-icon i {
    color: var(--light);
    font-size: 2em;
    opacity: 0.5;
    transition: 0.2s ease-in;
}

.chevron-icon i:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* -------------------------------------------------------------------------------- */
/* ! mobile */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {

    /*? hb */
    .header {
        justify-content: right;
        padding: 0 20px;
    }

    .header__menu {
        background: var(--dark);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        z-index: 3;
        transition: 0.6s ease-out;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 100px;

    }

    .open .header__menu {
        transform: translateX(0);
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 200px;
        height: 30%;
        gap: 30px;
    }

    .header__icon {
        display: block;
        z-index: 6;
    }

    .icon__hb {
        cursor: pointer;
        width: 2em;
        height: 1.5em;
        position: relative;
        transition: 0.8s ease-in;
    }

    .icon__hb span {
        position: absolute;
        left: 0;
        height: 3px;
        width: 100%;
        background: var(--light);
        transition: 0.3s ease-in;
        border-radius: 8px;
    }

    .icon__hb span:nth-child(1) {
        top: 0;
    }

    .icon__hb span:nth-child(2),
    .icon__hb span:nth-child(3) {
        top: 10px;
        width: 80%;
    }

    .icon__hb span:nth-child(4) {
        top: 20px;
        width: 60%;
    }

    /*? hb in apertura */
    .open .icon__hb {
        transform: rotate(180deg);
    }

    .open .icon__hb span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon__hb span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    .open .icon__hb span:nth-child(1) {
        /* transform: translate(100px); */
        width: 0;
    }


    .open .icon__hb span:nth-child(4) {
        /* transform: translate(-100px); */
        width: 0;
    }

    /*? mediaq fondazione */
    .content__text {
        font-size: 1.5em;
        padding: 0 20px;
        margin: 0 20px;
    }

    #ricerche,
    #riviste,
    #spes {
        margin: 120px 20px 20px;
    }

    #ricerche h1,
    #riviste h1,
    #spes h1,
    #notizie h1 {
        font-size: 1.6em;
    }



    /*? mediaq ricerche */
    .research {
        flex-wrap: wrap;
    }

    .research__nav__themes {
        font-size: 1.2em;

    }

    .card1,
    .card2,
    .card3,
    .card4 {
        width: 250px;
        height: 350px;
    }

    .card__info {
        font-size: 1.4em;
    }

    .card1:hover .card__info,
    .card2:hover .card__info,
    .card3:hover .card__info,
    .card4:hover .card__info {
        transform: translateY(-40px);
    }

    .research__nav__themes:hover {
        width: 640px;
    }

    /*? mediaq riviste */
    .magazines {
        display: flex;
        margin: 20px auto;
        max-width: 1400px;
        gap: 20px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .magazines__1,
    .magazines__2 {
        width: 250px;
        height: 400px;
    }

    .magazines__1:hover,
    .magazines__2:hover {
        width: 240px;
        height: 380px;
    }

    .magazines__text {
        margin-bottom: 30px;
    }

    /*? mediaq spes */
    .spes__catalogues {
        display: flex;
        flex-direction: column;
        margin: 30px auto;
        gap: 50px;
    }

    .spes__1,
    .spes__2 {
        width: 250px;
        height: 400px;
        margin: 10px;
    }

    /*? mediaq notizie */
    .news {
        height: 100%;
    }

    .news1,
    .news2,
    .news3,
    .news4 {
        width: 200px;
        height: 300px;
    }

    .title {
        font-size: 1.2em;
    }

    .news1:hover .news1__info,
    .news2:hover .news2__info,
    .news3:hover .news3__info,
    .news4:hover .news4__info {
        transform: translateY(-60px);
    }

    /*? invia */
    .send {
        /* border: 1px solid red; */
        max-width: 100%;
        margin: 120px auto;
    }

    #invia h1 {
        font-size: 1.5em;
    }

    #form {
        position: relative;
        width: 300px;
    }

    input {
        width: 300px;
    }

    textarea {
        max-width: 300px;
        min-width: 300px;
    }

    #submit {
        width: 332px;
    }

}

@media screen and (min-width: 768px) and (max-width: 991px) {

    /*? header */
    .site-nav a {
        font-size: 1.1em;
    }

    /*? landing */
    .content {
        max-width: 80%;
    }

    .content__text {
        font-size: 1.4em;
        line-height: 1.5em;
    }

    .content__cta {
        margin: 60px;
    }

    .cta-primary {
        font-size: 1.2em;
    }

    .cta-primary:is(:hover, :focus) {
        font-size: 1.4em;
    }

    /*? aree navigazione */
    #ricerche,
    #riviste,
    #spes {
        width: 80%;
        scroll-margin-top: 100px;
    }

    #ricerche h1,
    #riviste h1,
    #spes h1,
    #notizie h1 {
        font-size: 1.5em;
    }

    /* ? ricerche */
    .research {
        max-width: 80%;
    }

    .card1,
    .card2,
    .card3,
    .card4 {
        width: 160px;
        height: 250px;
        margin: 30px 15px;

    }

    .card1:hover,
    .card2:hover,
    .card3:hover,
    .card4:hover {
        transform: translateY(30px);
    }

    .card1:hover:before,
    .card2:hover:before,
    .card3:hover:before,
    .card4:hover:before {
        opacity: 0.4;
    }

    .card__info {
        margin-top: 250px;
        font-size: 1em;
        line-height: 1.1em;
        opacity: 0;
        padding: 40px;
        color: white;
        transform: translateY(10px);
        z-index: 3;
        visibility: hidden;
    }

    .card__info .name {
        font-weight: bold;
        border-left: 3px solid white;
        padding: 0 15px;
    }

    .card1:hover .card__info,
    .card2:hover .card__info,
    .card3:hover .card__info,
    .card4:hover .card__info {
        opacity: 1;
        transition: 0.6s ease-in;
        transform: translateY(-100px);
        visibility: visible;
    }

    .research-nav {
        max-width: 80%;
    }

    .research__nav__themes {
        font-size: 1.2em;
    }

    .research-text {
        font-size: 0.9em;
    }

    .research__nav__themes:hover {
        width: 80%;
    }

    /* ? riviste */
    .magazines {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        max-width: 80%;
    }

    .magazines__text {
        grid-column: 1/9;
        font-size: 1.3em;
        line-height: 1.5em;
    }

    .magazines__1,
    .magazines__2 {
        grid-column: 1/9;
        width: 250px;
        height: 400px;
        margin: 30px auto;
    }

    .magazines__1:hover,
    .magazines__2:hover {
        width: 240px;
        height: 390px;
    }

    /*? spes */
    .spes {
        max-width: 80%;
    }

    .spes p {
        font-size: 1.3em;
        line-height: 1.5em;
    }

    .spes__1,
    .spes__2 {
        width: 250px;
        height: 400px;
        margin: 10px;
        filter: grayscale(1);
    }

    .spes__1-cta a,
    .spes__2-cta a {
        display: block;
    }

    /* ? notizie */
    .news {
        width: 100%;
        height: 120%;
        flex-direction: row;
    }

    #notizie {
        margin: 10px auto;
        scroll-margin-top: 100px;
    }

    .cardnews {
        margin: 10px auto;
    }

    .news1,
    .news2,
    .news3,
    .news4 {
        width: 250px;
        height: 350px;
    }

    .title {
        margin-top: 50px;
        font-size: 1.2em;
        color: white;
        opacity: 0.8;
    }
}