/* =========================================
   1. RESET E BASE
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0F172A;
    color: #F1F5F9;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   2. HEADER & NAVIGAZIONE
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #F8FAFC;
    display: none;
}

@media (min-width: 768px) {
    .logo-text { display: block; }
}

/* MENU - RIMOZIONE PALLINI */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu, .dropdown-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.menu li, .dropdown-menu li {
    list-style-type: none !important;
}

.menu {
    display: flex;
    gap: 24px;
}

.menu a, .dropdown-toggle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #CBD5E1;
    cursor: pointer;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.menu a:hover, .dropdown-toggle:hover {
    color: #38BDF8;
}

/* DROPDOWN */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 8px !important;
    min-width: 220px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(12px);
}

.dropdown-menu a {
    padding: 10px 16px;
    border-radius: 8px;
    width: 100%;
    display: block;
    color: #94A3B8;
}

.dropdown-menu a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
}

/* Language Selector */
.language-selector select {
    background: #263345;
    color: #fff;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 99px;
    cursor: pointer;
    outline: none;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
}

/* =========================================
   3. HERO SECTIONS
   ========================================= */
.hero {
    position: relative;
    min-height: 500px;
    margin-top: 80px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1E293B, #0F172A);
    overflow: hidden;
}

.hero-bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-inner {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    color: #94A3B8;
    margin-bottom: 30px;
}

.hero-image {
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #334155;
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #38BDF8, #0EA5E9);
    color: #0F172A;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 99px;
    text-decoration: none;
}

/* HERO AUTO SPECIFICA (SFONDO PIENO) */
.hero-auto-simple {
    position: relative;
    height: 60vh; /* Altezza fissa per l'header */
    min-height: 500px;
    margin-top: 80px; /* Compensa navbar fissa */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image--auto-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image--auto-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Scurisce l'immagine per leggere il testo */
}

.hero-content--auto {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-content--auto h1 {
    font-size: 3.5rem;
    color: #fff;
    margin: 20px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.car-badge {
    background: #38BDF8;
    color: #0F172A;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================
   4. GALLERIA FOTO AUTO
   ========================================= */
.car-gallery-section {
    padding: 60px 0 0; /* Padding sopra */
    background: #0F172A;
}

.car-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    border: 1px solid #334155;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: #38BDF8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   5. TARIFFE TABLE
   ========================================= */
.rates-section {
    padding: 80px 0;
    background: #0F172A;
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: 2.2rem;
    color: #38BDF8;
    background: linear-gradient(135deg, #38BDF8, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rates-table-full {
    background: #1E293B;
    border-radius: 16px;
    border: 1px solid #334155;
    overflow: hidden;
    margin-bottom: 50px;
}

.table-full-row {
    display: grid;
    grid-template-columns: 80px 1.5fr repeat(7, 1fr) 1.2fr;
    border-bottom: 1px solid #334155;
}

.header-row {
    background: linear-gradient(90deg, #0369A1, #0EA5E9);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    border: none;
}

.table-full-row > div {
    padding: 18px 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-full { color: #38BDF8; font-weight: 800; border-right: 1px solid #334155; font-size: 1.2rem; }
.header-row .group-full { color: #fff; border-right-color: rgba(255,255,255,0.2); }

.model-name { justify-content: flex-start !important; padding-left: 20px !important; }
.model-name a { color: #fff; text-decoration: none; font-weight: 600; }
.header-row .model-name { color: #fff; }

.price-full { color: #CBD5E1; font-weight: 500; }
.header-row .price-full { color: #fff; font-weight: 800; }

.weekend-full { color: #38BDF8; background: rgba(56,189,248,0.08); font-weight: 700; }
.header-row .weekend-full { color: #fff; background: rgba(0,0,0,0.1); }

.table-full-body .table-full-row:hover { background: #263345; }

/* INFO BOX TARIFFE */
.rates-info-full {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.rates-info-full h3 { text-align: center; color: #fff; margin-bottom: 30px; font-size: 1.5rem; }

.rates-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-bottom: 30px;
}

.rates-bullets li {
    position: relative;
    padding-left: 30px;
    color: #CBD5E1;
}

.rates-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38BDF8;
    font-weight: 800;
}

/* Rettangolo Testo Extra con SPAZIO AGGIUNTO */
.rates-extra-text {
    background: rgba(56, 189, 248, 0.05);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #38BDF8;
    margin-bottom: 60px; /* SPAZIO AUMENTATO QUI */
    color: #E2E8F0;
    line-height: 1.7;
    text-align: center;
}

.rates-notes {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 30px;
    color: #94A3B8;
}

.rates-notes strong { color: #fff; }

/* =========================================
   6. DETTAGLI AUTO
   ========================================= */
.car-details-section { padding: 60px 0; background: #0F172A; }
.car-specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.car-spec { background: #1E293B; border: 1px solid #334155; padding: 30px; border-radius: 16px; text-align: center; }
.car-spec i { font-size: 2.5rem; color: #38BDF8; margin-bottom: 15px; }
.car-spec h3 { color: #fff; margin-bottom: 5px; }
.car-spec p { color: #94A3B8; }

.car-cta-section {
    background: #1E293B; border-radius: 20px; border: 1px solid #334155; padding: 40px; text-align: center; margin-top: 50px;
}

.cta-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 25px; flex-wrap: wrap; }
.cta-button.whatsapp { background: #25D366; color: #fff; }

/* =========================================
   6. REVIEWS SECTION
   ========================================= */

.reviews-section {
    padding: 80px 0 90px;
    /* Gradiente scuro leggero */
    background: linear-gradient(to bottom, #0F172A, #1E293B);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: #1E293B;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #334155;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-stars {
    color: #FACC15; /* Giallo */
    letter-spacing: 2px;
}

.review-source {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
}

.review-text {
    font-size: 0.95rem;
    color: #CBD5E1;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.5;
}

.review-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: #F8FAFC;
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer { background: #020617; border-top: 1px solid #334155; padding: 60px 0; color: #94A3B8; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; margin-bottom: 20px; }
.footer a { color: #CBD5E1; text-decoration: none; }
.footer a:hover { color: #38BDF8; }

@media (max-width: 900px) {
    .rates-table-full { overflow-x: auto; }
    .table-full-header, .table-full-body { min-width: 900px; }
    .footer-inner, .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-auto-simple { height: 400px; }
    .hero-content--auto h1 { font-size: 2.5rem; }
}