/* 
    DGA Group Italia - Premium Landing Page Design System
    Focus: Ultra-Modern, Business Excellence, High-Conversion
    Colors: Gold (#FFD700), Black (#0A0A0A), White (#FFFFFF)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: yellow;
    --primary-gold: #FFD700;
    --primary-dark: #EBC300;
    --dark: #0A0A0A;
    --dark-accent: #151515;
    --dark-light: #1E1E1E;
    --white: #FFFFFF;
    --gray-bg: #F5F5F7;
    --gray-border: #E5E5E5;
    --gray-text: #86868B;

    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 12px;

    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(255, 215, 0, 0.2);
    --glow-border: 1px solid rgba(255, 215, 0, 0.3);

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.bg-dark-accent {
    background-color: var(--dark-accent) !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-control.bg-dark-accent {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 12px;
    padding: 14px 20px;
    transition: var(--transition);
}

.form-control.bg-dark-accent:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1) !important;
}

/* Modern Section Headers */
.section-header {
    margin-bottom: 60px;
    position: relative;
}

.pre-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.section-title {
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 3rem);
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--dark);
    position: relative;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-gold) 100%);
    margin-top: 20px;
    border-radius: 100px;
    transition: var(--transition);
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-header:hover .section-title::after {
    width: 120px;
}

.bg-premium .section-title {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--white);
    /* Fallback */
}

.bg-premium .section-title::after {
    background: var(--primary-gold);
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        letter-spacing: -0.5px;
    }
}

.hero-main-title {
    font-weight: 900;
    font-size: 4.5rem;
    letter-spacing: -2.5px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        padding-left: 15px;
        border-left-width: 6px;
    }

    .hero-main-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-logo-container {
        margin-bottom: 40px !important;
    }

    .hero-logo-container img {
        max-width: 160px !important;
    }

    .prelanding-subtitle {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        padding: 0 15px;
    }

    .prelanding-subtitle span {
        font-size: 1.4rem !important;
        display: block;
        margin: 10px 0;
    }
}

.prelanding-subtitle {
    max-width: 900px;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.bg-premium {
    background-color: var(--dark) !important;
    color: var(--white);
}

/* .text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 50%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
} */

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.glass-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent, rgba(255, 215, 0, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
}

/* Service Cards Refinement */
.service-card {
    background: var(--white);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    border-bottom: 3px solid var(--primary);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Base Styles */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    color: yellow;

}

/* Modern Benefit Cards */
.benefit.car-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.car-item-container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    margin-bottom: 5px;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-gold);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

.benefit-card h5 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--dark);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 100px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    width: fit-content;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-gold) 100%);
    border: none;
    color: var(--dark);
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 100px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.35);
    color: var(--dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--white);
    background: transparent;
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 100px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.btn-primary:hover::after {
    left: 100%;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background-color: #0a0a0a;
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}



.hero-section::before {
    background: var(--primary-gold);
    top: -10%;
    right: -5%;
}

.hero-section::after {
    background: #ffffff;
    bottom: -10%;
    left: -10%;
}

.bg-premium h2,
.bg-premium h3,
.bg-premium h4,
.bg-premium .display-5 {
    color: var(--white);
}

.bg-premium .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.badge-promo {
    background: var(--primary);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
}

/* Gradient overlay for landing heroes */
/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    z-index: 1;
    transition: var(--transition);
} */

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-section .btn {
    width: auto !important;
    min-width: 200px;
    max-width: 380px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-section .btn {
        width: 100% !important;
        max-width: fit-content;
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .hero-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 100px;
}

.hero-section .hero-main-title {
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 15px rgba(0, 0, 0, 1);
}

.hero-section .subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto 48px auto;
    line-height: 1.6;
}

/* Modern Car Cards */
/* Super Compact Professional Card */
.car-card {
    background: var(--white);
    border: 1px solid #f0f0f5;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.car-img-box {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #fff;
    cursor: pointer;
}

.car-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-img-box:hover img {
    transform: scale(1.05);
}

.car-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.car-info {
    flex: 1;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2px;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    line-height: 1.1;
}

.car-title .brand {
    color: #999;
    margin-right: 4px;
}

.car-title .model {
    color: var(--dark);
}

.car-trim {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Super Compact Selectors */
.car-selectors {
    background: #f9f9fb33;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #f0f0f5;
    margin-bottom: 15px;
}

/* .selector-group {
    margin-bottom: 10px;
} */

.selector-group:last-child {
    margin-bottom: 0;
}

.selector-group label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.selector-group label i {
    font-size: 0.75rem;
    color: #bbb;
    margin-left: 5px;
    cursor: help;
}

.stepper-control {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
    transition: all 0.2s ease;
}

.stepper-control:focus-within {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stepper-btn {
    background: #f9f9fb;
    border: none;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.stepper-btn:hover {
    background: #f0f0f5;
    color: #000;
}

.stepper-btn:active {
    background: #e8e8ed;
}

.stepper-value {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-left: 1px solid #eef0f4;
    border-right: 1px solid #eef0f4;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
    min-width: 100px;
    user-select: none;
    -webkit-user-select: none;
}

.stepper-value .value-text {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tighter Price Section */
.price-box {
    text-align: right;
    flex-shrink: 0;
}

.price-label {
    font-size: 0.55rem;
    font-weight: 800;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: -2px;
}

.main-price {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    color: var(--dark);
}

.main-price .currency {
    font-size: 0.9rem;
    font-weight: 800;
    margin-right: 2px;
    margin-top: 6px;
}

.main-price .amount-val {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 0.9;
}

.price-sub {
    display: none;
}

.btn-request {
    height: 44px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
    background: #FFD700;
    color: #000;
    border: none;
}

.btn-request:hover {
    background: #ffdb19;
}

/* Service Cards */
.service-card {
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-gold) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--dark);
    box-shadow: var(--shadow-glow);
}

.service-icon i {
    width: 32px;
    height: 32px;
}

/* Form Section */
.form-box {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-control {
    padding: 16px 24px;
    border-radius: 15px;
    border: 1px solid var(--gray-border);
    background-color: var(--gray-bg);

    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

/* Sections */
.section-padding {
    padding: 120px 0;
}

.bg-premium {
    background-color: #050505;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.bg-premium::before,
.bg-premium::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    opacity: 0.15;
}

.bg-premium::before {
    background: var(--primary-gold);
    top: -5%;
    left: -5%;
}

.bg-premium::after {
    background: #ffffff;
    bottom: -5%;
    right: -5%;
}

.bg-premium .container {
    position: relative;
    z-index: 1;
}



/* Glow Effects */
.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.hero-glow-1 {
    background: var(--primary-gold);
    top: -10%;
    right: -5%;
}

.hero-glow-2 {
    background: #ffffff;
    bottom: -10%;
    left: -5%;
}

.prelanding-hero .container {
    position: relative;
    z-index: 1;
}

.prelanding-hero .btn {
    width: auto !important;
    min-width: 200px;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .prelanding-hero .btn {
        width: 100% !important;
        max-width: 100%;
    }
}

.prelanding-hero .hero-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 24px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 100px;
}



.pretitle-text {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.prelanding-hero .hero-main-title {
    font-size: clamp(1.6rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.display-1.fw-900 {
    font-size: clamp(1.8rem, 8vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 1;
}

@media (max-width: 576px) {

    .hero-main-title,
    .display-1.fw-900 {
        letter-spacing: -0.8px;
        line-height: 1.1;
    }

    .prelanding-hero img,
    .hero-section img {
        max-width: 150px !important;
    }
}

@media (max-width: 768px) {
    .pretitle-text {
        font-size: 0.75rem;
    }
}

.prelanding-hero .subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.25rem;
    max-width: 700px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    color: var(--dark);
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-card h3 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.profile-card p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

.profile-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.profile-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.profile-icon i {
    width: 42px;
    height: 42px;
    stroke-width: 1.5px;
}

.profile-card:hover .profile-icon {
    background: var(--primary-gold);
    color: var(--dark);
    transform: scale(1.1) rotate(5deg);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .form-box {
        padding: 40px 25px;
    }

    .car-model {
        font-size: 1.5rem;
    }
}

/* --- Stili Popup Multi-step --- */
body.popup-open {
    overflow: hidden;
}

.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.form-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 95%;
    max-width: 1000px;
    height: auto;
    max-height: 90vh;
    background: #0f0f0f;
    color: white;
    z-index: 2001;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.side-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.popup-container-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    height: 100%;
}

@media (max-width: 991px) {
    .side-popup {
        width: 95%;
        max-width: 500px;
        max-height: 95vh;
        overflow-y: auto;
    }

    .popup-container-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .popup-info-column {
        display: block;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(to bottom, rgba(255, 215, 0, 0.05), transparent);
    }

    .popup-form-column {
        padding: 30px 20px 40px;
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 576px) {
    .side-popup {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(30px);
        display: block;
        overflow-y: auto;
    }

    .side-popup.active {
        transform: translateY(0);
    }



    .close-popup-btn {
        top: 15px !important;
        right: 15px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(5px);
    }
}

.popup-info-column {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.alert-danger {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border-radius: 12px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.popup-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-gold);
}

.close-popup-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup-btn:hover {
    background: var(--primary-gold);
    color: var(--dark);
    transform: rotate(90deg);
}

.popup-form-column {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.selected-car-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-details h4 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    color: var(--white);
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-details p {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin: 15px 0 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

/* --- Lead Form Single Step UI --- */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section:last-child {
    border-bottom: none;
}

.step-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-gold) 100%);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.section-title-sm {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-sm::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.side-popup .section-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--primary-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-popup .section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 215, 0, 0.15);
}

.side-popup input:not([type="checkbox"]):not([type="radio"]),
.side-popup select,
.side-popup textarea {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.side-popup input:not([type="checkbox"]):not([type="radio"]):focus,
.side-popup select:focus,
.side-popup textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Validation Styles */
.was-validated .form-control:invalid {
    border-color: #ff4d4d !important;
    background-image: none;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1) !important;
}

.was-validated .form-control:valid {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #ff4d4d;
    font-weight: 600;
}

.was-validated :invalid~.invalid-feedback {
    display: block;
}

.side-popup input::placeholder,
.side-popup textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.side-popup select option {
    background-color: #111;
    color: white;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    border-color: var(--primary);
}

.form-row {
    margin-bottom: 22px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #E6C200 100%);
    border: none;
    color: var(--dark);
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.35);
    color: var(--dark);
}

.btn-hero-cta {
    padding: 22px 60px !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: yellow !important;
    /* Pure gold for maximum contrast */
    color: #000 !important;
    border: none !important;
    border-radius: 100px !important;
    box-shadow: 0 15px 45px rgba(255, 215, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hero-cta:hover {
    transform: none;
    background: #fff !important;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.45) !important;
    color: #000 !important;
}

@media (max-width: 768px) {
    .btn-hero-cta {
        padding: 18px 40px !important;
        font-size: 1.1rem !important;
        width: 100%;
    }
}

.input-group-custom {
    display: flex;
    gap: 15px;
}

.input-wrapper {
    flex: 1;
}

.summary-modern-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-visual-box {
    position: relative;
    padding: 30px 20px;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
    border-radius: 24px;
    margin-bottom: 25px;
}

.car-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0.15;
    z-index: 1;
}

.price-hero-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.price-hero-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.spec-row-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.spec-row-modern:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px);
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-tight {
    letter-spacing: -0.02em;
}

.selected-car-summary {
    width: 100%;
}

.spec-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 15px;
}

.spec-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex-grow: 1;
}

.spec-value {
    font-weight: 700;
    color: white;
}

.summary-details h4 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    color: var(--white);
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-details p {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin: 15px 0 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.summary-car-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 2px 0 8px;
}

.summary-car-terms {
    font-size: 0.8rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin: 0;
}

.marketingText {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

.privacy-checks .form-check-input {
    width: 20px !important;
    height: 20px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin-top: 3px !important;
}

.privacy-checks .form-check-input:checked {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

.noGaranteMsg {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
}

/* Responsive Popup */
@media (max-width: 576px) {
    .input-group-custom {
        flex-direction: column;
        gap: 0;
    }

    .selected-car-summary {
        flex-direction: column;
        text-align: center;

    }

    .summary-car-image {
        width: 100%;
        max-width: 180px;
    }

    .popup-content {
        padding: 25px 20px;
    }
}

/* Urgent Pulse for Chiamami Subito */
.btn-urgent-pulse {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    border: none !important;
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    animation: urgent-pulse 2s infinite;
}

@keyframes urgent-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(243, 156, 18, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

/* Premium CTA Section Styles */
.cta-richiedi-section {
    background-color: var(--gray-bg) !important;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.shadow-premium-light {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04) !important;
}

.border-light-premium {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.cta-horizontal-wrapper {
    transition: var(--transition);
    border-radius: 100px;
    position: relative;
    background-color: #FFFFFF !important;
}

.rounded-pill-custom {
    border-radius: 100px !important;
}

@media (max-width: 768px) {
    .rounded-pill-custom {
        border-radius: 24px !important;
    }
}

.cta-horizontal-wrapper:hover {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.cta-horizontal-wrapper:hover .arrow-icon {
    transform: translateX(4px);
    transition: var(--transition);
}

.cta-search-bg-icon-light {
    position: absolute;
    right: 5%;
    bottom: -35%;
    font-size: 8rem;
    z-index: 0;
    pointer-events: none;
    transform: rotate(-15deg);
    opacity: 0.5;
}

.cta-horizontal-wrapper>div {
    position: relative;
    z-index: 2;
}

.max-width-600 {
    max-width: 600px;
}

.btn-primary,
.btn-outline-primary,
.btn-request,
.btn-hero-cta {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.car-card .btn,
.car-card .btn-primary,
.car-card .btn-request {
    transform: none !important;
}

.car-card .btn:hover,
.car-card .btn-primary:hover,
.car-card .btn-request:hover {
    transform: none !important;
}