/* Test di orientamento: componenti isolati, senza modificare gli stili globali. */
.orientamento-section {
  background: #e6efea;
  scroll-margin-top: 1.5rem;
}

.orientamento-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.orientamento-intro {
  min-width: 0;
  max-width: 36rem;
}

.orientamento-intro .section-heading {
  margin-bottom: 1.2rem;
}

.orientamento-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.orientamento-direct-contact {
  margin-top: 1.5rem;
}

.orientamento-direct-contact p {
  margin-bottom: .8rem;
}

.orientamento-contact-actions {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}

.orientamento-privacy {
  margin-top: 1.75rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid #9dbeae;
  border-radius: 0 .75rem .75rem 0;
  background: #f1f6f2;
}

.orientamento-privacy p {
  margin: 0;
}

.orientamento-card {
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid #c8d8cf;
  border-radius: clamp(1.3rem, 3vw, 1.8rem);
  background: #fff;
  box-shadow: 0 18px 45px rgba(33, 77, 73, .08);
}

.orientamento-card h3 {
  margin: 0 0 1rem;
  color: #214d49;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.orientamento-kicker {
  margin: 0 0 .8rem;
  color: #214d49;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.orientamento-instruction {
  margin-bottom: 1rem;
}

.orientamento-status:empty {
  display: none;
}

.orientamento-status:not(:empty) {
  margin: 0 0 1.15rem;
  padding: .65rem .85rem;
  border-radius: .55rem;
  background: #eef5f0;
  color: #214d49;
  font-weight: 700;
  line-height: 1.4;
}

.orientamento-options {
  display: grid;
  min-width: 0;
  gap: .65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.orientamento-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.orientamento-option {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border: 2px solid #c8d8cf;
  border-radius: .7rem;
  background: #fff;
  color: #214d49;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.orientamento-option input {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  margin: 0;
  accent-color: #214d49;
}

.orientamento-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.orientamento-option:hover,
.orientamento-option:has(input:checked) {
  border-color: #214d49;
  background: #edf5ef;
}

.orientamento-option:focus-within {
  outline: 3px solid #a9472f;
  outline-offset: 4px;
}

.orientamento-navigation,
.orientamento-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.orientamento-navigation {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dce7df;
}

.orientamento-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.2rem;
  border: 2px solid #214d49;
  border-radius: .65rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.orientamento-button-primary {
  background: #214d49;
  color: #fff;
}

.orientamento-button-primary:hover {
  border-color: #193d3a;
  background: #193d3a;
  color: #fff;
}

.orientamento-button-secondary {
  background: #fff;
  color: #214d49;
}

.orientamento-button-secondary:hover {
  background: #edf5ef;
  color: #214d49;
}

.orientamento-restart {
  min-width: 44px;
  min-height: 48px;
  padding: .5rem .25rem;
  border: 0;
  background: transparent;
  color: #214d49;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.orientamento-restart:hover {
  text-decoration-thickness: .14em;
}

.orientamento-links {
  margin: 1rem 0 1.5rem;
  padding-left: 1.4rem;
}

.orientamento-links li + li {
  margin-top: .65rem;
}

.orientamento-links a {
  color: #214d49;
  font-weight: 700;
}

.orientamento-clinical-note {
  margin: 1.3rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid #9dbeae;
  border-radius: 0 .65rem .65rem 0;
  background: #f1f6f2;
}

.orientamento-section :focus-visible,
.orientamento-card h3:focus,
.orientamento-status:focus {
  outline: 3px solid #a9472f;
  outline-offset: 4px;
}

.orientamento-section [hidden] {
  display: none !important;
}

@media (min-width: 850px) {
  .orientamento-layout {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  }
}

@media (max-width: 599px) {
  .orientamento-navigation .orientamento-button,
  .orientamento-choice-actions .orientamento-button {
    width: 100%;
  }
}
