/* ==========================================
   Auto361 Schede Tecniche - Frontend Styles
   Standalone browsable plugin
   ========================================== */

.a361-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; color: #1a1a2e; line-height: 1.6; }
.a361-page *, .a361-page *::before, .a361-page *::after { box-sizing: border-box; }
.a361-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb */
.a361-breadcrumb { padding: 16px 0; font-size: 13px; color: #888; }
.a361-breadcrumb a { color: #0066cc; text-decoration: none; }
.a361-breadcrumb a:hover { text-decoration: underline; }
.a361-breadcrumb span { margin: 0 6px; }

/* Hero */
.a361-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%); color: #fff; padding: 40px 0 48px; }
.a361-hero-title { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.a361-hero-desc { font-size: 16px; opacity: 0.8; margin: 0; max-width: 600px; }

/* Main Layout */
.a361-main-layout { display: flex; gap: 28px; padding: 28px 20px; max-width: 1200px; margin: 0 auto; }

/* Sidebar */
.a361-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 20px; align-self: flex-start; }
.a361-sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.a361-sidebar-header h3 { margin: 0; font-size: 18px; }
.a361-sidebar-close { display: none; }
.a361-filter-group { margin-bottom: 16px; }
.a361-filter-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #666; margin-bottom: 4px; }

.a361-select, .a361-input { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff; transition: border-color 0.2s; }
.a361-select:focus, .a361-input:focus { border-color: #0066cc; outline: none; box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.a361-select-sm { width: auto; padding: 6px 8px; font-size: 13px; }
.a361-range-row { display: flex; gap: 8px; }
.a361-input-half { width: 50%; }

/* Buttons */
.a361-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.a361-btn-primary { background: #0066cc; color: #fff; }
.a361-btn-primary:hover { background: #0052a3; color: #fff; }
.a361-btn-accent { background: #e74c3c; color: #fff; }
.a361-btn-accent:hover { background: #c0392b; }
.a361-btn-outline { background: #fff; color: #333; border: 1px solid #ddd; }
.a361-btn-outline:hover { border-color: #999; }
.a361-btn-text { background: none; border: none; color: #0066cc; cursor: pointer; font-size: 13px; padding: 4px 8px; }
.a361-btn-text:hover { text-decoration: underline; }
.a361-btn-full { width: 100%; }
.a361-mobile-filter-btn { display: none; }

/* Toolbar */
.a361-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.a361-toolbar-left { display: flex; align-items: center; gap: 12px; }
.a361-results-count { font-size: 14px; color: #888; }

/* Brands Strip */
.a361-brands-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.a361-brand-chip { display: inline-block; padding: 5px 14px; background: #f0f0f0; border-radius: 20px; font-size: 13px; font-weight: 500; color: #333; text-decoration: none; transition: all 0.2s; }
.a361-brand-chip:hover { background: #0066cc; color: #fff; }

/* Compare Bar */
.a361-compare-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1a1a2e; border-radius: 10px; margin-bottom: 20px; color: #fff; flex-wrap: wrap; }
.a361-compare-items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.a361-compare-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255,255,255,0.15); border-radius: 4px; font-size: 12px; }
.a361-compare-chip-remove { background: none; border: none; color: #fff; cursor: pointer; opacity: 0.7; font-size: 14px; padding: 0 2px; }
.a361-compare-chip-remove:hover { opacity: 1; }

/* Card Grid */
.a361-content { flex: 1; min-width: 0; }
.a361-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.a361-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.a361-grid.a361-loading { opacity: 0.4; pointer-events: none; transition: opacity 0.2s; }

/* Car Card */
.a361-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.a361-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.a361-card-media { position: relative; background: #f5f5f5; aspect-ratio: 16/10; overflow: hidden; }
.a361-card-media img { width: 100%; height: 100%; object-fit: cover; }
.a361-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.a361-card-brand-icon { font-size: 36px; font-weight: 800; color: #fff; opacity: 0.6; }
.a361-card-badge-alim { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; }
.a361-alim-elettrico { background: #27ae60; }
.a361-alim-ibrido, .a361-alim-mild-hybrid { background: #2980b9; }
.a361-alim-ibrido-plug-in { background: #8e44ad; }
.a361-alim-benzina { background: #e67e22; }
.a361-alim-diesel { background: #95a5a6; }
.a361-alim-gpl, .a361-alim-metano { background: #1abc9c; }
.a361-card-body { padding: 14px 16px 16px; }
.a361-card-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.a361-card-title a { color: #1a1a2e; text-decoration: none; }
.a361-card-title a:hover { color: #0066cc; }
.a361-card-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.a361-card-spec { font-size: 12px; color: #666; background: #f5f5f5; padding: 2px 8px; border-radius: 4px; }
.a361-card-prezzo { font-size: 18px; font-weight: 800; color: #0066cc; margin-bottom: 10px; }
.a361-card-actions { display: flex; gap: 8px; align-items: center; }
.a361-card-actions .a361-btn-primary { flex: 1; font-size: 12px; padding: 7px 12px; }
.a361-btn-compare { width: 36px; height: 36px; padding: 0; background: #f0f0f0; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.a361-btn-compare:hover, .a361-btn-compare.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.a361-card-sm .a361-card-body { padding: 10px 12px; }
.a361-card-sm .a361-card-title { font-size: 13px; }
.a361-card-sm .a361-card-prezzo { font-size: 15px; }

/* No Results / Pagination */
.a361-no-results { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: #888; }
.a361-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.a361-page-btn { padding: 8px 14px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.a361-page-btn:hover { border-color: #0066cc; color: #0066cc; }
.a361-page-btn.active { background: #0066cc; color: #fff; border-color: #0066cc; }

/* ======= SINGLE PAGE ======= */
.a361-single-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; padding: 32px 0 40px; }
.a361-single-hero-inner { display: flex; gap: 40px; align-items: center; }
.a361-single-hero-text { flex: 1; }
.a361-single-hero-media { width: 400px; flex-shrink: 0; }
.a361-single-hero-media img { width: 100%; border-radius: 10px; }
.a361-single-placeholder { width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 10px; font-size: 48px; }
.a361-single-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.a361-tag { display: inline-block; padding: 3px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.15); }
.a361-single-title { font-size: 30px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.a361-single-subtitle { font-size: 16px; opacity: 0.7; margin: 0 0 20px; }
.a361-quick-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.a361-qbadge { display: flex; align-items: baseline; gap: 4px; background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 6px; }
.a361-qbadge-icon { font-size: 14px; }
.a361-qbadge-val { font-size: 18px; font-weight: 800; }
.a361-qbadge-label { font-size: 11px; opacity: 0.7; }

.a361-single-body { display: flex; gap: 28px; padding: 28px 20px; max-width: 1200px; margin: 0 auto; }
.a361-single-main { flex: 1; min-width: 0; }
.a361-single-aside { width: 280px; flex-shrink: 0; }

.a361-price-card { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px 24px; margin-bottom: 28px; }
.a361-price-main { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.a361-price-label { font-size: 14px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.a361-price-value { font-size: 30px; font-weight: 800; color: #0066cc; }
.a361-price-extra, .a361-price-promo { font-size: 14px; color: #555; margin-bottom: 4px; }
.a361-price-promo { color: #27ae60; }
.a361-price-incentivi { font-size: 13px; color: #888; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e2e8f0; }

.a361-editorial { margin-bottom: 32px; font-size: 16px; line-height: 1.8; }

.a361-specs-section { margin-bottom: 36px; }
.a361-specs-section h2 { font-size: 22px; margin: 0 0 16px; }
.a361-tabs { border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; }
.a361-tab-nav { display: flex; flex-wrap: wrap; background: #f8f8f8; border-bottom: 1px solid #e0e0e0; }
.a361-tab-btn { padding: 10px 14px; border: none; background: none; cursor: pointer; font-size: 13px; color: #666; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.a361-tab-btn:hover { color: #333; background: #f0f0f0; }
.a361-tab-btn.active { color: #0066cc; border-bottom-color: #0066cc; background: #fff; font-weight: 600; }
.a361-tab-panel { display: none; }
.a361-tab-panel.active { display: block; }
.a361-spec-table { width: 100%; border-collapse: collapse; }
.a361-spec-table tr:nth-child(even) { background: #fafafa; }
.a361-spec-table td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.a361-spec-label { color: #666; width: 44%; font-weight: 500; }
.a361-spec-value { color: #1a1a2e; font-weight: 600; }

.a361-aside-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.a361-aside-card h4 { margin: 0 0 12px; font-size: 15px; }
.a361-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.a361-summary dt { color: #888; font-weight: 500; }
.a361-summary dd { margin: 0; font-weight: 600; color: #1a1a2e; }
.a361-summary dd a { color: #0066cc; text-decoration: none; }
.a361-summary dd a:hover { text-decoration: underline; }
.a361-aside-compare { text-align: center; }
.a361-aside-compare p { font-size: 13px; color: #888; margin: 0 0 12px; }

.a361-related { margin-top: 36px; }
.a361-related h2 { font-size: 20px; margin: 0 0 16px; }

/* ======= COMPARISON PAGE ======= */
.a361-page-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.a361-page-desc { font-size: 15px; color: #888; margin: 0 0 24px; }
.a361-compare-slots { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.a361-compare-slot { flex: 1; min-width: 150px; max-width: 250px; padding: 14px; background: #f8f8f8; border: 2px solid #e0e0e0; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.a361-slot-empty { border-style: dashed; color: #aaa; cursor: pointer; justify-content: center; font-weight: 400; }
.a361-slot-empty:hover { border-color: #0066cc; color: #0066cc; }
.a361-slot-remove { background: none; border: none; cursor: pointer; font-size: 16px; color: #999; padding: 0 4px; }
.a361-slot-remove:hover { color: #e74c3c; }
.a361-add-search { position: relative; max-width: 400px; }
.a361-search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 100; max-height: 250px; overflow-y: auto; }
.a361-search-item { padding: 10px 14px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.a361-search-item:hover { background: #f0f7ff; }
.a361-search-empty { padding: 12px 14px; color: #888; font-size: 14px; }
.a361-compare-table-wrap { overflow-x: auto; margin-bottom: 32px; }
.a361-compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.a361-compare-table th, .a361-compare-table td { padding: 10px 14px; border: 1px solid #e8e8e8; font-size: 14px; text-align: center; vertical-align: middle; }
.a361-compare-label-col { text-align: left !important; width: 200px; font-weight: 500; color: #666; background: #fafafa; }
.a361-compare-car-col { min-width: 180px; }
.a361-compare-car-col a { color: #0066cc; font-weight: 700; text-decoration: none; display: block; }
.a361-compare-car-col a:hover { text-decoration: underline; }
.a361-compare-thumb { width: 100%; max-width: 160px; border-radius: 6px; margin-bottom: 8px; }
.a361-compare-row-price td { font-weight: 800; font-size: 16px; color: #0066cc; background: #f0f7ff; }
.a361-compare-row-price td:first-child { color: #333; background: #fafafa; }
.a361-compare-section td { background: #1a1a2e; color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; }
.a361-compare-empty { text-align: center; padding: 48px 20px; color: #888; }
.a361-compare-empty a { color: #0066cc; }

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
    .a361-main-layout { flex-direction: column; }
    .a361-sidebar { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; z-index: 1000; background: #fff; padding: 20px; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,0.2); transition: left 0.3s; }
    .a361-sidebar.open { left: 0; }
    .a361-sidebar-close { display: block; position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 24px; cursor: pointer; }
    .a361-mobile-filter-btn { display: inline-flex; }
    body.a361-sidebar-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; }
    .a361-single-hero-inner { flex-direction: column-reverse; gap: 20px; }
    .a361-single-hero-media { width: 100%; }
    .a361-single-body { flex-direction: column; }
    .a361-single-aside { width: 100%; }
    .a361-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .a361-hero-title { font-size: 24px; }
    .a361-single-title { font-size: 24px; }
    .a361-qbadge-val { font-size: 15px; }
}
@media (max-width: 480px) {
    .a361-grid { grid-template-columns: 1fr; }
    .a361-quick-badges { gap: 6px; }
    .a361-qbadge { padding: 4px 8px; }
    .a361-tab-btn { padding: 8px 10px; font-size: 11px; }
    .a361-price-value { font-size: 24px; }
}

/* ======= OPTIONAL EQUIPMENT ======= */
.a361-optional-section { margin-top: 36px; margin-bottom: 36px; }
.a361-optional-section h2 { font-size: 22px; margin: 0 0 16px; }
.a361-opt-list { padding: 8px 16px; }
.a361-opt-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.a361-opt-item:last-child { border-bottom: none; }
.a361-opt-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.a361-opt-name { font-weight: 600; font-size: 14px; color: #1a1a2e; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a361-opt-sigla { font-size: 11px; color: #888; background: #f0f0f0; padding: 2px 6px; border-radius: 3px; font-weight: 500; }
.a361-opt-badge-incluso { font-size: 11px; color: #27ae60; background: #e8f8f0; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.a361-opt-prezzo { font-size: 16px; font-weight: 800; color: #0066cc; white-space: nowrap; }
.a361-opt-desc { font-size: 13px; color: #666; margin-top: 6px; line-height: 1.6; }
.a361-opt-note { font-size: 12px; color: #999; margin-top: 4px; font-style: italic; }
.a361-opt-incluso { background: #f8fdf8; margin: 0 -16px; padding: 14px 16px; border-radius: 6px; }

/* ======= GALLERY ======= */
.a361-single-hero-media { position: relative; }
.a361-hero-thumbstrip { display: flex; gap: 6px; margin-top: 8px; }
.a361-hero-thumb { width: 60px; height: 45px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.7; transition: all 0.2s; }
.a361-hero-thumb.active { border-color: #fff; opacity: 1; }
.a361-hero-thumb:hover { opacity: 1; }
.a361-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a361-hero-more { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.2); color: #fff; font-size: 13px; font-weight: 700; border-radius: 6px; }

.a361-gallery-section { padding: 24px 0; background: #f8f8f8; }
.a361-gallery-grid-front { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.a361-gallery-thumb-link { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; }
.a361-gallery-thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.a361-gallery-thumb-link:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
    .a361-gallery-grid-front { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .a361-hero-thumbstrip { gap: 4px; }
    .a361-hero-thumb { width: 48px; height: 36px; }
}

/* ======= MODEL PAGE ======= */
.a361-model-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; padding: 32px 0 40px; }
.a361-model-hero-inner { display: flex; gap: 40px; align-items: center; }
.a361-model-hero-text { flex: 1; }
.a361-model-brand { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-bottom: 4px; }
.a361-model-title { font-size: 36px; font-weight: 800; margin: 0 0 8px; }
.a361-model-desc { font-size: 15px; opacity: 0.8; margin: 0 0 16px; }
.a361-model-meta { display: flex; gap: 20px; font-size: 14px; }
.a361-model-price { background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 6px; }
.a361-model-gallery { width: 480px; flex-shrink: 0; }
.a361-gallery-main img { width: 100%; border-radius: 10px; }
.a361-gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.a361-gthumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s; }
.a361-gthumb.active { border-color: #fff; opacity: 1; }
.a361-gthumb:hover { opacity: 1; }
.a361-gthumb img { width: 100%; height: 100%; object-fit: cover; }

/* Versions Table */
.a361-versions-section { margin: 36px 0; }
.a361-versions-section h2 { font-size: 24px; margin: 0 0 16px; }
.a361-versions-scroll { overflow-x: auto; }
.a361-versions-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.a361-versions-table th, .a361-versions-table td { padding: 9px 14px; border: 1px solid #e8e8e8; font-size: 13px; text-align: center; }
.a361-vt-label { text-align: left !important; width: 180px; font-weight: 500; color: #666; background: #fafafa; position: sticky; left: 0; z-index: 1; }
.a361-vt-version { min-width: 140px; background: #1a1a2e; color: #fff; font-weight: 700; font-size: 13px; }
.a361-vt-name { display: block; }
.a361-vt-row-price td { font-weight: 800; font-size: 15px; color: #0066cc; background: #f0f7ff; }
.a361-vt-row-price td:first-child { color: #333; background: #fafafa; }
.a361-vt-row-actions td { padding: 12px 10px; }
.a361-btn-sm { font-size: 11px; padding: 5px 10px; }

/* ======= CONFIGURATOR ======= */
.a361-configurator { margin: 36px 0 48px; padding: 28px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; }
.a361-configurator h2 { font-size: 22px; margin: 0 0 20px; }
.a361-cfg-layout { display: flex; gap: 24px; }
.a361-cfg-main { flex: 1; min-width: 0; }
.a361-cfg-sidebar { width: 300px; flex-shrink: 0; }
.a361-cfg-step { margin-bottom: 24px; }
.a361-cfg-step h3 { font-size: 16px; margin: 0 0 12px; color: #555; }

/* Version cards */
.a361-cfg-version-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.a361-cfg-vcard { padding: 14px; background: #fff; border: 2px solid #e0e0e0; border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: center; }
.a361-cfg-vcard:hover { border-color: #0066cc; }
.a361-cfg-vcard.selected { border-color: #0066cc; background: #f0f7ff; box-shadow: 0 0 0 3px rgba(0,102,204,0.15); }
.a361-cfg-vcard-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.a361-cfg-vcard-specs { font-size: 12px; color: #888; margin-bottom: 6px; display: flex; gap: 8px; justify-content: center; }
.a361-cfg-vcard-price { font-size: 16px; font-weight: 800; color: #0066cc; }

/* Optional groups */
.a361-cfg-optgroup { margin-bottom: 16px; }
.a361-cfg-optgroup h4 { font-size: 14px; margin: 0 0 8px; color: #555; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e0e0e0; padding-bottom: 4px; }
.a361-cfg-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 6px; cursor: pointer; transition: all 0.15s; }
.a361-cfg-opt:hover { border-color: #0066cc; }
.a361-cfg-opt input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
.a361-cfg-opt-info { flex: 1; min-width: 0; }
.a361-cfg-opt-name { font-weight: 600; font-size: 13px; display: block; }
.a361-cfg-opt-name em { font-weight: 400; color: #27ae60; }
.a361-cfg-opt-desc { font-size: 11px; color: #888; display: block; margin-top: 2px; line-height: 1.4; }
.a361-cfg-opt-note { font-size: 11px; color: #aaa; font-style: italic; display: block; margin-top: 2px; }
.a361-cfg-opt-price { font-weight: 700; font-size: 13px; color: #0066cc; white-space: nowrap; flex-shrink: 0; }
.a361-cfg-opt-included { opacity: 0.6; background: #f8fdf8; }

/* Summary sidebar */
.a361-cfg-summary { position: sticky; top: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.a361-cfg-summary h4 { margin: 0 0 12px; font-size: 15px; }
.a361-cfg-summary-empty { color: #aaa; font-size: 14px; }
.a361-cfg-line { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.a361-cfg-line-opt { color: #666; }
.a361-cfg-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; color: #0066cc; padding-top: 10px; margin-top: 8px; border-top: 2px solid #0066cc; }

/* Responsive */
@media (max-width: 900px) {
    .a361-model-hero-inner { flex-direction: column-reverse; gap: 20px; }
    .a361-model-gallery { width: 100%; }
    .a361-model-title { font-size: 28px; }
    .a361-cfg-layout { flex-direction: column; }
    .a361-cfg-sidebar { width: 100%; }
    .a361-cfg-summary { position: static; }
    .a361-cfg-version-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Link to model page from version detail */
.a361-link-model { display: inline-block; margin-top: 10px; color: rgba(255,255,255,0.8); font-size: 13px; text-decoration: none; background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 6px; transition: all 0.2s; }
.a361-link-model:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ======= REDESIGNED SINGLE PAGE: Key Info First ======= */

/* Hero price */
.a361-hero-price { margin-top: 16px; }
.a361-hero-price-value { font-size: 32px; font-weight: 800; }
.a361-hero-price-label { font-size: 14px; opacity: 0.7; margin-left: 4px; }
.a361-hero-price-listino { display: block; font-size: 13px; opacity: 0.5; margin-top: 2px; }

/* Key badges - the 5 data points that decide if user stays */
.a361-key-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.a361-kbadge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 8px 14px; border-radius: 8px; }
.a361-kbadge-icon { font-size: 20px; }
.a361-kbadge-val { font-size: 18px; font-weight: 800; display: block; }
.a361-kbadge-label { font-size: 11px; opacity: 0.6; display: block; }

/* Neopatentati tag */
.a361-tag-neo { background: #27ae60; color: #fff; }

/* Essential specs: no tabs, immediately visible */
.a361-essential-section { margin-bottom: 28px; }
.a361-essential-section h2 { font-size: 20px; margin: 0 0 12px; }
.a361-essential-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
.a361-essential-table tr:nth-child(even) { background: #f9fafb; }
.a361-essential-table td { padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.a361-ess-label { color: #555; width: 45%; font-weight: 500; }
.a361-ess-value { color: #1a1a2e; font-weight: 700; }

/* Expandable full specs */
.a361-full-specs { margin-bottom: 32px; }
.a361-expand-btn { width: 100%; padding: 14px 20px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: #333; text-align: left; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
.a361-expand-btn:hover { background: #eee; }
.a361-expand-btn.expanded { background: #fff; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.a361-expand-arrow { font-size: 12px; }
.a361-full-specs-content { border: 1px solid #ddd; border-top: none; border-radius: 0 0 8px 8px; padding: 8px 0; }
.a361-spec-group { padding: 8px 16px; }
.a361-spec-group h3 { font-size: 15px; margin: 12px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #eee; color: #555; }

@media (max-width: 480px) {
    .a361-hero-price-value { font-size: 24px; }
    .a361-kbadge { padding: 6px 10px; }
    .a361-kbadge-val { font-size: 15px; }
    .a361-essential-table td { padding: 8px 12px; font-size: 13px; }
}

/* ======= BRAND LOGOS ======= */
.a361-brand-logo { max-height: 28px; width: auto; vertical-align: middle; }
.a361-brand-letter { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #1a1a2e; color: #fff; border-radius: 50%; font-weight: 800; font-size: 14px; }

/* ======= SEO CONFRONTO PAGES ======= */
.a361-confronto-hero { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); color: #fff; padding: 32px 0 40px; }
.a361-confronto-title { font-size: 28px; font-weight: 800; margin: 0 0 24px; text-align: center; }
.a361-confronto-cards { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.a361-confronto-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; text-align: center; flex: 1; min-width: 200px; max-width: 280px; }
.a361-cc-brand-logo { max-height: 32px; margin-bottom: 8px; filter: brightness(0) invert(1); }
.a361-cc-img { width: 100%; max-width: 220px; border-radius: 8px; margin-bottom: 10px; }
.a361-cc-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.a361-cc-name a { color: #fff; text-decoration: none; }
.a361-cc-name a:hover { text-decoration: underline; }
.a361-cc-price { font-size: 20px; font-weight: 800; color: #4fc3f7; }
.a361-confronto-vs { font-size: 24px; font-weight: 900; color: rgba(255,255,255,0.3); padding: 0 4px; }

/* Highlights box - optimized for featured snippets */
.a361-confronto-highlights { background: #f0f7ff; border-left: 4px solid #0066cc; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.a361-confronto-highlights h2 { font-size: 18px; margin: 0 0 8px; color: #0066cc; }
.a361-highlights-content { font-size: 14px; color: #333; }
.a361-highlights-content p { margin: 4px 0; }

/* Comparison table */
.a361-confronto-table-section { margin: 32px 0; }
.a361-confronto-table-section h2 { font-size: 22px; margin: 0 0 16px; }
.a361-confronto-scroll { overflow-x: auto; }
.a361-confronto-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.a361-confronto-table th, .a361-confronto-table td { padding: 9px 14px; border: 1px solid #e8e8e8; font-size: 13px; text-align: center; }
.a361-ct-label { text-align: left !important; font-weight: 500; color: #666; background: #fafafa; width: 200px; }
.a361-ct-car { background: #1a1a2e; color: #fff; font-weight: 700; min-width: 160px; }
.a361-ct-car a { color: #fff; text-decoration: none; }
.a361-ct-logo { max-height: 20px; margin-bottom: 4px; filter: brightness(0) invert(1); display: block; margin: 0 auto 4px; }
.a361-ct-section td { background: #f0f0f0; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; color: #555; }
.a361-ct-val { font-weight: 600; color: #1a1a2e; }
.a361-ct-na { color: #ccc; }

/* Verdict */
.a361-confronto-verdict { background: #fafaf5; border: 1px solid #e8e0c0; border-radius: 10px; padding: 20px 24px; margin: 32px 0; }
.a361-confronto-verdict h2 { font-size: 20px; margin: 0 0 12px; }
.a361-verdict-content { font-size: 15px; line-height: 1.7; }

/* Links to individual pages */
.a361-confronto-links { margin: 28px 0 40px; }
.a361-confronto-links h3 { font-size: 18px; margin: 0 0 12px; }
.a361-link-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.a361-link-card { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 8px; text-decoration: none; color: #1a1a2e; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.a361-link-card:hover { border-color: #0066cc; color: #0066cc; background: #f0f7ff; }
.a361-lc-logo { max-height: 20px; }

@media (max-width: 700px) {
    .a361-confronto-cards { flex-direction: column; }
    .a361-confronto-card { max-width: 100%; }
    .a361-confronto-vs { transform: rotate(90deg); }
}

/* ======= CALCULATORS ======= */
.a361-calculators { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.a361-calc-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 20px; }
.a361-calc-card h4 { margin: 0 0 12px; font-size: 15px; }
.a361-calc-result { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.a361-calc-value { font-size: 26px; font-weight: 800; color: #0066cc; }
.a361-calc-label { font-size: 14px; color: #888; }
.a361-calc-monthly { font-size: 13px; color: #666; }
.a361-calc-note { font-size: 13px; color: #27ae60; margin: 4px 0; }
.a361-calc-disclaimer { font-size: 11px; color: #aaa; margin: 6px 0 0; }
.a361-calc-form { margin-top: 4px; }
.a361-calc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.a361-calc-row label { font-size: 13px; color: #555; min-width: 110px; }
.a361-input-sm { width: 120px; padding: 6px 8px; font-size: 14px; }
@media (max-width: 480px) {
    .a361-calculators { grid-template-columns: 1fr; }
    .a361-calc-value { font-size: 22px; }
}

/* ======= AUTO PAGES (cross-taxonomy) ======= */
.a361-auto-stats { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.a361-auto-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 20px; text-align: center; flex: 1; min-width: 120px; }
.a361-auto-stat-val { display: block; font-size: 24px; font-weight: 800; color: #0066cc; }
.a361-auto-stat-label { display: block; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.a361-auto-comparison { margin-bottom: 32px; }
.a361-auto-comparison h2 { font-size: 20px; margin: 0 0 12px; }
@media (max-width: 480px) {
    .a361-auto-stats { gap: 8px; }
    .a361-auto-stat { padding: 12px; min-width: 80px; }
    .a361-auto-stat-val { font-size: 18px; }
}

/* ======= AUTO SIMILI ======= */
.a361-similar { margin-top: 36px; }
.a361-similar h2 { font-size: 20px; margin: 0 0 4px; }
.a361-similar-desc { font-size: 13px; color: #888; margin: 0 0 16px; }
.a361-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.a361-card-brand-row { margin-bottom: 6px; }
.a361-card-brand-logo { max-height: 18px; width: auto; }

/* Data listino */
.a361-hero-price-date { display: block; font-size: 12px; opacity: 0.5; margin-top: 4px; }

/* ======= EXPANDABLE VERSION DETAILS ======= */
.a361-version-details { margin: 36px 0; }
.a361-version-details h2 { font-size: 22px; margin: 0 0 16px; }
.a361-vdetail { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.a361-vdetail-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #f8fafc; border: none; cursor: pointer; font-size: 15px; transition: background 0.2s; text-align: left; }
.a361-vdetail-header:hover { background: #eef2f7; }
.a361-vdetail-header.expanded { background: #fff; border-bottom: 1px solid #e2e8f0; }
.a361-vdetail-name { font-weight: 700; color: #1a1a2e; }
.a361-vdetail-price { font-weight: 800; color: #0066cc; font-size: 16px; }
.a361-vdetail-arrow { font-size: 12px; color: #888; margin-left: 12px; }
.a361-vdetail-body { padding: 16px 20px; }
.a361-vdetail-body .a361-spec-group h4 { font-size: 14px; margin: 16px 0 8px; color: #555; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.a361-vdetail-body .a361-spec-group:first-child h4 { margin-top: 0; }
.a361-model-brand-logo { max-height: 40px; margin-bottom: 8px; filter: brightness(0) invert(1); }
@media (max-width: 600px) {
    .a361-vdetail-header { padding: 12px 14px; font-size: 14px; flex-wrap: wrap; gap: 4px; }
}
