/**
 * Modale gate demo pubblica — bordeaux / oro / crema (non altera UI gestionale).
 * v1.x-public-guided-demo-camillo-gated-actions
 */
.vt-public-demo .topbar {
    border-bottom: 2px solid #d4a017;
}

/* La visita commerciale parte dal prodotto, non da setup, limiti o reset interni. */
.vt-public-demo #dashboardSetupWrap,
.vt-public-demo #dashboardDemoWrap,
.vt-public-demo #dashboardPlanWrap,
.vt-public-demo #settingsPlanBanner {
    display: none !important;
}

#vtPublicDemoBanner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, #6b1714 0%, #8b2220 55%, #6b1714 100%);
    color: #fdf6e8;
    font-size: 0.875rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(212, 160, 23, 0.45);
}

#vtPublicDemoBanner strong {
    color: #f5d77a;
    font-weight: 700;
}

#vtPublicDemoBanner .vt-pdg-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vt-pdg-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.vt-pdg-banner-btn--gold {
    background: linear-gradient(180deg, #f5d77a 0%, #d4a017 100%);
    color: #3f130f;
}

.vt-pdg-banner-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 215, 122, 0.45);
    color: #fdf6e8;
}

body.vt-pdg-modal-open {
    overflow: hidden;
}

.vt-pdg-journey-launcher {
    position: fixed;
    z-index: 15000;
    right: 1rem;
    bottom: 1rem;
    min-height: 46px;
    padding: .65rem 1rem;
    border: 1px solid #d9a538;
    border-radius: 999px;
    color: #fff;
    background: #651512;
    box-shadow: 0 16px 44px rgba(45, 14, 12, .26);
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
}

.vt-pdg-journey-launcher:hover {
    color: #25120e;
    background: #f1cd7a;
}

.vt-pdg-journey {
    position: fixed;
    z-index: 20020;
    right: 1rem;
    bottom: 1rem;
    width: min(420px, calc(100% - 2rem));
    padding: 1rem;
    border: 1px solid #d9c49d;
    border-radius: 19px;
    color: #251d1a;
    background: #fff;
    box-shadow: 0 24px 80px rgba(34, 12, 10, .32);
}

.vt-pdg-journey__count {
    color: #7a4a00;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.vt-pdg-journey h2 {
    margin: .45rem 2rem .4rem 0;
    color: #35110e;
    font-size: 1.25rem;
    line-height: 1.15;
}

.vt-pdg-journey p {
    margin: 0;
    color: #574c47;
    font-size: .85rem;
    line-height: 1.5;
}

.vt-pdg-journey__actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: .9rem;
}

.vt-pdg-journey__actions button,
.vt-pdg-journey__actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .8rem;
    border: 1px solid #a28e84;
    border-radius: 10px;
    color: #3e302b;
    background: #fff;
    font-size: .78rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.vt-pdg-journey__actions .is-primary,
.vt-pdg-journey__actions a {
    color: #fff;
    border-color: #741915;
    background: #741915;
}

.vt-pdg-journey__actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.vt-pdg-journey__close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #4a3430;
    background: #f3ede9;
    font-size: 1.2rem;
    cursor: pointer;
}

.vt-pdg-journey-highlight {
    position: relative !important;
    z-index: 20010 !important;
    border-radius: 10px;
    outline: 4px solid #d9a538 !important;
    outline-offset: 6px !important;
    box-shadow: 0 0 0 9999px rgba(24, 10, 9, .5) !important;
}

.vt-pdg-modal[hidden] {
    display: none !important;
}

.vt-pdg-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vt-pdg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 10, 9, 0.62);
    backdrop-filter: blur(3px);
}

.vt-pdg-modal__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: linear-gradient(165deg, #fff9f0 0%, #fff 42%, #fff6ea 100%);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(63, 19, 15, 0.28);
    padding: 1.25rem 1.25rem 1.35rem;
}

.vt-pdg-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    color: #6b1714;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.vt-pdg-modal__grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: start;
}

.vt-pdg-modal__camillo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(107, 23, 20, 0.18));
}

.vt-pdg-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #a67c00;
}

.vt-pdg-modal__title {
    margin: 0 0 0.55rem;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #3f130f;
}

.vt-pdg-modal__lead {
    margin: 0 0 0.65rem;
    color: #4a3b35;
    font-size: 0.95rem;
    line-height: 1.5;
}

.vt-pdg-modal__micro {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: #7a655c;
}

.vt-pdg-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.vt-pdg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.vt-pdg-btn--primary {
    background: linear-gradient(180deg, #8b2220 0%, #6b1714 100%);
    color: #fff9f0;
    box-shadow: 0 8px 20px rgba(107, 23, 20, 0.22);
}

.vt-pdg-btn--ghost {
    background: #fff;
    border-color: #e8d5b8;
    color: #3f130f;
}

.vt-pdg-modal__link {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b1714;
    text-decoration: underline;
}

@media (max-width: 520px) {
    .vt-pdg-modal__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vt-pdg-modal__camillo {
        max-width: 140px;
        margin: 0 auto;
    }

    #vtPublicDemoBanner {
        flex-direction: column;
        align-items: flex-start;
    }

    .vt-pdg-journey,
    .vt-pdg-journey-launcher {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .vt-pdg-journey {
        right: .7rem;
        width: calc(100% - 1.4rem);
    }
}
