/* Stili generali del sito */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1 0 auto;
    padding-top: 60px;
    /* Aggiunto per compensare l'header fisso */
}

footer {
    flex-shrink: 0;
}

/* Stili specifici per le sezioni della pagina principale */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/index/hero-background.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.hero .hero-content {
    text-align: left;
    color: #ffffff;
    padding: 20px;
    max-width: 600px;
    margin-left: 10%;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    opacity: 0.9;
}

.hero button {
    padding: 17px 50px;
    font-size: 1rem;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero button:hover {
    background-color: #4a4a4a;
}

.stats {
    display: flex;
    justify-content: space-between;
    padding: 1rem 5%;
}

/* Altri stili specifici per le sezioni della pagina */

.hero-secondary {
    display: flex;
    justify-content: space-between;
}

.hero-content {
    flex: 0 0 45%;
}

.hero-secondary .hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

.hero-description {
    flex: 0 0 45%;
}

.hero-description p {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 2rem;
    margin-right: 10%;
}

.stats {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-image {
    width: 100%;
    margin: 2rem 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hero-secondary .hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    color: #ffffff;
    padding: 20px;
}

.google-reviews {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.google-reviews h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.google-reviews .container > p {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.review-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
}

.reviewer-info h3 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.stars {
    color: #fbbc04;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .google-reviews {
        padding: 3rem 0;
    }

    .google-reviews h2 {
        font-size: 2rem;
    }
}

.galleria-veicoli {
    padding: 1rem 0;
    background-color: #ffffff;
}

.galleria-veicoli h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.galleria-veicoli p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.veicoli-offerti {
    padding: 1rem 0;
    background-color: #ffffff;
}

.veicoli-offerti h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.veicoli-offerti > .container > p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #666;
}

.veicoli-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.veicolo-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.veicolo-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.veicolo-card h3 {
    font-size: 1.2rem;
    margin: 1rem;
    color: #333;
}

.veicolo-card p {
    font-size: 0.9rem;
    margin: 0 1rem 1rem;
    color: #666;
}

.arrow-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
}

@media (max-width: 768px) {
    .veicoli-grid {
        grid-template-columns: 1fr;
    }
}

.annunci {
    background-color: #f5f5f5;
}

.annunci h2,
.rental-results h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.annunci-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.annunci-header p {
    font-size: 1.1rem;
    color: #666;
}

.ordina-per {
    display: flex;
    align-items: center;
}

.ordina-per label {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.ordina-per select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.annunci-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.annuncio-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.annuncio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.annuncio-card h3 {
    font-size: 1rem;
    margin: 1rem;
    color: #333;
}

.annuncio-card .prezzo {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 1rem 1rem;
    color: #333;
}

@media (max-width: 1024px) {
    .annunci-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .annunci-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .annunci-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ordina-per {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .annunci-grid {
        grid-template-columns: 1fr;
    }
}
