/* tavolozza colore */
:root {

    --light: #ececec;
    --primary: #1d4565;
    --dark: #111;
    --accent: #dc714b;
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--accent);
}

html {
    scroll-behavior: smooth;
}


.res {
    width: 100%;
    max-width: 300px;
}

.grid {
    grid-template-columns: repeat(8, 1fr);
}

.container {
    width: 100%;
    max-width: 1200px;

}

/*Layout*/
section {
    margin-top: 20px;
    margin-bottom: 20px;
}

/*tipografia*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Bebas Neue", sans-serif;
}


body {
    font-family: 'Inter', sans serif;
    background-color: var(--light);
}

.header {
    width: 100%;
    background-color: var(--primary);
    z-index: 50;
    position: fixed;
}

.sitenav {
    color: var(--light);
    height: 50px;
    display: grid;
    place-items: center;
    padding: 10px 20px;
}

.cover__hb {
    grid-column: 1/3;
    justify-self: left;
    font-size: 1.2em;
}

.cover__logo {
    grid-column: 3/7;
    justify-self: center;
    font-size: 1.7em;
    font-family: "Bebas Neue", sans-serif;
    font-weight: bold;
}

.cover__gift {
    grid-column: 7/9;
    justify-self: end;
    font-size: 1.2em;
    cursor: pointer;
}

.cover__menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    color: white;
    transition: left 0.3s ease;
    z-index: 1000;
}

.cover__close {
    position: unset;
    font-size: 2em;
    top: 0;
    left: 0;
    padding: 20px;
    cursor: pointer;
}

.cover__close:hover {
    color: var(--accent);
}

.cover__menu nav {
    margin-top: 200px;
}

.cover__menu nav a {
    display: block;
    font-size: 2em;
    color: white;
    text-decoration: none;
    align-items: center;
    display: flex;
    justify-content: center;
    align-items: center;

}

.cover__menu nav a:hover {
    letter-spacing: .2em;
    transition: 0.4s;
    font-weight: bold;
}

.cover__menu.active {
    left: 0;
}

.cover__hb {
    cursor: pointer;
}



.gift-popup-wrapper {
    background: rgb(29, 69, 101, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 3;
}

.gift-popup {
    box-shadow: 0 0 10px (0, 0, 0, 0.2);
    transform: scale(0.5);
    animation: showPopup 0.1s ease 0.1s forwards;
    font-size: 1.3em;
    background-color: #ffffff;
    border: 3px solid #111;
    border-style: dashed;
    border-radius: 30px;
    color: var(--dark);
    width: 100%;
    max-width: 300px;
    padding: 20px;
    z-index: 400;
    position: relative;
    margin: 5% auto;
    margin-top: 100px;
}

@keyframes showPopup {
    to {
        transform: scale(1);
    }
}

.gift-popup-content {
    text-align: center;
}


.popup-head h3 {
    color: var(--primary);
}

.popup-head h4 {
    color: var(--accent);
}

.gift-popup-close {
    text-align: right;
    cursor: pointer;
}

.gift-popup-content>p {
    margin: 15px;
    padding: 10px;
}

.hero {
    display: grid;
    text-align: center;
    background: url('./img/bc.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    background: linear-gradient(180deg, rgba(29, 69, 101, 0.7), rgba(236, 236, 236, 1));
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}


.hero-cover {
    grid-column: 1/9;
    justify-self: center;
    z-index: 1;
    margin-top: 60px;
}

.hero-cover img {
    width: 100%;
    max-width: 350px;
}

.hero-text {
    z-index: 1;
    grid-column: 1/9;
    align-items: center;
    line-height: 2em;
}

.hero-text h1 {
    font-weight: 900;
    color: black;
    font-size: 3em;
}

.hero-text h1>span {
    color: var(--primary);
}

.hero-text h2 {
    font-size: 2em;
    margin-top: 10px;
}

.hero-text h4 {
    font-size: 1.5em;
}

.hero-cta {
    display: none;
}

.cta__secondary,
.cta__primary,
.cta__1,
.cta__2 {
    font-size: 1.2em;
    border: 0;
    cursor: pointer;
    z-index: 1;
    border: 2px solid #111;
    background-color: #111;
    border-radius: 30px;
    padding: 10px 30px;
    place-self: center;
    color: var(--light);
    font-family: 'bebas neue', sans-serif;
}

.cta__secondary {
    grid-column: 2/5;
    justify-self: center;
}

.cta__primary {
    grid-column: 5/8;
    justify-self: center;
}

.sticky-button {
    position: fixed;
    bottom: 2%;
    left: 2%;
    background-color: var(--primary);
    font-size: 2em;
    padding: 10px;
    color: var(--light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 0 10px black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1 auto;
    cursor: pointer;
    z-index: 7;
    animation: lineUp 0.6s forwards;
}

@keyframes lineUp {
    0% {
        opacity: 0;
        transform: translateY(200px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sticky-button:hover {
    background-color: var(--accent);
    font-size: 2.1em;
    transition: 0.3s;
}

.cta__secondary:hover,
.cta__primary:hover,
.cta__1:hover,
.cta__2:hover {
    background-color: var(--light);
    border-style: dashed;
    letter-spacing: .2em;
    transition: 0.4s;
    font-weight: bold;
}

.content,
.content-autore,
.eventi,
.recensioni,
.bibliografia {
    display: grid;
}

.content-sinossi,
.biografia,
.citazione-autore,
.content-eventi,
.autore,
.recensioni-content {
    grid-column: 2/8;
    justify-self: center;
}

.content-sinossi p,
.content-autore p {
    font-size: 1.15em;
    line-height: 1.6em;
}

.content-sinossi>h1 {
    font-size: 3em;
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    border-top-style: dashed;
    border-top-width: 100%;
    padding-top: 10px;
    margin-left: -20px;
}

.citazione {
    padding: 25px;
    text-align: center;
    width: fit-content;
    margin: 25px;
    border-radius: 8px;
    font-size: 1.10em;
    line-height: 1.5em;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-style: dashed;
}

p.cit {
    font-size: .8em;
}

.citazione:hover {
    background-color: rgba(29, 69, 101, 0.7);
    transition: 0.2s;
    color: var(--light);
    border: 2px solid var(--light);
}

.recensioni {
    display: grid;
}

.recensioni-content {
    grid-column: 2/8;
}

@media screen and (max-width: 400px) {
    .wrapper-content {
        width: 50%;
        margin-left: -10px;
    }
}

.wrapper-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    place-items: center;
}

.wrapper {
    width: 250px;
    min-height: 200px;
    height: fit-content;
    justify-self: center;
    border: 5px solid #111;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    display: grid;
}

.wrapper:after,
.wrapper:before {
    content: "";
    position: absolute;
    font-family: fontAwesome;
    font-size: 50px;
    color: #111;
    background: var(--light);
}

.wrapper:after {
    content: "";
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    box-shadow: 10px 10px 0 var(--light);
}

.wrapper:before {
    content: "";
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
    box-shadow: -10px -10px 0 var(--light);
}

.title,
.description {
    align-self: center;
}

.description {
    font-size: 14px;
    grid-column: 6/9;
    text-align: center;
}

.title {
    font-size: 35px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    grid-column: 1/4;
    justify-self: start;
}

.title small {
    display: block;
    font-size: 25px;
    /* text-align: right; */
}

.border-radius {
    border-radius: 30px;
}



.star-review {
    grid-column: 4/9;
    justify-self: right;
}

.user {
    grid-column: 3/7;
    justify-self: center;
}


.fa-pen {
    background-color: var(--ssecondary);
    border: 8px solid var(--ssecondary);
    color: var(--light);
    border-radius: 100%;
}


.your__review {
    margin-top: 20px;
    line-height: 1.2em;
    text-align: center;
    grid-column: 1/9;
}

.button__review {
    width: fit-content;
    border: 0;
    cursor: pointer;
    font-size: 1.3em;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    color: var(--light);
    border: 2px solid #111;
    background-color: #111;
    border-radius: 30px;
    padding: 10px 20px;
    place-self: center;
    color: var(--light);
    font-family: 'bebas neue', sans-serif;
}

.button__review:hover {
    background-color: var(--light);
    border-style: dashed;
    letter-spacing: .2em;
    transition: 0.4s;
    font-weight: bold;
    color: var(--accent);
}

.review__wrapper {
    background: rgb(29, 69, 101, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 3;
}

.review__popup {
    box-shadow: 0 0 10px (0, 0, 0, 0.2);
    transform: scale(0.5);
    animation: showPopup 0.1s ease 0.1s forwards;
    font-size: 1.3em;
    background-color: #ffffff;
    border: 3px solid #111;
    border-style: dashed;
    border-radius: 30px;
    color: var(--dark);
    width: 100%;
    max-width: 300px;
    padding: 20px;
    z-index: 400;
    position: relative;
    margin: 5% auto;
    margin-top: 100px;
}

.review__popup h2 {
    color: var(--primary);
}

.review__close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
}


.button__newsletter:hover {
    background-color: var(--light);
    border-style: dashed;
    letter-spacing: .2em;
    transition: 0.4s;
    font-weight: bold;
    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;
    font-size: 0.7em;
}

#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(--primary);
    border: 0 none;
    border-radius: 30px;
    transition: all 0.23s ease-in-out 0s;
    color: var(--light);
    cursor: pointer;
    display: inline-block;
    font-size: 1.5em;
    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;
}

.rating {
    width: 265px;
    position: relative;
    direction: rtl;
    text-align: center;
    margin-bottom: 10px;
}

.rating input {
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transform: translateX(52px);
    opacity: 0;
    z-index: 5;
}

.rating input:nth-of-type(1) {
    right: 20px;
}

.rating input:nth-of-type(2) {
    right: 40px;
}

.rating input:nth-of-type(3) {
    right: 60px;
}

.rating input:nth-of-type(4) {
    right: 80px;
}

.rating input:nth-of-type(5) {
    right: 90px;
}

.rating input:nth-of-type(6) {
    right: 100px;
}

.rating input:checked~.star:after,
.rating input:hover~.star:after {
    content: '\f005';
}

.rating .star {
    display: inline-block;
    font-family: FontAwesome;
    font-size: 20px;
    color: #FBB202;
    cursor: pointer;
    margin: 3px;
    text-align: center;
}

.rating .star:after {
    content: '\f006';
}

.rating .star:hover~.star:after,
.rating .star:hover:after {
    content: '\f005';
}

.content-autore {
    display: grid;
}

.autore>h1 {
    grid-column: 2/8;
    font-size: 3em;
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    border-top-style: dashed;
    border-top-width: 100%;
    padding-top: 10px;
    margin-left: -20px;
}

.autore img {
    width: 100%;
    max-width: 300px;
    grid-column: 1/9;
    justify-self: center;
    filter: grayscale(1);
    padding: 10px 0px;
}

.autore img:hover {
    filter: grayscale(0);
    transition: 0.6s;
}

.social__autore {
    font-size: 1em;
    width: 100%;
    max-width: 100%;
    grid-column: 2/8;
    justify-self: center;
}

/* Stili per schermi con larghezza massima di 400px */
/* Stili per schermi con larghezza massima di 400px */
@media screen and (max-width: 440px) {
    .social__autore {
        display: none;
    }

    .linktree {
        display: block;
        margin: 5% auto;
        grid-column: 2/8;
        justify-self: center;
        width: fit-content;
        font-size: 1.2em;
        border: 0;
        cursor: pointer;
        z-index: 1;
        border: 2px solid #111;
        background-color: #111;
        border-radius: 30px;
        padding: 10px 20px;
        place-self: center;
        font-family: 'bebas neue', sans-serif;
    }

    .linktree>a {
        color: var(--light);
        text-align: center;
    }

    .linktree:hover {
        background-color: var(--light);
        border-style: dashed;
        letter-spacing: .2em;
        transition: 0.4s;
        font-weight: bold;
    }
}

@media screen and (min-width: 441px) {
    .linktree {
        display: none;
        /* Nascondi .linktree su schermi più grandi */
    }

    .social__autore {
        display: block;
        /* Mostra .social__autore solo su schermi più grandi */
    }
}

.effect {
    width: 100%;
    max-width: 250px;
    margin-top: -20px;
}

.buttons {
    display: grid;
    margin-left: -10px;
}

.buttons .fb {
    grid-column: 2;
}

.buttons .tw {
    grid-column: 3;
}

.buttons .insta {
    grid-column: 4;
}

.buttons .in {
    grid-column: 5;
}

.buttons .blog {
    grid-column: 6;
}

.effect:nth-child(2) {
    margin-top: 50px;
}

.effect:nth-child(2n+1) {}

.effect:nth-child(2n+1) h2 {
    color: #212121;
}

.effect:nth-child(2n) a {
    color: #fff;
    border-color: #fff;
}

.effect .buttons {
    margin-top: 50px;
    /* grid-column: span 4; */
}

.effect {
    width: fit-content;
    /* display: grid;
    margin-left: -50px; */

}

.effect a {
    text-decoration: none !important;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 25px;
    overflow: hidden;
    position: relative;
    color: #111;
    border: 2px solid #111;
}

.effect a i {
    position: relative;
    z-index: 1;
}

.effect a:last-child {
    margin-right: 0px;
}

.effect a:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.effect a i {
    display: inline-block;
    vertical-align: middle;
}

.effect.social a {
    transition: border-top-color 0.2s linear 0s, border-right-color 0.2s linear 0.1s, border-bottom-color 0.2s linear 0.2s, border-left-color 0.2s linear 0.3s;
    overflow: visible;
}

.effect.social a:hover {
    border-color: rgba(255, 255, 255, 0);
}

.effect.social a:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: -2px;
    left: -2px;
    border: 2px dashed #fff;
    position: absolute;
    border-radius: 50%;
}

.content-bibliografia {
    grid-column: 2/8;
    justify-self: center;
}

.content-bibliografia>h1 {
    grid-column: 2/8;
}

.other-books>h1 {
    grid-column: 1/9;
    font-size: 2em;
    margin-bottom: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    border-top-style: dashed;
    border-top-width: 100%;
    padding-top: 10px;
    margin-left: -20px;
    justify-self: start;
}

.other-books {
    display: grid;
}

.otherbook,
.otherbook2,
.otherbook3 {
    grid-column: 4/6;
}

@media screen and (max-width:400px) {
    .other-books {
        width: 50%;
        grid-column: 4/7;
    }

    .front,
    .back,
    .page1,
    .page2,
    .page3,
    .page4,
    .page5,
    .page6 {
        transform-style: preserve-3d;
        position: absolute;
        width: 50px;
        height: 100%;
        top: 0;
        left: 0;
        transform-origin: left center;
        transition: transform .5s ease-in-out, box-shadow .35s ease-in-out;
    }
}

.otherbook,
.otherbook2,
.otherbook3 {
    transform-style: preserve-3d;
    position: relative;
    height: 300px;
    cursor: pointer;
    backface-visibility: visible;
    justify-self: center;
    margin: 20px 0;
}


.front,
.back,
.page1,
.page2,
.page3,
.page4,
.page5,
.page6 {
    transform-style: preserve-3d;
    position: absolute;
    width: 200px;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left center;
    transition: transform .5s ease-in-out, box-shadow .35s ease-in-out;
}

.otherbook .front {
    background: url("./img/Eccentrico copertina.jpg");
    background-size: cover;
}

.otherbook2 .front {
    background: url("./img/In altre parole copertina.jpg");
    background-size: cover;
}

.otherbook3 .front {
    background: url("./img/I racconti di Barcellona copertina.jpg");
    background-size: cover;
}

.back {
    background-color: #111;

}

.front,
.page1,
.page3,
.page5 {
    border-bottom-radius: 0.5em;
    border-top-right-radius: 0.5em;
}

.back,
.page2,
.page4,
.page6 {
    border-bottom-right-radius: .5em;
    border-top-right-radius: .5em;
}


.page6>a {
    display: flex;
    /* Utilizza Flexbox */
    justify-content: center;
    /* Centra orizzontalmente */
    align-items: center;
    /* Centra verticalmente */
    height: 100%;
    /* Assicurati che l'altezza sia impostata */
    width: 100%;
}

.page1,
.page2,
.page3,
.page4,
.page5,
.page6 {
    background-color: white;
}

.otherbook:hover .front {
    transform: rotateY(-160deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook:hover .page1 {
    transform: rotateY(-150deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook:hover .page2 {
    transform: rotateY(-30deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook:hover .page3 {
    transform: rotateY(-140deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook:hover .page4 {
    transform: rotateY(-40deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook:hover .page5 {
    transform: rotateY(-130deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook:hover .page6 {
    transform: rotateY(-50deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook:hover .back {
    transform: rotateY(-20deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .front {
    transform: rotateY(-160deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .page1 {
    transform: rotateY(-150deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .page2 {
    transform: rotateY(-30deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .page3 {
    transform: rotateY(-140deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .page4 {
    transform: rotateY(-40deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .page5 {
    transform: rotateY(-130deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .page6 {
    transform: rotateY(-50deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook2:hover .back {
    transform: rotateY(-20deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .front {
    transform: rotateY(-160deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .page1 {
    transform: rotateY(-150deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .page2 {
    transform: rotateY(-30deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .page3 {
    transform: rotateY(-140deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .page4 {
    transform: rotateY(-40deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .page5 {
    transform: rotateY(-130deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .page6 {
    transform: rotateY(-50deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.otherbook3:hover .back {
    transform: rotateY(-20deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, .2);
}

.title-book {
    text-align: center;
    padding-top: 115px;
    color: white;
    letter-spacing: 2px;
    text-shadow: (0, 0, 0, 0.5 black);
}

.content-eventi>h1 {
    grid-column: 2/8;
    justify-self: start;
    font-size: 3em;
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    border-top-style: dashed;
    border-top-width: 100%;
    padding-top: 10px;
    margin-left: -20px;
}

.content-eventi {
    grid-column: 2/8;
}

/* .content__eventi h1 {
    text-align: center;
    font-size: 2em;
}

.content__eventi {} */

/* Footer */

/*Popup*/
.content__newsletter {
    display: flex;
    justify-content: center;
}

.button__newsletter {
    width: fit-content;
    border: 0;
    cursor: pointer;
    font-size: 1.3em;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    color: var(--light);
    border: 2px solid #111;
    background-color: #111;
    border-radius: 30px;
    padding: 10px 20px;
    place-self: center;
    color: var(--light);
    font-family: 'bebas neue', sans-serif;
}

.popup__wrapper {
    background: rgb(29, 69, 101, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.popup {
    box-shadow: 0 0 10px (0, 0, 0, 0.4);
    transform: scale(0.5);
    animation: showPopup 0.1s ease 0.1s forwards;
    font-size: 1.3em;
    background-color: #ffffff;
    border: 3px solid #111;
    border-style: dashed;
    border-radius: 30px;
    color: var(--dark);
    width: 100%;
    max-width: 300px;
    padding: 20px;
    z-index: 100;
    margin: 5% auto;
    margin-top: 100px;
    border-radius: 8px;
    height: 70vh;
    overflow-y: scroll;
}

.popup::-webkit-scrollbar {
    width: 10px;
}

.popup::-webkit-scrollbar-track {
    background: white;
}

.popup::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
    /* Colore del pollice della scrollbar */
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Cambia colore del pollice quando passi sopra */
}

.popup__close {
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: var(--primary);
    position: fixed;
}

.h2__newsletter {
    color: var(--primary);
    font-size: 1.5em;
}

.content__newsletter a {
    color: var(--primary);
}


/* 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;
    font-size: .7em;
}

#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: 30px;
    transition: all 0.23s ease-in-out 0s;
    color: var(--light);
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    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: 8px;
    font-size: 1em;
    place-self: center;
}

#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:480px) {
    #mc_embed_signup .foot {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        align-items: center;
    }
}

@media screen and (max-width:480px) {
    #mc_embed_signup .referralBadge {
        width: 50%;
    }
}

#mc_embed_signup .brandingLogo {
    justify-self: right;
}

@media screen and (max-width:480px) {
    #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;
}

footer {
    background-color: #111;
    height: fit-content;
    padding: 30px;
}

.footer-content {
    color: var(--light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
    line-height: 1.5em;
}

#logo-isia img {
    filter: invert(1);
    width: 150px;
}

.footer-content ul {
    list-style-type: none;
    color: var(--light);
}

.footer-content a {
    color: var(--light);
}

.footer-content a:hover {
    color: var(--accent);
}

.footer-content h6 {
    font-size: 1.1em;
}

/*media queery*/
/* -------------------------------------------------------------------------------- */
/* ! Media query medium */
/* -------------------------------------------------------------------------------- */
@media(min-width: 769px) {
    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        justify-content: center;
        /* Centra i contenuti orizzontalmente */
        align-items: center;

    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }

    .hero-cover {
        grid-column: 1/5;
        justify-self: end;
        margin-top: 50px;
    }

    .hero-cover img {
        width: 100%;
        max-width: 500px;
    }

    .hero-text {
        grid-column: 5/9;
        justify-self: center;
        place-self: center;
        margin-bottom: 0;
        height: fit-content;
        align-items: center;
        vertical-align: middle;
    }

    .hero-text h1 {
        font-weight: 900;
        font-size: 3em;
    }

    .hero-text h2 {
        font-size: 2.2em;
        margin-top: 25px;
    }

    .hero-text h4 {
        font-size: 2em;
        margin: auto;
    }

    .hero-cta {
        grid-column: 5/9;
        margin-top: 50px;
        display: block;
    }

    .cta__secondary,
    .cta__primary {
        display: none;
    }

    .autore-head {
        text-align: center;
    }

    .effect {
        max-width: 600px;
    }

    .social__autore {
        display: flex;
        justify-content: center;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! media query large */
/* -------------------------------------------------------------------------------- */
/* Punto di interruzione per dispositivi larghi */
@media(min-width: 992px) {
    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        justify-content: center;
        /* Centra i contenuti orizzontalmente */
        align-items: center;

    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }

    .hero-cover {
        grid-column: 1/5;
        justify-self: end;
        margin-top: 50px;
    }

    .hero-cover img {
        width: 100%;
        max-width: 700px;
    }

    .hero-text {
        grid-column: 5/9;
        justify-self: center;
        place-self: center;
        margin-bottom: 0;
        height: fit-content;
        align-items: center;
        vertical-align: middle;
    }

    .hero-text h1 {
        font-weight: 900;
        font-size: 5em;
    }

    .hero-text h2 {
        font-size: 2.2em;
        margin-top: 25px;
    }

    .hero-text h4 {
        font-size: 2em;
        margin: auto;
    }

    .hero-cta {
        grid-column: 5/9;
        margin-top: 50px;
        display: block;
    }

    .cta__secondary,
    .cta__primary {
        display: none;
    }

    /* .content-sinossi,
    .biografia,
    .citazione-autore,
    .content-eventi {
        grid-column: 1/9;
        justify-self: center;
        margin: 0 10%;
    } */
    .content {
        justify-content: center;
        width: 100%;
    }

    .content-sinossi {
        width: 80vw;
    }

    .content-sinossi>h1 {
        margin-left: 0;
    }

    .wrapper-content {
        display: grid;
    }

    #review1 {
        grid-column: 1/4;
        width: 250px;
        justify-self: center;
    }

    #review2 {
        grid-column: 4/9;
        width: 350px;
        justify-self: center;
    }

    #review3 {
        grid-column: 1/4;
        width: 350px;
        justify-self: center;
    }

    #review4 {
        grid-column: 4/9;
        width: 300px;
        justify-self: center;
    }

    .autore {
        grid-column: 2/8;
    }

    .description {
        font-size: 16px;
    }

    .autore-head {
        text-align: center;
    }

    .autore>h1 {
        margin: 0 auto;
    }

    .autore img {
        max-width: 600px;
    }

    .effect {
        max-width: 800px;
    }

    .social__autore {
        display: flex;
        justify-content: center;
    }

    .content-bibliografia>h1 {
        font-size: 2em;
        text-align: center;
    }

    .other-books {
        width: 80%;
        display: flex;
        justify-content: space-evenly;
        gap: 50px;
    }

    .content-eventi>h1 {

        margin-left: 0 auto;
    }

    footer {
        display: grid;
    }

    .footer-content {
        grid-column: 2/8;
        display: flex;
        flex-direction: row;
        text-align: start;
        justify-content: space-between;
        align-items: flex-start;
    }

    #footer-corso {
        max-width: 25%;
    }

    #footer-mappa {
        max-width: 25%;
    }

    #footer-legal {
        max-width: 25%;
    }

    #footer-3 {
        max-width: 25%;
    }

    #footer-4 {
        max-width: 25%;
    }
}