/* ============================================================
   SMC — Applicazioni page sections
   ============================================================ */

/* ---------- Breadcrumb hero (text only, on white) ---------- */
.app-hero {
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(0.5rem, 0.2rem + 1vw, 1.25rem);
}

.app-hero__crumb {
  font-weight: var(--fw-medium);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.app-hero__crumb a {
  color: var(--text-muted);
}

.app-hero__crumb a:hover {
  color: var(--navy-primary);
}

.app-hero__crumb span {
  margin-inline: 0.25rem;
}

.app-hero__title {
  color: var(--text-heading);
}

/* ---------- Application sector ---------- */
.sector {
  padding-block: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem);
  scroll-margin-top: 104px; /* clear the sticky header on anchor jumps */
}

.sector__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

/* Eyebrow row: icon + colored category title */
.sector__head {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.sector__icon {
  height: 40px;
  width: auto;
  max-width: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.sector__eyebrow {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Two-column body: intro text + needs card */
.sector__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-14) var(--space-16);
}

.sector__intro {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sector__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-display);
  color: var(--text-heading);
}

.sector__accent {
  display: block;
  width: 91px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy-primary);
  margin-block: calc(var(--space-2) * -1) 0;
}

.sector__intro p {
  color: var(--text-body);
}

/* ---------- "Esigenze Principali" card ---------- */
.needs-card {
  flex: 1 1 340px;
  max-width: 460px;
  align-self: stretch;
  background: #e9e9e9;
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 1.5rem) clamp(1.5rem, 1.1rem + 1.6vw, 2.4375rem);
}

.needs-card__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin-bottom: var(--space-3);
}

.needs-list {
  display: flex;
  flex-direction: column;
}

.needs-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-3);
  color: var(--text-heading);
  font-size: var(--fs-body);
}

.needs-list__item + .needs-list__item {
  border-top: 1px solid rgba(15, 15, 15, 0.12);
}

.needs-list__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ---------- "Applicazioni tipiche" bar ---------- */
.typical {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  background: rgba(108, 123, 189, 0.11);
  border-radius: 20px;
  padding: var(--space-3) var(--space-6);
}

.typical__label {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
  padding-inline: var(--space-3);
}

.typical__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

.typical__label span {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
}

.typical__tags {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-6);
}

/* A list of typical applications — read as technical content, not buttons.
   Earlier these were bordered white chips; clients consistently mistook them
   for clickable controls. Stripping fill, border and radius removes the
   button affordance; the term sits in body-grey (the navy link colour is the
   interactivity cue, so it stays only in the small leading marker). */
.typical__tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--text-body);
  font-size: 0.9375rem;
  font-weight: var(--fw-regular);
  line-height: 1.4;
}

/* Small navy dot qualifies each term as a list item, not an action. */
.typical__tag::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--navy-primary);
  border-radius: 50%;
  transform: translateY(-0.1em);
}

/* ---------- "Prodotti correlati" ---------- */
.related__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin-bottom: var(--space-8);
}

/* Three product cards; collapse to two / one as width tightens. */
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
@media (max-width: 600px) {
  .sector__head {
    gap: var(--space-4);
  }

  /* Label sits above the tags; tags keep wrapping to content width */
  .typical__label {
    flex: 1 1 100%;
  }
}
