/**
 * Centro assistenza BridgeWorks.
 * Impianto da help center (ricerca, scorciatoie, temi, guide), grafica Garden.
 */

body.home-landing.help-center {
  --help-dark: #1e4536;
  --help-mid: #2a5c47;
  --help-bright: #6aab8a;
  --help-soft: #e7f3ec;
  --help-ink: #292524;
  --help-mute: #5c6560;
  --help-paper: #f3f6f4;
  --help-line: rgba(30, 69, 54, 0.14);
  background: var(--help-paper);
  color: var(--help-ink);
}

.help-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.help-hero {
  background:
    radial-gradient(900px 280px at 90% -10%, rgba(106, 171, 138, 0.35), transparent 60%),
    var(--help-dark);
  color: #f7fbf8;
  padding: clamp(5.5rem, 10vw, 7rem) 0 4.5rem;
}

.help-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9e6d6;
}

.help-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.help-hero h1 em {
  font-style: italic;
  font-weight: 560;
  color: #d7f0e2;
}

.help-lead {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  color: rgba(247, 251, 248, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

.help-search {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  background: #fff;
  color: var(--help-ink);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.help-search svg {
  flex: 0 0 auto;
  color: var(--help-mid);
}

.help-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--help-ink);
  padding: 0.65rem 0;
}

.help-search input:focus {
  outline: none;
}

.help-search:focus-within {
  box-shadow: 0 0 0 3px rgba(106, 171, 138, 0.85), 0 16px 40px rgba(0, 0, 0, 0.16);
}

.help-search button {
  border: 0;
  background: var(--help-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  cursor: pointer;
}

.help-search button:hover {
  background: var(--help-mid);
}

.help-main {
  padding: 1.75rem 0 4rem;
}

.help-shortcuts h2,
.help-board-head h2,
.help-contact h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.help-shortcuts {
  margin-top: -1.6rem;
}

.help-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.help-shortcut {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 5.6rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid var(--help-line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(30, 69, 54, 0.04);
}

.help-shortcut:hover {
  border-color: rgba(42, 92, 71, 0.45);
  transform: translateY(-1px);
}

.help-shortcut strong {
  font-size: 0.98rem;
}

.help-shortcut span {
  color: var(--help-mute);
  font-size: 0.86rem;
  line-height: 1.35;
}

.help-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
  align-items: start;
}

.help-topics {
  position: sticky;
  top: 5.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--help-line);
  border-radius: 18px;
}

.help-topic {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--help-ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  cursor: pointer;
}

.help-topic[aria-pressed="true"] {
  background: var(--help-soft);
  color: var(--help-dark);
  font-weight: 700;
}

.help-topic:hover {
  background: #f6faf7;
}

.help-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.help-count {
  margin: 0;
  color: var(--help-mute);
  font-size: 0.88rem;
}

.help-group + .help-group {
  margin-top: 1.15rem;
}

.help-group h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--help-mid);
}

.help-article {
  background: #fff;
  border: 1px solid var(--help-line);
  border-radius: 14px;
  margin: 0 0 0.5rem;
}

.help-article summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.help-article summary::-webkit-details-marker {
  display: none;
}

.help-article summary::after {
  content: "+";
  float: right;
  color: var(--help-mid);
  font-weight: 600;
}

.help-article[open] summary::after {
  content: "–";
}

.help-article summary:focus-visible {
  outline: 2px solid var(--help-bright);
  outline-offset: 2px;
  border-radius: 14px;
}

.help-article-body {
  padding: 0 1rem 1rem;
  color: #3d4541;
  line-height: 1.6;
}

.help-article-body p {
  margin: 0 0 0.7rem;
}

.help-article-body ul {
  margin: 0 0 0.7rem;
  padding-left: 1.15rem;
}

.help-article-body a {
  color: var(--help-mid);
  font-weight: 650;
}

.help-empty {
  padding: 1.2rem 1rem;
  background: #fff;
  border: 1px dashed var(--help-line);
  border-radius: 14px;
  color: var(--help-mute);
}

.help-contact {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
}

.help-contact article {
  background: var(--help-dark);
  color: #f7fbf8;
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
}

.help-contact article:last-child {
  background: #fff;
  color: var(--help-ink);
  border: 1px solid var(--help-line);
}

.help-contact p {
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

.help-contact a {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 860px) {
  .help-shortcut-grid,
  .help-contact {
    grid-template-columns: 1fr;
  }

  .help-board {
    grid-template-columns: 1fr;
  }

  .help-topics {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .help-search {
    border-radius: 18px;
    flex-wrap: wrap;
    padding: 0.7rem 0.75rem;
  }

  .help-search button {
    width: 100%;
  }
}
