/* Hero Section */
#hero {
    margin-top: 80px;
    background: url('https://www.polito.it/sites/default/files/2023-05/accordo%20con%20Agenzia%20del%20Demanio.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 128, 128, 0.5); /* Teal overlay */
    backdrop-filter: blur(5px);
}

#hero h1,
#hero p,
#hero .cta-button {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px #000;
}

#hero .cta-button {
    padding: 15px 30px;
    background-color: #ff7f50; /* Coral */
    color: #fff;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#hero .cta-button:hover {
    background-color: #ff6347; /* Tomato */
}

/* Features Section */
#features {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

#features .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#features .feature-item {
    flex: 1 1 22%;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

#features .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(224, 247, 250, 0.8); /* Light teal on hover */
}

#features .feature-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

#features .feature-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #008080; /* Teal */
}

#features .feature-item p {
    font-size: 0.9em;
    color: #666;
}

/* News Section */
#news {
    padding: 60px 20px;
    background-color: #fff;
}

#news .container {
    max-width: 1200px;
    margin: 0 auto;
}

#news h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #008080; /* Teal */
}

#news .news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#news .news-item {
    flex: 1 1 calc(33% - 30px);
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

#news .news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #e0f7fa; /* Light teal on hover */
}

#news .news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

#news .news-content {
    padding: 20px;
}

#news .news-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

#news .news-content p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
}

#news .news-content a {
    font-size: 1em;
    color: #008080; /* Teal */
    font-weight: bold;
}

#news .news-content a:hover {
    color: #ff7f50; /* Coral */
}



/* Submit Button */
.cta-button {
    background-color: #008080;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    margin: 0 auto;
}

.cta-button:hover {
    background-color: #006666;
    transform: translateY(-2px);
}
