/* Embed chrome: section host for Assopiscine mappa on homepage variants */
.asp-embed {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(43, 160, 163, 0.1), transparent 55%),
    radial-gradient(700px 380px at 100% 20%, rgba(101, 188, 123, 0.08), transparent 50%),
    #f4f7f7;
}

.asp-embed__inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.asp-embed .asp-app {
  width: 100%;
}

.asp-embed .asp-header {
  margin-bottom: 1.5rem;
}

.asp-embed .asp-brand h1,
.asp-embed .asp-brand h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
}

/* Theme: minimal (dark band option via body class) */
.m-body .asp-embed {
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(14, 116, 144, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fafb 0%, #eef4f5 100%);
}

/* Theme: sofisticata — warmer paper + brass hint */
.s-body .asp-embed {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(184, 148, 90, 0.1), transparent 50%),
    radial-gradient(700px 360px at 100% 10%, rgba(43, 160, 163, 0.08), transparent 55%),
    #f6f3ee;
}

.s-body .asp-embed .asp-app {
  --asp-primary: #1f7f82;
  --asp-primary-deep: #176366;
  --asp-accent: #2a2621;
  --asp-bg: #f6f3ee;
}

.s-body .asp-embed .asp-eyebrow {
  background: rgba(184, 148, 90, 0.15);
  color: #8a6a2f;
}

/* Theme: moderna — cool glass on soft slate */
.x-body .asp-embed {
  background:
    radial-gradient(1000px 480px at 20% -10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(56, 189, 248, 0.08), transparent 50%),
    #0b1520;
  color: #e8eef3;
}

.x-body .asp-embed .asp-app {
  --asp-text: #e8eef3;
  --asp-muted: #9aa8b5;
  --asp-accent: #f0f6fa;
  --asp-bg: transparent;
  --asp-surface: rgba(15, 28, 42, 0.72);
  --asp-line: rgba(232, 238, 243, 0.1);
  --asp-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.x-body .asp-embed .asp-eyebrow {
  background: rgba(34, 211, 238, 0.12);
  color: #7dd3e8;
}

.x-body .asp-embed .asp-count,
.x-body .asp-embed .asp-field,
.x-body .asp-embed .asp-reset,
.x-body .asp-embed .asp-results,
.x-body .asp-embed .asp-stage-shell,
.x-body .asp-embed .asp-overlay {
  /* surfaces pick up --asp-surface via map.css */
}

.x-body .asp-embed .asp-filters {
  background: rgba(15, 28, 42, 0.7);
  border-color: rgba(232, 238, 243, 0.12);
}

.x-body .asp-embed .asp-field input,
.x-body .asp-embed .asp-field select {
  color: #0b1520;
  background: #f4f8fa;
  box-shadow: none;
}

.x-body .asp-embed .asp-result-chip {
  background: rgba(15, 28, 42, 0.9);
  color: #e8eef3;
}

.x-body .asp-embed .asp-empty {
  color: #c5d0da;
}

.x-body .asp-embed .asp-count {
  color: #f0f6fa;
}

@media (max-width: 720px) {
  .asp-embed__inner {
    width: min(1180px, calc(100% - 1.5rem));
  }
}
