/* Solo presentazione: superfici e testo ereditano la palette dello Studio. */
.voce-open, .voce-open-wizard, .gallery-header .scaldamento-actions .voce-open { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 12px; background: linear-gradient(125deg,#64e5d0,#2cb9ad); color: #073d38; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px #2cb9ad22; }
.gallery-header .scaldamento-actions .voce-open { width: 100%; margin: 0; }
.voce-open-wizard { margin-top: 16px; max-width: 100%; }
.voce-open:hover, .voce-open-wizard:hover { filter: brightness(1.07); }
.vc-shell { --vc-teal: #37c8b5; color: var(--text,#25252d); font: inherit; min-width: 0; }
.vc-shell, .vc-shell * { box-sizing: border-box; }
.vc-shell [hidden] { display: none !important; }
.vc-shell :is(h2,h3,h4,p) { overflow-wrap: anywhere; }
.vc-shell h2 { font-size: clamp(21px,2.5vw,28px); line-height: 1.25; margin: 5px 0 10px; color: inherit; }
.vc-shell h3 { margin: 10px 0; font-size: 19px; line-height: 1.4; color: inherit; }
.vc-shell h4 { margin: 20px 0 10px; font-size: 14px; }
.vc-shell p { line-height: 1.65; }
.vc-shell small, .vc-muted { color: var(--text-muted,#686874); font-size: 13px; line-height: 1.6; }
.vc-shell .vc-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 15px; margin: 0; border: 1px solid var(--border-soft,#d4d4dc); border-radius: 10px; background: var(--bg-soft,#f6f6f8); color: var(--text,#25252d); text-decoration: none; font: inherit; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.vc-shell .vc-primary { color: #073d38; background: #64e5d0; border-color: #64e5d0; }
.vc-shell .vc-btn:hover:not(:disabled) { border-color: var(--vc-teal); filter: brightness(1.07); }
.vc-shell :disabled { opacity: .45; cursor: not-allowed; }
.vc-shell :is(button,a,input,textarea,[tabindex]):focus-visible, .voce-open:focus-visible, .voce-open-wizard:focus-visible { outline: 3px solid var(--accent,#6c4bf4); outline-offset: 3px; }
.vc-head { margin-top: 24px; justify-content: flex-start; flex-wrap: nowrap; }
.vc-head > div:last-child { min-width: 0; }
.vc-avatar { flex: 0 0 58px; height: 58px; border-radius: 50%; background: var(--bg-soft,#f1f1f5); display: grid; place-items: center; font-size: 25px; overflow: hidden; border: 2px solid var(--border-soft,#ddd); }
.vc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vc-eyebrow { font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--text-muted,#686874); }
.vc-box { border: 1px solid var(--border,#ddd); background: var(--bg-input,#fff); border-radius: 16px; padding: 22px; margin: 22px 0; min-width: 0; }
.vc-row, .vc-actions, .vc-section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.vc-row, .vc-section-head { justify-content: space-between; }
.vc-actions { margin-top: 16px; }
.vc-pc { padding: 14px 18px; }
.vc-connection { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; overflow-wrap: anywhere; }
.vc-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #92929e; }
.vc-online { background: #35bd7e; box-shadow: 0 0 0 4px #35bd7e19; }
.vc-offline { background: #e5484d; }
.vc-pulse { animation: vc-pulse 1.4s ease-in-out infinite; }
.vc-help { border-top: 1px solid var(--border,#ddd); margin-top: 14px; font-size: 13px; line-height: 1.8; }
.vc-help ol { padding-left: 20px; }
.vc-chip { display: inline-block; font-size: 11px; border: 1px solid var(--border-soft,#ddd); border-radius: 30px; padding: 5px 9px; color: var(--text-muted,#686874); }
.vc-warning { display: inline-block; background: #fff0bf; color: #704900; padding: 6px 9px; font-size: 12px; border-radius: 7px; margin: 5px 0; overflow-wrap: anywhere; }
.vc-shell .vc-error { color: #b52834; background: #ffe8eb; border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }
.vc-error .vc-btn { margin-left: 10px; }
.vc-success { color: #147850; background: #ddf8e9; padding: 8px 12px; border-radius: 8px; width: fit-content; }
.vc-steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; margin: 28px 0 32px; gap: 8px; }
.vc-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted,#686874); padding: 12px 0; border-bottom: 2px solid var(--border,#ddd); }
.vc-steps li > span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--border-soft,#ddd); border-radius: 50%; flex-shrink: 0; }
.vc-steps [aria-current] { color: var(--text,#25252d); border-color: var(--vc-teal); }
.vc-steps [aria-current] > span, .vc-steps .vc-done > span { color: #073d38; background: #64e5d0; border-color: #64e5d0; }
.vc-job { background: var(--bg-soft,#f6f6f8); padding: 16px; border-radius: 12px; font-size: 13px; margin-bottom: 18px; }
.vc-job progress { width: 100%; height: 5px; display: block; margin-top: 14px; accent-color: var(--vc-teal); }
.vc-job:has(progress) strong::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--border-soft,#ccc); border-top-color: var(--vc-teal); border-radius: 50%; animation: vc-spin .8s linear infinite; vertical-align: middle; }
.vc-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 22px 0 32px; }
.vc-card { min-width: 0; border: 1px solid var(--border,#ddd); border-radius: 16px; padding: 18px; background: var(--bg-input,#fff); display: flex; flex-direction: column; }
.vc-card h3 { font-size: 16px; min-height: 45px; }
.vc-card .vc-actions { margin-top: auto; padding-top: 18px; }
.vc-card .vc-actions .vc-primary { flex: 1; }
.vc-number { font-size: 28px; font-weight: 600; letter-spacing: -.05em; color: var(--text-muted,#686874); }
.vc-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 65px; overflow: hidden; }
.vc-wave i { width: 3px; height: var(--h); border-radius: 4px; background: var(--text-muted,#9a9aa7); opacity: .35; flex-shrink: 1; }
.vc-playing .vc-wave i, .vc-generating .vc-wave i { background: var(--vc-teal); opacity: .85; animation: vc-wave .8s ease-in-out var(--d) infinite alternate; }
.vc-shell audio { display: block; width: 100%; min-width: 0; height: 42px; border-radius: 30px; }
.vc-player { min-width: 0; margin: 8px 0 12px; }
.vc-confirm { border: 1px solid var(--vc-teal); background: linear-gradient(120deg,#37c8b514,transparent),var(--bg-input,#fff); }
.vc-confirm .vc-player { max-width: 480px; }
.vc-identity { border-color: var(--vc-teal); background: linear-gradient(110deg,#37c8b514,transparent),var(--bg-input,#fff); }
.vc-identity .vc-player { max-width: 520px; }
.vc-locked { background: var(--bg-soft,#f6f6f8); }
.vc-preset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.vc-shell .vc-preset { text-align: left; padding: 15px; min-height: 115px; border: 1px solid var(--border-soft,#ddd); border-radius: 12px; color: var(--text,#25252d); background: var(--bg-soft,#f6f6f8); display: grid; gap: 8px; font: inherit; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.vc-preset:hover:not(:disabled) { border-color: var(--vc-teal); }
.vc-preset strong { font-size: 14px; }
.vc-preset > span { font-size: 23px; }
.vc-empty { padding: 24px; border: 1px dashed var(--border-soft,#ccc); border-radius: 12px; color: var(--text-muted,#686874); font-size: 13px; text-align: center; line-height: 1.6; }
.vc-composer { border-top: 1px solid var(--border,#ddd); margin-top: 26px; padding-top: 22px; scroll-margin: 24px; }
.vc-shell label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.vc-shell :is(textarea,input:not([type=checkbox]):not([type=range])) { display: block; width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--border-soft,#ccc); border-radius: 10px; padding: 12px; background: var(--bg-soft,#f6f6f8); color: var(--text,#25252d); font: inherit; min-height: 44px; }
.vc-shell textarea { resize: vertical; line-height: 1.7; margin-bottom: 8px; }
.vc-shell .vc-speed { display: flex; align-items: center; gap: 12px; margin: 15px 0; color: var(--text-muted,#686874); font-size: 12px; font-weight: 400; }
.vc-speed input { flex: 1; min-width: 0; width: 100%; height: 44px; accent-color: var(--vc-teal); }
.vc-shell .vc-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.vc-check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--vc-teal); }
.vc-result { border-top: 1px solid var(--border,#ddd); margin-top: 25px; padding-top: 8px; }
.vc-result small { display: block; margin-top: 12px; }
.vc-drop { border: 1px dashed var(--border-soft,#ccc); background: var(--bg-soft,#f6f6f8); border-radius: 12px; padding: 22px; text-align: center; margin: 18px 0; }
.vc-drop > span { display: block; font-size: 30px; color: var(--text-muted,#686874); }
.vc-drop label { margin-top: 8px; font-weight: 400; }
.vc-drop input { font-size: 12px !important; }
.vc-drop input::file-selector-button { min-height: 44px; border: 0; border-radius: 7px; margin-right: 8px; cursor: pointer; }
.vc-drop.vc-drag { border-color: var(--vc-teal); background: #37c8b51a; }
.vc-transcript { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; background: var(--bg-soft,#f6f6f8); border-radius: 10px; line-height: 1.7; margin-bottom: 12px; }
.vc-shell footer { border-top: 1px solid var(--border,#ddd); padding-top: 20px; margin-top: 28px; }
.vc-shell footer > .vc-btn { background: transparent; color: var(--text-muted,#686874); }
.vc-shell footer section .vc-btn { margin: 12px 8px 0 0; }
/* Chat e scelte: superfici della palette Studio, accenti leggibili nei due temi. */
.vc-choices, .vc-chat, .vc-guide { margin-top: 28px; min-width: 0; }
.vc-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.vc-summary .vc-chip { background: #37c8b514; color: inherit; font-size: 13px; }
.vc-choice-group { border: 1px solid var(--border-soft,#ddd); border-radius: 14px; margin: 12px 0; padding: 12px; min-width: 0; }
.vc-shell summary { min-height: 44px; padding: 10px 4px; cursor: pointer; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.vc-shell summary:focus-visible { outline: 3px solid var(--accent,#6c4bf4); outline-offset: 3px; border-radius: 6px; }
.vc-choice-body > p { margin: 0 0 14px; }
.vc-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.vc-shell .vc-option { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: relative; text-align: left; min-width: 0; min-height: 44px; padding: 14px; border: 2px solid var(--border-soft,#ddd); border-radius: 14px; background: var(--bg-soft,#f6f6f8); color: inherit; font: inherit; cursor: pointer; overflow-wrap: anywhere; line-height: 1.5; }
.vc-option > span:not(.vc-option-icon) { font-size: 14px; }
.vc-option .vc-option-icon { font-size: 30px; line-height: 1.3; }
.vc-option strong { font-size: 17px; }
.vc-option[aria-pressed=true] { border-color: var(--vc-teal); background: linear-gradient(#37c8b51c,#37c8b51c),var(--bg-input,#fff); box-shadow: 0 0 0 1px var(--vc-teal); }
.vc-option:hover:not(:disabled) { border-color: var(--vc-teal); }
.vc-shell .vc-recommended { border-radius: 7px; background: #d9f8e8; color: #165439; padding: 3px 6px; font-size: 12px; }
.vc-option .vc-risk { margin-top: auto; font-size: 12px; }
.vc-chat { border-top: 1px solid var(--border-soft,#ddd); padding-top: 20px; }
.vc-chat-list { height: 460px; max-height: 65vh; min-height: 220px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; border-radius: 16px; border: 1px solid var(--border-soft,#ddd); background: linear-gradient(140deg,#37c8b50b,transparent),var(--bg-soft,#f6f6f8); padding: 18px; overflow-anchor: none; }
.vc-message { display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px; min-width: 0; }
.vc-bubble { min-width: 0; padding: 14px; border: 1px solid var(--border-soft,#ddd); border-radius: 18px; overflow-wrap: anywhere; }
.vc-bubble p { margin: 6px 0; white-space: pre-wrap; }
.vc-bubble > strong { font-size: 13px; }
.vc-sent { align-self: flex-end; max-width: 85%; background: linear-gradient(#37c8b522,#37c8b522),var(--bg-input,#fff); border-radius: 18px 18px 4px 18px; }
.vc-sent small { display: block; font-size: 11px; }
.vc-reply { display: flex; align-items: flex-start; gap: 9px; min-width: 0; width: min(92%,650px); }
.vc-reply .vc-avatar { flex: 0 0 32px; height: 32px; font-size: 18px; }
.vc-received { flex: 1; background: var(--bg-input,#fff); border-radius: 4px 18px 18px 18px; }
.vc-received .vc-warning { display: block; }
.vc-received .vc-wave { height: 45px; }
.vc-received .vc-actions { gap: 6px; margin-top: 10px; }
.vc-received .vc-btn { font-size: 12px; padding: 8px 10px; }
.vc-chat-empty { text-align: center; max-width: 360px; margin: 45px auto; }
.vc-chat-empty > span { font-size: 40px; }
.vc-chat-empty .vc-btn { font-size: 16px; font-weight: 400; border-radius: 16px 16px 16px 4px; }
.vc-chat .vc-composer { margin-top: 16px; padding-top: 0; border: 0; }
.vc-text-check { padding: 12px; margin-bottom: 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.vc-text-check small { display: block; color: inherit; }
.vc-vote-si { background: #35bd7e19; }
.vc-vote-forse { background: #eebc3224; }
.vc-vote-no { background: #e5484d16; }
.vc-vote-vuoto { background: var(--bg-soft,#f6f6f8); }
.vc-compose-row { display: flex; gap: 10px; align-items: flex-end; }
.vc-compose-row textarea { flex: 1; resize: none; max-height: 240px; overflow-y: auto; }
.vc-shell .vc-send { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; padding: 0; font-size: 22px; margin-bottom: 8px; }
.vc-guide { border: 1px solid var(--border-soft,#ddd); border-radius: 14px; padding: 12px; }
.vc-guide table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 12px 0 24px; font-size: 16px; line-height: 1.55; }
.vc-guide caption { text-align: left; font-weight: 700; padding: 12px 0; font-size: 18px; }
.vc-guide th, .vc-guide td { padding: 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--border-soft,#ddd); }
.vc-guide th { font-weight: 600; }
@media (min-width: 761px) {
  .vc-choice-group > .vc-choice-body { display: block !important; }
  .vc-choice-group::details-content { content-visibility: visible; }
  .vc-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .vc-choice-grid.vc-emotions { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .vc-choice-group { padding: 10px; }
  .vc-choice-grid { gap: 8px; }
  .vc-shell .vc-option { padding: 10px; }
  .vc-option strong { font-size: 16px; }
  .vc-chat-list { padding: 10px; }
  .vc-reply { width: 100%; gap: 6px; }
  .vc-reply .vc-avatar { flex-basis: 26px; height: 26px; }
  .vc-bubble { padding: 10px; }
  .vc-guide { padding: 8px; }
  .vc-guide th, .vc-guide td { padding: 8px; }
}
@keyframes vc-wave { to { transform: scaleY(.35); } }
@keyframes vc-spin { to { transform: rotate(360deg); } }
@keyframes vc-pulse { 50% { opacity: .35; } }
@media (max-width: 1000px) { .vc-grid, .vc-preset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
  #voce.content-section { padding: 14px; min-width: 0; }
  .vc-head { gap: 12px; }
  .vc-avatar { flex-basis: 42px; height: 42px; }
  .vc-eyebrow { font-size: 9px; letter-spacing: .08em; }
  .vc-box { padding: 16px; }
  .vc-grid, .vc-preset-grid { grid-template-columns: minmax(0,1fr); }
  .vc-steps { gap: 6px; }
  .vc-steps li { gap: 6px; font-size: 12px; }
  .vc-steps li > span { width: 25px; height: 25px; }
  .vc-section-head { align-items: stretch; flex-direction: column; }
  .vc-shell textarea, .vc-shell input { font-size: 16px; }
  .vc-actions > * { flex: 1 1 auto; }
  .vc-drop { padding: 14px; }
  .vc-head .vc-warning { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .vc-shell *, .vc-shell *::before { animation: none !important; scroll-behavior: auto !important; } }
