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

body {
    font-family: 'Courier Prime', monospace;  /* Font moderno e pulito */
    line-height: 1.6;
    color: #333;  /* Testo scuro per buona leggibilità */
    background-color: #f0f0f0;  /* Background più morbido */
    transition: background-color 0.3s ease;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background-color: #ffffff;  /* Sfondo bianco con sfumatura morbida */
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombra delicata */
    transition: background-color 0.3s ease;
}

.navbar .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 0.5rem;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: #00aaff;  /* Colore fresco e moderno */
    color: #fff;
}

/* Sezione Hero */
.hero {
    background: url('images/sfondo2.png') no-repeat center center/cover;
    color: #fff;
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);  /* Sovrapposizione trasparente */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 1px;
    transition: transform 0.5s ease-in-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.6;
    transition: transform 0.5s ease-in-out;
}

.hero h1:hover {
    transform: translateY(-10px);  /* Effetto di sollevamento */
}

.hero p:hover {
    transform: translateY(-5px);
}

/* Sezioni */
.section {
    padding: 5rem 0;
    text-align: center;
    background-color: #e8e8e8;  /* Grigio chiaro morbido per le sezioni */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #00aaff;
    letter-spacing: 0.5px;
}

.section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.8;
}

/* Servizi */
.services {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.service-item:hover {
    transform: translateY(-8px); /* Sollevamento al passaggio del mouse */
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.2);  /* Ombra più marcata */
}

.service-item h3 {
    font-size: 1.6rem;
    color: #00aaff;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 1rem;
    color: #555;
}

/* Modulo di contatto */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00aaff;  /* Evidenza focus */
    outline: none;
}

.contact-form button {
    background-color: #00aaff;
    color: #fff;
    padding: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-form button:hover {
    background-color: #0077cc;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #f4f4f4;  /* Grigio chiaro per il footer */
    color: #333;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
}

footer .footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

footer .footer-logo-container {
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
}

footer .footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

/* Mostra il logo con transizione quando si diventa visibile */
footer .footer-logo.visible {
    opacity: 1;
}

footer p {
    font-size: 0.9rem;
    color: #333;
}

/* Separatore Linea Footer */
footer hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 2rem 0;
}

/* Separatore tra le sezioni */
section hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 3rem 0;
}
