/* ============================================================
   HOME - COME LAVORIAMO
============================================================ */

.home-video-section {
    position: relative;

    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #0d2947 0%,
            #123e67 50%,
            #0b223b 100%
        );

    overflow: hidden;
}


/* ============================================================
   DECORAZIONE SFONDO
============================================================ */

.home-video-section::before {
    content: "";

    position: absolute;

    top: -180px;
    right: -180px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);

    pointer-events: none;
}

.home-video-section::after {
    content: "";

    position: absolute;

    bottom: -220px;
    left: -180px;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.03);

    pointer-events: none;
}


/* ============================================================
   HEADER
============================================================ */

.home-video-header {
    position: relative;
    z-index: 2;

    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}

.home-video-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: #8fc4f5;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.home-video-header h2 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 2.5rem;
    font-weight: 800;

    line-height: 1.2;
}

.home-video-header p {
    max-width: 680px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.75);

    font-size: 1rem;

    line-height: 1.7;
}


/* ============================================================
   CONTENITORE PRINCIPALE
============================================================ */

.home-video-section .row {
    position: relative;
    z-index: 2;
}


/* ============================================================
   VIDEO
============================================================ */

.home-video-wrapper {
    position: relative;

    width: 100%;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 20px;

    background: #000;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.30);
}

.home-video {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #000;
}


/* ============================================================
   FASI DEL LAVORO
============================================================ */

.home-video-steps {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* ============================================================
   SINGOLA FASE
============================================================ */

.home-video-step {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(8px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.home-video-step:hover {
    transform: translateX(5px);

    background: rgba(255, 255, 255, 0.10);

    border-color: rgba(255, 255, 255, 0.18);
}


/* ============================================================
   NUMERO
============================================================ */

.home-video-step-number {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #ffffff;

    color: #123e67;

    font-size: 0.78rem;
    font-weight: 800;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   TESTI FASI
============================================================ */

.home-video-step h3 {
    margin: 2px 0 6px;

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 800;
}

.home-video-step p {
    margin: 0;

    color: rgba(255, 255, 255, 0.68);

    font-size: 0.9rem;

    line-height: 1.6;
}


/* ============================================================
   LINEA DECORATIVA
============================================================ */

.home-video-steps {
    position: relative;
}

.home-video-step {
    position: relative;
}

.home-video-step:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 41px;

    top: 66px;

    width: 1px;

    height: 20px;

    background: rgba(255, 255, 255, 0.15);
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767.98px) {

    .home-video-section {
        padding: 65px 0;
    }


    /* HEADER */

    .home-video-header {
        margin-bottom: 35px;
    }

    .home-video-eyebrow {
        font-size: 0.7rem;
    }

    .home-video-header h2 {
        font-size: 2rem;

        line-height: 1.25;
    }

    .home-video-header p {
        padding: 0 10px;

        font-size: 0.92rem;
    }


    /* VIDEO */

    .home-video-wrapper {
        border-radius: 15px;
    }


    /* FASI */

    .home-video-steps {
        gap: 16px;

        margin-top: 10px;
    }

    .home-video-step {
        gap: 14px;

        padding: 15px;
    }

    .home-video-step-number {
        width: 42px;
        height: 42px;

        font-size: 0.72rem;
    }

    .home-video-step h3 {
        font-size: 1rem;
    }

    .home-video-step p {
        font-size: 0.86rem;
    }

    .home-video-step:not(:last-child)::after {
        left: 35px;

        top: 57px;

        height: 16px;
    }
}


/* ============================================================
   TABLET
============================================================ */

@media (min-width: 768px) and (max-width: 991.98px) {

    .home-video-section {
        padding: 75px 0;
    }

    .home-video-header h2 {
        font-size: 2.25rem;
    }

    .home-video-step {
        padding: 15px;
    }
}