:root {
    --vx-gap: 20px;
    --vx-radius: 8px;
    --vx-max-w: {widthContainterSite}px;
    --vx-transition: .25s ease;

    /* Light */
    --vx-bg-body:    #ffffff;
    --vx-bg-card:    #ffffff;
    --vx-bg-header:  #ffffff;
    --vx-bg-footer:  #111219;
    --vx-bg-input:   #f7f7f7;
    --vx-bg-hover:   #f9f6f1;         /* caldo, leggermente oro */

    --vx-border:     #ede9e1;         /* bordo caldo invece di grigio freddo */
    --vx-shadow:     0 1px 3px rgba(120,90,40,.06);
    --vx-shadow-lg:  0 8px 30px rgba(120,90,40,.10);

    --vx-text:       #3a3530;         /* quasi-nero caldo */
    --vx-text-2:     #6b6055;         /* grigio-marrone */
    --vx-text-3:     #9d9d9d;         /* placeholder caldo */
    --vx-text-inv:   #ffffff;

    /* ── COLORE PRIMARIO: ORO ── */
    --vx-primary:        #b8975a;
    --vx-primary-hover:  #9d7d44;
    --vx-primary-light:  rgba(184,151,90,.10);

    /* Semantici invariati */
    --vx-success: #22c55e;
    --vx-warning: #f59e0b;
    --vx-danger:  #ef4444;
    --vx-info:    #3b82f6;

    --vx-footer-text:       #9ca3af;
    --vx-footer-text-hover: #e5e7eb;
}

[data-theme="dark"] {
    --vx-bg-body:    #0d0c0a;         /* nero caldo */
    --vx-bg-card:    #0e0e0e;         /* card leggermente calda */
    --vx-bg-header:  #111008;
    --vx-bg-footer:  #0a0907;
    --vx-bg-input:   #181818;
    --vx-bg-hover:   #221f16;

    --vx-border:     #2e2a1e;         /* bordo caldo dark */
    --vx-shadow:     0 1px 3px rgba(0,0,0,.4);
    --vx-shadow-lg:  0 8px 30px rgba(0,0,0,.5);

    --vx-text:       #e8e2d6;         /* bianco caldo */
    --vx-text-2:     #b3b3b3;
    --vx-text-3:     #9d9d9d;

    /* Il primario oro regge bene su dark, lo schiarisco leggermente */
    --vx-primary:       #c9a96e;
    --vx-primary-hover: #b8975a;
    --vx-primary-light: rgba(201,169,110,.12);
}

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
	/* Evita flash footer — contenuto sempre almeno viewport height */
.vx-content {
    min-height: calc(100vh - 64px); /* 64px = altezza header */
}

/* Oppure ancora più robusto: */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.vx-content {
    flex: 1;
}

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
        font-size: 15px;
        line-height: 1.6;
        color: var(--vx-text);
        background: var(--vx-bg-body);
        -webkit-font-smoothing: antialiased;
    }

    a { color: var(--vx-primary); text-decoration: none; }
    a:hover { color: var(--vx-primary-hover); }
    img { max-width: 100%; height: auto; }

    .vx-container {
        width: 100%;
        /* max-width: var(--vx-max-w); */
		max-width: 1280px;
        margin: 0 auto;
        
    }

    /* ── Header ── */
    .vx-header {
        background: var(--vx-bg-header);
        border-bottom: 1px solid var(--vx-border);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .vx-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 50px;
		padding: 20px;
    }

    .vx-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: 700;
        color: var(--vx-text);
        letter-spacing: -.5px;
    }

    .vx-logo img { height: 36px; width: auto; }

    .vx-header-nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .vx-header-nav a {
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        color: var(--vx-text-beo);
        border-radius: 6px;
        transition: all .15s;
        text-transform: uppercase;
    }

    .vx-header-nav a:hover {
        color: var(--vx-text);
        background: var(--vx-bg-hover);
    }

    .vx-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .vx-btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: none;
        background: transparent;
        color: var(--vx-text-2);
        cursor: pointer;
        transition: all .15s;
    }

    .vx-btn-icon:hover { background: var(--vx-bg-hover); color: var(--vx-text); }
    .vx-btn-icon svg { width: 20px; height: 20px; }

    /* Mobile menu toggle */
    .vx-mobile-toggle {
        display: none;
        background: none;
        border: none;
        color: var(--vx-text);
        cursor: pointer;
        padding: 6px;
    }
    .vx-mobile-toggle svg { width: 24px; height: 24px; }

.vx-header-top {
    background: var(--vx-bg-input);
    border-bottom: 1px solid var(--vx-border);
    font-size: 13px;
    color: var(--vx-text-2);
    width: 100%;
}

.vx-header-top:empty { display: none; }

.vx-header-top .vx-container {
    padding: 5px var(--vx-gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vx-header-top-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vx-front-top-link {
    padding: 0px 0px;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--vx-text-3);
    border-radius: 4px;
    transition: all .15s;
	text-transform: uppercase;
    letter-spacing: 2px;
}

.vx-front-top-link:hover {
    color: var(--vx-text);
    background: var(--vx-bg-hover);
}

.vx-front-top-link.active {
    color: var(--vx-primary);
}
    /* ── Hero zone ── */
    .vx-zone-hero { margin-bottom: var(--vx-gap); }
    .vx-zone-hero:empty { display: none; }

    /* ── Content Layout ── */
    .vx-content {
       /*  padding: 30px 0; */
    }

    .vx-content-grid {
        display: grid;
        gap: var(--vx-gap);
    }

    /* Default: no sidebars */
    .vx-content-grid.no-sidebars { grid-template-columns: 1fr; }
    .vx-content-grid.has-sidebar-left { grid-template-columns: 280px 1fr; }
    .vx-content-grid.has-sidebar-right { grid-template-columns: 1fr 280px; }
    .vx-content-grid.has-both-sidebars { grid-template-columns: 260px 1fr 260px; }

    .vx-sidebar { min-width: 0; }
    .vx-sidebar:empty { display: none; }

    .vx-center { min-width: 0; }

    /* ── Zone blocks ── */
    .vx-zone { min-height: 0; margin-bottom: var(--vx-gap); }
    .vx-zone:empty { display: none; }

    .vx-zone-full { width: 100%; }

    /* ── Cards (front) ── */
    .vx-card {
        background: var(--vx-bg-card);
        border: 1px solid var(--vx-border);
        border-radius: var(--vx-radius);
        box-shadow: var(--vx-shadow);
        overflow: hidden;
    }

    .vx-card-body { padding: 20px; }

    /* ── Buttons (front) ── */
    .vx-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: all .15s;
        font-family: inherit;
    }

    .vx-btn svg { width: 18px; height: 18px; }
    .vx-btn-primary { background: var(--vx-primary); color: #fff; }
    .vx-btn-primary:hover { background: var(--vx-primary-hover); }
    .vx-btn-outline { background: transparent; border: 1px solid var(--vx-border); color: var(--vx-text); }
    .vx-btn-outline:hover { background: var(--vx-bg-hover); }

    /* ── Footer ── */
    .vx-footer {
        background: var(--vx-bg-input);
        color: var(--vx-footer-text);
        padding: 0px 0 20px;
        margin-top: 40px;
    }

    .vx-footer a { color: var(--vx-footer-text); }
    .vx-footer a:hover { color: var(--vx-footer-text-hover); }

    .vx-footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        margin-bottom: 30px;
    }

    .vx-footer-col h4 {
        color: var(--vx-text-inv);
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 12px;
    }

    .vx-footer-col a {
        display: block;
        padding: 3px 0;
        font-size: 14px;
    }

    .vx-footer-bottom {
        border-top: 1px solid rgba(255,255,255,.08);
        padding-top: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13px;
    }

    /* ── Admin bar (quando admin visita il front) ── */
    .vx-admin-bar {
        background: #1e1b4b;
        color: #c7d2fe;
        font-size: 12px;
        padding: 6px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .vx-admin-bar a { color: #a5b4fc; font-weight: 500; }
    .vx-admin-bar a:hover { color: #fff; }

    /* ── Dropdown ── */
    .vx-dropdown { position: relative; }
    .vx-dropdown-menu {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 6px);
        min-width: 180px;
        background: var(--vx-bg-card);
        border: 1px solid var(--vx-border);
        border-radius: var(--vx-radius);
        box-shadow: var(--vx-shadow-lg);
        z-index: 200;
        padding: 6px;
    }
    .vx-dropdown.open .vx-dropdown-menu { display: block; }

  @media (max-width: 768px) {

    .vx-header-nav {
        /* Stacca dal flusso dell'header — fixed ignora lo stacking context del genitore */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: var(--vx-bg-card);
        border-left: 1px solid var(--vx-border);
        box-shadow: -8px 0 32px rgba(0,0,0,.2);
        z-index: 9999;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 0 24px;
        overflow-y: auto;
        gap: 0;
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    }

    .vx-header-nav.vx-mobile-open {
        transform: translateX(0);
    }

    .vx-header-nav a,
    .vx-front-nav-link {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 500;
        color: var(--vx-text);
        border-radius: 0;
        border-bottom: 1px solid var(--vx-border);
    }

    .vx-header-nav a:hover,
    .vx-front-nav-link:hover {
        background: var(--vx-bg-hover);
        color: var(--vx-primary);
    }

    .vx-mobile-toggle { display: flex; }

    #vxMobileOverlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 9998;
        display: none;
        opacity: 0;
        transition: opacity .25s;
    }

    #vxMobileOverlay.vx-mobile-overlay-open {
        display: block;
        opacity: 1;
    }

    body.vx-no-scroll {
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .vx-header-nav {
        display: flex !important;
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        width: auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        z-index: auto !important;
    }

    #vxMobileOverlay { display: none !important; }
    body.vx-no-scroll { overflow: auto !important; }
}

    @media (max-width: 480px) {
        .vx-footer-grid { grid-template-columns: 1fr; }
    }

    /* ── Scrollbar ── */
    ::-webkit-scrollbar { width: 0px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--vx-border); border-radius: 4px; }
/* ── Front Nav Links ── */
    .vx-front-nav-link {
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        color: var(--vx-text-2);
        border-radius: 6px;
        transition: all .15s;
    }

    .vx-front-nav-link:hover {
        color: var(--vx-text);
        background: var(--vx-bg-hover);
    }

    .vx-front-nav-link.active {
        color: var(--vx-primary);
        background: rgba(99,102,241,.06);
    }
	
	/* ── Forms (shared) ── */
    .vx-input, .vx-select, .vx-textarea {
        width: 100%;
        padding: 9px 12px;
        font-size: 13.5px;
        font-family: inherit;
        background: var(--vx-bg-input, #f5f6fa);
        border: 1px solid var(--vx-border);
        border-radius: 6px;
        color: var(--vx-text);
        outline: none;
        transition: border .15s;
    }

    .vx-input:focus, .vx-select:focus, .vx-textarea:focus {
        border-color: var(--vx-primary);
        box-shadow: 0 0 0 3px rgba(99,102,241,.08);
    }

    .vx-label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 4px;
        color: var(--vx-text-2);
    }

    /* ── Tables ── */
    .vx-table { width: 100%; border-collapse: collapse; }
    .vx-table th {
        text-align: left; padding: 10px 16px; font-size: 12px;
        font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
        color: var(--vx-text-3); border-bottom: 2px solid var(--vx-border);
        background: var(--vx-bg-input, #f5f6fa);
    }
    .vx-table td { padding: 10px 16px; border-bottom: 1px solid var(--vx-border); font-size: 13.5px; }
    .vx-table tr:hover td { background: var(--vx-bg-hover); }

    /* ── Buttons ── */
    .vx-btn {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 8px 16px; font-size: 13px; font-weight: 500;
        border-radius: 6px; border: 1px solid transparent;
        cursor: pointer; transition: all .15s; font-family: inherit;
    }
    .vx-btn svg { width: 16px; height: 16px; }
    .vx-btn-primary { background: var(--vx-primary); color: #fff; border-color: var(--vx-primary); }
    .vx-btn-primary:hover { background: var(--vx-primary-hover); }
    .vx-btn-ghost { background: transparent; color: var(--vx-text-2); border-color: var(--vx-border); }
    .vx-btn-ghost:hover { background: var(--vx-bg-hover); color: var(--vx-text); }
    .vx-btn-danger { background: var(--vx-danger); color: #fff; }
    .vx-btn-success { background: var(--vx-success); color: #fff; }

    /* ── Badge ── */
    .vx-badge {
        display: inline-flex; align-items: center; padding: 2px 8px;
        font-size: 11px; font-weight: 600; border-radius: 99px;
    }
    .vx-badge-success { background: rgba(34,197,94,.1); color: var(--vx-success); }
    .vx-badge-warning { background: rgba(245,158,11,.1); color: var(--vx-warning); }
    .vx-badge-danger  { background: rgba(239,68,68,.1); color: var(--vx-danger); }
    .vx-badge-info    { background: rgba(59,130,246,.1); color: var(--vx-info); }

    /* ── Cards ── */
    .vx-card {
        background: var(--vx-bg-card); border: 1px solid var(--vx-border);
        border-radius: var(--vx-radius, 8px); box-shadow: var(--vx-shadow);
        overflow: hidden;
    }
    .vx-card-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 20px; border-bottom: 1px solid var(--vx-border);
    }
    .vx-card-title { font-size: 15px; font-weight: 600; }
    .vx-card-body { padding: 20px; }

    /* ── Dropdown ── */
    .vx-dropdown { position: relative; }
    .vx-dropdown-menu {
        display: none; position: absolute; right: 0; top: calc(100% + 6px);
        min-width: 180px; background: var(--vx-bg-card); border: 1px solid var(--vx-border);
        border-radius: var(--vx-radius, 8px); box-shadow: 0 4px 16px rgba(0,0,0,.08);
        z-index: 200; padding: 6px;
    }
    .vx-dropdown.open .vx-dropdown-menu { display: block; }
    .vx-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--vx-text);
    /* border-radius: 5px; */
    justify-content: center;
    flex-direction: row;
    }
    .vx-dropdown-item:hover { background: var(--vx-bg-hover); }

/* ══ DECO IMAGES ══ */
.vx-deco {
    position: fixed;
    top: 50px;
    width: 275px;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.vx-deco-left  { left: 0; }
.vx-deco-right { right: 0; }

.vx-deco-center {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.vx-deco-inner {
    position: absolute;
    inset: 0;
}

.vx-deco-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease;
    opacity: 0;
}

.vx-deco-inner img.vx-deco-visible { opacity: 1; }

/* Nasconde su schermi piccoli */
@media (max-width: 1400px) {
    .vx-deco-left,
    .vx-deco-right { display: none; }
}
.vx-deco {
    animation: vxDecoFadeIn 2.2s ease forwards;
}

@keyframes vxDecoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.vx-header-inner {
    overflow: visible;
}
.vx-header {
    z-index: 100;
}
/* ── Pulsante dettagli (visibile sempre, evidenziato su mobile) ── */
.vxfe-btn-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vx-primary);
    background: var(--vx-primary-light);
    border: 1px solid var(--vx-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.vxfe-btn-details:hover {
    background: var(--vx-primary);
    color: #fff;
}

@media (min-width: 1101px) {
    .vxfe-btn-details {
        opacity: .7;
        font-size: 11px;
        padding: 4px 10px;
    }
}