/* SoftStore — header scuro, contenuto chiaro (Bootstrap 5) */

:root {
  --ss-ink: #10141c;
  --ss-paper: #f0f4f9;
  --ss-paper-muted: #e4ebf4;
  --ss-line: #cfd8e6;
  --ss-accent: #f59e0b;
  --ss-accent-hover: #d97706;
  --ss-nav-bg: #0d1117;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-body-font-family: 'Inter', system-ui, sans-serif;
  --bs-font-sans-serif: 'Inter', system-ui, sans-serif;
  --bs-body-bg: var(--ss-paper);
  --bs-body-color: var(--ss-ink);
  --bs-border-color: var(--ss-line);
}

.softstore-body {
  font-family: 'Inter', sans-serif;
  background-color: var(--ss-paper);
  color: var(--ss-ink);
  overflow-x: clip;
}

.softstore-body h1,
.softstore-body h2,
.softstore-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}

.font-monospace {
  font-family: 'IBM Plex Mono', monospace !important;
}

.text-accent {
  color: var(--ss-accent) !important;
}

.border-ss {
  border-color: var(--ss-line) !important;
}

.bg-ss-muted {
  background-color: var(--ss-paper-muted) !important;
}

/* —— Banner / header (solo navbar) —— */
.softstore-navbar {
  background-color: var(--ss-nav-bg) !important;
  border-bottom: 1px solid #30363d;
}

.brand-mark {
  width: 26px;
  height: 26px;
  background: var(--ss-accent);
  color: var(--ss-nav-bg);
}

.softstore-navbar .nav-link.active {
  color: var(--ss-accent) !important;
}

/* —— Contenuto chiaro —— */
.softstore-main {
  background-color: var(--ss-paper);
  color: var(--ss-ink);
}

.section-spacing {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-spacing-sm {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .section-spacing {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.hero-title {
  font-size: clamp(1.65rem, 4.5vw + 0.5rem, 2.75rem);
  line-height: 1.12;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(72vh, 40rem);
  display: flex;
  align-items: center;
  background: #1a1410;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  image-rendering: auto;
  filter: none;
}

.home-hero-scrim {
  display: none;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero-copy {
  max-width: 44rem;
}

.home-hero-eyebrow {
  color: #fff !important;
  font-size: clamp(0.95rem, 1.2vw + 0.75rem, 1.2rem);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.75);
}

.home-hero-eyebrow::before {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.home-hero-title {
  color: #fff !important;
  text-shadow:
    0 0 16px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 6px 28px rgba(0, 0, 0, 0.8);
}

.home-hero-title .text-accent {
  color: #fff !important;
}

.home-hero-lead {
  color: #fff !important;
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 5px 22px rgba(0, 0, 0, 0.75);
  max-width: 36rem;
}

.home-hero .btn-outline-light {
  border-width: 1.5px;
  background: rgba(0, 0, 0, 0.35);
  text-shadow: none;
}

.home-hero .btn-outline-light:hover {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

@media (max-width: 991.98px) {
  .home-hero {
    min-height: auto;
  }
}

.home-evolution-strip {
  background: var(--ss-paper, #f8fafc);
}

.home-evolution-lead {
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
  color: var(--ss-ink);
}

.hero-lead,
.section-intro {
  font-size: clamp(0.95rem, 1vw + 0.85rem, 1.125rem);
  max-width: 42rem;
}

.eyebrow-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ss-accent);
  margin-right: 8px;
  vertical-align: middle;
}

/* Ticket licenza nell’hero (accento scuro sul fondo chiaro) */
.license-card-max {
  max-width: 28rem;
}

@media (min-width: 992px) {
  .license-card-max {
    max-width: none;
  }
}

.license-card {
  background: #161b22;
  position: relative;
  overflow: hidden;
}

.license-card::before,
.license-card::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--ss-paper);
  border-radius: 50%;
}

.license-card::before { left: -10px; }
.license-card::after { right: -10px; }

@media (min-width: 576px) {
  .license-card::before,
  .license-card::after {
    width: 28px;
    height: 28px;
  }

  .license-card::before { left: -14px; }
  .license-card::after { right: -14px; }
}

.license-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.license-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30363d;
}

.license-dots span:nth-child(4n) {
  background: var(--ss-accent);
}

.license-card .keyline-row {
  color: #8b949e;
}

.border-dashed {
  border-style: dashed !important;
}

.keyline-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.875rem;
}

@media (min-width: 576px) {
  .keyline-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.swatch-big {
  width: 30px;
  height: 30px;
}

.sw-free { background: #8993a4; }
.sw-community { background: #4c6fff; }
.sw-pro { background: #2fa679; }
.sw-enterprise { background: var(--ss-accent); }

.catalog-filters {
  width: 100%;
}

@media (min-width: 992px) {
  .catalog-filters {
    justify-content: flex-end;
  }
}

.product-card-col.is-hidden {
  display: none !important;
}

.plan-row {
  min-height: 2.75rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-color: var(--ss-line) !important;
}

.plan-row-inner {
  display: block;
  width: 100%;
}

.plan-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, max-content) auto;
  align-items: center;
  column-gap: 0.85rem;
  width: 100%;
}

.plan-row-label {
  min-width: 0;
}

.plan-row-meta {
  justify-self: end;
  text-align: right;
  min-width: 6.5rem;
}

.plan-row-buy {
  justify-self: end;
  pointer-events: none;
  white-space: nowrap;
}

.plan-price {
  flex-shrink: 0;
  text-align: right;
}

.plan-row.is-hidden {
  display: none !important;
}

.plan-row--selectable .plan-row-main {
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, max-content);
}

.plan-row--selectable.is-selected,
.plan-row--selectable:has(input:checked) {
  border-color: var(--ss-accent) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  box-shadow: 0 0 0 1px var(--ss-accent);
  color: #111827 !important;
}

.ss-attivazione-plan-card {
  cursor: default;
}

.ss-attivazione-plan-card.product-card--commercial:hover {
  transform: none;
}

.plan-row:hover {
  border-color: var(--ss-accent) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #111827 !important;
}

.plan-row:hover .plan-price,
.plan-row:hover .text-secondary {
  color: #374151 !important;
}

.plan-row:focus-visible {
  border-color: var(--ss-accent) !important;
  color: #111827 !important;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.35);
}

#filters .btn.active {
  pointer-events: none;
}

.confirm-json {
  display: none;
  background: var(--ss-ink);
  color: #7ee787;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.7rem, 2vw, 0.76rem);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--ss-line);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(220px, 40vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.confirm-json.visible {
  display: block;
}

.confirm-json.error {
  color: #c4523f;
}

.footer-text {
  word-break: break-word;
}

.public-site-footer-company p {
  line-height: 1.45;
}

.public-site-footer-admin {
  width: 100%;
}

@media (min-width: 768px) {
  .public-site-footer-admin {
    width: auto;
  }
}

.btn-warning {
  --bs-btn-bg: var(--ss-accent);
  --bs-btn-border-color: var(--ss-accent);
  --bs-btn-hover-bg: var(--ss-accent-hover);
  --bs-btn-hover-border-color: var(--ss-accent-hover);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* —— Pagine commerciali: hero, licenze, catalogo —— */
.page-hero {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--ss-line);
}

.page-hero--catalog {
  background: linear-gradient(165deg, #fff 0%, var(--ss-paper-muted) 45%, rgba(245, 158, 11, 0.08) 100%);
}

.page-hero--licenses {
  background: linear-gradient(180deg, rgba(76, 111, 255, 0.06) 0%, var(--ss-paper) 55%);
}

.page-hero-eyebrow {
  color: var(--ss-accent);
  letter-spacing: 0.06em;
}

.page-hero-title {
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.5rem);
  line-height: 1.1;
  color: var(--ss-ink);
}

.page-hero-lead {
  font-size: clamp(1rem, 1vw + 0.9rem, 1.15rem);
  color: #4b5563;
  max-width: 40rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--ss-line);
  color: var(--ss-ink);
}

.trust-pill--accent {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #92400e;
}

.benefit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ss-accent);
  flex-shrink: 0;
}

.page-hero-benefits {
  color: #374151;
}

/* Tier licenza */
.license-tier-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.license-tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ss-line);
}

.license-tier-card.sw-free::before { background: #8993a4; }
.license-tier-card.sw-community::before { background: #4c6fff; }
.license-tier-card.sw-pro::before { background: #2fa679; }
.license-tier-card.sw-enterprise::before { background: var(--ss-accent); }

@media (prefers-reduced-motion: no-preference) {
  .license-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 20, 28, 0.1) !important;
  }
}

.license-tier-swatch {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.license-tier-code {
  background: var(--ss-paper-muted) !important;
  color: #4b5563 !important;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.renewal-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--ss-paper-muted);
  color: var(--ss-ink);
}

.license-tier-link {
  color: var(--ss-ink);
  text-decoration: none;
}

.license-tier-link:hover {
  color: var(--ss-accent-hover);
}

.cta-panel {
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--ss-line);
  box-shadow: 0 8px 24px rgba(16, 20, 28, 0.06);
}

@media (min-width: 768px) {
  .cta-panel {
    padding: 2.5rem 3rem;
  }
}

/* Schede prodotto catalogo */
.product-card--commercial {
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.product-card--commercial.product-card--selected {
  box-shadow: 0 0 0 2px var(--ss-accent), 0 12px 28px rgba(16, 20, 28, 0.12) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .product-card--commercial:hover {
    box-shadow: 0 14px 32px rgba(16, 20, 28, 0.1) !important;
    transform: translateY(-2px);
  }
}

.product-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ss-accent), #fbbf24);
}

.product-code-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ss-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0.65rem;
  background: transparent;
  border: 1px solid var(--ss-border, #cfd8e6);
  flex-shrink: 0;
}

.product-card-logo--lg {
  width: 80px;
  height: 80px;
  border-radius: 0.65rem;
}

.product-card--spacious .product-card-desc {
  font-size: 1.05rem;
  line-height: 1.65;
}

.product-detail-page .product-detail-container {
  max-width: 80rem;
}
.product-detail-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.product-detail-hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid rgba(0,0,0,.08);
}
.product-detail-hero-logo-placeholder {
  width: 100px;
  height: 100px;
  background: var(--ss-accent, #e67e22);
}
.product-detail-plan-card {
  transition: transform .2s ease, box-shadow .2s ease;
  border-left: 4px solid transparent;
}
.product-detail-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 .75rem 2rem rgba(0,0,0,.12) !important;
  border-left-color: var(--bs-warning);
}
.fs-7 {
  font-size: .8rem;
}

.product-detail-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ss-ink, #1f2937);
}

.product-detail-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--ss-ink, #1f2937);
}

.product-detail-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.35rem 0 0.55rem;
  color: var(--ss-ink, #1f2937);
}

.product-detail-body p {
  margin: 0 0 0.9rem;
}

.product-detail-body ul,
.product-detail-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.product-detail-body li {
  margin-bottom: 0.35rem;
}

.product-detail-body strong,
.product-detail-body b {
  font-weight: 700;
}

.product-detail-page .lead {
  font-size: 1.15rem;
}

.product-card--spacious .product-from-price {
  font-size: 0.95rem;
}

.product-card--spacious .plan-row {
  padding: 0.85rem 1rem !important;
}

.product-from-price {
  color: #6b7280;
  text-align: right;
  line-height: 1.3;
}

.product-from-price strong {
  color: var(--ss-ink);
}

.product-plans-label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem !important;
  font-weight: 600;
}

.catalog-filter-label {
  letter-spacing: 0.03em;
}

.plan-row {
  background: var(--ss-paper-muted) !important;
  border-radius: 0.5rem !important;
}

.catalog-section {
  padding-top: 2rem;
}

/* Form pubblici (registrazione, attivazione): leggibili e responsive */
.ss-form-page {
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.ss-form-page-wide {
  max-width: 80rem;
}

/* Attivazione: info/benvenuto a sinistra, prodotto + input a destra */
.ss-attivazione-intro-eyebrow {
  letter-spacing: 0.06em;
  color: var(--ss-accent, #e67a1a);
}

.ss-attivazione-intro-title {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.2;
}

.ss-attivazione-intro-lead {
  color: var(--bs-secondary-color);
  max-width: 36rem;
}

.ss-attivazione-benefits .benefit-dot {
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .ss-attivazione-split > .ss-attivazione-intro {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .ss-attivazione-split > .ss-attivazione-panel {
    flex: 0 0 58%;
    max-width: 58%;
  }

  .ss-attivazione-intro-sticky {
    position: sticky;
    top: 1rem;
  }
}

.ss-attivazione-sidebar dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ss-step-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ss-line);
  border-radius: 0.5rem;
  background: #fff;
}

.ss-step-bar-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.ss-step-bar-item {
  display: inline-flex;
  align-items: center;
}

.ss-step-bar-item a,
.ss-step-bar-item > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ss-step-bar-item.done a:hover {
  text-decoration: underline;
}

.ss-step-bar-item.active {
  font-weight: 600;
}

.ss-step-bar-item.active .ss-step-num {
  background: #212529;
  color: #fff;
  border-color: #212529;
}

.ss-step-bar-item.done .ss-step-num {
  background: #e9ecef;
  border-color: #adb5bd;
}

.ss-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid #ced4da;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.ss-step-bar-sep {
  width: 1.5rem;
  height: 1px;
  margin: 0 0.65rem;
  background: #ced4da;
  flex: 0 0 auto;
}

.ss-step-bar-back {
  flex: 0 0 auto;
  margin-left: auto !important;
}

.ss-form-page .card-body {
  padding: 1.25rem;
}

.ss-form-page .form-label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
  .ss-form-page .card-body {
    padding: 1.75rem 2rem;
  }

  .page-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Torna su — admin e sito pubblico */
.ss-back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1050;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: #fdecc8;
  color: #5c4813;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.4rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}

.ss-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ss-back-to-top:hover {
  background: #f8e0a8;
}

.ss-back-to-top:focus-visible {
  outline: 2px solid #c9891a;
  outline-offset: 2px;
}

/* —— Mobile / safe-area —— */
.softstore-navbar {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

.ss-back-to-top {
  right: max(1.1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991.98px) {
  .home-hero-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.5) 100%);
  }
}

@media (max-width: 767.98px) {
  .ss-step-bar {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.7rem 0.85rem;
  }
  .ss-step-bar-list {
    flex-wrap: wrap;
    width: 100%;
    row-gap: 0.4rem;
  }
  .ss-step-label {
    display: none;
  }
  .ss-step-bar-sep {
    width: 0.75rem;
    margin: 0 0.25rem;
  }
  .ss-step-bar-back {
    margin-left: 0 !important;
    width: 100%;
  }
  .ss-form-page .card-body {
    padding: 1rem 0.85rem;
  }
  .page-hero {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .plan-row-main {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.55rem;
    row-gap: 0.4rem;
  }
  .plan-row-meta {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    min-width: 0;
  }
  .plan-row-buy {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .plan-row--selectable .plan-row-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-row--selectable .plan-row-meta {
    justify-self: start;
  }
  .product-card-logo--lg {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
  }
  .softstore-main,
  .admin-main {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

/* Comunicazioni — griglia 3 colonne: avatar (solo domanda) | testo | data */
.ss-comm-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
}
.ss-comm-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.ss-comm-msg {
  display: grid;
  grid-template-columns: 1.25rem 1fr auto;
  gap: 0.2rem 0.55rem;
  align-items: start;
  margin: 0;
  padding: 0;
  background: transparent;
}
.ss-comm-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ss-accent);
  color: #10141c;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.ss-comm-avatar-slot {
  width: 1.25rem;
  height: 1.25rem;
}
.ss-comm-bubble {
  min-width: 0;
  padding: 0.1rem 0;
  border-radius: 0;
  line-height: 1.35;
  word-break: break-word;
  background: transparent;
}
.ss-comm-bubble-customer {
  background: transparent;
  color: var(--ss-ink);
  font-weight: 600;
}
.ss-comm-bubble-admin {
  background: transparent;
  color: #1d4ed8;
}
.ss-comm-date {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  padding-top: 0.1rem;
}

.catalog-apps-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.catalog-apps-sidebar-item {
  border-bottom: 1px solid var(--ss-line);
}
.catalog-apps-sidebar-item:last-child {
  border-bottom: 0;
}
.catalog-apps-sidebar-link {
  display: block;
  padding: 0.65rem 0.15rem;
}
.catalog-apps-sidebar-link:hover .text-body-emphasis {
  color: var(--ss-accent) !important;
}
.catalog-apps-sidebar-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.2rem 0 0.25rem;
}
@media (min-width: 992px) {
  .catalog-apps-sidebar {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}
