.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -8%, #E2F6F8 0%, rgba(226, 246, 248, 0) 60%),
        radial-gradient(700px 380px at 6% 108%, #FCEEEC 0%, rgba(252, 238, 236, 0) 55%),
        #fff;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 32px 84px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #E6EAEC;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #0B7C84;
    letter-spacing: 0.01em;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #18B6C6;
    display: inline-block;
}

.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 54px;
    line-height: 1.04;
    letter-spacing: -0.022em;
    margin: 22px 0 0;
}

.hero h1 span {
    color: #0B7C84;
}

.hero p {
    font-size: 18.5px;
    line-height: 1.55;
    color: #444C52;
    max-width: 540px;
    margin: 22px 0 0;
    text-wrap: pretty;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #F2675A;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15.5px;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(242, 103, 90, 0.32);
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: #E2503F;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: #0B0E11;
    text-decoration: none;
    font-weight: 700;
    font-size: 15.5px;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid #DBE1E4;
    transition: border-color 0.2s;
}

.btn-secondary:hover {
    border-color: #0B0E11;
}

/* Features list */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
    align-items: center;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #5A6268;
}

.hero-features .dot {
    color: #0B7C84;
    font-size: 15px;
}

/* ========== Document Flow Card ========== */
.flow-card-container {
    position: relative;
    /* essenziale per ancorare il badge flottante */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.flow-card {
    background: #fff;
    border: 1px solid #E6EAEC;
    border-radius: 22px;
    box-shadow: 0 30px 60px -28px rgba(11, 14, 17, 0.28);
    padding: 24px;
    position: relative;
    width: 100%;
    max-width: 380px;
}

.flow-card-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9AA3A8;
    margin-bottom: 14px;
}

.flow-card-bc {
    border: 1px solid #DCEFF1;
    background: #F4FBFC;
    border-radius: 14px;
    padding: 16px;
}

.flow-card-bc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.flow-card-bc-header img {
    width: 26px;
    height: 26px;
}

.flow-card-bc-header span {
    font-weight: 700;
    font-size: 15px;
}

.flow-card-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #E3EDEE;
    border-radius: 9px;
    padding: 9px 12px;
    margin-bottom: 8px;
}

.flow-card-doc:last-child {
    margin-bottom: 0;
}

.flow-card-doc span:first-child {
    font-size: 13.5px;
    font-weight: 600;
}

.flow-card-doc .badge {
    font-size: 11px;
    font-weight: 700;
    color: #0B7C84;
    background: #DDF3F5;
    padding: 2px 8px;
    border-radius: 6px;
}


.flow-card-arrow {
    position: relative;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flow-card-arrow-line {
    position: absolute;
    top: 6px;
    width: 2px;
    height: 44px;
    background: linear-gradient(#CFE9EC, #F2675A);
}

.flow-card-arrow-dot {
    position: absolute;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #F2675A;
    animation: travel 2.6s ease-in-out infinite;
}

.flow-card-arrow-label {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 1px solid #F2675A;
    color: #E2503F;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 11px;
    border-radius: 999px;
}


.flow-card-swidoc {
    background: #0B0E11;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flow-card-swidoc img {
    height: 22px;
}

.flow-card-swidoc .archived {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #7FE3B0;
}

.flow-card-swidoc .archived .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(127, 227, 176, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Badge flottante "Zero manual filing" */
.flow-card-floating {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fff;
    border: 1px solid #E6EAEC;
    border-radius: 12px;
    box-shadow: 0 14px 30px -14px rgba(11, 14, 17, 0.25);
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #0B0E11;
    white-space: nowrap;
}


@keyframes travel {
    0% {
        transform: translateY(-4px);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(35px);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.35);
        opacity: 0;
    }
}


@media screen and (max-width: 1124px) {
    .hero-grid {
        gap: 48px;
        padding: 56px 32px 64px;
    }

    .hero h1 {
        font-size: 44px;
    }
}

@media screen and (max-width: 920px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 24px 56px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }


    .flow-card-container {
        order: 2;
    }


    .flow-card-floating {
        top: -12px;
        right: -8px;
        font-size: 11px;
        padding: 8px 12px;
        border-radius: 10px;
    }
}

@media screen and (max-width: 550px) {
    .hero {
        background: linear-gradient(180deg, #F4FBFC 0%, #fff 40%);
    }

    .hero-grid {
        padding: 40px 16px 48px;
        gap: 32px;
    }

    .hero h1 {
        font-size: 32px;
        margin-top: 16px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 0;
    }

    .hero-features {
        gap: 14px;
        display: grid;
    }


    .flow-card {
        max-width: 100%;
    }

    .flow-card-floating {
        top: -10px;
        right: 4px;
        font-size: 11px;
        padding: 6px 10px;
        border-radius: 8px;
    }
}

@media screen and (max-width: 380px) {
    .hero-badge {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .flow-card-doc span:first-child {
        font-size: 12px;
    }
}