/* Hub e overlay guida interattiva */
.app-guide-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 8px 24px;
}
.app-guide-lead {
  margin: 0 0 16px;
  line-height: 1.5;
}
.app-guide-toolbar {
  margin-bottom: 16px;
}
.app-guide-search {
  width: 100%;
  margin-bottom: 12px;
}
.app-guide-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.app-guide-toolbar-hint {
  margin-right: auto;
}
.app-guide-topic-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 20px;
}
.app-guide-topic-empty {
  grid-column: 1 / -1;
}
.app-guide-topic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  min-height: 0;
}
.app-guide-topic-card__content {
  flex: 1 1 auto;
  min-height: 0;
}
.app-guide-topic-card__head {
  margin-bottom: 8px;
}
.app-guide-topic-card__category {
  display: inline-block;
  font-size: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.app-guide-topic-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.app-guide-topic-card__summary {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.app-guide-topic-card__steps {
  margin: 0;
}
.app-guide-topic-card__actions {
  margin-top: auto;
  padding-top: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.app-guide-topic-card.u-hidden-by-search {
  display: none !important;
}

/* Demo scheda espandibile (hub) */
.app-guide-ux-demo {
  max-width: 520px;
}
.app-guide-ux-demo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.app-guide-ux-demo__title {
  margin: 4px 0 0;
  font-size: 1.05rem;
}
.app-guide-ux-demo__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #334155;
}

/* Pagina approfondimento */
.app-guide-article-page {
  max-width: 720px;
}
.app-guide-article-intro {
  line-height: 1.55;
  margin-bottom: 20px;
}
.app-guide-article-section {
  margin-bottom: 16px;
}
.app-guide-article-section__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.app-guide-article-section__body {
  line-height: 1.5;
  color: #cbd5e1;
}
.app-guide-article-section__body p {
  margin: 0 0 8px;
}
.app-guide-article-back {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 1024px) {
  .app-guide-topic-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .app-guide-topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-guide-toolbar-hint {
    width: 100%;
    margin-right: 0;
  }
}
@media (max-width: 480px) {
  .app-guide-topic-list {
    grid-template-columns: 1fr;
  }
}

/* Overlay tour */
.app-guide-tour-root {
  position: fixed;
  inset: 0;
  z-index: 100100;
  pointer-events: none;
  display: none !important;
}
.app-guide-tour-root.is-active {
  display: block !important;
  pointer-events: auto;
}
.app-guide-tour-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 6, 23, 0.55);
  pointer-events: auto;
}
.app-guide-tour-backdrop.is-dim-only {
  background: rgba(2, 6, 23, 0.65);
}
.app-guide-tour-backdrop.is-hidden-for-spotlight {
  opacity: 0;
  pointer-events: none;
}
.app-guide-tour-spotlight {
  position: absolute;
  z-index: 1;
  border-radius: 10px;
  background: transparent;
  border: 2px solid #38bdf8;
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.35),
    0 0 0 9999px rgba(2, 6, 23, 0.58);
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}
.app-guide-tour-panel {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  max-width: 420px;
  margin: 0 auto;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  color: #e2e8f0;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.app-guide-tour-actions .btn {
  touch-action: manipulation;
  cursor: pointer;
}
.app-guide-tour-panel h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.app-guide-tour-panel p {
  margin: 0 0 12px;
  line-height: 1.45;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.app-guide-tour-meta {
  font-size: var(--text-hint);
  color: #94a3b8;
  margin-bottom: 12px;
}
.app-guide-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.app-guide-tour-root.is-complete .app-guide-tour-backdrop {
  opacity: 1;
  background: rgba(2, 6, 23, 0.78);
}
.app-guide-tour-complete {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  pointer-events: auto;
}
.app-guide-tour-complete[hidden] {
  display: none !important;
}
.app-guide-tour-complete__card {
  max-width: 420px;
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.app-guide-tour-complete__card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.app-guide-tour-complete__card p {
  margin: 0 0 16px;
  line-height: 1.5;
  color: #cbd5e1;
}
.app-guide-tour-missing {
  border: 2px dashed #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #fcd34d;
}

@media (min-width: 769px) {
  .app-guide-tour-root:not(.has-spotlight) .app-guide-tour-panel {
    left: auto;
    right: 24px;
    bottom: 24px;
    top: auto;
  }
}

/* Anteprima moduli App in scheda condominio (tour guida) */
.condo-guide-demo-banner {
  padding: 10px 12px;
  margin: 0 0 14px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.9rem;
  line-height: 1.45;
}
.condo-guide-demo-section {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}
.condo-guide-demo-card {
  opacity: 0.98;
}
