/* Formazione — area riservata clienti */

.page-formazione--login .formazione-gate {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
  text-align: center;
}

.formazione-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.formazione-gate h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.formazione-gate__intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.formazione-login-card {
  text-align: left;
}

.formazione-gate__hint {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.formazione-header {
  padding: 2.5rem 0 1.5rem;
}

.formazione-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.formazione-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.formazione-header__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.btn--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.formazione-logout { margin: 0; }

.formazione-search {
  margin-bottom: 1.5rem;
}

.formazione-search__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.formazione-search__input {
  font-size: 1rem;
}

.formazione-search__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.formazione-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.formazione-nav__link {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.formazione-nav__link:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent);
  color: var(--text);
}

.formazione-section {
  margin-bottom: 2rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.formazione-section__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.formazione-section__icon {
  font-size: 2rem;
  line-height: 1;
}

.formazione-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.formazione-section__summary {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.formazione-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.formazione-guides {
  margin-bottom: 2rem;
}

.formazione-guide {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.formazione-guide:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.formazione-guide__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.formazione-guide__steps {
  margin: 0 0 0 1.25rem;
  color: var(--text-muted);
}

.formazione-guide__steps li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.formazione-faqs .faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item__q {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.faq-item__a {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

.formazione-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
