/* ============================================
   FILIALI CSS - Mobile-First Approach
   Based on WEB_4_0_MOBILE_FIRST_GUIDE
   ============================================ */

/* CSS Variables - Breakpoints & Design Tokens */
:root {
    /* Breakpoints */
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;

    /* Colors */
    --color-primary: #e22721;
    --color-primary-dark: #c91f1a;
    --color-success: #0B8D84;
    --color-warning: #E56E12;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-border: #e5e7eb;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Touch targets */
    --touch-target-min: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header sticky fix */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* BASE STYLES - Mobile Default */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
}

/* Touch-friendly elements */
button,
.btn,
.geo-btn,
.geo-btn-modern,
.geo-btn-light,
.search-btn,
a.cta-contact-btn {
    min-height: var(--touch-target-min);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS zoom on input focus */
input,
select,
textarea,
.search-input,
.filter-input {
    font-size: 16px;
    min-height: var(--touch-target-min);
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ============================================
   RESPONSIVE VISIBILITY UTILITIES
   ============================================ */

/* Mobile-only: visible on mobile, hidden on desktop */
.mobile-only {
    display: flex;
}
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
    .desktop-only {
        display: flex !important;
    }
}

/* ============================================
   HERO SEARCH DESKTOP
   ============================================ */
.hero-search-desktop {
    width: 100%;
}

.hero-search-wrapper {
    position: relative;
    width: 100%;
}

.hero-search-input {
    width: 100%;
    padding: 18px 20px 18px 52px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    transition: all 0.2s ease;
    color: #1f2937;
}

.hero-search-input:focus {
    outline: none;
    border-color: #e22721;
    box-shadow: 0 0 0 4px rgba(226, 39, 33, 0.1);
}

.hero-search-input::placeholder {
    color: #9ca3af;
}

.hero-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.hero-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.hero-autocomplete-dropdown.show {
    display: block;
}

.hero-autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.hero-autocomplete-item:last-child {
    border-bottom: none;
}

.hero-autocomplete-item:hover {
    background: #fef2f2;
}

.hero-autocomplete-item strong {
    color: #e22721;
}

.hero-autocomplete-item .brand-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}

/* ============================================
   HERO LIGHT THEME - Filiali (Mobile-First)
   ============================================ */

/* Mobile base styles */
.hero-light {
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    padding: 40px 0 60px;
}

/* Hero Map Background variant */
.hero-map-bg {
    position: relative;
    overflow: hidden;
    background: none !important;
    padding: 60px 0 80px;
    min-height: 500px;
}

.hero-map-bg #hero-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
}

/* Mobile: single column */
.hero-light-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-light-content {
    max-width: 100%;
    text-align: center;
}

.hero-badge-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: var(--space-md);
}

/* Mobile: smaller title */
.hero-light-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-light-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Geo Card */
.hero-geo-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.geo-btn-light {
    width: 100%;
    background: linear-gradient(135deg, #e22721 0%, #c91f1a 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.geo-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 39, 33, 0.3);
    color: white;
    text-decoration: none;
}

.geo-btn-icon-light {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.geo-btn-text-light {
    flex: 1;
    text-align: left;
}

.geo-btn-text-light .geo-main {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.geo-btn-text-light .geo-sub {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

.geo-arrow {
    flex-shrink: 0;
}

.geo-alt-light {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #9ca3af;
}

.geo-alt-light a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e22721;
    text-decoration: none;
    font-weight: 500;
}

.geo-alt-light a:hover {
    text-decoration: underline;
}

/* Geo Alert */
.geo-alert-light {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.geo-alert-icon-light {
    flex-shrink: 0;
}

.geo-alert-content-light strong {
    display: block;
    color: #92400e;
    margin-bottom: 4px;
}

.geo-alert-content-light p {
    font-size: 14px;
    color: #78716c;
    margin-bottom: 12px;
}

.geo-alert-btns {
    display: flex;
    gap: 10px;
}

.geo-alert-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.geo-alert-btn.primary {
    background: #e22721;
    color: white;
}

.geo-alert-btn.secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Stats - Mobile First (wrap and centered) */
.hero-light-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.hero-light-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-light-stat .stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.hero-light-stat .stat-label {
    font-size: 12px;
    color: #9ca3af;
}

/* Mobile: hide stat dividers */
.stat-divider-light {
    display: none;
}

/* Hero Image - Mobile First (smaller) */
.hero-light-image {
    position: relative;
}

.hero-light-image img,
.hero-light-image #hero-map {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Hero Map BG: single column, left-aligned content */
.hero-map-bg .hero-light-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
}

.hero-map-bg .hero-light-content {
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.hero-map-bg .hero-light-stats {
    justify-content: flex-start;
    margin-bottom: 0;
}

.hero-map-bg .hero-badge-light {
    background: rgba(255,255,255,0.8);
}

.hero-map-bg .hero-light-stat .stat-number {
    color: #111827;
}

.hero-map-bg .hero-light-stat .stat-label {
    color: #6b7280;
}

/* Hero Light - Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .hero-light {
        padding: 60px 0;
    }

    .hero-light-title {
        font-size: 36px;
    }

    .hero-light-subtitle {
        font-size: 17px;
    }

    .hero-light-stat .stat-number {
        font-size: 28px;
    }

    .stat-divider-light {
        display: block;
        width: 1px;
        height: 40px;
        background: var(--color-border);
    }

    .hero-light-image img,
    .hero-light-image #hero-map {
        height: 350px;
        border-radius: 20px;
    }

    .hero-map-bg {
        min-height: 550px;
        padding: 80px 0;
    }
}

/* Hero Light - Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .hero-light {
        padding: 80px 0;
    }

    .hero-light-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero-light-content {
        max-width: 560px;
        text-align: left;
    }

    .hero-light-title {
        font-size: 48px;
    }

    .hero-light-subtitle {
        font-size: 18px;
    }

    .hero-light-stats {
        justify-content: flex-start;
    }

    .hero-light-stat .stat-number {
        font-size: 32px;
    }

    .hero-light-image img,
    .hero-light-image #hero-map {
        height: 500px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    }

    .geo-btn-text-light {
        text-align: left;
    }

    /* Hero Map BG desktop overrides */
    .hero-map-bg {
        min-height: 600px;
        padding: 100px 0;
    }

    .hero-map-bg .hero-light-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .hero-map-bg .hero-light-content {
        max-width: 700px;
        text-align: left;
    }

    .hero-map-bg .hero-light-stats {
        justify-content: flex-start;
    }

    .hero-map-bg .hero-light-title {
        font-size: 52px;
    }

    .hero-map-overlay {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* HERO SECTION - Modern with Background (OLD) */
.hero-modern {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    display: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.85) 100%);
}

.hero-modern .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge-filiali {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(226, 39, 33, 0.15);
    color: #e22721;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-modern h1 {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

/* Geo Button Modern */
.hero-geo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.geo-btn-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #e22721;
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(226, 39, 33, 0.3);
}

.geo-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(226, 39, 33, 0.4);
    background: #c91f1a;
}

.geo-btn-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-btn-text {
    text-align: left;
}

.geo-btn-main {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.geo-btn-sub {
    display: block;
    font-size: 13px;
    opacity: 0.85;
}

.hero-search-alt {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.search-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.search-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Geo Alert Modern */
.geo-alert-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    max-width: 550px;
    margin: 0 auto 40px;
    display: flex;
    gap: 16px;
    text-align: left;
}

.geo-alert-icon-modern {
    flex-shrink: 0;
    color: #E56E12;
}

.geo-alert-modern h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
}

.geo-alert-modern p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 16px;
}

.geo-alert-actions-modern {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.geo-alert-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.geo-alert-btn-modern.primary {
    background: #e22721;
    color: white;
    border: none;
}

.geo-alert-btn-modern.primary:hover {
    background: #c91f1a;
    color: white;
    text-decoration: none;
}

.geo-alert-btn-modern.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.geo-alert-btn-modern.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* Hero Stats Row */
.hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .stat-num {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.hero-stat-item .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Old hero hidden */
.hero {
    display: none;
}

/* BOTTONE GEOLOCALIZZAZIONE */
.geo-btn {
    background: #e22721;
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(226, 39, 33, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.geo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(226, 39, 33, 0.4);
    background: #c91f1a;
}

.geo-btn:active {
    transform: translateY(-1px);
}

.geo-icon {
    display: flex;
    align-items: center;
}

.geo-icon i,
.geo-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.geo-btn.loading .geo-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ALERT NESSUNA FILIALE VICINA */
.geo-alert {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 40px auto 0;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    gap: 20px;
    text-align: left;
}

.geo-alert-icon {
    flex-shrink: 0;
}

.geo-alert-icon i,
.geo-alert-icon svg {
    width: 40px;
    height: 40px;
    stroke: #E56E12;
}

.geo-alert-content h3 {
    color: #1f2937;
    font-size: 20px;
    margin-bottom: 8px;
}

.geo-alert-content p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 20px;
}

.geo-alert-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.geo-alert-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.geo-alert-btn i,
.geo-alert-btn svg {
    width: 18px;
    height: 18px;
}

.geo-alert-btn.primary {
    background: #e22721;
    color: white;
    border: none;
}

.geo-alert-btn.primary i,
.geo-alert-btn.primary svg {
    stroke: white;
}

.geo-alert-btn.primary:hover {
    background: #c91f1a;
    color: white;
    text-decoration: none;
}

.geo-alert-btn.secondary {
    background: white;
    color: #e22721;
    border: 2px solid #e22721;
}

.geo-alert-btn.secondary i,
.geo-alert-btn.secondary svg {
    stroke: #e22721;
}

.geo-alert-btn.secondary:hover {
    background: #fee2e2;
    text-decoration: none;
}

/* SEZIONE RICERCA MANUALE */
.search-section {
    background: #f9fafb;
    padding: 60px 0 40px;
    text-align: center;
}

.search-section h2 {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 10px;
}

.search-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
}

/* SEARCH BAR */
.search-container {
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: #e22721;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-btn i,
.search-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.search-btn:hover {
    background: #c91f1a;
    transform: scale(1.05);
}

/* AUTOCOMPLETE */
.autocomplete-wrapper {
    position: relative;
    flex: 1;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f9fafb;
}

.autocomplete-item strong {
    color: #e22721;
}

.autocomplete-item .brand-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    color: white;
}

/* VANTAGGI SECTION - Bento Grid Modern */
.vantaggi-modern {
    background: #f9fafb;
    padding: 80px 0;
}

.vantaggi-header {
    text-align: center;
    margin-bottom: 50px;
}

.vantaggi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 141, 132, 0.1);
    color: #0B8D84;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.vantaggi-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
}

/* Vantaggi Bento - Mobile First (single column) */
.vantaggi-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* Mobile: no spanning */
.vantaggio-card-large {
    grid-row: span 1;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.vantaggio-card-large:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.vantaggio-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vantaggio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vantaggio-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.vantaggio-overlay-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
}

.vantaggio-overlay-content .overlay-num {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #0B8D84;
}

.vantaggio-overlay-content .overlay-label {
    font-size: 12px;
    color: #6b7280;
}

.vantaggio-card-body {
    padding: 28px;
}

.vantaggio-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.vantaggio-icon-modern.red {
    background: rgba(226, 39, 33, 0.1);
    color: #e22721;
}

.vantaggio-icon-modern.orange {
    background: rgba(229, 110, 18, 0.1);
    color: #E56E12;
}

.vantaggio-icon-modern.green {
    background: rgba(11, 141, 132, 0.1);
    color: #0B8D84;
}

.vantaggio-card-body h3,
.vantaggio-card-medium h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.vantaggio-card-body p,
.vantaggio-card-medium p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.vantaggio-card-medium {
    background: white;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.vantaggio-card-medium:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.vantaggio-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 110, 18, 0.1);
    color: #E56E12;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 20px;
    margin-top: 16px;
}

.vantaggio-highlight.green {
    background: rgba(11, 141, 132, 0.1);
    color: #0B8D84;
}

.vantaggio-card-image-small {
    border-radius: 20px;
    overflow: hidden;
}

.vantaggio-card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

/* Old vantaggi hidden */
.vantaggi {
    display: none;
}

/* BRANDS SECTION - Hidden (old) */
.brands-section {
    display: none;
}

/* STORIA SECTION - La nostra storia */
.storia-section {
    background: white;
    padding: 80px 0;
}

.storia-header {
    text-align: center;
    margin-bottom: 50px;
}

.storia-label {
    display: inline-block;
    background: rgba(226, 39, 33, 0.1);
    color: #e22721;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.storia-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.storia-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Storia Grid - Mobile First (single column) */
.storia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.storia-card {
    background: #f9fafb;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.storia-card:hover {
    border-color: var(--brand-color);
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.storia-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #6b7280;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 12px;
}

.storia-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 12px;
    margin-top: 10px;
}

.storia-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.storia-stat {
    margin-top: auto;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.storia-stat .storia-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-color);
    line-height: 1;
    margin-bottom: 4px;
}

.storia-stat .storia-lbl {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Oggi siamo ATTAL Group */
.storia-oggi {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.storia-oggi-content {
    max-width: 600px;
    margin: 0 auto;
}

.storia-oggi-icon {
    width: 64px;
    height: 64px;
    background: rgba(226, 39, 33, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #e22721;
}

.storia-oggi h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.storia-oggi p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.storia-oggi-text {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.storia-oggi-stat {
    text-align: center;
}

.storia-oggi-stat .num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #e22721;
}

.storia-oggi-stat .lbl {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA FILIALI MODERN */
.cta-filiali-modern {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-filiali-modern .cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-filiali-modern .cta-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-filiali-modern .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.92) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.cta-filiali-modern .container {
    position: relative;
    z-index: 1;
}

.cta-filiali-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-filiali-content .cta-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(226, 39, 33, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: #e22721;
}

.cta-filiali-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
}

.cta-filiali-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-contacts-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-contact-btn.primary {
    background: #e22721;
    color: white;
}

.cta-contact-btn.primary:hover {
    background: #c91f1a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(226, 39, 33, 0.4);
    text-decoration: none;
}

.cta-contact-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

.cta-filiali-content .cta-trust-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-filiali-content .cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.cta-filiali-content .cta-trust-item svg {
    color: #0B8D84;
}

/* Old CTA hidden */
.cta-finale {
    display: none;
}

/* ============================================
   SEZIONE FILIALI - NUOVO LAYOUT
   Filtri in alto, griglia full-width sotto
   ============================================ */

.filiali-section {
    background: #f9fafb;
    padding: 40px 0 60px;
}

/* FILTRI TOP BAR */
.filtri-top-bar {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.filtri-top-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.filtri-search-group {
    width: 100%;
}

.filtri-search-group .autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.filtri-search-group .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.filtri-search-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: #f9fafb;
}

.filtri-search-input:focus {
    outline: none;
    border-color: #e22721;
    background: white;
    box-shadow: 0 0 0 3px rgba(226, 39, 33, 0.1);
}

.filtri-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filtri-selects select {
    flex: 1;
    min-width: 140px;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filtri-selects select:focus {
    outline: none;
    border-color: #e22721;
}

.filtri-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filtri-reset-btn:hover {
    border-color: #e22721;
    color: #e22721;
}

.filtri-reset-btn svg {
    transition: transform 0.3s;
}

.filtri-reset-btn:hover svg {
    transform: rotate(-180deg);
}

/* Conteggio risultati - nascosto di default */
.filtri-results-count {
    display: none;
}

/* GRIGLIA FILIALI WRAPPER */
.filiali-grid-wrapper {
    width: 100%;
}

/* GRIGLIA FILIALI - ANIMATA con animate-css-grid */
.filiali-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    grid-auto-flow: dense;
}

/* CARD FILIALE - NUOVO DESIGN */
.filiale-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filiale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-color, #e22721);
    opacity: 1;
    border-radius: 16px 0 0 16px;
}

.filiale-card:hover {
    border-color: var(--brand-color, #e22721);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Card espansa: nessun cambio su hover */
.filiale-card.expanded:hover {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: transparent;
    transform: none;
}

.filiale-card-header {
    margin-bottom: 8px;
}

.filiale-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.filiale-card-preview {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filiale-card-preview svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.filiale-card-btn {
    width: 100%;
    padding: 12px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.filiale-card-btn:hover {
    background: var(--brand-color, #e22721);
    color: white;
}

/* CARD ESPANSA (Solo Desktop) */
.filiale-card.expanded {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 28px;
}

.filiale-card.expanded::before {
    opacity: 1;
    width: 6px;
}

.filiale-card.expanded .filiale-card-title {
    color: white;
    font-size: 24px;
    margin-bottom: 4px;
}

.filiale-card.expanded .filiale-card-preview {
    color: rgba(255,255,255,0.7);
}

.filiale-card.expanded .filiale-card-preview svg {
    color: rgba(255,255,255,0.5);
}

.filiale-card.expanded .filiale-card-btn {
    display: none;
}

/* Contenuto espanso */
.filiale-expanded-content {
    display: none;
    margin-top: 20px;
}

.filiale-card.expanded .filiale-expanded-content {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expanded-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.expanded-stars {
    color: #fbbf24;
    font-size: 18px;
}

.expanded-rating-num {
    font-weight: 700;
    font-size: 16px;
}

.expanded-rating-count {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.expanded-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.expanded-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.expanded-info-row svg {
    color: #e22721;
    flex-shrink: 0;
}

.expanded-info-row a {
    color: white;
    text-decoration: none;
}

.expanded-info-row a:hover {
    text-decoration: underline;
}

.expanded-actions {
    display: flex;
    gap: 12px;
}

.expanded-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.expanded-btn-primary {
    background: #e22721;
    color: white;
}

.expanded-btn-primary:hover {
    background: #c91f1a;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.expanded-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.expanded-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
}

/* Pulsante chiudi card espansa - Minimal */
.expanded-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
    z-index: 10;
    padding: 0;
}

.expanded-close-btn svg {
    width: 16px;
    height: 16px;
}

.filiale-card.expanded .expanded-close-btn {
    display: flex;
}

.expanded-close-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* Quando espansa, header con più spazio per la X */
.filiale-card.expanded .filiale-card-header {
    padding-right: 36px;
}

/* LOAD MORE BUTTON */
.load-more-container {
    text-align: center;
    margin-top: 32px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    border-color: #e22721;
    color: #e22721;
    box-shadow: 0 4px 12px rgba(226, 39, 33, 0.15);
}

.load-more-btn:hover svg {
    transform: translateY(3px);
}

.load-more-btn svg {
    transition: transform 0.3s;
}

.load-more-count {
    color: #9ca3af;
    font-weight: 400;
}

/* OLD SIDEBAR STYLES - Nascosti */
.filtri-sidebar,
.filiali-wrapper,
.sidebar-info-box,
.mappa-container,
.filiali-list-view,
.list-header {
    display: none;
}

.risultati-counter {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.risultati-counter .number {
    font-size: 28px;
    font-weight: bold;
    color: #e22721;
    display: block;
}

.risultati-counter .label {
    font-size: 14px;
    color: #6b7280;
}

/* INFO BOX COMPATTO SIDEBAR */
.sidebar-info-box {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
    display: none;
}

.sidebar-info-box.show {
    display: block;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sidebar-info-header {
    background: transparent;
    padding: 15px;
    border-bottom: 2px solid #e22721;
}

.sidebar-info-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.sidebar-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.sidebar-brand-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.sidebar-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 13px;
}

.sidebar-stars {
    color: #fbbf24;
    font-size: 14px;
}

.sidebar-rating-num {
    font-weight: 600;
    color: #1f2937;
}

.sidebar-info-body {
    padding: 15px;
}

.sidebar-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4b5563;
}

.sidebar-detail:last-child {
    margin-bottom: 0;
}

.sidebar-icon {
    width: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sidebar-icon i,
.sidebar-icon svg {
    width: 16px;
    height: 16px;
    stroke: #e22721;
}

.sidebar-detail a {
    color: #2563eb;
    text-decoration: none;
}

.sidebar-detail a:hover {
    text-decoration: underline;
}

.sidebar-reviews {
    background: #f9fafb;
    padding: 12px 15px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
}

.sidebar-review-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-review-title i,
.sidebar-review-title svg {
    width: 16px;
    height: 16px;
    stroke: #e22721;
}

.sidebar-review-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #fbbf24;
}

.sidebar-review-item:last-child {
    margin-bottom: 0;
}

.sidebar-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.sidebar-review-name {
    font-weight: 600;
    font-size: 12px;
    color: #1f2937;
}

.sidebar-review-stars {
    color: #fbbf24;
    font-size: 11px;
}

.sidebar-review-text {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.sidebar-actions {
    padding: 12px 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.sidebar-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sidebar-btn i,
.sidebar-btn svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

.sidebar-btn-maps {
    background: #4285f4;
    color: white;
}

.sidebar-btn-maps:hover {
    background: #3367d6;
}

.sidebar-btn-contact {
    background: #e22721;
    color: white;
}

.sidebar-btn-contact:hover {
    background: #c91f1a;
}

.reset-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-btn i,
.reset-btn svg {
    width: 16px;
    height: 16px;
    stroke: #6b7280;
    transition: stroke 0.3s;
}

.reset-btn:hover {
    border-color: #e22721;
    color: #e22721;
}

.reset-btn:hover i,
.reset-btn:hover svg {
    stroke: #e22721;
}

/* MAPPA ITALIA */
.mappa-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* LISTA FILIALI NELLA CELLA DESTRA */
.filiali-list-view {
    width: 100%;
    height: fit-content;
}

.list-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.list-header h3 {
    font-size: 20px;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-header h3 i,
.list-header h3 svg {
    width: 20px;
    height: 20px;
    stroke: #e22721;
}

/* MOBILE DETAIL PANEL - Appare sopra le cards su mobile */
.mobile-filiale-detail {
    display: none;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    color: white;
}

.mobile-filiale-detail.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

.mobile-detail-close:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 40px;
}

.mobile-detail-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.mobile-detail-brand {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: #e22721;
    flex-shrink: 0;
}

.mobile-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.mobile-detail-stars {
    color: #fbbf24;
}

.mobile-detail-count {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.mobile-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.mobile-detail-row svg {
    color: #e22721;
    flex-shrink: 0;
}

.mobile-detail-row a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.mobile-detail-actions {
    display: flex;
    gap: 10px;
}

.mobile-detail-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 48px;
}

.mobile-detail-btn-maps {
    background: #e22721;
    color: white;
}

.mobile-detail-btn-maps:hover {
    background: #c91f1a;
}

.mobile-detail-btn-call {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.mobile-detail-btn-call:hover {
    background: rgba(255,255,255,0.2);
}

/* Desktop: nascondi il pannello mobile */
@media (min-width: 992px) {
    .mobile-filiale-detail {
        display: none !important;
    }
}

/* BADGE DISTANZA */
.distanza-badge {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.distanza-badge i,
.distanza-badge svg {
    width: 14px;
    height: 14px;
}

.distanza-badge.vicina {
    background: white;
    color: #0891b2;
    border: 2px solid #0891b2;
}

.distanza-badge.vicina i,
.distanza-badge.vicina svg {
    stroke: #0891b2;
}

.distanza-badge.normale {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.distanza-badge.normale i,
.distanza-badge.normale svg {
    stroke: #6b7280;
}

/* DIVISORE */
.filiali-divider {
    margin: 25px 0 20px;
    text-align: center;
    position: relative;
}

.filiali-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.filiali-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* LISTA COMPATTA */
.filiali-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filiale-compact-item {
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filiale-compact-item:hover {
    background: #f3f4f6;
    transform: translateX(3px);
}

.filiale-compact-citta {
    font-weight: 600;
    color: #1f2937;
}

.filiale-compact-divider {
    color: #d1d5db;
}

.filiale-compact-distanza {
    color: #6b7280;
    font-weight: 500;
}

.filiale-compact-brand {
    font-weight: 600;
    font-size: 12px;
}

/* BOTTONE TORNA AI RISULTATI */
.back-to-results-btn {
    background: #e22721;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-to-results-btn i,
.back-to-results-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.back-to-results-btn:hover {
    background: #c91f1a;
    transform: translateX(-3px);
}

.mappa-italia {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* LISTA FILIALI */
/* RECAP FILIALI COMPATTO */
.filiali-recap-compact {
    margin-top: 60px;
    text-align: center;
    background: #f9fafb;
    padding: 50px 30px;
    border-radius: 16px;
}

.filiali-recap-compact h2 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 30px;
    font-weight: 700;
}

.recap-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
}

.recap-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recap-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #e22721;
    line-height: 1;
}

.recap-stat-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 5px;
}

.recap-stat-divider {
    width: 1px;
    height: 50px;
    background: #d1d5db;
}

.recap-cta-text {
    font-size: 15px;
    color: #6b7280;
}

@media (max-width: 480px) {
    .recap-stats {
        gap: 20px;
    }

    .recap-stat-number {
        font-size: 36px;
    }

    .recap-stat-label {
        font-size: 14px;
    }

    .recap-stat-divider {
        height: 40px;
    }
}

.btn-icon {
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #1f2937;
}

.btn-icon:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* CTA FINALE */
.cta-finale {
    background: linear-gradient(135deg, #e22721 0%, #b91c17 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-finale h2 {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
}

.cta-finale h2 i,
.cta-finale h2 svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.cta-finale p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: white;
    color: #e22721;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid white;
}

.cta-button i,
.cta-button svg {
    width: 20px;
    height: 20px;
    stroke: #e22721;
}

.cta-button:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-button:hover i,
.cta-button:hover svg {
    stroke: white;
}

/* ============================================
   RESPONSIVE - Mobile-First Approach
   Base styles are mobile, then scale up
   ============================================ */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    /* FILTRI TOP BAR */
    .filtri-top-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .filtri-search-group {
        flex: 1;
        max-width: 320px;
    }

    .filtri-selects {
        flex-wrap: nowrap;
        flex: 1;
        justify-content: center;
    }

    /* GRIGLIA FILIALI */
    .filiali-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Vantaggi Section */
    .vantaggi-bento {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .vantaggio-card-large {
        grid-column: span 2;
        border-radius: 20px;
    }

    /* Storia Section */
    .storia-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* CTA Section */
    .cta-contacts-row {
        flex-direction: row;
    }

    .cta-filiali-content .cta-trust-row {
        flex-direction: row;
        gap: 28px;
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    /* FILTRI TOP BAR */
    .filtri-top-bar {
        padding: 24px 28px;
    }

    .filtri-results-count {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
    }

    .filtri-top-content {
        flex-wrap: nowrap;
    }

    /* GRIGLIA FILIALI - 3 colonne + expand */
    .filiali-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Card espansa su desktop */
    .filiale-card.expanded {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Vantaggi Section */
    .vantaggi-bento {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .vantaggio-card-large {
        grid-row: span 2;
    }

    /* Storia Section */
    .storia-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 40px;
    }

    .storia-oggi {
        padding: 40px;
    }

    .storia-oggi h3 {
        font-size: 28px;
    }

    .storia-oggi-stat .num {
        font-size: 36px;
    }

    /* CTA Section */
    .cta-filiali-content h2 {
        font-size: 36px;
    }
}

/* Desktop Large (min-width: 1200px) */
@media (min-width: 1200px) {
    /* GRIGLIA FILIALI - 4 colonne */
    .filiali-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .filiale-card.expanded {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Mobile: Card espansa a tutta larghezza */
@media (max-width: 991px) {
    .filiale-card.expanded {
        grid-column: span 1;
        grid-row: auto;
    }

    /* Nascondi pannello mobile vecchio */
    .mobile-filiale-detail {
        display: none !important;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.filiale-card {
    animation: fadeIn 0.5s ease forwards;
}
