* {
    scroll-behavior: smooth;
}

/* ===================== LOGHI CLIENTI ===================== */
.details-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 0 50px;
    background-color: #ebe7e7;
}

.details-logos__label {
    font-size: 13px;
    letter-spacing: 1px;
    color: #878787;
    text-transform: uppercase;
}

.details-logos__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 800px) {
    .details-logos__track {
        gap: 12px;
    }
}

.details-logos .certImage {
    flex-shrink: 0;
    border-radius: 25px;
    border: 1px solid #28282a;
    transition: all .3s ease-in-out;
    padding: 10px;
}

.details-logos .certImage:hover {
    background-color: white;
    border: 1px solid #e41925;
}

.details-logos .certImage img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    filter: grayscale(1);
}

.details-logos .certImage:hover img {
    filter: grayscale(0);
}

#content {
    scroll-margin-top: 100px;
}



/* =====================================================
   HERO
   ===================================================== */
.colored {
    padding: 100px 0;
    width: 100%;
    height: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.background {
    background-color: #ebe7e7;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.headcontent {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

.colored .upper {
    padding: 10px;
    border-radius: 20px;
    border: none;
    background-color: #E41925;
    color: white;
    box-shadow: 1px 1px 8px #E41925;
    font-weight: 200;
    font-size: 14px;
    margin-bottom: 14px;
    max-width: 90%;
    text-align: center;
    word-break: break-word;
    width: max-content;
}

.hero-title {
    font-size: 48px;
    width: 100%;
    font-weight: 700;
    line-height: 1.1;
}

.headcontent .desc {
    font-size: 18px;
    margin: 20px 0 0 0;
    color: #3c3c3c;
}

.headcontent .info{
    display:flex;
    width:40%;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.headcontent img {
    width: 50%;
    border-radius: 25px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* circle position override — base in gmde_shared.css */
.circle-container {
    top: 200px;
}

/* =====================================================
   TOKENS PAGINA
   ===================================================== */
.preTitle {
    font-size: 18px;
    color: #E41925;
    text-transform: uppercase;
    align-self: flex-start;
}

/* =====================================================
   STORIE DI SUCCESSO — GRID LAYOUT (come solutions)
   ===================================================== */
.stories-section {
    background-color: var(--clr-bg);
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.stories-section__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    max-width: 700px;
}

.stories-section__header .preTitle {
    align-self: center;
}

.story-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.story-card {
    background-color: var(--clr-white);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--clr-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.story-card__market {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(228, 25, 37, 0.08);
    color: var(--clr-red);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.story-card__title {
    color: var(--clr-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.story-card__desc {
    color: rgba(40, 40, 42, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.story-card__kpis {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.story-card__kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.story-card__kpi-value {
    color: var(--clr-red);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.story-card__kpi-label {
    color: rgba(40, 40, 42, 0.5);
    font-size: 0.8rem;
}

.story-card__divider {
    border: none;
    border-top: 1px solid var(--clr-border);
    margin: 4px 0;
}

.story-card__quote {
    color: rgba(40, 40, 42, 0.7);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.65;
    margin: 0;
}

.story-cta {
    background: transparent;
    border: 1.5px solid var(--clr-dark);
    color: var(--clr-dark);
    padding: 18px 40px;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.story-cta:hover {
    background: var(--clr-dark);
    color: var(--clr-white);
}

/* =====================================================
   CONTAINER GENERICI
   ===================================================== */

.container {
    width: 80%;
    margin: 80px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.title-general {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

/* =====================================================
   PULL QUOTE (claim)
   ===================================================== */
.pull-quote-section {
    width: 80%;
    margin: 80px auto;
    border-left: 4px solid #E41925;
    padding-left: 40px;
}

.pull-quote {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.4;
    color: #28282a;
}

.pull-quote p {
    margin: 0;
}

/* =====================================================
   BENEFIT CARDS
   ===================================================== */
.solutions-container {
    width: 90%;
    margin: 0 auto 50px auto;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-solutions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
}

.cards-solutions .card {
    border: 1px solid #F5D0D2;
    border-radius: 25px;
    margin: 5px;
    flex: 0 0 calc((100% / 3) - 10px);
    padding: 20px;
    transition: all .3s ease-in-out;
}

.cards-solutions .card:hover {
    background-color: #E41925;
    color: white;
    transform: scale(1.02);
    cursor: pointer;
}

.cards-solutions .card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.cards-solutions .card p {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 0.9rem;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-container {
    align-items: flex-start;
}

.faqWrapper {
    display: flex;
    width: 100%;
    gap: 40px;
    align-items: flex-start;
}

.faqWrapperImage {
    width: 40%;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
}

.faqWrapperImage img {
    width: 100%;
    border-radius: 20px;
}

.faqs {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faq-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.faq-row h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.faq-toggle {
    all: unset;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E41925;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.faq-toggle i {
    transition: transform 0.3s ease-in-out;
}

.risposta {
    transition: grid-template-rows 0.3s ease-in-out;
    display: grid;
    grid-template-rows: 0fr;
    font-weight: 300;
}

.risposta div {
    overflow: hidden;
}

.active {
    grid-template-rows: 1fr;
}

.quickLine {
    width: 100%;
    border-bottom: 1px solid #E41925;
    margin: 10px 0;
}

/* case-card, card-news → gmde_shared.css */

/* =====================================================
   NUMERI
   ===================================================== */
.numeri {
    display: flex;
    padding: 30px 60px;
    background-color: #28282A;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.numeri-card {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-direction: column;
    flex: 1 1 150px;
}

.numeri-card .numeri-value {
    margin-bottom: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.numeri-card p {
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-top: 4px;
}

.numeri-cta {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: white;
}

.numeri-cta p {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 300;
}

/* =====================================================
   FUNCTIONS (wysiwyg)
   ===================================================== */
.functions img {
    max-width: 100%;
    border-radius: 16px;
}

/* =====================================================
   PROBLEMI CARDS
   ===================================================== */
.problemi-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.problemi-card {
    flex: 1 1 calc(50% - 6px);
    background-color: #fff;
    border: 1px solid #e8e4e4;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.problemi-card p{
    margin:0;
}

.problemi-card:hover {
    box-shadow: 0 6px 24px rgba(228, 25, 37, 0.12);
    transform: translateY(-2px);
}

.problemi-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0;
}

.responses .problemi-card img {
    filter: invert(18%) sepia(95%) saturate(4000%) hue-rotate(345deg) brightness(90%) contrast(110%);
}

.problemi-card p:first-of-type {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #28282a;
}

.responses .problemi-card {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.responses .problemi-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.responses .problemi-card p:first-of-type {
    color: #fff;
}

.responses .problemi-card p:last-of-type {
    color: rgba(255, 255, 255, 0.65);
}

.problemi-card p:last-of-type {
    font-size: 0.88rem;
    font-weight: 300;
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* =====================================================
   FUNCTIONS (wysiwyg)
   ===================================================== */
.responses img {
    max-width: 100%;
    border-radius: 16px;
}


.deck-wrapper {
    width: 50%;
    margin: 80px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.card-deck {
    position: relative;
    width: 100%;
    /* altezza impostata dal JS */
}

.deck-card {
    position: absolute;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 25px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.deck-card.animating {
    transition: transform 0.35s ease-in-out;
}

.deck-card.is-top {
    z-index: 2;
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.deck-card.is-bottom {
    z-index: 1;
    transform: translateY(12px) scale(0.97) rotate(-1.5deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.functions {
    background-color: #f9f7f7;
}

.responses {
    color: white;
    background-color: var(--clr-dark);
}

.deck-switch {
    position: relative;
    display: flex;
    background: var(--clr-dark);
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

.deck-switch__option {
    position: relative;
    z-index: 1;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.3s ease;
    pointer-events: none;
}

.deck-switch__option--left {
    color: white;
}

.deck-switch.is-right .deck-switch__option--left {
    color: rgba(255, 255, 255, 0.45);
}

.deck-switch.is-right .deck-switch__option--right {
    color: white;
}

.deck-switch__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: var(--clr-red);
    border-radius: 999px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.deck-switch.is-right .deck-switch__thumb {
    left: 50%;
}

/* =====================================================
   MOBILE (< 800px)
   ===================================================== */
@media screen and (max-width: 800px) {

    html, body {
        overflow-x: hidden;
    }

    /* ----- HERO ----- */
    .colored {
        padding-top: 80px;
    }

    .background {
        height: calc(100% - 50px);
    }

    .headcontent {
        flex-direction: column;
        align-items: flex-start;
        width: 90%;
        margin-top: 20px;
    }

    .headcontent .info {
        width: 100%;
    }

    .hero-title {
        width: 100%;
        font-size: clamp(28px, 9vw, 44px);
        line-height: 1.15;
    }

    .headcontent .desc {
        width: 100%;
        font-size: 16px;
        margin-top: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .headcontent img {
        width: 100%;
        margin: 30px 0 0 0;
    }

    /* ----- CONTAINER ----- */
    .container {
        width: 90%;
        margin-top: 60px;
    }

    .stories-section {
        padding: 60px 5%;
        gap: 32px;
    }

    .story-cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .title-general {
        font-size: clamp(28px, 8vw, 36px);
    }

    /* ----- PULL QUOTE ----- */
    .pull-quote-section {
        width: 85%;
        padding-left: 24px;
    }

    .pull-quote {
        font-size: 22px;
    }

    /* ----- BENEFIT CARDS ----- */
    .solutions-container {
        width: 92%;
    }

    .cards-solutions {
        flex-direction: column;
    }

    .cards-solutions .card {
        flex: 0 0 auto;
        width: 100%;
        margin: 5px 0;
    }

    /* ----- FAQ ----- */
    .faqWrapper {
        flex-direction: column;
    }

    .faqWrapperImage {
        width: 100%;
        position: static;
    }

    /* case-card, cards-news mobile → gmde_shared.css */

    /* ----- NUMERI ----- */
    .numeri {
        padding: 40px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .numeri-card {
        align-items: flex-start;
        flex: 0 0 auto;
    }

    .numeri-card .numeri-value {
        font-size: 2rem;
    }

    /* ----- SOLUTIONS (funzioni + usage affiancati) ----- */
    .deck-wrapper {
        width: 92%;
        margin-top: 40px;
    }

    .deck-card {
        padding: 20px 16px;
    }

    /* ----- PROBLEMI CARDS ----- */
    .problemi-card {
        flex: 1 1 100%;
    }

    /* ----- CIRCLE decorativo ----- */
    .circle-container {
        display: none;
    }
}
