/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a73cc;
    padding: 10px 50px;
    color: white;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    height: 60px;
    margin-right: 10px; /* Spazio tra logo e testo GLF s.r.l. */
}


/* Testo lato sinistro */
.header-left h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* Logo a sinistra */
.header-logo {
    margin-right: 20px;
}

.header-logo img {
    height: 60px;
    width: auto;
}

.header-title {
    margin-left: 10px;
}

.header-title h1 {
    font-size: 1.8rem;
    font-style: italic;
    margin: 0;
}


/* Testo lato destro */
.header-right h2 {
    margin: 0;
    font-size: 1.5rem;
    font-style: italic;
    text-align: right;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

/* Hero Section */
.hero {
    background-image: url('vans.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ADD8E6;
    position: relative;
}

/* Link "La nostra storia" nell'immagine della homepage */
.hero-story {
    position: absolute;
    top: 20px;
    right: 50px;
}

.hero-story a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-story a:hover {
    background-color: white;
    color: #1a73cc;
}

.hero h2 {
    font-size: 1.85rem;
    font-style: italic;
    text-align: center;
    color: #ffffff;
    margin: 0 20px;
    background-color: #1a73cc;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Services Section */
.services {
    padding: 80px 50px;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Stili generali per ogni servizio con immagini di sfondo */
.service {
    margin-bottom: 80px;
    color: white;
    padding: 80px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Overlay scuro per rendere il testo più leggibile */
.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Riduce la luminosità per migliorare la leggibilità */
    z-index: -1;
    border-radius: 10px;
}

/* Servizio Espresso Italia */
.service-italia {
    background-image: url('italia.jpg'); /* Sostituisci con il percorso dell'immagine */
}

/* Servizio Espresso Europa */
.service-europa {
    background-image: url('europa.jpg'); /* Sostituisci con il percorso dell'immagine */
}

/* Servizio Collettame Franco Italia */
.service-collettame {
    background-image: url('collettame.jpg'); /* Sostituisci con il percorso dell'immagine */
}

/* Servizio A.D.R. */
.service-adr {
    background-image: url('adr.jpg'); /* Sostituisci con il percorso dell'immagine */
}

/* Servizio Carichi Completi */
.service-carichi {
    background-image: url('carichi.jpg'); /* Sostituisci con il percorso dell'immagine */
}

/* Servizio Noleggio Auto */
.service-noleggio {
    background-image: url('noleggio.jpg'); /* Sostituisci con il percorso dell'immagine */
}

/* Servizio Automezzi Dedicati */
.service-automezzi {
    background-image: url('automezzi.jpg'); /* Sostituisci con il percorso dell'immagine */
}

/* Servizio Consegne Porta a Porta */
.service-porta {
    background-image: url('porta.jpg'); /* Sostituisci con il percorso dell'immagine */

}

/* Stile per il pulsante Seleziona sotto i servizi */
.service-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a73cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.service-button:hover {
    background-color: #1a73cc;
}


form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

form button {
    padding: 10px 20px;
    background-color: #1a73cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #1a73cc;
}

.select-service-section {
    background-image: url('background.jpg'); 
    background-size: cover;
    background-position: center;
    height: 100vh; /* Copre tutta la finestra */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.select-service-section h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Aggiunge un'ombra al testo per renderlo leggibile */
}


/* Footer */
.footer {
    background-color: #1a73cc; /* Blu scuro */
    color: white;
    padding: 50px;
    text-align: center;
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-left, .header-right {
        margin-bottom: 10px;
    }

    .hero {
        height: 100vh;
    }

    .hero h2 {
        font-size: 1.85rem;
    }

    .service h3 {
        font-size: 1.3rem;
    }

    .service p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 1.5rem;
    }

    .header-right h2 {
        font-size: 1.2rem;
    }

    .hero {
        height: 60vh;
    }

    .hero h2 {
        font-size: 1.65rem;
    }

    .service h3 {
        font-size: 1.2rem;
    }

    .service p {
        font-size: 0.8rem;
    }

    .service-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}


.footer h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto; /* Per centrare il contenuto del footer */
}

.contact-details p {
    font-size: 1.1rem;
    margin: 5px 0;
}

.contact-details a {
    color: white;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details strong {
    font-size: 1.2rem;
}

/* Pulsante per inviare una mail */
.email-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: white;
    color: #1a73cc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.email-button:hover {
    background-color: #f4f4f4;
    color: #1a73cc;
}
