/* ============================================================
   ECOMMERCEPRONTO LANDING - FINAL CORRECTED STYLESHEET
   Tutte le correzioni implementate
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.4);
    
    /* Secondary Colors */
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    --secondary-glow: rgba(245, 158, 11, 0.3);
    
    /* Status Colors */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    /* Background Colors */
    --bg-darker: #020617;
    --bg-dark: #0f172a;
    --bg-medium: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    /* Borders & Dividers */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-strong: rgba(255, 255, 255, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    /* Spacing & Layout */
    --container-width: 1400px;
    --section-padding: 8rem;
    --section-padding-mobile: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    animation: gradientShift 30s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(3deg); }
    66% { transform: translate(-5%, -5%) rotate(-3deg); }
}

/* Floating Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.5px; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

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

ul, ol {
    margin: 0;
    padding: 0;
}

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

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: transform var(--transition-base), background var(--transition-base);
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: -0.5px;
    font-family: var(--font-display);
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-link-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-link-cta::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
    box-shadow: 0 10px 30px var(--secondary-glow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--secondary-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color-strong);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-glass-strong);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* ===== HERO SECTION (Homepage) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding) 0 4rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hero-trust span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Image with 3D Float */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.3s backwards;
    perspective: 1000px;
}

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

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

/* ===== PAGE HERO (Internal Pages) ===== */
.page-hero {
    padding: calc(var(--section-padding) + 2rem) 0 4rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== PROBLEM-SOLUTION SECTION ===== */
.problem-solution {
    padding: var(--section-padding) 0;
    position: relative;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.ps-problems .section-title {
    color: var(--danger);
}

.ps-solutions .section-title {
    color: var(--success);
}

.ps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ps-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-slow);
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
    overflow: hidden;
}

.ps-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.ps-item:hover::before {
    opacity: 1;
}

.ps-item:nth-child(1) { animation-delay: 0.1s; }
.ps-item:nth-child(2) { animation-delay: 0.2s; }
.ps-item:nth-child(3) { animation-delay: 0.3s; }
.ps-item:nth-child(4) { animation-delay: 0.4s; }
.ps-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ps-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.ps-item.problem {
    border-left: 4px solid var(--danger);
}

.ps-item.problem:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

.ps-item.solution {
    border-left: 4px solid var(--success);
}

.ps-item.solution:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.ps-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ps-item span:last-child {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== PRICING SECTION ===== */
.pricing-table {
    padding: var(--section-padding) 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Pricing Card - Fixed overflow */
.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
    animation: fadeInUp 0.8s ease backwards;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

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

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 30px 80px var(--primary-glow);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 60px var(--primary-glow);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    display: block;
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
}

.feature-label {
    color: var(--text-muted);
    flex: 1;
    word-wrap: break-word;
}

.feature-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-wrap: break-word;
    max-width: 50%;
}

.pricing-card .btn {
    margin-top: auto;
}

/* ===== SERVICE DETAIL SECTIONS ===== */
.service-detail {
    padding: calc(var(--section-padding) / 2) 0;
    position: relative;
}

.service-detail:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.service-detail.alt .service-detail-grid {
    grid-template-columns: 1fr 1fr;
}

.service-detail.alt .service-detail-content {
    order: 2;
}

.service-detail.alt .service-detail-image {
    order: 1;
}

.service-badge-large {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px var(--primary-glow);
}

.service-badge-large.featured {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    box-shadow: 0 5px 20px var(--secondary-glow);
}

.service-detail-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-detail-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.service-section {
    margin-bottom: 2.5rem;
}

.service-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.service-list,
.service-list-check {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-list li,
.service-list-check li {
    color: var(--text-secondary);
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
}

.service-list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.service-pricing {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.service-price-tag {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.service-price-tag .price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.service-price-tag .price-period {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.price-notes {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Service Image - Mobile fix */
.service-detail-image {
    position: relative;
    perspective: 1000px;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-slow);
}

.service-detail-image:hover img {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.4);
}

/* ===== SERVIZI EXTRA - 2 BOX CARDS ===== */
.extra-services {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.extra-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.extra-service-group {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    transition: all var(--transition-base);
}

.extra-service-group:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 25px 70px var(--primary-glow);
}

.extra-service-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

.extra-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.extra-service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.extra-service-item:hover {
    background: var(--bg-glass-strong);
    transform: translateX(10px);
}

.extra-service-name {
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.6;
}

.extra-service-price {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

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

/* ===== THEME SHOWCASE (Portfolio) - IMMAGINI PIU PICCOLE ===== */
.theme-showcase {
    padding: calc(var(--section-padding) / 2) 0;
    position: relative;
}

.theme-showcase:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.theme-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.theme-showcase.alt .theme-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.theme-showcase.alt .theme-content {
    order: 2;
}

.theme-showcase.alt .theme-image {
    order: 1;
}

/* Theme Image - Ridotta dimensione */
.theme-image {
    position: relative;
    perspective: 1000px;
    max-width: 500px;
    margin: 0 auto;
}

.theme-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-slow);
    transform-style: preserve-3d;
}

.theme-image:hover img {
    transform: translateY(-10px) rotateY(-3deg) scale(1.02);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.5);
}

.theme-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px var(--primary-glow);
    z-index: 10;
}

.theme-name {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.theme-style {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.theme-section {
    margin-bottom: 2.5rem;
}

.theme-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.theme-list,
.theme-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.theme-list li,
.theme-features li {
    color: var(--text-secondary);
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.theme-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
}

.theme-features li::before {
    content: '';
    width: 0;
}

.theme-perfect-for {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.theme-perfect-for p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.theme-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* ===== PERSONALIZZAZIONE - 5 CARD CON ZOOM HOVER ===== */
.customization {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.8rem;
    margin: 4rem 0;
}

.customization-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-slow);
    cursor: pointer;
    min-width: 0;
}

.customization-item:hover {
    transform: scale(1.1) translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 30px 80px var(--primary-glow);
    z-index: 10;
}

.customization-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.customization-icon svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    fill: none;
}

.customization-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.customization-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.customization-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.customization-cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.customization-cta-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== COME FUNZIONA - PROCESS TIMELINE ===== */
.process {
    padding: var(--section-padding) 0;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), transparent);
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
    position: relative;
    z-index: 2;
}

.process-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-base);
}

.process-content:hover {
    transform: translateX(10px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 50px var(--primary-glow);
}

.process-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.process-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-light);
    fill: none;
}

.process-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.process-time {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
}

/* Comodato Explanation */
.comodato-explanation {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.02);
}

.explanation-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.explanation-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.explanation-benefits {
    margin: 3rem 0;
}

.explanation-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

.explanation-benefit {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.explanation-benefit:hover {
    transform: translateX(10px);
    border-color: var(--primary-light);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px var(--primary-glow);
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    fill: none;
}

.benefit-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

.explanation-image {
    position: relative;
}

.explanation-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px var(--primary-glow));
}

/* ===== CONTATTI - CONTACT METHODS ===== */
.contact-methods {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-col {
    min-width: 0;
}

.contact-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--bg-glass-strong);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-radio:hover {
    background: var(--bg-glass-strong);
    border-color: var(--primary-light);
}

.form-radio input[type="radio"] {
    accent-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--primary);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    display: block;
}

/* Google Calendar Embed */
.google-calendar-embed {
    width: 100%;
    height: 600px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.google-calendar-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    /* Migliora contrasto e leggibilità */
    filter: brightness(1.05) contrast(1.1);
}

/* CORREZIONE #2: Contact Illustration - FIXED */
.contact-illustration {
    width: 100%;
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-illustration img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

/* Contact Info Section */
.contact-info {
    padding: calc(var(--section-padding) / 2) 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.contact-info-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-base);
}

.contact-info-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 60px var(--primary-glow);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px var(--primary-glow);
}

.contact-info-icon svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    fill: none;
}

.contact-info-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.contact-info-value {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== BENEFITS/FEATURES CARDS ===== */
.benefits-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
}

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

/* Benefit Card with 3D Tilt */
.benefit-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--primary-glow) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.benefit-card:hover::before {
    opacity: 0.1;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 25px 70px var(--primary-glow);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px var(--primary-glow);
    position: relative;
    z-index: 1;
}

.benefit-icon svg {
    width: 35px;
    height: 35px;
    stroke: #fff;
    fill: none;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

.cta-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-container p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-buttons .btn-primary:hover {
    color: var(--primary);
}

.cta-buttons .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.cta-simple {
    padding: 6rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER - CORREZIONE #1: 4 COLONNE + SOCIAL GRANDI CON YOUTUBE ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.footer-links {
    list-style: none;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Social Icons - GRANDI con rotazione + YouTube */
.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-slow);
    color: var(--text-secondary);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.footer-social a svg {
    width: 24px;
    height: 24px;
    transition: all var(--transition-base);
}

.footer-social a:hover svg {
    fill: #fff;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px var(--primary-glow);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.scroll-to-top svg {
    stroke: #fff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    :root {
        --section-padding: 6rem;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-showcase.alt .theme-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-image {
        max-width: 600px;
    }
    
    .customization-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        transition: right var(--transition-base);
        padding: 2rem;
        border-left: 1px solid var(--border-color);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-link {
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container,
    .ps-grid,
    .service-detail-grid,
    .contact-grid,
    .explanation-grid,
    .extra-services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail.alt .service-detail-content,
    .theme-showcase.alt .theme-content {
        order: 1;
    }
    
    .service-detail.alt .service-detail-image,
    .theme-showcase.alt .theme-image {
        order: 2;
    }
    
    /* CORREZIONE #3: Mobile image size fix */
    .service-detail-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
    
    .customization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 4rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    .hero-cta,
    .theme-cta,
    .cta-buttons {
        flex-direction: column;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .contact-box {
        padding: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
    
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .process-step::before {
        left: 30px;
        top: 60px;
    }
    
    .customization-grid {
        grid-template-columns: 1fr;
    }
    
    .customization-item {
        padding: 2rem;
    }
    
    .customization-icon {
        width: 70px;
        height: 70px;
    }
    
    .customization-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .customization-title {
        font-size: 1.2rem;
    }
    
    .customization-text {
        font-size: 0.9rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== SCROLL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   NUOVE SEZIONI PAGINA PREZZI - CAROSELLO 3D, SERVIZI EXTRA, FAQ
   ============================================================ */

/* ===== CAROSELLO 3D - COSA INCLUDE IL CANONE ===== */
.included-services-carousel {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 600px;
    margin: 4rem auto 0;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-track {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-card-3d {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--bg-medium) 0%, #334155 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    width: 200px;
    height: 280px;
    opacity: 0.3;
}

/* Posizioni del carosello - CENTRATO */
.carousel-card-3d[data-position="-2"] {
    transform: translate(calc(-50% - 550px), -50%) scale(0.6);
    opacity: 0.2;
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

.carousel-card-3d[data-position="-1"] {
    transform: translate(calc(-50% - 320px), -50%) scale(0.8);
    opacity: 0.5;
    filter: blur(1px);
    width: 280px;
    height: 380px;
    z-index: 5;
}

.carousel-card-3d[data-position="0"] {
    transform: translate(-50%, -50%) scale(1);
    width: 400px;
    height: 520px;
    opacity: 1;
    border-color: var(--primary);
    background: linear-gradient(135deg, #1e40af 0%, var(--primary) 100%);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.6);
    z-index: 10;
    filter: blur(0);
    cursor: default;
}

.carousel-card-3d[data-position="1"] {
    transform: translate(calc(-50% + 320px), -50%) scale(0.8);
    opacity: 0.5;
    filter: blur(1px);
    width: 280px;
    height: 380px;
    z-index: 5;
}

.carousel-card-3d[data-position="2"] {
    transform: translate(calc(-50% + 550px), -50%) scale(0.6);
    opacity: 0.2;
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

/* Nascondi card troppo lontane */
.carousel-card-3d[data-position="-3"],
.carousel-card-3d[data-position="3"],
.carousel-card-3d[data-position="-4"],
.carousel-card-3d[data-position="4"],
.carousel-card-3d[data-position="-5"],
.carousel-card-3d[data-position="5"],
.carousel-card-3d[data-position="-6"],
.carousel-card-3d[data-position="6"],
.carousel-card-3d[data-position="-7"],
.carousel-card-3d[data-position="7"] {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Card Icon */
.card-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card-icon-container svg {
    width: 30px;
    height: 30px;
    stroke: var(--text-primary);
}

.carousel-card-3d[data-position="0"] .card-icon-container {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-card-3d[data-position="0"] .card-icon-container svg {
    width: 50px;
    height: 50px;
}

/* Card Title */
.card-title-3d {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.carousel-card-3d[data-position="0"] .card-title-3d {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Card Description */
.card-description-3d {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-card-3d[data-position="0"] .card-description-3d {
    font-size: 1.05rem;
    color: #e2e8f0;
    opacity: 1;
    max-height: 200px;
}

/* Navigation Arrows */
.carousel-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.8);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0;
    color: #fff;
}

.carousel-3d-container:hover .carousel-nav-arrow {
    opacity: 1;
}

.carousel-nav-arrow:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.carousel-nav-arrow.left {
    left: 20px;
}

.carousel-nav-arrow.right {
    right: 20px;
}

.carousel-nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    justify-content: center;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #475569;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background: var(--primary);
    width: 40px;
    border-radius: 6px;
}

.carousel-indicator:hover {
    background: #64748b;
}

/* ===== SERVIZI EXTRA - 2 BOX AFFIANCATI ===== */
.extra-services-section {
    padding: 8rem 0;
}

.extra-services-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.extra-service-box {
    background: linear-gradient(135deg, var(--bg-medium) 0%, #1e293b 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.extra-service-box:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
}

.extra-box-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.extra-box-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    flex-shrink: 0;
}

.extra-box-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.extra-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.extra-service-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.extra-service-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    flex-shrink: 0;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

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

/* ===== FAQ - BOX CENTRATO ===== */
.faq-section {
    padding: 8rem 0;
}

.faq-box {
    max-width: 900px;
    margin: 4rem auto 0;
    background: linear-gradient(135deg, var(--bg-medium) 0%, #1e293b 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-arrow {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    padding-left: 48px;
}

/* ===== RESPONSIVE - CAROSELLO 3D ===== */
@media (max-width: 1200px) {
    .carousel-3d-container {
        height: 550px;
    }
    
    .carousel-card-3d[data-position="0"] {
        width: 360px;
        height: 480px;
    }
    
    .carousel-card-3d[data-position="-1"],
    .carousel-card-3d[data-position="1"] {
        width: 250px;
        height: 350px;
    }
    
    .carousel-card-3d[data-position="-1"] {
        transform: translate(calc(-50% - 280px), -50%) scale(0.8);
    }
    
    .carousel-card-3d[data-position="1"] {
        transform: translate(calc(-50% + 280px), -50%) scale(0.8);
    }
    
    .carousel-card-3d[data-position="-2"] {
        transform: translate(calc(-50% - 480px), -50%) scale(0.6);
    }
    
    .carousel-card-3d[data-position="2"] {
        transform: translate(calc(-50% + 480px), -50%) scale(0.6);
    }
}

@media (max-width: 768px) {
    .carousel-3d-container {
        height: 500px;
    }
    
    .carousel-card-3d[data-position="0"] {
        width: 320px;
        height: 440px;
    }
    
    .carousel-card-3d[data-position="-1"],
    .carousel-card-3d[data-position="1"] {
        width: 200px;
        height: 300px;
        opacity: 0.4;
    }
    
    .carousel-card-3d[data-position="-1"] {
        transform: translate(calc(-50% - 220px), -50%) scale(0.75);
    }
    
    .carousel-card-3d[data-position="1"] {
        transform: translate(calc(-50% + 220px), -50%) scale(0.75);
    }
    
    .carousel-card-3d[data-position="-2"],
    .carousel-card-3d[data-position="2"] {
        opacity: 0;
        visibility: hidden;
    }
    
    .carousel-nav-arrow {
        width: 50px;
        height: 50px;
    }
    
    .carousel-nav-arrow.left {
        left: 10px;
    }
    
    .carousel-nav-arrow.right {
        right: 10px;
    }
}

/* ===== RESPONSIVE - SERVIZI EXTRA ===== */
@media (max-width: 968px) {
    .extra-services-boxes {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .extra-service-item {
        grid-template-columns: 40px 1fr auto;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-name {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.85rem;
    }
    
    .service-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .extra-service-box {
        padding: 2rem 1.5rem;
    }
    
    .extra-box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .extra-box-icon {
        width: 40px;
        height: 40px;
    }
    
    .extra-box-title {
        font-size: 1.5rem;
    }
    
    .extra-service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-icon {
        display: none;
    }
    
    .service-price {
        text-align: left;
        margin-top: 0.5rem;
    }
}

/* ===== RESPONSIVE - FAQ ===== */
@media (max-width: 768px) {
    .faq-box {
        padding: 2rem 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem 0;
    }
    
    .faq-question {
        gap: 1rem;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
    }
    
    .question-text {
        font-size: 1.05rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
        padding-left: 44px;
    }
}

@media (max-width: 480px) {
    .faq-icon {
        display: none;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding-left: 0;
    }
}
 ===== TESTIMONIAL HOME - CAROSELLO INFINITO ===== */
.testimonials-home {
    padding: 8rem 0;
}

.testimonials-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 400px;
    margin: 4rem auto 0;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-carousel-track {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card-carousel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--bg-medium) 0%, #334155 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    width: 450px;
    min-height: 280px;
    opacity: 0.3;
}

/* Posizioni carosello testimonial */
.testimonial-card-carousel[data-position="-2"] {
    transform: translate(calc(-50% - 650px), -50%) scale(0.7);
    opacity: 0.2;
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

.testimonial-card-carousel[data-position="-1"] {
    transform: translate(calc(-50% - 400px), -50%) scale(0.85);
    opacity: 0.5;
    filter: blur(1px);
    z-index: 5;
}

.testimonial-card-carousel[data-position="0"] {
    transform: translate(-50%, -50%) scale(1);
    width: 550px;
    min-height: 320px;
    opacity: 1;
    border-color: var(--primary);
    background: linear-gradient(135deg, #1e40af 0%, var(--primary) 100%);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.6);
    z-index: 10;
    filter: blur(0);
    cursor: default;
}

.testimonial-card-carousel[data-position="1"] {
    transform: translate(calc(-50% + 400px), -50%) scale(0.85);
    opacity: 0.5;
    filter: blur(1px);
    z-index: 5;
}

.testimonial-card-carousel[data-position="2"] {
    transform: translate(calc(-50% + 650px), -50%) scale(0.7);
    opacity: 0.2;
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

/* Nascondi card lontane */
.testimonial-card-carousel[data-position="-3"],
.testimonial-card-carousel[data-position="3"],
.testimonial-card-carousel[data-position="-4"],
.testimonial-card-carousel[data-position="4"],
.testimonial-card-carousel[data-position="-5"],
.testimonial-card-carousel[data-position="5"],
.testimonial-card-carousel[data-position="-6"],
.testimonial-card-carousel[data-position="6"],
.testimonial-card-carousel[data-position="-7"],
.testimonial-card-carousel[data-position="7"],
.testimonial-card-carousel[data-position="-8"],
.testimonial-card-carousel[data-position="8"],
.testimonial-card-carousel[data-position="-9"],
.testimonial-card-carousel[data-position="9"] {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.testimonial-rating-carousel {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text-carousel {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex: 1;
}

.testimonial-card-carousel[data-position="0"] .testimonial-text-carousel {
    font-size: 1.1rem;
    color: #e2e8f0;
}

.testimonial-author-carousel {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.testimonial-author-carousel strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.testimonial-author-carousel span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Navigation Arrows */
.testimonial-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.8);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0;
    color: #fff;
}

.testimonials-carousel-container:hover .testimonial-nav-arrow {
    opacity: 1;
}

.testimonial-nav-arrow:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.testimonial-nav-arrow.left {
    left: 20px;
}

.testimonial-nav-arrow.right {
    right: 20px;
}

.testimonial-nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* Indicators */
.testimonials-indicators {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    justify-content: center;
}

.testimonial-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #475569;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-indicator.active {
    background: var(--primary);
    width: 40px;
    border-radius: 6px;
}

.testimonial-indicator:hover {
    background: #64748b;
}

/* ===== CTA FINALE HOME - CENTRATA CON SPAZIATURA ===== */
.cta-final-home {
    padding: 6rem 0 8rem 0;
    text-align: center;
}

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

.cta-title-home {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cta-subtitle-home {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons-home {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== PROBLEMA SOLUZIONE - ICONE SVG ===== */
.ps-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ps-item.problem .ps-icon {
    stroke: #ef4444;
}

.ps-item.solution .ps-icon {
    stroke: #10b981;
}

/* ===== RESPONSIVE - SERVIZI HOME ===== */
@media (max-width: 1024px) {
    .services-grid-home {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card-home.featured {
        transform: scale(1);
    }
    
    .service-card-home.featured:hover {
        transform: translateY(-10px) scale(1);
    }
}

/* ===== RESPONSIVE - VANTAGGI HOME ===== */
@media (max-width: 968px) {
    .benefits-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .benefits-grid-home {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE - COME FUNZIONA HOME ===== */
@media (max-width: 1200px) {
    .steps-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .steps-grid-home {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE - TEMI HOME ===== */
@media (max-width: 968px) {
    .themes-grid-home {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== RESPONSIVE - TESTIMONIAL CAROSELLO ===== */
@media (max-width: 1200px) {
    .testimonials-carousel-container {
        height: 380px;
    }
    
    .testimonial-card-carousel[data-position="0"] {
        width: 500px;
        min-height: 300px;
    }
    
    .testimonial-card-carousel[data-position="-1"],
    .testimonial-card-carousel[data-position="1"] {
        transform: translate(calc(-50% - 350px), -50%) scale(0.85);
    }
    
    .testimonial-card-carousel[data-position="1"] {
        transform: translate(calc(-50% + 350px), -50%) scale(0.85);
    }
    
    .testimonial-card-carousel[data-position="-2"] {
        transform: translate(calc(-50% - 550px), -50%) scale(0.7);
    }
    
    .testimonial-card-carousel[data-position="2"] {
        transform: translate(calc(-50% + 550px), -50%) scale(0.7);
    }
}

@media (max-width: 768px) {
    .testimonials-carousel-container {
        height: 400px;
    }
    
    .testimonial-card-carousel {
        width: 350px;
        padding: 2rem;
    }
    
    .testimonial-card-carousel[data-position="0"] {
        width: 400px;
        min-height: 320px;
    }
    
    .testimonial-card-carousel[data-position="-1"],
    .testimonial-card-carousel[data-position="1"] {
        width: 300px;
        opacity: 0.4;
    }
    
    .testimonial-card-carousel[data-position="-1"] {
        transform: translate(calc(-50% - 280px), -50%) scale(0.8);
    }
    
    .testimonial-card-carousel[data-position="1"] {
        transform: translate(calc(-50% + 280px), -50%) scale(0.8);
    }
    
    .testimonial-card-carousel[data-position="-2"],
    .testimonial-card-carousel[data-position="2"] {
        opacity: 0;
        visibility: hidden;
    }
    
    .testimonial-nav-arrow {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-nav-arrow.left {
        left: 10px;
    }
    
    .testimonial-nav-arrow.right {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .testimonial-card-carousel[data-position="0"] {
        width: 320px;
    }
    
    .cta-title-home {
        font-size: 2rem;
    }
    
    .cta-subtitle-home {
        font-size: 1rem;
    }
    
    .cta-buttons-home {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================================
   FIX HOMEPAGE - AGGIUNTE SEZIONI MANCANTI
   ============================================================ */

/* ===== TEMI HOME - FILA ORIZZONTALE DA 3 (FIX) ===== */
.themes-home {
    padding: 8rem 0 !important;
}

.themes-grid-home {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3rem !important;
    margin-top: 4rem !important;
}

.theme-card-home {
    transition: all 0.3s ease !important;
    display: block !important;
}

.theme-card-home:hover {
    transform: translateY(-10px) !important;
}

.theme-image-home {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 280px !important;
    margin-bottom: 1.5rem !important;
}

.theme-image-home img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.theme-card-home:hover .theme-image-home img {
    transform: scale(1.1) !important;
}

.theme-overlay-home {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.theme-card-home:hover .theme-overlay-home {
    opacity: 1 !important;
}

.theme-title-home {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

.theme-label-home {
    font-size: 0.9rem !important;
    color: var(--primary) !important;
    text-align: center !important;
}

/* Rimuovi padding/margin extra che creano spazio vuoto */
.services-preview,
.benefits,
.how-it-works-home,
.themes-home,
.testimonials-home {
    margin: 0 !important;
}

/* ===== FIX RESPONSIVE TEMI ===== */
@media (max-width: 968px) {
    .themes-grid-home {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .theme-image-home {
        height: 250px !important;
    }
}

@media (max-width: 640px) {
    .theme-image-home {
        height: 200px !important;
    }
}
/* ============================================================
   HOMEPAGE - SEZIONI SERVIZI, VANTAGGI, COME FUNZIONA
   ============================================================ */

/* ===== SERVIZI HOME - 3 CARD CON EFFETTO ===== */
.services-preview {
    padding: 8rem 0;
}

.services-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.service-card-home {
    background: linear-gradient(135deg, var(--bg-medium) 0%, #1e293b 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card-home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.service-card-home:hover::before {
    transform: scale(1);
}

.service-card-home:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}

.service-card-home.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #1e40af 0%, var(--primary) 100%);
    transform: scale(1.05);
}

.service-card-home.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.service-badge-home {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon-home {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-icon-home svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-primary);
}

.service-card-home:hover .service-icon-home {
    transform: rotateY(360deg);
    background: rgba(255, 255, 255, 0.2);
}

.service-title-home {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description-home {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features-home {
    list-style: none;
    margin-bottom: 2rem;
    width: 100%;
}

.service-features-home li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-features-home li:last-child {
    border-bottom: none;
}

.service-price-home {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.service-price-home .price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.service-price-home .price-period {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ===== VANTAGGI HOME - 2 FILE DA 3 ===== */
.benefits {
    padding: 8rem 0;
}

.benefits-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.benefit-card-home {
    background: linear-gradient(135deg, var(--bg-medium) 0%, #1e293b 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card-home:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
}

.benefit-icon-home {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.benefit-icon-home svg {
    width: 35px;
    height: 35px;
    stroke: var(--primary);
}

.benefit-card-home:hover .benefit-icon-home {
    background: var(--primary);
    transform: scale(1.1);
}

.benefit-card-home:hover .benefit-icon-home svg {
    stroke: #fff;
}

.benefit-title-home {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.benefit-description-home {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== COME FUNZIONA HOME - 5 CARD ===== */
.how-it-works-home {
    padding: 8rem 0;
}

.steps-grid-home {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card-home {
    background: linear-gradient(135deg, var(--bg-medium) 0%, #1e293b 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card-home:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
}

.step-number-home {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.step-icon-home {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    transition: all 0.3s ease;
}

.step-icon-home svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary);
}

.step-card-home:hover .step-icon-home {
    background: var(--primary);
    transform: scale(1.1);
}

.step-card-home:hover .step-icon-home svg {
    stroke: #fff;
}

.step-title-home {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.step-description-home {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== RESPONSIVE - SERVIZI HOME ===== */
@media (max-width: 1024px) {
    .services-grid-home {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card-home.featured {
        transform: scale(1);
    }
    
    .service-card-home.featured:hover {
        transform: translateY(-10px) scale(1);
    }
}

/* ===== RESPONSIVE - VANTAGGI HOME ===== */
@media (max-width: 968px) {
    .benefits-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .benefits-grid-home {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE - COME FUNZIONA HOME ===== */
@media (max-width: 1200px) {
    .steps-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .steps-grid-home {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FIX MENU MOBILE - SPACING 3.5 E RIMOZIONE EFFETTI
   ============================================================ */

@media (max-width: 968px) {
    /* NON toccare altezza header - lasciare originale */
    
    /* IMPORTANTE: Ripristinare top originale per .nav */
    .nav {
        top: 80px !important;
        height: calc(100vh - 80px) !important;
    }
    
    /* Fix menu mobile - spacing 3.5rem */
    .nav-list {
        padding-top: 2rem !important;
    }
    
    .nav-link {
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        line-height: 1.5 !important;
        display: block !important;
        position: relative !important;
        margin-bottom: 3.5rem !important;
        border-bottom: none !important;
    }
    
    /* Rimuovi TUTTI gli effetti hover dai link */
    .nav-link::after {
        display: none !important;
    }
    
    .nav-link:hover {
        color: var(--primary) !important;
        transform: none !important;
        background: none !important;
    }
    
    /* Trasforma Contatti in link normale - NO bottone, NO effetti */
    .nav-link-cta {
        background: transparent !important;
        color: var(--text-primary) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin-bottom: 3.5rem !important;
        display: block !important;
        height: auto !important;
        line-height: 1.5 !important;
    }
    
    .nav-link-cta:hover {
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        color: var(--primary) !important;
    }
    
    .nav-link-cta::before,
    .nav-link-cta::after {
        display: none !important;
    }
}

@media (max-width: 640px) {
    /* Stesso spacing su mobile piccoli */
    .nav-link {
        margin-bottom: 3.5rem !important;
    }
    
    .nav-link-cta {
        margin-bottom: 3.5rem !important;
    }
}

/* ============================================================
   FIX OVERFLOW HOMEPAGE MOBILE
   ============================================================ */

/* Previeni overflow orizzontale su tutta la pagina */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Fix container che potrebbero uscire */
.container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Fix specifici per sezioni homepage */
@media (max-width: 968px) {
    /* Fix hero trust badges che potrebbero uscire */
    .hero-trust {
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }
    
    .hero-trust span {
        font-size: 0.85rem !important;
    }
    
    /* Fix card servizi home */
    .services-grid-home {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .service-card-home {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix benefits */
    .benefits-grid-home {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Fix steps */
    .steps-grid-home {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Fix themes */
    .themes-grid-home {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Fix carousel testimonial */
    .testimonials-carousel-container {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    
    .testimonial-card-carousel {
        max-width: 90vw !important;
    }
    
    /* Fix problema/soluzione che potrebbe uscire */
    .ps-grid {
        width: 100% !important;
        gap: 2rem !important;
    }
    
    .ps-item {
        font-size: 0.9rem !important;
    }
    
    /* Fix CTA buttons che potrebbero uscire */
    .hero-cta,
    .cta-buttons,
    .cta-buttons-home {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Fix header che si allarga - MA NON nascondere overflow! */
    .header {
        width: 100% !important;
        max-width: 100vw !important;
        /* RIMOSSO: overflow: hidden - nascondeva il menu! */
    }
    
    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .logo {
        max-width: 60% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 640px) {
    /* Fix ancora più stringente per mobile piccoli */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
}


/* ============================================================
   FIX FINALI: SERVICE-DETAIL MOBILE + SCROLL-TO-TOP DESKTOP
   ============================================================ */

/* Fix scroll-to-top più in alto su desktop (evita icone social) */
@media (min-width: 969px) {
    .scroll-to-top {
        bottom: 8rem !important;
    }
}

/* Fix service-detail dinamico - immagine sotto il testo su mobile */
@media (max-width: 968px) {
    /* Forza layout colonna per service-detail-grid */
    .service-detail-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ordine: sempre contenuto prima, immagine dopo */
    .service-detail .service-detail-content {
        order: 1 !important;
    }
    
    .service-detail .service-detail-image {
        order: 2 !important;
    }
    
    /* IMPORTANTE: Forza anche per .alt (sito dinamico) */
    .service-detail.alt .service-detail-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .service-detail.alt .service-detail-content {
        order: 1 !important;
    }
    
    .service-detail.alt .service-detail-image {
        order: 2 !important;
    }
}

/* ============================================================
   FIX SCROLLBAR E HERO IMAGE
   ============================================================ */

/* Nascondi scrollbar su tutti i browser */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Previeni overflow orizzontale da animazioni */
body {
    overflow-x: hidden !important;
}

/* Fix hero image - NESSUNA animazione */
.hero-image {
    animation: none !important;
    transform: none !important;
}

.hero-image img {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* Fix footer social icons - previeni overflow */
.footer-social {
    overflow: visible !important;
}

.footer-social a {
    transform: none !important;
}

.footer-social a:hover {
    transform: translateY(-3px) !important;
}

/* Previeni overflow da elementi con hover/animazioni */
.service-card-home,
.benefit-card-home,
.step-card-home,
.portfolio-card,
.pricing-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* ============================================================
   FIX SERVIZI EXTRA - TESTO INLINE CON PREZZO
   ============================================================ */

.extra-service-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.service-icon {
    flex-shrink: 0 !important;
    width: 48px !important;
    height: 48px !important;
}

.service-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.service-name {
    flex: 1 !important;
    margin: 0 !important;
}

.service-description {
    display: inline !important;
    margin: 0 !important;
    color: var(--text-secondary) !important;
}

.service-price {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 1.2rem !important;
}

/* Mobile: torna a colonna */
@media (max-width: 640px) {
    .service-info {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .service-price {
        align-self: flex-end !important;
    }
}
/* ============================================================
   FIX SCROLLING - SOSTITUZIONI DA FARE IN landing-style.css
   ============================================================ */

/* ===== FIX 1: RIMUOVI RIGHE 3828-3831 E SOSTITUISCI CON: ===== */

/* Previeni overflow orizzontale MA permetti scroll verticale */
html {
    overflow-x: hidden;
    overflow-y: auto !important; /* ✅ Forza scroll verticale */
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    overflow-y: auto !important; /* ✅ Forza scroll verticale */
    max-width: 100vw;
}


/* ===== FIX 2: RIMUOVI RIGHE 4003-4019 E SOSTITUISCI CON: ===== */

/* Scrollbar invisibile MA funzionale (approccio migliore) */
html {
    scrollbar-width: thin; /* Firefox - sottile invece di nascosta */
    scrollbar-color: rgba(255,255,255,0.1) transparent; /* Firefox - colore discreto */
}

html::-webkit-scrollbar {
    width: 8px; /* Chrome/Safari - visibile ma sottile */
}

html::-webkit-scrollbar-track {
    background: transparent; /* Sfondo trasparente */
}

html::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1); /* Colore discreto */
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2); /* Più visibile al hover */
}

/* Rimuovi scrollbar da body (solo html deve averla) */
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}


/* ===== FIX 3: AGGIUNGI ALLA FINE DEL FILE (dopo riga 4117): ===== */

/* Fix esplicito per scroll su tutti gli elementi */
* {
    -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
}

/* Previeni che elementi fixed blocchino lo scroll */
.header,
.scroll-to-top,
.bg-shape {
    pointer-events: none; /* Non interferiscono con scroll */
}

/* Ma riattiviamo i link/bottoni nel header */
.header * {
    pointer-events: auto;
}

/* E il bottone scroll-to-top deve essere cliccabile */
.scroll-to-top {
    pointer-events: auto;
}

/* Fix per hero e sezioni - NESSUN overflow hidden */
.hero,
.services-section,
.benefits-section,
.portfolio-section,
section {
    overflow: visible !important;
}

/* Container non devono bloccare scroll */
.container {
    overflow: visible !important;
}