/* Global Styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #A5D6A7;
    --secondary-color: #2196F3;
    --secondary-dark: #1976D2;
    --accent-color: #FF9800;
    --text-color: #333333;
    --text-light: #757575;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 8px;
    --section-padding: 5rem 0;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

/* ========== NUOVI STILI PER EFFETTI DINAMICI ========== */

/* Particle Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Typing Effect Cursor */
.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Enhanced Loading Animation */
body {
    opacity: 0;
    animation: fadeInBody 0.8s ease-in-out 0.2s forwards;
}

body.loaded {
    opacity: 1;
}

@keyframes fadeInBody {
    to { opacity: 1; }
}

/* Enhanced Button Styling (without movement) */
.btn {
    position: relative;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 250, 0.95) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 152, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

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

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtle Card Hover Effects (no shimmer) */
.solution-card, .benefit-item, .feature-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover, .benefit-item:hover, .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

/* Team Members - No hover effects */
.team-member {
    transition: box-shadow 0.3s ease;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
}

/* Enhanced Navigation */
.header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

.nav-links a:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-3d-model {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Focus States (no movement) */
.btn:focus, .nav-links a:focus, input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* No pulse animation - keeping buttons static */

/* ========== DYNAMIC SECTION BACKGROUNDS ========== */

/* About Section - Animated Gradient Waves */
.about {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9ff 50%, #ecfdf5 100%);
    background-size: 400% 400%;
    animation: gradientWave 8s ease-in-out infinite;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(33, 150, 243, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

/* Solutions Section - Geometric Patterns */
#solutions {
    position: relative;
    background: linear-gradient(45deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    overflow: hidden;
}

#solutions::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(76, 175, 80, 0.02) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(33, 150, 243, 0.02) 50%, transparent 60%);
    background-size: 60px 60px;
    animation: geometricMove 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

#solutions .container {
    position: relative;
    z-index: 2;
}

/* Benefits Section - Flowing Gradient */
.benefits {
    position: relative;
    background: linear-gradient(135deg, #fefefe 0%, #f0fdf4 25%, #ecfeff 75%, #fefefe 100%);
    background-size: 300% 300%;
    animation: flowingGradient 12s ease-in-out infinite;
    overflow: hidden;
}

.benefits::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><circle cx="30" cy="30" r="1" fill="%234CAF50" fill-opacity="0.05"/></g></svg>');
    animation: dotPattern 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.benefits .container {
    position: relative;
    z-index: 2;
}

/* Testimonials Section - Wave Pattern */
.testimonials {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(76, 175, 80, 0.01) 2px,
        rgba(76, 175, 80, 0.01) 4px
    );
    animation: wavePattern 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

/* Team Section - Hexagonal Pattern */
.team {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(33, 150, 243, 0.02) 0%, transparent 50%);
    animation: hexPattern 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.team .container {
    position: relative;
    z-index: 2;
}

/* Contact Section - Clean and Sober */
.contact {
    background: var(--bg-light);
}

/* Model-3D Section - Clean and Sober */
.model-3d-section {
    background: var(--bg-white);
}

/* Why-Choose Section - Orbital Pattern */
.why-choose {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%, #f9fafb 100%);
    background-size: 300% 300%;
    animation: orbitalGradient 14s ease-in-out infinite;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitRotate 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.why-choose::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(33, 150, 243, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitRotate 30s linear infinite reverse;
    pointer-events: none;
    z-index: 1;
}

.why-choose .container {
    position: relative;
    z-index: 2;
}

/* CTA Section - Energy Waves */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #065f46 0%, #047857 25%, #059669 50%, #047857 75%, #065f46 100%);
    background-size: 400% 400%;
    animation: energyWave 8s ease-in-out infinite;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
    animation: energyFlow 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: energyPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* ========== BACKGROUND ANIMATIONS ========== */

@keyframes gradientWave {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes geometricMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes flowingGradient {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

@keyframes dotPattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

@keyframes wavePattern {
    0%, 100% {
        transform: translateX(0) scaleX(1);
    }
    50% {
        transform: translateX(10px) scaleX(1.05);
    }
}

@keyframes hexPattern {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

@keyframes meshGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

@keyframes circuitPattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

@keyframes techGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes orbitalGradient {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

@keyframes orbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes energyWave {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes energyFlow {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(40px) translateY(40px);
    }
}

@keyframes energyPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    #particleCanvas {
        opacity: 0.3;
    }
    
    .hero {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.98) 100%);
    }
    
    .cursor {
        display: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        -webkit-text-fill-color: var(--text-color);
        background: none;
        animation: none;
    }
    
    /* Reduce animation intensity on mobile */
    .about::before,
    #solutions::before,
    .benefits::after,
    .testimonials::before,
    .team::before,
    .contact::before {
        opacity: 0.3;
        animation-duration: 20s;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.rounded {
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1976D2;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Header and Navigation */
.header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, #f0f7f0, #e8f5e9);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero 3D Model */
.hero-3d-model {
    position: relative;
    height: 500px;
    width: 100%;
    background: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-viewer-container {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.model-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.model-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.model-control-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
}

.image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.image-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom right, rgba(76, 175, 80, 0.2), rgba(33, 150, 243, 0.2));
    z-index: 1;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-text h3 {
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution-card:hover, .solution-card.card-hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
    z-index: 2;
}

.solution-card.card-dim {
    opacity: 0.6;
    transform: scale(0.98);
    filter: grayscale(30%);
}

.solution-image {
    height: 200px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover .solution-image img,
.solution-card.card-hover .solution-image img {
    transform: scale(1.1);
}

.solution-content {
    padding: 1.5rem;
}

.solution-content h3 {
    margin-bottom: 1rem;
}

.solution-content p {
    margin-bottom: 1rem;
}

.solution-features {
    margin-bottom: 1.5rem;
}

.solution-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.solution-features li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

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

/* Why Choose Section */
.why-choose {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Header con badge */
.section-header.with-accent {
    position: relative;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Banner in evidenza */
.feature-banner {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-strong);
}

.banner-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.feature-banner:hover .banner-image {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 2rem 2rem;
}

.banner-content {
    color: white;
    max-width: 600px;
}

.banner-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Feature cards */
.featured-advantages {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.advantage-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.advantage-image {
    height: 100%;
    overflow: hidden;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.advantage-card:hover .feature-img {
    transform: scale(1.1);
}

.advantage-content {
    padding: 2.5rem;
    position: relative;
}

.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.advantage-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.advantage-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.learn-more:hover {
    color: var(--primary-dark);
    gap: 0.8rem;
}

/* Animazioni per le card dei vantaggi */
.featured-advantages .advantage-card.card-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.featured-advantages .advantage-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard section */
.dashboard-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #1a2a36);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    color: white;
}

.dashboard-content {
    padding: 3rem;
}

.dashboard-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #4CAF50;
}

.dashboard-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.dashboard-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.dash-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dash-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.dash-feature i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.dashboard-image-container {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.dashboard-preview-container:hover .dashboard-img {
    transform: scale(1.03);
}

.floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(76, 175, 80, 0.9);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-1 {
    top: 30px;
    right: 30px;
    animation-delay: 0s;
}

.floating-2 {
    bottom: 30px;
    left: 30px;
    animation-delay: 1.5s;
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .advantage-card,
    .dashboard-preview-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        order: 2;
    }
    
    .dashboard-image-container {
        order: 1;
    }
    
    .advantage-card:nth-child(even) .advantage-content {
        order: 1;
    }
    
    .advantage-card:nth-child(even) .advantage-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    .banner-image-container {
        height: 250px;
    }
    
    .banner-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .banner-content h3 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .dashboard-features {
        grid-template-columns: 1fr;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        min-height: auto;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-3d-model {
        height: 350px;
        order: -1;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    /* Solutions Grid Mobile */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-image {
        height: 180px;
    }
    
    /* Advantage Cards Mobile */
    .advantage-card {
        grid-template-columns: 1fr;
    }
    
    .advantage-image {
        height: 200px;
        order: -1;
    }
    
    .advantage-content {
        padding: 1.5rem;
    }
    
    .icon-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Dashboard Preview Mobile */
    .dashboard-preview-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-image-container {
        min-height: 250px;
        order: -1;
    }
    
    /* Model 3D Section Mobile */
    .model-3d-viewer {
        padding: 1rem;
    }
    
    .exploded-view-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 2rem 0;
    }
    
    .exploded-image {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 3rem;
    }
    
    /* Box Connectors Mobile - Stack vertically below image */
    .box-connector {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 1.5rem auto;
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .connector-point {
        display: none;
    }
    
    .connector-line {
        display: none;
    }
    
    .connector-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.2rem;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
    
    .connector-card:hover {
        transform: translateY(-3px);
    }
    
    .advantage-content {
        padding: 2rem;
    }
    
    .advantage-content h3 {
        font-size: 1.4rem;
    }
    
    .advantage-content p {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    
    .why-choose-image {
        margin-top: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .why-choose-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .icon-container {
        margin-bottom: 0.5rem;
    }
}

.benefit-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-strong);
    background: var(--gradient-primary);
    color: white;
}

.benefit-item:hover h3,
.benefit-item:hover p {
    color: white;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
    color: white;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.benefit-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Awards Infinite Scroll Section */
.awards-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
}

.awards-scroll-track {
    display: flex;
    width: fit-content;
    animation: scroll-awards 80s linear infinite;
    gap: 5rem;
}

.awards-scroll-track:hover {
    animation-play-state: paused;
}

.award-item {
    flex-shrink: 0;
    width: 250px;
}

.award-content {
    background: transparent;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.award-content:hover {
    transform: scale(1.05);
}

.award-logo {
    width: 260px;
    height: 260px;
    object-fit: contain;
    flex-shrink: 0;
}

.award-info {
    display: none;
}

@keyframes scroll-awards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive styles for awards section */
@media (max-width: 768px) {
    .award-item {
        width: 200px;
    }
    
    .award-logo {
        width: 200px;
        height: 200px;
    }
    
    .awards-scroll-track {
        gap: 3rem;
        animation: scroll-awards 70s linear infinite;
    }
}

@media (max-width: 576px) {
    .award-item {
        width: 150px;
    }
    
    .award-logo {
        width: 150px;
        height: 150px;
    }
    
    .awards-scroll-track {
        gap: 2.5rem;
        animation: scroll-awards 60s linear infinite;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-submit {
    grid-column: 1 / -1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.info-content h4 {
    margin-bottom: 0.5rem;
}

.info-content p {
    margin-bottom: 0;
}

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

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #1E2D40;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo a {
    color: white;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-light);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animation variations */
.fade-in.animated {
    animation: fadeIn 1s ease forwards;
}

.fade-from-left.animated {
    animation: fadeFromLeft 1s ease forwards;
}

.fade-from-right.animated {
    animation: fadeFromRight 1s ease forwards;
}

.zoom-in.animated {
    animation: zoomIn 1s ease forwards;
}

.pop-up.animated {
    animation: popUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes popUp {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Add interactive gradient hover effect */
.gradient-hover {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.gradient-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    transition: var(--transition);
}

.gradient-hover:hover::before {
    left: 100%;
}

/* Floating animation for elements */
.float {
    animation: float 5s infinite ease-in-out;
}

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

/* Add animated background effect */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(165, 214, 167, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhance the CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(56, 142, 60, 0.9));
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-section .btn-light:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Add parallax effect to hero image */
.hero-image {
    transition: transform 0.3s ease;
}

/* Counter styling */
.counter-element {
    transition: color 0.5s ease;
    font-weight: bold;
}

.counter-element.counted {
    color: var(--primary-color);
}

/* 3D Model Section Styling */
.model-3d-section {
    position: relative;
    min-height: 100vh;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    overflow: hidden;
}

.model-3d-scroll-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Layout principale: info a sinistra, modello 3D a destra */
.model-3d-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 5;
    min-height: 85vh;
}

/* Stili per la parte informativa a sinistra */
.model-3d-info {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.model-info-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.model-info-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.model-info-slide h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.model-info-slide h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.model-info-slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-dark);
    max-width: 90%;
}

/* Lista di caratteristiche */
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Stili per il visualizzatore 3D a destra */
.model-3d-viewer {
    position: relative;
    width: 100%;
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

#model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent; /* Sfondo trasparente */
    position: relative;
    z-index: 10;
    border-radius: 12px;
    overflow: hidden;
}

.model-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(248, 249, 250, 0.2) 100%);
    z-index: 1;
}

/* Exploded View Container */
.exploded-view-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 900px;
    background: transparent;
}

.exploded-image {
    width: 100%;
    max-width: 100%;
    height: 800px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    mix-blend-mode: multiply;
    position: relative;
    z-index: 1;
}

/* Box Connector Styles - Always Visible */
.box-connector {
    position: absolute;
    z-index: 10;
}

/* Miglior contrasto per desktop */
.exploded-view-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
}

/* Punto di connessione sull'immagine */
.connector-point {
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25), 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    transform: translate(-50%, -50%);
}

/* Linea di connessione - Destra */
.connector-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 2px;
    background: var(--primary-color);
    transform-origin: left center;
    z-index: 1;
}

/* Linea di connessione - Sinistra */
.box-connector.left .connector-line {
    left: auto;
    right: 0;
    transform-origin: right center;
}

/* Linea allungata per Sensor Modules */
.box-connector.sensor-long-line .connector-line {
    width: 200px;
}

.box-connector.sensor-long-line .connector-card {
    left: 200px;
}

/* Card informativa sempre visibile - Destra */
.connector-card {
    position: absolute;
    left: 120px;
    top: 0;
    transform: translateY(-50%);
    background: white;
    backdrop-filter: blur(10px);
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.2);
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Card a sinistra */
.box-connector.left .connector-card {
    left: auto;
    right: 120px;
}

.connector-card:hover {
    transform: translateY(-50%) translateX(5px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(76, 175, 80, 0.4);
    border-color: var(--primary-color);
}

.box-connector.left .connector-card:hover {
    transform: translateY(-50%) translateX(-5px);
}

/* Icona nella card */
.connector-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

/* Contenuto testuale */
.connector-content h4 {
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.2px;
}

.connector-content p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-light);
}

/* Controlli del modello */
.model-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.model-control-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-control-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

/* Navigazione a punti */
.model-3d-nav {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.nav-dot::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s ease;
}

.nav-dot.active::before {
    transform: translate(-50%, -50%) scale(1);
    border-color: var(--primary-color);
    opacity: 0.3;
}

/* Animazioni */
@keyframes modelRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

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

/* Media queries per responsività */
@media (max-width: 992px) {
    .model-3d-content {
        grid-template-columns: 1fr;
        height: auto;
        gap: 3rem;
    }
    
    .model-3d-info {
        padding-right: 0;
        height: 50vh;
    }
    
    .model-3d-viewer {
        height: 50vh;
    }
    
    .model-3d-nav {
        right: 1rem;
    }
    
    .feature-list {
        font-size: 2rem;
    }
    
    .graphics-viewport {
        max-width: 90%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    #animation-headline {
        font-size: 1.8rem;
    }
    
    #animation-description {
        font-size: 1rem;
    }
    
    .graphics-viewport {
        height: 350px;
    }
    
    .sticky-section-container {
        height: 400vh; /* Reduce altezza totale su mobile */
    }
}

@media (max-width: 576px) {
    #animation-headline {
        font-size: 1.6rem;
    }
    
    .graphics-viewport {
        height: 300px;
    }
    
    .sticky-section-container {
        height: 300vh; /* Ancora meno su schermi molto piccoli */
    }
    
    .model-3d-nav {
        display: none;
    }
}

/* Stili per l'animazione Tive-like nella sezione Localizzazione */
.tive-animation-section {
    padding: 0; /* Rimuovi padding predefinito */
    overflow: hidden;
    background-color: #f8f9fa; /* Colore sfondo chiaro */
}

.sticky-section-container {
    /* Altezza totale per consentire lo scrolling attraverso le scene */
    height: 500vh; /* 5 scene * 100vh ciascuna */
    position: relative;
    width: 100%;
}

.sticky-animation-area {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

#animation-headline-container {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#animation-headline {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#animation-description {
    font-size: 1.1rem;
    color: #555;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Stili per il contenitore SVG */
.svg-animation-container {
    width: 100%;
    max-width: 800px;
    height: 450px;
    position: relative;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Stili per le scene SVG */
.svg-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Inizialmente nascoste, GSAP le mostrerà */
    pointer-events: none; /* Non interagibili se non attive */
    transform: translateY(30px) scale(0.9);
}

/* Gli SVG occupano tutto lo spazio disponibile */
.svg-scene svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Primo elemento visibile per default (verrà gestito via GSAP) */
#tracking-device-scene {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Stili per l'indicatore di scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #3070E8;
    font-size: 1rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.scroll-indicator span {
    margin-bottom: 5px;
}

.scroll-indicator i {
    margin-top: 5px;
    font-size: 1.5rem;
    color: #3070E8;
}

.pulse-icon {
    animation: pulseAnimation 1.5s infinite;
    display: block;
}

@keyframes pulseAnimation {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.8;
    }
}

.scroll-triggers-container {
    pointer-events: none; /* Invisibili all'interazione */
}

.scroll-trigger {
    height: 100vh; /* Ogni trigger occupa l'altezza di una viewport */
}

.scroll-trigger:first-child {
    height: 30vh; /* Il primo trigger può essere più corto */
}

/* Stili per il contenitore del dispositivo - Scena 0 */
.device-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.device-container i {
    color: #3070E8;
    filter: drop-shadow(0 0 10px rgba(48, 112, 232, 0.5));
}

.device-pulse-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #3070E8;
    animation: pulsate 2s infinite ease-out;
}

@keyframes pulsate {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

.device-detail {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: float 3s infinite ease-in-out;
}

.device-detail i {
    font-size: 0.9rem;
    color: #3070E8;
}

.device-detail.top {
    top: 10px;
    animation-delay: 0.2s;
}

.device-detail.right {
    right: 10px;
    animation-delay: 0.4s;
}

.device-detail.bottom {
    bottom: 10px;
    animation-delay: 0.6s;
}

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

/* Stili per il contenitore di accuratezza - Scena 1 */
.accuracy-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accuracy-container i {
    color: #E83030;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(232, 48, 48, 0.3));
}

.accuracy-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(48, 112, 232, 0.5);
}

.accuracy-circle.circle-1 {
    width: 160px;
    height: 160px;
    animation: spin 20s linear infinite;
}

.accuracy-circle.circle-2 {
    width: 100px;
    height: 100px;
    border-color: rgba(232, 48, 48, 0.5);
    animation: spin 15s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.accuracy-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #E83030;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(232, 48, 48, 0.7);
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Stili per il contenitore real-time - Scena 2 */
.realtime-container {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.realtime-container i {
    color: #3070E8;
    margin-bottom: 30px;
}

.realtime-bars {
    display: flex;
    align-items: flex-end;
    height: 60px;
    margin-top: 20px;
}

.realtime-bar {
    width: 15px;
    background-color: #3070E8;
    margin: 0 5px;
    border-radius: 3px 3px 0 0;
    animation: equalize 2s infinite ease-in-out;
}

.realtime-bar.bar-1 { height: 30%; animation-delay: 0s; }
.realtime-bar.bar-2 { height: 60%; animation-delay: 0.3s; }
.realtime-bar.bar-3 { height: 90%; animation-delay: 0.6s; }
.realtime-bar.bar-4 { height: 40%; animation-delay: 0.9s; }

@keyframes equalize {
    0%, 100% { height: 30%; }
    25% { height: 60%; }
    50% { height: 90%; }
    75% { height: 40%; }
}

.realtime-notification {
    position: absolute;
    top: 10px;
    right: 30px;
    background-color: #E83030;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.realtime-notification i {
    color: white;
    margin-right: 6px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Stili per il contenitore GPS - Scena 3 */
.gps-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.satellite-system {
    position: relative;
    width: 200px;
    height: 200px;
}

.main-satellite {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3070E8;
    z-index: 10;
}

.satellite-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(48, 112, 232, 0.3);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.satellite-1 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #3070E8;
}

.satellite-2 {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: #3070E8;
}

.satellite-3 {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #3070E8;
}

.gps-signal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(rgba(48, 112, 232, 0.4), transparent 70%);
    opacity: 0.7;
    animation: pulse 3s infinite;
}

/* Stili per il contenitore energia - Scena 4 */
.energy-container {
    position: relative;
    width: 280px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.energy-container i {
    color: #4CAF50;
    margin-bottom: 25px;
}

.energy-level {
    width: 180px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.energy-bar {
    height: 100%;
    width: 90%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 15px;
    animation: charge 3s ease-in-out infinite alternate;
}

@keyframes charge {
    0% { width: 80%; }
    100% { width: 90%; }
}

.energy-saving {
    position: relative;
    width: 100%;
}

.leaf-1, .leaf-2 {
    position: absolute;
    color: #4CAF50;
    opacity: 0.8;
    animation: float-leaf 3s infinite ease-in-out alternate;
}

.leaf-1 {
    left: 70px;
    top: -10px;
    font-size: 1.2rem;
    animation-delay: 0.5s;
}

.leaf-2 {
    right: 70px;
    top: 10px;
    font-size: 1rem;
}

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

/* Team Section */
.team-section {
    background-color: #f8f9fa;
    position: relative;
    padding: 5rem 0;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 85, 0.03), rgba(0, 171, 85, 0.03));
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.team-member {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.member-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: bottom 0.3s ease;
}

.team-member:hover .member-social {
    bottom: 0;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Responsive Exploded View */
    .exploded-view-container {
        padding: 0;
        min-height: 400px;
    }
    
    /* Mobile: card sotto l'immagine */
    .connector-line {
        width: 2px;
        height: 60px;
        right: auto;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, var(--primary-color), rgba(76, 175, 80, 0.3));
    }
    
    .connector-card {
        right: auto;
        left: 50%;
        top: calc(100% + 60px);
        transform: translateX(-50%);
        min-width: 220px;
        max-width: 280px;
        padding: 0.9rem 1rem;
    }
    
    .connector-card:hover {
        transform: translateX(-50%) translateY(-5px);
    }
    
    .connector-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .connector-content h4 {
        font-size: 0.9rem;
    }
    
    .connector-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.member-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: var(--transition);
}

.team-member:hover .social-overlay {
    bottom: 0;
}

.team-social {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-social:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 992px) {
    html {
        font-size: 95%;
    }

    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 85%;
    }

    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Hero Mobile */
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-3d-model {
        height: 300px;
    }
    
    /* Benefits Grid */
    .benefit-item {
        padding: 1.5rem 1rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .benefit-item h3 {
        font-size: 1.1rem;
    }
    
    /* Feature Banner Mobile */
    .banner-image-container {
        height: 200px;
    }
    
    .banner-content h3 {
        font-size: 1.3rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    /* Advantage Content Mobile */
    .advantage-content h3 {
        font-size: 1.3rem;
    }
    
    .advantage-content p {
        font-size: 0.95rem;
    }
    
    /* Dashboard Mobile */
    .dashboard-content h3 {
        font-size: 1.4rem;
    }
    
    .dashboard-content p {
        font-size: 0.95rem;
    }
    
    .dash-feature {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Model Info Slide Mobile */
    .model-info-slide h2 {
        font-size: 1.5rem;
    }
    
    .model-info-slide p {
        font-size: 0.95rem;
    }
    
    /* Box Connector Cards Mobile */
    .connector-card {
        padding: 0.9rem 1rem;
    }
    
    .connector-icon {
        font-size: 1.3rem;
        min-width: 45px;
    }
    
    .connector-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .connector-content p {
        font-size: 0.8rem;
        margin-bottom: 0;

    }
}

/* =============================================
   POPUP MESSAGE STYLES
   ============================================= */

/* Overlay che copre tutta la schermata con sfondo semi-trasparente */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Mostra l'overlay quando ha la classe 'show' */
.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Il popup messaggio vero e proprio */
.popup-message {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

/* Animazione del popup quando viene mostrato */
.popup-overlay.show .popup-message {
    transform: scale(1);
}

/* Icona del popup */
.popup-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Colori per popup di successo */
.popup-message.success .popup-icon {
    color: #4CAF50;
}

/* Colori per popup di errore */
.popup-message.error .popup-icon {
    color: #f44336;
}

/* Titolo del popup */
.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

/* Testo del popup */
.popup-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive per schermi piccoli */
@media (max-width: 576px) {
    .popup-message {
        padding: 2rem 1.5rem;
        max-width: 320px;
    }
    
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-text {
        font-size: 0.95rem;
    }
}

/* ========== 3D MODEL LOADER ========== */

/* Hide default model-viewer progress bar */
model-viewer::part(default-progress-bar) {
    display: none !important;
}

model-viewer::part(default-progress-mask) {
    display: none !important;
}

/* Hide the default progress bar container */
model-viewer #default-progress-bar {
    display: none !important;
}

/* Loader Container */
.model-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.model-loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
}

/* Circular Loader */
.model-circular-loader {
    position: relative;
    width: 120px;
    height: 120px;
}

/* SVG Circle Animation */
.loader-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.loader-circle-bg {
    fill: none;
    stroke: rgba(76, 175, 80, 0.1);
    stroke-width: 8;
}

.loader-circle-progress {
    fill: none;
    stroke: url(#gradient-loader);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292; /* 2 * PI * 54 (radius) */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.3s ease;
}

/* Gradient for the loader */
.loader-gradient-primary {
    --color-start: #4CAF50;
    --color-end: #388E3C;
}

.loader-gradient-secondary {
    --color-start: #2196F3;
    --color-end: #1976D2;
}

/* Center Icon/Percentage */
.loader-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Loader Text */
.loader-text {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fade-in-out 2s ease-in-out infinite;
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Spinning animation for loader circle */
@keyframes spin {
    0% {
        transform: rotate(-90deg);
    }
    100% {
        transform: rotate(270deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .model-circular-loader {
        width: 100px;
        height: 100px;
    }
    
    .loader-percentage {
        font-size: 1.2rem;
    }
    
    .loader-text {
        font-size: 0.9rem;
    }
}
