@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #1A2B3C;
    --primary-light: #2C4258;
    --secondary: #FF8C42;
    --accent: #2EC4B6;
    --accent-light: #EBFAF9;
    --surface: #F8FAFA;
    --white: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--surface);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Playfair Display', serif;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.booking-widget {
    background: #FFFFFF !important;
    /* Solid background for guaranteed visibility */
    border: 3px solid var(--secondary);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    cursor: pointer;
    display: block !important;
    text-decoration: none;
    z-index: 100;
    position: relative;
    color: #1A2B3C !important;
    margin-top: 2rem;
    min-height: 200px;
    opacity: 1 !important;
    visibility: visible !important;
}

.booking-widget:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: var(--teide);
}

.booking-field {
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(26, 43, 60, 0.05);
    transition: all 0.3s ease;
}

.booking-widget:hover .booking-field {
    border-color: rgba(255, 140, 66, 0.2);
    background: var(--accent-light);
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.fleet-card {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fleet-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.fleet-img-container {
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.fleet-img-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-light);
    border-radius: 50%;
    z-index: 1;
}

.fleet-card img {
    height: 100%;
    width: auto;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.3s ease;
}

.fleet-card:hover img {
    transform: scale(1.1);
}

.map-container {
    position: relative;
    background: var(--primary);
    border-radius: 32px;
    padding: 2rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg {
    width: 100%;
    height: auto;
    max-width: 600px;
    filter: drop-shadow(0 0 30px rgba(46, 196, 182, 0.2));
}

.map-point {
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-point:hover {
    filter: brightness(1.5);
    transform: scale(1.2);
}

.tip-card {
    display: none;
}

.tip-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.review-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.star-rating svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insurance-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.insurance-card.featured {
    border-color: var(--teide);
    background: var(--white);
    transform: scale(1.05);
    z-index: 10;
}

.insurance-card.featured::before {
    content: 'CONSIGLIATO';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--teide);
    color: white;
    padding: 0.25rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
}

.hero-split {
    display: flex;
    min-height: 100vh;
    overflow: visible;
    /* Prevent clipping of floating widget */
}

.hero-content {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8% 8%;
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    z-index: 50;
    /* Higher than car and other visual elements */
    min-height: 100vh;
}

.hero-visual {
    flex: 0 0 45%;
    position: relative;
    background: radial-gradient(circle at center, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #FF9F63;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
}

.hero-car {
    max-width: 140%;
    transform: translateX(-10%);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    z-index: 20;
    pointer-events: none;
}

.hero-bg-text {
    position: absolute;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
    bottom: -5%;
}

@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column-reverse;
    }

    .hero-content,
    .hero-visual {
        flex: 0 0 auto;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-visual {
        height: 40vh;
    }

    .hero-car {
        max-width: 100%;
        transform: translateX(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}