/* Assistente Victor — stile (usa le variabili di style.css con valori di riserva) */
.vvbot { position: fixed; right: 16px; bottom: 16px; z-index: 9000; font-family: var(--font-body, 'Manrope', sans-serif); color: var(--c-text, #1A1A1E); }
.vvbot [hidden] { display: none !important; }

.vvbot-fab { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 24px 0 18px; border: 2px solid #fff; border-radius: 29px; cursor: pointer;
  background: var(--c-magenta, #CB2168); color: #fff; font: 800 17px/1 var(--font-heading, 'Barlow', sans-serif); letter-spacing: .02em; box-shadow: 0 8px 26px rgba(203, 33, 104, .55); }
.vvbot-fab:hover { filter: brightness(1.08); transform: translateY(-1px); }
.vvbot-fab.is-open { animation: none; }
.vvbot-fab:focus-visible { outline: 3px solid var(--c-navy, #053063); outline-offset: 3px; }
.vvbot-tip { position: absolute; right: 0; bottom: 72px; width: min(260px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 4px; padding: 12px 8px 12px 14px;
  background: #fff; color: var(--c-navy, #053063); border-radius: var(--card-radius, 12px); box-shadow: 0 10px 30px rgba(5, 48, 99, .35); }
.vvbot-tip::after { content: ''; position: absolute; right: 36px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.vvbot-tip-txt { flex: 1; padding: 0; border: 0; background: none; color: inherit; font: 700 14px/1.4 var(--font-body, 'Manrope', sans-serif); text-align: left; cursor: pointer; }
.vvbot-tip-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: #5b5b66; font-size: 18px; line-height: 1; cursor: pointer; }
.vvbot-tip-x:hover { background: #eee; }
.vvbot-tip-txt:focus-visible, .vvbot-tip-x:focus-visible { outline: 3px solid var(--c-magenta, #CB2168); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .vvbot-fab:not(.is-open) { animation: vvbot-pulse 2.4s ease-out infinite; }
  @keyframes vvbot-pulse { 0% { box-shadow: 0 8px 26px rgba(203, 33, 104, .55), 0 0 0 0 rgba(203, 33, 104, .55); } 70% { box-shadow: 0 8px 26px rgba(203, 33, 104, .55), 0 0 0 16px rgba(203, 33, 104, 0); } 100% { box-shadow: 0 8px 26px rgba(203, 33, 104, .55), 0 0 0 0 rgba(203, 33, 104, 0); } }
}
.vvbot-fab:focus-visible, .vvbot-chip:focus-visible, .vvbot-close:focus-visible, .vvbot-send:focus-visible, .vvbot-input:focus-visible, .vvbot-link:focus-visible { outline: 3px solid var(--c-magenta, #CB2168); outline-offset: 2px; }
.vvbot-fab-ico { font-size: 24px; }
.vvbot-fab.is-open .vvbot-fab-txt { display: none; }
.vvbot-fab.is-open { width: 58px; padding: 0; justify-content: center; }

.vvbot-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #fff; border-radius: var(--card-radius, 12px); overflow: hidden; box-shadow: 0 14px 44px rgba(5, 48, 99, .35); }

.vvbot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; background: var(--c-navy, #053063); color: #fff; }
.vvbot-title { display: flex; flex-direction: column; gap: 2px; }
.vvbot-title strong { font: 700 16px/1.2 var(--font-heading, 'Barlow', sans-serif); letter-spacing: .02em; }
.vvbot-title span { font-size: 12px; opacity: .8; }
.vvbot-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.vvbot-close:hover { background: rgba(255, 255, 255, .3); }

.vvbot-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--c-gray-light, #F4F4F6); display: flex; flex-direction: column; gap: 10px; }
.vvbot-row { display: flex; }
.vvbot-user { justify-content: flex-end; }
.vvbot-bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.vvbot-bubble p { margin: 0; white-space: pre-line; }
.vvbot-user .vvbot-bubble { background: var(--c-azzurro, #008CFD); color: #fff; }
.vvbot-link { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: var(--btn-radius, 3px); background: var(--c-navy, #053063); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.vvbot-link:hover { background: var(--c-azzurro-dark, #0070D6); }
.vvbot-note { margin: 0; font-size: 11.5px; color: #5b5b66; text-align: center; }

.vvbot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vvbot-chips-col { flex-direction: column; align-items: flex-start; }
.vvbot-chip { padding: 8px 12px; border: 1.5px solid var(--c-azzurro, #008CFD); border-radius: 18px; background: #fff; color: var(--c-navy, #053063);
  font: 600 13px/1.3 var(--font-body, 'Manrope', sans-serif); text-align: left; cursor: pointer; }
.vvbot-chip:hover { background: var(--c-azzurro, #008CFD); color: #fff; }

.vvbot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e3e8; background: #fff; }
.vvbot-input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1.5px solid #c9c9d1; border-radius: var(--btn-radius, 3px); font: 400 16px var(--font-body, 'Manrope', sans-serif); }
.vvbot-send { height: 42px; padding: 0 16px; border: 0; border-radius: var(--btn-radius, 3px); background: var(--c-magenta, #CB2168); color: #fff; font: 700 14px var(--font-body, 'Manrope', sans-serif); cursor: pointer; }
.vvbot-send:hover { filter: brightness(.92); }

@media (max-width: 480px) {
  .vvbot { right: 12px; bottom: 12px; }
  .vvbot-panel { position: fixed; right: 0; left: 0; bottom: 0; width: auto; height: min(78vh, 600px); border-radius: 16px 16px 0 0; }
  .vvbot-fab.is-open { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .vvbot-panel { animation: vvbot-in .18s ease-out; }
  @keyframes vvbot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
