@charset "UTF-8";
/* TrilùTable · Richieste dal sito (leads module, prefix ld-) */
.ld-page { --ld-line: #2a2d32; --ld-panel: #15171a; --ld-soft: #99a0aa; --ld-orange: var(--accent, #ff833f); --ld-orange-soft: #ffb27f; color: var(--text, #f1f2f4); width: 100%; min-width: 0; }
.ld-page h1, .ld-page h2, .ld-page h3, .ld-page p { margin-top: 0; }

.ld-heading { margin-bottom: 22px; }
.ld-heading .eyebrow { font-size: 9px; letter-spacing: .18em; color: #d7a07a; margin-bottom: 10px; }
.ld-heading h1 { font-size: clamp(27px, 2.6vw, 38px); letter-spacing: -.04em; margin: 0 0 8px; }
.ld-heading p { color: var(--ld-soft); font-size: 13px; margin: 0; }
.ld-serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--ld-orange-soft); font-size: 1.08em; }

/* Stat tiles */
.ld-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.ld-stat { display: flex; flex-direction: column; min-width: 0; padding: 18px 19px 16px; border: 1px solid var(--ld-line); border-radius: 13px; background: linear-gradient(145deg, #1b1d21, #141618 70%); color: inherit; text-align: left; cursor: pointer; }
.ld-stat:hover { border-color: #3b4149; }
.ld-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #c4c9d1; font-size: 11.5px; }
.ld-stat-top svg { color: #8b94a0; }
.ld-stat > strong { font-size: 38px; line-height: 1; letter-spacing: -.05em; font-weight: 600; margin: 14px 0 4px; }
.ld-stat > small { font-size: 10.5px; color: #818a95; }
.ld-stat.is-alert { border-color: #7a4b2a; background: linear-gradient(145deg, #2d2017, #1a1512 70%); }
.ld-stat.is-alert > strong, .ld-stat.is-alert .ld-stat-top svg { color: var(--ld-orange); }
.ld-stat.is-active { box-shadow: inset 0 0 0 1px var(--ld-orange); border-color: var(--ld-orange); }
.ld-stat-won > strong { color: #9cc8ab; }

/* Panel */
.ld-panel { padding: 20px 22px 18px; border: 1px solid var(--ld-line); border-radius: 14px; background: var(--ld-panel); }
.ld-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ld-panel-top h2 { font-size: 18px; margin: 0; }
.ld-search { display: flex; align-items: center; gap: 9px; width: 320px; max-width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #343940; border-radius: 9px; background: #101214; color: #7d848f; }
.ld-search:focus-within { border-color: #b75a2e; box-shadow: 0 0 0 3px #ff833f14; }
.ld-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #f4f5f7; font-size: 12.5px; }
.ld-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--ld-line); scrollbar-width: thin; }
.ld-filter { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 40px; padding: 6px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #a7adb6; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.ld-filter > span:not(:empty) { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: #2b2f35; color: #aab0b9; font-size: 9.5px; }
.ld-filter:hover { background: #22262b; color: #f2f3f5; }
.ld-filter.is-active { background: #35241a; border-color: #5e3b22; color: #ffb27f; }
.ld-filter.is-active > span:not(:empty) { background: #5f3a21; color: #ffc9a3; }

/* Cards */
.ld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 14px; align-items: start; }
.ld-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 18px 14px; border: 1px solid #2b3038; border-radius: 13px; background: #111316; box-shadow: inset 3px 0 0 #3a3f46; }
.ld-card-new { box-shadow: inset 3px 0 0 var(--ld-orange); background: linear-gradient(100deg, #ff833f0d, transparent 45%), #111316; }
.ld-card-contacted { box-shadow: inset 3px 0 0 #8fb6ff; }
.ld-card-won { box-shadow: inset 3px 0 0 #86bc98; }
.ld-card-lost { opacity: .82; }
.ld-card-head { display: flex; align-items: flex-start; gap: 12px; }
.ld-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #35251c; border: 1px solid #6a4228; color: #ffc29b; font-family: Georgia, serif; font-style: italic; font-size: 14px; }
.ld-card-title { flex: 1; min-width: 0; }
.ld-card-title h3 { font-size: 15px; margin: 2px 0 4px; overflow-wrap: anywhere; }
.ld-card-title p { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 11.5px; color: #98a1ac; overflow-wrap: anywhere; }
.ld-card-title p svg { color: #7d8794; }
.ld-status { flex-shrink: 0; }
.ld-status .select { min-height: 40px; padding: 8px 10px; font-size: 12px; width: auto; }
.ld-card-new .ld-status .select { border-color: #6a4126; color: #ffcba7; }
.ld-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-contact { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; max-width: 100%; padding: 6px 12px; border: 1px solid #343b45; border-radius: 9px; background: #171a1e; color: #e7e9ec; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ld-contact svg { color: var(--ld-orange-soft); }
.ld-contact:hover { border-color: #8c5a39; background: #241a14; }
.ld-message { margin: 0; font-size: 12.5px; line-height: 1.6; color: #c9ced6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ld-message.is-empty { color: #737b86; font-style: italic; }
.ld-more { align-self: flex-start; min-height: 36px; gap: 5px; font-size: 12px; margin-top: -6px; }
.ld-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.ld-meta div { display: flex; gap: 6px; align-items: baseline; }
.ld-meta dt { font-size: 9.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #7d8691; }
.ld-meta dd { margin: 0; font-size: 11.5px; color: #b3bac4; }
.ld-notes { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 10px 12px; border: 1px dashed #3a3f46; border-radius: 9px; font-size: 12px; color: #c9ced6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ld-notes svg { flex-shrink: 0; margin-top: 2px; color: #8b94a0; }
.ld-notes-editor { padding: 12px; border: 1px solid #5a3a24; border-radius: 10px; background: #1c1511; }
.ld-notes-editor .field { margin-bottom: 10px; }
.ld-notes-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ld-notes-actions .btn { min-height: 44px; }
.ld-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid #23262b; }
.ld-card-foot .btn { min-height: 44px; font-size: 11.5px; }
.ld-card-foot .btn-secondary { margin-left: auto; }
.ld-count { margin: 16px 0 0; font-size: 10.5px; color: #747b86; }
.ld-stale { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 11px; color: #e7b48d; }
.ld-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 20px; color: var(--ld-soft); }
.ld-empty svg { color: var(--ld-orange); margin-bottom: 12px; }
.ld-empty h3 { font-size: 17px; margin: 0 0 8px; color: #f1f2f4; }
.ld-empty p { max-width: 420px; font-size: 12.5px; margin: 0 0 14px; }
.ld-empty.is-error { color: #f1b3a4; }
.ld-access { display: flex; gap: 14px; align-items: flex-start; max-width: 680px; padding: 20px 22px; border: 1px solid #46382f; border-radius: 12px; background: #211b18; color: #cbae94; }
.ld-access svg { flex-shrink: 0; margin-top: 2px; }
.ld-access strong { display: block; font-size: 14px; color: #f1e2d6; margin-bottom: 6px; }
.ld-access p { margin: 0; font-size: 12px; line-height: 1.7; color: #b9a596; }

@media (max-width: 900px) { .ld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ld-panel-top { flex-direction: column; align-items: stretch; } .ld-search { width: 100%; } }
@media (max-width: 600px) {
  .ld-stats { gap: 10px; }
  .ld-stat { padding: 15px 14px 14px; }
  .ld-stat > strong { font-size: 30px; }
  .ld-panel { padding: 16px 14px 14px; }
  .ld-card { padding: 15px 14px 12px; }
  .ld-card-head { flex-wrap: wrap; }
  .ld-status { width: 100%; }
  .ld-status .select { width: 100%; min-height: 44px; }
  .ld-filter, .ld-contact, .ld-more { min-height: 44px; }
  .ld-card-foot .btn { flex: 1 1 100%; justify-content: center; white-space: normal; text-align: center; }
  .ld-card-foot .btn-secondary { margin-left: 0; }
}
@media (max-width: 360px) { .ld-stat > strong { font-size: 27px; } .ld-stat-top { font-size: 10.5px; } }
