/* Stili per effetti 3D e SVG spettacolari */

/* Hero Section 3D Enhancements */
.slide-content {
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
}

.slide-image {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Floating Shapes in Stats Section */
.floating-shape {
    position: absolute;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 30%;
    transform: rotate(15deg);
    border-radius: 10px;
    animation: float 7s ease-in-out infinite 1s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 9s ease-in-out infinite 2s;
}

.shape-5 {
    width: 50px;
    height: 50px;
    top: 20%;
    right: 10%;
    border-radius: 15px;
    transform: rotate(-20deg);
    animation: float 5s ease-in-out infinite 0.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Servizi Card 3D Effect */
.servizio-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d;
    will-change: transform;
}

.servizio-card:hover {
    z-index: 10;
}

/* SVG Background Patterns */
.chi-siamo-section {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d8cb4' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.partners-section {
    position: relative;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Animated Scroll Down Indicator */
.scroll-down-3d {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0) translateZ(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px) translateZ(0);
    }
}

/* Animazione più fluida per mobile */
@media (max-width: 768px) {
    .scroll-down-3d {
        animation: smooth-bounce-mobile 2.5s ease-in-out infinite !important;
        will-change: transform !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
    }
    
    @keyframes smooth-bounce-mobile {
        0%, 100% {
            transform: translateX(-50%) translateY(0) translateZ(0);
        }
        50% {
            transform: translateX(-50%) translateY(6px) translateZ(0);
        }
    }
}


/* Advanced Glassmorphism & Gradients */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animated Background for CTA / Footer */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

/* 3D Button Hover */
.btn-3d {
    transition: all 0.1s;
    box-shadow: 0px 10px 0px 0px rgba(0,0,0,0.2), 
                0px 10px 20px rgba(0,0,0,0.4);
    transform: translateY(0);
}

.btn-3d:active {
    transform: translateY(10px);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.2), 
                0px 0px 2px rgba(0,0,0,0.4);
}

/* Text 3D Shadow */
.text-3d {
    text-shadow: 
        1px 1px 1px #919191,
        1px 2px 1px #919191,
        1px 3px 1px #919191,
        1px 4px 1px #919191,
        1px 5px 1px #919191,
        1px 6px 1px #919191,
        1px 10px 6px rgba(16,16,16,0.4),
        1px 15px 10px rgba(16,16,16,0.2),
        1px 20px 35px rgba(16,16,16,0.2),
        1px 25px 60px rgba(16,16,16,0.4);
}

/* SVG Wave Divider */
.custom-shape-divider-bottom-1678901234 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3;
    pointer-events: none;
}

.custom-shape-divider-bottom-1678901234 svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom-1678901234 .shape-fill {
    fill: #ffffff;
}

@media (max-width: 768px) {
    .custom-shape-divider-bottom-1678901234 svg {
        width: calc(150% + 1.3px);
        height: 40px;
    }
}

/* ===== CERTIFICAZIONI PAGE 3D EFFECTS ===== */

/* Certificazioni Card 3D Effect */
.certificazione-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    position: relative !important;
    overflow: visible !important;
}

.certificazione-card:hover {
    z-index: 10 !important;
    transform: translateY(-8px) !important;
}

/* Hero Section Certificazioni 3D */
.progetti-hero .text-container {
    transform-style: preserve-3d;
    will-change: transform;
}

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

/* Stats Container in Hero - Migliorato Contrasto */
.progetti-hero .stats-container {
    position: relative;
    z-index: 3;
}

.progetti-hero .stat-item {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(61, 140, 180, 0.2) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    color: var(--text-dark) !important;
}

.progetti-hero .stat-item i {
    color: var(--accent-blue) !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.3));
}

.progetti-hero .stat-number {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.progetti-hero .stat-label {
    color: var(--text-gray) !important;
    font-weight: 500 !important;
}

/* Benefit Cards 3D */
.benefit-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
}

.benefit-card:hover {
    z-index: 10 !important;
}

/* Certificazioni Main Section - SVG Pattern Background */
.certificazioni-main {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233d8cb4' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Certificazione Icon Glow Effect */
.certificazione-icon {
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(61, 140, 180, 0.3) !important;
}

.certificazione-card:hover .certificazione-icon {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 25px rgba(61, 140, 180, 0.5) !important;
}

/* Certificazione Image 3D Effect */
.certificazione-image {
    transition: transform 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.certificazione-card:hover .certificazione-image {
    transform: scale(1.05) translateZ(10px) !important;
}

/* Button Certificate 3D */
.btn-certificate {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.btn-certificate:hover {
    transform: translateY(-2px) translateZ(5px) !important;
    box-shadow: 0 8px 20px rgba(61, 140, 180, 0.3) !important;
}

.btn-certificate:active {
    transform: translateY(0) translateZ(0) !important;
}

/* Certificazioni Benefits Section */
.certificazioni-benefits {
    position: relative;
    padding: 60px 0;
    margin-top: 60px;
}

.certificazioni-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 140, 180, 0.3), transparent);
}

/* Responsive */
@media (max-width: 768px) {
    .certificazione-card {
        transform-style: flat !important;
    }
    
    .progetti-hero .stat-item {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* Floating Shapes per Certificazioni Main */
.certificazioni-main .floating-shape {
    opacity: 0.08;
    background: rgba(61, 140, 180, 0.1);
    border: 1px solid rgba(61, 140, 180, 0.15);
}

.cert-shape-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    border-radius: 15px;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite;
}

.cert-shape-2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
}

.cert-shape-3 {
    width: 50px;
    height: 50px;
    top: 50%;
    right: 5%;
    transform: rotate(45deg);
    border-radius: 10px;
    animation: float 6s ease-in-out infinite 1s;
}

.cert-shape-4 {
    width: 70px;
    height: 70px;
    bottom: 5%;
    left: 10%;
    border-radius: 25% 75% 75% 25% / 25% 25% 75% 75%;
    animation: float 8s ease-in-out infinite 2s;
}

/* Hero Certificazioni - Background Pattern */
.progetti-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d8cb4' fill-opacity='0.05'%3E%3Cpath d='M40 40v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40V0h-2v4h-4v2h4v4h2V6h4V4h-4zM0 40v-4H-2v4H-6v2h4v4h2v-4h4v-2H0zM0 0V-2H-2v4H-6v2h4v4h2V6h4V4H0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* Certificazione Features List - Hover Effect */
.certificazione-features li {
    transition: all 0.3s ease;
    transform: translateX(0);
}

.certificazione-card:hover .certificazione-features li {
    transform: translateX(5px);
}

.certificazione-card:hover .certificazione-features li:nth-child(1) {
    transition-delay: 0.05s;
}

.certificazione-card:hover .certificazione-features li:nth-child(2) {
    transition-delay: 0.1s;
}

.certificazione-card:hover .certificazione-features li:nth-child(3) {
    transition-delay: 0.15s;
}

.certificazione-card:hover .certificazione-features li:nth-child(4) {
    transition-delay: 0.2s;
}

.certificazione-card:hover .certificazione-features li:nth-child(5) {
    transition-delay: 0.25s;
}

/* Validità Badge - Glow Effect */
.validita {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(61, 140, 180, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.certificazione-card:hover .validita {
    background: rgba(61, 140, 180, 0.2);
    box-shadow: 0 0 15px rgba(61, 140, 180, 0.3);
    transform: scale(1.05);
}

/* Certificazioni Grid - Stagger Animation */
.certificazione-card[data-aos="fade-up"] {
    animation-fill-mode: both;
}

.certificazione-card[data-aos-delay="100"] {
    animation-delay: 0.1s;
}

.certificazione-card[data-aos-delay="200"] {
    animation-delay: 0.2s;
}

/* Benefits Grid - Enhanced 3D */
.benefits-grid {
    position: relative;
    z-index: 2;
}

.benefit-card i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.2));
}

.benefit-card:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(61, 140, 180, 0.4));
    color: var(--accent-blue);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .certificazioni-main .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
    
    .certificazione-card {
        transform-style: flat !important;
    }
    
    .progetti-hero::before {
        opacity: 0.1;
    }
}

/* ===== CHI SIAMO PAGE 3D EFFECTS ===== */

/* Chi Siamo Hero Section 3D */
.chi-siamo-hero {
    position: relative;
    overflow: hidden;
}

.chi-siamo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233d8cb4' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.chi-siamo-content {
    position: relative;
    z-index: 2;
}

.chi-siamo-text {
    transform-style: preserve-3d;
    will-change: transform;
}

.chi-siamo-image {
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
}

.chi-siamo-image img {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

/* Valore Card 3D Effect */
.valore-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    position: relative !important;
    background: white !important;
    border: 2px solid rgba(61, 140, 180, 0.1) !important;
}

.valore-card:hover {
    z-index: 10 !important;
    border-color: rgba(61, 140, 180, 0.3) !important;
    box-shadow: 0 15px 40px rgba(61, 140, 180, 0.15) !important;
}

.valore-card i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.2));
}

.valore-card:hover i {
    transform: scale(1.2) rotate(5deg) translateZ(10px) !important;
    filter: drop-shadow(0 4px 8px rgba(61, 140, 180, 0.4));
    color: var(--accent-blue) !important;
}

/* Stat Card 3D Effect - MIGLIORATO CONTRASTO */
.stat-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(61, 140, 180, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
}

.stat-card:hover {
    z-index: 10 !important;
    border-color: rgba(61, 140, 180, 0.4) !important;
    box-shadow: 0 20px 50px rgba(61, 140, 180, 0.2) !important;
}

.stat-value {
    color: var(--accent-blue) !important;
    text-shadow: 0 2px 4px rgba(61, 140, 180, 0.2) !important;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.number-animate {
    color: var(--accent-blue) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(61, 140, 180, 0.2) !important;
}

.stat-prefix,
.stat-suffix {
    color: var(--accent-blue) !important;
    font-weight: 700 !important;
}

.stat-label {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-top: 10px !important;
    text-shadow: none !important;
}

/* Timeline Section 3D */
.timeline-section {
    position: relative;
    overflow: hidden;
}

.timeline-item {
    transition: transform 0.1s ease-out !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
}

.timeline-content {
    transition: all 0.3s ease !important;
    background: white !important;
    border: 2px solid rgba(61, 140, 180, 0.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px) translateZ(10px) !important;
    border-color: rgba(61, 140, 180, 0.3) !important;
    box-shadow: 0 15px 40px rgba(61, 140, 180, 0.15) !important;
}

.timeline-content .year {
    background: var(--accent-blue) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 4px 12px rgba(61, 140, 180, 0.4) !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

/* Valori Section - SVG Pattern Background */
.valori-section {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d8cb4' fill-opacity='0.02'%3E%3Cpath d='M40 40v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40V0h-2v4h-4v2h4v4h2V6h4V4h-4zM0 40v-4H-2v4H-6v2h4v4h2v-4h4v-2H0zM0 0V-2H-2v4H-6v2h4v4h2V6h4V4H0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Team Section - Floating Elements */
.team-section {
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .valore-card,
    .stat-card,
    .timeline-item {
        transform-style: flat !important;
    }
    
    .stat-card {
        background: rgba(255, 255, 255, 1) !important;
    }
}

/* Team Stats Grid - Ottimizzato per 3 card */
.team-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 992px) {
    .team-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .team-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Floating Shapes per Valori Section */
.valori-section .floating-shape {
    opacity: 0.06;
    background: rgba(61, 140, 180, 0.08);
    border: 1px solid rgba(61, 140, 180, 0.12);
}

.valori-shape-1 {
    width: 70px;
    height: 70px;
    top: 15%;
    left: 8%;
    border-radius: 20px;
    transform: rotate(25deg);
    animation: float 8s ease-in-out infinite;
}

.valori-shape-2 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    right: 10%;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.valori-shape-3 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 5%;
    transform: rotate(40deg);
    border-radius: 12px;
    animation: float 7s ease-in-out infinite 1.5s;
}

/* Floating Shapes per Team Section */
.team-section .floating-shape {
    opacity: 0.05;
    background: rgba(61, 140, 180, 0.06);
    border: 1px solid rgba(61, 140, 180, 0.1);
}

.team-shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    border-radius: 18px;
    transform: rotate(30deg);
    animation: float 9s ease-in-out infinite;
}

.team-shape-2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 11s ease-in-out infinite reverse;
}

.team-shape-3 {
    width: 65px;
    height: 65px;
    top: 50%;
    right: 3%;
    transform: rotate(45deg);
    border-radius: 15px;
    animation: float 8s ease-in-out infinite 2s;
}

/* Timeline Section - Enhanced */
.timeline-section {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d8cb4' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.timeline-content h3 {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
    color: var(--accent-blue) !important;
}

.timeline-content p {
    color: var(--text-gray) !important;
    line-height: 1.6 !important;
}

/* Mobile Optimizations per Chi Siamo */
@media (max-width: 768px) {
    .valori-section .floating-shape,
    .team-section .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
    
    .chi-siamo-hero::before {
        opacity: 0.15;
    }
}

/* ===== PROGETTI IN CORSO & PROGETTI COMPLETATI PAGE 3D EFFECTS ===== */

/* Progetto Card 3D Effect */
.progetto-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    position: relative !important;
    background: white !important;
    border: 2px solid rgba(61, 140, 180, 0.1) !important;
    overflow: visible !important;
}

.progetto-card:hover {
    z-index: 10 !important;
    border-color: rgba(61, 140, 180, 0.3) !important;
    box-shadow: 0 20px 50px rgba(61, 140, 180, 0.2) !important;
}

/* Progetto Image 3D Effect */
.progetto-image {
    transform-style: preserve-3d !important;
    overflow: hidden !important;
    position: relative !important;
}

.progetto-image img {
    transition: transform 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.progetto-card:hover .progetto-image img {
    transform: scale(1.1) translateZ(10px) !important;
}

/* Tag Badge 3D */
.tag {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    box-shadow: 0 4px 12px rgba(61, 140, 180, 0.3) !important;
}

.progetto-card:hover .tag {
    transform: scale(1.1) translateZ(5px) !important;
    box-shadow: 0 6px 20px rgba(61, 140, 180, 0.5) !important;
}

/* Progetto Content 3D */
.progetto-content {
    transition: transform 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.progetto-card:hover .progetto-content {
    transform: translateZ(5px) !important;
}

/* Progetto Meta Icons */
.progetto-meta i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 1px 2px rgba(61, 140, 180, 0.2));
}

.progetto-card:hover .progetto-meta i {
    transform: scale(1.2) rotate(5deg) !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.4));
    color: var(--accent-blue) !important;
}

/* Button Scopri 3D */
.btn-scopri {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.btn-scopri:hover {
    transform: translateY(-2px) translateZ(5px) !important;
    box-shadow: 0 8px 20px rgba(61, 140, 180, 0.3) !important;
}

.btn-scopri:active {
    transform: translateY(0) translateZ(0) !important;
}

/* Progetti Section - SVG Pattern Background */
.progetti-section {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233d8cb4' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Section Intro Enhanced */
.section-intro {
    position: relative;
    z-index: 2;
}

.section-intro h2 {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-intro p {
    color: var(--text-gray) !important;
    line-height: 1.7 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .progetto-card {
        transform-style: flat !important;
    }
    
    .progetti-section {
        background-image: none; /* Rimuovi pattern su mobile per performance */
    }
}

/* Mini Progetto Card 3D Effects - Stessi effetti delle progetto-card */
.mini-progetto-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    position: relative !important;
    background: white !important;
    border: 2px solid rgba(61, 140, 180, 0.1) !important;
    overflow: visible !important;
}

.mini-progetto-card:hover {
    z-index: 10 !important;
    border-color: rgba(61, 140, 180, 0.3) !important;
    box-shadow: 0 20px 50px rgba(61, 140, 180, 0.2) !important;
}

.mini-progetto-image {
    transform-style: preserve-3d !important;
    overflow: hidden !important;
    position: relative !important;
}

.mini-progetto-image img {
    transition: transform 0.5s ease !important;
    transform-style: preserve-3d !important;
}

.mini-progetto-card:hover .mini-progetto-image img {
    transform: scale(1.1) translateZ(10px) !important;
}

.mini-progetto-tag {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    box-shadow: 0 4px 12px rgba(61, 140, 180, 0.3) !important;
}

.mini-progetto-card:hover .mini-progetto-tag {
    transform: scale(1.1) translateZ(5px) !important;
    box-shadow: 0 6px 20px rgba(61, 140, 180, 0.5) !important;
}

.mini-progetto-info {
    transform-style: preserve-3d !important;
    transition: transform 0.3s ease !important;
}

.mini-progetto-card:hover .mini-progetto-info {
    transform: translateZ(5px) !important;
}

.mini-progetto-meta i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 1px 2px rgba(61, 140, 180, 0.2));
}

.mini-progetto-card:hover .mini-progetto-meta i {
    transform: scale(1.2) rotate(5deg) !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.4));
    color: var(--accent-blue) !important;
}

.mini-progetto-fase {
    transition: all 0.3s ease !important;
}

.mini-progetto-card:hover .mini-progetto-fase {
    transform: translateX(5px) !important;
    color: var(--accent-blue) !important;
}

/* Responsive - Disabilita completamente 3D su mobile per evitare blocchi scroll */
/* Le card su mobile devono essere IDENTICHE alle progetto-card */
@media (max-width: 768px) {
    .mini-progetto-card {
        transform-style: flat !important;
        will-change: auto !important;
        overflow: hidden !important; /* Hidden per contenere immagine */
        touch-action: pan-y !important; /* Permetti scroll verticale */
        -webkit-overflow-scrolling: touch !important;
        /* Stessi stili delle progetto-card su mobile */
        flex-direction: column !important;
        background: white !important;
        border: 2px solid rgba(61, 140, 180, 0.1) !important; /* BORDO BLU */
        border-radius: 12px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    }
    
    .mini-progetto-card:hover {
        transform: none !important; /* Nessuna trasformazione su mobile */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
        border-color: rgba(61, 140, 180, 0.3) !important; /* Bordo blu più scuro */
    }
    
    /* Disabilita tutti gli effetti 3D su mobile - identico a progetto-card */
    .mini-progetto-card:hover .mini-progetto-image img {
        transform: scale(1.05) !important; /* Solo leggero zoom come progetto-card */
    }
    
    .mini-progetto-card:hover .mini-progetto-tag {
        transform: scale(1) !important; /* Nessuna trasformazione */
    }
    
    .mini-progetto-card:hover .mini-progetto-meta i {
        transform: scale(1) rotate(0deg) !important; /* Nessuna trasformazione */
    }
    
    .mini-progetto-card:hover .mini-progetto-info {
        transform: translateZ(0) !important; /* Nessuna trasformazione */
    }
    
    .mini-progetto-card:hover .mini-progetto-fase {
        transform: translateX(0) !important; /* Nessuna trasformazione */
    }
}

/* Cantieri Section - SVG Pattern Background (come progetti-section) */
.cantieri-section {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233d8cb4' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Floating Shapes per Cantieri Section */
.cantieri-section .floating-shape {
    opacity: 0.06;
    background: rgba(61, 140, 180, 0.08);
    border: 1px solid rgba(61, 140, 180, 0.12);
}

.cantieri-shape-1 {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 5%;
    border-radius: 18px;
    transform: rotate(30deg);
    animation: float 8s ease-in-out infinite;
}

.cantieri-shape-2 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.cantieri-shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 3%;
    transform: rotate(45deg);
    border-radius: 12px;
    animation: float 7s ease-in-out infinite 1.5s;
}

/* Mobile Optimizations per Cantieri */
@media (max-width: 768px) {
    .cantieri-section .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
    
    .cantieri-section {
        background-image: none; /* Rimuovi pattern su mobile per performance */
    }
}

/* Floating Shapes per Progetti Section */
.progetti-section .floating-shape {
    opacity: 0.06;
    background: rgba(61, 140, 180, 0.08);
    border: 1px solid rgba(61, 140, 180, 0.12);
}

.progetti-shape-1 {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 5%;
    border-radius: 18px;
    transform: rotate(30deg);
    animation: float 8s ease-in-out infinite;
}

.progetti-shape-2 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.progetti-shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 3%;
    transform: rotate(45deg);
    border-radius: 12px;
    animation: float 7s ease-in-out infinite 1.5s;
}

.progetti-shape-4 {
    width: 80px;
    height: 80px;
    bottom: 5%;
    left: 10%;
    border-radius: 25% 75% 75% 25% / 25% 25% 75% 75%;
    animation: float 9s ease-in-out infinite 2s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .progetti-section .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
}

/* Progetti Grid - Spacing Migliorato */
.progetti-grid {
    gap: 50px !important;
    padding: 0 40px !important;
}

@media (max-width: 992px) {
    .progetti-grid {
        gap: 40px !important;
        padding: 0 30px !important;
    }
}

@media (max-width: 768px) {
    .progetti-grid {
        gap: 35px !important;
        padding: 0 20px !important;
    }
}

@media (max-width: 576px) {
    .progetti-grid {
        gap: 30px !important;
        padding: 0 15px !important;
    }
}

/* Progetti Hero - Padding Top Migliorato */
.progetti-hero {
    padding-top: 150px !important;
}

@media (max-width: 992px) {
    .progetti-hero {
        padding-top: 130px !important;
    }
}

@media (max-width: 768px) {
    .progetti-hero {
        padding-top: 120px !important;
    }
}

@media (max-width: 576px) {
    .progetti-hero {
        padding-top: 100px !important;
    }
}

/* ===== COLLABORAZIONI B2B PAGE 3D EFFECTS ===== */

/* Form Hero Section 3D */
.form-hero {
    position: relative;
    overflow: hidden;
}

.form-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.form-hero .text-container {
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    z-index: 2;
}

/* Stats Container in Form Hero - Migliorato Contrasto */
.form-hero .stats-container {
    position: relative;
    z-index: 3;
}

.form-hero .stat-item {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    color: var(--text-dark) !important;
}

.form-hero .stat-item i {
    color: var(--accent-blue) !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.4));
}

.form-hero .stat-number {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.form-hero .stat-label {
    color: var(--text-gray) !important;
    font-weight: 500 !important;
}

/* Benefit Card 3D Effect */
.benefit-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    position: relative !important;
    background: white !important;
    border: 2px solid rgba(61, 140, 180, 0.1) !important;
    overflow: visible !important;
}

.benefit-card:hover {
    z-index: 10 !important;
    border-color: rgba(61, 140, 180, 0.3) !important;
    box-shadow: 0 20px 50px rgba(61, 140, 180, 0.15) !important;
}

.benefit-icon {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg) translateZ(10px) !important;
}

.benefit-icon i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.2));
}

.benefit-card:hover .benefit-icon i {
    filter: drop-shadow(0 4px 8px rgba(61, 140, 180, 0.4));
    color: var(--accent-blue) !important;
}

.benefit-features li {
    transition: all 0.3s ease;
    transform: translateX(0);
}

.benefit-card:hover .benefit-features li {
    transform: translateX(5px);
}

.benefit-card:hover .benefit-features li:nth-child(1) {
    transition-delay: 0.05s;
}

.benefit-card:hover .benefit-features li:nth-child(2) {
    transition-delay: 0.1s;
}

.benefit-card:hover .benefit-features li:nth-child(3) {
    transition-delay: 0.15s;
}

/* Process Step 3D Effect */
.process-step {
    transition: transform 0.1s ease-out !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
}

.process-step:hover {
    z-index: 10 !important;
}

.step-number {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    box-shadow: 0 4px 15px rgba(61, 140, 180, 0.3) !important;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg) translateZ(10px) !important;
    box-shadow: 0 6px 25px rgba(61, 140, 180, 0.5) !important;
}

.step-content {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.process-step:hover .step-content {
    transform: translateX(5px) translateZ(5px) !important;
}

/* Benefits Section - SVG Pattern Background */
.benefits-section {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d8cb4' fill-opacity='0.02'%3E%3Cpath d='M40 40v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40V0h-2v4h-4v2h4v4h2V6h4V4h-4zM0 40v-4H-2v4H-6v2h4v4h2v-4h4v-2H0zM0 0V-2H-2v4H-6v2h4v4h2V6h4V4H0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Process Section - SVG Pattern Background */
.process-section {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d8cb4' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* CTA Button 3D */
.cta-button {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.cta-button:hover {
    transform: translateY(-3px) translateZ(5px) !important;
    box-shadow: 0 10px 30px rgba(61, 140, 180, 0.4) !important;
}

.cta-button:active {
    transform: translateY(0) translateZ(0) !important;
}

/* Feature Item Enhanced */
.feature-item {
    transition: all 0.3s ease !important;
}

.feature-item:hover {
    transform: translateX(5px) !important;
}

.feature-item i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.feature-item:hover i {
    transform: scale(1.2) rotate(5deg) !important;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
}

/* Responsive */
@media (max-width: 768px) {
    .benefit-card,
    .process-step {
        transform-style: flat !important;
    }
    
    .form-hero::before {
        opacity: 0.15;
    }
    
    .benefits-section,
    .process-section {
        background-image: none; /* Rimuovi pattern su mobile per performance */
    }
}

/* Floating Shapes per Benefits Section */
.benefits-section .floating-shape {
    opacity: 0.05;
    background: rgba(61, 140, 180, 0.06);
    border: 1px solid rgba(61, 140, 180, 0.1);
}

.benefits-shape-1 {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 5%;
    border-radius: 18px;
    transform: rotate(30deg);
    animation: float 8s ease-in-out infinite;
}

.benefits-shape-2 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.benefits-shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 3%;
    transform: rotate(45deg);
    border-radius: 12px;
    animation: float 7s ease-in-out infinite 1.5s;
}

/* Floating Shapes per Process Section */
.process-section .floating-shape {
    opacity: 0.04;
    background: rgba(61, 140, 180, 0.05);
    border: 1px solid rgba(61, 140, 180, 0.08);
}

.process-shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 8%;
    border-radius: 15px;
    transform: rotate(25deg);
    animation: float 9s ease-in-out infinite;
}

.process-shape-2 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    right: 5%;
    border-radius: 50%;
    animation: float 11s ease-in-out infinite reverse;
}

/* Benefits Grid - Spacing Migliorato */
.benefits-grid {
    gap: 40px !important;
    padding: 0 20px !important;
}

@media (max-width: 768px) {
    .benefits-section .floating-shape,
    .process-section .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
    
    .benefits-grid {
        gap: 30px !important;
        padding: 0 15px !important;
    }
}

/* ===== LAVORA CON NOI PAGE 3D EFFECTS ===== */

/* Position Card 3D Effect */
.position-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    position: relative !important;
    background: white !important;
    border: 2px solid rgba(61, 140, 180, 0.1) !important;
    overflow: visible !important;
}

.position-card:hover {
    z-index: 10 !important;
    border-color: rgba(61, 140, 180, 0.3) !important;
    box-shadow: 0 20px 50px rgba(61, 140, 180, 0.15) !important;
}

.position-icon {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    box-shadow: 0 4px 12px rgba(61, 140, 180, 0.2) !important;
}

.position-card:hover .position-icon {
    transform: scale(1.15) rotate(5deg) translateZ(10px) !important;
    box-shadow: 0 6px 20px rgba(61, 140, 180, 0.4) !important;
}

.position-icon i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.2));
}

.position-card:hover .position-icon i {
    filter: drop-shadow(0 4px 8px rgba(61, 140, 180, 0.4));
}

.position-header h3 {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.position-card:hover .position-header h3 {
    transform: translateX(5px) translateZ(5px) !important;
    color: var(--accent-blue) !important;
}

.position-meta {
    transition: all 0.3s ease !important;
}

.position-card:hover .position-meta {
    transform: translateX(3px) !important;
}

.position-meta i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 1px 2px rgba(61, 140, 180, 0.2));
}

.position-card:hover .position-meta i {
    transform: scale(1.2) rotate(5deg) !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.4));
}

/* Apply Button 3D */
.apply-button {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    box-shadow: 0 4px 15px rgba(61, 140, 180, 0.3) !important;
}

.apply-button:hover {
    transform: translateX(5px) translateY(-2px) translateZ(5px) !important;
    box-shadow: 0 8px 25px rgba(61, 140, 180, 0.4) !important;
}

.apply-button:active {
    transform: translateX(5px) translateY(0) translateZ(0) !important;
}

/* Careers Container - SVG Pattern Background */
.careers-container {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233d8cb4' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Positions Grid - Spacing Migliorato */
.positions-grid {
    gap: 40px !important;
    padding: 0 20px !important;
}

@media (max-width: 768px) {
    .positions-grid {
        gap: 30px !important;
        padding: 0 15px !important;
    }
    
    .careers-container {
        background-image: none; /* Rimuovi pattern su mobile per performance */
    }
}

/* Posizione Card 3D Effect - Per sezione "Lavora con Noi" in index.html */
.posizione-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    position: relative !important;
    overflow: visible !important;
}

.posizione-card:hover {
    z-index: 10 !important;
    transform: translateY(-8px) translateZ(10px) rotateX(2deg) !important;
    box-shadow: 0 20px 50px rgba(61, 140, 180, 0.25) !important;
}

.posizione-card i {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.posizione-card:hover i {
    transform: scale(1.2) rotate(5deg) translateZ(10px) !important;
    color: white !important;
}

.posizione-card span {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.posizione-card:hover span {
    transform: translateX(5px) translateZ(5px) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .position-card,
    .posizione-card {
        transform-style: flat !important;
    }
    
    .posizione-card:hover {
        transform: translateY(-5px) !important; /* Effetto ridotto su mobile */
    }
}

/* Floating Shapes per Careers Container */
.careers-container .floating-shape {
    opacity: 0.05;
    background: rgba(61, 140, 180, 0.06);
    border: 1px solid rgba(61, 140, 180, 0.1);
}

.careers-shape-1 {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 5%;
    border-radius: 18px;
    transform: rotate(30deg);
    animation: float 8s ease-in-out infinite;
}

.careers-shape-2 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.careers-shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 3%;
    transform: rotate(45deg);
    border-radius: 12px;
    animation: float 7s ease-in-out infinite 1.5s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .careers-container .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
}

/* ===== CANDIDATI.PHP PAGE 3D EFFECTS ===== */

/* Form Section - SVG Pattern Background */
.form-section {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233d8cb4' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Form Container Enhanced */
.form-container {
    position: relative;
    z-index: 2;
}

/* Form Group 3D Effect */
.form-group {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.form-group:focus-within {
    transform: translateZ(5px) !important;
}

.form-control {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    color: var(--text-dark) !important;
    background-color: var(--background-light) !important;
}

.form-control::placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

.form-control:focus {
    transform: translateZ(5px) !important;
    box-shadow: 0 8px 25px rgba(61, 140, 180, 0.2) !important;
    border-color: var(--accent-blue) !important;
    color: var(--text-dark) !important;
    background-color: white !important;
}

/* Assicura che input, textarea e select abbiano sempre testo leggibile */
input.form-control,
textarea.form-control,
select.form-control {
    color: var(--text-dark) !important;
    background-color: var(--background-light) !important;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    color: var(--text-dark) !important;
    background-color: white !important;
}

select.form-control option {
    color: var(--text-dark) !important;
    background-color: white !important;
}

/* File Upload Label 3D */
.file-upload-label {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.file-upload-label:hover {
    transform: translateY(-2px) translateZ(5px) !important;
    box-shadow: 0 6px 20px rgba(61, 140, 180, 0.3) !important;
}

.file-upload-label.file-selected {
    background: rgba(61, 140, 180, 0.1) !important;
    border-color: var(--accent-blue) !important;
}

/* Submit Button 3D */
.submit-btn {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    box-shadow: 0 6px 20px rgba(61, 140, 180, 0.3) !important;
}

.submit-btn:hover {
    transform: translateY(-3px) translateZ(5px) !important;
    box-shadow: 0 10px 30px rgba(61, 140, 180, 0.4) !important;
}

.submit-btn:active {
    transform: translateY(0) translateZ(0) !important;
}

.submit-btn:disabled {
    transform: none !important;
    opacity: 0.6;
}

/* Alert Banners 3D */
.alert {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    animation: slideDown 0.5s ease-out !important;
}

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

.alert-success {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
}

.alert-danger {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3) !important;
}

/* Modal 3D */
.modal-content {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    animation: modalAppear 0.4s ease-out !important;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateZ(-50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0) rotateX(0);
    }
}

.modal-icon {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.modal-content:hover .modal-icon {
    transform: scale(1.1) rotate(5deg) translateZ(10px) !important;
}

.modal-btn {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.modal-btn:hover {
    transform: translateY(-2px) translateZ(5px) !important;
    box-shadow: 0 6px 20px rgba(61, 140, 180, 0.3) !important;
}

/* Select Dropdown Enhanced */
select.form-control {
    transition: all 0.3s ease !important;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233d8cb4' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
}

/* Checkbox Label Enhanced */
.checkbox-label {
    transition: all 0.3s ease !important;
}

.checkbox-label:hover {
    transform: translateX(3px) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .form-section {
        background-image: none; /* Rimuovi pattern su mobile per performance */
    }
    
    .form-group {
        transform-style: flat !important;
    }
}

/* Floating Shapes per Form Section */
.form-section .floating-shape {
    opacity: 0.04;
    background: rgba(61, 140, 180, 0.05);
    border: 1px solid rgba(61, 140, 180, 0.08);
    z-index: 1;
}

.form-shape-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    border-radius: 15px;
    transform: rotate(25deg);
    animation: float 9s ease-in-out infinite;
}

.form-shape-2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 11s ease-in-out infinite reverse;
}

.form-shape-3 {
    width: 50px;
    height: 50px;
    top: 50%;
    right: 3%;
    transform: rotate(45deg);
    border-radius: 12px;
    animation: float 8s ease-in-out infinite 2s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .form-section .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
}

/* Fix globale per tutti i campi form - Testo leggibile */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    color: var(--text-dark) !important;
    background-color: var(--background-light) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    color: var(--text-dark) !important;
    background-color: white !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

select option {
    color: var(--text-dark) !important;
    background-color: white !important;
}

/* ===== NAVBAR 3D EFFECTS ===== */

/* Navbar Enhanced */
.navbar {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(61, 140, 180, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.99) !important;
}

/* Logo 3D Effect */
.logo {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
}

.logo a {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    text-decoration: none !important;
}

.logo:hover {
    transform: scale(1.02) translateZ(5px) !important;
}

.logo img {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    height: 55px !important;
    max-height: 55px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
}

.logo:hover img {
    filter: drop-shadow(0 4px 8px rgba(61, 140, 180, 0.3));
}

@media (max-width: 992px) {
    .logo img {
        height: 45px !important;
        max-height: 45px !important;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px !important;
        max-height: 40px !important;
    }
}

/* Nav Links 3D */
.nav-links a {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    position: relative !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
    transform: translateZ(0);
}

/* Escludi il bottone CTA dall'effetto ::after */
.nav-links .cta-button a::after,
.nav-links .cta-button .btn-primary::after,
.navbar .cta-button a::after,
.navbar .cta-button .btn-primary::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Escludi il bottone CTA dall'hover effect dei link normali */
.nav-links .cta-button a:hover,
.navbar .cta-button a:hover {
    transform: translateY(-2px) translateZ(5px) !important;
    color: white !important; /* Mantieni il colore bianco del testo */
}

.nav-links a:hover {
    transform: translateY(-2px) translateZ(5px) !important;
    color: var(--accent-blue) !important;
}

/* Dropdown Enhanced */
.dropdown-menu {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(61, 140, 180, 0.1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
}

.dropdown-menu a {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.dropdown-menu a:hover {
    transform: translateX(5px) translateZ(5px) !important;
    background: rgba(61, 140, 180, 0.1) !important;
}

.dropdown-toggle i {
    transition: transform 0.3s ease !important;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg) translateZ(5px) !important;
}

/* CTA Button Enhanced */
.navbar .cta-button,
.nav-links .cta-button {
    position: relative !important;
}

.navbar .cta-button a,
.navbar .cta-button .btn-primary,
.nav-links .cta-button a,
.nav-links .cta-button .btn-primary {
    position: relative !important;
    overflow: visible !important;
    background-color: var(--accent-blue) !important;
    color: white !important;
}

.navbar .cta-button a::after,
.navbar .cta-button .btn-primary::after,
.nav-links .cta-button a::after,
.nav-links .cta-button .btn-primary::after,
.cta-button a::after,
.cta-button .btn-primary::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
}

.btn-primary {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    box-shadow: 0 4px 15px rgba(61, 140, 180, 0.3) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) translateZ(5px) !important;
    box-shadow: 0 6px 25px rgba(61, 140, 180, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(0) translateZ(0) !important;
}

/* Menu Toggle Enhanced */
.menu-toggle {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
}

.menu-toggle:hover {
    transform: scale(1.1) rotate(90deg) translateZ(5px) !important;
}

.menu-toggle i {
    transition: all 0.3s ease !important;
}

/* ===== FOOTER 3D EFFECTS ===== */

/* Footer Enhanced */
footer {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    overflow: hidden;
}

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

/* Footer Section 3D */
.footer-section {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    position: relative;
    z-index: 10 !important;
}

/* Assicura che tutti i link del footer siano cliccabili */
.footer-section a,
.footer-section p a,
.footer-links a,
.footer-contact a,
.footer-contact p a,
.footer-contact .contact-link,
.social-icons a,
.certification-images a {
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.certification-images img {
    pointer-events: none !important;
    display: block !important;
}

.footer-section:hover {
    transform: translateY(-3px) translateZ(5px) !important;
}

.footer-section h4 {
    transition: all 0.3s ease !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-section:hover h4 {
    color: var(--accent-blue) !important;
    text-shadow: 0 2px 8px rgba(61, 140, 180, 0.4);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
}

/* Footer Links 3D */
.footer-links {
    position: relative !important;
    z-index: 10 !important;
}

.footer-links ul {
    position: relative !important;
    z-index: 10 !important;
}

.footer-links li {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.footer-links li a {
    pointer-events: auto !important;
    z-index: 9999 !important;
}

.footer-links a {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative !important;
    cursor: pointer !important;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px) translateZ(0);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0) translateZ(5px);
}

.footer-links a:hover {
    transform: translateX(5px) translateZ(5px) !important;
    color: var(--accent-blue) !important;
}

/* Footer Contact 3D */
.footer-contact p {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    position: relative !important;
    z-index: 10 !important;
}

.footer-contact p:hover {
    transform: translateX(5px) translateZ(5px) !important;
}

/* Assicura che i link dentro footer-contact siano sempre cliccabili */
.footer-contact {
    position: relative !important;
    z-index: 10 !important;
}

.footer-contact p {
    position: relative !important;
    z-index: 11 !important;
}

.footer-contact p a,
.footer-contact a,
.contact-link {
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline !important;
    text-decoration: none !important;
}

.footer-contact i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(61, 140, 180, 0.3));
}

.footer-contact p:hover i {
    transform: scale(1.2) rotate(5deg) translateZ(5px) !important;
    filter: drop-shadow(0 4px 8px rgba(61, 140, 180, 0.5));
    color: var(--accent-blue) !important;
}

.contact-link {
    transition: all 0.3s ease !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-link:hover {
    color: var(--accent-blue) !important;
    text-decoration: underline !important;
}

/* Social Icons 3D */
.social-icons {
    position: relative !important;
    z-index: 10 !important;
}

.social-icons a {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: flex !important;
    text-decoration: none !important;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(5deg) translateZ(10px) !important;
    background: rgba(61, 140, 180, 0.3) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 8px 25px rgba(61, 140, 180, 0.4) !important;
}

.social-icons a i {
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.social-icons a:hover i {
    transform: scale(1.2) translateZ(5px) !important;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
}

/* Certification Images 3D */
.certification-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative !important;
    z-index: 10 !important;
}

.certification-images a {
    display: inline-block !important;
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    background: transparent !important;
}

.certification-images img {
    transition: all 0.3s ease !important;
    transform-style: preserve-3d !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 5px !important;
    display: block !important;
    pointer-events: none !important; /* L'immagine non deve bloccare il click sul link */
}

.certification-images a:hover {
    transform: translateY(-3px) translateZ(5px) !important;
}

.certification-images a:hover img {
    transform: scale(1.1) rotate(3deg) translateZ(10px) !important;
    box-shadow: 0 8px 25px rgba(61, 140, 180, 0.4) !important;
    border: 2px solid rgba(61, 140, 180, 0.5) !important;
}

/* Copyright Enhanced */
.copyright {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer Section Text Colors */
.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-section h4 {
    color: white !important;
    font-weight: 700 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        backdrop-filter: blur(5px) !important;
    }
    
    .footer-section {
        transform-style: flat !important;
    }
    
    footer {
        background-image: none; /* Rimuovi pattern su mobile per performance */
    }
}

/* Floating Shapes per Footer */
footer .floating-shape {
    opacity: 0.08;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none !important; /* Assicura che non blocchino i click */
}

.footer-shape-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    border-radius: 15px;
    transform: rotate(25deg);
    animation: float 10s ease-in-out infinite;
}

.footer-shape-2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation: float 12s ease-in-out infinite reverse;
}

.footer-shape-3 {
    width: 50px;
    height: 50px;
    top: 50%;
    right: 3%;
    transform: rotate(45deg);
    border-radius: 12px;
    animation: float 9s ease-in-out infinite 2s;
}

.footer-shape-4 {
    width: 70px;
    height: 70px;
    bottom: 5%;
    left: 10%;
    border-radius: 25% 75% 75% 25% / 25% 25% 75% 75%;
    animation: float 11s ease-in-out infinite 1.5s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    footer .floating-shape {
        display: none; /* Nascondi su mobile per performance */
    }
}

/* Fix definitivo per link footer-contact e certificazioni */
footer .footer-contact p a,
footer .footer-contact a,
footer .contact-link {
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
}

footer .certification-images a {
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
}

/* Assicura che i paragrafi non blocchino i link */
footer .footer-contact p {
    pointer-events: none !important;
}

footer .footer-contact p a,
footer .footer-contact p i {
    pointer-events: auto !important;
}

/* Fix definitivo per link footer-links */
footer .footer-links ul {
    pointer-events: none !important;
}

footer .footer-links li {
    pointer-events: none !important;
}

footer .footer-links li a {
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    display: inline-block !important;
}

/* Fix definitivo per rimuovere rettangolo bianco su CTA button navbar */
.navbar .nav-links .cta-button,
.navbar .nav-links .cta-button a,
.navbar .nav-links .cta-button .btn-primary {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar .nav-links .cta-button .btn-primary {
    background-color: var(--accent-blue) !important;
    border-radius: 6px !important;
}

.navbar .nav-links .cta-button .btn-primary::before,
.navbar .nav-links .cta-button .btn-primary::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
