/* GT Performance - Custom Styles */

/* Logo sizing */
.header-logo img {
    max-height: 100px !important;
    width: auto !important;
}

/* Review truncation */
.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fix blockquote position in testimonials */
.testimonial-with-quotes blockquote:before {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.custom-testimonial-style-1 blockquote {
    padding-top: 0 !important;
}

.custom-testimonial-style-1 blockquote p {
    padding-top: 0 !important;
}

/* WhatsApp button hover */
.btn-primary:hover .fa-whatsapp {
    transform: scale(1.1);
}

/* Service cards hover */
.bg-white.rounded {
    transition: all 0.3s ease;
}

.bg-white.rounded:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Card hover effect */
.card.shadow-sm {
    transition: all 0.3s ease;
}

.card.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Service box hover */
.custom-icon-box-style-1 {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}

.custom-icon-box-style-1:hover {
    background: rgba(237, 46, 41, 0.05);
    transform: translateY(-5px);
}

/* Footer links */
footer a:hover {
    opacity: 0.8;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Dark theme adjustments for automotive */
.bg-dark-custom {
    background-color: #1a1a1a !important;
}

/* Gallery grid */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Service icon style */
.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ed2e29 0%, #b71c1c 100%);
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 32px;
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .header-logo img {
        max-height: 80px !important;
    }

    /* Fixed header on mobile */
    #header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: #fff !important;
    }

    .body {
        padding-top: 100px !important;
    }

    /* Hero text color fix for mobile */
    .custom-section-background h1,
    .custom-section-background h2,
    .custom-section-background p {
        color: #1a1a1a !important;
    }

    .custom-section-background .btn-primary {
        color: #fff !important;
    }

    /* Hero section mobile background */
    .custom-section-background {
        background: #f8f8f8 !important;
    }

    /* Reduce gap Chi Siamo section */
    #chi-siamo {
        margin-top: 2rem !important;
        padding-top: 0 !important;
    }

    #chi-siamo .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    /* Reduce gap Recensioni section */
    #recensioni {
        padding-top: 1rem !important;
    }

    #recensioni .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Reduce gap Preventivi section */
    .section.bg-transparent {
        padding-top: 0 !important;
    }

    .section.bg-transparent .py-4 {
        padding-top: 0.5rem !important;
    }
}

@media (max-width: 767px) {
    .header-logo img {
        max-height: 70px !important;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 24px;
    }

    /* Further reduce gaps on small screens */
    #chi-siamo {
        margin-top: 1rem !important;
    }

    #recensioni .pb-3 {
        padding-bottom: 0.5rem !important;
    }
}

/* Placeholder image style */
.placeholder-img {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ed2e29;
    font-size: 48px;
}

/* Hero overlay for dark theme */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}
