/* ! tavolozza colore */

:root {
    --primary: #bd1f2c;
    --secondary: #e4e4e4;
    --accent: #212126;
    --light: #ffffff;
    --dark: #000;
}



/* ! reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style-type: none;

}

a {
    text-decoration: none;
}

a,
img,
button,
.fa-solid {
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
    max-width: 400px;
    margin-top: 40px;
}

.libro {
    max-width: 600px;
    width: 100%;
    margin: auto;
    margin-top: 40px;
}

.clip {
    clip-path: circle();
    margin-top: 50px;
    margin: auto;
    max-width: 300px;
}



/* ! tipografia */

h1,
h2,
h3,
h4 {
    font-family: 'Roboto', sans-serif;
    color: var(--primary);
    margin-bottom: 20px;
}

.content__reviews h3 {
    margin-top: 50px;
}

h5,
h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
}

.content__sinossi h5 {
    margin-top: 20px;
}

h5 {
    margin-top: 10px;
}

.premi h3 {
    margin-top: 70px;
}

p {
    font-family: 'Roboto-regular', sans-serif;
    margin-top: 10px;
}

.leading {
    margin-top: 30px;
    margin-bottom: 20px;
}

.content__autore h2,
.content__autore p,
.content__autore h3,
.content__autore h4,
.content__autore h5 {
    color: var(--light);
}

/* ! Header */

header h1 {
    color: var(--primary);
}

header {
    background: var(--light);
    color: var(--light);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 110px;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    padding: 15px;
    transition: 0.8s cubic-bezier(.51, .15, .2, .95);
}

body {
    overflow-x: hidden;
    background: #FFFFFF;
    user-select: none;
}



/* ! menu */

.nav-toggle-btn .fa-solid {
    font-size: 2.5em;
    color: var(--primary);
}

.nav-toggle-btn.active .open,
.nav-toggle-btn .close {
    display: none;
}

.nav-toggle-btn .open,
.nav-toggle-btn.active .close {
    display: block;
}

.cover__menu {
    width: 100%;
    order: 3;
    visibility: hidden;
}

.cover__menu a {
    color: var(--primary);
    font-size: 1.5em;
    height: 40px;
}

.cover__menu a:hover {
    color: var(--accent);
    scale: 105%;
    transition: all 0.5s ease;

}

.cover__box {
    padding-top: 20px;
}

.cover__box :hover {
    background-color: #212126;
    height: 40px;
    width: 130px;
    border-radius: 20px;
}

.active .cover__menu {
    visibility: visible;
}

.cover.active {
    height: 300px;
}


section {
    padding: 40px;
}



/* ! hero */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(img/Banner.png);
    background-position-x: right;
    background-size: 1536px 400px;
    margin-bottom: 30px;
    border-radius: 20px;
    padding-bottom: 30px;
}

.hero p {
    color: #FFFFFF;
    margin-top: 30px;
}

.hero__cover {
    margin: auto;
}

.hero__gruppo h1 {
    font-size: 2em;
}

.cta-group {
    font-size: 2em;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta__primary,
.cta__secondary {
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 10px;
    font-family: 'Roboto';
}

.cta__primary {
    color: var(--light);
    background: var(--primary);
    border: 2px solid var(--primary);
}

.cta__primary:is(:hover, :focus) {
    background: var(--accent);
    color: #FFFFFF;
    transition: all 0.5s ease;
    border: 2px solid #FFFFFF;



}

.cta__secondary {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--light);

}

.cta__secondary:is(:hover, :focus) {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    transition: all 0.5s ease;
}



/* ! Autore */

.content__autore {
    background-color: var(--primary);
    border-radius: 20px;
}


/*  ! Carte scorrevoli */


.h3spazio {
    margin-top: 50px;
}

.slider {
    position: relative;
    aspect-ratio: 3/5;
    width: 50%;
    max-width: 200px;
    margin: 50px auto;
    perspective: 1400px;
    transform-style: preserve-3d;
}

input[type=radio] {
    display: none;
}

.slider label,
.slider label img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 400ms ease;
}

/* Slider Functionality */

/* Active Slide */
#s1:checked~#slide1,
#s2:checked~#slide2,
#s3:checked~#slide3,
#s4:checked~#slide4,
#s5:checked~#slide5 {
    transform: translate3d(0%, 0, 0px);
    opacity: 100%;
    transition: all 0.5s ease-in-out;
}

/* Next Slide */
#s1:checked~#slide2,
#s2:checked~#slide3,
#s3:checked~#slide4,
#s4:checked~#slide5,
#s5:checked~#slide1 {
    transform: translate3d(27%, 0, -100px);
    opacity: 90%;
    transition: all 0.5s ease-in-out;
}


/* Next to Next Slide */
#s1:checked~#slide3,
#s2:checked~#slide4,
#s3:checked~#slide5,
#s4:checked~#slide1,
#s5:checked~#slide2 {
    transform: translate3d(54%, 0, -250px);
    opacity: 90%;
    transition: all 0.5s ease-in-out;
}

/* Previous to Previous Slide */
#s1:checked~#slide4,
#s2:checked~#slide5,
#s3:checked~#slide1,
#s4:checked~#slide2,
#s5:checked~#slide3 {
    transform: translate3d(-54%, 0, -250px);
    opacity: 90%;
    transition: all 0.5s ease-in-out;
}

/* Previous Slide */
#s1:checked~#slide5,
#s2:checked~#slide1,
#s3:checked~#slide2,
#s4:checked~#slide3,
#s5:checked~#slide4 {
    transform: translate3d(-27%, 0, -100px);
    opacity: 90%;
    transition: all 0.5s ease-in-out;
}


/* ! Tabbar */

.tabbar {
    height: 100px;
    width: 100;
    position: relative;
    margin-bottom: 30px;

}

.tabbar__menu {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.tabbar li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 60px;
    width: 60px;
    border-radius: 50%;
}

.tabbar a {
    font-size: 1.5em;
    color: var(--accent);
    padding: 15px;
    transition: all 0.5s ease;
}

.tabbar a:is(:hover, :focus) {
    color: var(--accent);
}

.tabbar li:is(:hover, :focus) {
    background: var(--primary);
    transition: all 0.5s ease-in-out;
}


/* ! Reviews */

.content__recensione {
    display: flex;
    padding: 10px;
    margin-top: 30px;
}

.content__logo {
    display: none;
}



/* ! Media query Medium */

@media (min-width: 767px) {

    .cover,
    .cover.active {
        height: 120px;
        align-items: center;
    }


    .cover__menu {
        all: unset;
    }

    .mainmenu li {
        display: inline-block;
        font-size: 1em;
        margin-left: 20px;
    }

    .cover__hb {
        display: none;
    }

    .hero {
        flex-direction: row;
    }

    .hero__cover {
        width: 70%;
    }

    .content__logo {
        display: block;
        padding: 20px;
        margin: auto;
        margin-right: 30px;
    }


}

/* Media query Large */

@media (min-width: 992px) {
    .cover {
        padding: 40px;
        margin-left: 150px;
        margin-right: 150px;
    }

    .container {
        display: flex;
    }

    .content {
        margin-left: 150px;
        margin-right: 150px;
    }

    .content__sinossi {
        width: 65%;
    }

    .content__autore {
        width: 35%;
    }

    .hero {
        flex-direction: row;
        padding: 40px;
        margin-left: 150px;
        margin-right: 150px;
        gap: 60px;
    }

    .hero__text {
        max-width: 400px;
    }

    .libro {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cta-group {
        display: flex;
    }

    .footer {
        margin-left: 150px;
        margin-right: 150px;
        margin-bottom: 30px;
    }

    .tabbar {
        margin-left: 150px;
        margin-right: 150px;
    }
}


/* ! NEWSLETTER BABY */

.content__newsletter {
    background: rgb(226, 226, 226);
    border-radius: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 40px;
}

.content__newsletter h2 {
    margin-bottom: 20px;
}

/* MailChimp Form Embed Code - Classic - 12/17/2015 v10.7 */

#mc_embed_signup form {
    display: block;
    position: relative;
    text-align: left;
    font-family: 'Roboto Regular', sans-serif;
}

#mc_embed_signup h2 {
    font-weight: bold;
    padding: 0;
    margin: 0;
    font-size: 1.4em;
}

#mc_embed_signup input {
    border: 1px solid var(--primary);
    -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: #aaa;
    border: 0 none;
    border-radius: 4px;
    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: #777;
}

#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;
    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 .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 .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-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: 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;
}


/* ! FOOTER */

.footer {
    background: var(--accent);
    padding: 40px;
    font-family: 'Roboto Regular', sans-serif;
    border-radius: 20px;
    margin-bottom: 30px;
}

.footer__row {
    display: flex;
    flex-wrap: wrap;
}

.footer__col {
    margin: auto;
    padding: 40px;
}

.footer__col h4 {
    font-size: 18px;
    color: var(--primary);
    text-transform: capitalize;
    margin-bottom: 35px;
    position: relative;
}

.footer__col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer__col p {
    color: var(--light);
    font-size: 12px;
}

.isialogo {
    margin-bottom: 20px;
}

.footer__col ul li a {
    font-size: 16px;
    font-family: 'Roboto Regular';
    text-transform: capitalize;
    color: #FFFFFF;
    text-decoration: none;
    color: #FFFFFF;
    display: block;
    transition: all 0.3s ease;
}

.footer__col ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer__col .footer__sociallinks a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: #FFFFFF;
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.5s ease;
    flex-wrap: wrap;
}

.footer__col .footer__sociallinks a:is(:hover, :focus) {
    color: var(--accent);
    background-color: var(--primary);
}

@media(max-width: 767px) {
    .footer__col {
        width: 50%;
        margin-bottom: 30px;
        transition: all 1s ease;
    }
}

@media(max-width: 574px) {
    .footer__col {
        width: 100%;
        transition: all 1s ease;

    }
}

/* ! Bottone Su */

#btt {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
}

body p {
    font-size: 1.2em;
}