/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance Optimization - Usa GPU per rendering */
*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-blue: #082668;
    --secondary-pink: #FF787C;
    --accent-green: #00C851;
    --soft-orange: #e89b4f;
    --lighter-orange: #f0c08a;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --card-bg: #ffffff;
    --feature-bg: #f9fafb;
}

body.dark-mode {
    --text-dark: #e8e9ed;
    --text-light: #a0a5b8;
    --bg-light: #1a1a2e;
    --white: #16213e;
    --card-bg: #0f3460;
    --feature-bg: #1a1a2e;
}

html {
    scroll-behavior: smooth;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 50%, rgba(90, 61, 122, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 50%, rgba(90, 61, 122, 0.25) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 155, 79, 0.3) 0%, rgba(240, 192, 138, 0.2) 30%, transparent 60%);
    border-radius: 50%;
    top: -250px;
    right: 10%;
    animation: headerBlob1 12s ease-in-out infinite;
    filter: blur(50px);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.header::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, rgba(102, 126, 234, 0.15) 30%, transparent 60%);
    border-radius: 50%;
    top: -200px;
    left: 5%;
    animation: headerBlob2 15s ease-in-out infinite;
    filter: blur(50px);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.header.scrolled::before,
.header.scrolled::after {
    opacity: 0.3;
}

@keyframes headerBlob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-100px, 50px) scale(1.2);
    }
}

@keyframes headerBlob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(100px, 30px) scale(1.3);
    }
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo-shield {
    flex-shrink: 0;
    animation: logoRotate 6s linear infinite;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.05);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(5deg) scale(1.05);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    margin-top: 0.15rem;
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.contact-info {
    display: flex;
    gap: 2rem;
}

/* Gestione Header Desktop e Mobile */
.header-desktop {
    display: block;
}

.header-mobile {
    display: none;
}

.contact-info-mobile {
    display: flex;
    gap: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #e89b4f;
    transform: translateY(-2px);
}

.contact-link svg {
    color: #e89b4f;
}

/* Dark Mode Toggle - iOS Style */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 1.5rem;
    transition: transform 0.2s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.toggle-track {
    display: block;
    width: 51px;
    height: 31px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 31px;
    position: relative;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .toggle-track {
    background: #e89b4f;
    border-color: rgba(232, 155, 79, 0.5);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .toggle-thumb {
    transform: translateX(20px);
}

.toggle-icon {
    position: absolute;
    transition: opacity 0.2s ease;
    color: #e89b4f;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

.dark-mode .sun-icon {
    opacity: 0;
}

.dark-mode .moon-icon {
    opacity: 1;
    color: #1a1a2e;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a3d7a 100%);
    color: var(--white);
    padding: 6rem 0 8rem;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.7) 0%, rgba(255, 204, 128, 0.5) 30%, rgba(255, 212, 163, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: lavaBlob1 15s ease-in-out infinite;
    filter: blur(70px);
}

.hero-background::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.7) 0%, rgba(118, 75, 162, 0.5) 30%, rgba(102, 126, 234, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    animation: lavaBlob2 12s ease-in-out infinite;
    filter: blur(70px);
}

@keyframes lavaBlob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translate(400px, 250px) scale(1.5) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translate(600px, 100px) scale(0.8) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translate(200px, 400px) scale(1.3) rotate(270deg);
        opacity: 0.85;
    }
}

@keyframes lavaBlob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translate(-350px, -400px) scale(1.6) rotate(-120deg);
        opacity: 0.95;
    }
    66% {
        transform: translate(-550px, -150px) scale(0.75) rotate(-240deg);
        opacity: 0.65;
    }
}

.hero-pattern {
    width: 100%;
    height: 100%;
    position: relative;
}

.lava-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

.lava-blob:nth-child(1) {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(232, 155, 79, 0.4) 0%, rgba(240, 192, 138, 0.3) 25%, rgba(232, 155, 79, 0.2) 50%, transparent 70%);
    top: 5%;
    left: 0%;
    animation: lavaFloat1 18s infinite;
}

.lava-blob:nth-child(2) {
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(218, 112, 214, 0.35) 0%, rgba(138, 43, 226, 0.25) 25%, rgba(102, 126, 234, 0.15) 50%, transparent 70%);
    top: 35%;
    right: 5%;
    animation: lavaFloat2 22s infinite;
}

.lava-blob:nth-child(3) {
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(232, 155, 79, 0.35) 0%, rgba(240, 192, 138, 0.25) 25%, rgba(232, 155, 79, 0.15) 50%, transparent 70%);
    bottom: 0%;
    left: 20%;
    animation: lavaFloat3 25s infinite;
}

@keyframes lavaFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translate(450px, 300px) scale(1.6) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translate(-200px, 400px) scale(0.7) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translate(250px, -150px) scale(1.3) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes lavaFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    20% {
        transform: translate(-350px, -400px) scale(1.5) rotate(-72deg);
        opacity: 0.95;
    }
    40% {
        transform: translate(300px, -250px) scale(0.8) rotate(-144deg);
        opacity: 0.7;
    }
    60% {
        transform: translate(-450px, 200px) scale(1.6) rotate(-216deg);
        opacity: 1;
    }
    80% {
        transform: translate(200px, 300px) scale(1.1) rotate(-288deg);
        opacity: 0.85;
    }
}

@keyframes lavaFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    30% {
        transform: translate(-400px, -250px) scale(1.4) rotate(108deg);
        opacity: 0.95;
    }
    60% {
        transform: translate(350px, 300px) scale(0.85) rotate(216deg);
        opacity: 0.7;
    }
    90% {
        transform: translate(-200px, 350px) scale(1.2) rotate(324deg);
        opacity: 0.9;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.pulse-green {
    background: #e89b4f;
    color: #2a1a4a;
    border: 2px solid rgba(232, 155, 79, 0.5);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(232, 155, 79, 0.2);
    animation: pulseButton 1.5s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pulse-green:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(232, 155, 79, 0.4);
}

@keyframes pulseButton {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(232, 155, 79, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(232, 155, 79, 0.4);
    }
}

/* Badge Premium con Emoji */
.hero-badge-premium {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #764ba2 0%, #5a3d7a 100%);
    border: 2px solid #e89b4f;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(232, 155, 79, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    animation: subtle-pulse 3s ease-in-out infinite;
}

/* Shine effect sul badge */
.hero-badge-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(232, 155, 79, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 35px rgba(232, 155, 79, 0.6);
    }
}

.badge-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-emoji {
    font-size: 20px;
    display: inline-block;
    animation: sparkle-star 2s ease-in-out infinite;
}

@keyframes sparkle-star {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.15) rotate(10deg);
        filter: brightness(1.3);
    }
}

.badge-highlight {
    font-size: 16px;
    font-weight: 800;
    color: #e89b4f;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Animata con Effetto Onda Lettera-per-Lettera */
.hero-cta-animated {
    margin: 1.5rem 0 2rem;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.cta-wave-text {
    display: inline-block;
    font-weight: 600;
    white-space: nowrap;
    overflow-wrap: normal;
}

.cta-letter {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: inherit;
    transition: transform 0.15s ease-out, color 0.15s ease-out, text-shadow 0.15s ease-out;
    will-change: transform, color;
    transform-origin: center;
    /* GPU acceleration */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fallback per utenti con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cta-letter {
        transition: none;
        transform: scale(1) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: none !important;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    color: #e89b4f;
}

@keyframes goldShine {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRICING CAROUSEL 3D ===== */
.pricing-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 100px; /* Spazio per le frecce */
}

.pricing-carousel-wrapper {
    position: relative;
    height: 750px; /* Altezza fissa per contenere tutte le card */
    perspective: 2000px; /* Prospettiva 3D */
    overflow: visible; /* Permette di vedere i piani laterali */
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* Pricing Card nel Carousel - OPTIMIZED FOR 60FPS */
.pricing-carousel-item {
    position: absolute;
    width: 100%;
    max-width: 550px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    opacity: 0;
    pointer-events: none;

    /* GPU ACCELERATION - Prepara layer prima dell'animazione */
    will-change: transform, opacity;
    transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;

    /* Transition ottimizzata - Rimosso filter per performance */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    z-index: 1;
}

/* Card Attiva (Centro) */
.pricing-carousel-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    filter: none;
    backdrop-filter: none !important;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    image-rendering: -webkit-optimize-contrast;
}

.pricing-carousel-item.active:hover {
    transform: translate(-50%, -50%) translateY(-5px) scale(1.02) translateZ(0);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.45);
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Precedente (Sinistra) - OPTIMIZED */
.pricing-carousel-item.prev {
    opacity: 0.3;
    pointer-events: none;
    z-index: 5;
    /* Rimosso filter:blur per performance - Sostituito con opacity ridotta */
    transform: translate3d(-150%, -50%, 0) scale(0.85);
}

/* Card Successiva (Destra) - OPTIMIZED */
.pricing-carousel-item.next {
    opacity: 0.3;
    pointer-events: none;
    z-index: 5;
    /* Rimosso filter:blur per performance - Sostituito con opacity ridotta */
    transform: translate3d(50%, -50%, 0) scale(0.85);
}

/* Card Nascoste - OPTIMIZED */
.pricing-carousel-item.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.5);
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
/* Rispetta preferenza utente per animazioni ridotte (target 40-65 anni) */
@media (prefers-reduced-motion: reduce) {
    .pricing-carousel-item {
        transition: transform 0.15s ease-out,
                    opacity 0.15s ease-out;
    }

    .pricing-carousel-item.active:hover {
        transform: translate3d(-50%, -50%, 0) scale(1);
        transition: none;
    }
}

/* ===== PERFORMANCE: COMPOSITE LAYER ISOLATION ===== */
/* Forza creazione layer GPU separato per ogni card */
@media (min-width: 768px) {
    .pricing-carousel-item {
        contain: layout style paint;
        isolation: isolate;
    }
}

.pricing-card-featured {
    border: 3px solid transparent;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 50%, rgba(232, 155, 79, 0.6) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.dark-mode .pricing-card {
    background: rgba(15, 52, 96, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .pricing-card-featured {
    background-image:
        linear-gradient(rgba(15, 52, 96, 0.95), rgba(15, 52, 96, 0.95)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 50%, rgba(232, 155, 79, 0.8) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.pricing-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #082668;
    margin-bottom: 0.5rem;
}

body.dark-mode .pricing-title {
    color: #e8e9ed;
}

.pricing-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

body.dark-mode .pricing-subtitle {
    color: #a0a5b8;
}

.pricing-badge {
    display: inline-block;
    background: #00C851;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.75rem;
    position: absolute;
    top: -1.5rem;
    right: -1rem;
    transform: rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #082668;
    vertical-align: top;
    margin-right: 0.25rem;
}

body.dark-mode .price-currency {
    color: #e8e9ed;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e89b4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

body.dark-mode .price-period {
    color: #a0a5b8;
}

.pricing-logo {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
}

.lloyds-logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e89b4f 100%);
    padding: 1rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lloyds-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

body.dark-mode .lloyds-logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e89b4f 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: #1a1a1a;
}

body.dark-mode .pricing-features li {
    color: #e8e9ed;
}

.feature-excluded {
    opacity: 0.5;
}

.feature-excluded span {
    text-decoration: line-through;
}

.pricing-features svg {
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    margin-top: auto;
}

/* ===== FRECCE CAROUSEL PRICING ===== */
.pricing-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(232, 155, 79, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(232, 155, 79, 0.4);
    backdrop-filter: blur(10px);
    z-index: 100;
    backface-visibility: hidden;
}

.pricing-carousel-arrow:hover {
    background: rgba(255, 210, 160, 1);
    box-shadow: 0 8px 30px rgba(232, 155, 79, 0.7);
}

.pricing-carousel-arrow:active {
    background: rgba(240, 192, 138, 1);
}

.pricing-carousel-arrow svg {
    color: white;
    width: 24px;
    height: 24px;
}

.pricing-arrow-prev {
    left: 0;
}

.pricing-arrow-next {
    right: 0;
}

/* ===== INDICATORI CAROUSEL ===== */
.pricing-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 50;
}

.pricing-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    backface-visibility: hidden;
}

.pricing-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.pricing-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.pricing-indicator:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

body.dark-mode .pricing-indicator {
    background: rgba(232, 155, 79, 0.5);
}

body.dark-mode .pricing-indicator.active {
    background: rgba(232, 155, 79, 1);
}

/* ===== RESPONSIVE CAROUSEL - COMMENTATE (sostituite con nuove regole) ===== */
/*
VECCHIE REGOLE CAROUSEL RESPONSIVE - Causavano conflitti
Ora gestite dalle nuove regole più sotto nelle sezioni FIX URGENTE
*/

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #e89b4f;
    color: #2a1a4a;
    box-shadow: 0 4px 12px rgba(232, 155, 79, 0.2);
    font-weight: 700;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(232, 155, 79, 0.25);
}

@keyframes shake {
    0%, 100% { transform: translateY(-2px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-2deg); }
    75% { transform: translateY(-2px) rotate(2deg); }
}

.btn-secondary {
    background: rgba(232, 155, 79, 0.1);
    backdrop-filter: blur(10px);
    color: #e89b4f;
    border: 2px solid rgba(232, 155, 79, 0.35);
    font-weight: 600;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(232, 155, 79, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    background: rgba(232, 155, 79, 0.2);
    transform: translateY(-1px);
    border-color: rgba(232, 155, 79, 0.5);
    color: #fff;
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.btn-compare {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-compare:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Docs Button */
.btn-docs {
    background: linear-gradient(135deg, #e89b4f 0%, #f0c08a 100%);
    color: #2a1a4a;
    border: 2px solid rgba(232, 155, 79, 0.4);
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(232, 155, 79, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.btn-docs:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(232, 155, 79, 0.5);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(232, 155, 79, 0.3);
    }
    50% {
        box-shadow: 0 8px 28px rgba(232, 155, 79, 0.6);
    }
}

/* Docs Overlay - Rimosso completamente */
.docs-overlay {
    display: none !important;
}

/* Docs Banner - Senza overlay */
.docs-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1000;
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4), 0 15px 40px rgba(102, 126, 234, 0.3);
    max-width: 650px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    border: 3px solid rgba(102, 126, 234, 0.3);
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.docs-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

/* Light mode - Bianco */
body:not(.dark-mode) .docs-banner {
    background: #ffffff;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Dark mode - Blu notte */
body.dark-mode .docs-banner {
    background: #0f3460;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.docs-banner-content {
    position: relative;
    z-index: 1;
}

.docs-banner-close {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.docs-banner-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.docs-banner-close svg {
    color: white;
}

.docs-banner-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e89b4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
}

/* Light mode - Titolo */
body:not(.dark-mode) .docs-banner-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e89b4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode - Titolo */
body.dark-mode .docs-banner-title {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-buttons-grid {
    display: grid;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.btn-doc {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.btn-doc:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

/* Light mode - Bianco */
body:not(.dark-mode) .btn-doc {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    color: #1e293b;
}

body:not(.dark-mode) .btn-doc:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Dark mode - Blu notte */
body.dark-mode .btn-doc {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    color: #e8e9ed;
}

body.dark-mode .btn-doc:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.6);
}

.btn-doc svg {
    color: #667eea;
    flex-shrink: 0;
}

body.dark-mode .btn-doc svg {
    color: #60a5fa;
}

.btn-doc span {
    line-height: 1.4;
}


.hero-trust {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bottoni contatto nella hero section (visibili solo su mobile) */
.hero-contact-buttons {
    display: none; /* Nascosti su desktop */
}

/* Bottoni header: visibili su desktop, nascosti su mobile */
.contact-btn-header {
    display: flex;
}

.contact-btn-mobile {
    display: none;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.trust-item svg {
    color: #e89b4f;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--feature-bg);
    transition: background-color 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e89b4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0) translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body.dark-mode .feature-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Why Choose Section */
.why-choose {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a3d7a 100%);
    color: var(--white);
    overflow: hidden;
}

.why-choose-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.why-choose-background::before {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.7) 0%, rgba(255, 204, 128, 0.5) 30%, rgba(255, 212, 163, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: lavaBlob1 15s ease-in-out infinite;
    filter: blur(70px);
}

.why-choose-background::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.7) 0%, rgba(118, 75, 162, 0.5) 30%, rgba(102, 126, 234, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    animation: lavaBlob2 12s ease-in-out infinite;
    filter: blur(70px);
}

.why-choose-pattern {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.why-choose .lava-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

.why-choose .lava-blob:nth-child(1) {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(232, 155, 79, 0.4) 0%, rgba(240, 192, 138, 0.3) 25%, rgba(232, 155, 79, 0.2) 50%, transparent 70%);
    top: 5%;
    left: 0%;
    animation: lavaFloat1 18s infinite;
}

.why-choose .lava-blob:nth-child(2) {
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(218, 112, 214, 0.35) 0%, rgba(138, 43, 226, 0.25) 25%, rgba(102, 126, 234, 0.15) 50%, transparent 70%);
    top: 35%;
    right: 5%;
    animation: lavaFloat2 22s infinite;
}

.why-choose .lava-blob:nth-child(3) {
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(232, 155, 79, 0.35) 0%, rgba(240, 192, 138, 0.25) 25%, rgba(232, 155, 79, 0.15) 50%, transparent 70%);
    bottom: 0%;
    left: 20%;
    animation: lavaFloat3 25s infinite;
}

.why-choose-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1.5rem;
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.why-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    min-width: 60px;
}

.why-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.why-choose-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #e89b4f;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f5 100%);
    color: var(--text-dark);
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(232, 155, 79, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.05) 0%, transparent 60%);
    opacity: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.12),
        0 10px 30px rgba(118, 75, 162, 0.08),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border: 3px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 50%, rgba(232, 155, 79, 0.3) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

body.dark-mode .cta-content {
    background: var(--card-bg);
    background-image:
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 50%, rgba(232, 155, 79, 0.5) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(102, 126, 234, 0.2);
}

body.dark-mode .cta-section {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e89b4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cta-note::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #e89b4f 0%, #f0c08a 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(232, 155, 79, 0.3);
}

/* IVASS Section */
.ivass-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
    padding: 2rem 0;
    text-align: center;
}

body.dark-mode .ivass-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ivass-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ivass-content {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.ivass-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 500px;
}

body.dark-mode .ivass-text {
    color: rgba(255, 255, 255, 0.7);
}

.btn-ivass {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-ivass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a3d7a 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.footer-background::before {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.7) 0%, rgba(255, 204, 128, 0.5) 30%, rgba(255, 212, 163, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: lavaBlob1 15s ease-in-out infinite;
    filter: blur(70px);
}

.footer-background::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.7) 0%, rgba(118, 75, 162, 0.5) 30%, rgba(102, 126, 234, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    animation: lavaBlob2 12s ease-in-out infinite;
    filter: blur(70px);
}

.footer-pattern {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.footer .lava-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

.footer .lava-blob:nth-child(1) {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(232, 155, 79, 0.4) 0%, rgba(240, 192, 138, 0.3) 25%, rgba(232, 155, 79, 0.2) 50%, transparent 70%);
    top: 5%;
    left: 0%;
    animation: lavaFloat1 18s infinite;
}

.footer .lava-blob:nth-child(2) {
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(218, 112, 214, 0.35) 0%, rgba(138, 43, 226, 0.25) 25%, rgba(102, 126, 234, 0.15) 50%, transparent 70%);
    top: 35%;
    right: 5%;
    animation: lavaFloat2 22s infinite;
}

.footer .lava-blob:nth-child(3) {
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(232, 155, 79, 0.35) 0%, rgba(240, 192, 138, 0.25) 25%, rgba(232, 155, 79, 0.15) 50%, transparent 70%);
    bottom: 0%;
    left: 20%;
    animation: lavaFloat3 25s infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1.4;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-info li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #e89b4f;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(232, 155, 79, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(232, 155, 79, 0.5);
    background: #f0c08a;
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    color: white;
}

body.dark-mode .scroll-to-top svg {
    color: #082668;
}

/* VECCHIE REGOLE RESPONSIVE - DISABILITATE (sostituire con nuove regole più sotto) */
/*
@media (max-width: 768px) {
    VECCHIE REGOLE COMMENTATE - Causavano conflitti
}
@media (max-width: 480px) {
    VECCHIE REGOLE COMMENTATE - Causavano conflitti
}
*/

/* ===== FLOATING TRACKER BUTTON ===== */
.floating-tracker-btn {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    top: auto !important;
    left: auto !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;

    /* Gradient matching site style */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 50%, rgba(232, 155, 79, 0.9) 100%);

    /* Glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 4px 16px rgba(232, 155, 79, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);

    /* Icon color */
    color: white;

    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Performance optimization */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow, opacity;

    /* Center icon */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Subtle animation */
    animation: floatingPulse 3s ease-in-out infinite;

    /* Ensure it's always visible and not affected by parent containers */
    pointer-events: auto;

    /* Initially hidden - will be shown by JS */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

/* Visible state */
.floating-tracker-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-tracker-btn.visible:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 48px rgba(102, 126, 234, 0.4),
        0 6px 24px rgba(232, 155, 79, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.floating-tracker-btn.visible:active {
    transform: translateY(-2px) scale(1.02);
}

.floating-tracker-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

/* Animazione freccia al hover */
.floating-tracker-btn.visible:hover svg {
    transform: translateY(-3px);
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* Pulse animation for the button */
@keyframes floatingPulse {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(102, 126, 234, 0.3),
            0 4px 16px rgba(232, 155, 79, 0.2),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 12px 40px rgba(102, 126, 234, 0.4),
            0 6px 20px rgba(232, 155, 79, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }
}

/* Dark mode support */
body.dark-mode .floating-tracker-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 50%, rgba(232, 155, 79, 0.8) 100%);
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 4px 16px rgba(232, 155, 79, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Responsive - smaller on mobile */
@media (max-width: 768px) {
    .floating-tracker-btn {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .floating-tracker-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .floating-tracker-btn {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }

    .floating-tracker-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   CONTACT REVEAL SYSTEM - Bottoni e Modal
   ============================================ */

/* Bottoni Telefono e Email */
.contact-reveal-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-reveal-btn:hover {
    background: rgba(232, 155, 79, 0.25);
    border-color: rgba(232, 155, 79, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 155, 79, 0.3);
}

.contact-reveal-btn:active {
    transform: translateY(0);
}

.contact-reveal-btn svg {
    color: #e89b4f;
    flex-shrink: 0;
}

.contact-reveal-btn span {
    white-space: nowrap;
}

/* Overlay del Modal */
.contact-reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.contact-reveal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.contact-reveal-modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.contact-reveal-overlay.active .contact-reveal-modal {
    transform: scale(1) translateY(0);
}

body.dark-mode .contact-reveal-modal {
    background: var(--card-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Close Button */
.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(232, 155, 79, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.contact-modal-close:hover {
    background: rgba(232, 155, 79, 0.2);
    transform: rotate(90deg);
}

/* Modal Content */
.contact-modal-content {
    text-align: center;
}

.contact-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
    }
}

.contact-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-modal-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Form Styling */
.contact-modal-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

body.dark-mode .form-group input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

body.dark-mode .form-group input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.form-error {
    display: block;
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.privacy-notice {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.privacy-notice a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-notice a:hover {
    color: #e89b4f;
}

/* Submit Button */
.btn-submit-email {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit-email:active {
    transform: translateY(0);
}

/* Revealed Contact Info */
.contact-revealed-info {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.revealed-success {
    margin-bottom: 1.5rem;
}

.revealed-success svg {
    color: #00C851;
    margin-bottom: 1rem;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.revealed-success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00C851;
    margin: 0;
}

.revealed-contact {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(232, 155, 79, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.revealed-contact a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.05);
}

.revealed-contact a:hover {
    color: #e89b4f;
    transform: translateX(5px);
    background: rgba(232, 155, 79, 0.1);
}

.revealed-contact svg {
    color: #e89b4f;
    flex-shrink: 0;
}

.revealed-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* === NEW MODAL STYLES === */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.contact-modal-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
}

body.dark-mode .contact-modal {
    background: var(--card-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Phone Info */
.phone-info {
    margin-top: 2rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(232, 155, 79, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    justify-content: center;
}

.phone-link:hover {
    color: #e89b4f;
    border-color: rgba(232, 155, 79, 0.5);
    background: linear-gradient(135deg, rgba(232, 155, 79, 0.15) 0%, rgba(102, 126, 234, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.phone-link svg {
    flex-shrink: 0;
}

/* Email Form */
.contact-email-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    resize: vertical;
    min-height: 120px;
}

.contact-email-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-mode .contact-email-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

body.dark-mode .contact-email-form textarea:focus {
    border-color: #667eea;
}

/* Email Success Message */
.email-success-message {
    text-align: center;
    padding: 2rem 0;
}

.email-success-message .success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.email-success-message .success-icon svg {
    color: #00C851;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.email-success-message h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00C851;
    margin-bottom: 0.5rem;
}

.email-success-message p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Inverti visibilità header su mobile */
    .header-desktop {
        display: none !important;
    }

    .header-mobile {
        display: block !important;
    }

    .contact-reveal-btn span {
        display: none;
    }

    .contact-reveal-btn {
        padding: 0.6rem;
        min-width: 44px;
        justify-content: center;
    }

    .contact-reveal-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .contact-modal-title {
        font-size: 1.5rem;
    }

    .contact-modal-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-info {
        gap: 0.75rem;
    }

    .contact-reveal-modal {
        padding: 1.5rem 1rem;
    }

    .contact-modal-icon {
        width: 60px;
        height: 60px;
    }

    .contact-modal-icon svg {
        width: 32px;
        height: 32px;
    }

    .contact-modal-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   OTTIMIZZAZIONI PERFORMANCE E RESPONSIVE
   Mobile-First Enhancements (senza eliminare animazioni!)
   ============================================ */

/* === FIX URGENTE: HEADER E CAROUSEL SU MOBILE === */
@media (max-width: 768px) {
    /* FIX HEADER: Molto più compatto su mobile */
    .header {
        padding: 0.3rem 0 !important;
    }

    .header-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.3rem !important;
    }

    /* Logo e testo più piccoli e a sinistra */
    .logo {
        gap: 0.4rem !important;
    }

    .logo h2 {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }

    .logo-subtitle {
        font-size: 0.65rem !important;
        margin-top: 0.1rem !important;
    }

    .logo-shield {
        width: 26px !important;
        height: 26px !important;
    }

    /* Bottoni contatto: solo icone, più piccoli, a destra */
    .contact-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }

    .contact-reveal-btn {
        padding: 0.4rem !important;
        min-height: 32px !important;
        min-width: 32px !important;
        border-radius: 6px !important;
    }

    .contact-reveal-btn span {
        display: none !important;
    }

    .contact-reveal-btn svg {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }

    /* Nascondi TUTTI i bottoni e link nell'header su mobile (tranne dark mode toggle) */
    .contact-info button:not(.dark-mode-toggle),
    .contact-info a,
    .contact-info .contact-reveal-btn,
    .contact-info .contact-link,
    .contact-btn-header,
    .contact-link.contact-btn-header {
        display: none !important;
    }

    .hero-contact-buttons {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 2.5rem !important;
    }

    .contact-btn-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        padding: 1rem 2rem !important;
        width: 80% !important;
        max-width: 300px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 50px !important;
        color: white !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .contact-btn-mobile svg {
        width: 24px !important;
        height: 24px !important;
    }

    .contact-btn-mobile span {
        display: inline !important;
    }

    .contact-btn-mobile:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-2px) !important;
    }

    .contact-btn-mobile:active {
        background: rgba(255, 255, 255, 0.4) !important;
        transform: scale(0.95) !important;
        transition: all 0.1s ease !important;
    }

    /* Link mobile dopo reveal - stesso stile dei bottoni */
    .contact-link.contact-btn-mobile {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 1rem 2rem !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 50px !important;
        color: white !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }

    .contact-link.contact-btn-mobile:active {
        background: rgba(255, 255, 255, 0.4) !important;
        transform: scale(0.95) !important;
        transition: all 0.1s ease !important;
    }

    .contact-link.contact-btn-mobile svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Contact-link su mobile header: comportamento originale (mostra numero/email) */
    .contact-info .contact-link {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-decoration: none !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
    }

    .contact-info .contact-link svg {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0 !important;
    }

    /* Dark mode toggle più piccolo e a destra */
    .dark-mode-toggle {
        margin-right: 0 !important;
    }

    .toggle-track {
        width: 38px !important;
        height: 22px !important;
    }

    .toggle-thumb {
        width: 18px !important;
        height: 18px !important;
        top: 1px !important;
        left: 1px !important;
    }

    .toggle-thumb svg {
        width: 12px !important;
        height: 12px !important;
    }

    .dark-mode .toggle-thumb {
        transform: translateX(16px) !important;
    }

    /* FIX CAROUSEL PRICING: Altezza ridotta drasticamente */
    .pricing-carousel-wrapper {
        height: 550px !important; /* Era 700px, troppo alto! */
    }

    .pricing-carousel-item {
        max-width: 85% !important;
        padding: 1.5rem !important; /* Era 2rem */
    }

    .pricing-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }

    .pricing-price {
        padding: 1rem 0 !important;
        margin-bottom: 1rem !important;
    }

    .price-value {
        font-size: 2.2rem !important; /* Era 3rem */
    }

    .pricing-features {
        margin-bottom: 1rem !important;
    }

    .pricing-features li {
        padding: 0.5rem 0 !important;
        font-size: 0.85rem !important;
    }

    .lloyds-logo {
        font-size: 1.3rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    .pricing-logo {
        margin: 1rem 0 !important;
    }

    /* FIX HERO: Padding ridotto */
    .hero {
        padding: 4rem 0 5rem !important;
    }

    .hero-badge {
        font-size: 0.85rem !important;
        padding: 0.4rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Badge Premium Mobile */
    .hero-badge-premium {
        padding: 10px 20px !important;
        margin-bottom: 1.5rem !important;
    }

    .badge-label {
        font-size: 10px !important;
    }

    .badge-emoji {
        font-size: 18px !important;
    }

    .badge-highlight {
        font-size: 14px !important;
    }

    /* CTA Animata Mobile */
    .hero-cta-animated {
        font-size: 16px !important;
        margin: 1rem 0 1.5rem !important;
    }

    .cta-wave-text {
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Lava blobs: blur ridotto ma animazione intatta */
    .lava-blob {
        filter: blur(40px) !important;
    }

    .hero-background::before,
    .hero-background::after,
    .why-choose-background::before,
    .why-choose-background::after,
    .footer-background::before,
    .footer-background::after {
        filter: blur(35px);
    }

    .header::before,
    .header::after {
        filter: blur(25px);
    }

    /* FIX WHY CHOOSE: Layout verticale su mobile */
    .why-choose-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .why-choose-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin: 0 auto !important;
        max-width: 400px !important;
    }

    .stat-card {
        padding: 1.5rem !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .stat-label {
        font-size: 0.85rem !important;
    }
}

/* === SUPPORTO PREFERS-REDUCED-MOTION === */
/* Rispetta le preferenze utente OS per animazioni ridotte */
@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;
    }

    /* Mantieni le animazioni critiche ma più veloci */
    .pricing-carousel-item {
        transition-duration: 0.15s !important;
    }

    /* Disabilita animazioni decorative (blob, float, pulse) */
    .lava-blob,
    .hero-background::before,
    .hero-background::after,
    .why-choose-background::before,
    .why-choose-background::after,
    .footer-background::before,
    .footer-background::after,
    .header::before,
    .header::after {
        animation: none !important;
    }
}

/* === FIX EXTRA SMALL MOBILE (iPhone, piccoli Android) === */
@media (max-width: 480px) {
    /* Header ancora più compatto */
    .header {
        padding: 0.25rem 0 !important;
    }

    .header-content {
        gap: 0.25rem !important;
    }

    .logo {
        gap: 0.3rem !important;
    }

    .logo h2 {
        font-size: 0.85rem !important;
    }

    .logo-subtitle {
        font-size: 0.6rem !important;
        margin-top: 0.08rem !important;
    }

    .logo-shield {
        width: 24px !important;
        height: 24px !important;
    }

    .contact-info {
        gap: 0.3rem !important;
    }

    .contact-reveal-btn {
        padding: 0.35rem !important;
        min-height: 30px !important;
        min-width: 30px !important;
    }

    .contact-reveal-btn span {
        display: none !important;
    }

    .contact-reveal-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Contact-link su schermi piccoli: comportamento originale */
    .contact-info .contact-link {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        padding: 0.45rem 0.65rem !important;
        font-size: 0.8rem !important;
    }

    .contact-info .contact-link svg {
        width: 16px !important;
        height: 16px !important;
    }

    .toggle-track {
        width: 36px !important;
        height: 20px !important;
    }

    .toggle-thumb {
        width: 16px !important;
        height: 16px !important;
    }

    .toggle-thumb svg {
        width: 10px !important;
        height: 10px !important;
    }

    .dark-mode .toggle-thumb {
        transform: translateX(16px) !important;
    }

    /* Indicators: stesse dimensioni del desktop, spostati più in basso */
    .pricing-carousel-indicators {
        margin-top: 80px !important;
    }

    .pricing-indicator {
        width: 12px !important;
        height: 12px !important;
    }

    .pricing-indicator.active {
        width: 30px !important;
    }

    /* Carousel ancora più compatto */
    .pricing-carousel-wrapper {
        height: 500px !important;
    }

    .pricing-carousel-container {
        padding: 0 40px !important;
    }

    .pricing-carousel-item {
        max-width: 90% !important;
        padding: 1.2rem !important;
    }

    .pricing-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    .price-value {
        font-size: 2rem !important;
    }

    .price-currency {
        font-size: 1.2rem !important;
    }

    .pricing-features li {
        font-size: 0.8rem !important;
        gap: 0.5rem !important;
    }

    .pricing-features svg {
        width: 16px !important;
        height: 16px !important;
    }

    .lloyds-logo {
        font-size: 1.1rem !important;
        padding: 0.6rem 1.2rem !important;
    }

    .pricing-btn {
        padding: 0.9rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Titoli più leggibili */
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .cta-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    /* Padding ridotto */
    .container {
        padding: 0 12px !important;
    }

    .hero {
        padding: 3.5rem 0 4.5rem !important;
    }

    .features,
    .why-choose,
    .cta-section {
        padding: 3rem 0 !important;
    }

    /* Carousel arrows più piccoli */
    .pricing-carousel-arrow {
        width: 40px !important;
        height: 40px !important;
    }

    .pricing-carousel-arrow svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Indicators: stesse dimensioni del desktop, spostati più in basso */
    .pricing-carousel-indicators {
        margin-top: 80px !important;
    }

    /* Assicura che gli indicatori abbiano lo stesso stile del desktop */
    .pricing-indicator {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.5) !important;
    }

    .pricing-indicator.active {
        background: white !important;
        width: 30px !important;
        border-radius: 6px !important;
    }

    body.dark-mode .pricing-indicator {
        background: rgba(232, 155, 79, 0.5) !important;
    }

    body.dark-mode .pricing-indicator.active {
        background: rgba(232, 155, 79, 1) !important;
    }
}

/* === PERFORMANCE: WILL-CHANGE PER GPU ACCELERATION === */
.pricing-carousel-item,
.lava-blob,
.floating-tracker-btn {
    will-change: transform, opacity;
}

/* Rimuovi will-change dopo animazione per liberare memoria */
.pricing-carousel-item:not(.active):not(.prev):not(.next) {
    will-change: auto;
}

/* === OTTIMIZZAZIONE TOUCH SU MOBILE === */
@media (max-width: 768px) {
    /* Aree touch più grandi per mobile */
    button,
    .btn,
    .contact-reveal-btn,
    .pricing-carousel-arrow,
    .pricing-indicator {
        min-height: 44px; /* iOS Human Interface Guidelines */
        min-width: 44px;
    }

    /* Rimuovi hover states su touch device */
    @media (hover: none) {
        .feature-card:hover,
        .btn:hover,
        .pricing-card:hover {
            transform: none;
        }
    }
}

/* === ACCESSIBILITÀ: FOCUS VISIBLE === */
*:focus-visible {
    outline: 3px solid #e89b4f;
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    .header,
    .floating-tracker-btn,
    .contact-reveal-btn,
    .dark-mode-toggle,
    .pricing-carousel-arrow,
    .pricing-carousel-indicators {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero,
    .why-choose,
    .footer {
        background: white !important;
        color: black !important;
    }
}

/* === ULTRA-WIDE SCREENS (2K, 4K) === */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* === LANDSCAPE MOBILE (Phone in orizzontale) === */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0 4rem;
    }

    .pricing-carousel-wrapper {
        height: 600px; /* Ridotta per landscape */
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* === TABLET SPECIFICO === */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-content {
        gap: 3rem;
    }
}

/* === DARK MODE MIGLIORAMENTI === */
@media (prefers-color-scheme: dark) {
    /* Suggerisci dark mode se l'OS è in dark mode */
    body:not(.dark-mode-set) {
        /* Lascia che l'utente scelga manualmente */
    }
}

/* === SMOOTH SCROLLING POLYFILL FALLBACK === */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

/* === BACKDROP FILTER FALLBACK === */
@supports not (backdrop-filter: blur(10px)) {
    .header,
    .pricing-card,
    .contact-reveal-btn {
        background: rgba(102, 126, 234, 0.95) !important;
    }
}

/* ============================================
   FINE OTTIMIZZAZIONI
   Tutte le animazioni e il carousel sono intatti! ✅
   ============================================ */

/* ===== FOOTER MOBILE - Colonne spostate a sinistra ===== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: left !important;
    }

    .footer-column {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        padding-left: 1rem !important;
    }

    /* Nascondi sezione Servizi solo su mobile */
    .footer-servizi {
        display: none !important;
    }
}

/* Ottimizzazione footer per mobile molto piccoli */
@media (max-width: 480px) {
    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .footer-links a {
        font-size: 0.9rem;
        line-height: 1.35;
    }
}
