        /* ============================================
           ARCHIVIO / LISTING PAGE - STILI SPECIFICI
           ============================================ */
        
        .archive-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 30px 20px;
        }
        
        /* Breadcrumb */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
        }
        
        .breadcrumb a {
            color: #1e8a8f;
            text-decoration: none;
        }
        
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        
        .breadcrumb-separator {
            color: #999;
        }
        
        /* Header risultati */
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .results-count {
            font-family: 'Roboto Slab', serif;
            font-size: 24px;
            color: #333;
        }
        
        .results-count strong {
            color: #f5a623;
        }
        
        .results-sort {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .results-sort label {
            font-weight: 500;
            color: #666;
	    white-space: nowrap;
        }
        
        /* ========================================
           FILTRI RAPIDI E SAVE SEARCH
           ======================================== */
        
        .quick-actions-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-bottom: 25px;
            flex-wrap: wrap;
        }
        
        .quick-filters {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            flex: 1;
        }
        
        .quick-filters-label {
            font-weight: 600;
            font-size: 14px;
            color: #666;
            white-space: nowrap;
        }
        
        .quick-filter-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: #f5f5f5;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: #666;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        
        .quick-filter-tag:hover {
            background: #fff5e6;
            border-color: #f5a623;
            color: #f5a623;
        }
        
        .quick-filter-tag.active {
            background: linear-gradient(135deg, #f5a623, #1e8a8f);
            border-color: #f5a623;
            color: white;
        }
        
        .quick-filter-icon {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }
        
        .quick-filter-close {
            font-size: 18px;
            margin-left: 4px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .quick-filter-tag.active .quick-filter-close {
            opacity: 1;
        }
        
        .quick-filter-tag.active:hover {
            background: linear-gradient(135deg, #e09515, #166c70);
        }

        /* Chip dei filtri ATTIVI: sono link rimovibili, gia' "accesi" con la × visibile */
        .quick-filter-tag { text-decoration: none; }
        #active-filters .quick-filter-tag {
            background: linear-gradient(135deg, #f5a623, #1e8a8f);
            border-color: #f5a623;
            color: #fff;
        }
        #active-filters .quick-filter-tag .quick-filter-close { opacity: 1; }
        #active-filters .quick-filter-tag:hover {
            background: linear-gradient(135deg, #e09515, #166c70);
        }
        .quick-filter-clear {
            color: rgb(30, 138, 143);
    	    font-weight: 600;
    	    font-size: 14px;
    	    cursor: pointer;
    	    background: none;
    	    border-width: medium;
    	    border-style: none;
    	    border-color: currentcolor;
    	    border-image: initial;
    	    padding: 5px 10px;
    	    border-radius: 4px;
    	    transition: background 0.3s;
	    text-decoration: none;
        }
        .quick-filter-clear:hover {
	    text-decoration: none;
    	    background: #f4ffff; 
	}

        /* Filtri veloci (preset) */
        .quick-presets { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .preset-tag {
            padding: 8px 14px;
            background: #f5f5f5;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: #666;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        .preset-tag:hover { background: #fff5e6; border-color: #f5a623; color: #f5a623; }
        .preset-tag.active {
            background: linear-gradient(135deg, #f5a623, #1e8a8f);
            border-color: #f5a623;
            color: #fff;
        }
        .preset-tag.active:hover { background: linear-gradient(135deg, #e09515, #166c70); }

        /* Riga chip "Filtri attivi" (sotto i preset) */
        #archivio-chips {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        /* Stato di caricamento della lista durante l'AJAX */
        #archivio-lista.is-loading { opacity: 0.5; pointer-events: none; transition: opacity 0.15s; }
        
        /* Save Search Button */
        .save-search-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: white;
            border: 2px solid #1e8a8f;
            border-radius: 25px;
            color: #1e8a8f;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        
        .save-search-btn:hover {
            background: #1e8a8f;
            color: white;
        }
        
        .save-search-btn svg {
            width: 18px;
            height: 18px;
        }
        
        .save-search-btn.saved {
            background: #1e8a8f;
            color: white;
        }
        
        .save-search-btn.saved svg {
            fill: white;
        }
        
        .select-wrapper {
            position: relative;
            width: 100%;
        }
        
        .select-wrapper select {
            width: 100%;
            box-sizing: border-box;
            padding: 10px 35px 10px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
            background: white;
            cursor: pointer;
            appearance: none;
        }
        
        .select-wrapper::after {
            content: '▼';
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 10px;
            color: #666;
            pointer-events: none;
        }
        
        /* Layout principale */
        .archive-layout {
            display: grid;
            grid-template-columns: 380px 1fr;
            gap: 30px;
            align-items: start;
        }
        
        /* ========================================
           SIDEBAR FILTRI
           ======================================== */
        
        .filters-sidebar {
            position: sticky;
            top: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            padding: 25px 20px;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            overflow-x: hidden;
            box-sizing: border-box;
        }

        /* nessun campo della sidebar puo' eccedere in larghezza */
        .filters-sidebar select,
        .filters-sidebar input {
            max-width: 100%;
            box-sizing: border-box;
        }
        .filters-sidebar .range-inputs input { min-width: 0; }
        
        .filters-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .filters-title {
            font-family: 'Roboto Slab', serif;
            font-size: 20px;
            color: #333;
        }
        
        .filters-reset {
            background: none;
            border: none;
            color: #f5a623;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 4px;
            transition: background 0.3s;
        }
        
        .filters-reset:hover {
            background: #fff5e6;
        }
        
        /* Singolo filtro */
        .filter-group {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .filter-group:last-child {
            border-bottom: none;
        }
        
        .filter-label {
            display: block;
            font-weight: 600;
            font-size: 15px;
            color: #333;
            margin-bottom: 12px;
        }
        
        .filter-group select,
        .filter-group input[type="text"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        /* Range slider customizzato */
        .range-inputs {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 10px;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .range-inputs input {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 13px;
            text-align: center;
        }
        
        .range-separator {
            color: #999;
        }
        
        .slider-wrap {
            margin-top: 10px;
        }
        
        .slider-track-wrap {
            position: relative;
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            margin: 15px 0;
        }
        
        .slider {
            position: absolute;
            width: 100%;
            height: 6px;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
        }
        
        .slider-fill {
            position: absolute;
            height: 6px;
            background: linear-gradient(90deg, #f5a623, #1e8a8f);
            border-radius: 3px;
            pointer-events: none;
        }
        
        .slider-value {
            display: block;
            text-align: right;
            font-size: 13px;
            font-weight: 600;
            color: #1e8a8f;
            margin-top: 5px;
        }
        
        /* Checkbox group */
        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        
        .checkbox-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #f5a623;
        }
        
        .checkbox-item label {
            cursor: pointer;
            font-size: 14px;
            color: #333;
        }
        
        /* Pulsante applica filtri */
        .filters-apply {
            width: 100%;
            padding: 14px;
            background: #f5a623;
            color: white;
            border: none;
            border-radius: 25px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            margin-top: 20px;
            transition: background 0.3s;
        }
        
        .filters-apply:hover {
            background: #e09515;
        }
        
        /* ========================================
           LISTA PRODOTTI
           ======================================== */
        
        .products-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        /* Card prodotto orizzontale */
        .product-card-horizontal {
            display: grid;
            grid-template-columns: 350px 1fr auto;
            gap: 20px;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .product-card-horizontal:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }
        
        /* Immagine */
        .product-image-wrapper {
            position: relative;
            height: 250px;
            background: #f0f0f0;
            overflow: hidden;
        }
        
        .product-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .product-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: #f5a623;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
        }
        
        .favorite-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.95);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .favorite-btn:hover {
            background: white;
            transform: scale(1.1);
        }
        
        .favorite-btn.active {
            background: #f5a623;
        }
        
        .favorite-btn svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: #333;
            stroke-width: 2;
        }
        
        .favorite-btn.active svg {
            fill: white;
            stroke: white;
        }
        
        /* Info prodotto */
        .product-info-wrapper {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .product-title-link {
            text-decoration: none;
            color: #333;
        }
        
        .product-title {
            font-family: 'Roboto Slab', serif;
            font-size: 22px;
            font-weight: 700;
            color: #333;
            margin-bottom: 5px;
            transition: color 0.3s;
        }
        
        .product-title-link:hover .product-title {
            color: #f5a623;
        }
        
        .product-subtitle {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
        
        /* Specifiche tech */
        .product-specs-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 12px;
        }
        
        .spec-item-small {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: #666;
        }
        
        .spec-icon-small {
            width: 16px;
            height: 16px;
            fill: #999;
        }
        
        /* Dealer info */
        .dealer-info {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 12px;
            border-top: 1px solid #f0f0f0;
            margin-top: auto;
        }
        
        .dealer-icon {
            width: 20px;
            height: 20px;
            fill: #666;
        }
        
        .dealer-name {
            font-size: 14px;
            color: #666;
        }
        
        .dealer-location {
            font-size: 13px;
            color: #999;
        }
        
        /* Colonna prezzi e CTA */
        .product-price-wrapper {
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-end;
            min-width: 220px;
            background: #fafafa;
            border-left: 1px solid #f0f0f0;
        }
        
        .product-price-main {
            font-family: 'Roboto Slab', serif;
            font-size: 28px;
            font-weight: 700;
            color: #1e8a8f;
            margin-bottom: 8px;
        }
        
        .product-finance-hint {
            font-size: 13px;
            color: #666;
            margin-bottom: 15px;
            text-align: right;
        }
        
        .product-finance-hint strong {
            color: #333;
            font-weight: 600;
        }
        
        .btn-view-details {
            width: 100%;
            padding: 12px 24px;
            background: #f5a623;
            color: white;
            border: none;
            border-radius: 25px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            text-align: center;
            display: block;
        }
        
        .btn-view-details:hover {
            background: #e09515;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
        }
        
        /* Paginazione: contenitore custom (non usato dall'output CI4) */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 40px;
            padding: 20px;
        }

        /* ===== Paginazione reale (output Pager CI4 default_full) ===== */
        .pagination-wrap {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            padding: 10px 0 4px;
        }
        .pagination-wrap ul {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding: 0;
            margin: 0;
        }
        .pagination-wrap li { margin: 0; }
        .pagination-wrap a,
        .pagination-wrap li > span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            color: #1e8a8f;
            background: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s;
        }
        .pagination-wrap a:hover {
            background: #e6f4f4;
            border-color: #1e8a8f;
        }
        .pagination-wrap li.active a,
        .pagination-wrap li.active > span {
            background: #1e8a8f;
            border-color: #1e8a8f;
            color: #fff;
        }
        .pagination-wrap li.disabled a,
        .pagination-wrap li.disabled > span {
            color: #bbb;
            background: #f7f7f7;
            cursor: default;
        }
        
        .pagination-btn {
            padding: 10px 16px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            transition: all 0.3s;
        }
        
        .pagination-btn:hover {
            border-color: #f5a623;
            color: #f5a623;
        }
        
        .pagination-btn.active {
            background: #f5a623;
            color: white;
            border-color: #f5a623;
        }
        
        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .archive-layout {
                grid-template-columns: 350px 1fr;
            }
            
            .product-card-horizontal {
                grid-template-columns: 280px 1fr auto;
            }
        }
        
        @media (max-width: 992px) {
            .archive-layout {
                grid-template-columns: 1fr;
            }
            
            .filters-sidebar {
                position: static;
                max-height: none;
            }
            
            .product-card-horizontal {
                grid-template-columns: 1fr;
            }
            
            .product-image-wrapper {
                height: 220px;
            }
            
            .product-price-wrapper {
                border-left: none;
                border-top: 1px solid #f0f0f0;
                align-items: stretch;
            }
            
            .product-price-main,
            .product-finance-hint {
                text-align: left;
            }
            
            .quick-actions-bar {
                flex-direction: column;
                align-items: stretch;
            }
            
            .quick-filters {
                order: 2;
            }
            
            .save-search-btn {
                order: 1;
                justify-content: center;
            }
        }
        
        @media (max-width: 768px) {
            .quick-filters {
                overflow-x: auto;
                padding-bottom: 10px;
            }
            
            .quick-filters::-webkit-scrollbar {
                height: 4px;
            }
            
            .quick-filters::-webkit-scrollbar-track {
                background: #f0f0f0;
            }
            
            .quick-filters::-webkit-scrollbar-thumb {
                background: #ccc;
                border-radius: 2px;
            }
        }
        
        /* Scrollbar personalizzata per sidebar */
        .filters-sidebar::-webkit-scrollbar {
            width: 6px;
        }
        
        .filters-sidebar::-webkit-scrollbar-track {
            background: #f0f0f0;
            border-radius: 3px;
        }
        
        .filters-sidebar::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }
        
        .filters-sidebar::-webkit-scrollbar-thumb:hover {
            background: #999;
        }
        
        /* ========================================
           MODAL SAVE SEARCH
           ======================================== */
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 20px;
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        .modal-content {
            background: white;
            border-radius: 12px;
            max-width: 550px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            animation: modalSlideIn 0.3s ease-out;
        }
        
        @keyframes modalSlideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 25px 30px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .modal-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: 'Roboto Slab', serif;
            font-size: 22px;
            color: #333;
            margin: 0;
        }
        
        .modal-title svg {
            width: 24px;
            height: 24px;
            stroke: #1e8a8f;
        }
        
        .modal-close {
            width: 36px;
            height: 36px;
            border: none;
            background: #f5f5f5;
            border-radius: 50%;
            font-size: 28px;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            line-height: 1;
        }
        
        .modal-close:hover {
            background: #e0e0e0;
            color: #333;
        }
        
        .modal-body {
            padding: 30px;
        }
        
        .modal-description {
            color: #666;
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 25px;
        }
        
        .search-summary {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 25px;
        }
        
        .search-summary h4 {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
        }
        
        .search-criteria {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .criteria-tag {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            background: linear-gradient(135deg, #f5a623, #1e8a8f);
            color: white;
            border-radius: 15px;
            font-size: 13px;
            font-weight: 500;
        }
        
        .save-search-form .form-group {
            margin-bottom: 20px;
        }
        
        .save-search-form label {
            display: block;
            font-weight: 600;
            font-size: 14px;
            color: #333;
            margin-bottom: 8px;
        }
        
        .save-search-form input[type="text"],
        .save-search-form input[type="email"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .save-search-form input[type="text"]:focus,
        .save-search-form input[type="email"]:focus {
            outline: none;
            border-color: #1e8a8f;
        }
        
        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .radio-item {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-weight: 400;
        }
        
        .radio-item input[type="radio"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #1e8a8f;
        }
        
        .save-search-form .checkbox-item {
            margin: 20px 0;
        }
        
        .save-search-form .checkbox-item label {
            font-weight: 400;
            font-size: 13px;
            color: #666;
        }
        
        .modal-actions {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }
        
        .btn-modal-cancel {
            flex: 1;
            padding: 12px 24px;
            background: white;
            border: 2px solid #ddd;
            border-radius: 25px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-modal-cancel:hover {
            border-color: #999;
            background: #f5f5f5;
        }
        
        .btn-modal-submit {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 24px;
            background: #1e8a8f;
            border: none;
            border-radius: 25px;
            color: white;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-modal-submit:hover {
            background: #166c70;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(30, 138, 143, 0.3);
        }
        
        .btn-modal-submit svg {
            width: 18px;
            height: 18px;
        }
        
        /* Responsive modal */
        @media (max-width: 768px) {
            .modal-content {
                max-width: 100%;
                border-radius: 12px 12px 0 0;
                margin-top: auto;
            }
            
            .modal-actions {
                flex-direction: column;
            }
        }
