:root{
    /* CSS HEX */
    --primary: #455E96;
    --secondary: #58335E;
    --accent: #BF1515;
    --dark: #0D0D0D;
    --light: #fff;
    --other:#eeeeee;
}

 * {
    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;
    /* border: 2px solid red;  */
    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: var(--light);
}

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

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__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: 200px;
}

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

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




/* CTA  */
.cta-group {
    font-size: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 30px; 
}

/* CTA - Pulsanti */
.cta-group__primary,
.cta-group__secondary {
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    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(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-group__primary:active,
.cta-group__secondary:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}



/*CTA gestito per medium*/
@media (max-width: 991px) {
    .cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 35px; 
    }

    .cta-group__primary,
    .cta-group__secondary {
        width: 100%;
        padding: 12px;
        text-align: center;
        font-size: 1.1em;
    }

    .hero .cta-group {
        flex-direction: row; 
        justify-content: center; 
        gap: 12px;
        width: 100%;
    }

    .hero .cta-group__primary,
    .hero .cta-group__secondary {
        width: 48%; 
        padding: 10px;
        text-align: center;
    }
}




/* HERO */

@media (min-width: 992px) {
    
    .cover__menu {
        all: unset;
    }

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

    .cover__hb {
        /* visibility: hidden; */
        display: none;
    }

    .hero-container {
        width: 100%; 
        background: var(--other); 
    }
    
    .hero {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
        height: 720px; 
    }
    
    .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;
        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;
    }

    .hero__cover img {
        width: 100%;
        height: auto; 
        object-fit: contain;
        margin-left: 90px;
        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;
    }

    .cover__logo img {
        height: 50%;
        width: auto;
    }

}


/* hero gestita per i medium in poi*/
@media (max-width: 991px) {
    .hero.container {
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px;
        background-color: #eee; 
    }
    
    .hero__text {
        width: 100%;
        line-height: 1.4;
        max-width: 100%;
        padding: 15px;
    }
    
    .hero__cover {
        width: 70%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        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;
        background-image: url('../img/illustrazione-sfondo.png'); 
        background-size: cover; 
        background-position: center;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .content__sinossi__image {
        width: 35%; 
        display: flex;
        justify-content: center;
        margin-top: 35px;
        margin-left: 30px;
        padding: 15px;
    }
    
    .content__sinossi__image img {
        width: 100%;  
        height: auto;
        object-fit: contain; 
    }
    
    /* Testo a destra */
    .content__sinossi__text {
        width: 50%;  
        max-width: 50%; 
        line-height: 1.4;
        margin-top: 65px;
        padding-left: 100px; 
        text-align: left; 
    }
}



/*Sinossi gestita per i medium in poi*/
@media (max-width: 991px) {
    .content__sinossi {
        display: flex;
        flex-direction: column; 
        gap: 20px;
        padding: 10px 20px;
        position: relative; 
        background:var(--light)
    }

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

    .content__sinossi__image {
        width: 75%;
        display: flex;
        justify-content: center;
        align-items: center; 
        margin: 0 auto; 
        padding: 15px;
        order: 2; 
    }
    
    .content__sinossi__image img {
        object-fit: contain;
        width: 100%;
        height: auto;
        margin-top: 8px;
    }
}




/* AUTORE */

@media (min-width: 992px){

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

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

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

    .content__autore__text {
        width: 50%;
        max-width: 55%;
        line-height: 1.4;
        margin-top: 20px;
        text-align: left;
        padding: 15px;
    }

    .content__autore__image {
        width: 40%;
        display: flex;
        justify-content: center;
        padding: 15px;
        margin-top: 20px;
        margin-right: 50px;
    }

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



/*Autore gestita per i medium*/
@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;
        opacity: 0.8;
        background-image: url('../img/separatore.png'); 
        background-repeat: no-repeat; 
        background-size: 80% auto; 
        background-position: center; 
        margin-top: -5px;
        margin-bottom: 100px; 
    }
    
    .content__autore__text {
        width: 100%;
        line-height: 1.4;
        max-width: 100%;
        padding: 15px;
        text-align: left;
        margin-top: -100px;
        order: 1; 
    }

    .content__autore__image {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: -80px;
        padding: 15px;
        order: 2; 
    }
    
    .content__autore__image img {
        object-fit: contain;
        width: 80%;
        margin-top: -15px;
        height: auto;
    }
}






/* SCROLL */

@media (min-width: 992px) {

    #altro {
        scroll-margin-top: 150px; 
    }
    
    .content__altro {
        align-items: center;
        text-align: center;
        margin-top: 40px;
        padding: 40px 20px;
        position: relative;
    }
    
    .content__altro__text {
        margin-top: -170px; 
        padding: 20px;
        text-align: center; 
    }
    
    .scroller {
        width: 100%; 
        overflow: hidden; 
        margin-top: 20px;
        margin-bottom: 50px;
    }
    
    .scroller__inner {
        display: flex;
        gap: 2rem; 
        padding-block: 1rem;
    }
    
    .scroller__inner img {
        width: 250px; 
        height: auto; 
        border-radius: 5px; 
        transition: transform 0.3s ease, box-shadow 0.3s ease; 
    }
    
    .scroller__inner img:hover {
        transform: scale(1.09);
    }
    
    .scroller[data-animated="true"] .scroller__inner {
        width: max-content;
        flex-wrap: nowrap;
        animation: scroll var(--_animation-duration, 40s)
          var(--_animation-direction, forwards) linear infinite;
    }
    
    .scroller[data-direction="right"] {
        --_animation-direction: reverse;
    }
    
    .scroller[data-direction="left"] {
        --_animation-direction: forwards;
    }
    
    .scroller[data-speed="fast"] {
        --_animation-duration: 20s;
    }
    
    .scroller[data-speed="slow"] {
        --_animation-duration: 60s;
    }
    
    /* Keyframe per il movimento infinito */
    @keyframes scroll {
        to {
            transform: translate(calc(-50% - 0.5rem));
        }
    }
}



/*Altro gestito per i medium*/
@media (max-width: 991px) {

    #altro {
        scroll-margin-top: 120px;
    }

    .content__altro {
        align-items: center;
        text-align: center;
        margin-top: 40px;
        padding: 40px 20px;
        position: relative;
    }
    
    .content__altro__text {
        margin-top: -180px; 
        padding: 50px;
        text-align: center; 
    }

    .scroller {
        width: 100%;
        height: 100vh; 
        overflow: hidden; 
        display: flex;
        flex-direction: column;
        margin-bottom: 50px;
        align-items: center;
        position: relative;
    }

    .scroller__inner {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        animation: scroll-vertical 45s linear infinite; 
    }

    .scroller__inner img {
        width: 65vw; 
        max-width: 400px; 
        height: auto;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

    .scroller__inner img:hover {
        transform: scale(1.05);
    }

    /* Animazione verticale*/
    @keyframes scroll-vertical {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-50%);
        }
    }
}




/* FOOTER */

@media(min-width: 992px) {
    footer {
        background-color: var(--primary);
        width: 100%;
        padding: 15px;
        position: relative;
    }

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

    .footer-logo {
        width: 25%; 
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -15px;
        padding-right: 30px; 
    }

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

    .footer-main {
        display: flex;
        width: 100%; 
        justify-content: space-between;
    }

    .footer-left {
        width: 30%;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0 30px; 
    }

    .footer-center {
        width: 35%;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0 30px;
    }


    .footer-right {
        width: 30%;
        padding: 0 30px; 
    }

    .footer-title {
        font-size: 22px;
        font-weight: bold;
        color: var(--light);
        margin-bottom: 20px;
    }


    .footer-subtitle {
        font-size: 18px;
        color: var(--light);
        margin-bottom: 20px;
    }

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

    ul li {
        margin-bottom: 0px;
    }

    ul li a {
        text-decoration: none;
        font-size: 14px;
        font-weight: 450;
        color: var(--light);
        transition: color 0.3s ease-in-out;
    }

    ul li a:hover {
        font-weight: 700;
    }

    .footer-center .footer-subtitle:nth-of-type(2) {
        margin-top: 30px;     
    }
    
    .social-icons {
        margin-top: 15px;
    }

    .social-icons a {
        display: inline-block;
        margin-right: 5px;
        margin-top: 5px;
        font-size: 30px;
        color: var(--light);
        text-decoration: none;
        transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    }

    .social-icons a:hover {
        transform: scale(1.2);
    }



    /* Contenitore del form */
    .newsletter-form {
       width: 100%;
       display: flex;
       flex-direction: column;
       align-items: center;
    }
    
    /* Input email */
    input[type="email"] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--light);
        border-radius: 100px;
        font-size: 14px;
        outline: none;
        margin-bottom: 10px; 
    }

    .newsletter-submit {
       background-color: var(--light);
       color: var(--dark);
       padding: 12px 20px;
       border: none;
       border-radius: 100px;
       cursor: pointer;
       width: 100%;
       font-size: 14px;
       font-weight: 600;
       transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    }

    .newsletter-submit:hover {
       background-color: var(--other);
       color: var(--dark);
       transform: scale(1.05);
    }


    /* Checkbox della privacy */
    .privacy-checkbox {
        margin-bottom: 10px;
        margin-top: 20px;
        display: flex;
        align-items: center;
    }

    .privacy-checkbox input {
        margin-right: 10px;
    }

    .privacy-checkbox label {
        font-size: 12px;
        color: var(--light);
    }    
    
}




/*footer gestito per i medium*/
@media (max-width: 991px) {
    footer {
        background-color: var(--primary);
        width: 100%;
        position: relative;
    }

    .footer-container {
        display: flex;
        flex-direction: column; 
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 30px;
    }

    .footer-logo {
        width: 100%;
        display: flex;
        margin-left: 30px;
        align-items: center;
        margin-bottom: 30px;
    }

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

    .footer-main {
        display: flex;
        flex-direction: column; 
        justify-content: center;
        width: 100%;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .footer-title {
        font-size: 22px;
        font-weight: bold;
        color: var(--light);
        margin-bottom: 20px;
    }

    .footer-subtitle {
        font-size: 18px;
        color: var(--light);
        margin-bottom: 20px;
    }

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

    ul li {
        margin-bottom: 0px;
    }

    ul li a {
        text-decoration: none;
        font-size: 14px;
        font-weight: 450;
        color: var(--light);
        transition: color 0.3s ease-in-out;
    }

    ul li a:hover {
        font-weight: 700;
    }

    .footer-center .footer-subtitle:nth-of-type(2) {
        text-align: left; 
        margin-top: 25px;
    }
    
    .social-icons {
        display: flex;
        justify-content: flex-start; 
        margin-top: -10px;
    }

    .social-icons a {
        display: inline-block;
        margin-right: 10px;
        font-size: 30px;
        color: var(--light);
        text-decoration: none;
        transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    }

    .social-icons a:hover {
        transform: scale(1.2);
    }

    input[type="email"] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--light);
        border-radius: 100px;
        font-size: 14px;
        outline: none;
        margin-bottom: 10px;
    }

    .newsletter-submit {
        background-color: var(--light);
        color: var(--dark);
        padding: 12px 20px;
        border: none;
        border-radius: 100px;
        cursor: pointer;
        width: 100%;
        font-size: 14px;
        font-weight: 600;
        transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    }

    .newsletter-submit:hover {
        background-color: var(--other);
        color: var(--dark);
        transform: scale(1.05);
    }

    .privacy-checkbox {
        margin-bottom: 10px;
        margin-top: 20px;
        display: flex;
        align-items: center;
    }

    .privacy-checkbox input {
        margin-right: 10px;
    }

    .privacy-checkbox label {
        font-size: 12px;
        color: var(--light);
    }
}