/* Tavolozza colore */
:root {
    --primary: #e1859e;
    --secondary: #5b9893;
    --accent: #f7aa77;
    --dark: #27292a;
    --light: #faf9f9;
}

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

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utility */
html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
    max-width: 380px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout */
section {
    /* padding: 15px; */
    margin: 20px 0;
}

/* Tipografia */
body {
    font-family: 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Archivo Black', sans-serif;
    color: var(--accent);
}

p.leading {
    font-size: 1.2em;
    line-height: 1.4em;
}

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

.rosa {
    color: var(--primary);
}

/* -------------------------------------------------------------------------------- */
/* ! Grid per Mobile first */
/* -------------------------------------------------------------------------------- */
/* Grid stystem */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}

/* Header */
header {
    background: var(--primary);
    padding: 15px;
    height: 70px;
}

.site-nav h2 {
    grid-column: 1/8;
    color: var(--light);
}

.site-nav__menu {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 999;
}

.open .site-nav__menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-height: 100%;
    width: 100%;
    height: 100vh;
    margin-top: 15px;
    margin-bottom: 20px;
    background: var(--primary);
    animation: openPanel 0.6s;
    font-size: 2.5em;
    line-height: 1.8em;
    z-index: 999;
}

.open .site-nav a {
    color: var(--light);
}

.open .site-nav a:hover {
    color: var(--dark);
}

/* Hamburger */

.site-nav__hamburger {
    cursor: pointer;
    grid-column: 8/9;
    justify-self: end;
    /* outline: 1px solid red; */
    height: 20px;
    width: 40px;
    position: relative;
    transition: 0.6s cubic-bezier(.99, .3, .06, .79);
}

.site-nav__hamburger span {
    background: var(--light);
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    border-radius: 20px;
    transition: 0.6s cubic-bezier(.99, .3, .06, .79);
}

.site-nav__hamburger span:nth-child(1) {
    top: 0;
    width: 90%;
    opacity: 1;

}

.site-nav__hamburger span:nth-child(2),
.site-nav__hamburger span:nth-child(3) {
    top: 10px;
    width: 70%;
}

.site-nav__hamburger span:nth-child(4) {
    top: 20px;
    width: 90%;
    opacity: 1;
}

/* Hamburger in open */
.open .site-nav__hamburger {
    transform: rotate(180deg);
    z-index: 999;
}

.open .site-nav__hamburger span:nth-child(1),
.open .site-nav__hamburger span:nth-child(4) {
    width: 0;
    opacity: 0.4;
}

.open .site-nav__hamburger span:nth-child(2) {
    transform: rotate(45deg);
    width: 80%;
}

.open .site-nav__hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 80%;
}

/* Hero */
#hero {
    display: grid;
}

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

.hero__text p {
    font-size: 19px;
}

.hero__text h1 {
    color: var(--accent);
    margin-top: 15px;
}

.hero__text h2 {
    color: var(--secondary);
    font-size: 19px;
}

/* cta */
.cta-group {
    font-size: 1em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cta__primary,
.cta__secondary {
    border: 2.5px solid var(--secondary);
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 700;
}

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

.cta__primary:hover {
    background: var(--accent);
    border: 3px solid var(--accent);
    color: var(--light);
}

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

.cta__secondary:hover {
    background: var(--accent);
    border: 2px solid var(--accent);
}

section {
    padding: 15px;
}

.hero__cover {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

.hero__cover img:hover {
    transform: scale(1.1);
    transition: transform .5s;
}

/* Sinossi */
#sinossi {
    display: grid;
    margin-top: 50px;
}

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

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

.sinossi__text p {
    line-height: 1.3em;
}

/* Autore */
#autore {
    display: grid;
    margin-top: 50px;
}

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

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

.autore__text p {
    line-height: 1.3em;
}

.autore__text a {
    color: var(--dark);
    text-decoration: underline;
}

.autore__text a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.autore__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.autore__img img:hover {
    transform: scale(1.1);
    transition: transform .5s;
}

/* Recensioni */
#recensioni {
    display: grid;
    margin-top: 50px;
}

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

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

.recensioni__text p {
    margin-bottom: 30px;
}

.recensioni {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.recensione__a {
    width: 250px;
    display: block;
    justify-content: space-between;
    /* margin-top: 20px; */
    text-align: center;
    background: var(--dark);
    color: var(--light);
    border: 30px solid var(--dark);
    border-radius: 15px;
}

.recensione__b {
    width: 250px;
    display: block;
    justify-content: space-between;
    margin-top: 36px;
    text-align: center;
    background: var(--dark);
    color: var(--light);
    border: 30px solid var(--dark);
    border-radius: 15px;
}

.stars i {
    margin-top: 15px;
    color: var(--secondary);
}

/* Popup */
#newsletter {
    display: grid;
}

#newsletter button {
    grid-column: 1/9;
    width: fit-content;
    justify-self: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

button {
    display: block;
    /* background: var(--primary);
    color: var(--light);
    padding: 15px;
    width: fit-content; */
    border: 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.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: 600px;
    margin: 5% auto;
    padding: 15px;
    z-index: 2;
    position: relative;
}

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

/* Footer */

footer {
    color: var(--light);
    background: var(--dark);
    padding: 15px;
}

.footer {
    display: grid;
}

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

.personal p {
    line-height: 1.5em;
}

.libro {
    grid-area: 2;
    grid-column: 1/6;
}

.shops {
    grid-area: 2;
    grid-column: 6/8;
}

.privacy {
    grid-area: 3;
    grid-column: 1/5;
}

.socials {
    grid-area: 3;
    grid-column: 6/8;
}

footer h4 {
    font-size: 18px;
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 35px;
    position: relative;
}

footer a {
    text-decoration: none;
    color: var(--light);
}

footer a:hover {
    color: var(--accent);
}

.fa-brands {
    font-size: 1.6em;
    color: var(--light);
    margin-bottom: 10px;
}

.fa-brands:hover {
    color: var(--accent);
}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi medium */
/* -------------------------------------------------------------------------------- */
@media(min-width: 768px) {

    /* Header */
    header {
        height: 80px;
    }

    .site-nav__menu {
        z-index: 999;
    }

    .open .site-nav__menu {
        position: absolute;
        z-index: 2;
    }

    /* Hero */
    .hero__text {
        grid-column: 1/5;
    }

    .hero__text h1 {
        margin-top: 50px;
    }

    .hero__cover {
        grid-column: 6/9;
        margin-top: 50px;
    }

    /* Autore */
    .autore__text {
        grid-column: 1/5;
    }

    .autore__img {
        grid-column: 6/9;
        margin-top: 0;
    }

    /* Recensioni */
    .recensioni {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .recensioni__text p {
        margin-bottom: 0;
    }

    .recensione__a {
        grid-column: 1/4;
        margin-top: 40px;
    }

    .recensione__b {
        grid-column: 5/9;
        height: 550px;
    }

    /* Footer */
    .personal {
        grid-column: 1/9;
    }

    .libro {
        grid-area: 2;
        grid-column: 1/2;
    }

    .shops {
        grid-area: 2;
        grid-column: 3/4;
    }

    .privacy {
        grid-area: 2;
        grid-column: 5/7;
    }

    .socials {
        grid-area: 2;
        grid-column: 8/9;
    }


}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi large */
/* -------------------------------------------------------------------------------- */
@media(min-width: 992px) {
    .grid {
        max-width: 1060px;
        margin: 0 auto;
    }

    /* Header */
    .site-nav {
        display: grid;
        grid-column: 1/9;
        align-items: center;
    }

    .site-nav h2 {
        grid-column: 1/4;
    }

    .site-nav__menu {
        all: inherit;
        grid-column: 5/9;
    }

    .site-nav__menu a {
        font-size: 22px;
        color: var(--light);
        font-weight: 500;
        margin-right: 10px;
    }

    .site-nav__menu a:hover {
        color: var(--dark);
    }

    .site-nav__hamburger {
        display: none;
    }

}

/* 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_scroll h6 {
    font-weight: 400;
    color: var(--light);
}

#mc_embed_signup_scroll a {
    color: var(--primary);
}


#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: inline-block;
    font-family: 'Poppins', sans-serif;
    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;
    transition: all 2s ease-in-out 0s;
}

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