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

body {
    font-family: "Inter", sans-serif;
    background: #f6f9fc;
    color: #1a2639;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    color: #21b0d2;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.center {
    text-align: center;
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(0, 50, 80, 0.05);
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.logo i {
    color: #bc4e9c;
    background: linear-gradient(145deg, #2b5f8a, #1e3b5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

.logo span {
    background: linear-gradient(145deg, #1f3e5c, #11212e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    cursor: pointer;
    color: #1f3e5c;
}

.nav-links a:hover {
    border-bottom-color: #bc4e9c;
    color: #0f2b3b;
}

.lang-switch {
    display: flex;
    gap: 0.3rem;
    margin-left: 1rem;
    background: #eef3f8;
    padding: 0.3rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 60, 120, 0.1);
}

.lang-option {
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.15s;
    color: #1f3e5c;
}

.lang-option.active {
    background: #1f3e5c;
    color: white;
}

/* SIMPLE LANGUAGE VISIBILITY - completely rewritten */
.lang-it,
.lang-en {
    display: none;
}

html[data-lang="it"] .lang-it {
    display: block !important;
}

html[data-lang="en"] .lang-en {
    display: block !important;
}

/* For block elements */
html[data-lang="it"] .lang-it.lang-block,
html[data-lang="en"] .lang-en.lang-block {
    display: block !important;
}

/* For flex elements */
html[data-lang="it"] .lang-it.lang-flex,
html[data-lang="en"] .lang-en.lang-flex {
    display: flex !important;
}

/* Add specific classes to elements that need different display types */
.project-desc.lang-it,
.project-desc.lang-en {
    display: none;
}

html[data-lang="it"] .project-desc.lang-it {
    display: block !important;
}

html[data-lang="en"] .project-desc.lang-en {
    display: block !important;
}

.btn-pdf span.lang-it,
.btn-pdf span.lang-en {
    display: none;
}

html[data-lang="it"] .btn-pdf span.lang-it {
    display: inline !important;
}

html[data-lang="en"] .btn-pdf span.lang-en {
    display: inline !important;
}

.features-mini span.lang-it,
.features-mini span.lang-en {
    display: none;
}

html[data-lang="it"] .features-mini span.lang-it {
    display: inline !important;
}

html[data-lang="en"] .features-mini span.lang-en {
    display: inline !important;
}

.partner-row span span.lang-it,
.partner-row span span.lang-en {
    display: none;
}

html[data-lang="it"] .partner-row span span.lang-it {
    display: inline !important;
}

html[data-lang="en"] .partner-row span span.lang-en {
    display: inline !important;
}

.nav-links a.lang-it,
.nav-links a.lang-en {
    display: none;
}

html[data-lang="it"] .nav-links a.lang-it {
    display: inline !important;
}

html[data-lang="en"] .nav-links a.lang-en {
    display: inline !important;
}

.contact-info h3.lang-it,
.contact-info h3.lang-en {
    display: none;
}

html[data-lang="it"] .contact-info h3.lang-it {
    display: block !important;
}

html[data-lang="en"] .contact-info h3.lang-en {
    display: block !important;
}

.contact-form h3.lang-it,
.contact-form h3.lang-en {
    display: none;
}

html[data-lang="it"] .contact-form h3.lang-it {
    display: block !important;
}

html[data-lang="en"] .contact-form h3.lang-en {
    display: block !important;
}

.about-text h2.lang-it,
.about-text h2.lang-en {
    display: none;
}

html[data-lang="it"] .about-text h2.lang-it {
    display: block !important;
}

html[data-lang="en"] .about-text h2.lang-en {
    display: block !important;
}

.about-text p.lang-it,
.about-text p.lang-en {
    display: none;
}

html[data-lang="it"] .about-text p.lang-it {
    display: block !important;
}

html[data-lang="en"] .about-text p.lang-en {
    display: block !important;
}

.footer span.lang-it,
.footer span.lang-en {
    display: none;
}

html[data-lang="it"] .footer span.lang-it {
    display: inline !important;
}

html[data-lang="en"] .footer span.lang-en {
    display: inline !important;
}

.hero h1.lang-it,
.hero h1.lang-en {
    display: none;
}

html[data-lang="it"] .hero h1.lang-it {
    display: block !important;
}

html[data-lang="en"] .hero h1.lang-en {
    display: block !important;
}

.hero .sub.lang-it,
.hero .sub.lang-en {
    display: none;
}

html[data-lang="it"] .hero .sub.lang-it {
    display: block !important;
}

html[data-lang="en"] .hero .sub.lang-en {
    display: block !important;
}

.project-tag span.lang-it,
.project-tag span.lang-en {
    display: none;
}

html[data-lang="it"] .project-tag span.lang-it {
    display: inline !important;
}

html[data-lang="en"] .project-tag span.lang-en {
    display: inline !important;
}

/* banner */
.banner-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 500px;
    background: #000;
}

.banner-container {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(31, 62, 92, 0.5);
    padding: 3rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 800px;
    z-index: 10;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

/* hero */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(145deg, #11212e, #3d2b5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero .sub {
    font-size: 1.3rem;
    color: #2f4b70;
    max-width: 700px;
    margin: 1rem auto 2rem;
    font-weight: 300;
}

/* partner badges */
.partner-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0 3rem;
    font-weight: 500;
    color: #2b4b6f;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.2rem 2rem;
    border-radius: 80px;
    backdrop-filter: blur(4px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 60, 120, 0.1);
}

.partner-row i {
    margin-right: 8px;
    color: #ac4e8c;
}

/* projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2rem 1.8rem;
    box-shadow: 0 20px 35px -8px rgba(0, 30, 50, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 45px -12px rgba(18, 52, 77, 0.2);
    border-color: #bc9ec0;
}

.card-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #2565ae, #3b2c5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
}

.project-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    color: #11212e;
}

.project-tag {
    font-size: 0.9rem;
    font-weight: 600;
    /* text-transform: uppercase; */
    color: #bc4e9c;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1.2rem;
    margin: 0.5rem 0 1rem;
    flex-wrap: wrap;
}

.stat-bubble {
    background: #e0eefa;
    border-radius: 40px;
    padding: 0.3rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #11212e;
}

.stat-bubble i {
    margin-right: 5px;
    color: #2565ae;
}

.project-desc {
    color: #1f3e5c;
    margin: 0.8rem 0 1.5rem;
    flex: 1;
}

.features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0 1.5rem;
}

.features-mini span {
    background: #e6f0fa;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1c3e5e;
}

.pdf-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-pdf {
    background: white;
    border: 1px solid #a0c2d9;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #1f3e5c;
    text-decoration: none;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-pdf i {
    color: #d44c66;
}

.btn-pdf:hover {
    background: #1f3e5c;
    border-color: #1f3e5c;
    color: white;
}

.btn-pdf:hover i {
    color: white;
}

.btn-download {
    background: #1f3e5c;
    border-color: #1f3e5c;
    color: white;
}

.btn-download i {
    color: white;
}

.btn-demo {
    background: #ffffff;
    border: 1.5px solid #bc4e9c;
    color: #bc4e9c;
}

.btn-demo i {
    color: #bc4e9c;
}

.btn-demo:hover {
    background: #bc4e9c;
    border-color: #bc4e9c;
    color: white;
}

.btn-demo:hover i {
    color: white;
}

#projects {
    padding: 3rem 0 0;
}

/* about section */
.about-section {
    /* background: linear-gradient(115deg, #ffffff 0%, #f2f9ff 100%);
    padding: 3rem 0; */
    /* margin: 4rem 0; */
    /* border-top: 1px solid rgba(80, 140, 200, 0.2);
    border-bottom: 1px solid rgba(80, 140, 200, 0.2); */

    background: #11212e;
    color: white;
    padding: 3rem 0 2rem;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 2;
    min-width: 280px;
}

.about-text h2 {
    font-size: 2.4rem;
    font-weight: 650;
    background: linear-gradient(145deg, #173e5c, #462b62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.5rem;
}

.ethics-badge {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.ethics-item {
    background: rgba(43, 95, 138, 0.08);
    border-radius: 60px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border: 1px solid rgba(90, 140, 200, 0.3);
}

/* contact section */
.contact-section {
    background: #11212e;
    color: white;
    padding: 3.5rem 0;
    /* margin: 4rem 0; */
}

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info i {
    width: 36px;
    color: #beb4e6;
}

.info-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
    font-size: 1.1rem;
}

.contact-form {
    flex: 2;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-group {
    flex: 1 1 200px;
}

input,
textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    font-family: inherit;
    color: white;
    font-size: 1rem;
    transition: 0.15s;
}

textarea {
    margin-top: 1.5rem;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #bc4e9c;
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: white;
    color: #11212e;
    border: none;
    border-radius: 60px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.banner-content .btn-primary {
    background: white;
    color: #11212e;
    border: none;
    border-radius: 60px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 2rem;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.footer {
    text-align: center;
    padding: 3rem 0;
    color: #2f4b70;
    border-top: 1px solid rgba(0, 40, 70, 0.1);
    /* margin-top: 3rem; */
    background: #f0f4f8;
}

.collab-section {
    padding: 3rem 0;
    background-color: #11212e;
    color: white;
    text-align: center;
}

.collab-title {
    font-weight: 600;
    margin-bottom: 1rem;

}

.collab-logos {
    display: flex;
    /* justify-content: center;
    align-items: center; */
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;

}

.collab-logos img {

    height: auto;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: all 0.3s;
    display: block;
    position: relative;
    z-index: 10;
}

.collab-logos img:hover {
    filter: grayscale(0);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a0b9ce, transparent);
    margin: 2rem 0;
}


/* Scroll Offset Fix */
section[id] {
    scroll-margin-top: 120px;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 2rem;
}

.next-arrow {
    right: 2rem;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .prev-arrow {
        left: 1rem;
    }

    .next-arrow {
        right: 1rem;
    }
}

/* Marketing Vision Section */
.marketing-vision {
    padding: 3rem 0;
    background: #11212e;
    position: relative;
}

.marketing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.marketing-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.marketing-header p {
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.6;
}

.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.marketing-item {
    text-align: center;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 40, 80, 0.05);
}

.marketing-item:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 30, 60, 0.1);
}

.marketing-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #bc4e9c, #1f3e5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.marketing-item h3 {
    font-size: 1.5rem;
    color: #11212e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.marketing-item p {
    color: #4a6a8a;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .marketing-header h2 {
        font-size: 2.2rem;
    }

    .marketing-vision {
        padding: 4rem 0;
    }
}

/* Form Status Messages */
.status-message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: none;
}

.status-message.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.status-success {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-error {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .logo img {
        height: 80px !important;
        /* Smaller logo on mobile */
    }

    .nav-links {
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-flex {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }
}