.hk-home-cat-section {
    width: 100%;
    padding: 100px 0;
    background-color: #cccccc78;
}

.hk-home-cat-title {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 70px;
}

.hk-home-cat-grid {
    width: 100%;
}

.hk-home-cat-grid__inner {
    display: grid;
    grid-template-columns: repeat(var(--hk-home-cat-cols, 4), minmax(0, 1fr));
    gap: 20px;
}

.hk-home-cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    gap: 20px;
}

.hk-home-cat-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* quadrato */
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hk-home-cat-grid {
    padding: 0 40px;
}

.hk-home-cat-card__name {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: black;
}

@media (max-width: 767px) {
    
    .hk-home-cat-section {
        width: 100%;
        margin: 0 0 200px;
    }

    .hk-home-cat-title {
        font-size: 40px;
    }

    .hk-home-cat-grid__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    /* Se il numero di card è dispari, l'ultima prende 2 colonne */
    .hk-home-cat-card.hk-home-cat-card--last-odd {
        grid-column: span 2;
    }
}

