/* Tavolozza colore */

:root {
    --accent: #84090b;
    --dark: #0B090A;
    --secondary: #BA181B;
    --light: #F5F3F4;
    --primary: #2E2E2E;
}

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

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

.res {
    width: 100%;
}

/* Utility */

html {
    scroll-behavior: smooth;

}

/* Tipografia */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3em;
}

h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8em;
}

h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2em;
    margin-bottom: 15px;
}

h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1em;
    color: var(--accent);
}

p.leading {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 300;
}

p {
    font-size: 1em;
    line-height: 1.5em;
}


.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 30px;
    margin: 0 auto;
}

/* Header */

header.cover {
    background: var(--accent);
    padding: 25px;
    height: 120px;
    overflow: hidden;
    transition: 0.5s cubic-bezier(.55, .6, .64, .53);
    margin-top: 0px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
}


.cover.active {
    height: 300px;
}

.cover__logo {
    margin-left: 10px;
}

.cover__logo h2 {
    font-weight: 300;
}



div.cover__logo {
    display: flex;
    align-items: center;
    gap: 35px;
    color: var(--light);
}

.cover__menu {
    order: 3;
    width: 100%;
    visibility: hidden;
    margin-top: 85px;
}

.cover.active .cover__menu {
    visibility: visible;
}

header h2 {
    color: var(--light);
    font-size: 1.8em;
}

.cover__menu a {
    color: var(--light);
    font-size: 1.8em;
}

.cover__menu li {
    text-align: right;
}

.cover__hb {
    color: var(--light);
    font-size: 1.6em;


}


nav>a {
    flex-direction: column;
    flex-wrap: wrap;
    color: var(--accent);
}

/* Hero */

#hero {
    margin-top: 60px;
}

.hero_title {
    grid-column: 2/8;
}

.hero_text {
    grid-column: 2/5;
}

.details {
    display: flex;

}

.hero_img {
    grid-column: 6/8;
    overflow: hidden;
    max-width: 500px;
    align-content: center;
}

.hero_img img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* cta-group */

.cta-group {
    grid-column: 2/8;
}

/* cta */
.cta-group {
    font-size: 1.2em;
    display: flex;
    gap: 45px;
    flex-wrap: wrap;

}

.cta__primary,
.cta__secondary {
    border: 2px solid var(--accent);
    padding: 5px 20px;
    border-radius: 45px;
    font-weight: 500;
    text-align: center;
    align-content: center;
}

.cta__primary {
    background: var(--secondary);
    color: var(--light);
}

.cta__primary:hover {
    background: var(--light);
    border: 2px solid var (--accent);
    color: var(--accent);
    transition: all 0.5s ease-in-out 0s;
}

.cta__secondary {
    background: var(--light);
    color: var(--accent);
}

.cta__secondary:hover {
    background: var(--secondary);
    border: 2px solid var (--accent);
    color: var(--light);
    transition: all 0.5s ease-in-out 0s;
}

/* sinossi */

.sinossi_text {
    margin-top: 60px;
    border-radius: 25px;
    grid-column: 2/8;
    background-image: url(../img/sfondosinossi.png);
    background-size: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sinossi_text h2,
.sinossi_text p {
    padding: 0px 20px;
    margin-bottom: 15px;
}

/* autore */


.autore_text {
    margin-top: 60px;
    border-radius: 25px;
    grid-column: 2/8;
    background-color: var(--accent);
    display: inline-flex;
    align-content: center;
    padding: 15px;
}

.autore_img {
    max-width: 250px;
    padding: 25px;
}

.autore_desc p {
    margin-top: 20px;
    color: var(--light);
    font-weight: 400;
    padding: 0px 20px;
    margin-bottom: 15px;
    grid-column: 4/8;

}

.autore_desc li {
    margin-top: 20px;
    color: var(--light);
    font-weight: 400;
    padding: 0px 20px;
    margin-bottom: 15px;
    grid-column: 4/8;

}

.citazione {
    grid-column: 3/7;
}

.citazione p {
    grid-column: 3/7;
    font-size: 1.6em;

}

.citazione h1 {
    grid-column: 2/3;
    font-size: 3em;
    color: var(--accent);

}


.more summary {
    color: var(--light);
    font-weight: 900px;
    margin-left: 30px;
    gap: 30px;
}

/* libri */

.libri_text {
    grid-column: 2/8;
    display: inline-flex;
}


.libri_text h2 {
    grid-column: 2/8;
    margin-top: 60px;
}

.libri {
    grid-column: 2/8;
    display: inline-flex;
}

.libri_imguno,
.libri_imgdue {

    display: inline-flex;
    gap: 10px;
    margin-top: 60px;
}



.libri_imguno img,
.libri_imgdue img {
    border: 1px solid var(--light);
    height: auto;
    width: 100%;
    gap: 10px;
    display: inline-flex;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.libri_imguno a,
.libri_imgdue a {
    align-content: end;
    text-decoration: underline;
    color: var(--accent);
    font-weight: 500;
}

/* eventi */


.date {
    font-size: 1.2em;
    grid-column: 2/8;
    gap: 15px;
    margin-top: 25px;
}

.date h2 {
    margin-bottom: 30px;
}

.date h3 {
    font-size: 1em;
    align-content: center;
    margin-right: 30px;
}



.date__primary,
.date__secondary,
.date__tertiary {
    displaY: flex;
    margin-top: 30px;
    padding: 20px 30px;
    border-radius: 10px;
    font-weight: 900;
    border: 2px solid var (--dark);
    background: var(--primary);
    color: var(--light);
}

.date__primary:hover {

    background-image: url(../img/fotoconferenza.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    transition: all 0.25s ease-in-out 0s;
    color: var(--dark);
}

.date__secondary:hover {

    background-image: url(../img/fotofumetto.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    transition: all 0.25s ease-in-out 0s;
    color: var(--dark);
}

.date__tertiary:hover {
    background-image: url(../img/fotofilm.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    transition: all 0.25s ease-in-out 0s;
    color: var(--dark);
}


/* Popup */
.content__newsletter {
    display: flex;
    justify-content: center;
}

button {
    margin-top: 60px;
    font-family: 'Plus Jakarta Sans', sans-serif;

    background: var(--secondary);
    color: var(--light);
    border: 0;
    cursor: pointer;
}

.popup-wrapper {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.popup {
    background: var(--primary);
    color: var(--light);
    width: 100%;
    max-width: 600px;
    margin: 5% auto;
    padding: 15px;
    z-index: 2;
    position: relative;
}

.popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}


/* ! Mailchimp */
/* MailChimp Form Embed Code - Classic - 12/17/2015 v10.7 */
#mc_embed_signup form {
    display: block;
    position: relative;
    text-align: left;
    margin: 20px
}

#mc_embed_signup h2 {
    font-weight: bold;
    padding: 0;
    margin: 15px 0;
    font-size: 1.4em;
}

#mc_embed_signup input {
    border: 1px solid #ABB0B2;
    -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: var(--accent);
    border: 0 none;
    border-radius: 45px;
    transition: all 0.5s ease-in-out 0s;
    color: var(--light);
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: normal;
    height: 32px;
    line-height: 32px;
    margin: 0 5px 10px 0;
    padding: 0 22px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    width: fit-content;
    width: -moz-fit-content;
}

#mc_embed_signup .button:hover {
    background-color: var(--light);
    color: var(--accent);
}

#mc_embed_signup .small-meta {
    font-size: 11px;
}

#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;
    display: grid;
}

#mc_embed_signup .size1of2 {
    clear: none;
    display: inline-block;
    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: 3px;
}

#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 .mc-address-fields-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 96%;
    gap: 15px;
}

#mc_embed_signup .mc-sms-phone-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 96%;
    gap: 15px;
    padding-top: 5px;
}

#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%;
}

#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 .foot {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 96%;
    align-items: center;
}

@media screen and (max-width:400px) {
    #mc_embed_signup .foot {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        align-items: center;
    }
}

@media screen and (max-width:400px) {
    #mc_embed_signup .referralBadge {
        width: 50%;
    }
}

#mc_embed_signup .brandingLogo {
    justify-self: right;
}

@media screen and (max-width:400px) {
    #mc_embed_signup .brandingLogo {
        justify-self: left;
    }
}

#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_embed_signup .helper_text {
    color: #8d8985;
    margin-top: 2px;
    display: inline-block;
    padding: 3px;
    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;
}

#mc-embedded-subscribe {
    clear: both;
    width: auto;
    display: block;
    margin: 1em 0 1em 5%;
}

#mc_embed_signup #num-subscribers {
    font-size: 1.1em;
}

#mc_embed_signup #num-subscribers span {
    padding: .5em;
    border: 1px solid #ccc;
    margin-right: .5em;
    font-weight: bold;
}

#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
    display: inline-block;
    margin: 2px 0 1em 0;
    padding: 3px;
    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;
}

#mergeRow-gdpr {
    margin-top: 20px;
}

#mergeRow-gdpr fieldset label {
    font-weight: normal;
}

#mc-embedded-subscribe-form .mc_fieldset {
    border: none;
    min-height: 0px;
    padding-bottom: 0px;
}

.backtotop svg {
    grid-column: 8/9;
}

/* footer */


#footer {
    background-color: var(--dark);
    color: var(--accent);
    height: 230px;

}



.social {
    grid-column: 2/3;
}

.social a {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    font-size: 1.4em;
}


.policy {
    grid-column: 3/5;

}

.servizi {
    grid-column: 5/7;
}

.link {
    grid-column: 7/9;
}

.footer__rights {
    grid-column: 1/9;
    display: inline-flex;
    justify-content: space-between;
}


.footer__rights h3 {
    font-size: 0.8em;
    color: var(--light);
    font-weight: 400;
}

.footer__rights a {
    font-size: 0.8em;
    color: var(--light);
    font-weight: 400;
    text-decoration: underline;
}




/* !punto di interruzione per dispositivi medium */
@media(min-width: 800px) {
    .cover__menu {
        all: unset;
    }

    .cover__menu li {
        display: inline-block;
        margin-left: 30px;
    }

    .cover__hb {
        display: none;
    }

    .hero {
        flex-direction: row;
    }

    .hero__text {
        width: 45%;
    }


    #footer {
        background-color: var(--dark);
        color: var(--accent);
        height: 250px;

    }

    .social {
        grid-column: 2/3;
    }

    .social a {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
        font-size: 1.4em;
    }


    .policy {
        grid-column: 3/5;

    }

    .servizi {
        grid-column: 5/7;
    }

    .link {
        grid-column: 7/9;
    }

    nav>a {
        color: var(--light);
        margin: 3px;
        padding: 3px;
        display: block;
    }

}



/* !punto di interruzione per dispositivi medium */
@media(max-width: 800px) {
    .hero_text {
        grid-column: 1/9;
    }



    .hero_img {
        margin-top: 30px;
        grid-column: 2/8;

    }

    .autore_text {
        display: flex;
        flex-direction: column;
        grid-column: 2/8;
    }


    .citazione {
        grid-column: 2/8;

    }


    .libri {
        grid-column: 2/8;
        display: flex;
        flex-direction: column;
    }


}

/* !punto di interruzione per dispositivi small */
@media(max-width: 500px) {
    .hero_text {
        grid-column: 1/9;
    }



    .hero_img {
        margin-top: 30px;
        grid-column: 2/8;

    }

    .sinossi_text {
        grid-column: 1/9;
    }

    .autore_text {
        display: flex;
        flex-direction: column;
        grid-column: 1/9;
    }

    .citazione {
        grid-column: 1/9;

    }

    .libri_text {
        grid-column: 1/9;

    }

    .libri {
        grid-column: 1/9;
        display: flex;
        flex-direction: column;
    }

    .cover__logo h2 {
        display: none;
    }

    .date__primary,
    .date__secondary,
    .date__tertiary {
        display: flex;
        flex-direction: column;
    }

    .date {
        grid-column: 1/9;
    }

    #footer {
        grid-column: 1/9;
        height: auto;
    }

    .social,
    .link,
    .servizi,
    .policy {
        grid-column: 1/9;
    }

    .footer__rights {
        margin-top: 30px;
    }

}