body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}
header {
    background-color: #005f8a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 2em;
}
.logo {
    width: 100px;
    height: auto;
}
nav {
    display: flex;
    gap: 1em;
    font-size: 1.2em;
    background-color: #005f8a;
    padding: 0.5em;
    border-radius: 8px;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}
.hero {
    background: url('images/home01.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 3em 0;
}
.hero h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
.hero p {
    font-size: 1.2em;
}
.services {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2em;
    padding: 3em;
    background-color: #f9f9f9;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}
.service {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(30% - 2em);
    max-width: calc(30% - 2em);
    height: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.service img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #005f8a;
}
.service h2 {
    margin: 0.5em 0;
    color: #005f8a;
    font-size: 1.5em;
}
.service p {
    padding: 0 1em 1em;
    color: #666;
    font-size: 1em;
}
.service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 95, 138, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}
.service:hover::after {
    opacity: 1;
}
.cta {
    text-align: center;
    background-color: #f0f0f0;
    padding: 2em 1em;
    margin: 2em 0;
    border-top: 3px solid #005f8a;
    border-bottom: 3px solid #005f8a;
}
.cta h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #005f8a;
}
.cta p {
    font-size: 1.2em;
    margin-bottom: 1em;
}
.cta button {
    background-color: #005f8a;
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta button:hover {
    background-color: #004466;
    transform: scale(1.05);
}
footer {
    background-color: #005f8a;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 2em;
    flex-wrap: wrap;
}
.footer-section {
    max-width: 300px;
}
.footer-section h3 {
    margin-bottom: 1em;
    font-size: 1.2em;
    text-transform: uppercase;
}
.footer-section p, .footer-section a {
    margin: 0.5em 0;
    color: white;
    text-decoration: none;
}
.footer-section a:hover {
    text-decoration: underline;
}
.footer-section img {
    max-width: 150px;
    margin-bottom: 1em;
}
.footer-section a {
    display: block;
}

/* Stili generali */
/*body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.news-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 400px;
    padding: 20px;
    overflow: hidden;
    text-align: left;
}

.news-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-item h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-item a {
    font-size: 1em;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.news-item a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Sezione titolo principale */
.news-section h2 {
    font-size: 2.5em;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Contenitore principale */
.news-section {
    padding: 40px 20px;
    background-color: #f4f4f4;
    border-top: 5px solid #007BFF;
    border-bottom: 5px solid #007BFF;
}


.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-container label {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.search-container select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-container select:hover {
    border-color: #007BFF;
    background-color: #f0f8ff;
}


/* Stili responsivi */
@media (max-width: 768px) {
    .news-filters {
        flex-direction: column;
        align-items: center;
    }

    .news-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }
    .service {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav a {
        font-size: 1em;
    }
    .hero h2 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .cta h2 {
        font-size: 1.5em;
    }
    .cta p {
        font-size: 1em;
    }
}
