/* Tavolozza colori */
:root {
    --primary: #A61C28;
    --secondary: #595245;
    --accent: #ACA491;
    --dark: #131311;
    --light: #F2EFE9;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;

}

li {
    list-style-type: none;
}

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

.res-book {

    width: 100%;
    max-width: 450px;
}

.clip {
    clip-path: circle();
}

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

section {
    scroll-margin-top: 100px;
    padding: 20px;
}

/* Tipografia */
body {
    background-color: var(--light);
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    color: var(--secondary);
    font-size: 1.2em;
}

h1,
h2 {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    color: var(--primary);
    font-size: 1.5em;
}

h2 {
    color: var(--accent);
}

p {
    margin: 10px 0;
    padding: 2px;
}

.leading {
    font-size: 1.3em;
    font-weight: 500;
}

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

.color2 {
    color: var(--primary);
    font-weight: 900;
}

/* Body */
.hero {
    margin-top: 100px;
}

.hero__cover {
    display: flex;
    justify-content: center;
}

/* Sinossi */
.content__sinossi {
    margin-top: 40px;
}

/* Autore */
.content__autore {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: left;
    margin-top: 40px;
}

.cover__autore {
    order: 2;
    display: flex;
    justify-content: center;

}

.text__autore {

    order: 1;
}

/* Dettagli */
.book-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: left;
    margin-top: 40px;
}

.book-details {
    gap: 10px;
    order: 1;
}

.book-image {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
    order: 2;
}

/* Header */
.header__icon {
    display: block;
}

.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header.cover {
    background: var(--primary);
    color: var(--light);
    height: 80px;
    overflow: hidden;
    transition: 0.6s cubic-bezier(.67, 0, 1, 1);
}

header.cover.active {
    height: 250px;
    text-align: right;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Hamburger */
.icon-hamburger {
    cursor: pointer;
    height: 20px;
    width: 40px;
    position: relative;
    transition: 0.3s ease;
}

.icon-hamburger span {
    background: var(--light);
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: 0.3s ease;
}

.icon-hamburger span:nth-child(1) {
    top: 0;
}

.icon-hamburger span:nth-child(2),
.icon-hamburger span:nth-child(3) {
    top: 10px;
}

.icon-hamburger span:nth-child(4) {
    top: 20px;
}

.open .icon-hamburger {
    transform: rotate(180deg);
}

.open .icon-hamburger span:nth-child(1),
.open .icon-hamburger span:nth-child(4) {
    width: 0;
}

.open .icon-hamburger span:nth-child(2) {
    transform: rotate(45deg);
    width: 100%;
}

.open .icon-hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 100%;
}

.cover__menu {
    order: 3;
    width: 100%;
    visibility: hidden;
}

.cover__menu a {
    color: var(--light);
    font-size: 1.2em;
    padding: 10px;
    gap: 5px;
    display: flex;
    justify-content: right;
}

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

.fa-solid,
.fas {
    font-weight: 900;
    font-size: 1.7em;
}

/* Footer */
footer.low {
    background: var(--accent);
    color: var(--light);
    margin-top: 40px;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.low__logo {
    order: 1;
}

.low__info {
    order: 2;
    text-align: center;
}

.low__info ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.low__info a {
    color: var(--primary);
    font-weight: 500;
}

.low__social {
    order: 3;
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.low__social a {
    color: var(--primary);
    font-size: 1.6em;
    transition: color 0.3s ease;
}

.low__social a:hover {
    color: var(--secondary);
}

/* CTA */
.cta-group {
    font-size: 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 50px;
    justify-content: left;
}

.cta-group__primary,
.cta-group__secondary {
    border: 2px solid var(--secondary);
    padding: 15px 20px;
    border-radius: 35px;
    font-weight: 700;
}

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

.cta-group__secondary {
    background-color: transparent;
    color: var(--secondary);
}

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

.cta-group__secondary:hover {
    border: 2px solid var(--accent);
    color: var(--accent);
}




/* Punto di interruzione per dispositivi medium */
@media(min-width: 825px) {

    /* Header */
    .cover__menu {
        all: unset;
    }

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

    .header__icon {
        display: none;
    }

    /* Hero*/
    .hero {
        display: flex;
        gap: 30px;
    }

    .hero__text {
        width: 45%;
    }

    .hero__cover {
        width: 55%;
        display: flex;
    }

    /* Sinossi */
    .content__sinossi {
        padding-top: 20px;
    }

    /* Autore */
    .content__autore {
        flex-direction: row;
        gap: 60px;
        text-align: left;
    }

    .cover__autore {
        order: 1;
        flex-shrink: 0;
    }

    .text__autore {
        order: 2;
        flex: 1;
    }

    /* Dettagli */
    .book-container {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
        margin-top: 90px;
    }

    .book-details {
        flex: 1;
        order: 1;
        width: 55%;
    }

    .book-image {
        order: 2;
        margin-top: 0;
        margin-bottom: 0;
        justify-content: flex-start;
        flex-shrink: 0;
        width: 45%;
    }

    section {
        scroll-margin-top: 100px;
        padding: 20px;
    }

    /* Footer */
    footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    .low__logo {
        order: 1;
        flex: 0 0 auto;
    }

    .low__info {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .low__info ul {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .low__social {
        order: 3;
        flex: 0 0 auto;
    }

}

@media(min-width: 992px) {

    .leading {
        font-size: 1.4em;
        font-weight: 400;
    }

    /* Header */
    .cover__menu {
        all: unset;
    }

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

    .header__icon {
        display: none;
    }

    /* Hero*/
    .hero {
        display: flex;
        gap: 30px;

    }

    .hero__text {
        width: 45%;
    }

    .hero__cover {
        width: 55%;
        display: flex;
    }

    .content__sinossi {
        padding-top: 30px;
    }

    /* Autore */
    .content__autore {
        display: flex;
        gap: 60px;
        margin-top: 90px;
    }

    .cover__autore {
        width: 45%;
        display: flex;
        justify-content: center;
    }

    .text__autore {
        width: 55%;
    }

    /* Dettagli - FIXED ALIGNMENT */
    .book-container {
        align-items: flex-start;
    }

    .book-image {
        margin-top: 0;
    }

    section {
        scroll-margin-top: 100px;
        padding: 20px;
    }

    /* Footer */
    footer.low {
        padding: 30px 0;
    }

    footer .container {
        gap: 40px;
    }

    .low__info ul {
        gap: 30px;
    }

    .low__social {
        gap: 20px;
    }
}

/* CSS relativo a Mailchip */

/* MailChimp Form Embed Code - Classic - 12/17/2015 v10.7 */
.content__eventi {
    background-color: var(--accent);
    color: var(--secondary);
    border-radius: 20px;
    margin-top: 90px;
}

#mc_embed_signup form {
    display: block;
    position: relative;
    text-align: left;
    padding: 10px 0 10px 3%;
    margin-bottom: 30px;

}

#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: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

#mc_embed_signup input[type=checkbox] {
    -webkit-appearance-checkbox: checkbox;
}

#mc_embed_signup input[type=radio] {
    -webkit-appearance-radio: radio;
}

#mc_embed_signup input:focus {
    border-color: #333;
}

#mc_embed_signup .button {
    clear: both;
    background-color: var(--primary);
    border: 0 none;
    border-radius: 20px;
    transition: all 0.23s 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: auto;
}

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

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

#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;
    border-radius: 20px;
}

#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: var(--primary);
    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: var(--light);
    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.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: 5px 10px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    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;
}