@font-face {
    font-family: 'ClashDisplay-Semibold';
    src: url('fonts/ClashDisplay/ClashDisplay-Semibold.woff2') format('woff2'),
        url('fonts/ClashDisplay/ClashDisplay-Semibold.woff') format('woff'),
        url('fonts/ClashDisplay/ClashDisplay-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

h1 {
    font-family: 'ClashDisplay-Semibold', sans-serif;
    font-size: 88px;
    font-weight: 600;
    color: #000020;
    line-height: 110%;
}

h2 {
    font-family: 'ClashDisplay-Semibold', sans-serif;
    font-size: 64px;
    font-weight: 600;
    color: #000020;
    line-height: 110%;
}

h3 {
    font-family: 'ClashDisplay-Semibold', sans-serif;
    font-size: 56px;
    font-weight: 600;
    color: #000020;
    line-height: 120%;
}

h4 {
    font-family: 'ClashDisplay-Semibold', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #000020;
    line-height: 120%;
}

h5 {
    font-family: 'ClashDisplay-Semibold', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 120%;
}

h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 140%;
    color: #3D3D4C;
}

p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    color: #3D3D4C;
}

.hero {
    padding: 80px 120px 120px 120px;
}

.btn-attiva-progetto {
    background-color: #000080;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    border-radius: 16px;
    margin-top: 22px;
    margin-right: 16px;
    padding: 12px 20px 12px 20px;
    border: none;
}

.btn-scopri {
    gap: 8px;
    background-color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000080;
    border-radius: 16px;
    margin-top: 22px;
    margin-right: 16px;
    padding: 12px;
    border: 1.5px solid #000080;
}

.btn-scopri img {
    margin-left: 8px;
    margin-bottom: 5px;
    width: 14px;
    height: 10px;
}

.e-logo {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    mask: url(immagini/e-bianco-nero.png) no-repeat center center;
    mask-size: 20%;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: mask-size 1s ease, mask-image 1s ease;
}

.e-logo.zoom {
    mask-size: 35%;
}

.e-logo.full {
    mask-size: 500%;
}

.img-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(242, 66, 6);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.espansione {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.e-logo.zoom .espansione {
    transform: scale(1.05);
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'ClashDisplay-Semibold', sans-serif;
    font-size: 88px;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 999;
    text-align: center;
    white-space: nowrap;
}

.overlay-text-p {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    pointer-events: none;
    z-index: 999;
    text-align: center;
}

.e-logo.full .overlay-text {
    opacity: 1;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10%;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.button-wrapper {
    position: relative;
}

.info-text {
    display: none;
    position: absolute;
    font-size: 14px;
    top: -25%;
    left: 10%;
}

.button-target {
    background-color: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000080;
    border-radius: 50px;
    margin-top: 12px;
    padding: 24px;
    border: none;
    position: relative;
}

.button-target.active {
    background-color: #C2EFFC;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000080;
    border-radius: 50px;
    margin-top: 12px;
    padding: 24px;
    border: none;
    position: relative;
}

.aziende.active .idea-sx {
    display: block;
}

.persone.active .idea-dx {
    display: block;
}

.idea-dx {
    display: none;
    position: absolute;
    top: -22%;
    right: -16%;
}

.idea-sx {
    display: none;
    position: absolute;
    top: -22%;
    right: 90%;
}

.content {
    position: relative;
    margin-top: 5%;
    margin-bottom: 5%;
}

.scroll-bar-container {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 97%;
    background-color: #ccc;
    z-index: 10;
    pointer-events: none;
}

.scroll-bar-fill {
    width: 100%;
    height: 0%;
    background-color: #F24206;
    transition: height 0.2s ease-out;
}

.div-progetti {
    display: flex;
    flex-direction: column;
}

.testo-aziende {
    padding-right: 10%;
}

.testo-persone {
    padding-left: 10%;
}

.container .section {
    display: none;
}

.container .active {
    display: block;
}

.button-target:not(.active) {
    background-color: transparent;
}

#btn1.active+.button-wrapper,
#btn2.active+.button-wrapper {
    display: block;
}

.testo-grigio {
    font-size: 14px;
    color: #6F6F82 !important;
}

.container-stats {
    margin: 5% 2% 2% 2%;
    background-color: #C83C0C;
    border-radius: 32px;
    padding: 80px 72px 80px 72px;
}

.h2-white {
    color: #FFFFFF !important;
    margin-right: 50px;
}

.stats-box {
    display: flex;
    flex-direction: row;
    margin-top: 7%;
}

.number-box {
    border-left: 3px solid #FFFFFF;
    padding-left: 10px;
}

.h5-small {
    width: 70%;
}

.card-progetti {
    background-color: #FAFAFC;
    padding-bottom: 5%;
}

.intro-progetti {
    display: flex;
    flex-direction: row;
    padding: 8% 10% 5% 10%;
    gap: 15%;
}

.titolo-progetti {
    width: 60%;
}

.titolo-progetti h6 {
    font-size: 14px;
    color: #F24206;
}

.paragrafo-progetti {
    display: flex;
    width: 50%;
    align-items: center;
}

.p-3 h5 {
    color: #13181C;
    padding-top: 3%;
}

.card-animata {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-animata.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-animata h5,
.card-animata p,
.card-animata button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.card-animata.visible h5,
.card-animata.visible p,
.card-animata.visible button {
    opacity: 1;
    transform: translateY(0);
}

.scopri-più {
    background-color: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000080;
    border: none;
    border-radius: 16px;
    margin-right: 16px;
    padding: 0;
}

.scopri-più img {
    margin-left: 8px;
    margin-bottom: 5px;
    width: 14px;
    height: 10px;
}

.container-attiva-progetto {
    margin-top: 4%;
    text-align: center;
}

.vantaggi {
    padding: 5% 0 5% 0;
}

.intro-vantaggi {
    text-align: center;
}

.intro-vantaggi h6 {
    font-size: 14px;
    color: #F24206;
    transform: translate(0%, 220%);
}

.intro-vantaggi p {
    display: inline-block;
    transform: translate(0%, -80%);
}

.icona-vantaggi img {
    display: inline-block;
    transform: translate(-48%, 7%);
}

.icona-vantaggi+h2 {
    transform: translate(0%, -70%);
}

.card-vantaggi {
    display: flex;
    flex-direction: row;
    padding: 5% 10% 0 10%;
    gap: 5%;
}

.card-vantaggi div {
    padding: 0 3% 0 3%;
    align-items: center;
}

.card-vantaggi h5 {
    color: #13181C;
    padding-top: 5%;
}

.card-vantaggi div:nth-child(2),
.card-vantaggi div:nth-child(3) {
    border-left: 1px solid #E8E8EE;
}

.come-lavoriamo {
    padding: 5% 5% 5% 5%;
    background-image: url("immagini/e-arancione.png");
    background-size: auto;
    background-position: left bottom;
    background-repeat: no-repeat;
}

.sezione-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.titoli-tab h4 {
    position: relative;
    padding-bottom: 1%;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.titoli-tab h4.attivo {
    opacity: 1;
    font-weight: bold;
}

.titoli-tab h6 {
    font-size: 14px;
    color: #F24206;
}

.progress-bar {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(to right, #F24206 25%, #DEDEE4 25%);
    ;
    transition: width 0.3s ease;
}

.attiviamo {
    background: linear-gradient(to right, #F24206 50%, #DEDEE4 50%);
}

.misuriamo {
    background: linear-gradient(to right, #F24206 75%, #DEDEE4 75%);
}

.tab-titolo.attivo .progress-bar {
    width: 100%;
}

.contenuto-tab {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contenuti-tab {
    margin-top: 20px;
}

.contenuti-tab h5 {
    color: #13181C;
}

.contenuti-tab button {
    background-color: #000080;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    border-radius: 16px;
    margin-right: 16px;
    padding: 12px;
    border: 1.5px solid #000080;
}

.testimonials {
    max-width: 100%;
    margin: 5% 0% 5% 10%;
}

.testimonials__eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    line-height: 140%;
    font-size: 14px;
    color: #F24206;
    text-transform: uppercase;
}

.testimonials__header {
    margin-bottom: 2rem;
}

.testimonials__heading-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.testimonials__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #0a0218;
}

.testimonials__nav {
    display: flex;
    gap: 0.75rem;
    transform: translateX(-80%);
}

.testimonials__button {
    background-color: #C2EFFC;
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    color: #000066;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials__button:hover:not(:disabled) {
    background-color: #b3e7ff;
}

.testimonials__button:disabled {
    background-color: transparent;
    color: #ccc;
    cursor: default;
}

.testimonials__cards {
    display: flex;
    gap: 1.5rem;
    overflow-x: scroll;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    padding-right: 1rem;
}

.testimonial-card {
    background-color: #f9f9fb;
    border-radius: 16px;
    padding: 2rem;
    min-width: 300px;
    flex: 0 0 40%;
    max-width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.testimonials__cards::-webkit-scrollbar {
    display: none;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.testimonial-author {
    font-size: 24px;
    color: #000020;
}

.testimonial-role {
    font-size: 16px;
    color: #6F6F82;
}

.container-cambiamento {
    display: flex;
    flex-direction: row;
    margin: 10% 10% 2% 10%;
    background-color: #C2EFFC;
    border-radius: 32px;
    padding: 80px 72px 80px 100px;
    z-index: 1;
    position: relative;
    overflow-x: hidden;
}

.container-cambiamento::after {
    position: absolute;
    inset: 0;
    content: "";
    background-image: url("immagini/e-azzurra.png");
    background-size: 32%;
    background-position: bottom right;
    background-repeat: no-repeat;
    opacity: 15%;
    z-index: -1;
}

.testo-cambiamento {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 3%;
}

.testo-cambiamento p {
    margin-top: 2%;
}

.testo-cambiamento button {
    background-color: #000080;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    border-radius: 16px;
    margin-top: 22px;
    border: none;
    width: 25%;
    padding: 16px;
}

.h2-blue {
    color: #000080;
}

.h2-blue+h2 {
    color: #000080;
    margin-top: -1%;
}

.sezione-faq {
    max-width: 70%;
    margin: 0 auto;
    padding: 5% 2%;
}

.intro-faq {
    text-align: center;
}

.intro-faq h6 {
    font-size: 14px;
    color: #F24206;
    transform: translate(0%, 220%);
}

.intro-faq img {
    display: inline-block;
    transform: translate(-30%, 5%);
}

.faq-item {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.3s ease;
}

.domanda-faq {
    background: none;
    border: none;
    font-family: 'ClashDisplay-Semibold', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    width: 100%;
    text-align: left;
    padding: 3% 0 3% 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.domanda-faq::after {
    content: "+";
    font-size: 24px;
    font-family: "Plus Jakarta Sans, sans-serif";
    font-weight: 600;
    color: #000080;
}

.faq-item.active .domanda-faq::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 16px;
}

.faq-answer p {
    padding-right: 5%;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 10px 0 20px;
}

.faq-bottom {
    margin-top: 60px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.faq-button {
    background-color: #000080;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    border-radius: 16px;
    margin-top: 5px;
    margin-bottom: 30px;
    border: none;
    padding: 16px;
}


@media (max-width: 768px) {

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        text-align: center;
        padding: 20% 0 15% 0;
    }

    .row.align-items-center {
        display: flex;
        flex-direction: column;
    }

    .img-hero {
        width: 80%;
        height: 80%;
        padding-top: 15%;
    }

    .espansione {
        height: auto;
    }

    .e-logo.full {
        mask-image: none;
    }

    .overlay-text {
        white-space: normal;
        top: 50%;
        left: 0;
        padding: 2%;
        transform: none;
        font-size: 2.5rem;
    }

    .overlay-text-p {
        position: absolute;
        top: 65%;
        left: 0%;
        transform: none;
        padding: 3%;
        font-size: 1.2rem;
    }

    .button-container {
        align-items: normal;
        margin-bottom: 15%;
    }

    .buttons {
        flex-direction: row;
        margin-top: 10%;
        margin-bottom: 10%;
        justify-content: center;
    }

    .text-start {
        text-align: center !important;
    }

    .testo-aziende {
        padding: 0 5% 0 5%;
    }

    .testo-persone {
        padding: 0 5% 0 5%;
    }

    .img-progetti {
        width: 100%;
    }

    .scroll-bar-container {
        display: none;
    }

    .container-stats {
        padding: 10% 15% 10% 15%;
    }

    .stats-box {
        flex-direction: column;
        gap: 4rem;
    }

    .intro-stats {
        margin-bottom: 5rem;
    }

    .h2-white {
        margin-right: 0;
    }

    .h5-small {
        width: 100%;
    }

    .intro-progetti {
        flex-direction: column;
    }

    .titolo-progetti,
    .paragrafo-progetti {
        width: 100%;
    }

    .g-lg-3 {
        flex-direction: column;
    }

    .card-animata {
        width: 100%;
    }

    .img-animata {
        width: 100%;
    }

    .intro-vantaggi {
        padding: 5%;
        margin-top: 5%;
    }

    .intro-vantaggi h6,
    .intro-vantaggi p {
        transform: translate(0%, 0%);
    }

    .icona-vantaggi {
        line-height: 20%;
        padding-top: 5%;
    }

    .icona-vantaggi img {
        width: 25%;
    }

    .card-vantaggi {
        flex-direction: column;
    }

    .card-vantaggi div:nth-child(2),
    .card-vantaggi div:nth-child(3) {
        border-left: none;
    }

    .container-immagine-tab {
        flex-direction: column;
    }

    #immagine-attiva {
        width: 100%;
        height: 100%;
        padding-bottom: 15%;
    }

    .titoli-tab {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .titoli-tab h4 {
        font-size: 2rem;
    }

    .contenuti-tab {
        margin-top: 30%;
    }

    .come-lavoriamo {
        position: relative;
        padding: 5%;
        z-index: 1;
        background: none;
        overflow: hidden;
    }

    .come-lavoriamo::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(immagini/e-arancione.png);
        background-size: 120%;
        background-position: left bottom;
        background-repeat: no-repeat;
        opacity: 0.3;
        z-index: -1;
        pointer-events: none;
    }

    .testimonials__header {
        margin-top: 20%;
    }

    .testimonials__title {
        font-size: 2rem;
    }

    .testimonials__nav {
        transform: translateX(0%);
    }

    .container-cambiamento {
        padding: 10%;
    }

    .testo-cambiamento button {
        width: 100%;
    }

    .h2-cambiamento {
        position: relative;
        margin-top: -5% !important;
    }

    .cambiamento img {
        position: absolute;
        top: -35%;
        right: -15%;
    }

    .img-crescita {
        display: none;
    }

    .intro-faq h6 {
        transform: translate(0%, 0%);
        margin-top: 10%;
    }

    .faq-item {
        padding-top: 5%;
        padding-bottom: 5%;
    }

    .domanda-faq {
        font-size: 1.3rem;
    }

}

@media (min-width: 769px) and (max-width: 1300px) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .row.align-items-center {
        flex-direction: column;
    }

    .img-hero {
        margin-top: 10%;
        width: 60%;
    }

    .scroll-bar-container {
        left: 100%;
    }

    .testo-cambiamento button {
        width: 50%;
    }
}