/* ==========================================================================
   CV Studio — design system
   I colori sono variabili CSS generate dal tema (vedi App\Theme).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
pre { background: var(--surface-2); padding: 1rem; border-radius: calc(var(--radius) - 4px); overflow: auto; max-height: 480px; border: 1px solid var(--border); }
::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--primary); color: var(--primary-contrast); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; text-decoration: none; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.xsmall { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .grow { flex: 1 1 auto; min-width: 0; }
.hidden, [hidden] { display: none !important; }
.nav-overlay { display: none; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); } .text-primary { color: var(--primary); }

/* ---------------------------------------------------------------- Pulsanti */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .62rem 1.05rem; min-height: 42px;
  font: inherit; font-size: .925rem; font-weight: 600; line-height: 1.2; color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: calc(var(--radius) - 2px); cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, color .15s; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--primary-contrast); --btn-bd: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px color-mix(in srgb, var(--primary) 28%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); border-color: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 88%, #000); border-color: color-mix(in srgb, var(--danger) 88%, #000); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-soft { --btn-bg: color-mix(in srgb, var(--primary) 11%, var(--surface)); --btn-fg: var(--primary); --btn-bd: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); border-color: transparent; }
.btn-sm { padding: .4rem .7rem; min-height: 34px; font-size: .84rem; }
.btn-lg { padding: .85rem 1.4rem; min-height: 50px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 38px; min-height: 38px; }
.btn-icon.btn-sm { width: 32px; min-height: 32px; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; flex-wrap: wrap; gap: .5rem; }

/* ---------------------------------------------------------------- Form */
.field { margin-bottom: 1.05rem; }
.label, label.label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .38rem; color: var(--heading); }
.label .opt { font-weight: 400; color: var(--text-muted); }
.input, .select, .textarea {
  display: block; width: 100%; padding: .62rem .8rem; min-height: 42px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px);
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.input[readonly] { background: var(--surface-2); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input-color { padding: 4px; width: 52px; height: 42px; cursor: pointer; }
.help { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }
.error-text { font-size: .82rem; color: var(--danger); margin-top: .35rem; }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 2.8rem; }
.input-group .input-action { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon .input { padding-left: 2.4rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .span-2, .form-grid-3 .span-3 { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .92rem; line-height: 1.4; margin-bottom: .6rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-size: .93rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: color-mix(in srgb, var(--text-muted) 40%, var(--border)); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .desc { font-size: .84rem; color: var(--text-muted); margin-top: 2px; }
.setting-row .title { font-weight: 600; color: var(--heading); }

.pw-meter { height: 5px; border-radius: 99px; background: var(--surface-2); margin-top: .5rem; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.pw-meter[data-score="2"] span { background: var(--warning); }
.pw-meter[data-score="3"] span, .pw-meter[data-score="4"] span { background: var(--success); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Card e superfici */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card-body { padding: 1.4rem; }
.card-header { padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.05rem; }
.card-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); border-radius: 0 0 var(--radius) var(--radius); }
.card + .card { margin-top: 1.25rem; }
.grid > .card + .card, .grid > * > .card + .card.mt-0 { margin-top: 0; }
.card-title-icon { display: inline-flex; align-items: center; gap: .6rem; }
.card-title-icon .bubble { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main-side { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.stat { padding: 1.15rem 1.25rem; display: flex; gap: 1rem; align-items: center; }
.stat .stat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); flex-shrink: 0; }
.stat .stat-icon .icon { width: 22px; height: 22px; }
.stat .stat-value { font-size: 1.55rem; font-weight: 750; color: var(--heading); line-height: 1.1; letter-spacing: -.02em; }
.stat .stat-label { font-size: .82rem; color: var(--text-muted); }
.stat.success .stat-icon { background: color-mix(in srgb, var(--success) 13%, var(--surface)); color: var(--success); }
.stat.warning .stat-icon { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning); }
.stat.danger .stat-icon { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.stat.info .stat-icon { background: color-mix(in srgb, var(--info) 12%, var(--surface)); color: var(--info); }

/* ---------------------------------------------------------------- Badge e alert */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 99px; font-size: .74rem; font-weight: 650; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap; }
.badge-primary { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); border-color: transparent; }
.badge-success { background: color-mix(in srgb, var(--success) 13%, var(--surface)); color: var(--success); border-color: transparent; }
.badge-warning { background: color-mix(in srgb, var(--warning) 15%, var(--surface)); color: var(--warning); border-color: transparent; }
.badge-danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-color: transparent; }
.badge-info { background: color-mix(in srgb, var(--info) 12%, var(--surface)); color: var(--info); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

.alert { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); background: var(--surface); margin-bottom: 1rem; font-size: .92rem; align-items: flex-start; }
.alert > .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.alert-success > .icon { color: var(--success); }
.alert-error, .alert-danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.alert-error > .icon, .alert-danger > .icon { color: var(--danger); }
.alert-warning { border-color: color-mix(in srgb, var(--warning) 40%, transparent); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.alert-warning > .icon { color: var(--warning); }
.alert-info { border-color: color-mix(in srgb, var(--info) 35%, transparent); background: color-mix(in srgb, var(--info) 7%, var(--surface)); }
.alert-info > .icon { color: var(--info); }

/* Toast (messaggi flash) */
.toasts { position: fixed; z-index: 900; right: 16px; top: 16px; display: flex; flex-direction: column; gap: .6rem; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); font-size: .9rem; animation: toast-in .25s ease-out; }
.toast .icon { margin-top: 1px; }
.toast-success .icon { color: var(--success); } .toast-error .icon { color: var(--danger); } .toast-warning .icon { color: var(--warning); } .toast-info .icon { color: var(--info); }
.toast .toast-close { margin-left: auto; background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 0; }
.toast.leaving { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }

/* ---------------------------------------------------------------- Tabelle */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 650; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.table .actions { text-align: right; white-space: nowrap; }
.table .cell-user { display: flex; align-items: center; gap: .7rem; min-width: 200px; }
.table code { font-size: .8rem; }
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--border); padding: .5rem 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem 1rem; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); text-align: left; }
  .table-stack td.actions { justify-content: flex-end; }
  .table-stack td.actions::before { content: none; }
}

/* ---------------------------------------------------------------- Paginazione */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; }
.pagination ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination span.current, .pagination span.disabled, .pagination span.ellipsis { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .55rem; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--text); border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.current { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); }
.pagination span.disabled { opacity: .4; }
.pagination span.ellipsis { border: 0; background: none; }
.pagination-info { font-size: .85rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- Avatar */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.avatar-xs { width: 28px; height: 28px; font-size: .7rem; }
.avatar-sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar-md { width: 42px; height: 42px; font-size: .9rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-xl { width: 112px; height: 112px; font-size: 2rem; }
.avatar-initials { background: hsl(var(--h, 230) 65% 92%); color: hsl(var(--h, 230) 55% 35%); font-weight: 700; letter-spacing: .02em; }
:root[data-theme="dark"] .avatar-initials { background: hsl(var(--h, 230) 35% 25%); color: hsl(var(--h, 230) 70% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar-initials { background: hsl(var(--h, 230) 35% 25%); color: hsl(var(--h, 230) 70% 82%); } }

/* ---------------------------------------------------------------- Tab, dropdown, modale */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .95rem; color: var(--text-muted); font-weight: 600; font-size: .9rem; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; text-decoration: none; font-family: inherit; }
.tabs a:hover, .tabs button:hover { color: var(--heading); }
.tabs a.active, .tabs button.active, .tabs [aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel[hidden] { display: none; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); padding: .4rem; z-index: 300; display: none; }
.dropdown.open .dropdown-menu { display: block; animation: toast-in .15s ease-out; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border-radius: 9px; color: var(--text); font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; text-decoration: none; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .danger { color: var(--danger); }
.dropdown-menu hr { margin: .35rem 0; }
.dropdown-header { padding: .55rem .7rem; font-size: .82rem; color: var(--text-muted); }

.modal { position: fixed; inset: 0; z-index: 800; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 32, .55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: calc(var(--radius) + 4px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: toast-in .2s ease-out; border: 1px solid var(--border); }
.modal-dialog.wide { width: min(820px, 100%); }
.modal-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-header h2 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 1.4rem; }
.modal-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }

.empty { text-align: center; padding: 3rem 1.5rem; }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1rem; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.empty .empty-icon .icon { width: 30px; height: 30px; }
.empty h3 { margin-bottom: .3rem; }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; }

.kv { display: grid; grid-template-columns: minmax(130px, 35%) 1fr; gap: .55rem 1rem; font-size: .9rem; margin: 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ==========================================================================
   Layout: area applicazione (utente e admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); padding: 1.1rem .9rem 5.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; border-right: 1px solid color-mix(in srgb, var(--border) 50%, transparent); scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.08rem; color: inherit; padding: .25rem .5rem 1.1rem; text-decoration: none !important; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); flex-shrink: 0; }
.brand-mark .icon { width: 19px; height: 19px; }
.brand img.brand-logo { max-height: 34px; width: auto; }
.sidebar .brand { color: var(--sidebar-text); }
.sidebar .brand span.name { color: color-mix(in srgb, var(--sidebar-text) 30%, #fff); }
.nav-section { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .55; padding: 1rem .7rem .45rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; border-radius: 10px; color: var(--sidebar-text); font-size: .9rem; font-weight: 550; text-decoration: none; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav a:hover { background: color-mix(in srgb, var(--sidebar-text) 12%, transparent); text-decoration: none; }
.nav a.active { background: var(--sidebar-active); color: var(--sidebar-active-text); }
.nav a .icon { width: 1.2em; height: 1.2em; opacity: .9; }
.nav a .count { margin-left: auto; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; background: var(--danger); color: #fff; }
.sidebar-footer { margin-top: auto; padding-top: 1rem; font-size: .75rem; opacity: .6; padding-left: .7rem; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 200; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.6rem; background: color-mix(in srgb, var(--header-bg) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); color: var(--header-text); min-height: 64px; }
.topbar .page-heading { font-weight: 700; color: var(--heading); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.topbar .user-btn { display: flex; align-items: center; gap: .6rem; padding: .3rem .45rem .3rem .3rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; }
.topbar .user-btn:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.menu-toggle { display: none; }
.content { padding: 1.75rem 1.6rem 3rem; width: 100%; max-width: 1320px; margin: 0 auto; flex: 1; }
.content.content-fluid { padding: 0; max-width: none; }
.content-fluid .editor { height: calc(100vh - 64px); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-header h1 { margin: 0; }
.page-header .subtitle { color: var(--text-muted); margin: .3rem 0 0; }
.app-footer { padding: 1rem 4.5rem 1rem 1.6rem; font-size: .8rem; color: var(--text-muted); border-top: 1px solid var(--border); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.app-footer a { color: var(--text-muted); }
.maintenance-banner { background: repeating-linear-gradient(45deg, var(--warning), var(--warning) 12px, color-mix(in srgb, var(--warning) 85%, #000) 12px, color-mix(in srgb, var(--warning) 85%, #000) 24px); color: #fff; font-weight: 700; text-align: center; font-size: .85rem; padding: .4rem 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

@media (max-width: 600px) { .hide-sm { display: none !important; } }
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 700; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; visibility: hidden; }
  body.nav-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 60px rgba(0,0,0,.3); }
  body.nav-open .nav-overlay { display: block; }
  .nav-overlay { display: none; position: fixed; inset: 0; z-index: 650; background: rgba(15, 18, 32, .5); }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: .6rem 1rem; }
  .content { padding: 1.25rem 1rem 2.5rem; }
  .topbar .user-btn .uname { display: none; }
}

/* ==========================================================================
   Layout: autenticazione (login, registrazione…)
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(140deg, var(--hero-from), var(--hero-to)); }
.auth-aside::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.08); right: -160px; top: -160px; }
.auth-aside::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); left: -120px; bottom: -140px; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand { color: #fff; padding: 0; }
.auth-aside .brand-mark { background: rgba(255,255,255,.18); box-shadow: none; }
.auth-aside h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 520px; letter-spacing: -.02em; }
.auth-aside p { color: rgba(255,255,255,.85); max-width: 480px; }
.auth-aside .auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.auth-aside .auth-points li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.auth-aside .auth-points .icon { background: rgba(255,255,255,.18); border-radius: 8px; padding: 5px; width: 28px; height: 28px; }
.auth-aside .auth-mock { margin-top: 2rem; max-width: 420px; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.3); transform: rotate(-2deg); border: 6px solid rgba(255,255,255,.2); }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 1.5rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 430px; margin: 0 auto; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.auth-card .lead { color: var(--text-muted); margin-bottom: 1.75rem; }
.auth-links { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .9rem; margin-top: 1.25rem; }
.auth-footer { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 2.5rem; display: flex; gap: .4rem 1rem; justify-content: center; flex-wrap: wrap; }
.auth-footer a { color: var(--text-muted); }
.auth-top { display: flex; justify-content: space-between; align-items: center; max-width: 430px; width: 100%; margin: 0 auto 2rem; }
.auth-top .brand { color: var(--heading); padding: 0; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--text-muted); font-size: .8rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; font-family: ui-monospace, Menlo, monospace; padding-left: .5em; }
.method-list { display: grid; gap: .6rem; }
.method { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-align: left; width: 100%; text-decoration: none !important; }
.method:hover, .method.active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.method .bubble { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
@media (min-width: 961px) { .auth-top .brand { visibility: hidden; } }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* Captcha interni */
.captcha-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 1rem; }
.captcha-check { display: flex; align-items: center; gap: .75rem; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--text); font-weight: 600; }
.captcha-tick { width: 26px; height: 26px; border-radius: 7px; border: 2px solid color-mix(in srgb, var(--text-muted) 60%, var(--border)); background: var(--input-bg); display: grid; place-items: center; transition: all .2s; position: relative; }
.captcha-box.working .captcha-tick { border-color: var(--primary); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.captcha-box.done .captcha-tick { border-color: var(--success); background: var(--success); }
.captcha-box.done .captcha-tick::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.captcha-brand { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: .65rem; gap: 2px; }
.captcha-brand .icon { width: 22px; height: 22px; color: var(--primary); }
.captcha-image { display: grid; grid-template-columns: auto auto 1fr; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.captcha-image img { border-radius: 10px; border: 1px solid var(--border); background: #fff; height: 52px; width: auto; }
.captcha-image .input { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
@media (max-width: 420px) { .captcha-image { grid-template-columns: auto 1fr; } .captcha-image .input { grid-column: 1 / -1; } }
.captcha-ext { margin-bottom: 1rem; min-height: 78px; }

/* ==========================================================================
   Layout: sito pubblico
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 300; background: color-mix(in srgb, var(--header-bg) 85%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.site-header .brand { padding: 0; color: var(--heading); }
.site-nav { display: flex; gap: .25rem; margin-left: 1rem; }
.site-nav a { color: var(--text); font-weight: 550; font-size: .93rem; padding: .5rem .8rem; border-radius: 10px; }
.site-nav a:hover { background: var(--surface-2); text-decoration: none; }
.site-header .actions { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
@media (max-width: 860px) { .site-nav { display: none; } .site-header .actions .btn-ghost.hide-sm { display: none; } }
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 3.5rem 0 2rem; margin-top: 4rem; font-size: .9rem; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; padding: 0; margin-bottom: .8rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--footer-text) 20%, transparent); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; opacity: .85; }
.company-line { font-size: .8rem; line-height: 1.6; opacity: .85; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(700px 400px at 5% 90%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 99px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); font-weight: 650; font-size: .82rem; border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero h1 .grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin-bottom: 2rem; }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; color: var(--text-muted); font-size: .88rem; list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: .4rem; }
.trust .icon { color: var(--success); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 18px; box-shadow: 0 40px 90px rgba(15, 23, 42, .25), 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent); width: 100%; height: auto; display: block; }
.hero-visual .float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .75rem 1rem; box-shadow: 0 18px 40px rgba(15, 23, 42, .18); display: flex; align-items: center; gap: .7rem; font-size: .85rem; font-weight: 600; }
.hero-visual .float-card .bubble { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 15%, var(--surface)); color: var(--success); }
.hero-visual .fc-1 { left: -22px; bottom: 28px; }
.hero-visual .fc-2 { right: -14px; top: 26px; }
.hero-visual .fc-2 .bubble { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 3.5rem 0; } .hero-visual .float-card { display: none; } }

.section { padding: 4.5rem 0; }
.section-alt { background: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; display: block; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { padding: 1.6rem; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }
.feature .f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), color-mix(in srgb, var(--accent) 16%, var(--surface))); color: var(--primary); }
.feature .f-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--text-muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.3rem; top: 1.4rem; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--primary-contrast); background: linear-gradient(135deg, var(--primary), var(--accent)); }
.step h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .94rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: center; margin-bottom: 5rem; }
.showcase:last-child { margin-bottom: 0; }
.showcase.reverse .showcase-media { order: -1; }
.showcase h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.showcase p { color: var(--text-muted); font-size: 1.05rem; }
.showcase-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 70px rgba(15, 23, 42, .18), 0 0 0 1px var(--border); display: block; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; gap: 1.5rem; } .showcase.reverse .showcase-media { order: 0; } }
.tpl-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tpl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: block; color: inherit; text-decoration: none !important; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(15, 23, 42, .12); }
.tpl-card .thumb { aspect-ratio: 210 / 297; background: var(--surface-2); overflow: hidden; display: block; border-bottom: 1px solid var(--border); }
.tpl-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tpl-card .meta { padding: .8rem 1rem; }
.tpl-card .meta strong { color: var(--heading); display: block; }
.tpl-card .meta small { color: var(--text-muted); }
@media (max-width: 1000px) { .tpl-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tpl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--text-muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--text-muted); padding-bottom: 1.1rem; margin: 0; }
.cta-band { border-radius: calc(var(--radius) + 10px); padding: 3.5rem 2rem; text-align: center; color: #fff; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.08rem; margin-bottom: 1.75rem; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: #111; --btn-bd: #fff; }

/* Pagine legali */
.legal { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-doc h1 { font-size: 2.1rem; }
.legal-doc h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-doc h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal-doc p, .legal-doc li { color: var(--text); }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal-doc th, .legal-doc td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal-doc th { background: var(--surface-2); }
.legal-doc .updated { color: var(--text-muted); font-size: .9rem; }
.placeholder-missing { background: color-mix(in srgb, var(--warning) 25%, transparent); border-radius: 4px; padding: 0 .2em; }

/* ==========================================================================
   Dashboard e CV
   ========================================================================== */
.welcome { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 4px); padding: 1.8rem 2rem; color: #fff; background: linear-gradient(130deg, var(--hero-from), var(--hero-to)); margin-bottom: 1.5rem; }
.welcome::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.1); }
.welcome h1 { color: #fff; margin-bottom: .35rem; font-size: 1.7rem; }
.welcome p { color: rgba(255,255,255,.88); margin: 0; }
.welcome .btn { --btn-bg: #fff; --btn-fg: #111; --btn-bd: #fff; }
.welcome .btn-glass { --btn-bg: rgba(255,255,255,.15); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.3); }
.welcome .actions { position: relative; z-index: 1; display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.news-item { display: flex; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none !important; }
.news-item:hover { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.news-item:last-child { border-bottom: 0; }
.news-item .n-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.news-item.type-feature .n-icon { background: color-mix(in srgb, var(--success) 13%, var(--surface)); color: var(--success); }
.news-item.type-fix .n-icon { background: color-mix(in srgb, var(--info) 13%, var(--surface)); color: var(--info); }
.news-item.type-warning .n-icon { background: color-mix(in srgb, var(--warning) 15%, var(--surface)); color: var(--warning); }
.news-item h3 { font-size: .96rem; margin-bottom: .2rem; }
.news-item p { color: var(--text-muted); font-size: .88rem; margin: 0; }
.news-body { line-height: 1.7; }
.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.timeline-list li:last-child { border-bottom: 0; }

.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.cv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.cv-card:hover { box-shadow: 0 18px 40px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.cv-card .cv-thumb { position: relative; display: block; aspect-ratio: 210 / 230; overflow: hidden; background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); border-bottom: 1px solid var(--border); }
.cv-card .cv-thumb iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; transform-origin: 0 0; border: 0; pointer-events: none; background: #fff; }
.cv-card .cv-thumb .fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.cv-card .cv-body { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cv-card .cv-title { font-weight: 700; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-card .cv-meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.cv-card .cv-actions { display: flex; gap: .4rem; padding: .6rem .8rem; border-top: 1px solid var(--border); }
.cv-card .cv-actions .btn-primary { flex: 1; }
.cv-new { border: 2px dashed color-mix(in srgb, var(--primary) 40%, var(--border)); background: color-mix(in srgb, var(--primary) 4%, var(--surface)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 2rem 1rem; border-radius: var(--radius); color: var(--primary); font-weight: 700; min-height: 280px; text-decoration: none !important; transition: background .2s; }
.cv-new:hover { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.cv-new .bubble { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--primary-contrast); }
.score-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-2) 0); flex-shrink: 0; }
.score-ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--heading); }

.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.toolbar .input-icon { flex: 1 1 260px; max-width: 420px; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 99px; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text); background: var(--surface); text-decoration: none !important; cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

/* Selettore template (wizard e editor) */
.tpl-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.tpl-option { position: relative; display: block; cursor: pointer; border-radius: 14px; border: 2px solid var(--border); overflow: hidden; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.tpl-option input { position: absolute; opacity: 0; }
.tpl-option img { display: block; width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; background: var(--surface-2); }
.tpl-option .name { display: block; padding: .5rem .7rem; font-size: .85rem; font-weight: 650; border-top: 1px solid var(--border); }
.tpl-option:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.tpl-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.tpl-option:has(input:checked)::after { content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }

/* Editor CV */
.editor { display: grid; grid-template-columns: minmax(380px, 46%) minmax(0, 1fr); gap: 0; height: calc(100vh - 64px); }
.editor-form { overflow-y: auto; border-right: 1px solid var(--border); background: var(--bg); scrollbar-width: thin; }
.editor-form-inner { padding: 1.25rem 1.25rem 4rem; }
.editor-preview { position: relative; overflow: hidden; background: color-mix(in srgb, var(--surface-2) 80%, var(--bg)); display: flex; flex-direction: column; }
.editor-preview .preview-bar { display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.preview-bar .swatches { gap: .3rem; }
.preview-bar .swatch { width: 22px; height: 22px; }
.preview-bar .input-color { width: 30px !important; height: 26px !important; padding: 2px; }
@media (max-width: 1800px) { .preview-bar [data-accents] { display: none; } }
.editor-preview .preview-frame-wrap { flex: 1; overflow: auto; position: relative; }
.editor-preview iframe { border: 0; width: 100%; height: 100%; display: block; background: transparent; }
.editor-topbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.editor-topbar .title-input { font-weight: 700; font-size: 1rem; border: 1px solid transparent; background: transparent; color: var(--heading); padding: .35rem .55rem; border-radius: 8px; min-width: 120px; max-width: 320px; font-family: inherit; }
.editor-topbar .title-input:hover { border-color: var(--border); }
.editor-topbar .title-input:focus { border-color: var(--primary); outline: none; background: var(--input-bg); }
.save-state { font-size: .8rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: .35rem; }
.save-state.saving .dot { color: var(--warning); animation: pulse 1s infinite; }
.save-state.saved .dot { color: var(--success); }
.save-state.error .dot { color: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.ed-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .9rem; }
.ed-section > summary { list-style: none; cursor: pointer; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--heading); user-select: none; }
.ed-section > summary::-webkit-details-marker { display: none; }
.ed-section > summary .s-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 11%, var(--surface)); color: var(--primary); }
.ed-section > summary .s-count { font-size: .75rem; color: var(--text-muted); font-weight: 600; margin-left: auto; }
.ed-section > summary .chev { transition: transform .2s; color: var(--text-muted); }
.ed-section[open] > summary .chev { transform: rotate(180deg); }
.ed-section[open] > summary { border-bottom: 1px solid var(--border); }
.ed-section .ed-body { padding: 1.1rem; }
.ed-section .s-tools { display: flex; align-items: center; gap: .2rem; }
.ed-section.is-hidden-section > summary { opacity: .55; }
.repeater-item { border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); margin-bottom: .75rem; background: color-mix(in srgb, var(--surface-2) 35%, var(--surface)); }
.repeater-item.dragging { opacity: .5; }
.repeater-item.drag-over { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.repeater-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem .55rem .4rem; cursor: pointer; }
.repeater-head .drag { cursor: grab; color: var(--text-muted); padding: 4px; border-radius: 6px; display: grid; place-items: center; background: none; border: 0; }
.repeater-head .drag:active { cursor: grabbing; }
.repeater-head .r-title { font-weight: 650; font-size: .9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); }
.repeater-head .r-sub { font-weight: 400; color: var(--text-muted); font-size: .8rem; }
.repeater-body { padding: .3rem .9rem .9rem; border-top: 1px solid var(--border); }
.repeater-item.collapsed .repeater-body { display: none; }
.level-pick { display: flex; gap: 6px; }
.level-pick button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 0; }
.level-pick button.on { background: var(--primary); border-color: var(--primary); }
.cefr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 560px) { .cefr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.order-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .9rem; }
.order-list li .drag { cursor: grab; color: var(--text-muted); }
.order-list li.dragging { opacity: .5; }
.order-list li .grow { font-weight: 600; }
.photo-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.photo-box .photo-preview { width: 92px; height: 92px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--border); display: grid; place-items: center; color: var(--text-muted); overflow: hidden; }
.photo-box .photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.editor-mobile-switch { display: none; }
.spell-panel { border-top: 1px solid var(--border); background: var(--surface); max-height: 38%; overflow-y: auto; }
.spell-issue { padding: .7rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
.spell-issue .word { font-weight: 700; color: var(--danger); text-decoration: underline wavy var(--danger); text-underline-offset: 3px; }
.spell-issue .where { color: var(--text-muted); font-size: .78rem; }
.spell-issue .sugg { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .45rem; }
.field-spell-flag { outline: 2px solid color-mix(in srgb, var(--danger) 55%, transparent) !important; outline-offset: 1px; }
@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .editor-preview { display: none; position: fixed; inset: 64px 0 0 0; z-index: 400; }
  .editor.show-preview .editor-preview { display: flex; }
  .editor-form { border-right: 0; }
  .editor-mobile-switch { display: inline-flex; }
}

/* Ritaglio immagini */
.cropper { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #10131c repeating-conic-gradient(#1b2030 0 25%, #10131c 0 50%) 0 0 / 20px 20px; touch-action: none; cursor: grab; user-select: none; }
.cropper.dragging { cursor: grabbing; }
.cropper img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; user-select: none; }
.cropper .crop-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 9999px rgba(8, 10, 18, .55); }
.cropper .crop-area { position: absolute; inset: 9%; pointer-events: none; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 9999px rgba(8, 10, 18, .55); }
.cropper.shape-circle .crop-area { border-radius: 50%; }
.cropper.shape-rounded .crop-area { border-radius: 14%; }
.cropper .crop-grid { position: absolute; inset: 9%; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 33.33% 33.33%; opacity: 0; transition: opacity .2s; }
.cropper.dragging .crop-grid { opacity: 1; }
.cropper-controls { display: flex; align-items: center; gap: .6rem; max-width: 420px; margin: 1rem auto 0; }
.cropper-controls input[type=range] { flex: 1; accent-color: var(--primary); }
.dropzone { border: 2px dashed var(--border); border-radius: 16px; padding: 2rem 1rem; text-align: center; color: var(--text-muted); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, transparent); color: var(--primary); }
.dropzone .icon { width: 34px; height: 34px; margin-bottom: .4rem; }

/* Statistiche admin */
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 230px; }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; font-size: .88rem; }
.bar-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-list .bar span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.bar-list .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-list .val { font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.heatmap { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.heatmap div { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--primary) calc(var(--v) * 1%), var(--surface-2)); }
.heatmap-labels { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); font-size: .65rem; color: var(--text-muted); text-align: center; margin-top: 4px; }

/* Tema: anteprima colori */
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem 1rem; }
.color-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.color-row input[type=color] { width: 40px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.color-row input[type=text] { width: 96px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; min-height: 32px; padding: .3rem .5rem; }
.color-row label { flex: 1; font-size: .85rem; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.preset { display: block; border: 2px solid var(--border); border-radius: 14px; padding: .6rem; cursor: pointer; background: var(--surface); position: relative; }
.preset input { position: absolute; opacity: 0; }
.preset:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.preset .bars { display: flex; height: 44px; border-radius: 9px; overflow: hidden; margin-bottom: .5rem; }
.preset .bars span { flex: 1; }
.preset strong { font-size: .85rem; }

/* Editor HTML (documenti legali) */
.rich-editor { min-height: 320px; max-height: 640px; overflow: auto; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); background: var(--input-bg); }
.rich-editor:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.rich-toolbar .btn { min-width: 34px; }
h2.h3, .h3 { font-size: 1.05rem; }

/* Code / diff */
.code-view { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner { position: fixed; z-index: 950; left: 16px; right: 16px; bottom: 16px; max-width: 1100px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: 0 24px 60px rgba(15, 23, 42, .28); padding: 1.25rem 1.4rem; display: none; }
.cookie-banner.show { display: block; animation: toast-in .3s ease-out; }
.cookie-banner.layout-box { left: auto; right: 16px; max-width: 420px; }
.cookie-banner.layout-box.pos-left { right: auto; left: 16px; }
.cookie-banner.pos-top { top: 16px; bottom: auto; }
.cookie-banner .cb-head { display: flex; align-items: flex-start; gap: .8rem; }
.cookie-banner .cb-head h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.cookie-banner .cb-text { font-size: .88rem; color: var(--text-muted); margin: 0; }
.cookie-banner .cb-close { margin-left: auto; }
.cookie-banner .cb-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1rem; }
.cookie-banner.layout-bar .cb-row { display: flex; gap: 1.5rem; align-items: center; }
.cookie-banner.layout-bar .cb-actions { margin-top: 0; flex-shrink: 0; }
@media (max-width: 860px) { .cookie-banner.layout-bar .cb-row { flex-direction: column; align-items: stretch; } .cookie-banner .cb-actions .btn { flex: 1; } }
.cookie-cats { display: grid; gap: .6rem; margin-top: 1rem; }
.cookie-cat { border: 1px solid var(--border); border-radius: 12px; padding: .75rem .9rem; display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.cookie-cat p { margin: .2rem 0 0; font-size: .82rem; color: var(--text-muted); }
.cookie-reopen { position: fixed; z-index: 940; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 8px 24px rgba(15,23,42,.18); cursor: pointer; display: grid; place-items: center; }

/* ==========================================================================
   Widget accessibilità
   ========================================================================== */
.a11y-toggle { position: fixed; z-index: 960; left: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--a11y-color, #1f6feb); box-shadow: 0 10px 28px rgba(0,0,0,.28); transition: transform .15s; }
.a11y-toggle.pos-right { left: auto; right: 16px; }
.a11y-toggle:hover { transform: scale(1.06); }
.a11y-toggle .icon { width: 28px; height: 28px; }
.a11y-panel { position: fixed; z-index: 970; left: 16px; bottom: 80px; width: min(370px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.32); display: none; }
.a11y-panel.pos-right { left: auto; right: 16px; }
.a11y-panel.open { display: block; animation: toast-in .2s ease-out; }
.a11y-panel header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.a11y-panel header h2 { margin: 0; font-size: 1.05rem; }
.a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: 1rem 1.1rem; }
.a11y-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .85rem .5rem; border-radius: 13px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; text-align: center; min-height: 88px; }
.a11y-opt .icon { width: 24px; height: 24px; }
.a11y-opt[aria-pressed="true"] { border-color: var(--a11y-color, #1f6feb); background: color-mix(in srgb, var(--a11y-color, #1f6feb) 10%, var(--surface)); color: var(--a11y-color, #1f6feb); }
.a11y-opt .lvl { display: flex; gap: 3px; }
.a11y-opt .lvl i { width: 14px; height: 4px; border-radius: 2px; background: var(--border); }
.a11y-opt .lvl i.on { background: currentColor; }
.a11y-panel footer { padding: .8rem 1.1rem 1rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; justify-content: space-between; align-items: center; font-size: .8rem; }
.a11y-guide { position: fixed; left: 0; right: 0; height: 44px; pointer-events: none; z-index: 990; background: rgba(255, 230, 0, .16); border-top: 2px solid rgba(255, 196, 0, .9); border-bottom: 2px solid rgba(255, 196, 0, .9); display: none; }
html.a11y-guide-on .a11y-guide { display: block; }
html.a11y-contrast body { filter: contrast(1.35); }
html.a11y-contrast-dark { --bg: #000 !important; --surface: #000 !important; --surface-2: #111 !important; --text: #fff !important; --heading: #fff !important; --text-muted: #e5e5e5 !important; --border: #fff !important; --link: #ffea00 !important; --input-bg: #000 !important; }
html.a11y-invert body { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body img, html.a11y-invert body video, html.a11y-invert body iframe { filter: invert(1) hue-rotate(180deg); }
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 700; }
html.a11y-readable body, html.a11y-readable body * { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l7 19 2.6-7.4L21 11z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-no-anim *, html.a11y-no-anim *::before, html.a11y-no-anim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-hide-img img:not(.keep-img), html.a11y-hide-img svg image { visibility: hidden !important; }
html.a11y-focus *:focus { outline: 4px solid #ff8c00 !important; outline-offset: 3px !important; }
html.a11y-spacing-1 body { letter-spacing: .05em; word-spacing: .16em; }
html.a11y-spacing-2 body { letter-spacing: .1em; word-spacing: .3em; }
html.a11y-lh-1 body * { line-height: 1.85 !important; }
html.a11y-lh-2 body * { line-height: 2.2 !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Stampa
   ========================================================================== */
@media print {
  .sidebar, .topbar, .app-footer, .cookie-banner, .a11y-toggle, .a11y-panel, .cookie-reopen, .toasts { display: none !important; }
  .app { display: block; }
  body { background: #fff; color: #000; }
}
