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

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}


p span {
    font-weight: 900;
    color: var(--secondary);
}


/* utilità */
.res {
    width: 100%;
    max-width: 500%;


}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}


/* tavolozza colori */
:root {
    --primary: #b7cbf2;
    --secondary: #093691;
    --accent: #ababa6;
    --light: #ffffff;
    --dark: #000000;

}

/* Tipografia */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;


}


.title,
.subtitle,
.headline {
    font-family: 'Ubuntu', sans-serif;
    color: var(--primary);
    display: flex;
    position: relative;

}

.title {
    font-size: 120px;


}

.subtitle {
    font-size: 60px;
    font-style: italic;
}

.headline {
    font-size: 30px;
}

p {
    font-size: 1.3em;
    line-height: 1.3em;
}

.leading {
    font-weight: 800;
    font-size: 1.5em;
    line-height: 1.4em;
    font-family: 'Homemade Apple', cursive;
    color: #093691;

}

/* Macro */
.wrapper {
    width: 100%;
    margin: 0 auto;
}

section {
    scroll-margin-top: 170px;
    display: flex;
}


/* Header */
.fixed {
    position: fixed;
    background: var(--primary);
    width: 100%;
    z-index: 4;
}

.header {

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    height: 100px;
    background-color: var(--primary);
}

.header__citazione u {
    grid-column: 5/9;
    font-family: 'Homemade Apple', cursive;
    color: var(--secondary);
}

.header__citazione u:hover {
    color: var(--light);

}

.barra {

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    height: 20px;
    background-color: var(--primary);
}

.header__icon {
    display: none;

}

/* hamburger */
.icon__hamburger {
    cursor: pointer;
    width: 2em;
    height: 1.5em;
    position: relative;
    transition: 0.5s cubic-bezier(.19, .83, 1, .42);

}

.icon__hamburger span {
    display: block;
    position: absolute;
    left: 0;
    height: 4px;
    width: 90%;
    background: var(--secondary);
}

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

/* hamburger in apertura */
.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%;
    background: var(--light);

}

.open .icon__hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 100%;
    background: var(--light);

}

/* .header__cta, */
.header__logo {
    width: 140px;
}

.header__logo img {
    padding: 10px;
}


/* navigazione primaria */
.site-nav li {
    display: inline-block;
    grid-column: 3/9;
}

.site-nav a {
    padding: 20px;
    color: var(--secondary);
}

.site-nav a:is(:hover, :focus) {
    color: var(--light);
}



.button {
    display: block;
    color: var(--primary);
    border: 1px solid var(--primary);
    background: var(--light);
    border-radius: 30px;
    padding: 10px;
    width: 130px;
    text-align: center;
}

.button:is(:hover, :focus) {
    background: var(--secondary);
    color: var(--secondary);
    border: var(--secondary);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding-right: 20px;
}


/* cover */
.cover {
    background: var(--light) url(img/libro.jpg) no-repeat center center;
    height: 100vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;

}

.cover::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--dark);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
    z-index: 2;
}

.cover__content {
    position: relative;
    z-index: 3;
    color: var(--light);
    text-align: center;
    font-family: 'Homemade Apple', cursive;
    font-size: 1.5em;

}

.cover__content h2 {
    font-family: 'Albert Sans', sans-serif;

}

/* 
.video-bg {
    width: 100%;
    height: 100vh;
    position: absolute;
    object-fit: cover;
    z-index: 0;
    background-size: cover;
} */

body {
    background-color: var(--light);
}

/* -------------------------------------------------------------------------------- */
/* ! Grid System */
/* -------------------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid h2 {
    grid-column: 1/9;
    font-family: 'Albert Sans', sans-serif;
    font-size: 2.5em;
    color: var(--secondary);
    text-align: center;
    padding-top: 5%;
    padding-bottom: 5%;

}

#sinossi {
    margin-top: 60px;
    padding-left: 30px;
    padding-right: 30px
}

.sinossi_text {
    grid-column: 5/9;
    font-size: 1em;
    font-family: 'Albert Sans', sans-serif;
}

.sinossi_img {
    grid-column: 1/4;
    padding-left: 10px;

}

.sinossi_img img {
    border-radius: 50px;

}

.descrizione_text {
    margin-top: 50px;
    grid-column: 2/8;
    font-size: 1em;
    font-family: 'Albert Sans', sans-serif;
}

.cta-group {
    font-size: 1.5em;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    grid-column: 4/9;
    padding-bottom: 80px;
    padding-top: 40px;
}

.cta__primary,
.cta__secondary {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
}

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

.cta__primary:is(:hover, :focus) {
    background: var(--primary);
    color: var(--light);
}

.cta__secondary {
    background: var(--light);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.cta__secondary:is(:hover, :focus) {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}


#autore {
    margin-top: 40px;
    margin-bottom: 100px;
    padding-left: 30px;
    padding-right: 30px;

}

.autore_img {
    grid-column: 7/9;
    max-width: 100%;


}

.autore_img img {
    border-radius: 50px;


}

.autore_text {
    grid-column: 1/6;
    font-size: 1em;
    font-family: 'Albert Sans', sans-serif;
}



/*  questa parte è relativa a MailChimp */

#mc_embed_signup {
    padding-top: 60px;
}

#mc_embed_signup form {
    display: block;
    position: relative;
    text-align: left;
    padding: 10px 0 10px 3%;
    background-color: #d9e6ff;

}

#mc_embed_signup h6 {
    margin-top: 50px;
    font-weight: bold;
    padding: 35px;
    color: var(--secondary);
    font-size: 1.4em;
    background-color: #d9e6ff;
    font-family: 'Albert Sans', sans-serif;
}

#mc_embed_signup input {
    -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: var(--secondary);
}

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

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

#mc_embed_signup .mc-field-group label {
    font-family: 'Albert Sans', sans-serif;
    display: block;
    margin-bottom: 3px;
    color: var(--secondary);
}

#mc_embed_signup .mc-field-group input {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-indent: 2%;
    color: var(--secondary);
}

#mc_embed_signup .mc-field-group select {
    display: inline-block;
    width: 99%;
    padding: 5px 0;
    margin-bottom: 2px;
    color: var(--secondary);
}

#mc_embed_signup .datefield,
#mc_embed_signup .phonefield-us {
    padding: 5px 0;
    color: var(--secondary);
}

#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%;
    color: var(--secondary);

}

#mc_embed_signup .asterisk {
    color: var(--secondary);
    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;
    color: var(--secondary);

}

#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(--secondary);
    display: none;
}

#mc_embed_signup label.error {
    display: block;
    float: none;
    width: auto;
    margin-left: 1.05em;
    text-align: left;
    padding: .5em 0;
    font-family: 'Albert Sans', sans-serif;
    color: var(--secondary);
}

#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 var(--light);
    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: var(--secondary);
}

#mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {
    border: 2px solid var(--secondary);
}

#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-family: 'Albert Sans', sans-serif;
    color: var(--secondary);
}

#mc-embedded-subscribe-form .mc_fieldset {
    border: none;
    min-height: 0px;
    padding-bottom: 0px;
}


/* CAROSELLO */
.main-carousel {
    padding: 40px 0;
}

.carousel-cell {
    height: 500px;
    width: 350px;
    border-radius: 40%;
    line-height: 500px;
    text-align: center;
    margin-right: 40px;
}

#carosello__text {
    padding-left: 30px;
    padding-right: 30px;

}

/* tabbar */

.tabbar {
    height: 100px;
    width: 100%;
    position: relative;
    background: var(--light);
}

.tabbar__menu {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 95px;
    background: var(--light);

}

.tabbar li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 60px;
    width: 60px;
}

.tabbar a {
    font-size: 2em;
    color: var(--secondary);


}

.tabbar a:is(:hover, :focus) {
    font-size: 2.8em;
    color: var(--primary);
    background: var(--secondary);
    border-radius: 50%;
    padding: 8px;
    transform: translateY(-20px);
    transition: cubic-bezier(.19, .83, 1, .42)
}

.tabbar__due {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: var(--secondary);
}

.tabbar__due li {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0 5px;
    height: 60px;
    width: 60px;
    color: var(--primary);


}

.tabbar__due p {

    margin-top: 8px;
    display: flex;
    flex-direction: column;
    color: var(--primary);
    font-size: 0.8em;
    line-height: 1.3em;

}


#carosello__text {
    padding-left: 30px;
    padding-right: 30px;

}


/* -------------------------------------------------------------------------------- */
/* ! Media query mobile */
/* -------------------------------------------------------------------------------- */

@media (max-width: 992px) {

    .header__icon {
        display: block;
        color: var(--light);
        z-index: 3;
    }



    .header__logo {
        width: 300px;
        overflow: hidden;
    }

    .header__menu {
        background: rgba(0, 0, 0, 0.8);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        transition: 0.5s cubic-bezier(.36, .75, .93, .5);
    }

    .header__citazione u {
        grid-column: 1/9;
        font-family: 'Homemade Apple', cursive;
        color: var(--secondary);
        font-size: 3vw;


    }

    body.open .header__menu {
        transform: translateX(0);
    }



    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;


    }

    .site-nav li {
        margin-bottom: 2em;
    }

    .site-nav a {
        border: none;
        font-size: 2em;
        text-transform: uppercase;
        font-family: 'Ubuntu', sans-serif;
        color: var(--accent);
    }

    .cover__content h1 {
        font-size: 10vw;

    }

    /* grid system mobile */

    .title {
        font-size: 50px;


    }

    .subtitle {
        font-size: 40px;
        font-style: italic;
        padding-left: 30px;
        padding-right: 30px;
    }

    .headline {
        font-size: 30px;
    }

    .button {
        display: block;
        color: var(--primary);
        border: 1px solid var(--primary);
        border-radius: 15%;
        background: var(--accent);
        padding: 10px;
        width: 80px;
        text-align: center;
    }

    .button:is(:hover, :focus) {
        background: var(--dark);
        color: var(--light);
        border: var(--light);
    }


    #descrizione {
        margin-top: 40px;
        margin-bottom: 80px;
        padding-left: 30px;
        padding-right: 30px;

    }

    .descrizione_text {
        grid-column: 1/9;
        font-size: 1em;
        font-family: 'Albert Sans', sans-serif;



    }

    .cta-group {
        font-size: 1.5em;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        grid-column: 2/9;
        padding-bottom: 80px;
        padding-top: 40px;
    }


    .sinossi_text {
        grid-column: 1/9;
        padding-top: 10px;

    }

    .sinossi_img {
        grid-column: 1/9;
        max-width: 70%;
        margin: 5px auto;


    }

    #autore {
        padding-left: 30px;
        padding-right: 30px;
    }

    .autore_text {
        grid-column: 1/9;
        padding-left: 10px;
    }

    .autore_img {
        grid-column: 1/9;
        max-width: 70%;
        margin: 5px auto;


    }


    .tabbar__due p {
        font-size: 0.7em;
    }


    /* CAROSELLO mobile */
    .main-carousel {

        padding: 40px 0;


    }

    .carousel-cell {
        height: 350px;
        width: 350px;
        border-radius: 40%;
        line-height: 500px;
        text-align: center;
        margin-right: 40px;


    }


    #carosello__text {


        padding-left: 30px;
        padding-right: 30px;

    }






}