.vdg-package-category-archive {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
    padding: 70px 0;
}

/* Il tema contiene già l'archivio nel proprio .container: niente secondo container annidato. */
.vdg-package-category-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vdg-package-type1-archive,
.vdg-package-type1-archive .wdt-package-output-data-holder,
.vdg-package-type1-archive .wdt-packages-container,
.vdg-package-type1-archive .wdt-packages-item-container {
    width: 100% !important;
    max-width: none !important;
}

.vdg-package-category-description {
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Type 1 dei pacchetti: tre card per riga su desktop. */
.vdg-package-type1-archive .wdt-packages-item-container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(24px, 3vw, 30px) !important;
    align-items: stretch;
}

.vdg-package-type1-archive .wdt-packages-item-wrapper.type1,
.vdg-package-type1-archive .wdt-column.wdt-one-third,
.vdg-package-type1-archive .wdt-column.first {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box;
}

.vdg-package-type1-archive .wdt-packages-item-wrapper.type1 {
    min-height: 330px !important;
    height: 330px !important;
    grid-template-rows: 330px !important;
}

.vdg-package-type1-archive .wdt-packagelist-thumb,
.vdg-package-type1-archive .wdt-packagelist-thumb a,
.vdg-package-type1-archive .wdt-packagelist-thumb img {
    width: 100% !important;
    height: 100% !important;
}

.vdg-package-type1-archive .wdt-packagelist-thumb img {
    display: block;
    object-fit: cover;
}

/* Riduce lo spazio verticale riservato al contenuto rispetto alle card strette. */
.vdg-package-type1-archive .wdt-packages-item-wrapper.type1 div.wdt-packagelist-details {
    height: 330px !important;
    min-height: 330px !important;
    box-sizing: border-box !important;
    padding: 25px !important;
    padding-top: 135px !important;
}

.vdg-package-pagination {
    margin-top: 45px;
    text-align: center;
}

.vdg-package-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 3px;
    padding: 0 10px;
    border: 1px solid rgba(0,0,0,.15);
    text-decoration: none;
}

.vdg-package-categories-title {
    margin-bottom: 8px;
    font-weight: 600;
}

.vdg-package-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.vdg-package-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #d5e880;
    color: #1b1b1b;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .vdg-package-type1-archive .wdt-packages-item-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .vdg-package-type1-archive .wdt-packages-item-wrapper.type1 {
        height: 360px;
        min-height: 360px !important;
    }
}

@media (max-width: 680px) {
    .vdg-package-type1-archive .wdt-packages-item-container {
        grid-template-columns: 1fr !important;
    }
    .vdg-package-category-archive {
        padding: 45px 0;
    }

    .vdg-package-category-container {
        width: 100% !important;
    }

    .vdg-package-type1-archive .wdt-packages-item-wrapper.type1 {
        height: 420px;
        min-height: 420px !important;
    }

    .vdg-package-type1-archive .wdt-packages-item-wrapper.type1 div.wdt-packagelist-details {
        padding: 24px !important;
        padding-top: 190px !important;
    }
}