* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ferrari-yellow: #FFE100;
    --ferrari-red: #DC0000;
    --black: #0a0a0a;
    --dark: #111;
    --darker: #0d0d0d;
    --white: #fff;
    --gray: #999;
    --light-gray: #e5e5e5;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 48px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 40px;
}

.logo svg {
    height: 32px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    flex-direction: column;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ferrari-yellow);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 16px;
}

.search-btn, .user-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover, .user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%),
                linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 0 48px;
    margin-top: 80px;
}

.hero-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ferrari-yellow);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-desc {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--ferrari-yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 225, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--ferrari-yellow), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Models Carousel ---- */
.models-carousel {
    padding: 120px 48px;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-header p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: var(--gray);
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 16px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--darker);
}

.carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.carousel-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.carousel-card:hover img {
    transform: scale(1.05);
}

.card-info {
    padding: 24px;
}

.card-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-info p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--gray);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.carousel-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: var(--ferrari-yellow);
    background: var(--ferrari-yellow);
    color: var(--black);
}

/* ---- Scuderia ---- */
.scuderia {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.scuderia-bg {
    position: absolute;
    inset: 0;
}

.scuderia-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scuderia-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.scuderia-content {
    position: relative;
    z-index: 2;
    padding: 0 48px;
    max-width: 600px;
}

.section-tag {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ferrari-yellow);
    border: 1px solid var(--ferrari-yellow);
    padding: 6px 16px;
    margin-bottom: 24px;
}

.scuderia-content h2 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
}

.scuderia-content p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* ---- Heritage ---- */
.heritage {
    padding: 120px 48px;
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.heritage-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.heritage-item.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    aspect-ratio: auto;
}

.heritage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.heritage-item:hover img {
    transform: scale(1.08);
}

.heritage-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
}

.heritage-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
}

.heritage-info span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ferrari-yellow);
}

.heritage-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 4px;
}

/* ---- Pricing ---- */
.pricing {
    padding: 120px 48px;
    background: var(--dark);
}

.price-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.price-filter {
    padding: 10px 28px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.price-filter:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.price-filter.active {
    background: var(--ferrari-yellow);
    color: var(--black);
    border-color: var(--ferrari-yellow);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
}

.price-card {
    background: var(--darker);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 225, 0, 0.15);
}

.price-card.hidden {
    display: none;
}

.price-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-card-img img {
    width: 90%;
    height: 85%;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) brightness(0.85);
}

.price-card:hover .price-card-img img {
    transform: scale(1.06);
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.4)) brightness(1);
}

.color-selector {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.color-dot:hover {
    transform: scale(1.3);
    border-color: var(--white);
}

.color-dot.active {
    border-color: var(--ferrari-yellow);
    box-shadow: 0 0 12px rgba(255, 225, 0, 0.4);
}

.price-card-body {
    padding: 24px;
}

.price-badge {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ferrari-yellow);
    border: 1px solid var(--ferrari-yellow);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
}

.price-card-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-spec {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ferrari-yellow);
    margin-bottom: 20px;
}

.price-card-body .btn {
    width: 100%;
}

/* ---- Stats ---- */
.stats {
    padding: 100px 48px;
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 64px;
    font-weight: 700;
    color: var(--ferrari-yellow);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
}

/* ---- Test Drive ---- */
.testdrive {
    position: relative;
    padding: 120px 48px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0d0d0d 100%);
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 225, 0, 0.08);
    border-bottom: 1px solid rgba(255, 225, 0, 0.08);
}

.testdrive-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(220, 0, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.testdrive-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.testdrive-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.testdrive-content p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 36px;
}

.testdrive-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
    color: #fff;
}

.testdrive-phone {
    font-size: 14px !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
}

.testdrive-phone strong {
    color: var(--white);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* ---- Dealers ---- */
.dealers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.dealers-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 48px;
    background: var(--dark);
}

.dealers-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.dealers-content p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 440px;
}

.dealer-search {
    display: flex;
    gap: 0;
    max-width: 440px;
}

.dealer-search input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: var(--white);
    outline: none;
    transition: var(--transition);
}

.dealer-search input::placeholder {
    color: var(--gray);
}

.dealer-search input:focus {
    border-color: var(--ferrari-yellow);
    background: rgba(255, 225, 0, 0.05);
}

.dealer-search .btn {
    border-radius: 0;
}

.dealers-map {
    overflow: hidden;
}

.dealers-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) brightness(0.6);
}

/* ---- Footer ---- */
.footer {
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 48px 48px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ferrari-yellow);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-social {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 48px;
    display: flex;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--ferrari-yellow);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 48px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-copy {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .hero-content { max-width: 500px; }
    .pricing { padding: 80px 24px; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .dealers { grid-template-columns: 1fr; }
    .dealers-map { height: 300px; }
    .footer-top { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .header { padding: 0 20px; }
    .hero-content { padding: 0 20px; }
    .hero-title { font-size: 42px; }
    .models-carousel { padding: 80px 20px; }
    .carousel-card { flex: 0 0 300px; }
    .scuderia { height: 60vh; }
    .scuderia-content { padding: 0 20px; }
    .scuderia-content h2 { font-size: 40px; }
    .heritage { padding: 80px 20px; }
    .heritage-grid { grid-template-columns: 1fr 1fr; }
    .heritage-item.large { grid-column: 1 / -1; }
    .pricing { padding: 80px 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-filters { gap: 8px; }
    .price-filter { padding: 8px 18px; font-size: 11px; }
    .stats { padding: 60px 20px; }
    .stat-number { font-size: 48px; }
    .dealers-content { padding: 60px 20px; }
    .footer-top { padding: 60px 20px 32px; grid-template-columns: 1fr 1fr; }
    .footer-social { padding: 24px 20px; gap: 16px; }
    .footer-bottom { padding: 24px 20px; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; }
    .carousel-card { flex: 0 0 260px; }
    .heritage-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .dealer-search { flex-direction: column; }
    .dealer-search input { border-right: 1px solid rgba(255, 255, 255, 0.1); border-bottom: none; }
    .testdrive { padding: 80px 20px; }
    .testdrive-content h2 { font-size: 32px; }
    .testdrive-actions { flex-direction: column; align-items: center; }
    .testdrive-actions .btn { width: 100%; max-width: 320px; }
    .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .testdrive { padding: 80px 20px; }
    .testdrive-content h2 { font-size: 32px; }
    .testdrive-actions { flex-direction: column; align-items: center; }
    .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
}
