/* Stile Generale */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #2c3e50; /* Blu scuro */
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 50px; /* Dimensione del logo */
    filter: invert(100%); /* Rende il logo bianco per contrastare lo sfondo scuro */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #1abc9c; /* Verde acqua */
}

/* Hero Section */
.hero {
    background: url('https://source.unsplash.com/random/1920x1080/?architecture,construction') no-repeat center center/cover; /* Immagine di sfondo generica, puoi cambiarla */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay scuro per migliorare la leggibilità del testo */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: normal;
}

.hero .btn {
    display: inline-block;
    background: #1abc9c; /* Verde acqua */
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: #16a085; /* Verde acqua più scuro */
}

/* Sezioni Contenuto */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.content-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.grey-bg {
    background-color: #ecf0f1; /* Grigio chiaro */
}

/* Service Items */
.service-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    max-width: 100%;
    height: 250px; /* Altezza fissa per le immagini dei servizi */
    object-fit: cover; /* Assicura che le immagini coprano l'area senza distorcersi */
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-item h3 {
    color: #2c3e50;
    margin-top: 0;
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1em;
}

.contact-info a {
    color: #1abc9c;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical; /* Permette di ridimensionare verticalmente */
}

.contact-form button {
    background: #2c3e50;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #34495e;
}

.form-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 20px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Media Queries per il Responsive */
@media (min-width: 768px) {
    .service-item {
        display: inline-block;
        width: calc(33% - 40px); /* Tre colonne per i servizi */
        margin: 10px 20px;
        vertical-align: top;
    }
    .service-item:nth-child(3n) { /* Rimuove il margine destro dall'ultimo elemento di ogni riga di 3 */
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        flex-direction: column;
        margin-top: 10px;
    }
    header nav ul li {
        margin: 5px 0;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero h2 {
        font-size: 1.2em;
    }
    .content-section h2 {
        font-size: 2em;
    }
    .service-item {
        margin: 0 auto 30px auto;
        max-width: 400px; /* Limita la larghezza su mobile per una migliore leggibilità */
    }
}