/* Tavolozza colore */
:root {
    --primary: #30AAC0;
    --secondary: #F2F0DE;
    --accent: #ff9721;
    --dark: #212A38;
    --light: #FFFFFF;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* utility */
html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
    max-width: 700px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}


/* layout */
section {
    margin-bottom: 20px 0;
}

/* tipografia */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    background-color: var(--secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'JetBrains Mono', monospace;
}

h1 {
    padding-bottom: 5px;
    color: var(--dark);
    color: var(--dark);
}

h2 {
    font-size: 24px;
    color: var(--dark);
}

h3 {
    font-size: 15px;
    padding-bottom: 0px;
    color: var(--dark);
}

p {
    font-size: 19px;
    line-height: 1.9em;
    padding: 25px 0;
}

a.leading {
    font-size: 17px;
}

p.leading {
    font-size: 20px;
    line-height: 1.4em;
    padding-top: 0px;
}


/* header */
header.cover {
    background: var(--primary);
    padding: 30px;
    height: 30px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(.17, .67, .83, .67);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .container h1 {
    color: var(--dark);
}

.cover.active {
    height: 150px;
}

div.cover__logo {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}

.cover__menu {
    order: 3;
    width: 100%;
    visibility: hidden;

}

.cover__menu ul li a:hover {
    color: var(--secondary);
    padding-bottom: 8px;
}

.cover.active .cover__menu {
    visibility: visible;
}

.cover__menu a {
    color: var(--dark);
}

.cover__menu li {
    text-align: right;
}

.cover__hb {
    color: var(--dark);
    font-size: 1.5em;
}

.cover__hb ul li a:hover {
    color: var(--primary);
    padding-bottom: 2px;
}

/* hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 15px;
    max-width: 1000px;
}

.hero__text {
    text-align: center;
    margin-top: 60px;
}

.hero__text h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.hero__text h1 {
    margin-bottom: 30px;
}

.hero__cover img {
    margin-top: 60px;
}

.hero__cover {
    padding: 30px;
}

/* cta */
.cta-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.cta-group a {
    width: auto;
    padding: 10px 20px;
    text-align: center;
    justify-content: center;
}

.cta__primary,
.cta__secondary {
    padding: 5px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

.cta__primary {
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--dark);
    transition: all 0.3s ease-in-out 0s;
}

.cta__primary:hover {
    background: var(--accent);
    border: 2px solid var(--accent);
}

.cta__secondary {
    border: 1.5px solid var(--dark);
    background: var(--secondary);
    color: var(--dark);
    transition: all 0.3s ease-in-out 0s;
}

.cta__secondary:hover {
    border: 1.5px solid var(--accent);
    /* background-color: var(--light) */
}


/* main */
main {
    padding: 0px 15px;

}

.reviews {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin: 20px 60px 60px 60px;
    padding: 30px 15px;

    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: auto;
}

.card {
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 2px 5px 10px #e1e0e0;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    height: auto;
}

.card p {
    padding-bottom: 20px;
    font-style: oblique;
    font-weight: 200;
}

/* 
.reviews .card {
    height: auto;
    box-sizing: border-box;
    flex: 1;
} */

.content__sinossi {
    max-width: 600px;
    margin: 0 15px;
    margin-bottom: 30px;
}

.content__sinossi p,
.content__autore p,
.list__eventi p {
    letter-spacing: 0.05em;
}

.list__eventi p {
    line-height: 1.5;
}

.notizia {
    margin-bottom: 40px;
}

.notizia strong {
    margin-left: 20px;
}

.notizia__2 strong {
    margin-left: 20px;
}

.content__eventi p {
    padding-top: 5px;
    padding-bottom: 10px;

}

.content__autore {
    max-width: 600px;
    margin: 0 15px;
    margin-bottom: 30px;
}

.list__eventi {
    padding-top: 30px;
}

.content__altrilibri {
    max-width: 600px;
    margin: 0 auto;
}

.table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 2px 5px 10px #e1e0e0;
    padding: 45px 30px;
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 60px;
}

#altri__libri {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 2px 5px 10px #e1e0e0;
    padding: 45px 30px;
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.content__blog {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 0;
}

summary::marker {
    font-size: 1.4em;
    content: "🗞️";
}

[open] summary::marker {
    font-size: 1.4em;
    content: "📰";

}

.backtotop {
    text-align: right;
    padding-right: 35px;
    margin-bottom: 35px;
}

/* ! FOOTER */
.footer {
    font-family: 'Poppins', sans-serif;
}

.footer__row {
    background-color: var(--dark);
    display: flex;
    flex-wrap: wrap;
}


.footer__full {
    padding: 50px;
}

.footer__full h4 {
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 35px;
    position: relative;
}

.footer__full ul li {
    margin-bottom: 10px;
    align-items: center;
}

.footer__full li a {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    color: var(--light);
    transition: all 0.3s ease;
}

.footer__full ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer__social {
    flex-direction: row;
    width: 100%;
}

.footer__full .footer__social a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: var(--primary);
    margin: 0 20px 20px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.5s ease;
    flex-wrap: wrap;
}

.footer__full .footer__social a:is(:hover, :focus) {
    color: var(--accent);
    background-color: var(--dark);
}

/* Popup */
.content__newsletter {
    display: flex;
    text-align: center;
    justify-content: center;
    padding-bottom: 100px;
    color: var(--primary);
}

.content__newsletter .cta__primary {
    padding: 17px 24px;
    font-size: 1.1em;
    letter-spacing: 0.15em;
    border-radius: 50px;
    transition: all 0.25s ease-in;
}

.content__newsletter .cta__primary:hover {
    background: var(--accent);
    border: 2px solid var(--accent);
}


button {
    display: block;
    background: var(--primary);
    color: var(--light);
    padding: 15px;
    width: fit-content;
    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(--dark);
    color: var(--light);
    width: 100%;
    max-width: 500px;
    margin: 5% auto;
    padding: 10px;
    z-index: 2;
    position: relative;
    border-radius: 15px;
}

.content__gdpr label {
    font-size: 11px;
}

.content__gdpr p {
    font-size: 11px;
    padding-top: 1px;
    padding-bottom: 2px;
}

.popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

#cta__secondary {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    border: 2px solid #adb3b3;
    background: var(--secondary);
    color: var(--dark);
    transition: all 0.3s ease-in-out 0s;
    border-radius: 10px;
    padding: 5px 30px;
}

#cta__secondary:hover {
    border: 2px solid #73787a;
    background-color: var(--light);
}

.image__grid {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.image__duo {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 80px;
}

.image__autore {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 120px;
}

.image__autore img {
    display: flex;
    width: 100%;
    height: auto;
    margin-bottom: 60px;
}

.carousel-container {
    overflow: hidden;
    margin: auto;
    padding-bottom: 100px;
    padding-top: 60px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding-top: 30px;
}

.slide {
    min-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    max-width: 300px;
    align-items: center;
    padding: 0 auto;
}

.slide img {
    width: 100%;
    height: auto;
    box-shadow: 5px 5px 10px #e1e0e0;
}

.slide p a {
    color: var(--dark);
}

.slide p a:hover {
    color: var(--primary);
}


.carousel .slide p {
    margin-top: 30px;
}

.caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 18px;
}





/* ! punto di interruzione per dispositivi medium */
@media (min-width: 768px) {
    h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 22px;
    }

    .hero__text {
        margin-top: 0px;
        width: 50%;
        text-align: left;
        padding-left: 40px;
    }

    .hero {
        flex-direction: row;
    }

    .cta-group {
        display: flex;
        flex-direction: row;
        gap: 50px;
    }

    .cover__menu {
        all: unset
    }

    .cover__menu li {
        display: inline-block;
        margin-left: 20px;
    }

    .cover__hb {
        display: none;
    }

    .cta-group {
        justify-content: left;
    }

    .reviews {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: start;
    }

    .card {
        width: auto;
        height: 100%;
        text-align: center;
    }

    .content__sinossi {
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .content__autore {
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .image__grid {
        justify-content: space-between;
        display: flex;
        flex-direction: row;
        margin-bottom: 10vh;
    }

    .image__duo {
        display: flex;
        flex-direction: row;
        gap: 10vh;
    }

    .image__grid img {
        width: 30%;
    }

    .image__duo img {
        width: 50%;
    }

    .carousel-container {
        margin: auto;
        padding-bottom: 100px;
        padding-top: 60px;
    }

    .carousel {
        display: flex;
        transition: transform 0.3s ease-in-out;
    }

    .slide {
        min-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        max-width: 300px;
        align-items: center;
    }

    .slide img {
        width: 300px;
        height: auto;
        box-shadow: 5px 5px 10px #e1e0e0;
    }

    .caption {
        background-color: rgba(33, 42, 56, 0.7);
        color: var(--secondary);
        padding: 20px;
        width: 300px;
        text-align: center;
        font-size: 17px;
    }

    .scatola__footer ul li a {
        color: var(--light);
        font-size: 14px;
    }

    .scatola__footer {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer__col ul li {
        margin-bottom: 10px;
    }

    .footer__social {
        display: inline-block;
    }

    .footer__full .footer__social a {
        margin: 0 20px 20px 0;
    }

    #altri__libri {
        display: flex;
        flex-direction: column;
        gap: 15px;
        background-color: #FFFFFF;
        border-radius: 20px;
        box-shadow: 2px 5px 10px #e1e0e0;
        padding: 45px 30px;
        margin: 0 auto;
        margin-bottom: 80px;
    }

    .hero__cover {
        width: 74%;
        max-width: 600px;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}


/* Punti di interruzione per dispositivi larghi */
@media (min-width: 992px) {
    h1 {
        font-size: 45px;
        padding-bottom: 20px;
    }

    h2 {
        font-size: 26px;
        font-weight: 500;
        padding-bottom: 6px;
    }


    .cta-group {
        display: flex;
        flex-direction: row;
    }

    .hero__text {
        padding-left: 0px;
    }

    .scatola__footer ul li a {
        color: var(--light);
        font-size: 14px;
    }

    .scatola__footer {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer__full {
        margin: 0 auto;
    }



    .footer__full ul li {
        margin-bottom: 10px;
    }

    #altri__libri {
        display: flex;
        flex-direction: column;
        gap: 15px;
        background-color: #FFFFFF;
        border-radius: 20px;
        box-shadow: 2px 5px 10px #e1e0e0;
        padding: 45px 30px;
        max-width: 550px;
        margin: 0 auto;
        margin-bottom: 180px;
    }
}


/* 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[type=checkbox] {
    -webkit-appearance: checkbox;
}

#mc_embed_signup input[type=radio] {
    -webkit-appearance: radio;
}

#mc_embed_signup input:focus {
    border-color: #333;
}

#mc_embed_signup .button {
    clear: both;
    background-color: var(--primary);
    border: 0 none;
    border-radius: 4px;
    transition: all 0.5s ease-in-out 0s;
    color: #FFFFFF;
    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: #222;
}

#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;
    float: left;
    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;
}

@media screen and (max-width:400px) {
    .footer__full {
        flex-direction: row;
    }

    .card {
        margin: 0 30px;
    }
}