/* =========================================================
   E ADESSO?! — Mobile App Styles
   ========================================================= */

/* ============ CONTENITORE SMARTPHONE (solo desktop) ============ */
body.app-frame {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(255, 90, 95, 0.10), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(27, 153, 139, 0.10), transparent 60%),
    var(--color-bg-alt);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-6);
}

.app-frame-header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.app-frame-header .back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--dur-fast) var(--ease-out);
}
.app-frame-header .back:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.frame-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* Layout: cornice + selettore viste */
.app-stage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  width: 100%;
  max-width: 1100px;
  align-items: start;
}

/* Selettore viste */
.screens-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: sticky;
  top: var(--space-6);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.screens-list h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0 var(--space-1);
}
.screens-list h4:first-child { margin-top: 0; }
.screens-list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  transition: all var(--dur-fast) var(--ease-out);
  margin-bottom: 1px;
}
.screens-list a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.screens-list a.active {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: var(--fw-semibold);
}
.screens-list a i {
  width: 14px;
  font-size: 11px;
  color: var(--color-text-muted);
}
.screens-list a.active i { color: var(--color-primary); }

/* Cornice smartphone */
.phone {
  justify-self: center;
  width: 390px;
  height: 844px;
  background: #1F2330;
  border-radius: 56px;
  padding: 14px;
  box-shadow:
    0 30px 60px rgba(20, 24, 40, 0.25),
    0 10px 20px rgba(20, 24, 40, 0.10),
    inset 0 0 0 2px #2A2F3F;
  position: relative;
}
.phone::before {
  /* dynamic island */
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Su mobile: niente cornice, niente selettore. Solo l'iframe a tutto schermo */
@media (max-width: 900px) {
  body.app-frame { padding: 0; min-height: 100vh; background: #fff; }
  .app-frame-header { display: none; }
  .app-stage {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: none;
  }
  .screens-list { display: none; }
  .phone {
    width: 100%;
    height: 100vh;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .phone::before { display: none; }
  .phone-screen { border-radius: 0; }
}

/* ============ STILI INTERNI DELLE SCHERMATE APP ============ */
/* Le schermate vengono caricate in iframe, dimensioni: 360x812 area utile */

body.app-screen {
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  overflow: hidden;
}

/* Status bar finta */
.status-bar {
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  position: relative;
}
.status-bar.dark { color: #fff; }
.status-bar .icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.status-bar .icons i { font-size: 12px; }

/* Header schermata */
.screen-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5) var(--space-4);
}
.screen-header .back-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 14px;
}
.screen-header h1 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin: 0;
  letter-spacing: 0;
}
.screen-header .right-spacer { width: 40px; }

/* Body schermata (scrollabile) */
.screen-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
}
.screen-body.no-pad { padding: 0; }
.screen-body.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Footer fisso (azioni) */
.screen-footer {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-5) var(--space-6);
  background: linear-gradient(to top, #fff 60%, rgba(255,255,255,0));
}

/* Home indicator */
.home-indicator {
  height: 5px;
  width: 134px;
  background: var(--color-text);
  border-radius: 3px;
  margin: 8px auto 6px;
  opacity: 0.5;
}

/* ============ COMPONENTI APP ============ */

/* Logo brand grande */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.brand-logo .glyph {
  width: 88px; height: 88px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--color-primary), #FF8385);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 40px;
  box-shadow: var(--shadow-coral);
}
.brand-logo .word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}
.brand-logo .word .punct { color: var(--color-primary); font-style: italic; }

/* Pagina hero / illustrazione */
.illustration {
  width: 100%;
  max-width: 280px;
  height: 260px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}
.illustration .emoji {
  font-size: 110px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}
.illustration.teal { background: var(--color-secondary-soft); }
.illustration.sun  { background: var(--color-accent-soft); }

/* Onboarding dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--dur-base) var(--ease-out);
}
.dots span.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* Titoli schermata */
.screen-title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: var(--space-3);
}
.screen-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

/* Bottoni full-width app */
.app-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--dur-fast) var(--ease-out);
}
.app-btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.app-btn-primary:active { background: var(--color-primary-dark); }

.app-btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.app-btn-ghost {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.app-btn-link {
  background: transparent;
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

/* Input app */
.app-field {
  margin-bottom: var(--space-4);
}
.app-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: 6px;
  color: var(--color-text);
}
.app-field .input-wrap {
  position: relative;
}
.app-field input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-alt);
  font-size: var(--fs-base);
  font-family: inherit;
  color: var(--color-text);
  transition: all var(--dur-fast) var(--ease-out);
}
.app-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.12);
}
.app-field .input-wrap.has-icon input { padding-left: 48px; }
.app-field .input-wrap i.lead {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

/* Splash */
.splash {
  flex: 1;
  background: linear-gradient(160deg, var(--color-primary) 0%, #FF8385 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.splash::before,
.splash::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.splash::before {
  width: 300px; height: 300px;
  top: -120px; left: -100px;
}
.splash::after {
  width: 220px; height: 220px;
  bottom: -80px; right: -60px;
}
.splash .glyph {
  background: #fff;
  color: var(--color-primary);
  width: 120px; height: 120px;
  border-radius: 36px;
  font-size: 56px;
  position: relative;
  z-index: 1;
}
.splash .word {
  color: #fff;
  margin-top: var(--space-5);
  font-size: var(--fs-2xl);
  position: relative;
  z-index: 1;
}
.splash .word .punct { color: var(--color-accent); }
.splash .tagline {
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-sm);
  margin-top: var(--space-3);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

/* =========================================================
   COMPONENTI INTERNI APP — header pratica, summary, costi, attori
   ========================================================= */

/* Header pratica colorato in base allo stato */
.pratica-header {
  padding: var(--space-5) var(--space-5) var(--space-5);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-soft);
}
.pratica-header .ph-id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.pratica-header .ph-title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}
.pratica-header .ph-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.pratica-header .ph-meta i { width: 14px; color: var(--color-text-muted); margin-right: 4px; }

/* Info box generica */
.info-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.info-box .ib-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
}
.info-box .ib-value {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

/* Sezione (h-section) per app */
.app-section {
  margin-bottom: var(--space-6);
}
.app-section .as-title {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.app-section .as-title .as-link {
  font-size: var(--fs-xs);
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

/* Attore (persona/ditta) */
.actor-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--color-border-soft);
}
.actor-row:last-child { border-bottom: 0; }
.actor-row .actor-avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.actor-row .actor-info { flex: 1; min-width: 0; }
.actor-row .actor-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}
.actor-row .actor-role {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.actor-row .actor-actions {
  display: flex;
  gap: var(--space-2);
}
.actor-row .actor-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Galleria foto */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.photo-grid .photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-text-muted);
  position: relative;
}
.photo-grid .photo-thumb.more {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

/* =========================================================
   WIZARD — Stepper, progress, navigazione
   Logica colori:
   - Step done   → Teal (calma, conferma)
   - Step active → Coral (attenzione, dove sei ora)
   - Step pending→ Grigio neutro
   ========================================================= */

/* Header del wizard con progress */
.wizard-header {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-5) var(--space-4);
  background: #fff;
  border-bottom: 1px solid var(--color-border-soft);
}
.wizard-header .wh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.wizard-header .wh-step-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wizard-header .wh-step-label .current {
  color: var(--color-primary);
}
.wizard-header .wh-close {
  background: none;
  border: 0;
  color: var(--color-text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

/* Progress bar segmentata */
.wizard-progress {
  display: flex;
  gap: 6px;
}
.wizard-progress span {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  transition: background var(--dur-base) var(--ease-out);
}
.wizard-progress span.done   { background: var(--color-secondary); }
.wizard-progress span.active { background: var(--color-primary); }

/* Stepper a numeri (alternativa visiva) */
.stepper-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-3) 0;
}
.stepper-dots .step {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--fw-bold);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 2px solid transparent;
}
.stepper-dots .step.done {
  background: var(--color-secondary);
  color: #fff;
}
.stepper-dots .step.active {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.18);
}
.stepper-dots .step-line {
  flex: 0 0 12px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
}
.stepper-dots .step-line.done { background: var(--color-secondary); }

/* =========================================================
   CHIP CATEGORIA (selezione tipo danno)
   Ogni categoria ha un suo colore semantico:
   - Acqua    → blu
   - Elettrico→ giallo/oro
   - Atmosferico → cyan
   - Furto    → viola
   - RC       → indigo
   - Cristalli→ teal
   - Altro    → grigio
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.cat-card {
  position: relative;
  padding: var(--space-4);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 110px;
}
.cat-card:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}
.cat-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.15);
}
.cat-card.selected::before {
  content: '\f058'; /* fa-circle-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px; right: 10px;
  color: var(--color-primary);
  font-size: 16px;
}
.cat-card .cat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.cat-card .cat-name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.2;
}
.cat-card .cat-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.cat-icon.cat-water       { background: #DBEAFE; color: #1E40AF; }
.cat-icon.cat-electric    { background: #FEF3C7; color: #92400E; }
.cat-icon.cat-weather     { background: #CFFAFE; color: #155E75; }
.cat-icon.cat-theft       { background: #EDE9FE; color: #5B21B6; }
.cat-icon.cat-rc          { background: #E0E7FF; color: #3730A3; }
.cat-icon.cat-glass       { background: #CCFBF1; color: #115E59; }
.cat-icon.cat-other       { background: var(--color-bg-alt); color: var(--color-text); }

/* =========================================================
   LISTA SELEZIONE (edifici, ricerca)
   ========================================================= */
.select-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.select-list .sl-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.select-list .sl-item:hover { border-color: var(--color-text-muted); }
.select-list .sl-item.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.select-list .sl-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.select-list .sl-info { flex: 1; min-width: 0; }
.select-list .sl-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 2px;
}
.select-list .sl-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.select-list .sl-radio {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  position: relative;
}
.select-list .sl-item.selected .sl-radio {
  border-color: var(--color-primary);
}
.select-list .sl-item.selected .sl-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* =========================================================
   UPLOAD ZONE — area caricamento foto/video
   ========================================================= */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 160px;
  justify-content: center;
}
.upload-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.upload-zone .uz-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.upload-zone .uz-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}
.upload-zone .uz-sub {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* Foto già caricate (nel wizard) */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.upload-grid .up-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  overflow: hidden;
}
.upload-grid .up-photo .remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(31, 35, 48, 0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}
.upload-grid .up-photo.add {
  background: #fff;
  border: 2px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 24px;
  cursor: pointer;
}
.upload-grid .up-photo.add:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.foto-counter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}
.foto-counter .badge-min {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-warning-soft);
  color: #92400E;
  font-size: 10px;
  font-weight: var(--fw-bold);
}
.foto-counter .badge-min.ok {
  background: var(--color-success-soft);
  color: #166534;
}

/* =========================================================
   SUMMARY ROW (riepilogo finale wizard)
   ========================================================= */
.summary-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--color-border-soft);
}
.summary-row:last-child { border-bottom: 0; }
.summary-row .sr-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.summary-row .sr-info { flex: 1; min-width: 0; }
.summary-row .sr-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: var(--fw-bold);
  margin-bottom: 2px;
}
.summary-row .sr-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.4;
}
.summary-row .sr-edit {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: var(--fw-semibold);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-secondary-soft);
}

/* =========================================================
   CHECKBOX ESTESA (per consensi e dichiarazioni)
   ========================================================= */
.consent-box {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.consent-box.selected {
  background: var(--color-primary-soft);
}
.consent-box input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: var(--color-primary);
}
.consent-box .consent-text {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.5;
}
.consent-box .consent-text strong { font-weight: var(--fw-bold); }
.consent-box .consent-text a { color: var(--color-primary); font-weight: var(--fw-semibold); }

/* =========================================================
   MODAL OVERLAY (modali bloccanti, es. promemoria foto)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 40, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}
.modal-overlay.center { align-items: center; padding: var(--space-5); }

.modal-card {
  background: #fff;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.modal-overlay.center .modal-card {
  border-radius: var(--radius-2xl);
}
.modal-card .modal-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto var(--space-4);
}
.modal-card .modal-icon.warning { background: var(--color-warning-soft); color: var(--color-warning); }
.modal-card .modal-icon.danger  { background: var(--color-danger-soft);  color: var(--color-danger); }
.modal-card .modal-icon.success { background: var(--color-success-soft); color: var(--color-success); }
.modal-card .modal-icon.info    { background: var(--color-info-soft);    color: var(--color-info); }

/* =========================================================
   HOME / DASHBOARD CONDÒMINO (MO-HOME-01)
   ========================================================= */

/* Top header con saluto + avatar */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5) var(--space-3);
  background: #fff;
}
.home-topbar .greet {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.home-topbar .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC857, #E8A93B);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.home-topbar .hello-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: var(--fw-bold);
}
.home-topbar .hello-name {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 1px;
}
.home-topbar .home-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.home-topbar .icon-pill {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.home-topbar .icon-pill:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.home-topbar .icon-pill .dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
}

/* Hero card "E adesso?!" — CTA primaria di apertura sinistro */
.home-hero {
  display: block;            /* il tag <a> di default è inline → forziamo block */
  box-sizing: border-box;
  width: auto;
  margin: var(--space-4) var(--space-5) var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #FF8385 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-coral);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out);
  isolation: isolate;        /* nuovo stacking context per ::after */
  min-height: 220px;
}
.home-hero:active { transform: scale(0.98); }
.home-hero::after {
  content: "?!";
  position: absolute;
  right: -10px; bottom: -50px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 180px;
  line-height: 1;
  color: rgba(255,255,255,0.18);
  pointer-events: none;
  z-index: 0;
}
.home-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 var(--space-3);
  position: relative;
  z-index: 1;
  width: auto;               /* impedisce stretch a 100% */
  max-width: max-content;
}
.home-hero h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  color: #fff;
  position: relative;
  z-index: 1;
  max-width: 80%;            /* lascia spazio al glyph ?! a destra */
}
.home-hero p {
  font-size: var(--fs-sm);
  margin: 0 0 var(--space-4);
  opacity: 0.92;
  position: relative;
  z-index: 1;
  max-width: 220px;
  line-height: 1.45;
}
.home-hero .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  position: relative;
  z-index: 1;
  width: auto;
  max-width: max-content;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Section title (Home) */
.home-section {
  padding: 0 var(--space-5);
  margin-bottom: var(--space-5);
}
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.home-section-head h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin: 0;
  letter-spacing: -0.01em;
}
.home-section-head .see-all {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: var(--fw-semibold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Quick actions griglia */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) 6px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-align: center;
}
.quick-action:hover { background: var(--color-secondary-soft); }
.quick-action .qa-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #fff;
}
.quick-action .qa-icon.coral { color: var(--color-primary-dark); background: var(--color-primary-soft); }
.quick-action .qa-icon.teal  { color: var(--color-secondary-dark); background: var(--color-secondary-soft); }
.quick-action .qa-icon.sun   { color: #8A6A0F; background: var(--color-accent-soft); }
.quick-action .qa-icon.indigo{ color: #3730A3; background: #E0E7FF; }
.quick-action .qa-label {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.2;
}

/* Pratica card (per home, lista pratiche attive) */
.home-pratica {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.home-pratica:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.home-pratica .hp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}
.home-pratica .hp-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.home-pratica .hp-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin: 4px 0 2px;
}
.home-pratica .hp-sub {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-pratica .hp-progress {
  width: 100%;
  height: 4px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  overflow: hidden;
}
.home-pratica .hp-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
}
.home-pratica .hp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
}
.home-pratica .hp-foot .step-label {
  font-weight: var(--fw-semibold);
  color: var(--color-text-soft);
}

/* Empty state mini (nessuna pratica) */
.empty-mini {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.empty-mini i {
  font-size: 28px;
  color: var(--color-secondary);
  display: block;
  margin-bottom: var(--space-2);
}

/* =========================================================
   BOTTOM BAR (tab bar mobile, 5 voci con FAB centrale)
   ========================================================= */
.bottom-bar-spacer { height: 24px; flex-shrink: 0; }

.bottom-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 88px 1fr 1fr;
  align-items: end;
  background: #fff;
  border-top: 1px solid var(--color-border-soft);
  padding: 8px 0 4px;
  position: relative;
}
.bottom-bar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
  text-decoration: none;
  min-height: 52px;
}
.bottom-bar a i {
  font-size: 18px;
}
.bottom-bar a.active {
  color: var(--color-primary);
}
.bottom-bar a.active i {
  color: var(--color-primary);
}
.bottom-bar a:not(.fab):hover {
  color: var(--color-text);
}

/* FAB centrale "E ADESSO?!" */
.bottom-bar .fab {
  position: relative;
  align-self: start;
  margin-top: -22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #FF8385);
  color: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  box-shadow: var(--shadow-coral);
  border: 4px solid #fff;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  gap: 0;
}
.bottom-bar .fab::after {
  content: '?!';
}
.bottom-bar .fab .fab-label {
  display: none;
}
.bottom-bar .fab:hover {
  transform: scale(1.05);
  transition: transform var(--dur-fast) var(--ease-out);
}

/* Notification dot sull'icona della voce di bottom bar */
.bottom-bar a .notif-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(6px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin: 0 0 var(--space-2);
}
.modal-card p {
  margin: 0 0 var(--space-5);
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
}
.modal-card .modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* =========================================================
   SUCCESS / EMPTY STATE — illustrazione grande centrale
   ========================================================= */
.success-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-5);
}
.success-state .ss-glyph {
  width: 140px; height: 140px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  margin-bottom: var(--space-5);
  position: relative;
}
.success-state .ss-glyph.ok {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.success-state .ss-glyph.ok::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--color-success);
  opacity: 0.15;
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}
.success-state h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
.success-state p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: 320px;
  line-height: 1.5;
}
.success-state .ss-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  margin: var(--space-4) 0;
  letter-spacing: 0.06em;
}

/* =========================================================
   LISTA BOZZE
   ========================================================= */
.draft-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  position: relative;
}
.draft-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--state-draft-c);
  border-radius: 3px 0 0 3px;
}
.draft-card .dc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.draft-card .dc-title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.draft-card .dc-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.draft-card .dc-progress {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.draft-card .dc-progress-fill {
  height: 100%;
  background: var(--state-draft-c);
  border-radius: 2px;
}
.draft-card .dc-actions {
  display: flex;
  gap: var(--space-2);
}
.draft-card .dc-actions button {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.draft-card .dc-actions .btn-resume {
  background: var(--color-primary);
  color: #fff;
}
.draft-card .dc-actions .btn-delete {
  background: var(--color-bg-alt);
  color: var(--color-danger);
}

/* No-contact 48h banner */
.nocontact-banner {
  background: linear-gradient(135deg, var(--color-warning-soft), #FFF8E1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.nocontact-banner .nc-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-warning);
  color: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.nocontact-banner .nc-title {
  font-weight: var(--fw-bold);
  color: #92400E;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.nocontact-banner .nc-text {
  font-size: var(--fs-xs);
  color: #78350F;
  margin: 0;
  line-height: 1.4;
}
.nocontact-banner .nc-countdown {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: #92400E;
  margin-top: 4px;
}

/* =========================================================
   TAPPA 5 — MANUTENTORE (MO-INT)
   Colore portante: teal (calma, professionale, soluzione)
   ========================================================= */

/* --- Badge ruolo nello header / topbar --- */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-bold);
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
}
.role-badge.manutentore {
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
}
.role-badge i { font-size: 10px; }

/* --- Topbar manutentore (variante teal della home topbar) --- */
.mt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5) var(--space-3);
  background: #fff;
}
.mt-topbar .greet { display: flex; align-items: center; gap: var(--space-3); }
.mt-topbar .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.mt-topbar .hello-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: var(--fw-bold);
}
.mt-topbar .hello-name {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 1px;
}
.mt-topbar .home-actions { display: flex; gap: 6px; align-items: center; }
.mt-topbar .icon-pill {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.mt-topbar .icon-pill:hover {
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
}
.mt-topbar .icon-pill .dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
}

/* --- Hero KPI giornaliero manutentore (variante teal) --- */
.mt-hero {
  display: block;
  box-sizing: border-box;
  margin: var(--space-4) var(--space-5) var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2BB5A6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(27,153,139,0.25);
  isolation: isolate;
}
.mt-hero::after {
  content: "🔧";
  position: absolute;
  right: -10px; bottom: -30px;
  font-size: 130px;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.mt-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.22);
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 var(--space-3);
  position: relative;
  z-index: 1;
  max-width: max-content;
}
.mt-hero h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: #fff;
  position: relative;
  z-index: 1;
  max-width: 80%;
}
.mt-hero .kpi-row {
  display: flex;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
  margin-top: var(--space-3);
}
.mt-hero .kpi-row .kpi {
  flex: 1;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.mt-hero .kpi .kpi-num {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 26px;
  line-height: 1;
  display: block;
}
.mt-hero .kpi .kpi-lab {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-bold);
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

/* --- Card incarico (intervento) --- */
.intervento-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  position: relative;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.intervento-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
}
.intervento-card.urgent {
  border-left: 4px solid var(--color-primary);
}
.intervento-card.scheduled {
  border-left: 4px solid var(--color-secondary);
}
.intervento-card.done {
  border-left: 4px solid var(--color-success);
  opacity: 0.85;
}
.intervento-card .ic-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.intervento-card .ic-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.intervento-card .ic-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin: 4px 0 2px;
}
.intervento-card .ic-sub {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.intervento-card .ic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border-soft);
  font-size: 11px;
}
.intervento-card .ic-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-soft);
  font-weight: var(--fw-semibold);
}
.intervento-card .ic-time i { color: var(--color-secondary); }

/* --- SLA countdown badge --- */
.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--fw-bold);
  font-family: 'JetBrains Mono', monospace;
}
.sla-badge.ok {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.sla-badge.warn {
  background: var(--color-warning-soft);
  color: #92400E;
}
.sla-badge.danger {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  animation: pulse-soft 1.6s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- Bottom bar manutentore (variante teal del FAB) --- */
.bottom-bar.mt .fab {
  background: linear-gradient(135deg, var(--color-secondary), #2BB5A6);
  box-shadow: 0 8px 20px rgba(27,153,139,0.45);
}
.bottom-bar.mt .fab::after {
  content: '';
}
.bottom-bar.mt .fab .fab-label {
  display: inline-flex;
}
.bottom-bar.mt .fab i {
  font-size: 22px;
  color: #fff;
}
.bottom-bar.mt a.active { color: var(--color-secondary); }
.bottom-bar.mt a.active i { color: var(--color-secondary); }

/* --- Slot orari per pianificazione sopralluogo --- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.slot {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.slot:hover { border-color: var(--color-secondary); }
.slot.selected {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.slot.disabled {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.6;
}

/* --- Date strip orizzontale --- */
.date-strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-2) 0 var(--space-3);
  margin-bottom: var(--space-4);
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-pill {
  flex-shrink: 0;
  min-width: 60px;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.date-pill:hover { border-color: var(--color-secondary); }
.date-pill.selected {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.date-pill.today {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}
.date-pill.today.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.date-pill .dp-dow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-bold);
  display: block;
}
.date-pill .dp-day {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-black);
  line-height: 1;
  display: block;
  margin-top: 4px;
}
.date-pill .dp-month {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 2px;
  opacity: 0.7;
}

/* --- Mappa mini (placeholder) --- */
.mini-map {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(45deg, #E8F0E8, #E8F0E8 8px, #DDE8DD 8px, #DDE8DD 16px),
    var(--color-secondary-soft);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
}
.mini-map .pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  font-size: 32px;
  color: var(--color-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mini-map .map-label {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(255,255,255,0.92);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

/* --- Sezione filtri pillole tab incarichi --- */
.mt-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.mt-tab {
  padding: 7px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  border: 0;
  background: transparent;
}
.mt-tab.active {
  background: #fff;
  color: var(--color-secondary-dark);
  box-shadow: var(--shadow-xs);
}
.mt-tab .count {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.7;
}
.mt-tab.active .count { color: var(--color-secondary); opacity: 1; }

/* --- Mini gallery foto pratica (preview anteprima incarico) --- */
.mini-gallery {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.mini-gallery::-webkit-scrollbar { display: none; }
.mini-gallery .mg-thumb {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* --- Pratica-anteprima box (riferimento alla pratica del condòmino) --- */
.pratica-ref {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.pratica-ref .pr-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.pratica-ref .pr-text { flex: 1; }
.pratica-ref .pr-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.pratica-ref .pr-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-top: 2px;
}
.pratica-ref a {
  font-size: 11px;
  color: var(--color-secondary);
  font-weight: var(--fw-bold);
}

/* =========================================================
   SPRINT 5.2 (v0.8) — Manutentore semplificato
   Componenti per upload documenti e chip esito intervento
   ========================================================= */

/* --- Upload doc (preventivo, fattura): card di anteprima file caricato --- */
.upload-doc {
  background: #fff;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  margin-bottom: var(--space-3);
}
.upload-doc:hover {
  border-color: var(--color-secondary);
  background: var(--color-secondary-soft);
}
.upload-doc .ud-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.upload-doc .ud-title {
  font-weight: var(--fw-bold);
  color: var(--color-text);
  font-size: var(--fs-sm);
  margin-bottom: 4px;
}
.upload-doc .ud-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.upload-doc.uploaded {
  border-style: solid;
  border-color: var(--color-success);
  background: var(--color-success-soft);
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}
.upload-doc.uploaded .ud-icon {
  margin: 0;
  background: var(--color-success);
  color: #fff;
  width: 44px; height: 44px;
  font-size: 18px;
  flex-shrink: 0;
}
.upload-doc.uploaded .ud-text { flex: 1; min-width: 0; }
.upload-doc.uploaded .ud-name {
  font-weight: var(--fw-bold);
  color: #166534;
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-doc.uploaded .ud-meta {
  font-size: 11px;
  color: #166534;
  opacity: 0.8;
  font-family: 'JetBrains Mono', monospace;
}
.upload-doc.uploaded .ud-action {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: var(--fw-bold);
  cursor: pointer;
}

/* --- Esito chips: chip selezionabili per esito intervento --- */
.esito-chips {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.esito-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-align: left;
}
.esito-chip:hover { border-color: var(--color-secondary); }
.esito-chip .ec-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.esito-chip .ec-text { flex: 1; }
.esito-chip .ec-title {
  font-weight: var(--fw-bold);
  color: var(--color-text);
  font-size: var(--fs-sm);
}
.esito-chip .ec-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
/* Selected — varianti per i 3 esiti */
.esito-chip.selected.ok {
  background: var(--color-success-soft);
  border-color: var(--color-success);
}
.esito-chip.selected.ok .ec-icon {
  background: var(--color-success);
  color: #fff;
}
.esito-chip.selected.ok .ec-title { color: #166534; }
.esito-chip.selected.warn {
  background: var(--color-warning-soft);
  border-color: var(--color-warning);
}
.esito-chip.selected.warn .ec-icon {
  background: var(--color-warning);
  color: #fff;
}
.esito-chip.selected.warn .ec-title { color: #92400E; }
.esito-chip.selected.danger {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}
.esito-chip.selected.danger .ec-icon {
  background: var(--color-primary);
  color: #fff;
}
.esito-chip.selected.danger .ec-title { color: var(--color-primary-dark); }

/* =========================================================
   TAPPA 6 — PERITO (MO-PER) · v0.9
   Colore portante: viola (#6D28D9) — autorevolezza tecnico-legale
   ========================================================= */

/* --- Badge ruolo perito (analogo a .role-badge.manutentore) --- */
.role-badge.perito {
  background: var(--color-perito-soft);
  color: var(--color-perito-dark);
}

/* --- Topbar perito (variante viola della home topbar) --- */
.pr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5) var(--space-3);
  background: #fff;
}
.pr-topbar .greet { display: flex; align-items: center; gap: var(--space-3); }
.pr-topbar .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-perito), var(--color-perito-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 14px;
}

/* --- Hero KPI perito (variante viola di .mt-hero) --- */
.pr-hero {
  background: linear-gradient(135deg, var(--color-perito) 0%, var(--color-perito-dark) 100%);
  color: #fff;
  padding: var(--space-5) var(--space-5) var(--space-4);
  margin: 0 var(--space-4) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(109,40,217,0.25);
}
.pr-hero .hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-bold);
  opacity: 0.85;
}
.pr-hero h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: var(--space-2) 0 var(--space-4);
  line-height: 1.15;
}
.pr-hero .kpi-row {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}
.pr-hero .kpi { text-align: left; }
.pr-hero .kpi-num {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 26px;
  display: block;
  line-height: 1;
}
.pr-hero .kpi-lab {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

/* --- Card perizia (analogo di .intervento-card ma viola) --- */
.perizia-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  transition: all var(--dur-fast) var(--ease-out);
}
.perizia-card:hover {
  border-color: var(--color-perito);
  box-shadow: 0 4px 12px rgba(109,40,217,0.10);
}
.perizia-card.urgent { border-left: 4px solid var(--color-primary); }
.perizia-card.scheduled { border-left: 4px solid var(--color-perito); }
.perizia-card .pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}
.perizia-card .pc-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.perizia-card .pc-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.perizia-card .pc-sub {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.perizia-card .pc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-soft);
  font-size: var(--fs-xs);
}
.perizia-card .pc-time { color: var(--color-text-muted); }
.perizia-card .pc-time i { margin-right: 4px; }

/* --- Severity pill (gravità del danno) --- */
.severity-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.severity-pill.low {
  background: var(--color-success-soft);
  color: #166534;
}
.severity-pill.med {
  background: var(--color-warning-soft);
  color: #92400E;
}
.severity-pill.high {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

/* --- Severity selector (3 bottoni in form stima) --- */
.severity-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.severity-selector .sev-btn {
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.severity-selector .sev-btn i { font-size: 18px; }
.severity-selector .sev-btn:hover { border-color: var(--color-perito); }
.severity-selector .sev-btn.selected.low { border-color: var(--color-success); background: var(--color-success-soft); color: #166534; }
.severity-selector .sev-btn.selected.med { border-color: var(--color-warning); background: var(--color-warning-soft); color: #92400E; }
.severity-selector .sev-btn.selected.high { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* --- Liquidation timeline (3 step orizzontali) --- */
.liq-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: var(--space-4) var(--space-2);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: var(--space-3) 0;
}
.liq-timeline .lt-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.liq-timeline .lt-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.liq-timeline .lt-label {
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.liq-timeline .lt-meta {
  font-size: 10px;
  color: var(--color-text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.liq-timeline .lt-step.done .lt-dot {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.liq-timeline .lt-step.done .lt-label { color: #166534; }
.liq-timeline .lt-step.current .lt-dot {
  background: var(--color-perito);
  border-color: var(--color-perito);
  color: #fff;
  box-shadow: 0 0 0 4px var(--color-perito-soft);
  animation: lt-pulse 1.6s infinite;
}
.liq-timeline .lt-step.current .lt-label { color: var(--color-perito-dark); }
.liq-timeline .lt-line {
  position: absolute;
  top: calc(var(--space-4) + 16px);
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}
.liq-timeline .lt-line .lt-line-fill {
  display: block;
  height: 100%;
  background: var(--color-success);
  transition: width var(--dur-base) var(--ease-out);
}
@keyframes lt-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--color-perito-soft); }
  50% { box-shadow: 0 0 0 8px rgba(109,40,217,0.15); }
}

/* --- Sintesi importo perizia (KPI card grande) --- */
.perizia-amount {
  background: linear-gradient(135deg, var(--color-perito), var(--color-perito-dark));
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-3) 0;
  text-align: center;
  box-shadow: 0 6px 16px rgba(109,40,217,0.20);
}
.perizia-amount .pa-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
}
.perizia-amount .pa-value {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.perizia-amount .pa-meta {
  font-size: var(--fs-xs);
  opacity: 0.85;
  margin-top: var(--space-2);
  font-family: 'JetBrains Mono', monospace;
}

/* --- Bottom-bar variante perito --- */
.bottom-bar.pr a.active { color: var(--color-perito); }
.bottom-bar.pr a.fab {
  background: linear-gradient(135deg, var(--color-perito), var(--color-perito-dark));
  box-shadow: 0 4px 14px rgba(109,40,217,0.40);
}

/* --- App-btn variante perito --- */
.app-btn.app-btn-perito {
  background: var(--color-perito);
  color: #fff;
  border-color: var(--color-perito);
}
.app-btn.app-btn-perito:hover { background: var(--color-perito-dark); }

/* --- Override .upload-doc per contesto perito (hover viola) --- */
.upload-doc.perito-ctx:hover {
  border-color: var(--color-perito);
  background: var(--color-perito-soft);
}
.upload-doc.perito-ctx .ud-icon {
  background: var(--color-perito-soft);
  color: var(--color-perito-dark);
}
