/* ===== HERO ===== */

/* Fondo inchiostro con la griglia sottile del sito (selettore piu' specifico di blueprint.css) */
body > section.hero-section.vs-hero {
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(27, 111, 214, 0.42), transparent 65%),
        radial-gradient(45% 60% at 0% 100%, rgba(242, 183, 5, 0.08), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        var(--bp-ink) !important;
    background-size: auto, auto, 56px 56px, 56px 56px, auto !important;
    background-position: 0 0 !important;
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 5.5rem;
}

body > section.hero-section.vs-hero .vs-hero-intro h1 {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.vs-title-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.vs-title-inner {
    display: block;
}

.vs-hero-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.65;
}

/* ===== CHAT DI ESEMPIO ===== */

.vs-chat-window {
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    background: #efeae2;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.vs-chat-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.2rem;
    background: #075e54;
    color: #fff;
}

.vs-chat-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1rem;
}

.vs-chat-name {
    display: block;
    font-weight: 600;
    line-height: 1.2;
}

.vs-chat-status {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.vs-chat-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem;
}

.vs-chat-day {
    align-self: center;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    color: #54656f;
    font-size: 0.78rem;
}

.vs-bubble {
    position: relative;
    width: fit-content;
    padding: 0.55rem 0.8rem 0.4rem;
    border-radius: 10px;
    color: #111b21;
    font-size: 0.95rem;
    line-height: 1.45;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

/* Messaggio del cliente: a destra, verde */
.vs-bubble-customer {
    align-self: flex-end;
    margin-left: 18%;
    background: #d9fdd3;
}

/* Risposta della segretaria virtuale: a sinistra, bianca */
.vs-bubble-assistant {
    align-self: flex-start;
    margin-right: 18%;
    background: #fff;
}

.vs-bubble-time {
    display: block;
    margin-top: 0.15rem;
    text-align: right;
    color: #667781;
    font-size: 0.72rem;
}

.vs-bubble-time i {
    margin-left: 0.25rem;
    color: #53bdeb;
}

/* Pulsanti di risposta sotto il messaggio */
.vs-chat-buttons {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e9edef;
}

.vs-chat-button {
    flex: 1 1 0;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: #f0f2f5;
    color: #027eb5;
    font-weight: 600;
    text-align: center;
}

.vs-chat-caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== FOTO ===== */

.vs-frame {
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    background: var(--bp-ink);
}

.vs-frame img {
    will-change: transform;
}

/* ===== CHE COS'E' ===== */

section.vs-intro {
    margin: 0 16px;
    padding: 5rem 0;
    border-radius: var(--bp-radius-lg);
    background: var(--bp-bg-soft);
}

.vs-intro-title {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    letter-spacing: -0.04em;
}

.vs-intro-lead {
    color: var(--bp-ink-soft);
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Tre schede collegate da una freccia: cliente, segretaria virtuale, personale */
.vs-flow-card {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--bp-line-soft);
    border-radius: var(--bp-radius-lg);
    background: #fff;
}

.vs-flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: var(--bp-blue-wash);
    color: var(--bp-blue);
    font-size: 1.6rem;
}

.vs-flow-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: var(--bp-mono);
    font-size: 0.8rem;
    color: var(--bp-blue);
}

.vs-flow-title {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.vs-flow-card p {
    color: var(--bp-ink-soft);
    line-height: 1.65;
}

@media (min-width: 992px) {
    .row > div:not(:last-child) > .vs-flow-card::after {
        content: '\2192';
        position: absolute;
        top: 50%;
        right: -1.35rem;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 50%;
        background: var(--bp-blue);
        color: #fff;
        font-weight: 700;
        transform: translateY(-50%);
    }
}

/* ===== CAPITOLI ===== */

.vs-chapter {
    padding: 2.5rem 0;
}

.vs-chapter-title {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

/* Caratteristiche in due colonne divise da filetti */
.vs-specs li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.8rem 1rem 0.8rem 0;
    border-top: 1px solid var(--bp-line-soft);
    font-weight: 500;
    color: var(--bp-ink);
}

.vs-specs li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bp-blue);
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .vs-chapter {
        padding: 4rem 0;
    }
}

/* ===== NOTA IN FONDO ===== */

section.cta-section p.vs-cta-note {
    font-size: 15px;
}

/* ===== ATTIVAZIONE ===== */

section.vs-process {
    margin: 0 16px;
    padding: 5rem 0;
    border-radius: var(--bp-radius-lg);
    background: var(--bp-bg-soft);
}

@media (min-width: 992px) {
    section.vs-process {
        padding: 7rem 0;
    }
}

/* Linea in testa a ogni fase: il blu la riempie seguendo lo scroll */
.vs-step-rail {
    position: relative;
    display: block;
    height: 2px;
    margin-bottom: 1.75rem;
    overflow: hidden;
    background: var(--bp-line);
}

.vs-step-fill {
    position: absolute;
    inset: 0;
    background: var(--bp-blue);
    transform-origin: left center;
}
