/* ═══════════════════════════════════════════════════════════
   LaMiaAuto — Design System & Styles
   Dark Luxury Automotive Theme
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
    /* Palette */
    --bg-primary: #2C2C2C;
    --bg-deep: #1A1A1A;
    --bg-surface: #353535;
    --bg-card: #3A3A3A;
    --bg-card-hover: #424242;

    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --text-muted: #888888;

    --accent-gold: #C8A96E;
    --accent-gold-light: #D4BA85;
    --accent-gold-dark: #A88B52;

    /* Gradients */
    --gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #2C2C2C 100%);
    --gradient-card: linear-gradient(135deg, #3A3A3A 0%, #2C2C2C 100%);
    --gradient-gold: linear-gradient(135deg, #C8A96E 0%, #A88B52 100%);
    --gradient-hero: linear-gradient(180deg, rgba(26, 26, 26, 0.4) 0%, rgba(44, 44, 44, 0.95) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(200, 169, 110, 0.25);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1280px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ─── Utility ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--accent-gold);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 2px;
    background: var(--accent-gold);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 64px;
}

.section-header .section-tag {
    justify-content: center;
}

.section-header .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-deep);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(245, 245, 245, 0.25);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-img {
    height: 220px;
    width: auto;
    transition: transform var(--transition-base), height var(--transition-base);
}

.navbar.scrolled .logo-img {
    height: 60px;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gradient-gold);
    color: var(--bg-deep);
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Background base: gradient radiale dal centro più chiaro verso bordi più scuri */
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, #1a1410 0%, #0a0805 50%, #050505 100%);
    padding-top: 260px;
    padding-bottom: 60px;
}

/* ─── Hero animated background (gradient nero + sfumature dorate) ─── */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
    mix-blend-mode: screen;
}

.hero-bg-glow-1 {
    top: -15%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.65) 0%, rgba(200, 169, 110, 0.15) 45%, rgba(200, 169, 110, 0) 75%);
    animation: heroGlowFloat1 18s ease-in-out infinite;
}

.hero-bg-glow-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 620px;
    max-height: 620px;
    background: radial-gradient(circle, rgba(212, 165, 100, 0.55) 0%, rgba(212, 165, 100, 0.12) 45%, rgba(212, 165, 100, 0) 75%);
    animation: heroGlowFloat2 22s ease-in-out infinite;
}

.hero-bg-glow-3 {
    top: 40%;
    left: 50%;
    width: 45vw;
    height: 45vw;
    max-width: 560px;
    max-height: 560px;
    background: radial-gradient(circle, rgba(225, 195, 145, 0.4) 0%, rgba(225, 195, 145, 0.1) 45%, rgba(225, 195, 145, 0) 75%);
    animation: heroGlowFloat3 28s ease-in-out infinite;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 169, 110, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 169, 110, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    opacity: 0.7;
}

@keyframes heroGlowFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15vw, 8vh) scale(1.1); }
    66% { transform: translate(-5vw, 12vh) scale(0.95); }
}

@keyframes heroGlowFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-12vw, -10vh) scale(1.08); }
    66% { transform: translate(8vw, -5vh) scale(0.92); }
}

@keyframes heroGlowFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-30%, -60%) scale(1.15); }
}

/* Canvas mouse trail (sopra bg+overlay, sotto contenuto) */
.hero-trail {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-glow-1,
    .hero-bg-glow-2,
    .hero-bg-glow-3 {
        animation: none;
    }
}

.hero-video {
    /* Deprecato dopo redesign — mantenuto per non rompere selettori CSS legacy */
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.3) 60%, rgba(5, 5, 5, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding: 10px 24px;
    border: 1px solid rgba(200, 169, 110, 0.3);
    border-radius: 50px;
    margin-bottom: 32px;
    background: rgba(200, 169, 110, 0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ═══════════════════════════════════════════
   CHI SIAMO
   ═══════════════════════════════════════════ */
.chi-siamo {
    background: var(--bg-primary);
}

.about-text .section-desc {
    margin-bottom: 20px;
}

.about-text .section-desc strong {
    color: var(--text-primary);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(200, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-gold);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    background: var(--bg-card);
    line-height: 0;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame:hover img {
    transform: scale(1.03);
}

.image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: -1;
}

/* ═══════════════════════════════════════════
   PARCO AUTO
   ═══════════════════════════════════════════ */
.parco-auto {
    background: var(--bg-deep);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.car-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 169, 110, 0.2);
}

.car-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/11;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .car-image img {
    transform: scale(1.08);
}

.car-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(200, 169, 110, 0.9);
    color: var(--bg-deep);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    text-transform: uppercase;
}

.car-info {
    padding: 20px 24px;
}

.car-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.car-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Parco Auto CTA */
.parco-cta {
    margin-top: 24px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 56px;
    background: var(--gradient-card);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cta-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
}

/* ═══════════════════════════════════════════
   SERVIZI
   ═══════════════════════════════════════════ */
.servizi {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 169, 110, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(200, 169, 110, 0.1);
    color: var(--accent-gold);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: rgba(200, 169, 110, 0.2);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SHOWROOM PARALLAX
   ═══════════════════════════════════════════ */
.showroom-parallax {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.82);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
    max-width: 700px;
}

.parallax-content .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════
   CONTATTI
   ═══════════════════════════════════════════ */
.contatti {
    background: var(--bg-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(200, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-gold);
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--accent-gold);
}

.social-links-contact {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-links-contact a:hover {
    background: rgba(200, 169, 110, 0.15);
    border-color: rgba(200, 169, 110, 0.3);
    color: var(--accent-gold);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li,
.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(200, 169, 110, 0.15);
    border-color: rgba(200, 169, 110, 0.3);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children delay */
.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile First
   ═══════════════════════════════════════════ */

/* Tablet & Below (< 1024px) */
@media (max-width: 1024px) {
    .logo-img {
        height: 120px;
    }

    .navbar.scrolled .logo-img {
        height: 50px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Mobile Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transition: right var(--transition-slow);
        border-left: 1px solid rgba(200, 169, 110, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Logo mobile */
    .logo-img {
        height: 80px;
    }

    .navbar.scrolled .logo-img {
        height: 40px;
    }

    /* Hero mobile */
    .hero {
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-badge {
        margin-bottom: 16px;
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .hero-buttons {
        margin-bottom: 32px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px 24px;
    }

    .stat-divider {
        width: 1px;
        height: 32px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Parco auto mobile */
    .car-grid {
        grid-template-columns: 1fr;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* About image — non forziamo height: vogliamo la foto intera */
    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Contact map mobile */
    .contact-map {
        min-height: 300px;
    }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 24px;
    }

    .hero-title {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.6rem;
        letter-spacing: 2px;
        margin-bottom: 12px;
        padding: 6px 14px;
    }

    .hero-stats {
        padding: 16px 20px;
        gap: 12px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-card {
        padding: 32px 24px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   PAGE HERO (sub-pages)
   ═══════════════════════════════════════════ */
.page-hero {
    padding: 180px 0 64px;
    background: var(--gradient-dark);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 48px;
    }
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.breadcrumb span {
    color: var(--accent-gold);
}

/* Sub-page sections */
.parco-auto-page {
    background: var(--bg-deep);
    padding-top: 48px;
}

.cta-banner-section {
    background: var(--bg-deep);
    padding: 0 0 80px;
}

/* ═══════════════════════════════════════════
   BOOKING INFO CARDS
   ═══════════════════════════════════════════ */
.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.booking-info-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.booking-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200,169,110,0.15);
}

.booking-info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(200,169,110,0.1);
    color: var(--accent-gold);
}

.booking-info-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.booking-info-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 40px;
    }

    .booking-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   VEHICLE CARDS (enhanced with API data)
   ═══════════════════════════════════════════ */
.car-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.car-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.car-image-placeholder {
    width: 100%;
    aspect-ratio: 16/11;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-muted);
}

.car-version {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.car-specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.06);
}

.car-specs svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.car-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.car-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.car-original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.car-badge-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: var(--accent-gold);
    color: var(--bg-deep);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
}

/* Badge "In evidenza" per veicoli featured dal gestionale */
.featured-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
    color: var(--bg-deep);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.featured-badge svg {
    width: 12px;
    height: 12px;
}

/* ═══════════════════════════════════════════
   VEHICLE FILTERS
   ═══════════════════════════════════════════ */
.vehicle-filters {
    margin-bottom: 40px;
}

.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-row select {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filters-row select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.btn-reset {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-reset:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* ═══════════════════════════════════════════
   LOADER & EMPTY STATE
   ═══════════════════════════════════════════ */
.vehicles-loader, .vehicles-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 24px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(200,169,110,0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.vehicles-error {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.page-btn.active {
    background: var(--gradient-gold);
    color: var(--bg-deep);
    border-color: transparent;
    font-weight: 700;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 4px;
}

/* ═══════════════════════════════════════════
   VEHICLE DETAIL MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(200,169,110,0.3);
    border-color: var(--accent-gold);
}

.modal-body {
    min-height: 300px;
}

.modal-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
}

.modal-error {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

/* Detail Gallery */
.detail-gallery {
    position: relative;
}

.detail-main-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-deep);
}

.detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: var(--bg-deep);
}

.detail-thumb {
    width: 72px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.detail-thumb.active {
    border-color: var(--accent-gold);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Content */
.detail-content {
    padding: 32px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.detail-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.detail-version {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.detail-price-block {
    text-align: right;
    flex-shrink: 0;
}

.detail-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.detail-original-price {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.detail-description {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
}

.detail-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Specs Grid */
.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    background: var(--bg-primary);
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Features */
.detail-features {
    margin-bottom: 32px;
}

.detail-features h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.feature-category {
    margin-bottom: 16px;
}

.feature-category h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 14px;
    background: rgba(200,169,110,0.08);
    border: 1px solid rgba(200,169,110,0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Detail Actions */
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    background: #25D366;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* ═══════════════════════════════════════════
   BOOKING SECTION
   ═══════════════════════════════════════════ */
.prenota-section {
    background: var(--bg-primary);
}

.booking-container {
    max-width: 640px;
    margin: 0 auto;
}

.booking-step {
    margin-bottom: 24px;
}

.booking-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.booking-label svg {
    color: var(--accent-gold);
}

.booking-date-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    color-scheme: dark;
}

.booking-date-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ═══════════════════════════════════════════
   VISUAL CALENDAR
   ═══════════════════════════════════════════ */
.booking-calendar {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-month {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-nav:hover:not(.disabled) {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(200,169,110,0.08);
}

.calendar-nav.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
}

.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.calendar-cell:hover:not(.disabled):not(.empty):not(.selected) {
    background: rgba(200,169,110,0.12);
    color: var(--accent-gold);
}

.calendar-cell.empty {
    cursor: default;
}

.calendar-cell.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-cell.sunday {
    color: rgba(239,68,68,0.5);
}

.calendar-cell.today {
    border: 1px solid rgba(200,169,110,0.4);
    color: var(--accent-gold);
}

.calendar-cell.selected {
    background: var(--gradient-gold);
    color: var(--bg-deep);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

@media (max-width: 480px) {
    .booking-calendar {
        padding: 16px 12px;
    }

    .calendar-cell {
        font-size: 0.85rem;
    }

    .calendar-day-label {
        font-size: 0.65rem;
    }
}

/* Slots */
.slots-loader, .slots-closed, .slots-empty, .slots-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}

.slots-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.slot-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slot-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.slot-btn.active {
    background: var(--gradient-gold);
    color: var(--bg-deep);
    border-color: transparent;
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   FORMS (Lead + Booking)
   ═══════════════════════════════════════════ */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    color-scheme: dark;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.form-feedback {
    min-height: 0;
    font-size: 0.9rem;
    padding: 0;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-feedback.success {
    padding: 14px 18px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
}

.form-feedback.error {
    padding: 14px 18px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

/* ═══════════════════════════════════════════
   CONTACT GRID — 3 columns
   ═══════════════════════════════════════════ */
.contact-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — New components
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .contact-grid-3 {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
    }

    .detail-price-block {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
    }

    .filters-row select {
        min-width: auto;
        flex: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-content {
        padding: 24px 16px;
    }

    .detail-specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-overlay {
        padding: 16px 8px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn, .detail-actions .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .detail-header h2 {
        font-size: 1.4rem;
    }

    .detail-price {
        font-size: 1.6rem;
    }

    .detail-specs-grid {
        grid-template-columns: 1fr;
    }

    .slots-grid {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   DOVE SIAMO — Showroom info + galleria + mappa
   ═══════════════════════════════════════════════════════════ */
.dove-siamo {
    background: var(--bg-deep);
}

.dove-siamo-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-top: 64px;
    margin-bottom: 56px;
    align-items: stretch;
}

.dove-siamo-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dove-info-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.dove-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(200, 169, 110, 0.12);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dove-info-block h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dove-info-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.dove-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.dove-cta-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.dove-cta-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dove-cta-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(200, 169, 110, 0.15);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dove-cta-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.dove-cta-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Galleria — foto principale grande sopra + 4 thumb in riga sotto */
.dove-siamo-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.dove-gallery-main {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.dove-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
}

.dove-gallery-small {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.dove-gallery-main img,
.dove-gallery-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.dove-gallery-main:hover img,
.dove-gallery-small:hover img {
    transform: scale(1.04);
}

/* Mappa full-width */
.dove-siamo-map {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dove-siamo-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: invert(0.9) hue-rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════
   CONTATTI — Layout 2 colonne
   ═══════════════════════════════════════════════════════════ */
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    margin-top: 56px;
    align-items: start;
}

.contatti-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contatti-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
}

.contatti-info-item:hover {
    border-color: rgba(200, 169, 110, 0.3);
}

.contatti-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(200, 169, 110, 0.12);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contatti-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contatti-info-text h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contatti-info-text a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.contatti-info-text a:hover {
    color: var(--accent-gold);
}

.contatti-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.social-cta:hover {
    transform: translateY(-3px) scale(1.04);
    color: white;
}

.social-cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-cta:hover .social-cta-icon {
    transform: rotate(-8deg) scale(1.1);
}

.social-cta-label {
    position: relative;
    z-index: 2;
}

/* ─── Instagram: gradient ufficiale animato ─── */
.social-cta-instagram {
    background: linear-gradient(45deg,
        #feda75 0%,
        #fa7e1e 20%,
        #d62976 45%,
        #962fbf 70%,
        #4f5bd5 100%);
    background-size: 300% 300%;
    background-position: 0% 50%;
    animation: instagramGradient 8s ease infinite;
    box-shadow: 0 4px 14px rgba(214, 41, 118, 0.3);
}

.social-cta-instagram:hover {
    animation-duration: 2.5s;
    box-shadow: 0 12px 32px rgba(214, 41, 118, 0.55), 0 0 20px rgba(250, 126, 30, 0.4);
}

@keyframes instagramGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── TikTok: nero + glitch cyan/pink al hover ─── */
.social-cta-tiktok {
    background: #000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                text-shadow 0.25s ease;
}

.social-cta-tiktok:hover {
    box-shadow:
        -3px 0 0 #25F4EE,
        3px 0 0 #FE2C55,
        0 12px 32px rgba(0, 0, 0, 0.55);
    text-shadow:
        -1px 0 #25F4EE,
        1px 0 #FE2C55;
    animation: tiktokGlitch 0.4s ease-in-out;
}

.social-cta-tiktok:hover .social-cta-icon {
    filter: drop-shadow(-1px 0 #25F4EE) drop-shadow(1px 0 #FE2C55);
}

@keyframes tiktokGlitch {
    0%, 100% { transform: translateY(-3px) scale(1.04); }
    25%      { transform: translate(-1px, -3px) scale(1.04); }
    50%      { transform: translate(1px, -3px) scale(1.04); }
    75%      { transform: translate(-1px, -3px) scale(1.04); }
}

/* Reduced motion: respect user preferences */
@media (prefers-reduced-motion: reduce) {
    .social-cta-instagram {
        animation: none;
    }
    .social-cta-tiktok:hover {
        animation: none;
    }
    .social-cta:hover {
        transform: translateY(-2px);
    }
}

/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER (GDPR + Garante 10/06/2021)
   ═══════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-deep);
    border-top: 1px solid rgba(200, 169, 110, 0.25);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner-actions .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 16px 20px;
        gap: 16px;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-banner-actions .btn {
        flex: 1;
    }
}

/* ═══════════════════════════════════════════════════════════
   PAGINE LEGALI (Privacy/Cookie/Termini/Note Legali)
   ═══════════════════════════════════════════════════════════ */
.legal-page {
    padding: 60px 0 100px;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--accent-gold-light);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.88rem;
}

.legal-content table th,
.legal-content table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.legal-content table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content .legal-meta {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(200, 169, 110, 0.1);
    border: 1px solid rgba(200, 169, 110, 0.25);
    border-radius: var(--radius-sm);
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.legal-content .legal-info-box {
    padding: 18px 22px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.legal-content .legal-info-box p:last-child {
    margin-bottom: 0;
}

/* Footer legale (P.IVA + ragione sociale) */
.footer-legal-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 6px 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.footer-legal-links a {
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--accent-gold);
}

.footer-legal-links button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-body);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.footer-legal-links button:hover {
    color: var(--accent-gold);
}

/* Privacy checkbox: link gold cliccabile */
.privacy-check a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-check a:hover {
    color: var(--accent-gold-light);
}

.contatti-whatsapp {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.contatti-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    color: white;
}

.contatti-whatsapp svg {
    flex-shrink: 0;
}

.contatti-whatsapp .whatsapp-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.contatti-whatsapp .whatsapp-desc {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.contatti-form-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.contatti-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Dove Siamo + Contatti
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .dove-siamo-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .dove-siamo-gallery {
        min-height: 400px;
    }

    .contatti-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .dove-siamo-main {
        margin-top: 40px;
        margin-bottom: 40px;
        gap: 36px;
    }

    .dove-cta-grid {
        grid-template-columns: 1fr;
    }

    .dove-cta-card {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .dove-cta-icon {
        flex-shrink: 0;
    }

    .dove-gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .dove-siamo-map {
        height: 320px;
    }

    .contatti-form-wrapper {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .dove-info-block {
        gap: 12px;
    }

    .dove-info-icon {
        width: 40px;
        height: 40px;
    }

    .dove-gallery-thumbs {
        gap: 10px;
    }

    .contatti-info-item {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PARCO AUTO — Sidebar Filters Layout
   ═══════════════════════════════════════════════════════════ */
.parco-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.parco-sidebar {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height, 80px) + 16px);
    max-height: calc(100vh - var(--header-height, 80px) - 32px);
    overflow-y: auto;
}

.parco-sidebar::-webkit-scrollbar {
    width: 6px;
}
.parco-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.parco-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.sidebar-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.vehicle-filters-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.filter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.filter-value-display {
    font-size: 0.78rem;
    color: var(--accent-gold);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.filter-select,
.vehicle-filters-sidebar input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-base);
    cursor: pointer;
}

.vehicle-filters-sidebar input[type="text"] {
    cursor: text;
}

.filter-select:focus,
.vehicle-filters-sidebar input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0B0B0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

.btn-reset-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 8px;
}

.btn-reset-sidebar:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.mobile-only-apply {
    display: none;
}

/* ─── Dual range slider ─── */
.dual-slider {
    position: relative;
    width: 100%;
    height: 24px;
    margin-top: 4px;
}

.dual-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transform: translateY(-50%);
}

.dual-slider-range {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.dual-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.dual-slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    cursor: grab;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.dual-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(200, 169, 110, 0.15);
}

.dual-slider-input::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.dual-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    cursor: grab;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ─── Single range slider (km max) ─── */
.single-slider {
    position: relative;
    width: 100%;
    margin-top: 4px;
}

.single-slider-input {
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
}

.single-slider-input::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(to right, var(--accent-gold) 0%, var(--accent-gold) var(--fill, 100%), rgba(255, 255, 255, 0.08) var(--fill, 100%), rgba(255, 255, 255, 0.08) 100%);
    border-radius: 2px;
}

.single-slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.single-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
}

/* ─── Main content (results + sort + grid) ─── */
.parco-main {
    min-width: 0;
}

.parco-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.parco-results-count {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.parco-results-count #resultsCountNum {
    color: var(--accent-gold);
    font-weight: 700;
    margin-right: 4px;
}

.parco-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.parco-sort label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.parco-sort .filter-select {
    width: auto;
    min-width: 180px;
}

/* ─── Mobile filter button (hidden on desktop) ─── */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent-gold);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    box-shadow: var(--shadow-gold);
}

.mobile-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--bg-deep);
    color: var(--accent-gold);
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

/* ─── Responsive: tablet/mobile sidebar drawer ─── */
@media (max-width: 1024px) {
    .parco-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mobile-filter-toggle {
        display: inline-flex;
    }

    .parco-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        padding-top: 24px;
        padding-bottom: 24px;
        overflow-y: auto;
    }

    .parco-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .mobile-only-apply {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .parco-results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .parco-sort {
        justify-content: space-between;
    }

    .parco-sort .filter-select {
        flex: 1;
        min-width: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRENOTA — Wizard multistep
   ═══════════════════════════════════════════════════════════ */

/* Stepper indicator */
.booking-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: default;
    transition: opacity var(--transition-base);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.step-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.step-item.active .step-circle {
    background: var(--accent-gold);
    color: var(--bg-deep);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(200, 169, 110, 0.15);
}

.step-item.active .step-label {
    color: var(--accent-gold);
}

.step-item.completed .step-circle {
    background: rgba(200, 169, 110, 0.2);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.step-item.completed .step-label {
    color: var(--text-secondary);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 80px;
    margin-top: -22px;
}

/* Wizard track + panels */
.booking-wizard {
    overflow: hidden;
    margin-bottom: 64px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-md);
}

.booking-wizard-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-step-panel {
    flex: 0 0 100%;
    width: 100%;
    padding: 40px;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.booking-step-panel.active {
    opacity: 1;
}

.step-content {
    max-width: 720px;
    margin: 0 auto;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.step-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.step-back-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Step 2 — slots area */
.booking-slots-area {
    margin-top: 8px;
}

.booking-slots-area .slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.booking-slots-area .slot-btn {
    padding: 14px 12px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.booking-slots-area .slot-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.booking-slots-area .slot-btn.active {
    background: var(--accent-gold);
    color: var(--bg-deep);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.booking-slots-area .slots-loader,
.booking-slots-area .slots-closed,
.booking-slots-area .slots-empty,
.booking-slots-area .slots-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    gap: 12px;
}

.booking-slots-area .slots-closed svg,
.booking-slots-area .slots-empty svg {
    color: var(--text-muted);
}

/* Step 3 — riepilogo */
.booking-summary {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.summary-item svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

/* Step 3 — success card */
.booking-success-card {
    text-align: center;
    padding: 40px 24px;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon.confirmed {
    background: #10b981;
}

.success-icon.pending {
    background: #f59e0b;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-when {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.success-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 28px;
}

/* Responsive — wizard mobile */
@media (max-width: 768px) {
    .booking-stepper {
        gap: 6px;
        margin-bottom: 28px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-line {
        max-width: 40px;
        margin-top: -18px;
    }

    .booking-step-panel {
        padding: 24px 18px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .booking-slots-area .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }

    .booking-summary {
        flex-direction: column;
        gap: 8px;
    }
}
/* ═══════════════════════════════════════════════════════════
   MARKETPLACE HUB — Pagina Parco Auto (AutoScout24 + Subito.it)
   ═══════════════════════════════════════════════════════════ */
.marketplace-section {
    padding-top: 60px;
}

.marketplace-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 48px;
}

.marketplace-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-height: 360px;
    padding: 44px 40px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    isolation: isolate;
}

.marketplace-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.08), transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.marketplace-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.marketplace-card:hover::before {
    opacity: 1;
}

.marketplace-card-autoscout {
    background: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 219, 0, 0.18);
}

.marketplace-card-autoscout:hover {
    border-color: rgba(255, 219, 0, 0.45);
    box-shadow: 0 24px 60px rgba(255, 219, 0, 0.18);
}

.marketplace-card-subito {
    background: linear-gradient(135deg, #ffffff 0%, #f8f5f5 100%);
    color: #1a1a1a;
    border: 1px solid rgba(229, 24, 29, 0.2);
}

.marketplace-card-subito:hover {
    border-color: rgba(229, 24, 29, 0.5);
    box-shadow: 0 24px 60px rgba(229, 24, 29, 0.22);
}

.marketplace-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    transition: transform var(--transition-base), background var(--transition-base);
}

.marketplace-card-subito .marketplace-arrow {
    background: rgba(0, 0, 0, 0.06);
}

.marketplace-card:hover .marketplace-arrow {
    transform: translate(4px, -4px);
    background: rgba(255, 255, 255, 0.16);
}

.marketplace-card-subito:hover .marketplace-arrow {
    background: rgba(229, 24, 29, 0.15);
    color: #E5181D;
}

.marketplace-logo {
    width: 100%;
    max-width: 260px;
}

.marketplace-logo svg {
    width: 100%;
    height: auto;
    display: block;
}

.marketplace-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.marketplace-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.marketplace-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
    opacity: 0.78;
}

.marketplace-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: gap var(--transition-base), background var(--transition-base);
}

.marketplace-card-autoscout .marketplace-cta {
    background: #FFDB00;
    color: #000;
}

.marketplace-card-subito .marketplace-cta {
    background: #E5181D;
    color: #fff;
}

.marketplace-card:hover .marketplace-cta {
    gap: 14px;
}

.marketplace-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.marketplace-info p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(200, 169, 110, 0.07);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: var(--radius-md);
    margin: 0;
}

.marketplace-info svg {
    flex-shrink: 0;
    color: var(--accent-gold);
}

.marketplace-info a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.marketplace-info a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .marketplace-hub {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .marketplace-card {
        min-height: 300px;
        padding: 36px 28px;
        gap: 24px;
    }

    .marketplace-title {
        font-size: 1.35rem;
    }

    .marketplace-logo {
        max-width: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP — FAB rotondo verde con pulse
   ═══════════════════════════════════════════════════════════ */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45),
                0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-fab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: whatsappPulse 2.4s ease-out infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6),
                0 4px 10px rgba(0, 0, 0, 0.25);
}

.whatsapp-fab:active {
    transform: scale(0.96);
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    70% {
        transform: scale(1.7);
        opacity: 0;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab::before {
        animation: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-fab {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-fab svg {
        width: 26px;
        height: 26px;
    }
}

/* ═══════════════════════════════════════════════════════════
   CONTATTI — Nomi associati ai numeri di telefono
   ═══════════════════════════════════════════════════════════ */
.phone-name {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    background: rgba(200, 169, 110, 0.12);
    color: var(--accent-gold);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.footer-phone-name {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════
   RECENSIONI — Social proof Google
   ═══════════════════════════════════════════════════════════ */
.recensioni {
    position: relative;
    background:
        radial-gradient(circle at 20% 0%, rgba(200, 169, 110, 0.07), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(200, 169, 110, 0.05), transparent 50%),
        var(--bg-primary);
}

/* Rating summary */
.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 12px auto 56px;
    padding: 24px 36px;
    max-width: 560px;
    background: linear-gradient(135deg, rgba(200, 169, 110, 0.08) 0%, rgba(200, 169, 110, 0.02) 100%);
    border: 1px solid rgba(200, 169, 110, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.rating-summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rating-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.rating-stars {
    display: inline-flex;
    gap: 3px;
    color: var(--accent-gold);
}

.rating-stars svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(200, 169, 110, 0.4));
}

.rating-summary-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.rating-summary-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
}

.rating-google-logo {
    width: 96px;
    height: auto;
    display: block;
}

.rating-google-logo svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Cards grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 36px 28px 28px;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
}

.review-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 169, 110, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.review-card:hover::before {
    opacity: 1;
}

.review-quote-mark {
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: 'Georgia', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-gold);
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
}

.review-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--accent-gold);
}

.review-stars svg {
    width: 18px;
    height: 18px;
}

.review-text {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(200, 169, 110, 0.3);
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.review-author-source {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* CTA Google */
.reviews-cta {
    display: flex;
    justify-content: center;
}

.reviews-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

.reviews-cta-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.reviews-cta-btn svg:first-child {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .rating-summary {
        flex-direction: column;
        gap: 16px;
        padding: 22px 24px;
    }

    .rating-summary-text {
        align-items: center;
        text-align: center;
    }

    .rating-number {
        font-size: 2.6rem;
    }

    .review-card {
        padding: 30px 22px 24px;
    }

    .review-quote-mark {
        font-size: 4rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY — Trigger come <button>: reset stili default
   ═══════════════════════════════════════════════════════════ */
.dove-gallery-main,
.dove-gallery-small {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.dove-gallery-main:focus-visible,
.dove-gallery-small:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

.dove-gallery-zoom {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.78);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
}

.dove-gallery-main:hover .dove-gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX — Overlay fullscreen per la galleria
   ═══════════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 64px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-figure {
    position: relative;
    margin: 0;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-caption {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.lightbox-counter {
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    background: rgba(200, 169, 110, 0.12);
    border: 1px solid rgba(200, 169, 110, 0.24);
    border-radius: 999px;
    font-size: 0.78rem;
}

.lightbox-alt {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Bottoni nav + close */
.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(200, 169, 110, 0.18);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.lightbox-close:active,
.lightbox-nav:active {
    transform: scale(0.94);
}

.lightbox-close {
    top: 22px;
    right: 22px;
}

.lightbox-prev {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:active {
    transform: translateY(-50%) scale(0.94);
}

.lightbox-next {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:active {
    transform: translateY(-50%) scale(0.94);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 18px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-image {
        max-height: 70vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Fix integrati (floating WA, schermi piccoli, schermi grandi)
   ═══════════════════════════════════════════════════════════ */

/* Floating WhatsApp non deve sovrapporsi al cookie banner.
   Usiamo :has() (supportato Chrome 105+, Safari 15.4+, Firefox 121+).
   Browser più vecchi: il banner è z-index più alto → sovrapposizione minima
   solo a primo accesso, comportamento accettabile come fallback. */
body:has(.cookie-banner.visible) .whatsapp-fab {
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Schermi molto piccoli (iPhone SE 1, Android piccoli — < 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .stat-divider {
        display: none;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .marketplace-card {
        padding: 28px 22px;
    }

    .marketplace-title {
        font-size: 1.2rem;
    }

    .marketplace-logo {
        max-width: 170px;
    }

    .review-card {
        padding: 26px 20px 22px;
    }

    .rating-summary {
        padding: 18px 18px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 14px;
        right: 14px;
    }

    .whatsapp-fab svg {
        width: 24px;
        height: 24px;
    }

    /* Le 4 thumb gallery in 2x2 a 360px sono troppo strette: passa a colonna 2 */
    .dove-gallery-thumbs {
        gap: 8px;
    }

    /* Form: padding interno ridotto per evitare overflow */
    .contatti-form-wrapper {
        padding: 20px 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.78rem;
    }
}

/* Tablet portrait — gap intermedio per non avere salto brusco 1024 → 768 */
@media (min-width: 769px) and (max-width: 900px) {
    .contatti-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Schermi grandi (laptop wide, desktop, 4K) — assicura che il container
   non sembri perso in margini enormi e che le foto stiano bene anche larghe */
@media (min-width: 1600px) {
    :root {
        --container-max: 1360px;
    }

    .hero-title {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Schermi ultra-wide / 4K — aumenta leggermente le proporzioni per non
   far sembrare il sito perso in mezzo a margini infiniti */
@media (min-width: 2200px) {
    :root {
        --container-max: 1500px;
        --section-padding: 160px 0;
    }

    body {
        font-size: 17px;
    }
}

/* Garantisce che bottoni e link tappabili abbiano almeno 44x44 (linee guida iOS/Android) */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .btn,
    .dove-cta-card,
    .marketplace-cta,
    .reviews-cta-btn,
    .lightbox-close,
    .lightbox-nav,
    .footer-social a,
    .social-cta {
        min-height: 44px;
    }
}

/* Stop animazione hero canvas su schermi molto piccoli o reduced motion (CPU) */
@media (max-width: 480px) {
    .hero-trail {
        display: none;
    }
}
