@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&display=swap');




body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #e6e6ec; /* Colore di fallback */
}

h1, h2, h3, h4, h5, h6, p {
    font-family: 'Ubuntu', sans-serif;
    color: #06064a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

/*
-----------------------------------------------------------------
Header section
-----------------------------------------------------------------
*/

.header {
    display: flex;
    height: 10dvh;
    width: 100%;
    background-color: #06064a;
    align-items: center;
    justify-content: center;
}

.side-header-left {
    display: flex;
    height: 100%;
    width: 15%;
    align-items: center;
    justify-content: center;
    padding-left: 250px;
}

.side-header-right {
    display: flex;
    height: 100%;
    width: 15%;
    align-items: center;
    justify-content: center;
    padding-left: 10%;
}

.side-header-right img {
    width: 40%;
    height: auto;
    transform: rotate(180deg);
    cursor: pointer;
    z-index: 1;
}

@keyframes wiggle {
    0% { transform: translateX(0); }
    50% { transform: translateX(-15px); }
    100% { transform: translateX(0); }
}

.side-header-right:hover {
    animation: wiggle 1s ease-in-out infinite;
}

.center-header {
    display: flex;
    height: 100%;
    width: 70%;
    align-items: center;
    justify-content: center;
}

.center-header img {
    width: 12%;
    height: auto;
}

/*
-----------------------------------------------------------------
Overview section
-----------------------------------------------------------------
*/

#engine-overview {
    display: flex;
    height: 90dvh;
    width: 100%;
}

.overview-section{
    display: flex;
    height: 100%;
    width: 50%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.video-wrapper-en{
    display: flex;
    width: 95%;
    height: 50%;
    align-items: center;
    justify-content: center;

    background-image: url("../images/Video-thumbnail-en.png"); /* Percorso dell'immagine */
    background-size: cover; /* Adatta l'immagine all'elemento */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita ripetizioni */
    border-radius: 10px; /* Arrotonda i bordi */
}

.video-wrapper-it{
    display: flex;
    width: 95%;
    height: 50%;
    align-items: center;
    justify-content: center;

    background-image: url("../images/Video-thumbnail-it.png"); /* Percorso dell'immagine */
    background-size: cover; /* Adatta l'immagine all'elemento */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita ripetizioni */
    border-radius: 10px; /* Arrotonda i bordi */
}

.video-play{
    display: flex;
    width: 20%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    background-color: rgba(230, 230, 236, 0.1);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0.5px #e6e6ec;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.video-play:hover {
    transform: scale(1.10); /* Ingrandisce */
    box-shadow: 0 0 30px 7px #01b99f;
}

.video-play img {
    width: 40%;
    height: auto;
    cursor: pointer;
    padding-left: 8%;
}

.engine-title {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.engine-title h1 {
    text-align: center;
    line-height: 1.5;
    font-size: clamp(1.2rem, 2vw, 5rem);
}

.engine-title p {
    text-align: justify;
    line-height: 1.5;
    font-size: clamp(0.9rem, 1.2vw, 1.5rem);
    padding: 0 100px;
    margin-bottom: 50px;
}

.contact-us{
    display: flex;
    margin-top: 50px;
    cursor: pointer;
    background-color: #06064a;
    border: none;
    padding: 20px 40px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Animazione fluida */
}

.contact-us:hover{
    transform: scale(1.10); /* Ingrandisce */
    box-shadow: 0px 0px 20px 5px #01b99f
}

.contact-us p{
    font-size: clamp(0.9rem, 1.2vw, 2rem);
    font-weight: 500;
    color: white;
    cursor: pointer;
}

/*
-----------------------------------------------------------------
Context description settings
-----------------------------------------------------------------
*/

#context-description {
    display: flex;
    min-height: 50dvh;
    width: 100%;

}

.context-container {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    margin-bottom: 150px;
}

.context-text {
    display: flex;
    width: 50%;
    height: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
}

.context-text h1 {
    font-size: clamp(1.2rem, 2vw, 5rem);
    text-align: center;
    line-height: 1.5;
}

.context-text p {
    text-align: justify;
    line-height: 1.5;
    font-size: clamp(0.9rem, 1.2vw, 1.5rem);
}

.context-list {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 20px;
    margin-top: 15px;
    font-size: clamp(0.9rem, 1.2vw, 1.5rem);
    line-height: 1.6;
    color: #06064a !important;
    text-align: left;
}

.context-table {
    display: flex;
    width: 45%;
    height: 80%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 5px solid #9b9bb6;
    border-radius: 10px;
    background-color: #cdcdda;
    padding: 20px;
    box-shadow: 10px 10px 25px 5px #505080;
}

#crypto-payments {
    width: 100%;
    height: 100%;
}

/*
-----------------------------------------------------------------
How it works settings
-----------------------------------------------------------------
*/

#how-it-works {
    display: flex;
    min-height: 100dvh;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #06064a !important;
}

.tab {
    border: 5px solid #9b9bb6;
    background: #cdcdda;
    padding: 20px;
    font-size: clamp(0.9rem, 2vw, 3rem);
    font-weight: 700;
    border-radius: 10px;
    width: 50%;
    cursor: pointer;
    color: #06064a;
    transition: background 0.5s ease-in-out, color 0.5s ease-in-out, border 0.5s ease-in-out;
}

.tab.active {
    background: #06064a;
    color: white;
    border: 5px solid #06064a;
}

.content-container {
    position: relative;
    width: 65%;
    text-align: center;
}

.content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.content img {
    width: 60%;
    height: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

.content p {
    font-size: clamp(0.9rem, 1.2vw, 1.5rem);
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 50px;
}

.content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    border-left: 3px solid #cdcdda;
    border-right: 3px solid #cdcdda;
    padding: 0 30px;
    margin-bottom: 100px;
}

.how-to-list {
    list-style-type: decimal;
    margin-left: 35px;
    padding-left: 35px;
    padding-right: 40px;
    margin-top: 15px;
    font-size: clamp(0.9rem, 1.2vw, 1.5rem);
    line-height: 1.6;
    text-align: left;
    color: #06064a !important;
}

.accordion {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 50px;
    background-color: #e6e6ec;
}

.accordion-item {
    border-bottom: 2px solid #9b9bb6;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 80px;
    font-size: 1.2rem;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #cdcdda;
    transition: background-color 0.7s ease;
}

.accordion-header:hover {
    background-color: #06064a;
}

.accordion-header h1 {
    margin: 0;
    font-size: clamp(0.9rem, 1.2vw, 2rem);
    transition: color 0.7s ease;
    padding-left: 20px;
    cursor: pointer;
}

.accordion-header:hover h1 {
    color: white;
}

.accordion-header img {
    width: 25px;
    height: auto;
    transform: rotate(90deg);
    margin-right: 20px;
}

.accordion-header:hover img {
    animation: first-rotate 0.7s ease-in-out forwards, wiggle-accordion 1s ease-in-out infinite;
}

.accordion-item.active .accordion-header img {
    animation: last-rotation 0.5s ease-in-out forwards;
}

.accordion-item:not(.active) .accordion-header img {
    animation: turn-back 0.5s ease-in-out forwards;
}

.accordion-item:not(.active) .accordion-header:hover img {
    animation: first-rotate 0.7s ease-in-out forwards, wiggle-accordion 1s ease-in-out infinite;
}

@keyframes first-rotate {
    from {
        transform: rotate(90deg);
    }
    to {
        transform: rotate(180deg);
    }
}

@keyframes wiggle-accordion {
    0% { transform: rotate(180deg) translateX(0px); }
    50% { transform: rotate(180deg) translateX(15px); }
    100% { transform: rotate(180deg) translateX(0px); }
}

@keyframes last-rotation {
    from {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(270deg);
    }
}

@keyframes turn-back {
    from {
        transform: rotate(270deg);
    }
    to {
        transform: rotate(90deg);
    }
}

.accordion-content {
    max-height: 0; /* Nasconde il contenuto */
    overflow: hidden;
    padding: 0 80px;
    transition: max-height 0.8s ease-out, padding 0.8s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 600px; /* Adatta in base al contenuto */
    padding: 25px 50px;
    overflow: auto;
}

/* Per Webkit (Chrome, Edge, Safari) */
.accordion-content::-webkit-scrollbar {
    width: 8px; /* Larghezza della scrollbar */
}

.accordion-content::-webkit-scrollbar-thumb {
    background-color: #06064a; /* Colore della barra */
    border-radius: 4px; /* Estremità arrotondate */
}

.accordion-content::-webkit-scrollbar-track {
    background: #e6e6ec; /* Colore dello sfondo della scrollbar */
}

/* Per Firefox */
.accordion-content {
    scrollbar-color: #06064a #e6e6ec; /* Colore barra e sfondo */
    scrollbar-width: thin; /* Scrollbar sottile */
}

/*
-----------------------------------------------------------------
Pricing settings
-----------------------------------------------------------------
*/

#pricing {
    display: flex;
    width: 100%;
    height: 80dvh;
    align-items: center;
    justify-content: center;

    background-image: url("../images/Logo\ positivo.svg"); /* Percorso dell'immagine */
    background-size: contain; /* Adatta l'immagine all'elemento */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita ripetizioni */
}

.digital-engine-pricing {
    display: flex;
    text-align: center;
    border-radius: 10px;
    flex-direction: column;
    background-color: rgba(205, 205, 218, 0.5);
    backdrop-filter: blur(25px);
    align-items: center;
    justify-content: center;
    padding: 50px;
    width: 50%;
    box-shadow: 0 0 0 2px #cdcdda;
}

.digital-engine-pricing h1 {
    font-size: clamp(1.2rem, 1.5vw, 5rem);
    font-weight: 400;
    line-height: 2;
}

.digital-engine-pricing p {
    font-size: clamp(0.9rem, 1.2vw, 1.5rem);
    line-height: 1.5;
}

/*
-----------------------------------------------------------------
footer section
-----------------------------------------------------------------
*/

#footer {
    display: flex;
    width: 100%;
    min-height: 15dvh;
    align-items: center;
    justify-content: center;
    background-color: #06064a;
}

.footer-container {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
}

.footer-general-info {
    display: flex;
    height: 100%;
    width: 33%;
    color: white !important;
    align-items: center;
    justify-content: flex-start;
    line-height: 2;
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    font-weight: 500;
    padding-left: 20px;
}

.footer-general-info p {
    color: white !important;
}

.footer-social {
    display: flex;
    height: 100%;
    width: 34%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 1%;
    background-color: #06064a;
}

.footer-social img {
    width: 25%;
}

.footer-social p {
    color: white;
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #01b99f;
    text-decoration-thickness: 4px; /* Spessore della sottolineatura */
    text-underline-offset: 5px;
}

.social-img {
    display: flex;
    width: 20%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.social-img a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-img img {
    width: 40%;
    height: auto;
    cursor: pointer;
}

.footer-policies {
    display: flex;
    height: 100%;
    width: 33%;
    align-items: flex-end;
    justify-content: center;
    padding-right: 20px;
    flex-direction: column;
    gap: 20px;
    background-color: #06064a;
}

.footer-policies p {
    color: white;
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #01b99f;
    text-decoration-thickness: 4px; /* Spessore della sottolineatura */
    text-underline-offset: 5px;
    cursor: pointer;
}

/*
-----------------------------------------------------------------
Mobile settings
-----------------------------------------------------------------
*/

@media (max-width: 768px) {

    /*
    -----------------------------------------------------------------
    Header settings
    -----------------------------------------------------------------
    */

    .side-header-right {
        padding-left: 0px;
    }

    .side-header-left {
        padding-left: 0px;
    }

    .center-header img {
        width: 100px;
        height: auto;
    }    

    .side-header-right img {
        width: 30px;
        height: auto;
        transform: rotate(180deg);
        cursor: pointer;
    }

    /*
    -----------------------------------------------------------------
    Engine overview settings
    -----------------------------------------------------------------
    */

    #engine-overview {
        flex-direction: column;
    }
    
    .overview-section{
        width: 100%;
        height: 45%;
        flex-direction: column;
    }

    .video-wrapper-en {
        height: 60%;
    }

    .video-wrapper-it {
        height: 60%;
    }

    .video-play {
        width: 70px;
        height: 70px;
    }

    .engine-title p {
        padding: 0 50px;
    }

    .contact-us {
        margin-top: 30px;
    }

    /*
    -----------------------------------------------------------------
    Engine description settings
    -----------------------------------------------------------------
    */

    #engine-description {
        display: flex;
        min-height: 50dvh;
        width: 100%;
        flex-direction: column;
    }

    .context-container {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .context-text {
        width: 100%;
        padding: 0 50px;
        margin-top: 60px;
    }

    .context-table {
        width: 90%;
        height: 250px;
        padding: 5px;
        margin-top: 50px;
        border: 3px solid #9b9bb6;
        box-shadow: 10px 10px 15px 2px #505080;
        margin-bottom: 50px;
    }

    /*
    -----------------------------------------------------------------
    How it works settings
    -----------------------------------------------------------------
    */

    #how-it-works {
        flex-direction: column;
    }

    .tab {
        width: 100px;
        padding: 10px;
    }

    .content-container {
        width: 95%;
    }

    .content.active {
        padding: 0 15px;
    }

    .content img {
        width: 90%;
        height: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .content p {
        margin-bottom: 25px;
    }

    .how-to-list {
        margin-left: 15px;
        padding-left: 15px;
        padding-right: 10px;
        line-height: 1.8    ;
    }

    .accordion-header {
        height: 50px;
    }

    .accordion-header img {
        width: 15px;
    }

    .accordion-content {
        padding: 0 20px;
        transition: max-height 0.6s ease-out, padding 0.6s ease-out;
    }
    
    .accordion-item.active .accordion-content {
        max-height: 400px; /* Adatta in base al contenuto */
        padding: 15px 10px;
    }

    /*
    -----------------------------------------------------------------
    Pricing settings
    -----------------------------------------------------------------
    */

    .digital-engine-pricing {
        padding: 20px;
        width: 90%;
        background-color: rgba(205, 205, 218, 0.2);
        backdrop-filter: blur(20px);
        box-shadow: 0 0 0 1px #cdcdda;
    }

    .digital-engine-pricing h1 {
        line-height: 1.3;
    }

    /*
    -----------------------------------------------------------------
    Footer settings
    -----------------------------------------------------------------
    */

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-general-info {
        width: 100%;
        padding: 20px;
    }

    .footer-social {
        width: 100%;
        align-items: flex-start;
        padding: 20px;
    }

    .footer-social img {
        width: 80px;
    }

    .social-img {
        display: flex;
        width: 80px;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .social-img img {
        width: 20px;
        height: auto;
        cursor: pointer;
    }

    .footer-policies {
        align-items: flex-start;
        padding: 20px;
    }
}