/*! TAVOLOZZA COLORE */
:root {
    --primary: #6c0019;
    --secondary: #D99559;
    --accent: #A62E2E;
    --light: #F9F9F7;
    --dark: #0D0000;
}

/*! RESET */
* {
    margin: 0;
    padding: 0;
}

/* li {
    list-style-type: none;
} */

a {
    text-decoration: none;
}

a,
button,
.fa-solid {
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.res {
    width: 100%;
    max-width: 350px;
}

.clip {
    clip-path: circle();
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/*! TIPOGRAFIA */
p {
    font-family: 'Raleway', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Crete Round', sans-serif;
    color: var(--primary);
    font-weight: bold;
}

header h1 {
    color: var(--light);
}

header {
    background: var(--accent);
    color: var(--accent);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 50px;
    overflow: hidden;
    font-family: 'Raleway', sans-serif;
    padding: 15px;
    transition: 0.5s cubic-bezier(.19, 1, .92, .01);
}

footer {
    padding: 3px;
}

.Info span {
    font-weight: bolder;
}

.leading {
    font-weight: bold;
}

.iconemedia {
    display: flex;
    column-gap: 10px;
    justify-content: baseline;
    padding-top: 7.6em;
    width: 50%;
}

/*! MENU */

.header__icon {
    display: none;
}

.menu a {
    color: var(--light);
}

.menu a:hover {
    color: var(--secondary);
    font-weight: bold;
    text-decoration: underline 2px;
}

.cover__logo {
    z-index: 1;
}


.cta {
    background: var(--accent);
    padding: 13px;
    margin-top: 30px;
    width: fit-content;
    border-radius: 5px;
    border-style: groove;
    border-color: var(--light);
}

a.cta:hover {
    background: white;
    color: #0D0000;
}

section {
    background: var(--light);
    padding: 15px;
    margin: 20px 0px;
}

/*! HERO */
.hero {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-left: 2px;
}

.hero__text h1 {
    font-size: 4em;
}

.hero__text h3 {
    text-decoration: underline;
    font-size: 2em;
    color: var(--primary);
}

.informazionilibro {
    color: var(--secondary);
}

.Info h5 {
    font-family: 'Raleway', sans-serif;
    color: var(--dark);
}

.cta-group {
    font-size: 2em;
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta__primary,
.cta__secondary {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Raleway';
    font-size: medium;
}

.cta__primary {
    background: var(--primary);
    color: var(--light);
}

.cta__primary:is(:hover, :focus) {
    background: var(--accent);
    color: var(--light);
}

.cta__secondary {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta__secondary:is(:hover, :focus) {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

/* ! Tabbar */
.tabbar {
    height: 100px;
    width: 100%;
    position: relative;
    /* lo posiziono in maniera relativa in modo da poter gesrire all'interno 
    ulteriori elementi con posizionamento assoluto*/
    background: var(--accent);
    padding: 15px;
}

.tabbar__menu {
    display: flex;
    /* per avere la colonna flex-direction: column; */
    /* position: absolute; */
    justify-content: center;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: var(--accent);
    padding-top: 15px;
}

.tabbar__menu>li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}

.tabbar a {
    font-size: 2em;
    color: var(--light);
    background: var(--accent);
    border-radius: 100%;
    padding: 15px;
}

.tabbar a:is(:hover, :focus) {
    font-size: 3em;
    transform: translateY(-20px);
    color: yellow;
    transition: 0.5s cubic-bezier(.92, 1.03, .74, .65);
}


/*! FLIP CARD SETTINGS */

.containercard {
    width: 350px;
    height: 500px;
    perspective: 1600px;
}

.card {
    height: 100%;
    width: 100%;
    position: relative;
    transform: 1500ms;
    transition: transform 1500ms;
    transform-style: preserve-3d;
}

.containercard:is(:hover, :focus)>.card {
    cursor: pointer;
    transform: rotateY(180deg);
}

.front,
.back {
    height: 100%;
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 0 5px 2px rgba(50, 50, 50, 0.25);
    position: absolute;
    backface-visibility: hidden;
}

.img1,
.img2 {
    border: solid 0px;
    border-radius: 20px;
}

.back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/*! FINE FLIP CARD */

.cover,
.cover.active {
    height: 120px;
    align-items: center;
}

.mainmenu li {
    display: inline-block;
    font-size: 1.4em;
    margin-left: 18px;
}

.mainmenu li:is(:hover) {
    text-decoration: underline;
}

.hero {
    flex-direction: row;
    justify-content: center;
}

.hero__text {
    width: 50%;
}

.container {
    display: flex;
    gap: 5pt;
}

.content__sinossi {
    width: 60%;
    background-color: var(--secondary);
    border-radius: 5pt;
    color: var(--light);
}

.content__sinossi p {
    text-align: justify left;
}

.content__sinossi h2 {
    color: var(--lightt);
}

.leading {
    color: var(--accent);
    font-size: 1.2em;
}

.content__autore {
    width: 50%;
    background-color: var(--secondary);
    border-radius: 5pt;
    color: var(--light);
}

.content__autore h2 {
    color: var(--light);
}

.container {
    padding: 7pt;
}

/* !altri titoli di Bradbury */
.book__related {
    width: 100%;
    align-items: center;
    margin-top: 1px solid black;
}

.book__related h2 {
    margin-top: 60px;
}

.libri-container {
    display: flex;
    width: 100%;
}

.libri-container ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.libri-container li {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
    text-decoration: none;
}

.libri-container p {
    font-size: 1em;
}

.leadingTitoletti {
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.2em;
    color: var(--light);
    text-align: justify;
}


.generelibri {
    font-size: 0.3 em;
    color: var(--light);
}

.libri-container {
    padding: 70px 0px;
}

.libri-container img {
    width: 90%;
    transition: 0.3s;
    border-radius: 2em;
    box-shadow: 5px 5px 5px rgb(67, 67, 67);
}

.libri-container img:hover {
    transform: scale(1.1);
}

/* !FINE TITOLI*/

.footer {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary);
    font-family: 'Raleway';
    padding: 15pt;
    border-radius: 5pt;
}

.mappagoogle {
    width: 400px;
    height: 200px;
}

.footer__contatti p {
    font-family: 'Raleway';
}

.fa-twitter {
    color: white;
}

.fa-twitter:hover {
    color: yellow;
}

.fa-facebook {
    color: white;
}

.fa-facebook:hover {
    color: yellow;
}

.fa-instagram {
    color: white;
}

.fa-instagram:hover {
    color: yellow;
}

.infochisiamo {
    color: var(--light);
}

.infochisiamo:hover {
    color: yellow;
}

.infogaranzie {
    color: var(--light);
}

.infogaranzie:hover {
    color: yellow;
}

.infoservizi {
    color: var(--light);
}

.infoservizi:hover {
    color: yellow;
}

.footer h2 {
    color: var(--light);
}

.footer p {
    color: var(--light);
}

/* ! BACK TO TOP (BTT) FRECCIA */
.btt {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: var(--accent);
    font-size: 40px;
    z-index: 1;
    padding: 10px;
    border-radius: 10px;
    margin-right: 4%;
}

.btt__icon {
    color: var(--light);
}

.icon-hamburger {
    display: hidden;
}


/*! Questa parte è relativa a mailchimp */
#mc_embed_signup form {
    display: block;
    position: relative;
    text-align: left;
    padding: 10px 0 10px 3%
}

#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: 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;
}

/* !MEDIA QUERY */

@media (max-width:768px) {

    .hero__text h1 {
        font-size: 3em;
    }

    .libri-container {
        padding: 20px, 0px;
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .libri-container ul {
        display: flex;
        flex-direction: column;
    }

    .libri-container img {
        padding: 20px, 0;
        width: 40%;
    }

    .libri-container li {
        padding-top: 5%;
    }

    .container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .menu {
        transform: translateY(-100%);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(72, 72, 72, 0.8);
        z-index: 2;
        transition: 0.5s cubic-bezier(.1, .11, 0, .19);
        font-family: 'Raleway';
        display: flex;
        align-items: center;
        padding: 0 70px 0 70px;
    }

    .open .menu {
        transform: translateY(0);
    }

    .menu a {
        color: var(--light);
    }

    .menu a:hover {
        font-weight: bold;
        text-decoration: underline 2px;
    }

    .icon-hamburger {
        cursor: pointer;
        width: 1.5em;
        height: 1.5em;
        position: relative;
        transition: 0.3s cubic-bezier(.1, .11, 0, .19);
        z-index: 3;
    }

    .icon-hamburger span {
        position: absolute;
        left: 0;
        height: 2px;
        width: 100%;
        background: var(--light);
    }

    .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);
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .header__icon {
        display: block;
        color: white;
    }

    .footer {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
}

@media (max-width:992px) {
    .libri-container {
        padding: 20px 0px;
    }

    .libri-container {
        display: flex;
        width: 100%;
        align-items: center;
        box-sizing: border-box;
    }

    .libri-container ul {
        display: flex;
    }

    .container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .content__sinossi {
        width: fit-content;
    }

    .content__autore {
        width: fit-content;
        margin-top: 5px;
    }

    .leadingTitoletti {
        font-weight: bold;
        margin-top: 10px;
        font-size: 0.3em;
        color: var(--light);
        text-align: center;
    }

    p.generelibri {
        font-size: smaller;
        margin-top: 5px;
        color: var(--light);
        text-align: center;
    }

    .footer {
        gap: 2%;
    }

    .mappagoogle {
        width: 300px;
    }

    .footer__servizi,
    .footer__garanzieperte,
    .footer__contatti,
    .footer__vieniatrovarci,
    .footer__chisiamo {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        padding: 15px;
    }
}

@media (max-width:480px) {

    .hero__text h1 {
        font-size: 2.5em;
        text-align: center;
    }

    .hero__text h3 {
        font-size: 2em;
        text-align: center;
    }

    .hero__text {
        width: 100%;
    }

    .hero {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .cta-group {
        justify-content: center;
    }

    .footer__servizi,
    .footer__garanzieperte,
    .footer__contatti,
    .footer__vieniatrovarci,
    .footer__chisiamo {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .tabbar__menu ul {
        margin: 0, auto;
        justify-content: center;
    }
}