/* tavolozza colore */
:root {

    --light: #ececec;
    --primary: #1d4565;
    --ssecondary: #e1848e;
    --night: #251c1c;
    --accent: #dc714b;
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--night);
    cursor: pointer;
}

a:hover {
    color: var(--accent);
}

html {
    scroll-behavior: smooth;
}

.nowrap {
    white-space: nowrap;
}

.res {
    width: 100%;
    max-width: 300px;
}

/*Layout*/
section {
    margin: 20px 0;
}

/*tipografia*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DM Serif Display', serif;
    font-weight: bold;
}

h1 {
    font-size: 2em;
}

.editor {
    color: var(--light);
}

h3 {
    margin-top: 4px;
    font-size: 1.3em;
}

body {
    font-family: 'Roboto', sans serif;
}

header {
    width: 100%;
    background-color: var(--primary);
}

.header__container {
    background-color: var(--primary);
    color: var(--light);
    padding: 25px;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.cover__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__menu {
    padding-inline: 25px;
    height: 30px;
    margin: -1px;
    background-color: var(--primary);
    overflow: hidden;
    visibility: hidden;
}

.header__menu.active {
    visibility: visible;
}

.cover__menu a {
    color: var(--light);
    font-weight: bold;
    cursor: pointer;
}

nav {
    display: flex;
    justify-content: space-between;
}

.cover__menu a:hover {
    color: var(--accent);
}

.cover__hb {
    cursor: pointer;
}

.cover__gift {
    cursor: pointer;
}

.gift__popup {
    text-align: center;
    line-height: normal;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--ssecondary);
    border-radius: 8px;
    color: var(--night);
    width: 100%;
    max-width: 300px;
    padding: 15px;
    z-index: 2;
    position: relative;
    margin: 5% auto;
}

.gift__wrapper {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.gift__popup h3 {
    color: var(--primary);
}

.gift__popup h4 {
    color: var(--accent);
}

.gift__close {
    text-align: right;
    cursor: pointer;
}

.p__gift {
    margin: 15px;
    padding: 10px;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__text h1,
h2 {
    color: var(--primary);
}

.hero__text h3 {
    color: var(--night);
}

img.cover__container {
    width: 60%;
}

.img__bibliografia {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -30px;
}

p.leading {
    font-size: 1.15em;
    line-height: 1.6em;
    padding: 10px;
    text-align: justify;
}

p.basic {
    font-size: 1.05em;
    line-height: 1.5em;
    padding: 10px;
    text-align: justify;
}

.citazione {
    padding: 25px;
    text-align: center;
    background-color: var(--primary);
    width: fit-content;
    color: var(--light);
    margin: 25px;
    border-radius: 8px;
}

.cta-group {
    font-size: 1.3em;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
    align-items: center;
    border: 0;
    cursor: pointer;
    width: fit-content;
}

.cta__primary,
.cta__secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;

}

.cta__primary {
    background-color: var(--primary);
    color: var(--light);
}

.cta__primary:hover {
    background-color: var(--accent);
    color: var(--light);

}

.cta__secondary {
    background-color: var(--ssecondary);
    color: var(--light);
}

.cta__secondary:hover {
    background-color: var(--accent);
    color: var(--light);
}

span {
    font-size: 0.8em;
}

.content__recensioni {
    line-height: 1.50em;
    padding: 15px;
}

.fa-solid {
    color: var(--light);
}

.fa-regular {
    color: var(--light);
}

.fa-pen {
    background-color: var(--ssecondary);
    border: 8px solid var(--ssecondary);
    color: var(--light);
    border-radius: 100%;
}

.recensione_uno {
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--ssecondary);
    margin: 20px;
    align-items: center;
}

.recensione_due {
    margin: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--ssecondary);
    align-items: center;
}

.recensione_tre {
    margin: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--ssecondary);
    align-items: center;
}

.recensione_quattro {
    margin: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--ssecondary);
    align-items: center;
}

/* popup della recensione */
.your__review {
    line-height: normal;
    text-align: center;
    align-items: center;
}

.button__review {
    width: fit-content;
    border: 0;
    cursor: pointer;
    font-size: 1em;
    flex-wrap: wrap;
    border: 0;
    cursor: pointer;
    width: fit-content;
    margin-top: -5px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    background-color: var(--ssecondary);
    color: var(--light);
}

.review__wrapper {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.review__popup {
    background-color: #ffffff;
    border: 1px solid var(--ssecondary);
    border-radius: 8px;
    color: var(--night);
    width: 100%;
    max-width: 300px;
    padding: 15px;
    z-index: 2;
    position: relative;
    margin: 5% auto;
}

.review__popup h2 {
    color: var(--ssecondary);
}

.review__close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.button__review:hover {
    background-color: var(--accent);
}

.button__newsletter:hover {
    background-color: var(--accent);
}

/*copio mailchimp per il popup della recensione*/
#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;
}

/* MailChimp Form Embed Code - Classic - 12/17/2015 v10.7 */
#mc_embed_review form {
    display: block;
    position: relative;
    text-align: left;
    margin: 20px;
}

#mc_embed_review h2 {
    font-weight: bold;
    padding: 0;
    margin: 15px 0;
}

#mc_embed_review input {
    border: 1px solid #ABB0B2;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#mc_embed_review input[type=checkbox] {
    -webkit-appearance: checkbox;
}

#mc_embed_review input[type=radio] {
    -webkit-appearance: radio;
}

#mc_embed_review input:focus {
    border-color: 1px solid #ABB0B2;
}

#mc_embed_review .button__review {
    clear: both;
    background-color: var(--ssecondary);
    border: 0 none;
    border-radius: 4px;
    transition: all 0.23s ease-in-out 0s;
    color: var(--light);
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    height: 32px;
    line-height: 1.3em;
    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;
    margin-top: 10px;
}

#mc_embed_review .button__review:hover {
    background-color: var(--accent);
}

#mc_embed_review .small-meta {
    font-size: 11px;
}

#mc_embed_review .nowrap {
    white-space: nowrap;
}

#mc_embed_review .mc-field-group {
    clear: left;
    position: relative;
    width: 96%;
    padding-bottom: 3%;
    min-height: 50px;
    display: grid;
}

#mc_embed_review .size1of2 {
    clear: none;
    float: left;
    display: inline-block;
    width: 46%;
    margin-right: 4%;
}

* html #mc_embed_review .size1of2 {
    margin-right: 2%;
    /* Fix for IE6 double margins. */
}

#mc_embed_review .mc-field-group label {
    display: block;
    margin-bottom: 3px;
}

#mc_embed_review .mc-field-group input {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-indent: 2%;
}

#mc_embed_review .mc-field-group select {
    display: inline-block;
    width: 99%;
    padding: 5px 0;
    margin-bottom: 2px;
}


#mc_embed_review .indicates-required {
    text-align: right;
    font-size: 11px;
    margin-right: 4%;
}

#mc_embed_review .asterisk {
    color: #e85c41;
    font-size: 150%;
    font-weight: normal;
    position: relative;
    top: 5px;
}

#mc_embed_review .clear {
    clear: both;
}

#mc_embed_review .foot {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 96%;
    align-items: center;
}

.content__autore {
    display: inline-block;
    justify-content: space-between;
    padding: 10px;
    flex-direction: row;
}

.content__autore h2 {
    text-align: center;
}

.content__autore h3 {
    margin-top: 10px;
    text-align: center;
}

.citazione__autore {
    text-align: center;
}


.social__autore {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.a__autore:hover {
    color: var(--accent);
}

.autore {
    display: flex;
}

.biografia {
    display: flex;
    align-items: flex-start;
}


.bibliografia {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    width: 100%;
    gap: 20px;
}


.content__eventi h2 {
    text-align: center;
}

.content__eventi {
    padding: 10px;
}

/* Footer */
footer {
    background: var(--night);
    font-size: 1.2em;
    font-family: 'Roboto', sans-serif;
    padding: 25px;
    color: var(--light);
}

footer .container {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

footer a {
    font-size: 0.8em;
    font-family: 'Roboto', sans-serif;
    color: var(--light);
}

.social a:hover {
    color: var(--accent);
}

.legal a {
    color: var(--light);
    display: block;
}

.legal a:hover {
    color: var(--accent);
}

.links a {
    color: var(--light);
    display: block;
}

.links a:hover {
    color: var(--accent);
}

.iscriviti a {
    color: var(--light);
}

.iscriviti a:hover {
    color: var(--accent);
}

h5 {
    text-transform: uppercase;
}

/*Popup*/
.content__newsletter {
    display: flex;
    justify-content: center;
}

.button__newsletter {
    display: block;

    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-color: var(--night);
    color: var(--light);
    width: 100%;
    max-width: 300px;
    padding: 15px;
    z-index: 2;
    position: relative;

    margin: 5% auto;
}

.popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.h2__newsletter {
    color: var(--ssecondary);
}

.content__newsletter a {
    color: var(--light);
}

.button__newsletter {
    font-size: 1.3em;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
    align-items: center;
    border: 0;
    cursor: pointer;
    width: fit-content;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    background-color: var(--primary);
    color: var(--light);
}

/* Mailchimp */
#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;
}

/* 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;
}

#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.23s ease-in-out 0s;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-content: right;
    font-size: 15px;
    font-weight: bold;
    height: 32px;
    line-height: 1.3em;
    margin: 10px 5px 10px 0;
    padding: 0 22px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    max-width: 150px;
    /* width: fit-content; */
    width: -moz-fit-content;
}

#mc_embed_signup .button:hover {
    background-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;
    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_fieldset gdprRequired mc-field-group {
    line-height: 1.3em;
}

.content__gdprLegal {
    margin-top: 10px;
}

/*media query*/
@media(min-width: 768px) {

    .cover__menu {
        all: unset;
    }

    p.leading {
        line-height: 1.25em;
    }

    p {
        gap: 5px;
        line-height: 1.1em;
    }


    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center;

    }

    img.cover__container {
        width: 50%;
    }

    h2 {
        font-size: 1.7em;
    }

    .hero__text {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    footer .container {
        flex-direction: row;
        padding: 15px;
        justify-content: space-between;
    }

    .social {
        width: 25%;
    }

    .legal {
        width: 25%;
    }

    .links {
        width: 25%;
    }

    .lavora {
        width: 25%;
    }
}

/* Punto di interruzione per dispositivi larghi */
@media(min-width: 1024px) {

    .hero__container,
    .content__container {
        padding: 30px;
        margin: 0 auto;
        align-items: center;
    }

    .cover__container {
        width: 100%;
        max-width: 714px;
        margin: 0 auto;
        float: left;
    }

    .hero__text,
    .content__sinossi {
        display: flex;
        flex-direction: column;
    }

    p.leading {
        line-height: 1.25em;
        margin-top: -10px;
    }

    p {
        gap: 5px;
        line-height: 1.1em;
    }

    .hero__text {
        flex-direction: column;
        display: flex;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: -20px;
    }

    .citazione {
        display: flex;
        align-items: center;
    }

    .recensioni {
        margin: 0 auto;
        display: flex;
        text-align: center;
    }

    .recensione_uno {
        width: 25%;
    }

    .recensione_due {
        width: 25%;
    }

    .recensione_tre {
        width: 25%;
    }

    .recensione_quattro {
        width: 25%;
    }

    .bibliografia {
        display: flex;
        justify-content: center;
        width: 50%;
    }

}