/* reset */

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utilità */

.res {
    width: 100%;
    min-width: 200px;
}

html {
    scroll-behavior: smooth;
}

/* Palette */

:root {
    --primary: #a4a4a4;
    --secondary: #d7c390;
    --accent: rgba(0, 0, 0, 0.90);
    --light: #FDECEF;
    --dark: #0F110C;
}

/* Tipografia */

body {
    font-family: 'Inter', sans-serif;
}

.title,
.subtitle,
.headline {
    font-family: 'ubuntu', sans-serif;
}

.title {
    font-size: 50px;
}

.subtitle {
    font-size: 20px;
}

.headline {
    font-size: 30px;
}

.text {
    font-size: 1.8;
}

p {
    font-size: 1.3em;
    line-height: 1.3em;
}

h1,
h2,
h3 {
    font-family: 'ubuntu';
}

/* Macro */

.wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Header */

.fixed {
    position: fixed;
    background: var(--accent);
    width: 100%;
    z-index: 5;
    transition: all 0.5s ease;
    scroll-margin-top: 0px;
    top: 0;
    font-family: 'ubuntu';
}

.header-1 {
    padding-left: 50px;
    padding-right: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    z-index: 5;
}

.header__icon {
    width: 100px;
    display: flex;
    align-items: center;
}

.fixed a,
p,
h1,
h2,
h3 {
    color: white;
}

.header__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.header-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.header-2 a {
    font-size: 1.5em;
    font-weight: 700;
}

.header__cta {
    width: 100px;
    padding: 10px;
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 20px;
    font-size: 1.5em;
}

.ic {
    transform: scale(100%);
    transition: all 0.5s ease;
    color: white;
}

.ic:hover {
    transform: scale(120%);
    transition: all 0.5s ease;
}

/* Navigazione primaria */

.site-nav li {
    display: inline-block;
}

.site-nav a {
    color: white;

}

.nav {
    padding: 10px;
    border-bottom: 3px rgba(255, 255, 255, 0) solid;
    transition: 0.5s ease;
    margin-left: 10px;
    margin-right: 10px;
}

.nav:hover {
    padding: 10px;
    border-bottom: 3px rgb(255, 255, 255) solid;
    transition: 0.5s ease;
    margin-left: 10px;
    margin-right: 10px;
}

/* PLUS MENU */

.header-1__menu {
    background: rgba(0, 0, 0, 0);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: all 0.5s ease;
}

.open .header-1__menu {
    background: black;
    transform: translateX(0);
    scroll-behavior: unset;

}

.plus {
    transition: 0.5s ease;
    justify-content: center;
    align-items: center;
    transform: scale(100%);
    display: flex;
    font-size: 2em;
    color: white;
    z-index: 5;
    margin-right: 20px;
    cursor: pointer;
}

.plus:hover {
    transform: scale(120%);
    transition: all 0.5s ease;
}

.open .plus {
    transform: rotate(45deg);
    transition: 0.5s ease;
}

.header-1__site-nav {
    width: 400px;
    padding-top: 170px;
    padding-left: 170px;
    display: flex;
    flex-direction: column;
    align-items: left;
    height: 100%;
    position: relative;
}

.header-1__site-nav a {
    color: white;
    text-transform: uppercase;
    font-size: 2em;
    font-weight: 700;
    border-bottom: 3px var(--accent) solid;
    transition: 0.5s ease;
}

.header-1__site-nav a:hover {
    color: white;
    text-transform: uppercase;
    font-size: 2em;
    border-bottom: 3px rgb(255, 255, 255) solid;
    transition: 0.5s ease;
}

.header-1__site-nav li {
    margin-bottom: 2em;
}

.fondazione {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: 0.5s ease;
}

.dropdown-content {
    width: 100%;
    visibility: hidden;
    display: none;
    position: absolute;
    left: 570px;
    top: 170px;
    z-index: 99;
    transition: all 0.5s ease;
}

.dropdown-content a {
    border-bottom: 2px var(--accent) solid;
    transition: all 0.5s ease;
}

.dropdown-content a:hover {
    border-bottom: 2px white solid;
    transition: all 0.5s ease;
}

.fondazione:hover .dropdown-content {
    visibility: visible;
    display: block;
    transition: all 0.5s ease;
}

.riviste {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: 0.5s ease;
}

.dropdown-content-1 {
    width: 100%;
    visibility: hidden;
    display: none;
    position: absolute;
    left: 470px;
    top: 310px;
    z-index: 99;
    transition: all 0.5s ease;
}

.dropdown-content-1 a {
    border-bottom: 2px var(--accent) solid;
    transition: all 0.5s ease;
}

.dropdown-content-1 a:hover {
    border-bottom: 2px white solid;
    transition: all 0.5s ease;
}

.fa-arrow-right {
    font-size: 2em;
    color: var(--accent);
}

.fondazione:hover .fa-arrow-right {
    margin-left: 50px;
    color: #ffffff;
    transition: 0.5s ease;
}

.riviste:hover .fa-arrow-right {
    margin-left: 50px;
    color: #ffffff;
    transition: 0.5s ease;
}

.riviste:hover .dropdown-content-1 {
    visibility: visible;
    display: block;
    transition: all 0.5s ease;
}

/* Cover */

.cover {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 100vh;
    position: relative;

}

.cover::before {
    content: ' ';
    width: 100%;
    height: 100%;
    background: var(--dark);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.logo {
    position: relative;
    z-index: +2;
    max-height: 400px;
    width: 100%;
    margin-top: 120px;
    opacity: 1;
    padding: 50px;
}

.mySlides {
    background: black;
    position: absolute;
    top: 0;
    display: none;
    height: 100%;
    width: 100%;
    z-index: -3;
    object-fit: cover;
    transition: opacity 0.75s ease-in-out
}

.cover__content {
    margin-top: 120px;
    padding: 100px;
    position: relative;
    z-index: 3;
    color: white;
    text-align: left;
    max-width: 500px;
}

.cover__cta {
    width: 100px;
    margin-top: 50px;
    padding: 10px;
    text-align: center;
    border-bottom: 3px solid white;
}

.cover__cta:hover {
    width: 100px;
    margin-top: 50px;
    padding: 10px;
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0);
    transition: all 0.5s ease;
}

.cover__cta a {
    color: #ffffff;
    font-size: 2em;
    font-weight: 700;
}

.cover a p h1 h2 h3 {
    color: white;
}

/* -------------------------------------------------------------------------------- */
/* ! SECTIONS */
/* -------------------------------------------------------------------------------- */

section {
    scroll-margin-top: 60px;
}

.secfondazione {
    margin-top: 50px;
}

.secfondazione__text p {
    color: var(--accent);
    font-size: 1.8em;
    padding-left: 30px;
    border-left: 4px solid var(--accent);
    font-family: 'ubuntu';
    font-weight: 700;
}

.secfondazione__text {
    grid-column: 1/9;
}

.secfondazione__cards {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    grid-column: 1/9;
}

.card {
    aspect-ratio: 3/4;
    width: 300px;
    height: 400px;
    background: var(--accent);
    transition: all ease 0.5s;
}

.card p {
    font-family: 'ubuntu';
    font-weight: 500;
    transition: all ease 0.5s;
}

.card:hover {
    background: rgb(103, 29, 29);
    transition: all ease 0.5s;
}

.mask__p {
    padding: 25px 0;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
}

/* AUTORI */

.secautori {
    margin-bottom: 200px;
    grid-column: 1/9;
}

.secautori__text {
    color: black;
    font-size: 1.8em;
    display: grid;
    grid-column: 1/9;
    margin-bottom: 70px;
}

/* SLIDER */

.containero {
    grid-column: 1/9;
    gap: 20px;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.containero::-webkit-scrollbar {
    display: none;
}

.cardo {
    position: relative;
    z-index: 1;
    min-width: 33.3333%
}

.cardo::before {
    content: "";
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    z-index: 2;
}

.card-contento {
    height: 350px;
    width: 500px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: start;
}

.card-contento p {
    font-size: 1em;
    color: white;
    margin-left: 30px;
    margin-right: 200px;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0);
    transition: 0.5s ease;
}

.card-contento h3 {
    font-size: 2em;
    margin-left: 30px;
    margin-right: 200px;
    margin-top: 50px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0);
    transition: 0.5s ease;
}

.card-contento:hover h3,
.card-contento:hover p {
    padding-left: 20px;
    border-left: 3px solid rgb(255, 255, 255);
    transition: 1s ease;
}

.slide-0 {
    background: url(img/michelangelo\ \(1\).jpg) no-repeat center;
    object-fit: cover;
    background-size: 100%;
    transition: 0.5s ease;
}

.slide-1 {
    background: url(img/Baldinucci-491x400.jpg) no-repeat center;
    object-fit: cover;
    background-size: 100%;
    transition: 0.5s ease;
    grid-column: 1/5;
}

.slide-2 {
    background: url(img/Gabburri-605x400.jpg) no-repeat center;
    object-fit: cover;
    background-size: 106%;
    transition: 0.5s ease;
    grid-column: 5/9;
}

.slide-3 {
    background: url(img/Martelli.jpg) no-repeat center;
    object-fit: cover;
    background-size: 100%;
    transition: 0.5s ease;
}

.slide-4 {
    background: url(img/Lanzi-605x400.jpg) no-repeat center;
    object-fit: cover;
    background-size: 100%;
    transition: 0.5s ease;
}

.slide-5 {
    background: url(img/Bencivenni.jpg) no-repeat center;
    object-fit: cover;
    background-size: 100%;
    transition: 0.5s ease;
}

.slide-0:hover,
.slide-1:hover,
.slide-2:hover,
.slide-3:hover,
.slide-4:hover,
.slide-5:hover {
    background-size: 115%;
    transition: 1s ease;
}

.pre-btn,
.nxt-btn {
    font-size: 3em;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.pre-btn {
    left: 0;
    padding: 30px;
}

.nxt-btn {
    right: 0;
    padding: 30px;
}

/* RIVISTE */

.secriviste__text {
    grid-column: 1/9;
}

.txt1 {
    margin-bottom: 50px;
}

.txt2 {
    grid-column: 6/9;
    padding-left: 30px;
    border-left: 4px solid var(--accent);
    height: 100%;
}

.txt2 p {
    font-size: 1.8em;
    color: var(--accent);
    font-family: 'ubuntu';
    font-weight: 700;
}

.txt1 p {
    font-size: 1.8em;
    color: black;
    padding-bottom: 50px;
}

.rivister {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    grid-column: 1/6;
    flex-wrap: wrap;
}

.cardor {
    position: relative;
    z-index: 1;
    height: 400px;
    width: 300px;
}

.cardor::before {
    content: "";
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 2;
}

.card-contentor {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: start;
}

.card-contentor p {
    font-size: 1em;
    color: white;
    margin-left: 50px;
    margin-right: 200px;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0);
    transition: 0.5s ease;
    display: none;
}

.card-contentor h3 {
    font-size: 2em;
    margin-left: 50px;
    margin-right: 200px;
    margin-top: 50px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0);
    transition: 0.5s ease;
    display: none;
}

.slide-r1 {
    background: url(img/Studi-di-Memofonte-2017speciale.png) no-repeat center;
    object-fit: cover;
    background-size: 100%;
    transition: 0.5s ease;
}

.slide-r2 {
    background: url(img/2_CONTESTI_COPERTINA_news-scaled-1-e1675782178242.png) no-repeat center;
    object-fit: cover;
    background-size: 100%;
    transition: 0.5s ease;
}

.slide-r1:hover,
.slide-r2:hover {
    background-size: 105%;
    transition: 1s ease;
}

/* -------------------------------------------------------------------------------- */
/* ! Grid System */
/* -------------------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin: 0 auto;
    margin-top: 70px;
    padding-left: 100px;
    padding-right: 100px;
}

.grid h2 {
    margin-bottom: 50px;
    font-size: 2.5em;
    font-weight: 700;
    grid-column: 1/9;
    color: black;
    font-family: 'ubuntu';
}

/* ! NEWSLETTER BABY */

.news__content {
    background: rgba(0, 0, 0, 0);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(+100%);
    transition: all 0.5s ease;
    z-index: +5;
}


.ehe .news__content {
    background: black;
    transform: translateX(0);
    scroll-behavior: unset;
}

.ehe::-webkit-scrollbar {
    display: none;
}

.busta {
    transition: 1s ease;
    justify-content: center;
    align-items: center;
    display: flex;
    color: white;
    z-index: 6;
    transition: all ease 0.5s;
    cursor: pointer;
}

.opn {
    display: none;
    transition: 1s ease;
    cursor: pointer;
}

.ehe .cld {
    display: none;
    transition: 1s ease;
}

.ehe .opn {
    display: block;
    z-index: 6;
    transition: 1s ease;
}

/* MailChimp Form Embed Code - Classic - 12/17/2015 v10.7 */

#mc_embed_signup form {
    padding-top: 150px;
    padding-left: 30%;
    padding-right: 30%;
    height: 100%;
    display: block;
    position: relative;
    text-align: left;
}

#mc_embed_signup h2 {
    font-weight: bold;
    padding: 0;
    margin: 0;
    font-size: 2em;
}

#mc_embed_signup input {
    border: 1px solid rgb(255, 255, 255);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#mc_embed_signup input:focus {
    border-color: #333;
}

#mc_embed_signup .button {
    clear: both;
    background-color: #ffffff;
    border: 0 none;
    transition: all 0.23s ease-in-out 0s;
    color: #000000;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5em;
    font-weight: 700;
    height: 32px;
    line-height: 32px;
    margin: 30px auto;
    padding: 0 22px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mc_embed_signup .button:hover {
    background-color: #777;
}

#mc_embed_signup .small-meta {
    font-size: 15px;
}

#mc_embed_signup .nowrap {
    white-space: nowrap;
}

#mc_embed_signup .mc-field-group {
    clear: left;
    position: relative;
    width: 96%;
    padding-bottom: 3%;
    min-height: 50px;
}

#mc_embed_signup .size1of2 {
    clear: none;
    float: left;
    width: 46%;
    margin-right: 4%;
}

* html #mc_embed_signup .size1of2 {
    margin-right: 2%;
    /* Fix for IE6 double margins. */
}

#mc_embed_signup .mc-field-group label {
    display: block;
    margin-bottom: 10px;
}

#mc_embed_signup .mc-field-group input {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-indent: 2%;
}

#mc_embed_signup .mc-field-group select {
    display: inline-block;
    width: 99%;
    padding: 5px 0;
    margin-bottom: 2px;
}

#mc_embed_signup .datefield,
#mc_embed_signup .phonefield-us {
    padding: 5px 0;
}

#mc_embed_signup .datefield input,
#mc_embed_signup .phonefield-us input {
    display: inline;
    width: 60px;
    margin: 0 2px;
    letter-spacing: 1px;
    text-align: center;
    padding: 5px 0 2px 0;
}

#mc_embed_signup .phonefield-us .phonearea input,
#mc_embed_signup .phonefield-us .phonedetail1 input {
    width: 40px;
}

#mc_embed_signup .datefield .monthfield input,
#mc_embed_signup .datefield .dayfield input {
    width: 30px;
}

#mc_embed_signup .datefield label,
#mc_embed_signup .phonefield-us label {
    display: none;
}

#mc_embed_signup .indicates-required {
    text-align: right;
    font-size: 11px;
    margin-right: 4%;
    color: white;
    margin-top: 10px;
}

#mc_embed_signup .asterisk {
    color: #e85c41;
    font-size: 150%;
    font-weight: normal;
    position: relative;
    top: 5px;
}

#mc_embed_signup .clear {
    clear: both;
}

#mc_embed_signup .mc-field-group.input-group ul {
    margin: 0;
    padding: 5px 0;
    list-style: none;
}

#mc_embed_signup .mc-field-group.input-group ul li {
    display: block;
    padding: 3px 0;
    margin: 0;
}

#mc_embed_signup .mc-field-group.input-group label {
    display: inline;
}

#mc_embed_signup .mc-field-group.input-group input {
    display: inline;
    width: auto;
    border: none;
}

#mc_embed_signup div#mce-responses {
    float: left;
    top: -1.4em;
    padding: 0em .5em 0em .5em;
    overflow: hidden;
    width: 90%;
    margin: 0 5%;
    clear: both;
}

#mc_embed_signup div.response {
    margin: 1em 0;
    padding: 1em .5em .5em 0;
    font-weight: bold;
    float: left;
    top: -1.5em;
    z-index: 1;
    width: 80%;
}

#mc_embed_signup #mce-error-response {
    display: none;
}

#mc_embed_signup #mce-success-response {
    color: #529214;
    display: none;
}

#mc_embed_signup label.error {
    display: block;
    float: none;
    width: auto;
    margin-left: 1.05em;
    text-align: left;
    padding: .5em 0;
}

#mc-embedded-subscribe {
    clear: both;
    width: auto;
    display: block;
    margin: 1em 0 1em 5%;
}

#mc_embed_signup #num-subscribers {
    font-size: 1.5em;
}

#mc_embed_signup #num-subscribers span {
    padding: .5em;
    border: 1px solid #ccc;
    margin-right: .5em;
    font-weight: bold;
}

t-gdpr #mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
    display: inline-block;
    margin: 2px 0 1em 0;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    z-index: 1;
    color: #e85c41;
}

#mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {
    border: 2px solid #e85c41;
}

#mc-embedded-subscribe-form input[type=checkbox] {
    display: inline;
    width: auto;
    margin-right: 10px;
}

.news label {
    color: white;
}

/* Footer */

.footer {
    background: var(--accent);
    padding: 30px;
    margin-top: 100px;
    font-family: 'ubuntu' sans-serif;
}

.footer img {
    margin-bottom: 30px;
    width: 150px;
}

.footer__content {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    margin: 0 auto;
    transition: all 0.5s ease;
}

.footer__singolo {
    padding: 50px;
    width: 150px;
}

.footer li {
    color: white;
    line-height: 1.8em;
    font-family: 'ubuntu';
    font-weight: 300;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

/* -------------------------------------------------------------------------------- */
/* ! Media Query Mobile */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {

    .header-1 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cover {
        padding-top: 70px;
        grid-column: 1/9;
    }

    .cover__content {
        padding: 30px;
        margin-top: 0;
    }

    .logo {
        display: none;
    }

    .wrapper h1 {
        display: none;
    }

    .wrapper h2 {
        display: none;
    }

    .grid {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* PLUS MENU */

    .header-1__site-nav {
        display: flex;
        flex-direction: column;
        align-items: left;
        height: 100%;
        position: relative;
        padding-left: 30px;
        padding-top: 100px;
    }

    .header-1__site-nav a {
        font-size: 1.5em;
    }

    .header-1__site-nav:hover a {
        font-size: 1.5em;
    }

    .dropdown-content {
        background-color: var(--accent);
        width: 100%;
        visibility: hidden;
        display: none;
        position: absolute;
        left: 50px;
        top: 170px;
        z-index: 99;
        transition: all 0.5s ease;
    }

    .dropdown-content a {
        font-size: 1.5em;
    }

    .fondazione:hover {
        margin-bottom: 250px;
    }

    .dropdown-content-1 {
        width: 100%;
        visibility: hidden;
        display: none;
        position: absolute;
        left: 50px;
        top: 290px;
        z-index: 99;
        transition: all 0.5s ease;
        margin-left: auto;
    }

    .dropdown-content-1 a {
        font-size: 1.5em;
    }

    .containero {
        margin-bottom: 100px;
    }

    .pre-btn,
    .nxt-btn {
        margin-top: 500px;
    }

    .pre-btn {
        left: 30%;
        padding: 30px;
    }

    .nxt-btn {
        right: 30%;
        padding: 30px;
    }

    .riviste:hover {
        margin-bottom: 130px;
    }

    .fa-arrow-right {
        display: none;
    }

    .rivister {
        grid-column: 1/9;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
    }

    .txt2 {
        grid-column: 1/9;
    }

    #mc_embed_signup form {
        padding-top: 100px;
        padding-left: 50px;
        padding-right: 50px;
    }

}