/* --- Contenitore Tabs --- */
.ns-cat-tabs-container {
    width: 100%;
    margin: 2rem 0;
}

/* --- Navigazione Tabs --- */
.ns-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.ns-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px !important;
    cursor: pointer;
    background-color: #fff !important;
    border-radius: 50px;
    font-weight: 500;
    color: #0d6506 !important;
    transition: all 0.3s ease;
    text-align: center;
}

button.ns-tab-link {
    background: #edf1ee;
    color: #0d6506;
    padding: 12px 25px;
}

button.ns-tab-link.active {
    background-color: #edf1ee !important;
    color: #0d6506;
}

button.ns-tab-link:hover {
    background: #edf1ee;
    color: #0d6506;
}

/* Icona nei tab */
.ns-tab-icon {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 28px;
}

/* --- Pannelli --- */
.ns-tab-panel {
    display: none;
    animation: nsFadeIn 0.5s;
}

.ns-tab-panel.active {
    display: block;
}

@keyframes nsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Griglia Categorie --- */
.ns-cat-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(var(--ns-col-m, 1), 1fr);
}

/* .ns-tab-solo .ns-cat-grid{
     display: none;
} */

@media (min-width: 768px) {
    .ns-cat-grid {
        grid-template-columns: repeat(var(--ns-col-t, 2), 1fr);
    }
}

@media (min-width: 1024px) {
    .ns-cat-grid {
        grid-template-columns: repeat(var(--ns-col-d, 4), 1fr);
    }
}

/* --- Card Categoria --- */
.ns-cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ns-cat-img {
    width: 100%;
    /* aspect-ratio: 4 / 3; */
    object-fit: contain;
    margin-bottom: 15px;
    background: #fff;
}

h3.ns-cat-title{
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #00572d !important;
    margin-bottom: 8px;
    text-align: left;
	line-height:normal !important
}

.ns-cat-title {
    font-size: 2rem;
    font-weight: 600;
    color: #00572d;
    margin-bottom: 8px;
    text-align: left;
}

.ns-cat-link {
    color: #141414;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    justify-content: flex-end;
    font-weight: 600;
}

.ns-cat-link:hover {
    opacity: 0.85;
}

@media (max-width:1024px) {
    .ns-cat-title {
        text-align: center;
    }

    .ns-cat-link {
        justify-content: center;
    }

}