/* ==========================================================================
   Stories Bridge — stile allineato al prototipo (sezione .stories-bridge)
   Colore accent via utility Bootstrap inline (.text-info = #119199).
   Le animazioni di ingresso scattano con la classe .in aggiunta via JS
   (IntersectionObserver) quando il blocco entra in viewport.
   ========================================================================== */

.stories-bridge {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    background: #0a0a0a;
    border-bottom: 1px solid #202020;
}

.stories-bridge__content {
    max-width: 1120px;
    margin-inline: auto;
    text-align: center;
}

.stories-bridge .eyebrow {
    display: block;
    font-family: "League Spartan", sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    margin-bottom: 1.5rem;
}

.stories-bridge h2 {
    max-width: 1060px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(2.5rem, 5.8vw, 5.4rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.stories-bridge h2 span {
    display: block;
}

.stories-bridge__reveal {
    margin-top: 0.12em;
}

/* --- Stato iniziale elementi animati --- */
.stories-bridge__content > .eyebrow,
.stories-bridge__statement,
.stories-bridge__reveal,
.stories-bridge__arrow {
    opacity: 0;
    transform: translateY(22px);
}

.stories-bridge__content.in > .eyebrow {
    animation: storiesTextIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.stories-bridge__content.in .stories-bridge__statement {
    animation: storiesTextIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.stories-bridge__content.in .stories-bridge__reveal {
    animation: storiesTextIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.stories-bridge__content.in .stories-bridge__arrow {
    animation: storiesArrowIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

/* --- Freccia (disegno progressivo del tratto SVG) --- */
.stories-bridge__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 48px;
    margin-top: 2rem;
    color: #ffffff;
    pointer-events: none;
}

.stories-bridge__arrow svg {
    width: 24px;
    height: 24px;
}

.stories-bridge__arrow path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.stories-bridge__content.in .stories-bridge__arrow path {
    animation: storiesArrowDraw 0.65s ease 0.86s forwards;
}

@keyframes storiesTextIn {
    from { opacity: 0; transform: translateY(22px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes storiesArrowIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes storiesArrowDraw {
    to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Responsive (allineato alle media query del prototipo)
   ========================================================================== */

@media (max-width: 767.98px) {
    .stories-bridge {
        display: flex;
        align-items: center;
        min-height: 100vh;
        min-height: 100svh;
        padding: 4rem 0;
    }

    .stories-bridge > .container-fluid {
        width: 100%;
    }
}

/* ==========================================================================
   Accessibilità: niente animazioni se l'utente preferisce ridurre il moto
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .stories-bridge__content > .eyebrow,
    .stories-bridge__statement,
    .stories-bridge__reveal,
    .stories-bridge__arrow {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none !important;
    }

    .stories-bridge__arrow path {
        stroke-dashoffset: 0;
        animation: none !important;
    }
}
