/*
 * Palette personalizzata
 * Logo: #000c14
 * Sfondo principale: #ffffff
 */

:root {
    /* Colori principali Bootstrap */
    --bs-primary: #0b5e75;
    --bs-primary-rgb: 11, 94, 117;

    --bs-secondary: #536b75;
    --bs-secondary-rgb: 83, 107, 117;

    --bs-success: #17806d;
    --bs-success-rgb: 23, 128, 109;

    --bs-info: #2d7da3;
    --bs-info-rgb: 45, 125, 163;

    --bs-warning: #d69e2e;
    --bs-warning-rgb: 214, 158, 46;

    --bs-danger: #c94c4c;
    --bs-danger-rgb: 201, 76, 76;

    --bs-light: #f4f7f8;
    --bs-light-rgb: 244, 247, 248;

    --bs-dark: #000c14;
    --bs-dark-rgb: 0, 12, 20;

    /* Colori generali della pagina */
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 255, 255, 255;

    --bs-body-color: #14232b;
    --bs-body-color-rgb: 20, 35, 43;

    --bs-secondary-color: #5e7078;
    --bs-secondary-color-rgb: 94, 112, 120;

    --bs-border-color: #d8e1e5;
    --bs-border-color-translucent: rgba(0, 12, 20, 0.15);

    /* Sfondi secondari */
    --bs-secondary-bg: #f4f7f8;
    --bs-secondary-bg-rgb: 244, 247, 248;

    --bs-tertiary-bg: #f8fafb;
    --bs-tertiary-bg-rgb: 248, 250, 251;

    /* Link */
    --bs-link-color: #0b5e75;
    --bs-link-color-rgb: 11, 94, 117;

    --bs-link-hover-color: #08485a;
    --bs-link-hover-color-rgb: 8, 72, 90;

    /* Evidenziazione del testo */
    --bs-highlight-bg: #fff0c7;
}

/* Corpo della pagina */
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* Link */
a {
    color: var(--bs-link-color);
}

a:hover {
    color: var(--bs-link-hover-color);
}

/*
 * Pulsante primary
 */
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #0b5e75;
    --bs-btn-border-color: #0b5e75;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #08485a;
    --bs-btn-hover-border-color: #08485a;

    --bs-btn-focus-shadow-rgb: 11, 94, 117;

    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #063b4a;
    --bs-btn-active-border-color: #063b4a;

    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #0b5e75;
    --bs-btn-disabled-border-color: #0b5e75;
}

/*
 * Pulsante secondary
 */
.btn-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #536b75;
    --bs-btn-border-color: #536b75;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #40545d;
    --bs-btn-hover-border-color: #40545d;

    --bs-btn-focus-shadow-rgb: 83, 107, 117;

    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #34464e;
    --bs-btn-active-border-color: #34464e;
}

/*
 * Pulsante success
 */
.btn-success {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #17806d;
    --bs-btn-border-color: #17806d;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #116252;
    --bs-btn-hover-border-color: #116252;

    --bs-btn-focus-shadow-rgb: 23, 128, 109;
}

/*
 * Pulsante info
 */
.btn-info {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #2d7da3;
    --bs-btn-border-color: #2d7da3;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #246684;
    --bs-btn-hover-border-color: #246684;

    --bs-btn-focus-shadow-rgb: 45, 125, 163;
}

/*
 * Pulsante warning
 */
.btn-warning {
    --bs-btn-color: #000c14;
    --bs-btn-bg: #d69e2e;
    --bs-btn-border-color: #d69e2e;

    --bs-btn-hover-color: #000c14;
    --bs-btn-hover-bg: #b9821f;
    --bs-btn-hover-border-color: #b9821f;

    --bs-btn-focus-shadow-rgb: 214, 158, 46;
}

/*
 * Pulsante danger
 */
.btn-danger {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #c94c4c;
    --bs-btn-border-color: #c94c4c;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #a93e3e;
    --bs-btn-hover-border-color: #a93e3e;

    --bs-btn-focus-shadow-rgb: 201, 76, 76;
}

/*
 * Pulsante outline primary
 */
.btn-outline-primary {
    --bs-btn-color: #0b5e75;
    --bs-btn-border-color: #0b5e75;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #0b5e75;
    --bs-btn-hover-border-color: #0b5e75;

    --bs-btn-focus-shadow-rgb: 11, 94, 117;

    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #08485a;
    --bs-btn-active-border-color: #08485a;
}

/*
 * Campi dei form
 */
.form-control,
.form-select {
    border-color: #d8e1e5;
}

.form-control:focus,
.form-select:focus {
    border-color: #0b5e75;
    box-shadow: 0 0 0 0.25rem rgba(11, 94, 117, 0.2);
}

/*
 * Checkbox e radio button
 */
.form-check-input:checked {
    background-color: #0b5e75;
    border-color: #0b5e75;
}

.form-check-input:focus {
    border-color: #0b5e75;
    box-shadow: 0 0 0 0.25rem rgba(11, 94, 117, 0.2);
}

/*
 * Barre di navigazione e componenti scuri
 */
.navbar-dark,
.bg-dark {
    background-color: #000c14 !important;
}

/*
 * Dropdown
 */
.dropdown-item:active,
.dropdown-item.active {
    color: #ffffff;
    background-color: #0b5e75;
}

/*
 * Paginazione
 */
.pagination {
    --bs-pagination-color: #0b5e75;
    --bs-pagination-hover-color: #08485a;
    --bs-pagination-focus-color: #08485a;

    --bs-pagination-active-color: #ffffff;
    --bs-pagination-active-bg: #0b5e75;
    --bs-pagination-active-border-color: #0b5e75;

    --bs-pagination-focus-box-shadow:
        0 0 0 0.25rem rgba(11, 94, 117, 0.2);
}

/*
 * Barra di avanzamento
 */
.progress {
    --bs-progress-bar-bg: #0b5e75;
}

/*
 * Selezione del testo
 */
::selection {
    color: #ffffff;
    background-color: #0b5e75;
}

/*
 * Tipografia generale
 */
body {
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}


/*
 * Hero section
 */
.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

.hero-content {
    width: 100%;
    padding: 4rem 0;
}


/*
 * Logo
 */
.hero-logo {
    display: block;
    width: min(300px, 55vw);
    height: auto;
    margin: 0 auto 2rem;
}


/*
 * Titolo principale
 */
.hero-title {
    margin: 0;
    color: var(--bs-dark);
    font-size: clamp(1.35rem, 3.2vw, 2.75rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.025em;
    white-space: nowrap;
}


/*
 * Parole evidenziate
 */
.hero-highlight {
    color: var(--bs-primary);
    font-weight: 800;
}


/*
 * Dispositivi mobili
 */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-content {
        padding: 2.5rem 0;
    }

    .hero-logo {
        width: min(220px, 58vw);
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
        letter-spacing: -0.02em;
    }
}

/*
 * Sottotitolo della hero
 */
 .hero-subtitle {
     max-width: 850px;
     margin: 1.5rem auto 0;
     color: var(--bs-secondary-color);
     font-size: clamp(1.15rem, 1.8vw, 1.4rem);
     font-weight: 400;
     line-height: 1.7;
     letter-spacing: -0.01em;
 }


/*
 * Parole chiave del sottotitolo
 */
.hero-feature {
    color: var(--bs-primary);
    font-weight: 700;
}


/*
 * Dispositivi mobili
 */
 @media (max-width: 575.98px) {
     .hero-subtitle {
         max-width: 95%;
         margin-top: 1.25rem;
         font-size: 1.05rem;
         line-height: 1.65;
     }
 }

 /*
  * Pulsanti della hero
  */
 .hero-actions {
     position: relative;
     z-index: 3;

     display: flex;
     justify-content: center;
     align-items: center;
     gap: 1rem;
     margin-top: 2rem;
 }

 .hero-btn {
     min-width: 200px;
     padding: 0.95rem 1.65rem;
     border-radius: 0.7rem;
     font-size: 1rem;
     font-weight: 700;
     transition:
         transform 0.2s ease,
         box-shadow 0.2s ease,
         background-color 0.2s ease,
         border-color 0.2s ease;
 }

 .hero-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 0.5rem 1.25rem rgba(0, 12, 20, 0.12);
 }

 @media (max-width: 575.98px) {
     .hero-actions {
         gap: 0.65rem;
         margin-top: 1.75rem;
     }

     .hero-btn {
         min-width: 0;
         flex: 1;
         max-width: 180px;
         padding: 0.75rem 0.65rem;
         font-size: 0.88rem;
     }
 }

 /*
 * Abbellimenti grafici della Hero
 */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 32%,
            rgba(var(--bs-primary-rgb), 0.10) 0,
            rgba(var(--bs-primary-rgb), 0.035) 28%,
            transparent 58%
        ),
        #ffffff;
}


/*
 * Griglia geometrica molto leggera
 */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(11, 94, 117, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(11, 94, 117, 0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            rgba(0, 0, 0, 0.65) 25%,
            rgba(0, 0, 0, 0.45) 75%,
            transparent
        );
}


/*
 * Forma decorativa sfocata
 */
.hero-section::after {
    content: "";
    position: absolute;
    width: 26rem;
    height: 26rem;
    right: -10rem;
    bottom: -13rem;
    z-index: -1;
    pointer-events: none;

    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.10);
    filter: blur(75px);
}


/*
 * Contenuto sopra gli elementi decorativi
 */
.hero-content {
    position: relative;
    z-index: 1;
}


/*
 * Alone leggero dietro il logo
 */
.hero-logo {
    position: relative;
    filter: drop-shadow(
        0 0.8rem 1.5rem rgba(0, 12, 20, 0.07)
    );

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.hero-logo:hover {
    transform: translateY(-3px);
    filter: drop-shadow(
        0 1rem 1.8rem rgba(0, 12, 20, 0.11)
    );
}


/*
 * Migliore separazione visiva del titolo
 */
.hero-title {
    text-shadow:
        0 0.08rem 0.3rem rgba(0, 12, 20, 0.035);
}


/*
 * Pulsanti più raffinati
 */
.hero-btn {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0.35rem 0.9rem rgba(0, 12, 20, 0.07);
}

.hero-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -120%;
    width: 60%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );

    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.hero-btn:hover::before {
    left: 150%;
}

.hero-btn:active {
    transform: translateY(0);
    box-shadow:
        0 0.2rem 0.5rem rgba(0, 12, 20, 0.09);
}


/*
 * Ombra più evidente sul pulsante principale
 */
.hero-actions .btn-outline-primary {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0.5rem 1.1rem rgba(0, 12, 20, 0.09);
}

.hero-actions .btn-outline-primary:hover {
    color: #ffffff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);

    box-shadow:
        0 0.7rem 1.4rem rgba(var(--bs-primary-rgb), 0.18);
}

.hero-actions .btn-primary {
    box-shadow:
        0 0.7rem 1.6rem rgba(var(--bs-primary-rgb), 0.28),
        0 0 0 0.3rem rgba(var(--bs-primary-rgb), 0.06);
}

.hero-actions .btn-primary:hover {
    box-shadow:
        0 0.9rem 1.9rem rgba(var(--bs-primary-rgb), 0.34),
        0 0 0 0.38rem rgba(var(--bs-primary-rgb), 0.08);
}


/*
 * Comparsa morbida della Hero
 */
.hero-logo,
.hero-title,
.hero-subtitle,
.hero-actions {
    opacity: 0;
    animation: hero-reveal 0.75s ease forwards;
}

.hero-logo {
    animation-delay: 0.05s;
}

.hero-title {
    animation-delay: 0.15s;
}

.hero-subtitle {
    animation-delay: 0.25s;
}

.hero-actions {
    animation-delay: 0.35s;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
 * Rispetto delle preferenze di accessibilità
 */
@media (prefers-reduced-motion: reduce) {
    .hero-logo,
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .hero-logo,
    .hero-btn,
    .hero-btn::before {
        transition: none;
    }
}


/*
 * Riduzione degli elementi decorativi su mobile
 */
@media (max-width: 575.98px) {
    .hero-section::before {
        background-size: 38px 38px;
        opacity: 0.65;
    }

    .hero-section::after {
        width: 17rem;
        height: 17rem;
        right: -9rem;
        bottom: -8rem;
        filter: blur(60px);
    }

    .hero-logo:hover {
        transform: none;
    }
}

@media (max-width: 420px) {
    .hero-title {
        white-space: normal;
    }
}

/*
 * Indicatori principali
 */
.hero-stats {
    width: 100%;
    max-width: 1050px;
    margin: 3.25rem auto 0;

    opacity: 0.82;
    transition: opacity 0.25s ease;
}

.hero-stats:hover {
    opacity: 1;
}


/*
 * Singola scheda statistica
 */
.stat-card {
    position: relative;
    height: 100%;
    min-height: 118px;
    padding: 1.05rem 0.8rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 0.9rem;

    box-shadow:
        0 0.35rem 1rem rgba(0, 12, 20, 0.04);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/*
 * Alone decorativo
 */
.stat-card::after {
    content: "";
    position: absolute;
    top: -3rem;
    right: -3rem;

    width: 7rem;
    height: 7rem;

    background-color: rgba(var(--bs-primary-rgb), 0.045);
    border-radius: 50%;
    filter: blur(15px);

    pointer-events: none;
}


.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--bs-primary-rgb), 0.16);

    box-shadow:
        0 0.55rem 1.25rem rgba(0, 12, 20, 0.07);
}

/*
 * Valore percentuale
 */
.stat-value {
    position: relative;
    z-index: 1;

    color: rgba(var(--bs-primary-rgb), 0.82);
    font-size: clamp(1.55rem, 2.35vw, 2rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.035em;
}


/*
 * Descrizione del valore
 */
.stat-label {
    position: relative;
    z-index: 1;

    margin: 0.65rem 0 0;

    color: rgba(var(--bs-body-color-rgb), 0.68);
    font-size: 0.82rem;
    font-weight: 550;
    line-height: 1.4;
    text-align: center;
}


/*
 * Comparsa delle schede
 */
.stat-card {
    opacity: 0;
    transform: translateY(18px);
}

.hero-stats.is-visible .stat-card {
    animation: stat-card-reveal 0.6s ease forwards;
}

.hero-stats.is-visible .col-6:nth-child(1) .stat-card {
    animation-delay: 0.05s;
}

.hero-stats.is-visible .col-6:nth-child(2) .stat-card {
    animation-delay: 0.13s;
}

.hero-stats.is-visible .col-6:nth-child(3) .stat-card {
    animation-delay: 0.21s;
}

.hero-stats.is-visible .col-6:nth-child(4) .stat-card {
    animation-delay: 0.29s;
}

@keyframes stat-card-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
 * Ottimizzazione per smartphone
 */
@media (max-width: 575.98px) {
    .hero-stats {
        margin-top: 2.5rem;
        opacity: 0.9;
    }

    .stat-card {
        min-height: 108px;
        padding: 0.9rem 0.6rem;
        border-radius: 0.8rem;
    }

    .stat-value {
        font-size: 1.55rem;
    }

    .stat-label {
        margin-top: 0.5rem;
        font-size: 0.74rem;
    }
}


/*
 * Utenti che preferiscono animazioni ridotte
 */
@media (prefers-reduced-motion: reduce) {
    .stat-card {
        opacity: 1;
        transform: none;
        animation: none !important;
        transition: none;
    }
}


/*
 * Sezione GRM in azione
 */
.grm-action-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(var(--bs-primary-rgb), 0.08),
            transparent 55%
        ),
        var(--bs-light);
}

.grm-action-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(var(--bs-primary-rgb), 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(var(--bs-primary-rgb), 0.025) 1px,
            transparent 1px
        );

    background-size: 48px 48px;
}


/*
 * Pannello principale
 */
.grm-panel {
    position: relative;
    z-index: 1;

    padding: clamp(1.5rem, 4vw, 3rem);

    background-color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.17);
    border-radius: 1.5rem;

    box-shadow:
        0 1.25rem 3rem rgba(0, 12, 20, 0.09);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    transform: translateY(18px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        box-shadow 0.25s ease;
}

.grm-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.grm-panel:hover {
    box-shadow:
        0 1.5rem 3.5rem rgba(0, 12, 20, 0.12);
}


/*
 * Riepiloghi stock
 */
.grm-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1.15rem 1.35rem;

    border-radius: 1rem;
}

.grm-summary-current {
    background-color: rgba(var(--bs-danger-rgb), 0.07);
    border: 1px solid rgba(var(--bs-danger-rgb), 0.13);
}

.grm-summary-optimized {
    background-color: rgba(var(--bs-primary-rgb), 0.07);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.13);
}

.grm-summary-label {
    color: var(--bs-body-color);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 650;
}

.grm-amount {
    flex-shrink: 0;

    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.grm-amount-current {
    color: var(--bs-danger);
}

.grm-amount-optimized {
    color: var(--bs-primary);
}


/*
 * Flusso di elaborazione
 */
.grm-flow {
    display: grid;
    grid-template-columns:
        minmax(120px, 1fr)
        auto
        minmax(120px, 1fr)
        auto
        minmax(120px, 1fr);

    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);

    margin: clamp(1.75rem, 4vw, 3rem) 0;
    padding: clamp(1.25rem, 3vw, 2rem);

    background-color: rgba(var(--bs-tertiary-bg-rgb), 0.78);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.09);
    border-radius: 1.25rem;
}

.grm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;

    min-width: 0;
    text-align: center;
}

.grm-step-icon {
    width: clamp(3.7rem, 7vw, 5rem);
    aspect-ratio: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 1.1rem;
    font-size: clamp(1.7rem, 4vw, 2.5rem);

    box-shadow:
        0 0.55rem 1.25rem rgba(0, 12, 20, 0.07);
}

.grm-step-icon-input {
    color: var(--bs-danger);
    background-color: rgba(var(--bs-danger-rgb), 0.10);
}

.grm-step-icon-process {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.11);
}

.grm-step-icon-output {
    color: var(--bs-success);
    background-color: rgba(var(--bs-success-rgb), 0.11);
}

.grm-step-label {
    color: var(--bs-body-color);
    font-size: 0.95rem;
    font-weight: 650;
}

.grm-arrow {
    color: rgba(var(--bs-primary-rgb), 0.66);
    font-size: clamp(1.4rem, 3vw, 2rem);
}


/*
 * Capitale liberato
 */
.grm-result {
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
    padding-top: clamp(1.5rem, 3vw, 2.25rem);

    border-top: 1px solid rgba(var(--bs-primary-rgb), 0.13);
}

.grm-result-value {
    display: block;

    color: var(--bs-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.grm-result-text {
    margin-top: 0.65rem;

    color: var(--bs-secondary-color);
    font-size: clamp(0.95rem, 1.7vw, 1.15rem);
}


/*
 * Tablet e smartphone
 */
@media (max-width: 767.98px) {
    .grm-flow {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .grm-arrow {
        transform: rotate(90deg);
    }

    .grm-step {
        width: 100%;
    }

    .grm-summary {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .grm-panel {
        padding: 1.1rem;
        border-radius: 1.15rem;
    }

    .grm-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;

        border-radius: 0.85rem;
    }

    .grm-amount {
        font-size: 1.8rem;
    }

    .grm-flow {
        margin: 1.35rem 0;
        padding: 1.1rem;
        border-radius: 1rem;
    }

    .grm-step-icon {
        width: 4rem;
        font-size: 1.9rem;
    }

    .grm-result-value {
        font-size: 2.3rem;
    }
}


/*
 * Accessibilità: animazioni ridotte
 */
@media (prefers-reduced-motion: reduce) {
    .grm-panel {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/*
 * Animazioni progressive dello specchietto GRM
 */
.grm-panel.is-visible .grm-summary-current {
    animation: grm-item-reveal 0.55s ease 0.15s both;
}

.grm-panel.is-visible .grm-flow {
    animation: grm-item-reveal 0.6s ease 0.35s both;
}

.grm-panel.is-visible .grm-summary-optimized {
    animation:
        grm-item-reveal 0.55s ease 1.15s both,
        grm-optimized-glow 1.1s ease 1.55s both;
}

.grm-panel.is-visible .grm-result {
    animation: grm-item-reveal 0.6s ease 1.4s both;
}


/*
 * Entrata sequenziale dei tre passaggi
 */
.grm-panel.is-visible .grm-flow > .grm-step:nth-of-type(1) {
    animation: grm-step-reveal 0.45s ease 0.55s both;
}

.grm-panel.is-visible .grm-flow > .grm-step:nth-of-type(2) {
    animation: grm-step-reveal 0.45s ease 0.85s both;
}

.grm-panel.is-visible .grm-flow > .grm-step:nth-of-type(3) {
    animation: grm-step-reveal 0.45s ease 1.15s both;
}


/*
 * Frecce animate da sinistra verso destra
 */
.grm-panel.is-visible .grm-flow > .grm-arrow:nth-of-type(1) {
    animation:
        grm-arrow-reveal 0.45s ease 0.72s both,
        grm-arrow-pulse 1.6s ease-in-out 1.3s infinite;
}

.grm-panel.is-visible .grm-flow > .grm-arrow:nth-of-type(2) {
    animation:
        grm-arrow-reveal 0.45s ease 1.02s both,
        grm-arrow-pulse 1.6s ease-in-out 1.6s infinite;
}


/*
 * Movimento leggero delle icone
 */
.grm-panel.is-visible .grm-step-icon-input {
    animation: grm-icon-float 2.8s ease-in-out 1.2s infinite;
}

.grm-panel.is-visible .grm-step-icon-process {
    animation: grm-process-pulse 2.2s ease-in-out 1.1s infinite;
}

.grm-panel.is-visible .grm-step-icon-process .bi-gears {
    display: inline-block;
    animation: grm-gears-turn 5s linear 1.1s infinite;
}

.grm-panel.is-visible .grm-step-icon-output {
    animation:
        grm-output-pop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.35) 1.18s both,
        grm-success-pulse 2.6s ease-in-out 1.9s infinite;
}


/*
 * Evidenziazione del risultato finale
 */
.grm-panel.is-visible .grm-result-value {
    animation: grm-result-emphasis 0.8s ease 1.65s both;
}


/*
 * Keyframes GRM
 */
@keyframes grm-item-reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes grm-step-reveal {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes grm-arrow-reveal {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes grm-arrow-pulse {
    0%,
    100% {
        opacity: 0.52;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

@keyframes grm-icon-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes grm-process-pulse {
    0%,
    100% {
        box-shadow:
            0 0.55rem 1.25rem rgba(0, 12, 20, 0.07),
            0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }

    50% {
        box-shadow:
            0 0.7rem 1.5rem rgba(0, 12, 20, 0.09),
            0 0 0 0.45rem rgba(var(--bs-primary-rgb), 0.07);
    }
}

@keyframes grm-gears-turn {
    to {
        transform: rotate(360deg);
    }
}

@keyframes grm-output-pop {
    from {
        opacity: 0;
        transform: scale(0.72);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes grm-success-pulse {
    0%,
    100% {
        box-shadow:
            0 0.55rem 1.25rem rgba(0, 12, 20, 0.07),
            0 0 0 0 rgba(var(--bs-success-rgb), 0);
    }

    50% {
        box-shadow:
            0 0.7rem 1.5rem rgba(0, 12, 20, 0.09),
            0 0 0 0.45rem rgba(var(--bs-success-rgb), 0.07);
    }
}

@keyframes grm-optimized-glow {
    0% {
        box-shadow: 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }

    50% {
        box-shadow: 0 0 1.5rem rgba(var(--bs-primary-rgb), 0.16);
    }

    100% {
        box-shadow: 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

@keyframes grm-result-emphasis {
    0% {
        opacity: 0;
        transform: scale(0.92);
        text-shadow: none;
    }

    60% {
        opacity: 1;
        transform: scale(1.04);
        text-shadow:
            0 0.5rem 1.4rem rgba(var(--bs-primary-rgb), 0.22);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow:
            0 0.35rem 1rem rgba(var(--bs-primary-rgb), 0.12);
    }
}


/*
 * Correzione delle frecce su tablet e smartphone
 */
@media (max-width: 767.98px) {
    @keyframes grm-arrow-reveal {
        from {
            opacity: 0;
            transform: rotate(90deg) translateX(-8px);
        }

        to {
            opacity: 1;
            transform: rotate(90deg) translateX(0);
        }
    }

    @keyframes grm-arrow-pulse {
        0%,
        100% {
            opacity: 0.52;
            transform: rotate(90deg) translateX(0);
        }

        50% {
            opacity: 1;
            transform: rotate(90deg) translateX(5px);
        }
    }
}


/*
 * Accessibilità: disattiva tutte le animazioni aggiuntive
 */
@media (prefers-reduced-motion: reduce) {
    .grm-panel.is-visible .grm-summary-current,
    .grm-panel.is-visible .grm-flow,
    .grm-panel.is-visible .grm-summary-optimized,
    .grm-panel.is-visible .grm-result,
    .grm-panel.is-visible .grm-step,
    .grm-panel.is-visible .grm-arrow,
    .grm-panel.is-visible .grm-step-icon,
    .grm-panel.is-visible .grm-step-icon .bi,
    .grm-panel.is-visible .grm-result-value {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}


/*
 * Sezione consulenza gratuita
 */
.consultation-section {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(var(--bs-primary-rgb), 0.09),
            transparent 58%
        ),
        var(--bs-light);
}

.consultation-section::before,
.consultation-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(70px);
}

.consultation-section::before {
    width: 20rem;
    height: 20rem;
    top: -9rem;
    left: -8rem;
    background-color: rgba(var(--bs-primary-rgb), 0.10);
}

.consultation-section::after {
    width: 18rem;
    height: 18rem;
    right: -7rem;
    bottom: -8rem;
    background-color: rgba(var(--bs-info-rgb), 0.08);
}


/*
 * Riquadro evidenziato
 */
.consultation-card {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;

    padding: clamp(1.5rem, 4vw, 3rem);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(var(--bs-primary-rgb), 0.055)
        );

    border: 1px solid rgba(var(--bs-primary-rgb), 0.22);
    border-radius: 1.5rem;

    box-shadow:
        0 1.35rem 3.5rem rgba(0, 12, 20, 0.11),
        0 0 0 0.35rem rgba(var(--bs-primary-rgb), 0.035);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.consultation-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 1.7rem 4rem rgba(0, 12, 20, 0.14),
        0 0 0 0.45rem rgba(var(--bs-primary-rgb), 0.055);
}

.consultation-card::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 18rem;
    height: 18rem;
    top: -10rem;
    right: -7rem;

    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    filter: blur(30px);
}

.consultation-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(var(--bs-primary-rgb), 0.028) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(var(--bs-primary-rgb), 0.028) 1px,
            transparent 1px
        );

    background-size: 34px 34px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.75),
            transparent 85%
        );
}

.consultation-card-content {
    position: relative;
    z-index: 1;
}


/*
 * Titolo del riquadro
 */
.consultation-card-title {
    margin: 0;

    color: var(--bs-dark);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.consultation-card-title strong {
    color: var(--bs-primary);
    font-weight: 800;
}


/*
 * Elenco dei vantaggi
 */
.consultation-list {
    width: min(100%, 640px);
    margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;

    list-style: none;
}

.consultation-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;

    padding: 1rem;

    color: var(--bs-body-color);
    background-color: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(var(--bs-primary-rgb), 0.10);
    border-radius: 0.9rem;

    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.45;

    box-shadow:
        0 0.35rem 0.9rem rgba(0, 12, 20, 0.045);
}

.consultation-list i {
    flex: 0 0 auto;

    color: var(--bs-success);
    font-size: 1.25rem;
    line-height: 1.2;
}


/*
 * Pulsante principale della consulenza
 */
.consultation-cta {
    min-width: min(100%, 320px);
    padding: 0.95rem 1.6rem;

    border-radius: 0.75rem;

    font-size: 1rem;
    font-weight: 750;

    box-shadow:
        0 0.8rem 1.8rem rgba(var(--bs-primary-rgb), 0.28),
        0 0 0 0.3rem rgba(var(--bs-primary-rgb), 0.06);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
}

.consultation-cta:hover {
    transform: translateY(-3px);

    box-shadow:
        0 1rem 2.1rem rgba(var(--bs-primary-rgb), 0.34),
        0 0 0 0.38rem rgba(var(--bs-primary-rgb), 0.08);
}


/*
 * Animazione di ingresso
 */
.consultation-card {
    opacity: 0;
    transform: translateY(18px);
    animation: consultation-reveal 0.75s ease forwards;
    animation-timeline: view();
    animation-range: entry 15% cover 35%;
}

@keyframes consultation-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
 * Tablet e smartphone
 */
@media (max-width: 767.98px) {
    .consultation-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .consultation-card {
        padding: 1.25rem;
        border-radius: 1.15rem;
    }

    .consultation-list {
        margin-top: 1.5rem;
    }

    .consultation-list li {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .consultation-cta {
        width: 100%;
        min-width: 0;
        padding-inline: 1rem;
        font-size: 0.92rem;
    }
}


/*
 * Accessibilità
 */
@media (prefers-reduced-motion: reduce) {
    .consultation-card {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .consultation-cta {
        transition: none;
    }
}


/*
 * Sezione contatti
 */
.contacts-section {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(var(--bs-primary-rgb), 0.07),
            transparent 52%
        ),
        #ffffff;
}

.contacts-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(var(--bs-primary-rgb), 0.022) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(var(--bs-primary-rgb), 0.022) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.4),
            transparent 80%
        );
}


/*
 * Schede contatto
 */
.contact-card {
    position: relative;
    z-index: 1;

    height: 100%;
    min-height: 240px;
    padding: 1.75rem 1.35rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    text-align: center;

    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.16);
    border-radius: 1.15rem;

    box-shadow:
        0 0.65rem 1.65rem rgba(0, 12, 20, 0.07);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bs-primary-rgb), 0.3);

    box-shadow:
        0 0.95rem 2rem rgba(0, 12, 20, 0.11);
}


/*
 * Icone
 */
.contact-icon {
    width: 4.25rem;
    aspect-ratio: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 1.25rem;

    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);

    border-radius: 50%;

    font-size: 1.8rem;

    box-shadow:
        0 0.45rem 1.1rem rgba(0, 12, 20, 0.06);
}


/*
 * Testi
 */
.contact-title {
    margin: 0 0 0.95rem;

    color: var(--bs-dark);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.35;
}

.contact-main {
    margin: 0 0 0.55rem;

    color: var(--bs-body-color);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
}

.contact-note,
.contact-support-text {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.55;
}

.contact-card a {
    color: inherit;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}


/*
 * Scheda supporto evidenziata
 */
.contact-card-support {
    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--bs-primary),
            #08485a
        );

    border-color: rgba(255, 255, 255, 0.18);

    box-shadow:
        0 0.9rem 2.2rem rgba(var(--bs-primary-rgb), 0.24);
}

.contact-card-support:hover {
    border-color: rgba(255, 255, 255, 0.3);

    box-shadow:
        0 1.2rem 2.6rem rgba(var(--bs-primary-rgb), 0.31);
}

.contact-card-support .contact-title,
.contact-card-support .contact-support-text,
.contact-card-support a {
    color: #ffffff;
}

.contact-card-support a {
    font-weight: 750;
}

.contact-card-support a:hover {
    color: #ffffff;
}

.contact-icon-support {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);

    box-shadow:
        0 0.5rem 1.2rem rgba(0, 12, 20, 0.15);
}


/*
 * Riferimenti ufficiali
 */
.company-details {
    position: relative;
    z-index: 1;

    margin-top: 2.5rem;
    padding-top: 1.5rem;

    border-top: 1px solid rgba(var(--bs-primary-rgb), 0.15);

    text-align: center;
}

.company-details address {
    color: var(--bs-secondary-color);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.6;
}


/*
 * Responsive
 */
@media (max-width: 575.98px) {
    .contact-card {
        min-height: 215px;
        padding: 1.45rem 1rem;
        border-radius: 1rem;
    }

    .contact-icon {
        width: 3.8rem;
        font-size: 1.6rem;
    }

    .company-details {
        margin-top: 2rem;
        padding-top: 1.25rem;
    }

    .company-details address {
        font-size: 0.8rem;
    }
}


/*
 * Accessibilità
 */
@media (prefers-reduced-motion: reduce) {
    .contact-card {
        transition: none;
    }
}


/* ==================================================================
 * Esperienza full-page e rifinitura aziendale
 * ================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}


/*
 * Titoli di sezione più uniformi
 */
.snap-section .display-6 {
    color: var(--bs-dark);
    letter-spacing: -0.035em;
}

.snap-section .lead {
    max-width: 900px;
    margin-inline: auto;
    line-height: 1.7;
}


/*
 * Restyling uniforme delle schede Bootstrap
 */
.snap-section .card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(var(--bs-primary-rgb), 0.025)
        );

    box-shadow:
        0 0.75rem 1.9rem rgba(0, 12, 20, 0.065);

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.snap-section .card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            125deg,
            transparent 10%,
            rgba(255, 255, 255, 0.65) 45%,
            transparent 70%
        );

    opacity: 0;
    transform: translateX(-45%);
    transition:
        opacity 0.35s ease,
        transform 0.55s ease;
}

.snap-section .card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--bs-primary-rgb), 0.32) !important;

    box-shadow:
        0 1.05rem 2.35rem rgba(0, 12, 20, 0.105);
}

.snap-section .card:hover::after {
    opacity: 0.55;
    transform: translateX(45%);
}

.snap-section .card .rounded-circle {
    box-shadow:
        0 0.5rem 1.15rem rgba(var(--bs-primary-rgb), 0.09);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.snap-section .card:hover .rounded-circle {
    transform: translateY(-3px) scale(1.04);

    box-shadow:
        0 0.8rem 1.45rem rgba(var(--bs-primary-rgb), 0.15);
}


/*
 * Sfondi coordinati e discreti
 */
#problemi,
#numeri {
    background-color: var(--bs-light) !important;
    background-image:
        radial-gradient(
            circle at 12% 18%,
            rgba(var(--bs-primary-rgb), 0.07),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(var(--bs-info-rgb), 0.055),
            transparent 30%
        );
}

#soluzione,
#come-funziona {
    background-color: #ffffff !important;
    background-image:
        linear-gradient(
            135deg,
            rgba(var(--bs-primary-rgb), 0.022) 1px,
            transparent 1px
        );

    background-size: 44px 44px;
}


/*
 * Barra superiore di avanzamento
 */
.section-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1080;

    height: 3px;

    background-color: rgba(var(--bs-dark-rgb), 0.055);
    pointer-events: none;
}

.section-progress span {
    display: block;
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--bs-primary),
            var(--bs-info)
        );

    box-shadow:
        0 0 0.75rem rgba(var(--bs-primary-rgb), 0.35);

    transition: width 0.45s ease;
}


/*
 * Navigazione laterale a punti
 */
.section-dots {
    position: fixed;
    top: 50%;
    right: 1.25rem;
    z-index: 1070;

    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    padding: 0.7rem 0.55rem;

    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.09);
    border-radius: 999px;

    box-shadow:
        0 0.7rem 1.7rem rgba(0, 12, 20, 0.075);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-dot {
    width: 0.62rem;
    height: 0.62rem;
    padding: 0;

    background-color: rgba(var(--bs-primary-rgb), 0.2);
    border: 0;
    border-radius: 50%;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.section-dot:hover,
.section-dot:focus-visible {
    background-color: rgba(var(--bs-primary-rgb), 0.55);
    transform: scale(1.25);
    outline: none;
}

.section-dot.is-active {
    background-color: var(--bs-primary);
    transform: scale(1.35);

    box-shadow:
        0 0 0 0.28rem rgba(var(--bs-primary-rgb), 0.12);
}


/*
 * Layout full-screen solo desktop
 */
@media (min-width: 992px) {
    html {
        scroll-snap-type: y proximity;
        scroll-padding-top: 0;
    }

    .snap-section {
        position: relative;
        isolation: isolate;

        min-height: 100vh;
        min-height: 100svh;

        display: flex;
        align-items: center;

        padding-block:
            clamp(2.5rem, 5.5vh, 4.5rem) !important;

        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .snap-section > .container {
        width: 100%;
    }

    .hero-section {
        min-height: 100vh;
        min-height: 100svh;
    }

    /*
     * Comparsa controllata della singola sezione.
     * Viene attivata solo dopo il caricamento dello script.
     */
    body.section-navigation-ready
    .snap-section:not(.hero-section) > .container {
        opacity: 0.22;
        transform: translateY(22px) scale(0.992);

        transition:
            opacity 0.65s ease,
            transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1);
    }

    body.section-navigation-ready
    .snap-section.is-active > .container,
    body.section-navigation-ready
    .snap-section.has-entered.is-active > .container {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /*
     * Leggera profondità alle sezioni non attive.
     */
    body.section-navigation-ready
    .snap-section:not(.is-active) {
        filter: saturate(0.94);
    }

    body.section-navigation-ready
    .snap-section.is-active {
        filter: saturate(1);
    }
}


/*
 * Ottimizzazione per schermi desktop meno alti
 */
@media (min-width: 992px) and (max-height: 900px) {
    .snap-section {
        padding-block: 1.75rem !important;
    }

    .snap-section .display-6 {
        font-size: clamp(1.85rem, 2.8vw, 2.45rem);
    }

    .snap-section .lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .snap-section .row.mt-lg-5 {
        margin-top: 1.5rem !important;
    }

    .snap-section .card-body {
        padding: 1.25rem !important;
    }

    .snap-section .card .rounded-circle.p-3 {
        padding: 0.75rem !important;
    }

    .hero-content {
        padding-block: 1.6rem;
    }

    .hero-logo {
        width: min(230px, 42vw);
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.3rem, 2.6vw, 2.25rem);
    }

    .hero-subtitle {
        margin-top: 0.9rem;
        font-size: clamp(1rem, 1.45vw, 1.2rem);
        line-height: 1.55;
    }

    .hero-actions {
        margin-top: 1.2rem;
    }

    .hero-stats {
        margin-top: 1.75rem;
    }

    .stat-card {
        min-height: 96px;
        padding: 0.75rem 0.65rem;
    }

    .grm-panel {
        padding: 1.5rem;
    }

    .grm-flow {
        margin-block: 1.25rem;
        padding: 1.1rem;
    }

    .grm-result {
        margin-top: 1.25rem;
        padding-top: 1.1rem;
    }

    .consultation-card {
        padding: 1.5rem;
    }

    .consultation-list {
        margin-top: 1.35rem;
    }

    .contact-card {
        min-height: 205px;
        padding: 1.3rem 1rem;
    }

    .company-details {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}


/*
 * Su tablet e mobile: scorrimento naturale, niente punti laterali.
 */
@media (max-width: 991.98px) {
    .section-dots,
    .section-progress {
        display: none;
    }

    .snap-section {
        min-height: auto;
    }
}


/*
 * Accessibilità e preferenza per animazioni ridotte.
 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .section-progress span,
    .section-dot,
    .snap-section .card,
    .snap-section .card::after,
    .snap-section .card .rounded-circle,
    body.section-navigation-ready
    .snap-section:not(.hero-section) > .container {
        transition: none !important;
    }

    body.section-navigation-ready
    .snap-section:not(.hero-section) > .container {
        opacity: 1;
        transform: none;
    }
}
