/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #8a2be2;
    --text-color: #ffffff;
    --light-bg: #1a1a1a;
    --dark-bg: #000000;
    --card-bg: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, #000000, #1a1a1a);
    --gradient-accent: linear-gradient(135deg, #8a2be2, #4b0082);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    padding-top: 80px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navigazione */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(138, 43, 226, 0.1) 0%,
        rgba(138, 43, 226, 0.05) 50%,
        rgba(138, 43, 226, 0.1) 100%);
    pointer-events: none;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(138, 43, 226, 0.4);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 0.9rem !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em;
    text-align: left;
    text-decoration: none;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-content: unset;
    align-items: unset;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    background: none;
    text-shadow: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-links a::before {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent-color) 50%,
        transparent 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin-top: 0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    position: relative;
    z-index: 1;
}

.hero h1, .hero p {
    animation: none;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary-color);
}

.hero h1 em {
    font-style: normal;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    animation: underline 1.5s ease forwards;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

.hero p {
    color: #fff !important;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    opacity: 1 !important;
    display: block !important;
    position: static !important;
    z-index: 1;
}

/* Bottoni */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-accent);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: none;
    filter: none;
    animation: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Sezioni */
section {
    padding: 6rem 0;
    position: relative;
    opacity: 1;
    transform: none;
    transition: none;
}
section.visible {
    opacity: 1;
    transform: none;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    object-fit: contain;
}

/* Products Section */
.products-section {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: transparent;
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 8px 32px 0 rgba(138, 43, 226, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.18);
    border: 1.5px solid rgba(138, 43, 226, 0.10);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    box-shadow: 0 16px 48px 0 #8a2be2cc, 0 4px 24px 0 #00fff799;
    transform: translateY(-10px) scale(1.03);
}

.product-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.2);
}

.product-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.product-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.product-pricing {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-weight: 600;
    color: var(--accent-color);
}

/* Statistiche */
.stats {
    background: var(--gradient-primary);
    color: var(--primary-color);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Tecnologie */
.tech-subtitle {
    text-align: center;
    color: #b9b9b9;
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}

.tech-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-carousel {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    padding-top: 24px;
    padding-bottom: 24px;
}

.tech-carousel::-webkit-scrollbar { display: none; }

.tech-stack {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-bottom: 0;
    padding-left: 32px;
    padding-right: 32px;
}

.tech-category {
    min-width: 340px;
    max-width: 380px;
    flex: 0 0 340px;
    margin: 0;
    background: var(--card-bg);
    padding: 3rem 2.2rem 2.2rem 2.2rem;
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(138, 43, 226, 0.13), 0 2px 12px rgba(0,0,0,0.18);
    border: 2px solid rgba(138, 43, 226, 0.18);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s, transform 0.3s;
    gap: 1.2rem;
}
.tech-category:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28), 0 1.5px 8px 0 rgba(138,43,226,0.10);
    border: 2.5px solid var(--accent-color);
    transform: translateY(-8px) scale(1.03);
    background: var(--card-bg);
}
.tech-category h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
}
.tech-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 1.15rem;
    color: var(--primary-color);
    background: none;
    border-radius: 0;
    padding: 0;
    transition: color 0.2s;
    font-weight: 500;
}
.tech-item i {
    font-size: 2.1rem;
    color: var(--accent-color);
    margin-bottom: 0;
    transition: color 0.2s, transform 0.2s;
    min-width: 2.1rem;
    text-align: center;
}
.tech-item:hover i {
    color: #fff;
    transform: scale(1.18);
}
.tech-item span {
    color: var(--primary-color);
    font-size: 1.15rem;
    text-align: left;
    font-weight: 500;
}
@media (max-width: 1200px) {
    .tech-category { min-width: 260px; max-width: 300px; padding: 2rem 1.2rem; }
    .tech-item i { font-size: 1.5rem; min-width: 1.5rem; }
    .tech-item, .tech-item span { font-size: 1rem; }
    .tech-stack { gap: 1.2rem; }
}
@media (max-width: 900px) {
    .tech-category { min-width: 180px; max-width: 220px; padding: 1.2rem; }
    .tech-item i { font-size: 1.2rem; min-width: 1.2rem; }
    .tech-stack { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 900px) {
    .tech-carousel { justify-content: flex-start; }
    .tech-stack { justify-content: flex-start; }
}
@media (max-width: 700px) {
    .tech-category { min-width: 90vw; max-width: 95vw; }
    .tech-stack { padding-left: 8px; padding-right: 8px; }
}

.tech-arrow {
    background: rgba(20,20,30,0.85);
    border: none;
    color: var(--accent-color) !important;
    font-size: 2rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, color 0.2s;
}
.tech-arrow i {
    color: var(--accent-color) !important;
    transition: color 0.2s;
}
.tech-arrow:hover, .tech-arrow:focus {
    background: var(--accent-color);
}
.tech-arrow:hover i, .tech-arrow:focus i {
    color: #fff !important;
}

.tech-arrow-right {
    right: -60px;
}
.tech-arrow-left {
    left: -60px;
}
@media (max-width: 900px) {
    .tech-arrow-right { right: -32px; }
    .tech-arrow-left { left: -32px; }
}
@media (max-width: 600px) {
    .tech-arrow-right { right: -18px; }
    .tech-arrow-left { left: -18px; }
}

/* Contact Section */
.contact {
    background: var(--light-bg);
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: var(--dark-bg);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    display: block;
    margin: 0 auto;
    width: fit-content;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 4rem 0 1rem;
    border-top: 2px solid #221133;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: none;
    border: none;
    background: none;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #8a2be2;
}

.footer-section p, .footer-section a, .footer-section li {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-section .footer-claim {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.2rem;
    color: #fff;
}

.footer-section .footer-claim span {
    color: #8a2be2;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
    color: #8a2be2;
    transform: translateY(-3px) scale(1.08);
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #bbb;
    font-size: 0.95rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .footer-bottom {
        text-align: center;
        font-size: 0.9rem;
    }
}

/* Menu Mobile */
.menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.menu-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(138, 43, 226, 0.3) 0%,
        rgba(138, 43, 226, 0.1) 70%,
        transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.menu-button:hover::before {
    width: 40px;
    height: 40px;
}

.menu-button.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(138, 43, 226, 0.2);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-button {
        display: block;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .tech-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Awards Section */
.awards {
    background: var(--gradient-primary);
    padding: 6rem 0 4rem 0;
}

.awards-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1400px;
}

.award-card {
    background: var(--card-bg);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(138, 43, 226, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.18);
    border: 1.5px solid rgba(138, 43, 226, 0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 320px;
    max-width: 340px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.award-card:hover {
    box-shadow: 0 16px 48px 0 #8a2be2cc, 0 4px 24px 0 #00fff799;
    transform: translateY(-10px) scale(1.03);
}

.award-rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.award-category {
    font-size: 1rem;
    color: #b9b9b9;
    margin-bottom: 1.2rem;
}

.award-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.award-logo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: #fff;
    padding: 4px;
}

.award-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 0;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .awards-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .award-card {
        min-width: 90vw;
        max-width: 95vw;
        padding: 2rem 1.2rem;
    }
    .award-logo {
        width: 60px;
        height: 60px;
    }
    .award-title {
        font-size: 1.2rem;
    }
}

/* Sfondo animato per tecnologie */
.tech-bg-animated {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 20% 40%, #8a2be2cc 0%, transparent 60%),
                radial-gradient(ellipse at 80% 60%, #00fff799 0%, transparent 70%),
                linear-gradient(120deg, #1a1a1a 60%, #2c003e 100%);
    animation: bgMove 12s ease-in-out infinite alternate;
    opacity: 0.7;
}
@keyframes bgMove {
    0% { background-position: 0% 50%, 100% 50%, 0 0; }
    100% { background-position: 100% 50%, 0% 50%, 100% 100%; }
}
.technologies {
    position: relative;
    overflow: visible;
    z-index: 1;
}
.tech-carousel-wrapper.innovative {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.tech-carousel.parallax {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 32px;
    position: relative;
    z-index: 2;
}
.tech-stack.parallax-stack {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}
.tech-category.glass {
    position: relative;
    min-width: 340px;
    max-width: 380px;
    flex: 0 0 340px;
    margin-left: -60px;
    margin-right: 0;
    background: rgba(30, 30, 40, 0.55);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 #8a2be2cc, 0 1.5px 8px 0 #00fff799;
    border: 2.5px solid rgba(138, 43, 226, 0.18);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.4s, transform 0.4s, z-index 0.2s;
    z-index: 2;
    overflow: visible;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 8px 32px 0 rgba(138, 43, 226, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.18);
}
.tech-category.glass .tech-overlay {
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    z-index: 1;
    border-radius: 40px;
    background: linear-gradient(120deg, rgba(138,43,226,0.08) 0%, rgba(0,255,247,0.07) 100%);
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.7;
    transition: opacity 0.3s;
}
.tech-category.glass:hover, .tech-category.glass:focus {
    z-index: 10;
    transform: scale(1.07) translateY(-18px) rotateZ(-1deg);
    box-shadow: 0 24px 64px 0 #8a2be2cc, 0 8px 32px 0 #00fff799;
}
.tech-category.glass:hover .tech-overlay {
    opacity: 1;
}
.tech-category.glass h3 {
    color: var(--accent-color);
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 800;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
}
.tech-category.glass .tech-items {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    position: relative;
    z-index: 2;
}
.tech-category.glass .tech-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 1.15rem;
    color: var(--primary-color);
    background: none;
    border-radius: 0;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
    font-weight: 500;
    position: relative;
    z-index: 2;
}
.tech-category.glass .tech-item i {
    font-size: 2.1rem;
    color: var(--accent-color);
    margin-bottom: 0;
    transition: color 0.2s, transform 0.2s;
    min-width: 2.1rem;
    text-align: center;
    filter: drop-shadow(0 0 6px #8a2be2cc);
}
.tech-category.glass .tech-item:hover i {
    color: #fff;
    transform: scale(1.18) rotate(-8deg);
    filter: drop-shadow(0 0 12px #00fff7cc);
}
.tech-category.glass .tech-item span {
    color: var(--primary-color);
    font-size: 1.15rem;
    text-align: left;
    font-weight: 500;
}
.tech-category.glass::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border-radius: 28px;
    background: linear-gradient(120deg, rgba(138,43,226,0.13) 0%, rgba(0,255,247,0.09) 100%);
    z-index: 0;
    pointer-events: none;
    filter: blur(4px);
    opacity: 0.5;
}
.tech-category.glass:hover::before {
    opacity: 0.8;
}
@media (max-width: 1200px) {
    .tech-category.glass { min-width: 260px; max-width: 300px; }
}
@media (max-width: 900px) {
    .tech-category.glass { min-width: 180px; max-width: 220px; margin-left: -30px; }
}
@media (max-width: 700px) {
    .tech-category.glass { min-width: 90vw; max-width: 95vw; margin-left: 0; }
    .tech-stack.parallax-stack { gap: 0; }
}

/* --- MODERN TECHNOLOGIES PAGE STYLE --- */
body.technologies-page {
    background: linear-gradient(120deg, #0a0a0a 60%, #1a0033 100%);
    color: #fff;
    /* font-family: 'Inter', 'Segoe UI', 'Orbitron', Arial, sans-serif; */
}
.tech-hero {
    text-align: center;
    padding: 8rem 0 3.5rem 0;
    background: linear-gradient(120deg, #1a0033 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}
.tech-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 0 16px #8a2be2, 0 2px 8px #000;
    position: relative;
    z-index: 2;
}
.tech-hero h1 em {
    color: #00fff7;
    font-style: italic;
    font-weight: 900;
    text-shadow: 0 0 16px #00fff7, 0 2px 8px #000;
}
.tech-hero::before {
    content: '';
    position: absolute;
    top: -30%; left: -20%; width: 140%; height: 120%;
    background: radial-gradient(circle at 60% 40%, #8a2be2 0%, transparent 70%),
                radial-gradient(circle at 30% 70%, #00fff7 0%, transparent 80%);
    opacity: 0.25;
    z-index: 1;
    animation: heroBgMove 12s ease-in-out infinite alternate;
}
@keyframes heroBgMove {
    0% { background-position: 60% 40%, 30% 70%; }
    100% { background-position: 40% 60%, 70% 30%; }
}
.tech-hero-sub {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.tech-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-bottom: 4rem;
}
.tech-block {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    background: rgba(30,30,40,0.45);
    border-radius: 2.5rem;
    box-shadow: 0 4px 32px 0 #8a2be2cc, 0 1.5px 8px 0 #00fff799;
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
    margin: 0;
    overflow: hidden;
    animation: fadeInUp 1s cubic-bezier(.23,1.01,.32,1) both;
    margin-bottom: 2.5rem;
}
.tech-block:hover {
    box-shadow: 0 12px 48px 0 #8a2be2cc, 0 8px 32px 0 #00fff799;
    transform: translateY(-8px) scale(1.02);
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.tech-block .tech-tag {
    display: inline-block;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(90deg, #8a2be2 0%, #00fff7 100%);
    border-radius: 1.2rem;
    padding: 0.3rem 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px #8a2be2cc;
}
.tech-block h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.7rem;
    color: #fff;
    letter-spacing: -0.5px;
    text-align: left;
    text-shadow: 0 0 8px #8a2be2cc;
    margin-right: 2rem;
}
.tech-block p {
    font-size: 1.18rem;
    color: #e0e0e0;
    margin: 0.5rem 0 0 2.5rem;
    max-width: 600px;
    text-align: left;
}
.tech-block .tech-block-left {
    flex: 1 1 220px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tech-block .tech-block-right {
    flex: 3 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Sezione AI cards glass */
.tech-ai {
    background: none;
    margin: 5rem 0 0 0;
    padding: 0 0 2rem 0;
    text-align: center;
}
.tech-ai h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 0 0 8px #8a2be2cc;
}
.ai-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}
.ai-example {
    min-width: 220px;
    max-width: 320px;
    text-align: center;
    background: rgba(30,30,40,0.55);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 #8a2be244, 0 1.5px 8px 0 #00fff799;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
.ai-example:hover {
    box-shadow: 0 12px 48px 0 #00fff799, 0 8px 32px 0 #8a2be2cc;
    transform: translateY(-8px) scale(1.04);
}
.ai-example h3 {
    font-size: 1.25rem;
    color: #00fff7;
    font-weight: 700;
    margin-bottom: 0.7rem;
    text-shadow: 0 0 8px #00fff7cc;
}
.ai-example p {
    color: #e0e0e0;
    font-size: 1.05rem;
}

/* Principi con icone e step moderni */
.tech-principles {
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.tech-principles h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-principles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-principle-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.tech-principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-principle-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    transition: all 0.3s ease;
}

.tech-principle-card:hover .tech-principle-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.tech-principle-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.tech-principle-card:hover .tech-principle-icon svg {
    transform: scale(1.1);
    stroke-width: 2.5;
}

.tech-principle-content {
    flex: 1;
}

.tech-principle-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
    transition: all 0.3s ease;
}

.tech-principle-card:hover .tech-principle-title {
    color: #a855f7;
}

.tech-principle-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    transition: all 0.3s ease;
}

.tech-principle-card:hover .tech-principle-desc {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .tech-principles-list {
        grid-template-columns: 1fr;
    }
    
    .tech-principles h2 {
        font-size: 2rem;
    }
    
    .tech-principle-card {
        padding: 1.25rem;
    }
}

.tech-hero-powered {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    color: #fff;
    margin-top: -0.5rem;
    margin-bottom: 2.2rem;
    text-shadow: 0 0 16px #8a2be2, 0 2px 8px #000;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: 'Inter', 'Segoe UI', 'Orbitron', Arial, sans-serif;
}
@media (max-width: 700px) {
    .tech-hero-powered { font-size: 2.1rem; }
}

.highlight {
    background: linear-gradient(90deg, #6E56CF 0%, #FF6B81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.tech-hero-innovative {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #1a0033 0%, #0a0a0a 100%);
    position: relative;
    padding: 4rem 0 2rem 0;
}
.hero-glass-box {
    background: rgba(20, 20, 30, 0.55);
    border-radius: 2.5rem;
    box-shadow: 0 0 64px 0 #8a2be2cc, 0 1.5px 8px 0 #00fff799;
    border: 2.5px solid rgba(138, 43, 226, 0.18);
    padding: 3.5rem 3rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 350px;
    max-width: 700px;
    width: 100%;
    animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
    overflow: hidden;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-image: linear-gradient(90deg, #8a2be2 0%, #00fff7 100%) 1;
}
.hero-glass-box::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 2.7rem;
    background: linear-gradient(120deg, #8a2be2 0%, #00fff7 100%);
    opacity: 0.18;
    z-index: 0;
    filter: blur(12px);
    pointer-events: none;
    animation: borderGlow 4s ease-in-out infinite alternate;
}
@keyframes borderGlow {
    0% { opacity: 0.18; }
    100% { opacity: 0.32; }
}
.hero-gif {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 32px #00fff7cc, 0 2px 8px #8a2be2cc;
    animation: fadeInDown 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hero-title {
    font-size: 2.7rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin: 0 0 0.5rem 0;
    letter-spacing: -1px;
    text-shadow: 0 0 16px #8a2be2, 0 2px 8px #000;
    line-height: 1.1;
    animation: fadeInUp 1.3s cubic-bezier(.23,1.01,.32,1) both;
}
.hero-title.highlight {
    background: linear-gradient(90deg, #00fff7 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 16px #00fff7, 0 2px 8px #000;
    margin-bottom: 1.2rem;
}
.tech-hero-sub {
    font-size: 1.15rem;
    color: #e0e0e0;
    margin-bottom: 0;
    text-align: center;
    animation: fadeInUp 1.5s cubic-bezier(.23,1.01,.32,1) both;
}
@media (max-width: 700px) {
    .hero-glass-box { padding: 2rem 0.7rem; min-width: 0; max-width: 98vw; }
    .hero-title, .hero-title.highlight { font-size: 1.5rem; }
    .hero-gif { width: 70px; height: 70px; }
}

.tech-hero-bs {
    background: #000;
    padding: 9rem 0 9rem 0;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

#particles-js-tech {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-hero-content {
    position: relative;
    z-index: 2;
}

.bs-hero-title, .bs-hero-highlight, .bs-hero-sub {
    animation: fadeInUp 1.3s cubic-bezier(.23,1.01,.32,1) both;
}
.bs-hero-title {
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
    z-index: 3;
    position: relative;
}
.bs-hero-highlight {
    background: linear-gradient(90deg, #00fff7 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 900;
    display: inline-block;
    filter: none;
    text-shadow: none;
}
.bs-hero-sub {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 0;
    animation: fadeInUp 1.3s cubic-bezier(.23,1.01,.32,1) both;
}

.bs-tech-list {
    max-width: 1200px;
    margin: 4rem auto 6rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}
.bs-tech-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    background: rgba(10,10,15,0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.bs-tech-block:hover {
    transform: translateY(-10px);
    background: rgba(20,20,25,0.85);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 
                0 0 60px rgba(138,43,226,0.3),
                0 0 0 1px rgba(255,255,255,0.1);
}
.bs-tech-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 1.5s ease;
    pointer-events: none;
    z-index: 1;
}
.bs-tech-block:hover::before {
    opacity: 1;
    transform: translateX(100%);
}
.bs-tech-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 65%;
    position: relative;
    z-index: 2;
}
.bs-tech-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #8a2be2, #bf5af2);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(138,43,226,0.4);
    transform-origin: left;
    transition: all 0.3s ease;
}
.bs-tech-block:hover .bs-tech-tag {
    box-shadow: 0 6px 15px rgba(138,43,226,0.6);
    transform: scale(1.05);
}
.bs-tech-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(138,43,226,0.5);
    transition: all 0.3s ease;
}
.bs-tech-block:hover .bs-tech-info h2 {
    transform: translateX(5px);
    text-shadow: 0 0 25px rgba(138,43,226,0.7);
}
.bs-tech-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin: 0;
    transition: all 0.3s ease;
}
.bs-tech-block:hover .bs-tech-info p {
    color: rgba(255,255,255,0.95);
}
.bs-tech-gif {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}
.bs-tech-block:hover .bs-tech-gif {
    transform: translateX(-10px) scale(1.1);
}
.bs-tech-gif img, .bs-tech-gif lottie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 0 15px rgba(138,43,226,0.5));
    transition: all 0.3s ease;
}
.bs-tech-block:hover .bs-tech-gif img, 
.bs-tech-block:hover .bs-tech-gif lottie-player {
    filter: drop-shadow(0 0 20px rgba(138,43,226,0.8));
}
@media (max-width: 900px) {
    .bs-tech-block { flex-direction: column; align-items: center; gap: 1.5rem; min-height: 0; }
    .bs-tech-gif { height: 80px; }
    .bs-tech-gif img, .bs-tech-gif lottie-player { width: 70px; height: 70px; }
    .bs-tech-info h2 { font-size: 1.3rem; }
    .section-title {
        font-size: 2rem;
    }
    .section-separator {
        margin: 3rem auto 2rem auto;
    }
    .separator-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin: 0 1rem;
    }
    .bs-hero-title {
        font-size: 2.5rem;
    }
    .section-intro {
        margin-bottom: 2.5rem;
    }
}
@media (max-width: 700px) {
    .bs-tech-info h2 { font-size: 1.1rem; }
    .bs-tech-list { gap: 1.5rem; }
}

.tech-hero-bs::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    background: none; /* Rimuovo il gradiente radiale */
    opacity: 0;
    animation: none; /* Rimuovo l'animazione */
}
@keyframes heroOverlayMove {
    0% { background-position: 30% 60%, 70% 40%; }
    100% { background-position: 60% 30%, 40% 70%; }
}

.ai-integration-section {
    max-width: 1300px;
    margin: 6rem auto 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.ai-main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 0 12px #8a2be2cc;
}
.ai-mission {
    text-align: center;
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 3.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.ai-apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}
.ai-app-block {
    background: rgba(20, 20, 30, 0.65);
    border-radius: 1.7rem;
    box-shadow: 0 0 32px 0 #8a2be2cc;
    padding: 2.2rem 2rem 2rem 2rem;
    min-width: 260px;
    max-width: 350px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: box-shadow 0.3s, transform 0.3s;
    margin: 0;
    animation: fadeInUp 1.1s cubic-bezier(.23,1.01,.32,1) both;
}
.ai-app-block:hover {
    box-shadow: 0 0 48px 0 #00fff7cc, 0 2px 16px #8a2be2cc;
    transform: translateY(-6px) scale(1.03);
}
.ai-app-block h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #00fff7;
    margin-bottom: 1.1rem;
    text-shadow: 0 0 8px #00fff7cc;
}
.ai-app-content {
    display: none;
    padding: 1.5rem;
    background: rgba(25, 25, 35, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ai-app-content.active {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.4s ease-in-out;
    min-height: 400px;
}

.ai-app-details {
    padding: 2.5rem;
    width: 60%;
}

.ai-app-details h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, rgba(138, 43, 226, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ai-app-description {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.ai-use-cases, .ai-tech-used {
    flex: 1;
    min-width: 250px;
}

.ai-app-description h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    display: inline-block;
}

.ai-app-description h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.8), transparent);
}

.ai-app-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-app-description li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.ai-app-description li:hover {
    transform: translateX(5px);
    color: white;
}

.ai-app-description li i {
    color: rgba(138, 43, 226, 0.9);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.ai-app-visual {
    width: 40%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
}

.ai-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(25, 25, 35, 0.05));
    z-index: 0;
}

.ai-visual-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s infinite alternate;
}

.ai-app-img {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 280px;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.5));
    animation: float 6s ease-in-out infinite;
}

.ai-app-background {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, rgba(138, 43, 226, 0.2) 50%, transparent 80%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(20px);
    animation: float 6s ease-in-out infinite 0.5s; /* Stesso fluttuare dell'immagine ma con ritardo di 0.5s */
    transform-origin: center center;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.ai-conclusion {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(25, 25, 35, 0), rgba(138, 43, 226, 0.05));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.ai-conclusion::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 4s infinite alternate;
}

.ai-conclusion h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.ai-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.ai-benefit {
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease;
}

.ai-benefit:hover {
    transform: translateY(-10px);
}

.ai-benefit i {
    font-size: 2rem;
    color: rgba(138, 43, 226, 0.9);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(25, 25, 35, 0.6);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.ai-benefit h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: white;
}

.ai-benefit p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Media queries per responsività */
@media (max-width: 1000px) {
    .ai-app-content.active {
        flex-direction: column;
        min-height: auto;
    }
    
    .ai-app-details, .ai-app-visual {
        width: 100%;
    }
    
    .ai-app-visual {
        margin-top: 1rem;
        min-height: 200px;
    }
    
    .ai-app-img {
        max-height: 160px;
    }
}

@media (max-width: 768px) {
    .ai-intro-container {
        flex-direction: column;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .ai-mission {
        margin-left: 0;
        font-size: 1.1rem;
    }
    
    .ai-tab-header {
        flex-wrap: wrap;
    }
    
    .ai-tab-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .ai-app-details {
        padding: 1rem;
    }
    
    .ai-app-details h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .ai-benefits {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* JavaScript per i tabs dell'AI */
/* Rimosso il codice JavaScript qui per risolvere errori linter */

/* Sezione Join our team */
/* ... existing code ... */

.ai-tab-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ai-tab-btn {
    background: rgba(25, 25, 35, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.ai-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: all 0.5s ease;
}

.ai-tab-btn:hover::before {
    left: 100%;
}

.ai-tab-btn:hover, .ai-tab-btn:focus {
    background: rgba(35, 35, 45, 0.9);
    color: white;
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    transform: translateY(-2px);
}

.ai-tab-btn.active {
    background: rgba(138, 43, 226, 0.2);
    color: white;
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* Sezione Prima/Dopo - Migliorata */
.before-after-section {
    padding: 120px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.before-after-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.before-after-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e1e1e;
    letter-spacing: -0.03em;
}

.before-after-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
    color: #555;
    line-height: 1.6;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.after-image {
    width: 50%;
    right: 0;
    left: auto;
    border-left: 2px solid #fff;
}

.slider-handle {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 40px;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-handle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.slider-handle::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #fff;
    z-index: -1;
}

.slider-handle:hover::after {
    transform: scale(1.1);
}

.before-label, .after-label {
    position: absolute;
    top: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 5;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 120px 0;
    background-color: #fff;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.blog-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e1e1e;
    letter-spacing: -0.03em;
}

.blog-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
    color: #555;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 220px;
    min-height: 120px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: #f3f3f3;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e1e1e;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.85rem;
}

.blog-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.blog-date {
    color: #777;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 142, 251, 0.6);
}

/* ===== JOIN OUR TEAM SECTION ===== */
.join-our-team {
    padding: 100px 0;
    background-color: #131313;
    color: #fff;
    overflow: hidden;
}

.join-team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.join-team-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 60px;
}

.join-team-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(191, 149, 63, 0.3);
}

.join-team-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.85;
}

.join-team-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 32px;
    background-color: #fff;
    color: #1e1e1e;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.join-team-button::after {
    content: '';
    display: block;
    width: 70%;
    height: 2px;
    margin: 20px auto 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(138, 43, 226, 0.8), rgba(255,255,255,0));
    position: relative;
}

.join-team-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.join-team-image {
    width: 50%;
    overflow: hidden;
    border-radius: 12px;
}

.join-team-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.join-team-image:hover img {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 1024px) {
    .comparison-slider {
        height: 400px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .before-after-section,
    .blog-section,
    .join-our-team {
        padding: 80px 0;
    }
    
    .before-after-title,
    .blog-title,
    .join-team-title {
        font-size: 2.5rem;
    }
    
    .comparison-slider {
        height: 350px;
    }
    
    .join-team-container {
        flex-direction: column;
    }
    
    .join-team-content,
    .join-team-image {
        width: 100%;
        padding-right: 0;
    }
    
    .join-team-content {
        margin-bottom: 40px;
    }
    .blog-image {
        aspect-ratio: 16/10;
        max-height: 140px;
        min-height: 80px;
    }
}

@media (max-width: 576px) {
    .comparison-slider {
        height: 250px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .before-after-description,
    .blog-description,
    .join-team-description {
        font-size: 1rem;
    }
    
    .slider-handle::after {
        width: 30px;
        height: 30px;
    }
    
    .before-label, .after-label {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* Separatore per il pulsante "Esplora le carriere" */
.join-team-button {
    position: relative;
}

.join-team-button::after {
    content: '';
    display: block;
    width: 70%;
    height: 2px;
    margin: 20px auto 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(138, 43, 226, 0.8), rgba(255,255,255,0));
}

/* Aggiungo stili per il bottone delle card prodotto e il badge Work in progress */
.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, #8a2be2 0%, #00fff7 100%);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.product-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
    background: linear-gradient(90deg, #9d3cf3 0%, #00e6d8 100%);
}

.product-button i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.product-button:hover i {
    transform: translateX(4px);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(45deg, #ff5252, #ff1744);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 23, 68, 0.3);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 23, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0);
    }
}

.mt-20 {
    margin-top: 20px;
}

/* Bottone centrato nella sezione AI */
.ai-app-description .product-button {
    display: block;
    margin: 20px auto 0;
    width: fit-content;
}

/* Aggiunti stili per i tab AI nella pagina technologies */
.ai-app-content {
    position: relative;
}

/* Uniformare i font del menu di navigazione */
.technologies-page .nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: none;
    text-shadow: none;
    transition: color 0.3s;
}

.technologies-page .nav-links a:hover {
    color: var(--primary-color);
    text-shadow: none;
}

.technologies-page .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent-color) 50%,
        transparent 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.technologies-page .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#particles-js-tech {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    filter: saturate(1.5) brightness(1.2) blur(0.5px);
    opacity: 0.95;
    transition: filter 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

/* Stili per i messaggi di successo ed errore */
.success-message, .error-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message i, .error-message i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.success-message p, .error-message p {
    margin: 5px 0;
}

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

/* Stili per la pagina Careers */
.culture {
    background: var(--gradient-primary);
    padding: 6rem 0;
    color: var(--primary-color);
}

.benefits {
    background: var(--dark-bg);
    padding: 6rem 0;
    color: var(--primary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.positions {
    background: var(--gradient-primary);
    padding: 6rem 0;
    color: var(--primary-color);
}

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

.position-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.position-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.position-location {
    color: var(--accent-color);
    font-weight: 600;
    margin: 1rem 0;
}

.position-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.position-requirements {
    list-style: none;
    margin: 1.5rem 0;
}

.position-requirements li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.position-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Stili per il form di candidatura */
.contact-form input[type="file"] {
    background: var(--dark-bg);
    color: var(--primary-color);
    padding: 1rem;
    border: 2px solid #333;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.contact-form input[type="file"]::-webkit-file-upload-button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 1rem;
}

.contact-form input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--gradient-accent);
}

/* Responsive design per Careers */
@media (max-width: 768px) {
    .benefits-grid,
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .position-card {
        padding: 2rem;
    }
    
    .contact-form input[type="file"] {
        padding: 0.8rem;
    }
}