:root {
    --primary-color: #1a365d; /* Dark blue */
    --secondary-color: #e53e3e; /* Red accent */
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #edf2f7;
    transform: translateY(-2px);
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
#site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#top-nav ul {
    display: flex;
    gap: 25px;
}

#top-nav a {
    font-weight: 600;
    font-size: 0.95rem;
}

#top-nav a:hover, #top-nav a.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('2026 Concessionario Auomobili small (1).jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero .sub-headline {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

.justify-center {
    justify-content: center;
}

/* General Sections */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--light-bg);
}

.center-text {
    text-align: center;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-content img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* I Nostri Servizi */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Quote */
.quote {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Call to Action Section */
.section-cta {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-cta h2 {
    color: var(--white);
}

/* FAQ Section */
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Footer & Legal */
.site-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #a0aec0;
    font-size: 0.9rem;
    border-bottom: 1px dotted #a0aec0;
    transition: var(--transition);
}

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

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; 
    padding: 40px;
    border-radius: 8px;
    width: 90%; 
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    color: #a0aec0;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    transition: var(--transition);
}

.close-btn:hover,
.close-btn:focus {
    color: var(--secondary-color);
    text-decoration: none;
    transform: scale(1.1);
}

.modal-content h2 {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-content p a {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .two-col {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    #top-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        margin-top: 100px; /* offset for taller header */
        height: auto;
        padding: 100px 0;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
