html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  header > div:last-child {
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header img[alt="Adaptto"] {
    max-width: 8.75rem;
  }

  header a[href="#diagnostico-form"] {
    min-width: 0;
    max-width: 9.5rem;
    height: auto;
    min-height: 2.25rem;
    padding: 0.55rem 0.75rem;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  main section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #top > div:last-child {
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  h1,
  h2,
  h3,
  p,
  a,
  button,
  span,
  label,
  li {
    min-width: 0;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 2.7rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  .eyebrow {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  #top .mt-9.flex {
    flex-direction: column;
    align-items: stretch;
  }

  #top .mt-9.flex a,
  section a[href="#diagnostico-form"],
  #diagnostico form button[type="submit"],
  #diagnostico-form form button[type="submit"] {
    width: 100%;
    min-height: 3rem;
    height: auto;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  #top .mt-9.flex a span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  #top ul li {
    align-items: flex-start;
  }

  #top ul li > span:first-child {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  #top ul li > span:last-child {
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.15;
    text-align: left;
  }

  #top .border-t.pt-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  #top .border-t.pt-4 > div {
    display: block;
  }

  #top .border-t.pt-4 svg {
    display: none;
  }

  #top .border-t.pt-4 span {
    display: block;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .grid,
  article,
  form,
  input,
  select {
    min-width: 0;
  }

  #diagnostico-form .panel-shadow,
  #diagnostico-form .border.bg-card {
    padding: 1.25rem;
  }

  #diagnostico-form input,
  #diagnostico-form select {
    max-width: 100%;
  }

  #diagnostico-form label {
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  footer > div:last-child {
    text-align: center;
  }

  footer img[alt="Adaptto"] {
    margin-left: auto;
    margin-right: auto;
    max-width: 9rem;
  }
}

@media (max-width: 420px) {
  header a[href="#diagnostico-form"] {
    max-width: 8rem;
    font-size: 0.66rem;
  }

  #top ul li {
    flex-direction: column;
    gap: 0.6rem;
  }

  #top ul li > span:last-child {
    align-self: flex-start;
  }
}
