/* Pagina: Home (index.html) */

.hero-illustration {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-4);
  margin-bottom: var(--space-10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-illustration img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  display: block;
  object-fit: cover;
}


.hero-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero-link img {
  transition: transform 400ms ease;
  transform-origin: center;
}

.hero-link:focus-visible {
  outline: 4px solid var(--color-primary);
  outline-offset: 6px;
  border-radius: var(--radius-xl);
}

.hero-label {
  font-weight: 700;
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 3rem);
  font-family: var(--font-display);
  color: white;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-shadow:
    1.5px 1.5px 0 #000,
    7px 7px 10px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-6); }

.nav-card {
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-md);
  background: var(--color-surface-2);
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
}

.nav-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  transform-origin: center;
}

.nav-card span {
  position: absolute;
  text-align: center;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: 1rem;
  font-family: var(--font-display);
  color: #fff !important;
  font-size: clamp(2.4rem, 1.7rem + 1.6vw, 3.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.45);
}

.nav-card:hover img,
.nav-card:focus-visible img,
.hero-link:hover img,
.hero-link:focus-visible img {
  transform: scale(1.08);
}
