/* HERO FLOTTA */
.flotta-hero {
    height: 50vh;
    background: url('../img/camion.png') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column; /* titolo sopra sottotitolo */
    flex-direction: column; /* titolo sopra sottotitolo */
    flex-direction: column; /* titolo sopra sottotitolo */
    justify-content: center;
    align-items: center;
    margin-top: 140px;
    overflow: hidden;
}

    /* overlay scuro sopra l'immagine, z-index controllati */
    .flotta-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 0;
    }

.flotta-hero h1,
.flotta-hero p {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1; /* testo sopra l'overlay */
}

    .flotta-hero h1 {
        font-size: 3rem;
        margin-bottom: 15px;
        color: white;
    }

/* SEZIONE FLOTTA */
.flotta-section {
    max-width: 1200px;
    margin: auto;
    padding: 80px 20px;
}

/* NUMERI ANIMATI */
.flotta-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.num-box {
    background: #ffffffdd;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.num {
    font-size: 42px;
    font-weight: 700;
    color: #0B7A3E;
    display: block;
    margin-bottom: 5px;
}

/* CARD FLOTTA */
.flotta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.flotta-card {
    background: #ffffffdd;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform .2s;
}

    .flotta-card:hover {
        transform: translateY(-5px);
    }

    .flotta-card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .flotta-card h3 {
        font-size: 22px;
        color: #0B7A3E;
        margin-bottom: 10px;
    }

    .flotta-card p {
        font-size: 16px;
        line-height: 1.5;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .flotta-hero {
        height: 40vh;
        margin-top: 110px;
        background-position: center top;
        background-size: cover;
    }

    .flotta-hero h1 {
        font-size: 2.2rem;
    }
}