/* Categorie home: fotografia completa e proporzioni uniformi. */
.categories > .category,
.categories > .category:nth-child(n+4),
.categories > .category:last-child {
  height: auto !important;
  min-height: 0;
  aspect-ratio: 1230 / 1278;
}
.categories > .category .category-image,
.categories > .category:hover .category-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transform: none;
}
.categories > .category::after {
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(4, 8, 18, .72));
  pointer-events: none;
}
@media (max-width: 480px) {
  .categories > .category:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 9px) / 2);
  }
  .categories > .category > div:last-child {
    left: 12px;
    right: 10px;
    bottom: 12px;
  }
  .categories > .category h2 { font-size: 13px; }
}
