:root {
  --home-shortcuts-bg: #e0eaf2;
}

.home-shortcuts {
  background-color: var(--home-shortcuts-bg);
}

.home-shortcuts-intro {
  max-width: 68ch;
}

.home-shortcuts-intro p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: #334b5e;
}

.home-flex-intro {
  max-width: 52rem;
}

.home-flex-intro h2 {
  text-wrap: balance;
}

.home-flex-intro p {
  max-width: 68ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
}

.home-shortcuts-divider,
.bg-mercado-livre .home-shortcuts-divider {
  --shape-divider-color: var(--home-shortcuts-bg);
}

.home-shortcuts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 1rem;
}

.home-shortcuts-list:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.home-shortcut-item {
  min-width: 0;
}

.home-shortcut-card {
  background-color: #ffffff;
  border: 1px solid #a9bfd0;
  box-shadow: 0 4px 12px rgba(0, 47, 79, 0.12);
}

.home-shortcut-icon {
  font-size: 5rem;
}

.home-shortcut-card .card-body {
  flex: 1;
  width: 100%;
  padding: 1rem 1.25rem;
}

.home-shortcuts-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334b5e;
}

@media (max-width: 991.98px) {
  .home-shortcuts-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #53758e var(--home-shortcuts-bg);
  }

  .home-shortcut-item {
    flex: 0 0 min(82%, 20rem);
    scroll-snap-align: start;
  }

  .home-shortcut-icon {
    font-size: 4rem;
  }
}

.home-hero {
  display: flex;
  align-items: center;
  padding-block: var(--frontoffice-block-padding);
  /* The home menu is fixed, so reserve its height above the featured content. */
  padding-top: calc(var(--frontoffice-block-padding) + var(--frontoffice-header-extra-padding) + 4rem);
}

.home-hero-media,
.home-hero-content {
  flex: 0 0 50%;
  max-width: 50%;
}

.home-hero-title {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.home-hero-title span {
  color: var(--accent-soft);
}

.home-hero-subtitle {
  max-width: 38ch;
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.4;
}

.home-hero-image {
  display: block;
  width: min(100%, 38rem);
  height: auto;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .home-hero {
    flex-direction: column;
    gap: 2rem;
  }

  .home-hero-media,
  .home-hero-content {
    flex-basis: auto;
    max-width: 100%;
    width: 100%;
  }

  .home-hero-image {
    width: min(82vw, 20rem);
  }
}
