/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e8f;
    --secondary-color: #4a90e2;
    --accent-color: #00d4ff;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 143, 0.8), rgba(74, 144, 226, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 40px 20px;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 25px;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-collaboration {
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.collaboration-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.collaboration-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
    background: var(--white);
}

/* Chi Siamo Section */
.chi-siamo {
    padding: 100px 0;
    background: var(--white);
}

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-logo {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.chi-siamo-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.chi-siamo-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.workspace-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.workspace-image:hover {
    transform: scale(1.02);
}

/* Servizi Section */
.servizi {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.servizio-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.servizio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.servizio-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.servizio-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.servizio-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.specializzazioni-title {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.specializzazioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.specializzazione-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.specializzazione-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.specializzazione-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.specializzazione-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specializzazione-card:hover .specializzazione-image img {
    transform: scale(1.1);
}

.specializzazione-content {
    padding: 25px;
}

.specializzazione-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.specializzazione-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Progetti Section */
.progetti {
    padding: 100px 0;
    background: var(--white);
}

.progetti-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.progetti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.progetto-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.progetto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.progetto-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.progetto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.progetto-card:hover .progetto-image img {
    transform: scale(1.1);
}

.progetto-content {
    padding: 30px;
}

.progetto-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.progetto-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contatti Section */
.contatti {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.contatti-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.contatti-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.contatti-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 143, 0.85), rgba(74, 144, 226, 0.75));
}

.contatti .section-title {
    color: var(--white);
}

.contatti-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 60px;
    opacity: 0.95;
}

.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contatti-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contatto-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contatto-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contatto-icon {
    font-size: 2rem;
}

.contatto-details h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contatto-details p,
.contatto-details a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contatto-details a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contatti-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 143, 0.3);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.footer-logo img {
    width: 250px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .chi-siamo-content {
        grid-template-columns: 1fr;
    }

    .contatti-content {
        grid-template-columns: 1fr;
    }

    .progetti-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .servizi-grid,
    .specializzazioni-grid {
        grid-template-columns: 1fr;
    }
}

