* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a2e;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Navbar */
nav {
    background-color: transparent;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0.8rem;
    z-index: 100;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.8rem 2rem;
    background-color: rgba(0, 11, 61, 0.95);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 11, 61, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(135, 206, 235, 0.2);
    align-items: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: #87ceeb;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #87ceeb;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background-color: #87ceeb;
    color: #000b3d;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

.lang-btn.active {
    background-color: #ffffff;
    color: #000b3d;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(135deg, rgba(0, 11, 61, 0.75) 0%, rgba(26, 58, 82, 0.75) 100%), url('images/internetimage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    transition: all 0.5s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideDown 0.6s ease;
    transition: all 0.3s ease;
}

@keyframes goldShine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.hero p {
    font-size: 1.3rem;
    color: #87ceeb;
    animation: slideUp 0.6s ease;
}

.hero img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero:hover img {
    transform: scale(1.05) rotateY(5deg);
    filter: drop-shadow(0 0 20px rgba(135, 206, 235, 0.6));
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Styles */
section {
    margin: 3rem 0;
    padding: 3rem 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 11, 61, 0.15);
}

section h2 {
    font-size: 2.5rem;
    color: #000b3d;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #87ceeb;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

section:hover h2 {
    color: #87ceeb;
    border-bottom-color: #000b3d;
}

.chi-siamo {
    background-color: #f0f8ff;
    border-left: 5px solid #000b3d;
}

.storia {
    background-color: #ffffff;
    border-left: 5px solid #87ceeb;
}

.progetti {
    background-color: #f0f8ff;
    border-left: 5px solid #000b3d;
}

.contatti {
    background-color: #000b3d;
    color: #ffffff;
}

.contatti h2 {
    color: #87ceeb;
    border-bottom-color: #ffffff;
}

/* Content Placeholder */
.placeholder {
    color: #999;
    font-style: italic;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: #000b3d;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    color: #87ceeb;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(135, 206, 235, 0.2);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 25px rgba(135, 206, 235, 0.3);
}

.contact-item h3 {
    color: #87ceeb;
    margin-bottom: 0.5rem;
}

/* Progetto Button */
.btn-progetti {
    display: inline-block;
    background-image: linear-gradient(135deg, rgba(0, 11, 61, 0.6) 0%, rgba(26, 58, 82, 0.6) 100%), url('images/Screenshot_22-3-2026_1424_www.bing.com.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2.5rem 3.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    border: 2px solid #87ceeb;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-progetti::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-progetti:hover::before {
    left: 100%;
}

.btn-progetti:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(135, 206, 235, 0.5);
    background-image: linear-gradient(135deg, rgba(0, 11, 61, 0.4) 0%, rgba(26, 58, 82, 0.4) 100%), url('images/Screenshot_22-3-2026_1424_www.bing.com.jpeg');
}

.btn-progetti span {
    position: relative;
    z-index: 2;
}

/* Media Images */
.section-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInImage 0.8s ease forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

section:hover .section-image {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 11, 61, 0.2);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
        flex-direction: column;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }
}