/* ===========================================================================
   mario.velucchi.eu — Foglio di stile principale
   ---------------------------------------------------------------------------
   Design system per il portale di consulenza informatica.

   PALETTE PANTONE
     - Primario  : Pantone 646 C — blu (#5E8BB5)
                   usato per i GRADIENTI DI SFONDO (hero, sezioni scure, footer)
     - Secondario: Pantone 2018 C — arancione (#FF7701)
                   usato per i GRADIENTI DEGLI ELEMENTI (bottoni, badge, icone)

   ELEMENTI 3D
     Card, box e pannelli in rilievo usano un effetto translucido
     (glassmorphism): sfondo semi-trasparente + backdrop-filter blur + bordo
     chiaro a 1px, per dare profondità senza appesantire la pagina.

   Estende Bootstrap 5.3 con componenti e utility personalizzate.
   © 2026 Mario Velucchi.
   =========================================================================== */

:root {
  /* --- PANTONE 646 C — primario (gradienti di sfondo) -------------------- */
  /* Colore campionato dalla cartella Pantone fornita: #5E8BB5             */
  --vc-p1:          #5E8BB5;   /* Pantone 646 C base                        */
  --vc-p1-900:      #2E4E73;   /* scala scura — fine gradiente sfondo       */
  --vc-p1-700:      #426A95;   /* scala media-scura                         */
  --vc-p1-500:      #5E8BB5;   /* scala media — base                        */
  --vc-p1-300:      #87A9C9;   /* scala chiara — accenti su scuro           */

  /* --- PANTONE 2018 C — secondario (gradienti degli elementi) ------------ */
  /* Colore campionato dalla cartella Pantone fornita: #FF7701            */
  --vc-p2:          #FF7701;   /* Pantone 2018 C base                       */
  --vc-p2-700:      #CC5F00;   /* scala scura — hover/fine gradiente        */
  --vc-p2-text:     #A84E00;   /* arancione per TESTO — contrasto AA >=4.5  */
  --vc-p2-500:      #FF7701;   /* scala media — base                        */
  --vc-p2-300:      #FF9433;   /* scala chiara — inizio gradiente elementi  */

  /* --- Gradienti pronti all'uso ----------------------------------------- */
  /* Gradiente HERO: parte dal Pantone 646 C reale (#5E8BB5), colore di
     marca per gli sfondi, e scurisce. Usato dove sopra ci sono solo titoli
     grandi in grassetto (contrasto WCAG AA per testo grande, >= 3:1). */
  --vc-grad-hero:   linear-gradient(160deg, var(--vc-p1-500) 0%, var(--vc-p1-900) 100%);
  /* Gradiente SFONDO scuro: tonalità scure del primario, per le sezioni che
     contengono anche testo piccolo (contrasto WCAG AA pieno, >= 4.5:1). */
  --vc-grad-bg:     linear-gradient(160deg, var(--vc-p1-700) 0%, var(--vc-p1-900) 100%);
  /* Gradiente del SECONDARIO (Pantone 2018 C) per gli ELEMENTI.            */
  --vc-grad-el:     linear-gradient(135deg, var(--vc-p2-500) 0%, var(--vc-p2-700) 100%);

  /* --- Effetto translucido (glassmorphism) per elementi 3D --------------- */
  --vc-glass-bg:        rgba(255, 255, 255, 0.70);
  --vc-glass-bg-dark:   rgba(46, 78, 115, 0.42);
  --vc-glass-border:    rgba(255, 255, 255, 0.55);
  --vc-glass-blur:      blur(14px) saturate(140%);
  --vc-glass-shadow:    0 8px 32px rgba(46, 78, 115, 0.22);

  /* --- Compatibilità: alias storici mappati sulla nuova palette ---------
     Nota: --vc-navy è usato sia come colore di testo sia come sfondo;
     è mappato su una tonalità medio-scura del primario (#426A95) che
     garantisce il contrasto WCAG AA in entrambi gli usi. Analogamente
     --vc-cyan, usato anche come testo, punta a una tonalità scura del
     secondario per restare leggibile su sfondo chiaro. */
  --vc-navy:        var(--vc-p1-700);
  --vc-navy-2:      var(--vc-p1-900);
  --vc-navy-3:      var(--vc-p1-300);
  --vc-blue:        var(--vc-p1-700);
  --vc-blue-d:      var(--vc-p1-900);
  --vc-cyan:        var(--vc-p2-700);
  --vc-cyan-d:      var(--vc-p2-700);

  /* --- Neutri ----------------------------------------------------------- */
  --vc-ink:         #243240;
  --vc-muted:       #54626F;   /* scurito per contrasto WCAG AA */
  --vc-bg:          #EEF2F6;
  --vc-card:        #FFFFFF;
  --vc-line:        #DCE4EC;
  --vc-soft:        #E8EEF4;
  --vc-radius:      14px;
  --vc-radius-sm:   9px;
  --vc-shadow:      0 2px 14px rgba(46, 78, 115, .09);
  --vc-shadow-lg:   0 12px 40px rgba(46, 78, 115, .17);
  --vc-font:        'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ----------------------------- BASE -------------------------------------- */
* { box-sizing: border-box; }

html, body { height: 100%; }

/* Lo sfondo di base sta sull'elemento html: fa da ripiego se il canvas 3D
   non viene caricato. Il body è trasparente, così il canvas (z-index -1)
   resta visibile dietro al contenuto. */
html { background: var(--vc-bg); }

body {
  font-family: var(--vc-font);
  color: var(--vc-ink);
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* Link: tonalità scura del primario per contrasto WCAG AA su sfondo chiaro. */
a { color: var(--vc-p1-700); text-decoration: none; }
a:hover { color: var(--vc-p1-900); text-decoration: underline; }

/* Titoli: tonalità scura del primario, contrasto WCAG AA pieno su sfondo chiaro. */
h1, h2, h3, h4, h5, h6 { color: var(--vc-p1-700); font-weight: 700; line-height: 1.25; }

.vc-main { flex: 1 0 auto; position: relative; z-index: 1; }

.container { max-width: 1180px; }

/* Accessibilità: focus visibile coerente (WCAG 2.4.7). */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .vc-nav-link:focus-visible {
  outline: 3px solid var(--vc-p2-700);
  outline-offset: 2px;
}

/* Sezione: spaziatura verticale standard. */
/* Le sezioni hanno uno sfondo semi-trasparente (circa 85%): lasciano
   intravedere lo sfondo 3D animato senza compromettere il contrasto del
   testo (verificato WCAG 1.4.3 - resta ben oltre 4.5:1 anche nel caso
   peggiore, con un colore acceso dietro). */
.vc-section { padding: 72px 0; background: rgba(238, 242, 246, .84); }
.vc-section-sm { padding: 44px 0; background: rgba(238, 242, 246, .84); }
.vc-section-tint { background: rgba(232, 238, 244, .86); }
.vc-section-dark { background: var(--vc-grad-bg); color: #EAF1F8; }
.vc-section-dark h1, .vc-section-dark h2, .vc-section-dark h3 { color: #fff; }

.vc-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vc-cyan-d);
  margin-bottom: .5rem;
}

.vc-section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6rem; }
.vc-section-lead  { color: var(--vc-muted); font-size: 1.05rem; max-width: 720px; }

/* ----------------------------- HEADER ------------------------------------ */
.vc-header {
  background: #fff;
  border-bottom: 1px solid var(--vc-line);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 rgba(15, 42, 74, .04);
}

.vc-brand { color: var(--vc-navy); }
.vc-brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-right: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-navy-3));
  color: var(--vc-cyan);
  font-size: 1.25rem;
}
.vc-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.vc-brand-name { font-weight: 800; font-size: 1.18rem; color: var(--vc-navy); }
.vc-brand-accent { color: var(--vc-cyan-d); }
.vc-brand-sub { font-size: .7rem; color: var(--vc-muted); letter-spacing: .04em; }

.vc-nav-link {
  color: var(--vc-ink);
  font-weight: 600;
  font-size: .94rem;
  padding: .5rem .8rem;
  border-radius: var(--vc-radius-sm);
  text-decoration: none;
}
.vc-nav-link:hover { background: var(--vc-soft); color: var(--vc-navy); text-decoration: none; }
.vc-nav-link.is-active { color: var(--vc-blue); }

.vc-burger {
  background: var(--vc-soft);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-sm);
  width: 44px; height: 44px;
  font-size: 1.4rem;
  color: var(--vc-navy);
}

/* ----------------------------- BOTTONI ----------------------------------- */
.btn { font-weight: 600; border-radius: var(--vc-radius-sm); }

.vc-btn-primary {
  background: var(--vc-blue); border: 1px solid var(--vc-blue); color: #fff;
}
.vc-btn-primary:hover { background: var(--vc-blue-d); border-color: var(--vc-blue-d); color: #fff; }

.vc-btn-accent {
  /* Gradiente arancione su tonalità scure: il testo bianco in grassetto
     rispetta il contrasto WCAG AA per testo grande (rapporto >= 3:1).
     Il colore di marca Pantone 2018 C resta usato per badge ed elementi
     non testuali; qui si parte da una tonalità più scura per leggibilità. */
  background: linear-gradient(135deg, #DD6600 0%, var(--vc-p2-700) 100%);
  border: 1px solid var(--vc-p2-700);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(120, 56, 0, .55);
  box-shadow: 0 4px 14px rgba(204, 95, 0, .32);
}
.vc-btn-accent:hover {
  background: linear-gradient(135deg, var(--vc-p2-700) 0%, #A34C00 100%);
  border-color: #A34C00; color: #fff;
}

.vc-btn-navy {
  background: var(--vc-navy); border: 1px solid var(--vc-navy); color: #fff;
}
.vc-btn-navy:hover { background: var(--vc-navy-2); border-color: var(--vc-navy-2); color: #fff; }

.vc-btn-outline {
  background: transparent; border: 1px solid var(--vc-line); color: var(--vc-navy);
}
.vc-btn-outline:hover { background: var(--vc-soft); color: var(--vc-navy); }

.vc-btn-outline-light {
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff;
}
.vc-btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.vc-btn-outline-dark {
  background: transparent; border: 1px solid var(--vc-navy); color: var(--vc-navy);
}
.vc-btn-outline-dark:hover { background: var(--vc-navy); color: #fff; }

/* ----------------------------- HERO -------------------------------------- */
.vc-hero {
  position: relative;
  /* Sfondo: gradiente del Pantone 646 C (colore di marca). Un velo scuro
     semi-trasparente (overlay sotto, in ::before) garantisce il contrasto
     WCAG AA del testo pur mantenendo riconoscibile la tinta blu. */
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255,148,51,.20), transparent 60%),
    var(--vc-grad-hero);
  color: #EAF1F8;
  overflow: hidden;
  padding: 84px 0 76px;
}
.vc-hero::before {
  /* Velo scuro per la leggibilità del testo (WCAG 1.4.3). */
  content: "";
  position: absolute; inset: 0;
  background: rgba(30, 53, 82, .40);
  z-index: 0;
}
.vc-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(680px 360px at 78% 18%, #000, transparent 75%);
          mask-image: radial-gradient(680px 360px at 78% 18%, #000, transparent 75%);
}
.vc-hero > .container { position: relative; z-index: 1; }
.vc-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.vc-hero h1 .vc-hl { color: #FFB066; }
.vc-hero-lead { font-size: 1.16rem; color: #E3EDF4; max-width: 560px; }

.vc-hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.vc-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #FFFFFF;
  font-size: .82rem; font-weight: 600;
  padding: .35rem .75rem; border-radius: 999px;
}
.vc-pill i { color: #FFC68F; }

/* Scheda "card" decorativa nell'hero. */
.vc-hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--vc-radius);
  padding: 1.4rem;
  backdrop-filter: blur(2px);
}
.vc-hero-card .vc-hc-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 0; border-bottom: 1px dashed rgba(255,255,255,.12);
}
.vc-hero-card .vc-hc-row:last-child { border-bottom: 0; }
.vc-hero-card .vc-hc-ic {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px; background: rgba(255,119,1,.14); color: var(--vc-cyan);
}

/* ----------------------------- CARD GENERICA -----------------------------
   Elemento 3D: sfondo translucido + sfocatura dello sfondo (glassmorphism). */
.vc-card {
  background: var(--vc-glass-bg);
  -webkit-backdrop-filter: var(--vc-glass-blur);
          backdrop-filter: var(--vc-glass-blur);
  border: 1px solid var(--vc-glass-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-glass-shadow);
}
.vc-card-pad { padding: 1.5rem; }

/* Scheda servizio — anch'essa con effetto translucido in rilievo. */
.vc-service {
  background: var(--vc-glass-bg);
  -webkit-backdrop-filter: var(--vc-glass-blur);
          backdrop-filter: var(--vc-glass-blur);
  border: 1px solid var(--vc-glass-border);
  border-radius: var(--vc-radius);
  padding: 1.6rem;
  height: 100%;
  box-shadow: var(--vc-glass-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.vc-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--vc-shadow-lg);
  border-color: var(--vc-p2-300);
}
.vc-service-ic {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--vc-grad-el);
  border: 1px solid var(--vc-p2-700);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(204,95,0,.28);
}
.vc-service h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.vc-service p { color: var(--vc-muted); font-size: .94rem; margin-bottom: .8rem; }
.vc-service .vc-service-link {
  font-weight: 700; font-size: .9rem; color: var(--vc-blue);
}

/* Numero/step. */
.vc-step-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vc-navy); color: #FFC68F;
  font-weight: 800; font-size: 1.1rem;
}

/* ----------------------------- STAT / NUMERI ----------------------------- */
.vc-stat { text-align: center; padding: 1rem; }
.vc-stat-num {
  font-size: 2.2rem; font-weight: 800; color: var(--vc-navy);
  line-height: 1;
}
.vc-stat-num .vc-hl { color: var(--vc-cyan-d); }
.vc-stat-lbl { color: var(--vc-muted); font-size: .9rem; margin-top: .3rem; }

/* ----------------------------- BADGE / CHIP ------------------------------ */
.vc-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--vc-soft);
  border: 1px solid var(--vc-line);
  color: var(--vc-navy);
  font-size: .78rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 999px;
}
.vc-badge { font-weight: 600; font-size: .76rem; padding: .35em .65em; border-radius: 6px; }

/* ----------------------------- FORM -------------------------------------- */
.vc-form-card {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
  padding: 1.8rem;
}
.form-label { font-weight: 600; color: var(--vc-navy); font-size: .9rem; }
.form-control, .form-select {
  border-radius: var(--vc-radius-sm);
  border-color: var(--vc-line);
  padding: .58rem .8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--vc-cyan);
  box-shadow: 0 0 0 .2rem rgba(255,119,1,.18);
}
.vc-req { color: #d6336c; }

/* ----------------------------- MAGAZINE ---------------------------------- */
.vc-article-card {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  overflow: hidden;
  height: 100%;
  transition: transform .16s ease, box-shadow .16s ease;
}
.vc-article-card:hover { transform: translateY(-3px); box-shadow: var(--vc-shadow-lg); }
.vc-article-cover {
  height: 158px;
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-navy-3));
  display: grid; place-items: center;
  color: rgba(255,255,255,.28); font-size: 2.6rem;
  overflow: hidden;
}
/* Copertina con immagine reale: riempie il riquadro mantenendo le proporzioni. */
.vc-article-cover-img { background: var(--vc-soft); }
.vc-article-cover-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.vc-article-card:hover .vc-article-cover-img img { transform: scale(1.05); }

/* Immagine in evidenza in cima alla pagina dell'articolo. */
.vc-article-hero {
  margin: 0; border-radius: var(--vc-radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(30, 53, 82, .12);
}
.vc-article-hero img {
  width: 100%; height: auto; display: block;
  max-height: 460px; object-fit: cover;
}
.vc-article-body { padding: 1.15rem 1.25rem 1.35rem; }
.vc-article-body h3 { font-size: 1.05rem; margin: .35rem 0 .45rem; }
.vc-article-meta { font-size: .8rem; color: var(--vc-muted); }

/* Contenuto articolo / pagina. */
.vc-prose { font-size: 1.04rem; color: #2c3a4b; }
.vc-prose h2 { font-size: 1.4rem; margin: 1.8rem 0 .7rem; }
.vc-prose h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.vc-prose p  { margin-bottom: 1rem; }
.vc-prose ul, .vc-prose ol { margin-bottom: 1rem; padding-left: 1.3rem; }
.vc-prose blockquote {
  border-left: 4px solid var(--vc-cyan);
  background: var(--vc-soft);
  padding: .8rem 1.1rem; margin: 1.2rem 0;
  border-radius: 0 var(--vc-radius-sm) var(--vc-radius-sm) 0;
  color: var(--vc-navy);
}

/* ----------------------------- ACCORDION FAQ ----------------------------- */
.accordion-button {
  font-weight: 600; color: var(--vc-navy);
  border-radius: var(--vc-radius-sm) !important;
}
.accordion-button:not(.collapsed) {
  background: var(--vc-soft); color: var(--vc-navy);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(255,119,1,.2); }
.accordion-item { border-color: var(--vc-line); margin-bottom: .55rem; border-radius: var(--vc-radius-sm); }

/* ----------------------------- TESTIMONIANZE ----------------------------- */
.vc-quote {
  background: #fff; border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius); padding: 1.5rem; height: 100%;
}
.vc-quote-mark { color: var(--vc-cyan); font-size: 2rem; line-height: 0; }
.vc-quote p { color: #344256; font-style: italic; }
.vc-quote-author { font-weight: 700; color: var(--vc-navy); }
.vc-quote-role { font-size: .82rem; color: var(--vc-muted); }

/* ----------------------------- CTA BANNER -------------------------------- */
.vc-cta {
  background:
    radial-gradient(700px 280px at 90% 110%, rgba(255,119,1,.20), transparent 60%),
    linear-gradient(135deg, var(--vc-navy), var(--vc-navy-3));
  color: #fff; border-radius: var(--vc-radius);
  padding: 2.6rem;
}
.vc-cta h2 { color: #fff; }

/* ----------------------------- DASHBOARD / SIDEBAR ----------------------- */
/* L'area di amministrazione usa l'intera larghezza della finestra: quando
   un .container racchiude la dashboard (.vc-dash), il limite di larghezza
   di Bootstrap viene rimosso per sfruttare tutto lo spazio disponibile. */
.container:has(> .vc-dash) {
  max-width: 100%;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.vc-dash { display: flex; gap: 1.5rem; align-items: flex-start; }
.vc-sidebar {
  width: 248px; flex: none;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  overflow: hidden;
  position: sticky; top: 84px;
}
.vc-sidebar-head {
  background: var(--vc-navy); color: #fff;
  padding: 1rem 1.1rem;
}
.vc-sidebar-head .small { color: #E8EFF5; }
.vc-sidebar-nav { padding: .5rem; }
.vc-sidebar-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .7rem; border-radius: var(--vc-radius-sm);
  color: var(--vc-ink); font-weight: 600; font-size: .9rem;
  text-decoration: none;
}
.vc-sidebar-nav a:hover { background: var(--vc-soft); }
.vc-sidebar-nav a.is-active { background: var(--vc-blue); color: #fff; }
.vc-sidebar-nav a.vc-sb-child {
  padding-left: 1.7rem; font-size: .84rem; font-weight: 500;
}
.vc-sidebar-nav a.vc-sb-child i { font-size: .85rem; }
.vc-sidebar-nav .vc-sb-sep {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--vc-muted); padding: .8rem .7rem .25rem; font-weight: 700;
}
.vc-dash-main { flex: 1 1 auto; min-width: 0; }

/* KPI dashboard — elemento 3D translucido. */
.vc-kpi {
  background: var(--vc-glass-bg);
  -webkit-backdrop-filter: var(--vc-glass-blur);
          backdrop-filter: var(--vc-glass-blur);
  border: 1px solid var(--vc-glass-border);
  border-radius: var(--vc-radius); padding: 1.1rem 1.2rem;
  box-shadow: var(--vc-glass-shadow);
}
.vc-kpi-ic {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.2rem;
}
.vc-kpi-num { font-size: 1.7rem; font-weight: 800; color: var(--vc-navy); line-height: 1; }
.vc-kpi-lbl { color: var(--vc-muted); font-size: .82rem; }

/* Tabelle. */
.vc-table { background: #fff; border-radius: var(--vc-radius); overflow: hidden; }
.vc-table table { margin: 0; }
.vc-table thead th {
  background: var(--vc-soft); color: var(--vc-navy);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--vc-line);
}
.vc-table td, .vc-table th { vertical-align: middle; }

/* Thread messaggi. */
.vc-msg { max-width: 78%; padding: .7rem 1rem; border-radius: 12px; margin-bottom: .7rem; }
.vc-msg-in  { background: var(--vc-soft); border: 1px solid var(--vc-line); }
.vc-msg-out { background: var(--vc-navy); color: #E6EEF6; margin-left: auto; }
.vc-msg-meta { font-size: .72rem; opacity: .75; margin-top: .25rem; }

/* ----------------------------- AUTH ------------------------------------- */
.vc-auth-wrap {
  min-height: calc(100vh - 70px);
  display: grid; place-items: center;
  padding: 2.5rem 1rem;
}
.vc-auth-card {
  width: 100%; max-width: 430px;
  background: #fff; border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius); box-shadow: var(--vc-shadow-lg);
  padding: 2rem;
}

/* ----------------------------- FOOTER ------------------------------------ */
.vc-footer { background: var(--vc-grad-bg); color: #E8EFF5; flex-shrink: 0; }
.vc-footer-title {
  color: #fff; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: .8rem;
}
.vc-footer-link { color: #E8EFF5; line-height: 2; }
.vc-footer-link:hover { color: #FFE3C8; text-decoration: underline; }
.vc-owner-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--vc-radius-sm);
  padding: .8rem; color: #E8EFF5;
}
.vc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0; color: #8094A8;
}

/* ----------------------------- COOKIE BANNER ----------------------------- */
.vc-cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 1080; max-width: 560px; margin: 0 auto;
}
.vc-cookie-inner {
  background: #fff; border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius); box-shadow: var(--vc-shadow-lg);
  padding: 1.2rem 1.3rem;
}

/* Torna su. */
.vc-back-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--vc-navy); color: #fff; border: 0;
  display: none; place-items: center; font-size: 1.1rem;
  box-shadow: var(--vc-shadow-lg);
}
.vc-back-top.show { display: grid; }

/* ----------------------------- UTILITY ----------------------------------- */
.vc-divider { height: 1px; background: var(--vc-line); margin: 1.5rem 0; }
.text-cyan { color: var(--vc-cyan-d) !important; }
.bg-soft { background: var(--vc-soft) !important; }
.vc-list-check { list-style: none; padding-left: 0; }
.vc-list-check li {
  position: relative; padding-left: 1.7rem; margin-bottom: .5rem;
}
.vc-list-check li::before {
  content: "\F26E"; font-family: "bootstrap-icons";
  position: absolute; left: 0; top: .05rem; color: var(--vc-cyan-d);
}

/* ----------------------------- RESPONSIVE -------------------------------- */
.vc-mobile-menu { background: var(--vc-navy); width: 290px; }
.vc-mobile-nav a {
  display: flex; align-items: center; gap: .7rem;
  color: #E8EFF5; padding: .7rem .4rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
}
.vc-mobile-nav a:hover { color: #FFC68F; }
.vc-mobile-nav i { width: 20px; text-align: center; }

@media (max-width: 991.98px) {
  .vc-dash { flex-direction: column; }
  .vc-sidebar { width: 100%; position: static; }
  .vc-hero { padding: 56px 0 52px; }
  .vc-section { padding: 52px 0; }
}

@media print {
  .vc-header, .vc-footer, .vc-cookie-banner, .vc-back-top, .vc-sidebar { display: none !important; }
}

/* ===========================================================================
   BACK-OFFICE — utilità aggiuntive per le tabelle di gestione
   ===========================================================================*/
.vc-svc-ic-sm {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--vc-grad-el);
  border: 1px solid var(--vc-p2-700);
  color: #fff;
  font-size: 1.05rem;
}
.vc-table .table > :not(caption) > * > * { padding: .8rem 1rem; }
.vc-admin-toolbar { gap: .5rem; }
.vc-help-box {
  background: var(--vc-soft);
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: .9rem;
}

/* Barra di avviso sito (gestita da Impostazioni) */
.vc-announce {
  background: linear-gradient(135deg, #DD6600 0%, var(--vc-p2-700) 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120, 56, 0, .5);
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  padding: .5rem 0;
}
.vc-announce .container { padding-top: 0; padding-bottom: 0; }

/* ===========================================================================
   ELEMENTI TRANSLUCIDI (glassmorphism) — utility riutilizzabili
   ---------------------------------------------------------------------------
   .vc-glass        → pannello translucido chiaro (su sfondi chiari)
   .vc-glass-dark   → pannello translucido scuro  (su gradienti di sfondo)
   =========================================================================== */
.vc-glass {
  background: var(--vc-glass-bg);
  -webkit-backdrop-filter: var(--vc-glass-blur);
          backdrop-filter: var(--vc-glass-blur);
  border: 1px solid var(--vc-glass-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-glass-shadow);
}
.vc-glass-dark {
  background: var(--vc-glass-bg-dark);
  -webkit-backdrop-filter: var(--vc-glass-blur);
          backdrop-filter: var(--vc-glass-blur);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-glass-shadow);
}
/* Badge di stato del sito (online / manutenzione) nel pannello. */
.vc-site-status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px;
}
.vc-site-status.is-online {
  background: rgba(255,119,1,.14); color: var(--vc-p2-text);
}
.vc-site-status.is-maintenance {
  background: rgba(201,135,10,.16); color: #8A6007;
}

/* Pagina pubblica "sito in manutenzione". */
.vc-maintenance-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--vc-grad-bg); color: #E6EEF6; padding: 2rem;
}
.vc-maintenance-card {
  max-width: 540px; text-align: center;
  background: var(--vc-glass-bg-dark);
  -webkit-backdrop-filter: var(--vc-glass-blur);
          backdrop-filter: var(--vc-glass-blur);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-glass-shadow);
  padding: 2.6rem 2.2rem;
}
.vc-maintenance-ic {
  width: 76px; height: 76px; margin: 0 auto 1.2rem;
  display: grid; place-items: center; border-radius: 18px;
  background: var(--vc-grad-el); color: #fff; font-size: 2.1rem;
  box-shadow: 0 8px 22px rgba(204,95,0,.30);
}

/* ========================================================================== */
/*  CATALOGO SOFTWARE E SERVIZI                                               */
/*  Griglia di schede selezionabili, barra di selezione e modale richiesta.   */
/* ========================================================================== */

/* --- Filtri per categoria --- */
.vc-catalog-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1.2rem 0 1.6rem;
}
.vc-catalog-filter {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--vc-card);
  border: 1px solid var(--vc-line);
  color: var(--vc-p1-700);
  font-size: .86rem; font-weight: 600;
  padding: .42rem .85rem; border-radius: 999px;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.vc-catalog-filter:hover { background: var(--vc-soft); }
.vc-catalog-filter.is-active {
  background: var(--vc-p1-700); border-color: var(--vc-p1-700); color: #fff;
}
.vc-catalog-filter-n {
  font-size: .74rem; background: rgba(0,0,0,.10);
  padding: .04em .5em; border-radius: 999px;
}
.vc-catalog-filter.is-active .vc-catalog-filter-n { background: rgba(255,255,255,.22); }

/* --- Griglia delle schede --- */
.vc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  padding-bottom: 5rem; /* spazio per la barra fissa */
}

/* --- Scheda prodotto/servizio --- */
.vc-catalog-card {
  position: relative;
  background: var(--vc-card);
  border: 2px solid var(--vc-line);
  border-radius: var(--vc-radius);
  padding: 1.2rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.vc-catalog-card:hover {
  border-color: var(--vc-p1-300);
  box-shadow: var(--vc-shadow);
}
.vc-catalog-card:focus-visible {
  outline: 3px solid var(--vc-p2-700);
  outline-offset: 2px;
}
.vc-catalog-card.is-selected {
  border-color: var(--vc-p2-text);
  box-shadow: 0 0 0 3px rgba(255, 119, 1, .16);
}
.vc-catalog-card.is-hidden { display: none; }

/* Spunta di selezione (in alto a destra) */
.vc-catalog-check {
  position: absolute; top: .7rem; right: .7rem;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--vc-soft); color: transparent;
  border: 1px solid var(--vc-line);
  font-size: .9rem; transition: background .15s, color .15s;
}
.vc-catalog-card.is-selected .vc-catalog-check {
  background: var(--vc-p2-700); color: #fff; border-color: var(--vc-p2-700);
}

.vc-catalog-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .6rem;
}
.vc-catalog-ic {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,119,1,.14); color: var(--vc-p2-text);
  font-size: 1.4rem;
}
.vc-catalog-ver {
  font-size: .72rem; font-weight: 700;
  background: var(--vc-soft); color: var(--vc-p1-700);
  padding: .15em .55em; border-radius: 6px;
}
.vc-catalog-name {
  font-size: 1.02rem; font-weight: 700;
  color: var(--vc-p1-700); margin: 0 0 .15rem;
  padding-right: 1.8rem; line-height: 1.3;
}
.vc-catalog-cat {
  font-size: .74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--vc-muted); margin-bottom: .5rem;
}
.vc-catalog-desc {
  font-size: .9rem; color: var(--vc-ink); line-height: 1.55;
  margin-bottom: .7rem;
}
.vc-catalog-price {
  font-size: .84rem; font-weight: 600; color: #9E4A00;
  margin-bottom: .6rem;
}
.vc-catalog-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.vc-catalog-tag {
  font-size: .72rem; font-weight: 600;
  background: var(--vc-soft); color: var(--vc-p1-700);
  padding: .16em .55em; border-radius: 5px;
}

/* --- Barra di selezione fissa in basso --- */
.vc-catalog-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
  background: var(--vc-p1-900);
  border-top: 3px solid var(--vc-p2-700);
  box-shadow: 0 -6px 24px rgba(0,0,0,.22);
  padding: .7rem 0;
}
.vc-catalog-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.vc-catalog-bar-info { color: #fff; font-size: .95rem; }
.vc-catalog-bar-info strong { font-size: 1.2rem; color: #FFC68F; }
.vc-catalog-bar-actions { display: flex; gap: .5rem; }
.vc-catalog-bar .vc-btn-outline {
  border-color: rgba(255,255,255,.5); color: #fff;
}
.vc-catalog-bar .vc-btn-outline:hover {
  background: rgba(255,255,255,.12); color: #fff;
}

/* --- Modale richiesta --- */
.vc-modal {
  position: fixed; inset: 0; z-index: 1060;
  display: grid; place-items: center; padding: 1rem;
}
.vc-modal[hidden] { display: none; }
.vc-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 53, 82, .62);
}
.vc-modal-dialog {
  position: relative;
  background: var(--vc-card);
  border-radius: var(--vc-radius);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--vc-shadow-lg);
}
.vc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--vc-line);
}
.vc-modal-head h2 { color: var(--vc-p1-700); }
.vc-modal-x {
  background: none; border: 0; cursor: pointer;
  color: var(--vc-muted); font-size: 1.1rem; padding: .2rem .4rem;
  border-radius: 6px;
}
.vc-modal-x:hover { background: var(--vc-soft); color: var(--vc-ink); }
.vc-modal-body { padding: 1.2rem; }
.vc-modal-foot {
  display: flex; justify-content: flex-end; gap: .5rem;
  margin-top: 1.2rem;
}
.vc-modal-selected {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-bottom: 1rem;
}
.vc-modal-selected-item {
  font-size: .78rem; font-weight: 600;
  background: rgba(255,119,1,.14); color: #9E4A00;
  padding: .22em .6em; border-radius: 6px;
}

/* --- Responsive --- */
@media (max-width: 540px) {
  .vc-catalog-bar-inner { justify-content: center; }
  .vc-catalog-bar-actions { width: 100%; }
  .vc-catalog-bar-actions .btn { flex: 1; }
}

/* ========================================================================== */
/*  GENERAZIONE FAQ CON AI — selettore di modalità                            */
/* ========================================================================== */
.vc-faqai-tabs {
  display: flex; gap: .35rem; margin-bottom: .8rem;
}
.vc-faqai-tab {
  flex: 1;
  background: var(--vc-soft);
  border: 1px solid var(--vc-line);
  color: var(--vc-p1-700);
  font-size: .82rem; font-weight: 600;
  padding: .4rem .5rem; border-radius: var(--vc-radius-sm);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.vc-faqai-tab:hover { background: var(--vc-line); }
.vc-faqai-tab.is-active {
  background: var(--vc-p1-700); border-color: var(--vc-p1-700); color: #fff;
}
.vc-faqai-panel[hidden] { display: none; }

/* ========================================================================== */
/*  CONDIVISIONE SOCIAL E LINK AI PROFILI                                     */
/* ========================================================================== */

/* --- Riquadro di condivisione (articoli, pagine) --- */
.vc-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
  padding: 1rem 1.15rem;
  background: var(--vc-soft);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  margin: 1.6rem 0;
}
.vc-share-label {
  font-weight: 600; font-size: .92rem; color: var(--vc-p1-700);
  white-space: nowrap;
}
.vc-share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Pulsante singolo di condivisione */
.vc-share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--vc-line);
  background: var(--vc-card);
  color: var(--vc-p1-700);
  font-size: .85rem; font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.vc-share-btn:hover {
  color: #fff; text-decoration: none; transform: translateY(-1px);
}
.vc-share-btn:focus-visible {
  outline: 3px solid var(--vc-p2-700); outline-offset: 2px;
}
.vc-share-btn i { font-size: 1rem; }

/* Colori di marca al passaggio del mouse */
.vc-share-facebook:hover { background: #1877F2; border-color: #1877F2; }
.vc-share-x:hover        { background: #000000; border-color: #000000; }
.vc-share-linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.vc-share-whatsapp:hover { background: #1EA952; border-color: #1EA952; }
.vc-share-telegram:hover { background: #1E8FC4; border-color: #1E8FC4; }
.vc-share-reddit:hover    { background: #D93B00; border-color: #D93B00; }
.vc-share-pinterest:hover { background: #BD081C; border-color: #BD081C; }
.vc-share-bluesky:hover   { background: #0073DD; border-color: #0073DD; }
.vc-share-instagram:hover { background: #C13584; border-color: #C13584; }
/* Il pulsante "copia link" è un <button>: ne uniforma l'aspetto ai link. */
button.vc-share-btn { font-family: inherit; }
.vc-share-email:hover    { background: var(--vc-p1-700); border-color: var(--vc-p1-700); }

/* Variante compatta: solo icone */
.vc-share-inline {
  padding: 0; background: none; border: 0; margin: .6rem 0;
}
.vc-share-inline .vc-share-btn { padding: .42rem .55rem; }
.vc-share-inline .vc-share-btn-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Link ai profili social del sito --- */
.vc-social-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.vc-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background .15s, color .15s, transform .1s, border-color .15s;
}
.vc-social-link:focus-visible {
  outline: 3px solid var(--vc-p2-700); outline-offset: 2px;
}
.vc-social-link:hover { transform: translateY(-2px); text-decoration: none; }

/* Variante per il piè di pagina (sfondo scuro) */
.vc-social-footer .vc-social-link {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  color: #E8EFF5;
}
.vc-social-footer .vc-social-linkedin:hover  { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.vc-social-footer .vc-social-facebook:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.vc-social-footer .vc-social-x:hover         { background: #000000; border-color: #000000; color: #fff; }
.vc-social-footer .vc-social-github:hover    { background: #ffffff; border-color: #ffffff; color: #181717; }
.vc-social-footer .vc-social-youtube:hover   { background: #FF0000; border-color: #FF0000; color: #fff; }
.vc-social-footer .vc-social-instagram:hover { background: #E4405F; border-color: #E4405F; color: #fff; }
.vc-social-footer .vc-social-telegram:hover  { background: #26A5E4; border-color: #26A5E4; color: #fff; }

/* Titolo del blocco social nel footer */
.vc-footer-social-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #E8EFF5; margin-bottom: .6rem;
}

@media (max-width: 540px) {
  .vc-share { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================== */
/*  BRAND, MENU GESTITI E TRONCAMENTO VOCI                                    */
/* ========================================================================== */

/* --- Logo del brand nell'intestazione --- */
.vc-brand-logo {
  height: 42px; width: auto; max-width: 220px;
  object-fit: contain; display: block;
}

/* --- Voce di menu con sottomenu (desktop) --- */
.vc-nav-dropdown {
  background: none; border: 0; cursor: pointer;
  font: inherit;
}
.vc-nav-dropdown.dropdown-toggle::after {
  vertical-align: .15em; margin-left: .35em;
}

/* --- Menu mobile: intestazione di gruppo e sottovoci --- */
.vc-mobile-group {
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #B8CADB;
  padding: .8rem .4rem .2rem;
}
.vc-mobile-sub {
  padding-left: 1.5rem !important;
}
.vc-mobile-sub::before {
  content: "\2014"; /* trattino lungo */
  margin-right: .4rem; opacity: .5;
}

/* --- Troncamento dei link del footer a una sola riga (req. servizi) --- */
.vc-footer-link-clip {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Riga di sottovoce nella tabella di gestione dei menu */
.vc-menu-child-row > td { background: var(--vc-soft); }

/* ========================================================================== */
/*  RICERCA NEL SITO                                                          */
/* ========================================================================== */
.vc-search-form .input-group-text { border-right: 0; }
.vc-search-form .form-control { border-left: 0; }

.vc-search-results { display: flex; flex-direction: column; gap: .75rem; }

.vc-search-result {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--vc-card);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.vc-search-result:hover {
  border-color: var(--vc-p1-500);
  box-shadow: 0 4px 14px rgba(30, 53, 82, .08);
  transform: translateY(-1px);
  text-decoration: none;
}
.vc-search-result-icon {
  flex: none;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vc-soft);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--vc-p1-700);
}
.vc-search-result-body { flex: 1 1 auto; min-width: 0; }
.vc-search-result-type {
  display: inline-block;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--vc-p2-text);
  margin-bottom: .15rem;
}
.vc-search-result-title {
  display: block;
  font-weight: 600; font-size: 1.02rem;
  color: var(--vc-p1-700);
  margin-bottom: .2rem;
}
.vc-search-result-excerpt {
  display: block;
  font-size: .9rem; color: var(--vc-muted);
  line-height: 1.5;
}
.vc-search-result-arrow {
  flex: none; align-self: center;
  color: var(--vc-p1-500); font-size: 1.1rem;
}
.vc-header-search { padding-left: .7rem; padding-right: .7rem; }

/* ========================================================================== */
/*  HOME — ANIMAZIONI E MICRO-INTERAZIONI                                     */
/* ========================================================================== */

/* --- Comparsa allo scroll --- */
.vc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.vc-reveal.vc-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Parole rotanti nel titolo hero --- */
.vc-rotate {
  display: inline-block;
  transition: opacity .35s ease, transform .35s ease;
}
.vc-rotate.vc-rotate-out {
  opacity: 0;
  transform: translateY(-12px);
}

/* --- Sfondo hero animato (leggero, non invadente) --- */
.vc-hero { position: relative; overflow: hidden; }
.vc-hero::after {
  content: "";
  position: absolute; inset: -50% -10% auto auto;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse at center,
              rgba(255, 119, 1, .10), transparent 62%);
  pointer-events: none;
  animation: vc-hero-glow 14s ease-in-out infinite alternate;
}
@keyframes vc-hero-glow {
  from { transform: translate(0, 0) scale(1); opacity: .65; }
  to   { transform: translate(-8%, 6%) scale(1.15); opacity: 1; }
}

/* --- Micro-interazioni: card e pulsanti --- */
.vc-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.vc-section .vc-card:hover,
.vc-section-tint .vc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(30, 53, 82, .12);
}
.btn {
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.vc-btn-accent:hover {
  box-shadow: 0 6px 18px rgba(255, 119, 1, .35);
}
/* Le icone dei servizi reagiscono al passaggio sulla card. */
.vc-card:hover .vc-service-ic {
  transform: scale(1.08) rotate(-4deg);
  transition: transform .25s ease;
}

/* --- Conteggio risorse vivo (sezione magazine) --- */
.vc-live-count {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600;
  color: var(--vc-p2-text);
}
.vc-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2BA84A;
  animation: vc-pulse 2s ease-in-out infinite;
}
@keyframes vc-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .55; }
}

/* Rispetto della preferenza di sistema: niente movimento. */
@media (prefers-reduced-motion: reduce) {
  .vc-reveal, .vc-rotate, .vc-card, .btn,
  .vc-hero::after, .vc-live-dot,
  .vc-article-cover-img img {
    transition: none !important;
    animation: none !important;
  }
  .vc-reveal { opacity: 1; transform: none; }
}

/* ========================================================================== */
/*  ACCESSIBILITÀ — collegamento di salto al contenuto                        */
/* ========================================================================== */
.vc-skip-link {
  position: absolute;
  left: -999px; top: 0;
  z-index: 2000;
  background: var(--vc-p1-900);
  color: #fff;
  padding: .7rem 1.2rem;
  font-weight: 600;
  border-radius: 0 0 var(--vc-radius-sm) 0;
  text-decoration: none;
}
.vc-skip-link:focus {
  left: 0;
  outline: 3px solid var(--vc-p2-300);
  outline-offset: 2px;
}
#vc-contenuto:focus { outline: none; }

/* ========================================================================== */
/*  SFONDO 3D — animazione quantum / AI / LLM                                 */
/* ========================================================================== */
/* Canvas a tutta finestra, dietro a ogni contenuto. L'effetto è volutamente
   tenue per non compromettere la leggibilità (WCAG 1.4.3 / 1.4.11). */
#vc-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  /* z-index 0: il canvas sta sopra lo sfondo di base ma dietro al
     contenuto. L'intestazione fissa (z-index 1030), i menu a tendina e i
     banner restano molto più in alto e non vengono mai coperti.
     Le sezioni semi-trasparenti lo lasciano intravedere (vedi .vc-section). */
  z-index: 0;
  pointer-events: none;
  opacity: .7;
}
/* Le sezioni di contenuto si collocano sopra al canvas (vedi .vc-main).
   Avendo uno sfondo semi-trasparente, lasciano filtrare l'animazione 3D. */

/* Se l'utente preferisce meno animazioni, il canvas non viene mostrato. */
@media (prefers-reduced-motion: reduce) {
  #vc-bg-canvas { display: none; }
}
