:root {
    --primary: #CFA776;
    --secondary: #8DD5F2;
    --accent: #D9626B;
    --dark: #0D0D0D;
    --light: #F4F5F7;
    --other: #F8F19F;

}



/* Reset sinossi, eventi, sutore*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
}

li {
    list-style-type: none;
}

html {
    scroll-behavior: smooth;
}



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

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

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

}



/* Tipografia generale*/
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background-color: #ffffff !important;
}

h1 {
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-style: normal;
    line-height: normal;
    font-weight: 600;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    ;
}

/* HEADER */

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

.cover__logo img {
    max-height: 120%;
    width: auto;
    display: block;
}

.cover__menu a {
    color: var(--light);
    font-size: 20px;
    font-style: normal;
    font-weight: 550;
    padding: 2px;
}

.cover__menu li {
    font-size: 1.1em;
    color: var(--light);
    font-weight: 500;
}

header.cover {
    background: var(--primary);
    padding: 15px;
    color: var(--white);
    font-weight: 600;
    height: 100px;
    overflow: hidden;
    transition: height 0.8s cubic-bezier(0.77, 0, 0.18, 1),
        background-color 0.6s ease-in-out,
        box-shadow 0.4s ease-in-out;
}

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

/* Menu principale*/
header .cover__menu {
    display: flex;
}

/* Effetto hover menu */
header .cover__menu a {
    color: var(--light);
    font-weight: 600;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

header .cover__menu a:hover {
    transform: scale(1.2);
    color: var(--light);
}

/* HEADER ACTIVE */
header.cover.active {
    height: 230px;
}

/* Effetto di fade-in e discesa SOLO quando il menu si espande */
header.cover.active .cover__menu {
    color: var(--light);
    position: relative;
    top: 15px;
    padding: 3px;
    display: inline-block;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease-in-out 0.5s, transform 0.5s ease-in-out 0.5s;
}

header.cover.active .cover__menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Effetto hover nel menu attivo */
header.cover.active .cover__menu a:hover {
    transform: scale(1.2);
    color: var(--light);
}



















/* CTA - Pulsanti allineati a sinistra */
.cta-group {
    font-size: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 20px;
}

/* CTA - Pulsanti */
.cta-group__primary,
.cta-group__secondary {
    border: 2px solid var(--secondary);
    background: var(--secondary);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition:
        background 0.3s ease-in-out,
        border 0.3s ease-in-out,
        transform 0.2s ease-in-out,
        box-shadow 0.3s ease-in-out;
}

/* Effetto hover */
.cta-group__primary:hover,
.cta-group__secondary:hover {
    background: var(--other);
    border-color: var(--other);
    transform: scale(1.05);
    /* Leggera espansione */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    /* Effetto sollevamento */
}

/* Effetto active (quando il pulsante viene premuto)*/
.cta-group__primary:active,
.cta-group__secondary:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-group {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
}

.cta-group__primary,
.cta-group__secondary {
    width: auto;
    padding: 10px 20px;
    font-size: 1em;
}






/* HERO */
@media (min-width: 992px) {

    .cover__menu {
        all: unset;
    }

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

    .cover__hb {
        display: none;
    }

    .hero {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
    }

    .hero__text {
        width: 45%;
        max-width: 50%;
        padding-right: 20px;
        line-height: 1.4;
        text-align: left;
        padding: 15px;
    }

    .hero__cover {
        width: 40%;
        display: flex;
        justify-content: center;
        margin-left: 10%;
        padding: 15px;
    }

    .hero__cover img {
        width: 100%;
        height: auto;
        object-fit: contain;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
        border-radius: 5px;

    }

    .cover__logo {
        height: 50px;
        display: flex;
        align-items: center;
        margin-top: -5px;
        margin-left: 2px;
    }

}


/* media query per dispositivi mobili*/
@media (max-width: 991px) {
    .hero.container {
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px;
    }

    .hero__text {
        width: 100%;
        line-height: 1.4;
        max-width: 100%;
        padding: 15px;
    }

    .hero__cover {
        width: 100%;
        display: flex;
        margin-top: 30px;
        padding: 15px;
    }

    .hero__cover img {
        object-fit: contain;
        width: 100%;
        height: auto;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
        border-radius: 5px;
    }

    .cover__hb {
        font-size: 2em;
        height: 50px;
        display: flex;
        align-items: center;
        margin-top: -5px;
        margin-right: 0;
        color: var(--light);
    }

    .cover__logo {
        height: 50px;
        display: flex;
        align-items: center;
        margin-top: -5px;
        margin-left: 2px;
    }


}






/* SINOSSI */

@media (min-width: 992px) {
    .content__sinossi {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        position: relative;
    }

    .content__sinossi::before {
        content: '';
        display: block;
        position: absolute;
        top: 55px;
        left: 0;
        right: 0;
        height: 100px;
        margin-top: -30px;
        background-image: url('../img/taglio.png');
        opacity: 0.8;
        background-repeat: no-repeat;
        background-size: 60% auto;
        background-position: center;
    }

    .content__sinossi__image {
        width: 40%;
        display: flex;
        justify-content: center;
        margin-top: 65px;
        padding: 15px;
        margin-right: -60px;
    }

    .content__sinossi__image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        width: 65vw;
        margin-top: -150px;
        margin-left: calc(-50vw + 50%);
    }

    .content__sinossi__text {
        width: 50%;
        max-width: 50%;
        line-height: 1.4;
        margin-top: 150px;
        padding-left: 80px;
        text-align: left;
    }


    /* Animazione hovering */

    .container__images {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .image-box {
        margin: 10px;
        margin-top: -50px;


    }

    .image-box img {
        width: 150px;
        height: auto;
        transition: opacity 0.3s ease;
    }

    .image-box img.default {
        display: block;
    }

    .image-box img.hover {
        display: none;
    }

    .image-box:hover img.default {
        display: none;
    }

    .image-box:hover img.hover {
        display: block;
    }

}












/* media query per dispositivi mobili*/
@media (max-width: 991px) {
    .content__sinossi {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px;
        position: relative;
        background: #ffffff;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }

    .content__sinossi::before {
        content: '';
        display: block;
        width: 100%;
        height: 20px;
        background-image: url('../img/taglio.png');
        background-repeat: no-repeat;
        background-size: 90% auto;
        background-position: center;
        margin-bottom: 40px;
        margin-top: -20px;

    }

    .content__sinossi__text {
        width: 100%;
        margin-top: -10px;
        line-height: 1.4;
        max-width: 100%;
        padding: 15px;
        text-align: left;
        order: 1;
    }

    .content__sinossi__image {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 15px;
        order: 2;
    }

    .content__sinossi__image img {
        object-fit: contain;
        width: 100%;
        margin-top: 10px;
        height: auto;
    }

    .container__images {
        flex-direction: column;
        align-items: center;
    }

    .image-box {
        margin: 10px 0;
    }

    .image-box img {
        width: 100%;
        max-width: 150px;
    }

    .container__images {
        padding: 10px;
    }

    .container__images {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 20px
    }

    .image-box {
        margin: 10px 0;
        width: 100%;
        max-width: 150px;
        position: relative;
    }

    .image-box img {
        width: 100%;
    }

    .container__images {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .image-box {
        margin: 10px;
        margin-top: -30px;
    }

    .image-box img {
        width: 500px;
        height: auto;
        transition: opacity 0.3s ease;
    }

    .image-box img.default {
        display: block;
    }

    .image-box img.hover {
        display: none;
    }

    .image-box:hover img.default {
        display: none;
    }

    .image-box:hover img.hover {
        display: block;
    }

}









/* AUTORE */
@media (min-width: 992px) {

    #autore {
        scroll-margin-top: 20px;
    }

    .content__autore {
        display: flex;
        flex-direction: row-reverse;
        gap: 40px;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        position: relative;
    }

    .content__autore::before {
        content: '';
        display: block;
        position: absolute;
        top: 30px;
        left: 0;
        right: 0;
        height: 20px;
        background-image: url('../img/taglio.png');
        background-repeat: no-repeat;
        opacity: 0.8;
        background-size: 60% auto;
        background-position: center;
        margin-top: 10px;
        margin-bottom: 100px;
    }

    .content__autore__text {
        width: 50%;
        max-width: 500px;
        line-height: 1.4;
        padding: 10px;
        text-align: left;
        margin-top: 0;
        margin-left: 80px;
        order: 1;
    }

    .content__autore__image {
        width: 40%;
        display: flex;
        justify-content: center;
        padding: 10px;
        margin: 60px 0 0 0;
        align-self: center;
        margin-left: -20px;
    }

    .content__autore__image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}



/* media query per dispositivi mobili*/
@media (max-width: 991px) {
    .content__autore {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px;
        position: relative;
    }

    .content__autore::before {
        content: '';
        display: block;
        width: 100%;
        height: 20px;
        background-image: url('../img/taglio.png');
        background-repeat: no-repeat;
        background-size: 90% auto;
        background-position: center;
        margin-bottom: 40px;
    }

    .content__autore__text {
        width: 100%;
        line-height: 1.4;
        max-width: 100%;
        text-align: left;
        margin-top: 0;
        order: 1;
        padding: 15px;
    }

    .content__autore__image {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px;
        padding: 15px;
        order: 2;
        margin-bottom: 20px;
    }

    .content__autore__image img {
        object-fit: contain;
        width: 100%;
        height: auto;
    }
}















/* CITAZIONI */

@media (min-width: 992px) {

    body {
        font-family: 'Montserrat', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f5f5f5;
    }

    .quotes-section {
        padding: 40px 20px;
        text-align: center;
    }

    .quotes-section h2 {
        font-size: 2.0rem;
        font-weight: 700;
        padding: 40px;
    }

    .quotes-container {
        display: flex;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
        margin-bottom: 80px;
    }

    .quote-card {
        padding: 60px;
        border-radius: 20px;
        max-width: 600px;
        flex: 1;
        position: relative;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        min-height: 250px;
    }

    /* Alternanza colori per i box */
    .quote-card:nth-child(odd) {
        background-color: var(--other);

    }

    .quote-card:nth-child(even) {
        background-color: var(--secondary);
    }

    /* Alternanza colori per le virgolette */
    .quote-card:nth-child(odd) .quote-icon {
        color: #EBCC46;
    }

    .quote-card:nth-child(even) .quote-icon {
        color: #2BAAE2;
    }

    .quote-card p {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.6;
    }

    .quote-icon {
        font-size: 7rem;
        position: absolute;
        bottom: -70px;
        right: 20px;
    }

}




/* Media query per dispositivi mobili */
@media (max-width: 991px) {

    body {
        font-family: 'Montserrat', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f5f5f5;
    }

    .quotes-section {
        padding: 20px 10px;
        text-align: center;
    }

    .quotes-section h2 {
        font-size: 1.5rem;
        font-weight: 700;
        padding: 20px;
    }

    .quotes-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
        margin-top: 40px;
    }

    .quote-card {
        padding: 30px;
        border-radius: 15px;
        max-width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
    }

    /* Alternanza colori per i box */
    .quote-card:nth-child(odd) {
        background-color: var(--other);
    }

    .quote-card:nth-child(even) {
        background-color: var(--secondary);
    }

    /* Alternanza colori per le virgolette */
    .quote-card:nth-child(odd) .quote-icon {
        color: #EBCC46;
    }

    .quote-card:nth-child(even) .quote-icon {
        color: #2BAAE2;
    }

    .quote-card p {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.5;
    }

    .quote-card .quote-icon {
        font-size: 5rem;
        position: absolute;
        bottom: -60px;
        right: 10px;
    }

    .quote-card .quote-icon:before {
        font-size: 4rem;
        position: absolute;
        top: 10px;
        left: 10px;
        color: #2BAAE2;
    }

    .quote-card .quote-icon:after {
        font-size: 8rem;
        position: absolute;
        bottom: 40px;
        right: 10px;
        color: #EBCC46;
    }
}














/* FOOTER */
@media (min-width: 992px) {
    footer {
        background-color: var(--primary);
        width: 100%;
        padding: 40px 0;
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .footer-logo {
        width: 12%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        max-width: 100%;
        height: auto;
    }

    .social-icons {
        margin-top: 30px;
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .footer-main {
        display: flex;
        width: 75%;
        justify-content: space-between;
        gap: 20px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 32%;
    }

    h3 {
        margin-bottom: 10px;
        font-weight: bold;
        font-size: 20px;
        color: #ffffff;
    }

    ul {
        list-style-type: none;
    }

    ul li {
        margin-bottom: 8px;
    }

    ul li a {
        text-decoration: none;
        color: #ffffff;
        font-size: 14px;
        transition: color 0.3s;
        font-weight: 450;
    }

    ul li a:hover {
        color: var(--white);
    }

    .social-icons a {
        font-size: 30px;
        color: #ffffff;
        text-decoration: none;
    }

    .social-icons a:hover {
        color: #555;
    }

    form {
        margin-top: 20px;
    }

    input[type="email"] {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #FFFAF3;
        border-radius: 10px;
    }

    button {
        background-color: var(--secondary);
        color: rgb(0, 0, 0);
        padding: 10px 20px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        width: 100%;
    }

    button:hover {
        background-color: var(--other);
    }

    .privacy-checkbox {
        margin-bottom: 15px;
    }

    .privacy-checkbox label {
        font-size: 12px;
        color: #555;
    }

    a {
        color: #555;
        text-decoration: none;
        font-size: 12px;
    }

    a:hover {
        text-decoration: none;
    }
}






/* DISPOSITIVI MOBILI */
@media (max-width: 991px) {
    footer {
        background-color: #CFA776;
        width: 100%;
        padding: 40px 20px;
    }

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

    .footer-logo {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        max-width: 160px;
        height: auto;
    }

    .social-icons {
        margin-top: 20px;
        display: flex;
        justify-content: flex-start;
        gap: 15px;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        text-align: left;
    }


    h3 {
        margin-bottom: 12px;
        font-weight: bold;
        font-size: 20px;
        color: #ffffff;
    }

    ul {
        list-style-type: none;
        padding: 0;
    }

    ul li {
        margin-bottom: 10px;
    }

    ul li a {
        text-decoration: none;
        color: #ffffff;
        font-size: 14px;
        transition: color 0.3s;
        font-weight: 450;
    }

    ul li a:hover {
        color: var(--white);
    }

    .social-icons a {
        font-size: 28px;
        color: #ffffff;
        text-decoration: none;
    }

    .social-icons a:hover {
        color: #555;
    }

    form {
        margin-top: 25px;
        width: 100%;
    }

    input[type="email"] {
        width: 100%;
        padding: 12px;
        margin-bottom: 12px;
        border: 1px solid #FFFAF3;
        border-radius: 10px;
        text-align: left;
    }

    button {
        background-color: var(--secondary);
        color: rgb(0, 0, 0);
        padding: 12px 18px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        width: 100%;
        text-align: center;
    }

    button:hover {
        background-color: #555;
    }

    .privacy-checkbox {
        margin-bottom: 15px;
    }

    .privacy-checkbox label {
        font-size: 12px;
        color: #555;
    }

    a {
        color: #555;
        text-decoration: none;
        font-size: 12px;
    }

    a:hover {
        text-decoration: none;
    }
}