/* =============================================================================
   AssManager Theme — app.css
   Tema chiaro Ludens · sidebar + topbar
   ============================================================================= */

:root {
  --am-bg:           #f0f3f8;
  --am-surface:      #ffffff;
  --am-text:         #4a5568;
  --am-text-strong:  #1a2332;
  --am-muted:        #6b7a90;
  --am-primary:      #1a4d8c;
  --am-primary-h:    #153d70;
  --am-accent:       #2d6cb5;
  --am-border:       #dde3ed;
  --am-input-bg:     #f7f9fc;
  --am-radius:       8px;
  --am-radius-sm:    6px;
  --am-shadow-sm:    0 1px 2px rgba(15, 35, 64, .05);
  --am-shadow:       0 4px 20px rgba(15, 35, 64, .08);
  --am-sidebar-w:    248px;
  --am-topbar-h:     60px;

  --am-status-disp:  #1a7f5a;
  --am-status-ass:   #2d6cb5;
  --am-status-man:   #c98a1a;
  --am-status-dis:   #9aa5b4;
  --am-status-err:   #c73e4a;

  /* Silsud landing */
  --ss-navy:         #164193;
  --ss-navy-mid:     #2f6bb1;
  --ss-navy-end:     #4995d1;
  --ss-gold:         #c9a227;
  --ss-gold-h:       #b08f1f;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--am-text);
  background: var(--am-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--am-primary); text-decoration: none; }
a:hover { color: var(--am-primary-h); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { color: var(--am-text-strong); font-weight: 600; }

hr { border-color: var(--am-border); opacity: 1; }

/* ---------- Shell layout ---------- */
.am-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.am-sidebar {
  width: var(--am-sidebar-w);
  background: var(--am-surface);
  border-right: 1px solid var(--am-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform .25s ease;
}

.am-sidebar__brand {
  padding: 18px 22px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--am-border);
}
.am-sidebar__brand img { width: 32px; height: 32px; }
.am-sidebar__brand-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--am-text-strong);
  letter-spacing: -.01em;
}
.am-sidebar__brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--am-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.am-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 14px 12px;
  flex: 1;
  overflow-y: auto;
}

.am-sidebar__section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--am-muted);
  padding: 14px 12px 6px;
}

.am-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--am-radius-sm);
  color: var(--am-text);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.am-sidebar__link i { width: 18px; text-align: center; font-size: 15px; color: var(--am-muted); }
.am-sidebar__link:hover { background: var(--am-input-bg); color: var(--am-text-strong); text-decoration: none; }
.am-sidebar__link:hover i { color: var(--am-primary); }
.am-sidebar__link.is-active {
  background: rgba(0, 181, 168, .09);
  color: var(--am-primary-h);
}
.am-sidebar__link.is-active i { color: var(--am-primary); }

.am-sidebar__footer {
  padding: 14px 18px;
  border-top: 1px solid var(--am-border);
  font-size: 12px;
  color: var(--am-muted);
}

/* ---------- Main area ---------- */
.am-main {
  margin-left: var(--am-sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- Topbar ---------- */
.am-topbar {
  height: var(--am-topbar-h);
  background: var(--am-surface);
  border-bottom: 1px solid var(--am-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.am-topbar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--am-text-strong);
  display: flex;
  align-items: center;
  gap: 10px;
}
.am-topbar__title .am-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px 10px;
  font-size: 18px;
  color: var(--am-text);
  cursor: pointer;
}

.am-topbar__user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.am-topbar__user .am-user-name {
  font-weight: 600;
  color: var(--am-text-strong);
}
.am-topbar__user .am-user-role {
  font-size: 11px;
  color: var(--am-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.am-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--am-primary), var(--am-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

/* ---------- Content ---------- */
.am-content {
  padding: 28px;
  flex: 1;
}

.am-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.am-page-header h1 {
  font-size: 22px;
  margin: 0 0 4px;
}
.am-page-header .am-page-sub {
  color: var(--am-muted);
  font-size: 13px;
}
.am-page-header .am-page-actions { display: flex; gap: 10px; }

/* ---------- Cards ---------- */
.am-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
}
.am-card__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--am-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.am-card__head h2 {
  font-size: 15px;
  margin: 0;
}
.am-card__body { padding: 20px; }
.am-card__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--am-border);
  background: var(--am-input-bg);
  border-radius: 0 0 var(--am-radius) var(--am-radius);
}

/* ---------- Stat cards (dashboard) ---------- */
.am-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.am-stat {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--am-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.am-stat:hover { transform: translateY(-1px); box-shadow: var(--am-shadow); }
.am-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--am-radius-sm);
  background: rgba(0, 181, 168, .1);
  color: var(--am-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.am-stat__icon.is-categorie    { background: rgba(241, 180, 76, .14); color: #d99a32; }
.am-stat__icon.is-assets       { background: rgba(77, 170, 222, .12); color: var(--am-accent); }
.am-stat__icon.is-assegnazioni { background: rgba(26, 188, 156, .12); color: var(--am-status-disp); }

.am-stat__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--am-text-strong);
  line-height: 1.1;
}
.am-stat__label {
  font-size: 12px;
  color: var(--am-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- Tables ---------- */
.am-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  background: var(--am-surface);
}
.am-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.am-table th,
.am-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--am-border);
  vertical-align: middle;
}
.am-table th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--am-muted);
  background: var(--am-input-bg);
  white-space: nowrap;
}
.am-table tr:last-child td { border-bottom: 0; }
.am-table tbody tr:hover { background: rgba(241, 247, 252, .6); }
.am-table .am-cell-actions { text-align: right; white-space: nowrap; }

.am-table-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--am-muted);
}
.am-table-empty i { font-size: 36px; color: var(--am-border); margin-bottom: 10px; display: block; }

/* ---------- Filter bar ---------- */
.am-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
}
.am-filters .am-filter-search {
  flex: 1 1 220px;
  position: relative;
}
.am-filters .am-filter-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--am-muted);
}
.am-filters .am-filter-search input { padding-left: 34px; }

/* ---------- Badges (stato asset) ---------- */
.am-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--am-input-bg);
  color: var(--am-text);
  border: 1px solid var(--am-border);
}
.am-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.am-badge.is-disponibile  { color: var(--am-status-disp); background: rgba(26, 188, 156, .08); border-color: rgba(26, 188, 156, .25); }
.am-badge.is-assegnato    { color: var(--am-status-ass);  background: rgba(77, 170, 222, .08); border-color: rgba(77, 170, 222, .25); }
.am-badge.is-manutenzione { color: var(--am-status-man);  background: rgba(241, 180, 76, .10); border-color: rgba(241, 180, 76, .30); }
.am-badge.is-dismesso     { color: var(--am-status-dis);  background: rgba(182, 192, 203, .15); border-color: rgba(182, 192, 203, .40); }
.am-badge.is-attivo       { color: var(--am-status-disp); background: rgba(26, 188, 156, .08); border-color: rgba(26, 188, 156, .25); }
.am-badge.is-inattivo     { color: var(--am-status-dis);  background: rgba(182, 192, 203, .15); border-color: rgba(182, 192, 203, .40); }

.am-badge.is-tipo {
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}
.am-badge.is-tipo::before { display: none; }

/* ---------- Buttons ---------- */
.am-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--am-radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: var(--am-input-bg);
  color: var(--am-text);
  border-color: var(--am-border);
  transition: background-color .15s, color .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.am-btn:hover { background: #eef3f8; color: var(--am-text-strong); text-decoration: none; }
.am-btn:active { transform: translateY(1px); }

.am-btn--primary {
  background: var(--am-primary);
  color: #fff;
  border-color: var(--am-primary);
}
.am-btn--primary:hover { background: var(--am-primary-h); border-color: var(--am-primary-h); color: #fff; }

.am-btn--ghost {
  background: transparent;
  border-color: var(--am-border);
  color: var(--am-text);
}
.am-btn--danger {
  background: #fff;
  color: var(--am-status-err);
  border-color: rgba(227, 93, 106, .35);
}
.am-btn--danger:hover { background: rgba(227, 93, 106, .08); color: #c5384a; }

.am-btn--sm { padding: 5px 10px; font-size: 12px; }
.am-btn--icon { padding: 6px 9px; }

/* ---------- Forms ---------- */
.am-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 20px;
}
.am-field { grid-column: span 12; }
.am-field--6 { grid-column: span 6; }
.am-field--4 { grid-column: span 4; }
.am-field--3 { grid-column: span 3; }

.am-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--am-muted);
  margin-bottom: 6px;
}
.am-field label .am-req { color: var(--am-status-err); margin-left: 2px; }

.am-input,
.am-select,
.am-textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--am-text-strong);
  background: var(--am-input-bg);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.am-input:focus,
.am-select:focus,
.am-textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--am-primary);
  box-shadow: 0 0 0 3px rgba(0, 181, 168, .15);
}
.am-textarea { resize: vertical; min-height: 96px; }

.am-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--am-border);
  margin-top: 8px;
}

.am-field-error {
  font-size: 12px;
  color: var(--am-status-err);
  margin-top: 4px;
}
.am-field.has-error .am-input,
.am-field.has-error .am-select,
.am-field.has-error .am-textarea {
  border-color: var(--am-status-err);
  background: rgba(227, 93, 106, .04);
}

/* ---------- View (detail) layout ---------- */
.am-view-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.am-prop-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.am-prop-list dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--am-muted);
  margin: 0;
}
.am-prop-list dd {
  margin: 2px 0 0;
  color: var(--am-text-strong);
  font-size: 14px;
  word-break: break-word;
}
.am-prop-list dd.is-empty { color: var(--am-muted); font-style: italic; }

/* ---------- Flash messages ---------- */
.am-flash {
  border-radius: var(--am-radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
}
.am-flash--success { background: rgba(26, 188, 156, .08); border-color: rgba(26, 188, 156, .3);  color: #14785f; }
.am-flash--error   { background: rgba(227, 93, 106, .08); border-color: rgba(227, 93, 106, .3); color: #b54250; }
.am-flash--info    { background: rgba(77, 170, 222, .08); border-color: rgba(77, 170, 222, .3); color: #2e7aa1; }

/* ---------- Login layout ---------- */
.am-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
}

.am-login__visual {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, var(--ss-navy) 0%, var(--ss-navy) 58%, var(--ss-navy-end) 100%);
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 28px -6px rgba(22, 65, 147, .28);
}
.am-login__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, .12) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(45, 108, 181, .25) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}
.am-login__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, .02) 40px,
    rgba(255, 255, 255, .02) 41px
  );
  z-index: 0;
  pointer-events: none;
}

.am-login__topbar {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: 56px;
  background: #fff;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(22, 65, 147, .08);
}

.am-login__visual-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.am-login__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.am-login__brand img {
  height: 64px;
  width: auto;
  max-width: min(320px, 70vw);
  display: block;
}
.am-login__brand-text { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

.am-login__quote {
  max-width: 420px;
}
.am-login__quote h2 {
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 12px;
}
.am-login__quote p {
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  margin: 0;
}

.am-login__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: #fff;
}
.am-login__form {
  width: 100%;
  max-width: 380px;
}
.am-login__form h1 {
  font-size: 26px;
  margin: 0 0 6px;
}
.am-login__form p.am-login__lead {
  color: var(--am-muted);
  margin: 0 0 28px;
  font-size: 14px;
}

.am-login__form .am-field { grid-column: span 12; margin-bottom: 14px; }
.am-login__submit {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 14px;
  margin-top: 6px;
}
.am-login__hint {
  margin-top: 22px;
  font-size: 12px;
  color: var(--am-muted);
  text-align: center;
}

/* ---------- Error pages ---------- */
.am-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--am-bg);
}
.am-error__card {
  text-align: center;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 48px 36px;
  max-width: 460px;
  box-shadow: var(--am-shadow);
}
.am-error__code {
  font-size: 64px;
  font-weight: 700;
  color: var(--am-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.am-error__title { font-size: 20px; margin: 0 0 10px; }
.am-error__msg { color: var(--am-muted); margin-bottom: 24px; }

/* ---------- Scadenze list (dashboard) ---------- */
.am-deadlines { list-style: none; margin: 0; padding: 0; }
.am-deadlines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--am-border);
}
.am-deadlines li:last-child { border-bottom: 0; }
.am-deadlines .am-deadline-title { font-weight: 500; color: var(--am-text-strong); }
.am-deadlines .am-deadline-meta  { font-size: 12px; color: var(--am-muted); }
.am-deadlines .am-deadline-days  {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(241, 180, 76, .14);
  color: #b07820;
}
.am-deadlines .am-deadline-days.is-expired { background: rgba(227, 93, 106, .12); color: #b54250; }
.am-deadlines .am-deadline-days.is-ok      { background: rgba(26, 188, 156, .10); color: #14785f; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .am-sidebar { transform: translateX(-100%); box-shadow: var(--am-shadow); }
  .am-sidebar.is-open { transform: translateX(0); }
  .am-main { margin-left: 0; }
  .am-topbar__title .am-toggle { display: inline-block; }
  .am-view-grid { grid-template-columns: 1fr; }
  .am-field--6, .am-field--4, .am-field--3 { grid-column: span 12; }
}

@media (max-width: 767.98px) {
  .am-login { grid-template-columns: 1fr; }
  .am-login__visual { display: none; }
  .am-content { padding: 18px; }
  .am-topbar { padding: 0 16px; }
  .am-prop-list { grid-template-columns: 1fr; }
}

/* ---------- Backdrop sidebar mobile ---------- */
.am-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(33, 48, 68, .35);
  z-index: 90;
}
.am-backdrop.is-visible { display: block; }

/* =============================================================================
   Silsud — landing pubblica (homepage microservizi)
   ============================================================================= */

body.ss-landing {
  margin: 0;
  font-family: "Assistant", system-ui, sans-serif;
  color: var(--am-text);
  background: #fff;
}

.ss-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(22, 65, 147, .12);
}

.ss-topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
}

.ss-topbar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.ss-topbar__brand img {
  height: 72px;
  width: auto;
  max-width: min(420px, 78vw);
  display: block;
}

.ss-hero {
  position: relative;
  background: linear-gradient(160deg, var(--ss-navy) 0%, var(--ss-navy) 58%, var(--ss-navy-end) 100%);
  color: #fff;
  overflow: hidden;
  padding: 0 0 80px;
}

.ss-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.ss-hero__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 56px;
  gap: 16px;
}

.ss-hero__nav-spacer {
  flex: 1;
}

.ss-hero__user {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ss-hero__user-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-hero__user-name .fa {
  font-size: 1.15rem;
  opacity: .85;
}

.ss-btn--sm {
  padding: 8px 16px;
  font-size: .82rem;
}

body.ss-landing--portal .ss-hero {
  padding-bottom: 56px;
}

body.ss-landing--portal .ss-hero__nav {
  margin-bottom: 40px;
}

.ss-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 10px;
  background: #eef4fc;
  border: 1px solid #c5d8f0;
  color: var(--am-text-strong);
  font-size: .92rem;
  line-height: 1.5;
}

.ss-alert .fa {
  color: var(--am-primary);
  font-size: 1.25rem;
  margin-top: 2px;
}

.ss-alert--info {
  background: #eef4fc;
  border-color: #c5d8f0;
}

.ss-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  text-decoration: none;
}

.ss-hero__brand img {
  width: 36px;
  height: 36px;
}

.ss-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  max-width: 720px;
}

.ss-hero h1 .ss-hl {
  color: var(--ss-gold);
}

.ss-hero h1 .ss-mu {
  color: #fff;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 1.85em;
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
  padding-right: .08em;
}

.ss-hero__lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  max-width: 600px;
  margin: 0 0 36px;
}

.ss-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ss-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--am-radius);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .2s, border-color .2s, transform .15s;
}

.ss-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.ss-btn--gold {
  background: var(--ss-gold);
  color: var(--ss-navy);
  border-color: var(--ss-gold);
}

.ss-btn--gold:hover {
  background: var(--ss-gold-h);
  border-color: var(--ss-gold-h);
  color: var(--ss-navy);
}

.ss-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.ss-btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.ss-btn--outline {
  background: #fff;
  color: var(--ss-navy);
  border-color: rgba(22, 65, 147, .28);
}

.ss-btn--outline:hover {
  border-color: var(--ss-navy);
  color: var(--ss-navy);
  background: rgba(22, 65, 147, .04);
}

.ss-btn--disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.ss-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.ss-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--am-text-strong);
  margin: 0 0 8px;
  text-align: center;
}

.ss-section__sub {
  text-align: center;
  color: var(--am-muted);
  margin: 0 0 40px;
  font-size: .95rem;
}

.ss-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ss-service {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--am-shadow-sm);
  transition: box-shadow .2s, border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.ss-service:hover {
  box-shadow: var(--am-shadow);
}

.ss-service.is-active {
  border-color: rgba(22, 65, 147, .28);
}

.ss-service.is-active:hover {
  border-color: var(--ss-navy);
  box-shadow: 0 8px 24px rgba(22, 65, 147, .14);
  transform: translateY(-2px);
}

.ss-service.is-soon {
  opacity: .72;
}

.ss-service__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  background: rgba(22, 65, 147, .1);
  color: var(--ss-navy);
}

.ss-service.is-active .ss-service__icon {
  background: var(--ss-navy);
  color: #fff;
}

.ss-service.is-soon .ss-service__icon {
  background: var(--am-input-bg);
  color: var(--am-muted);
}

.ss-service h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--am-text-strong);
}

.ss-service.is-active h3 {
  color: var(--ss-navy);
}

.ss-service p {
  font-size: .88rem;
  color: var(--am-muted);
  margin: 0 0 20px;
  flex: 1;
  line-height: 1.55;
}

.ss-service__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.ss-service__badge.is-live {
  background: rgba(26, 127, 90, .12);
  color: var(--am-status-disp);
}

.ss-service__badge.is-soon {
  background: var(--am-input-bg);
  color: var(--am-muted);
}

.ss-service.is-active .ss-btn--outline {
  background: var(--ss-navy);
  color: #fff;
  border-color: var(--ss-navy);
}

.ss-service.is-active .ss-btn--outline:hover {
  background: #123574;
  border-color: #123574;
  color: #fff;
}

.ss-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ss-navy) 0%, var(--ss-navy) 52%, var(--ss-navy-end) 100%);
  color: #fff;
  padding: 88px 24px 96px;
}

.ss-showcase__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .22;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .55) 0%, rgba(180, 190, 205, .35) 45%, rgba(120, 135, 155, .15) 100%);
}

.ss-showcase__deco--1 {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -18%;
  right: -8%;
}

.ss-showcase__deco--2 {
  width: min(320px, 48vw);
  height: min(320px, 48vw);
  bottom: -12%;
  left: -6%;
  opacity: .16;
}

.ss-showcase__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.ss-showcase__eyebrow {
  margin: 0 0 16px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.ss-showcase__title {
  margin: 0 0 22px;
  max-width: 820px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}

.ss-showcase__title .ss-hl {
  color: var(--ss-gold);
}

.ss-showcase__lead {
  margin: 0;
  max-width: 680px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

.ss-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: .8rem;
  background: var(--ss-navy);
  color: rgba(255, 255, 255, .55);
}

.ss-footer p {
  margin: 0;
}

.ss-footer__credit {
  margin-top: 8px !important;
  font-size: .74rem;
  color: rgba(255, 255, 255, .45);
}

.ss-footer a {
  color: rgba(255, 255, 255, .75);
}

.ss-sidebar__brand-text small {
  color: var(--ss-gold);
}

/* Speedy — badge stato spedizione */
.sp-badge.is-transit {
  background: rgba(45, 108, 181, .12);
  color: #1a4d8c;
}
.sp-badge.is-ok {
  background: rgba(26, 127, 90, .12);
  color: #1a7f5a;
}
.sp-badge.is-draft {
  background: rgba(107, 122, 144, .12);
  color: #5a6578;
}
.sp-badge.is-cancelled {
  background: rgba(199, 62, 74, .1);
  color: #a83240;
}
