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

/* CSS Custom Properties (Variables) for CTA Colors */
:root {
    /* Primary CTA Colors */
    --cta-primary-color: #453575;
    --cta-primary-hover: #3a2d5f;
    
    /* Secondary CTA Colors */
    --cta-secondary-color: #453575;
    --cta-secondary-border: #453575;
    
    /* CTA Shadow Colors */
    --cta-shadow-color: rgba(69, 53, 117, 0.3);
    --cta-shadow-hover-color: rgba(69, 53, 117, 0.4);
    --cta-shadow-secondary-color: rgba(69, 53, 117, 0.2);
    
    /* CTA Text Colors */
    --cta-text-primary: white;
    --cta-text-secondary: #453575;
    --cta-text-secondary-hover: white;
    
    /* Brand Gradient */
    --brand-gradient: linear-gradient(135deg, #6669EC 0%, #7083EE 25%, #BB9FF5 75%, #CD5BED 100%);
}

/* Global Typography */
h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Quando l'h1 è nero, diventa bianco */
h1[style*="color: black"],
h1[style*="color: #000"],
h1[style*="color: #000000"] {
    color: white !important;
}

/* Brand Gradient Text */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-style: italic;
    display: inline-block;
    padding-right: 0.1em;
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(135deg, #6669EC 0%, #7083EE 25%, #BB9FF5 75%, #CD5BED 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-style: italic;
    animation: gradient-shift 3s ease infinite;
    display: inline-block;
    padding-right: 0.1em;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.italic {
    font-style: italic;
    display: inline-block;
    padding-right: 0.1em;
}

/* Waitlist Submit Button - Specific styling for waitlist forms */
.waitlist-submit-button {
    background: #453575 !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
}

.waitlist-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #3a2d5f;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.waitlist-submit-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(69, 53, 117, 0.3) !important;
}

.waitlist-submit-button:hover::before {
    opacity: 1 !important;
}

.waitlist-submit-button:active {
    transform: translateY(0) !important;
}

.waitlist-submit-button:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.waitlist-submit-button:disabled::before {
    display: none;
}

.waitlist-submit-button.loading {
    position: relative;
    color: transparent;
}

.waitlist-submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Body margin for waitlist page */
body.waitlist-page {
    margin-top: 80px;
}

/* GLOBAL: Remove ALL shadows from EVERYTHING */
* {
    box-shadow: none !important;
}

*:hover {
    box-shadow: none !important;
}

*:active {
    box-shadow: none !important;
}

*:focus {
    box-shadow: none !important;
}

*::before {
    box-shadow: none !important;
}

*::after {
    box-shadow: none !important;
}

/* Add borders to homepage elements (shadows already removed globally) */
body:not(.waitlist-page) .feature-card,
body:not(.waitlist-page) .testimonial-card,
body:not(.waitlist-page) .cta-section,
body:not(.waitlist-page) .notification,
body:not(.waitlist-page) .chatbot-window,
body:not(.waitlist-page) .tab-content,
body:not(.waitlist-page) .pricing-card {
    border: 1px solid #e9ecef !important;
}

/* Tab container and hero - no borders */
body:not(.waitlist-page) .tabs-container,
body:not(.waitlist-page) .hero-content {
    border: none !important;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-size: 2.3rem;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2a2a2a;
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 60px; /* Compensa promo banner + header mobile */
}

/* Desktop padding-top */
@media (min-width: 769px) {
    body {
        padding-top: 160px; /* Compensa promo banner + header più alto su desktop */
    }
}

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

/* Global Button Styles - Scoped to header only */
#main-header .cta-button,
header .cta-button {
    display: inline-block;
    padding: 0.63rem 1.4rem;
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#main-header .cta-button::before,
header .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cta-primary-color);
    z-index: -1;
    transition: opacity 0.3s ease;
}

#main-header .cta-button.primary,
header .cta-button.primary {
    background: var(--cta-primary-color);
    color: var(--cta-text-primary);
    border: 1.5px solid var(--cta-primary-color);
    box-shadow: 0 4px 15px var(--cta-shadow-color);
    font-weight: 500;
}

#main-header .cta-button.primary:hover,
header .cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--cta-shadow-hover-color);
    border-color: var(--cta-primary-hover);
}

#main-header .cta-button.primary:hover::before,
header .cta-button.primary:hover::before {
    background: var(--cta-primary-hover);
}

#main-header .cta-button.secondary,
header .cta-button.secondary {
    background: white;
    color: var(--cta-text-secondary);
    border: 1.5px solid var(--cta-secondary-border);
    box-shadow: 0 2px 10px var(--cta-shadow-secondary-color);
    font-weight: 500;
}

#main-header .cta-button.secondary::before,
header .cta-button.secondary::before {
    background: var(--cta-primary-color);
    opacity: 0;
}

#main-header .cta-button.secondary:hover,
header .cta-button.secondary:hover {
    color: var(--cta-text-secondary-hover);
    border-color: var(--cta-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--cta-shadow-color);
}

#main-header .cta-button.secondary:hover::before,
header .cta-button.secondary:hover::before {
    opacity: 1;
}

/* Button variants */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cta-primary-color);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary {
    background: var(--cta-primary-color);
    color: var(--cta-text-primary);
    border: 2px solid var(--cta-primary-color);
    box-shadow: 0 3px 12px var(--cta-shadow-color);
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px var(--cta-shadow-hover-color);
    border-color: var(--cta-primary-hover);
}

.btn-primary:hover::before {
    background: var(--cta-primary-hover);
}

.btn-secondary {
    background: white;
    color: var(--cta-text-secondary);
    border: 2px solid var(--cta-secondary-border);
    box-shadow: 0 2px 8px var(--cta-shadow-secondary-color);
    font-weight: 500;
}

.btn-secondary::before {
    opacity: 0;
}

.btn-secondary:hover {
    color: var(--cta-text-secondary-hover);
    border-color: var(--cta-primary-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px var(--cta-shadow-color);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Promo Banner */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #0077b6 0%, #0096c7 30%, #00b4d8 50%, #40E0D0 70%, #7FFFD4 100%);
    z-index: 1001;
    padding: 0.5rem 0;
    text-align: center;
}

.promo-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.promo-banner-content span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

/* Responsive promo banner */
@media (max-width: 768px) {
    .promo-banner {
        padding: 0.4rem 0;
    }
    
    .promo-banner-content span {
        font-size: 0.8rem;
    }
    
    header {
        top: 35px;
    }
    
    body {
        padding-top: 55px;
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    width: 100%;
    max-width: 100%;
    left: 0;
    transform: none;
    top: 40px; /* Spazio per la promo banner */
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 120px; /* Altezza doppia */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0; /* Padding aumentato per l'altezza doppia */
    min-height: 120px;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 2rem;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    font-size: 1.2rem; /* Logo più piccolo */
    font-weight: 700;
    color: #453575;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #6669EC;
    transform: scale(1.05);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 1rem 1.5rem;
    margin: -0.5rem -0.5rem;
    border-radius: 8px;
}

.nav-links a.sphera-nav-link {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.nav-links a:hover {
    color: #453575;
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -5px;
    left: 0;
    background-color: #453575;
    transition: width 0.3s ease;
}

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

/* Megamenu Styles */
.nav-item.dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sphera-nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.sphera-nav-lottie {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    vertical-align: middle;
}

.sphera-nav-link span:not(.sphera-nav-lottie) {
    line-height: 1;
    vertical-align: middle;
}

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

.nav-link::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-link::after {
    transform: rotate(180deg);
}

.megamenu {
    position: absolute;
    top: 150%;
    left: -100%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 600px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.megamenu-content {
    padding: 2rem;
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.megamenu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.megamenu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    background: #e9ecef;
}

.megamenu-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.megamenu-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.megamenu-text h4 {
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.megamenu-text p {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* CTA Buttons - Scoped to header only */
#main-header .cta-button,
header .cta-button {
    padding: 0.63rem 1.4rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

#main-header .cta-button.primary,
header .cta-button.primary {
    background: linear-gradient(135deg, #453575 0%, #5a4a8a 50%, #453575 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: white;
    border-color: #453575;
    position: relative;
    overflow: hidden;
}

#main-header .cta-button.primary::before,
header .cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent);
    animation: shimmer 4s infinite;
    z-index: 0;
}

#main-header .cta-button.primary > *,
header .cta-button.primary > * {
    position: relative;
    z-index: 1;
}

#main-header .cta-button.primary:hover,
header .cta-button.primary:hover {
    background: linear-gradient(135deg, #5a4a8a 0%, #453575 50%, #6b5ba0 100%);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(69, 53, 117, 0.3);
}

#main-header .cta-button.secondary,
header .cta-button.secondary {
    background: transparent;
    color: #453575;
    border-color: #453575;
}

#main-header .cta-button.secondary:hover,
header .cta-button.secondary:hover {
    background: #453575;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(69, 53, 117, 0.3);
}

/* Mobile header controls */
.mobile-header-controls {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile waitlist button */
.mobile-waitlist-button {
    background: var(--cta-primary-color);
    color: var(--cta-text-primary);
    border: 1.5px solid var(--cta-primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--cta-shadow-secondary-color);
}

.mobile-waitlist-button:hover {
    background: var(--cta-primary-hover);
    border-color: var(--cta-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--cta-shadow-color);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span {
    background-color: white;
}

/* Home Page Buttons - Stesso stile del bottone viola nell'header */
.hero-cta .cta-button.primary,
.pricing-cta .cta-button.primary,
.pricing-structure-cta .cta-button.primary {
    background: linear-gradient(135deg, #453575 0%, #5a4a8a 50%, #453575 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: white;
    border-color: #453575;
    padding: 0.63rem 1.4rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-cta .cta-button.primary::before,
.pricing-cta .cta-button.primary::before,
.pricing-structure-cta .cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent);
    animation: shimmer 4s infinite;
    z-index: 0;
}

.hero-cta .cta-button.primary > *,
.pricing-cta .cta-button.primary > *,
.pricing-structure-cta .cta-button.primary > * {
    position: relative;
    z-index: 1;
}

.hero-cta .cta-button.primary:hover,
.pricing-cta .cta-button.primary:hover,
.pricing-structure-cta .cta-button.primary:hover {
    background: linear-gradient(135deg, #5a4a8a 0%, #453575 50%, #6b5ba0 100%);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(69, 53, 117, 0.3);
    border-color: #3a2d5f;
}

.hero-cta .cta-button.secondary {
    background: transparent;
    color: #453575;
    border-color: #453575;
    padding: 0.63rem 1.4rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #453575;
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-cta .cta-button.secondary:hover {
    background: #453575;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(69, 53, 117, 0.3);
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding: 4rem 0;
    background: white;
    color: #2c3e50;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}


.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #5a6c7d;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.hero-image-placeholder:hover {
    background-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 8px;
}

/* Hero Animated Visual - Immagine centrale con rettangoli orbitanti */
.hero-animated-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    max-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin: 0 auto;
}

.hero-center-person {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 60%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-person-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.center-person-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD6CC 0%, #FFE5CC 100%);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.person-svg {
    width: 100%;
    height: 100%;
}

/* Linee di connessione */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    opacity: 0.4;
}

/* Rettangoli laterali */
.orbiting-rectangle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    min-width: 140px;
    height: 50px;
    transform-origin: center center;
    z-index: 5;
}

.rectangle-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    padding: 0 1rem;
    white-space: nowrap;
}

.orbiting-rectangle:hover .rectangle-content {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 105, 236, 0.2);
    border-color: rgba(102, 105, 236, 0.3);
}

.rectangle-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

/* Movimento leggero per i rettangoli - Sinistra e destra */
/* Coordinate SVG: sinistra x=15%, destra x=85%, y=30%, 50%, 70% */
/* Convertite in pixel: se il contenitore è 500px, 15% = 75px dal bordo, quindi -175px dal centro */
/* Rettangoli sinistra: rect-1, rect-2, rect-3 */
.rect-1 {
    animation: float-left-1 5s ease-in-out infinite;
    transform: translate(-50%, -50%) translateX(-250px) translateY(-100px);
}

.rect-2 {
    animation: float-left-2 5.5s ease-in-out infinite;
    transform: translate(-50%, -50%) translateX(-300px) translateY(0px);
}

.rect-3 {
    animation: float-left-3 4.8s ease-in-out infinite;
    transform: translate(-50%, -50%) translateX(-250px) translateY(100px);
}

/* Rettangoli destra: rect-4, rect-5, rect-6 */
.rect-4 {
    animation: float-right-1 5.2s ease-in-out infinite;
    transform: translate(-50%, -50%) translateX(250px) translateY(-100px);
}

.rect-5 {
    animation: float-right-2 4.9s ease-in-out infinite;
    transform: translate(-50%, -50%) translateX(300px) translateY(0px);
}

.rect-6 {
    animation: float-right-3 5.3s ease-in-out infinite;
    transform: translate(-50%, -50%) translateX(250px) translateY(100px);
}

/* Animazioni movimento leggero sinistra */
@keyframes float-left-1 {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(-250px) translateY(-100px);
    }
    50% {
        transform: translate(-50%, -50%) translateX(-255px) translateY(-105px);
    }
}

@keyframes float-left-2 {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(-300px) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateX(-305px) translateY(-5px);
    }
}

@keyframes float-left-3 {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(-250px) translateY(100px);
    }
    50% {
        transform: translate(-50%, -50%) translateX(-255px) translateY(105px);
    }
}

/* Animazioni movimento leggero destra */
@keyframes float-right-1 {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(250px) translateY(-100px);
    }
    50% {
        transform: translate(-50%, -50%) translateX(255px) translateY(-105px);
    }
}

@keyframes float-right-2 {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(300px) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateX(305px) translateY(-5px);
    }
}

@keyframes float-right-3 {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(250px) translateY(100px);
    }
    50% {
        transform: translate(-50%, -50%) translateX(255px) translateY(105px);
    }
}

/* Tablet responsive per hero */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-layout {
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-image-placeholder {
        height: 350px;
    }
    
    .hero-animated-visual {
        max-width: 400px;
        max-height: 400px;
    }
    
    .hero-center-person {
        max-width: 320px;
        aspect-ratio: 3 / 4;
    }
    
    .orbiting-rectangle {
        min-width: 120px;
        height: 45px;
    }
    
    .rectangle-content {
        padding: 0 0.8rem;
    }
    
    /* Rettangoli sinistra tablet */
    .rect-1 {
        transform: translate(-50%, -50%) translateX(-200px) translateY(-80px);
    }
    
    .rect-2 {
        transform: translate(-50%, -50%) translateX(-240px) translateY(0px);
    }
    
    .rect-3 {
        transform: translate(-50%, -50%) translateX(-200px) translateY(80px);
    }
    
    /* Rettangoli destra tablet */
    .rect-4 {
        transform: translate(-50%, -50%) translateX(200px) translateY(-80px);
    }
    
    .rect-5 {
        transform: translate(-50%, -50%) translateX(240px) translateY(0px);
    }
    
    .rect-6 {
        transform: translate(-50%, -50%) translateX(200px) translateY(80px);
    }
    
    .rectangle-text {
        font-size: 0.75rem;
    }
    
    /* Benefits tablet layout */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .benefit-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Audience tablet layout */
    .audience {
        padding: 4rem 0;
    }
    
    .audience h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .audience-item {
        flex-direction: column !important;
        gap: 4rem;
        margin-bottom: 7rem;
        padding: 0 1.5rem;
    }
    
    .audience-content {
        max-width: 100%;
        text-align: center;
    }
    
    .audience-content h3 {
        font-size: 2rem;
    }
    
    .audience-visual {
        max-width: 100%;
    }
    
    .audience-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Services tablet layout */
    .services-title {
        font-size: 2.2rem;
    }
    
    .services-description {
        font-size: 1.05rem;
    }
    
    .specializations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .specialization-box {
        font-size: 0.95rem;
        padding: 1.2rem;
    }
    
    /* Sphera tablet layout */
    .sphera-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sphera-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .sphera-ai-sphere {
        width: 350px;
        height: 350px;
        margin: 0 auto;
    }
    
    .sphera-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
}

/* Benefits Section - 4 Box Grid */
.benefits {
    padding: 4rem 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefit-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: benefit-fade-in 0.6s ease-out forwards;
    opacity: 0;
}

.benefit-box:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-box:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-box:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-box:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes benefit-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.benefit-icon {
    margin-bottom: 1rem;
    animation: icon-float 3s ease-in-out infinite;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-box:nth-child(1) .benefit-icon {
    animation-delay: 0s;
}

.benefit-box:nth-child(2) .benefit-icon {
    animation-delay: 0.5s;
}

.benefit-box:nth-child(3) .benefit-icon {
    animation-delay: 1s;
}

.benefit-box:nth-child(4) .benefit-icon {
    animation-delay: 1.5s;
}

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

.benefit-box h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
}

.benefit-box p {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Audience Section - Two Large Boxes */
.audience {
    padding: 6rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.audience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 105, 236, 0.3), transparent);
}

.audience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Audience Item - Layout alternato */
.audience-item {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 10rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    position: relative;
    opacity: 0;
    animation: audience-fade-in 0.8s ease-out forwards;
}

.audience-item-left {
    flex-direction: row;
}

.audience-item-right {
    flex-direction: row;
}

.audience-item:nth-child(2) {
    animation-delay: 0.2s;
}

.audience-item:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes audience-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Audience Content */
.audience-content {
    flex: 1;
    max-width: 600px;
}

.audience-badge {
    margin-bottom: 1.5rem;
}

.audience-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.audience-badge .gradient-text-animated {
    font-style: normal;
}

.audience-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.audience-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audience-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #2c3e50;
    background: white;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: feature-slide-in 0.5s ease-out forwards;
    width: fit-content;
    max-width: 100%;
}

.audience-features li:nth-child(1) {
    animation-delay: 0.1s;
}

.audience-features li:nth-child(2) {
    animation-delay: 0.2s;
}

.audience-features li:nth-child(3) {
    animation-delay: 0.3s;
}

.audience-features li:nth-child(4) {
    animation-delay: 0.4s;
}

.audience-features li:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes feature-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CTA per Audience - Stesso stile dei pulsanti header */
.audience-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.63rem 1.4rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    margin-top: 2rem;
    background: #453575;
    color: white;
    border-color: #453575;
}

.audience-cta:hover {
    background: #3a2d5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.audience-cta svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.audience-cta:hover svg {
    transform: translateX(3px);
}

.audience-features li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(102, 105, 236, 0.15);
    border-color: rgba(102, 105, 236, 0.3);
}

.feature-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 4px;
    background: linear-gradient(135deg, #6669EC 0%, #CD5BED 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Audience Visual */
.audience-visual {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.audience-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 105, 236, 0.05) 0%, rgba(205, 91, 237, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

/* Immagini sovrapposte per Pazienti e Caregiver */
.audience-images-overlap {
    aspect-ratio: auto;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
    width: 100%;
    min-height: 500px;
}

.audience-image {
    width: 55%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.6s ease;
    position: absolute;
    top: 50%;
    display: block;
}

.audience-image-1 {
    z-index: 2;
    left: 5%;
    transform: translateY(-30%) rotate(-2deg);
    animation: image-float-1 4s ease-in-out infinite;
}

.audience-image-2 {
    z-index: 1;
    right: 5%;
    transform: translateY(-70%) rotate(2deg);
    animation: image-float-2 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes image-float-1 {
    0%, 100% {
        transform: translateY(-30%) translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-30%) translateY(-8px) rotate(-1deg);
    }
}

@keyframes image-float-2 {
    0%, 100% {
        transform: translateY(-70%) translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-70%) translateY(8px) rotate(1deg);
    }
}

.audience-item:hover .audience-image-1 {
    transform: translateY(-30%) translateY(-5px) rotate(-1deg) scale(1.02);
}

.audience-item:hover .audience-image-2 {
    transform: translateY(-70%) translateY(5px) rotate(1deg) scale(1.02);
}

.audience-item:hover .audience-image-wrapper {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(102, 105, 236, 0.15);
}

/* Immagini sovrapposte per Professionisti Sanitari - Animazione orizzontale */
.audience-images-overlap-horizontal {
    aspect-ratio: auto;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
    width: 100%;
    min-height: 500px;
}

.audience-image-prof-1 {
    z-index: 2;
    left: 5%;
    transform: translateY(-30%) translateX(-10px) rotate(-2deg);
    animation: image-float-horizontal-1 4s ease-in-out infinite;
}

.audience-image-prof-2 {
    z-index: 1;
    right: 5%;
    transform: translateY(-70%) translateX(10px) rotate(2deg);
    animation: image-float-horizontal-2 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes image-float-horizontal-1 {
    0%, 100% {
        transform: translateY(-30%) translateX(-10px) rotate(-2deg);
    }
    50% {
        transform: translateY(-30%) translateX(10px) rotate(-1deg);
    }
}

@keyframes image-float-horizontal-2 {
    0%, 100% {
        transform: translateY(-70%) translateX(10px) rotate(2deg);
    }
    50% {
        transform: translateY(-70%) translateX(-10px) rotate(1deg);
    }
}

.audience-item:hover .audience-image-prof-1 {
    transform: translateY(-30%) translateX(-5px) rotate(-1deg) scale(1.02);
}

.audience-item:hover .audience-image-prof-2 {
    transform: translateY(-70%) translateX(5px) rotate(1deg) scale(1.02);
}

.audience-svg {
    width: 100%;
    height: 100%;
    animation: svg-pulse 4s ease-in-out infinite;
}

@keyframes svg-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: float-random 6s ease-in-out infinite;
}

.floating-element.el-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.el-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element.el-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float-random {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(-5px, -25px) rotate(-5deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(3deg);
    }
}


/* Features Section - Tabs */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

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

.tab-panel-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.features-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.features-image-placeholder {
    width: 300px;
    height: 500px;
    background-color: #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.features-image-placeholder:hover {
    background-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.features-image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 12px;
}

.features-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Tab Navigation - GENERALE per tutto il sito */
.tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    z-index: 2;
    text-align: center;
}

.tab-button:hover {
    color: #453575;
}

.tab-button.active {
    background: transparent;
    color: #453575;
    border: 1px solid #453575;
}


.tab-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 350px;
    max-width: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
    display: block;
}

.tab-panel-content {
    text-align: left;
}


.tab-panel h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    margin-left: 0;
    margin-right: 0;
}

.tab-panel p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.8rem 0;
    font-size: 1.27rem;
    color: #5a6c7d;
    line-height: 1.6;
    font-weight: 400;
    border: none;
    position: relative;
    padding-left: 2rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #453575 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


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

/* About Section */
/* Partnerships Section */
.partnerships {
    padding: 5rem 0;
    background: #f8f9fa;
    text-align: center;
}

.partnerships-content {
    max-width: 1200px;
    margin: 0 auto;
}

.partnerships-content h2 {
    font-size: 2.3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.partnerships-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partnership-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 200px;
}

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

.partnership-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    width: auto;
    height: auto;
}

.about {
    padding: 5rem 0;
    background: #f8f9fa;
    text-align: center;
}

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

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta {
    margin-top: 2.5rem;
}

.about-cta .cta-button {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
}

/* Sphera Section - Blu a Verde Acqua */
.sphera {
    padding: 5rem 0;
    background: linear-gradient(to right, #0077b6 0%, #0096c7 30%, #00b4d8 50%, #40E0D0 70%, #7FFFD4 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sphera::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #0077b6 0%, #0096c7 30%, #00b4d8 50%, #40E0D0 70%, #7FFFD4 100%);
    background-size: 200% 200%;
    animation: gradient-flow 8s ease infinite;
    opacity: 1;
    z-index: 1;
}

.sphera::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 150, 199, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 224, 208, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(0, 119, 182, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(127, 255, 212, 0.2) 0%, transparent 60%);
    background-size: 60px 60px, 60px 60px, 500px 500px, 500px 500px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    animation: grid-move 15s linear infinite, pulse-glow 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes grid-move {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 50px 50px, 50px 50px, 100px 100px, -100px -100px;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Tech Elements - Animated Background */
.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Tech Circles */
.tech-circle {
    position: absolute;
    border: 2px solid rgba(102, 105, 236, 0.4);
    border-radius: 50%;
    animation: float-circle 8s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    border-color: rgba(102, 105, 236, 0.5);
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    border-color: rgba(205, 91, 237, 0.5);
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
    border-color: rgba(102, 105, 236, 0.4);
}

@keyframes float-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.5;
    }
}

/* Tech Lines */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(102, 105, 236, 0.6), transparent);
    height: 2px;
    animation: move-line 6s linear infinite;
}

.line-1 {
    width: 300px;
    top: 25%;
    left: -300px;
    animation-delay: 0s;
    background: linear-gradient(90deg, transparent, rgba(102, 105, 236, 0.6), transparent);
}

.line-2 {
    width: 250px;
    top: 50%;
    right: -250px;
    animation-delay: 2s;
    background: linear-gradient(90deg, transparent, rgba(205, 91, 237, 0.6), transparent);
    transform: rotate(45deg);
}

.line-3 {
    width: 200px;
    bottom: 30%;
    left: -200px;
    animation-delay: 4s;
    background: linear-gradient(90deg, transparent, rgba(102, 105, 236, 0.5), transparent);
    transform: rotate(-30deg);
}

@keyframes move-line {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 300px)) translateY(0);
        opacity: 0;
    }
}

/* Tech Dots */
.tech-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(64, 224, 208, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(64, 224, 208, 0.8), 0 0 20px rgba(64, 224, 208, 0.6);
    animation: pulse-dot 3s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: rgba(0, 119, 182, 0.9);
    box-shadow: 0 0 10px rgba(0, 119, 182, 0.9), 0 0 20px rgba(0, 119, 182, 0.7);
}

.dot-2 {
    top: 40%;
    right: 25%;
    animation-delay: 0.75s;
    background: rgba(0, 150, 199, 0.9);
    box-shadow: 0 0 10px rgba(0, 150, 199, 0.9), 0 0 20px rgba(0, 150, 199, 0.7);
}

.dot-3 {
    bottom: 30%;
    left: 30%;
    animation-delay: 1.5s;
    background: rgba(0, 180, 216, 0.8);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.8), 0 0 20px rgba(0, 180, 216, 0.6);
}

.dot-4 {
    top: 60%;
    right: 15%;
    animation-delay: 2.25s;
    background: rgba(127, 255, 212, 0.8);
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.8), 0 0 20px rgba(127, 255, 212, 0.6);
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.sphera-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Colonna Sinistra: Titolo e Features */
.sphera-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sphera-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

/* Colonna Destra: Immagine Sferica */
.sphera-right-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphera-lottie-right-container {
    min-width: 300px;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphera-lottie-right-container svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(127, 255, 212, 0.4));
}

.sphera-ai-sphere {
    width: 400px;
    height: 400px;
    position: relative;
    animation: sphere-float 6s ease-in-out infinite;
}

.sphera-ai-sphere svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(0, 150, 199, 0.4));
}

.sphere-main {
    animation: sphere-pulse 4s ease-in-out infinite;
}

.sphere-inner {
    animation: sphere-rotate 20s linear infinite;
    transform-origin: 250px 250px;
}

.sphere-glow {
    animation: sphere-glow-pulse 3s ease-in-out infinite;
}

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

@keyframes sphere-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

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

@keyframes sphere-glow-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Colonna Centro: Immagine AI */
.sphera-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sphera-ai-circle {
    width: 300px;
    height: 300px;
    position: relative;
    animation: ai-pulse 4s ease-in-out infinite;
}

.sphera-ai-circle svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(64, 224, 208, 0.5));
}

.ai-outer-circle {
    animation: ai-rotate 20s linear infinite;
    transform-origin: 200px 200px;
}

.ai-middle-circle {
    animation: ai-rotate-reverse 15s linear infinite;
    transform-origin: 200px 200px;
}

.ai-inner-circle {
    animation: ai-pulse-glow 3s ease-in-out infinite;
}

.ai-core {
    animation: ai-core-pulse 2s ease-in-out infinite;
}

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

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

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

@keyframes ai-pulse-glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes ai-core-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Wrapper per titolo e Lottie */
.sphera-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.sphera-lottie-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphera-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    flex: 1;
}

.sphera-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    margin: 0 0 2rem 0;
    text-align: left;
}

.sphera-text h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 2.8rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Quando l'h1 nella sezione Sphera è nero, diventa bianco */
.sphera-text h1[style*="color: black"],
.sphera-text h1[style*="color: #000"],
.sphera-text h1[style*="color: #000000"] {
    color: white !important;
}

.sphera-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}


.sphera-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
}

.sphera-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.sphera-feature {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-height: auto;
    height: auto;
}

.sphera-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.sphera-feature-icon {
    display: none;
}

.sphera-feature-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.sphera-feature-content p {
    font-size: 1rem;
    color: #e8e8e8;
    margin: 0;
    line-height: 1.5;
}

.sphera-conclusion {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
    font-weight: 500;
    font-style: italic;
}

.sphera-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

/* Chat Wireframe Styles */
.chat-container {
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #453575 0%, #7c3aed 100%);
}

.chat-title-block {
    width: 80px;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-action-dot {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.user-message {
    justify-content: flex-end;
}

.sphera-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #453575 0%, #7c3aed 100%);
    flex-shrink: 0;
}

.message-content {
    max-width: 85%;
    padding: 0.75rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.user-message .message-content {
    background: rgba(69, 53, 117, 0.1);
    border-bottom-right-radius: 5px;
}

.sphera-message .message-content {
    background: rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 5px;
}

.message-line {
    height: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.message-line.short {
    width: 60%;
}

.message-line.medium {
    width: 80%;
}

.message-line.long {
    width: 100%;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem !important;
    justify-content: flex-start;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.input-field {
    flex: 1;
    height: 35px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.send-button {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #453575 0%, #7c3aed 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Typing animation */
@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}
}

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

@keyframes particleFloat {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: white;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.services-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    max-width: 900px;
    margin: 0 auto 3rem;
}

/* Specializations Grid */
.specializations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.specialization-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.2rem 2rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: specialization-appear 0.6s ease-out forwards;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialization-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 105, 236, 0.1), transparent);
    transition: left 0.5s ease;
}

.specialization-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 105, 236, 0.05) 0%, rgba(205, 91, 237, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialization-box:hover::before {
    left: 100%;
}

.specialization-box:hover::after {
    opacity: 1;
}

.specialization-box:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: rgba(102, 105, 236, 0.4);
    box-shadow: 0 12px 32px rgba(102, 105, 236, 0.25);
    color: #453575;
}

.specialization-box:nth-child(1) {
    animation-delay: 0.1s;
}

.specialization-box:nth-child(2) {
    animation-delay: 0.15s;
}

.specialization-box:nth-child(3) {
    animation-delay: 0.2s;
}

.specialization-box:nth-child(4) {
    animation-delay: 0.25s;
}

.specialization-box:nth-child(5) {
    animation-delay: 0.3s;
}

.specialization-box:nth-child(6) {
    animation-delay: 0.35s;
}

.specialization-box:nth-child(7) {
    animation-delay: 0.4s;
}

.specialization-box:nth-child(8) {
    animation-delay: 0.45s;
}

.specialization-box:nth-child(9) {
    animation-delay: 0.5s;
}

.specialization-box:nth-child(10) {
    animation-delay: 0.55s;
}

.specialization-box:nth-child(11) {
    animation-delay: 0.6s;
}

.specialization-box:nth-child(12) {
    animation-delay: 0.65s;
}

.specialization-box:nth-child(13) {
    animation-delay: 0.7s;
}

.specialization-box:nth-child(14) {
    animation-delay: 0.75s;
}


@keyframes specialization-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.services-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.services-layout .tabs-nav {
    flex-direction: column;
    width: 320px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.services-layout .tab-button {
    justify-content: flex-start;
    text-align: left;
}

.services-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    background: transparent;
}


.services-image {
    flex: 0 0 340px;
}

.services-professional-image {
    width: 340px;
    height: 600px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-professional-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.services-text {
    flex: 1;
}

.services-text .cta-button {
    margin-top: 1.5rem;
    display: inline-block;
}

.services-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
}

.services-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #5a6c7d;
    display: block;
    padding: 0.5rem 0;
}

.category-underline {
    height: 2px;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.category-item.active .category-name {
    color: #2c3e50;
    font-weight: 600;
}

.category-item.active .category-underline {
    background: #2c3e50;
}

.category-item:hover .category-name {
    color: #2c3e50;
}

.category-item:hover .category-underline {
    background: #2c3e50;
}

.services-visual {
    position: relative;
}

.visual-image {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 3rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.image-placeholder {
    font-size: 1.2rem;
    color: #5a6c7d;
    text-align: center;
}

.overlay-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--cta-primary-color);
    border: 5px solid transparent;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cta-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--cta-shadow-color);
    position: relative;
    overflow: hidden;
}

.overlay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cta-primary-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.overlay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--cta-shadow-hover-color);
}

.overlay-button:hover::before {
    opacity: 1;
}

.button-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.overlay-notification {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    max-width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notification-icon {
    background: #453575;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.services-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.services-cta p {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.6;
}

.cta-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.cta-link:hover {
    color: #453575;
    border-bottom-color: #453575;
}

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

/* User Benefits Section */
.user-benefits {
    padding: 5rem 0;
    background: white;
}

.user-benefits h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.benefits-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.benefits-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefits-column.center {
    justify-content: center;
    align-items: center;
}

.benefits-image-placeholder {
    width: 400px;
    height: 400px;
    background-color: #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefits-image-placeholder:hover {
    background-color: #cbd5e1;
    transform: translateY(-2px);
}

.benefit-box {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.benefit-box:hover {
    transform: translateY(-2px);
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    margin-bottom: 1.5rem;
    display: block;
    text-align: left;
    height: 48px;
    width: 48px;
}

.benefit-icon svg {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.benefit-box:hover .benefit-icon svg {
    transform: scale(1.1);
}

.benefit-box h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.benefit-box p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

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

.benefits-cta .cta-button {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #f8f9fa;
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
}

.testimonials-slider:active {
    cursor: grabbing;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.1s linear;
}

.testimonial-card {
    flex: 0 0 420px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}


.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a6c7d;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    font-size: 0.95rem;
    color: #2c3e50;
    margin: 0 0 0.3rem 0;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: #453575;
    font-weight: 500;
}

.testimonial-rating {
    font-size: 1.2rem;
    color: #f39c12;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.pricing-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #453575;
}

.pricing-card.featured {
    border: 2px solid transparent;
    transform: scale(1.05);
    position: relative;
    overflow: hidden;
    background: white;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(to right, #0077b6 0%, #0096c7 30%, #00b4d8 50%, #40E0D0 70%, #7FFFD4 100%);
    border-radius: 12px;
    z-index: 0;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 10px;
    z-index: 1;
}

.pricing-card.featured > * {
    position: relative;
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #0077b6 0%, #0096c7 30%, #00b4d8 50%, #40E0D0 70%, #7FFFD4 100%);
    background-size: 200% 200%;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.4);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite, gradient-shift 4s ease infinite;
    border: 2px solid white;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 500;
    color: #453575;
    display: inline-block;
    margin: 0;
    line-height: 1.2;
}

/* Fix per testo in corsivo - previene il taglio a destra */
.price-amount[class*="gradient-text"],
.price-amount.gradient-text,
h1.gradient-text,
h1[class*="gradient-text"] {
    padding-right: 0.1em;
}

.pricing-card .price-amount.gradient-text {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    display: inline-block;
    padding-right: 0.1em;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

.price-old {
    font-size: 1.5rem;
    color: #9ca3af;
    text-decoration: line-through;
    display: inline-block;
    font-weight: 400;
    margin: 0;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-features li:first-child {
    padding-top: 0;
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .cta-button {
    width: 100%;
    justify-content: center;
}

/* Pricing Structure Box */
.pricing-structure-box {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.pricing-structure-box:hover {
    transform: translateY(-5px);
    border-color: #453575;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pricing-structure-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-structure-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pricing-structure-content p {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.pricing-structure-cta {
    margin-top: 1.5rem;
}

.pricing-structure-cta .cta-button {
    display: inline-flex;
    justify-content: center;
}

/* Pricing Manual Section */
.pricing-manual-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-manual-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    margin: 0 0 2rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.pricing-manual-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: #453575;
    border: 2px solid #453575;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-manual-button .pdf-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pricing-manual-button:hover {
    background: #453575;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(69, 53, 117, 0.3);
}

.pricing-manual-button:active {
    transform: translateY(0);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #453575 0%, #5a4a8a 50%, #6b5ba0 100%);
    padding: 4rem 0;
    width: 100%;
    color: white;
}

.newsletter-container {
    max-width: 1400px;
}

.newsletter-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    color: white;
    line-height: 1.3;
}

.gradient-text-newsletter {
    background: linear-gradient(135deg, #0077b6 0%, #0096c7 30%, #00b4d8 50%, #40E0D0 70%, #7FFFD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.newsletter-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-type-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.newsletter-type-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-type-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #453575;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.newsletter-type-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.newsletter-form {
    display: none;
}

.newsletter-form.active {
    display: block;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 1rem;
    background-color: white;
}

.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus,
.newsletter-form select:focus {
    outline: none;
    border-color: #453575;
}

.newsletter-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23453575' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.newsletter-form select option {
    padding: 0.5rem;
}

.newsletter-form .form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.newsletter-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
}

.newsletter-form .checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #453575;
    flex-shrink: 0;
}

.newsletter-form .checkbox-label a {
    color: #453575;
    text-decoration: underline;
}

.newsletter-form .checkbox-label a:hover {
    color: #5a4a8a;
}

.newsletter-submit-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #0077b6 0%, #0096c7 30%, #00b4d8 50%, #40E0D0 70%, #7FFFD4 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.newsletter-submit-btn:hover {
    background: linear-gradient(135deg, #0096c7 0%, #00b4d8 30%, #40E0D0 50%, #7FFFD4 70%, #0077b6 100%);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 199, 0.5);
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.newsletter-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Newsletter Mobile Responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 3rem 0;
    }
    
    .newsletter-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .newsletter-content {
        text-align: center;
    }
    
    .newsletter-content h1 {
        font-size: 2rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
    
    .newsletter-form-container {
        padding: 1.5rem;
    }
}

/* Footer */
footer {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 4rem 0 2rem;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 4rem;
}

.footer-branding {
    flex: 0 0 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

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


.footer-tagline {
    font-size: 1rem;
    color: #5a6c7d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.footer-social .social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-social .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

.footer-social .social-icon.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.footer-social .social-icon.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.footer-social .social-icon.tiktok:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.footer-cta-button {
    display: inline-block;
    background: white;
    color: #2c3e50;
    border: 5px solid #e9ecef;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cta-primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-cta-button:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-cta-button:hover::before {
    opacity: 1;
}

.footer-navigation {
    display: flex;
    gap: 3rem;
    flex: 1;
    justify-content: flex-end;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

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

.footer-column a {
    color: #5a6c7d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #453575;
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-bottom-row:last-child {
    margin-bottom: 0;
}

.footer-bottom-row-1 {
    flex-wrap: wrap;
}

.footer-bottom-row-1 p {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6c7d;
    flex: 1;
    min-width: 150px;
}

.footer-bottom-row-2 {
    justify-content: center;
    text-align: center;
}

.footer-copyright-text {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6c7d;
    font-style: italic;
    max-width: 100%;
    line-height: 1.6;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6c7d;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
}

.footer-company-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #5a6c7d;
    line-height: 1.3;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    font-family: 'Poppins', sans-serif;
    display: none; /* Chatbot nascosto */
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.chatbot-info-bubble {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1.5px solid #d1d5db;
    position: relative;
    max-width: 200px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.bubble-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bubble-text {
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.3;
}

.bubble-arrow {
    width: 0;
    height: 0;
    border-right: 8px solid rgba(255, 255, 255, 0.9);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
}

.bubble-arrow::before {
    content: '';
    position: absolute;
    right: -9px;
    top: -8px;
    width: 0;
    height: 0;
    border-right: 9px solid #d1d5db;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}


.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--cta-primary-color);
    border: 5px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--cta-shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cta-primary-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--cta-shadow-hover-color);
}

.chatbot-toggle:hover::before {
    opacity: 1;
}

.chatbot-toggle:hover + .chatbot-info-bubble,
#chatbot-container:hover .chatbot-info-bubble {
    opacity: 1;
    transform: translateX(0);
}

.chatbot-toggle.active {
    background: #e74c3c;
}

.chatbot-toggle.active:hover {
    background: #c0392b;
}

.chatbot-icon {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.chatbot-header {
    background: #453575;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chatbot-avatar {
    font-size: 1.5rem;
}

.chatbot-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.chatbot-message {
    display: flex;
    margin-bottom: 0.5rem;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    position: relative;
}

.chatbot-message.user .message-content {
    background: #453575;
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-message.bot .message-content {
    background: #f8f9fa;
    color: #2c3e50;
    border-bottom-left-radius: 4px;
    border: 1px solid #e9ecef;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
}

.chatbot-message.bot .message-time {
    text-align: left;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #453575;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.chatbot-input-container {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem;
}

#chatbot-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    color: #2c3e50;
}

#chatbot-input::placeholder {
    color: #95a5a6;
}

.chatbot-send-btn {
    background: var(--cta-primary-color);
    border: none;
    color: var(--cta-text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.chatbot-send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cta-primary-hover);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
}

.chatbot-send-btn:hover::before {
    opacity: 1;
}

.chatbot-send-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.chatbot-send-btn:disabled::before {
    display: none;
}

.chatbot-footer {
    text-align: center;
    margin-top: 0.5rem;
}

.chatbot-footer small {
    font-size: 0.7rem;
    color: #95a5a6;
}

.chatbot-footer a {
    color: #453575;
    text-decoration: none;
}

.chatbot-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */

/* Large desktop responsive */
@media (min-width: 1200px) {
    .benefits-layout {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4rem;
        max-width: 1200px;
    }
    
    .benefits-image-placeholder {
        width: 420px;
        height: 420px;
    }
}

/* Desktop medium */
@media (max-width: 1199px) and (min-width: 1025px) {
    .benefits-layout {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
        max-width: 1000px;
    }
    
    .benefits-image-placeholder {
        width: 380px;
        height: 380px;
    }
    
    .benefit-box {
        padding: 1.3rem;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .benefits-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
    }
    
    .benefits-column {
        gap: 1.5rem;
    }
    
    .benefits-column.left,
    .benefits-column.right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .benefits-image-placeholder {
        width: 320px;
        height: 320px;
    }
    
    .benefit-box {
        padding: 1.3rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
    }
    
    .pricing-card {
        padding: 1.8rem;
    }
    
    .pricing-structure-box {
        padding: 2rem;
        max-width: 800px;
    }
    
    .pricing-structure-content h3 {
        font-size: 1.5rem;
    }
    
    .pricing-structure-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    nav {
        padding: 1rem 0;
        min-height: 80px;
    }
    
    header {
        min-height: 80px;
    }
    
    .header-right {
        display: none; /* Nascondi i CTA su mobile */
    }
    
    .mobile-header-controls {
        display: flex; /* Mostra i controlli mobile */
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-links a {
        padding: 0.8rem 1rem;
        margin: -0.3rem -0.3rem;
        font-size: 10px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Mobile menu overlay */
    .nav-links.mobile-open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 75% !important;
        height: 100vh !important;
        background: #453575 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 2rem 1rem !important;
        z-index: 1000 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        box-sizing: border-box !important;
    }
    
    .nav-links.mobile-open.show {
        transform: translateX(0) !important;
    }
    
    .nav-links.mobile-open .mobile-logo {
        margin-bottom: 3rem;
    }
    
    .nav-links.mobile-open .mobile-logo img {
        height: 40px;
        filter: brightness(0) invert(1);
    }
    
    .nav-links.mobile-open li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links.mobile-open a {
        color: white !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        width: 100% !important;
        display: block !important;
    }
    
    .nav-links.mobile-open a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .mobile-cta-buttons {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .mobile-cta-buttons .cta-button {
        width: 100% !important;
        text-align: center !important;
        padding: 0.8rem 1.8rem !important;
        font-size: 0.9rem !important;
    }
    
    .mobile-cta-buttons .cta-button.secondary {
        background: transparent !important;
        border: 2px solid white !important;
        color: white !important;
    }
    
    .mobile-cta-buttons .cta-button.primary {
        background: white !important;
        color: #453575 !important;
        border: 2px solid white !important;
    }
    
    /* Megamenu mobile */
    .megamenu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    .megamenu-content {
        padding: 1rem;
        flex-direction: column;
        gap: 0;
    }
    
    .megamenu-item {
        flex-direction: row;
        text-align: left;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .megamenu-item:not(:last-child)::after {
        display: none;
    }
    
    .megamenu-item:last-child {
        border-bottom: none;
    }
    
    .megamenu-icon {
        font-size: 2rem;
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .megamenu-text h4 {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 0.3rem;
    }
    
    .megamenu-text p {
        font-size: 0.8rem;
    }
    
    /* Riduci il padding-top su mobile */
    body {
        padding-top: 80px;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-branding {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-navigation {
        flex-direction: column;
        gap: 2rem;
        justify-content: flex-start;
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-company-info {
        text-align: left;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-bottom-row-1 {
        flex-direction: column;
    }
    
    .footer-bottom-row-1 p {
        min-width: auto;
        width: 100%;
    }
    
    .footer-bottom-row-2 {
        text-align: left;
    }
    
    .footer-copyright-text {
        text-align: left;
    }

/* Tablet responsive per features */
@media (max-width: 1024px) and (min-width: 769px) {
    .tab-panel-content {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .features-image-placeholder {
        width: 250px;
        height: 400px;
    }
    
    .features-image-placeholder::before {
        width: 60px;
        height: 60px;
    }
}

/* Mobile responsive per hero e features */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-cta .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-image-placeholder {
        height: 250px;
    }
    
    .hero-image-placeholder::before {
        width: 40px;
        height: 40px;
    }
    
    .hero-animated-visual {
        max-width: 100%;
        max-height: 300px;
    }
    
    .hero-center-person {
        max-width: 240px;
        aspect-ratio: 3 / 4;
    }
    
    .orbiting-rectangle {
        min-width: 100px;
        height: 40px;
    }
    
    .rectangle-content {
        padding: 0 0.6rem;
    }
    
    .rectangle-text {
        font-size: 0.75rem;
    }
    
    /* Nascondi i rettangoli fluttuanti su mobile */
    .orbiting-rectangle {
        display: none !important;
    }
    
    .rectangle-text {
        font-size: 0.7rem;
    }
    
    /* Benefits mobile layout */
    .benefits {
        padding: 3rem 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .benefit-box {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 2.2rem;
        height: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .benefit-box p {
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    /* Audience mobile layout */
    .audience {
        padding: 3rem 0;
    }
    
    .audience h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .audience-item {
        flex-direction: column !important;
        gap: 4rem;
        margin-bottom: 8rem;
        padding: 0 1rem;
    }
    
    .audience-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .audience-content h3 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .audience-features {
        gap: 0.8rem;
        text-align: left;
        align-items: flex-start;
    }
    
    .audience-content .audience-features {
        text-align: left;
    }
    
    .audience-features li {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        color: #5a6c7d;
        line-height: 1.6;
        width: 100%;
        max-width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
    
    .audience-features li span {
        text-align: left;
    }
    
    .feature-icon {
        width: 12px;
        height: 12px;
        min-width: 12px;
        font-size: 0.5rem;
        flex-shrink: 0;
    }
    
    .audience-visual {
        max-width: 100%;
        width: 100%;
        order: 2;
        margin-top: 4rem;
    }
    
    .audience-item-left .audience-visual {
        order: 2; /* Immagine dopo il testo per Pazienti e Caregiver */
    }
    
    .audience-item-right .audience-visual {
        order: 2; /* Immagine dopo il testo per Professionisti Sanitari */
    }
    
    .audience-item-left .audience-content {
        order: 1; /* Testo prima dell'immagine per Pazienti e Caregiver */
    }
    
    .audience-item-right .audience-content {
        order: 1; /* Testo prima dell'immagine per Professionisti Sanitari */
    }
    
    .audience-image-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .audience-image {
        width: 45%;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0;
        display: block;
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
    }
    
    .audience-image-1,
    .audience-image-2,
    .audience-image-prof-1,
    .audience-image-prof-2 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0;
        display: block;
        width: 45%;
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
    }
    
    .audience-images-overlap,
    .audience-images-overlap-horizontal {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: auto;
        gap: 1rem;
        padding: 1rem;
        overflow: visible;
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .audience-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .audience-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    
    /* Features mobile layout */
    .tab-panel-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .features-image {
        order: 2;
        justify-content: center;
    }
    
    .features-image-placeholder {
        width: 200px;
        height: 320px;
    }
    
    .features-image-placeholder::before {
        width: 50px;
        height: 50px;
    }
    
    .features-text {
        order: 1;
    }

    .partnerships-content h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .partnerships-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .partnership-box {
        padding: 1rem;
        min-height: 120px;
    }
    
    .partnership-image {
        max-height: 100px;
        max-width: 100%;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .about-cta .cta-button {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
    
    /* Sphera responsive */
    .sphera-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .sphera-title-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .sphera-lottie-container {
        width: 60px;
        height: 60px;
    }
    
    .sphera-title {
        font-size: 1.8rem;
        text-align: left;
    }
    
    .sphera-subtitle {
        font-size: 1.8rem;
        text-align: left;
    }
    
    .sphera-ai-sphere {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .sphera-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .sphera-feature {
        padding: 0.8rem 1rem;
        text-align: center;
    }
    
    .sphera-feature-content h3 {
        font-size: 1.1rem;
    }
    
    .sphera-feature-content p {
        font-size: 1rem;
    }

    
    .tab-content {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    /* Tab responsive */
    .tabs-nav {
        max-width: 100%;
    }
    
    .tab-button {
        padding: 0.7rem 1rem;
    }
    
    .tab-panel h3 {
        font-size: 1.8rem;
    }
    
    .tab-panel p {
        font-size: 1.1rem;
    }
    
    .feature-list li {
        font-size: 1rem;
        padding: 0.7rem 0;
        padding-left: 1.8rem;
    }
    
    .feature-list li::before {
        font-size: 1.1rem;
        top: 0.7rem;
    }
    
    .services-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .services-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .specializations-grid {
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .specialization-box {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-width: 120px;
        flex: 0 1 auto;
    }
    
    .testimonials-slider {
        overflow-x: auto;
    }
    
    .testimonials-track {
        gap: 15px;
    }
    
    .testimonial-card {
        flex: 0 0 300px;
        padding: 1.5rem;
    }
    
    .testimonials h2 {
        font-size: 1.8rem;
    }
    
    /* Benefits responsive */
    .benefits-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .benefits-column.left,
    .benefits-column.right {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .benefits-image-placeholder {
        width: 260px;
        height: 260px;
    }
    
    .benefit-box {
        padding: 1.2rem;
    }
    
    .benefit-icon {
        height: 40px;
        width: 40px;
        margin-bottom: 1rem;
    }
    
    .benefit-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .benefit-box h3 {
        font-size: 1.2rem;
    }
    
    .benefits-cta .cta-button {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    /* Pricing responsive */
    .pricing-manual-section {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .pricing-manual-text {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .pricing-manual-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .pricing-manual-button .pdf-icon {
        width: 16px;
        height: 16px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
        order: 2;
    }
    
    .pricing-card:not(.featured) {
        order: 1;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .pricing-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .price-old {
        font-size: 1.2rem;
    }
    
    .pricing-structure-box {
        padding: 2rem 1.5rem;
        max-width: 400px;
    }
    
    .pricing-structure-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .pricing-structure-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo-img {
        height: 45px;
    }
    
    .footer-navigation {
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-social .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-cta .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    
    /* Tab responsive mobile */
    .tab-button {
        padding: 0.6rem 0.8rem;
    }
    
    .tab-content {
        padding: 1rem;
        min-height: 220px;
    }
    
    /* Services mobile */
    .services-image {
        flex: 0 0 225px;
        max-width: 225px;
    }
    
    .services-professional-image {
        width: 225px;
        height: 400px;
    }
    
    .services-text p {
        font-size: 1rem;
    }
    
    .tab-panel h3 {
        font-size: 1.6rem;
    }
    
    .tab-panel p {
        font-size: 1rem;
    }
    
    .feature-list li {
        font-size: 0.95rem;
        padding: 0.6rem 0;
        padding-left: 1.6rem;
    }
    
    .feature-list li::before {
        font-size: 1rem;
        top: 0.6rem;
    }
    
    .about-content h2 {
        font-size: 1.4rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
    }
    
    .about-cta .cta-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.8rem;
    }
    
    .services-layout {
        gap: 1.5rem;
    }
    
    .visual-image {
        min-height: 250px;
        padding: 2rem;
    }
    
    .overlay-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .overlay-notification {
        max-width: 180px;
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
    
    .services-cta p {
        font-size: 1rem;
    }
    
    
    .testimonial-card {
        flex: 0 0 280px;
        padding: 1.2rem;
    }
    
    .testimonials h2 {
        font-size: 1.6rem;
    }
    
    /* Pricing mobile */
    .pricing h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .price-amount,
    .pricing-card .price-amount.gradient-text {
        font-size: 2rem;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-branding {
        flex: none;
        text-align: center;
    }
    
    .footer-navigation {
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .chatbot-window {
        width: 320px;
        height: 450px;
        bottom: 70px;
    }
    
    #chatbot-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .cta-button {
        padding: 0.56rem 1.26rem;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.loaded {
    opacity: 1;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #453575;
    outline-offset: 2px;
}

/* Lista d'Attesa Page Styles */
.waitlist-page {
    padding: 2rem 0 4rem;
    background: white;
    min-height: calc(100vh - 20px);
    margin-top: 20px; /* Spazio per l'header mobile */
    display: block; /* Assicura che sia visibile */
    visibility: visible; /* Debug: assicura che sia visibile */
}

/* Desktop margin-top per lista d'attesa */
@media (min-width: 769px) {
    .waitlist-page {
        min-height: calc(100vh - 120px);
        margin-top: 120px; /* Spazio per l'header fisso su desktop */
    }
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 500; /* Unificato con il CSS globale */
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Main Layout */
.waitlist-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Left Section - Information */
.waitlist-info {
    padding-right: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.waitlist-intro h2 {
    font-size: 2rem;
    font-weight: 500; /* Unificato con il CSS globale */
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.waitlist-intro p {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.existing-customer-info {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #453575;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.existing-customer-info p {
    font-size: 0.95rem;
    color: #5a6c7d;
    margin: 0;
}

.existing-customer-info a {
    color: #453575;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.existing-customer-info a:hover {
    color: #3a2d5f;
}

/* Features Section */
.features-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #453575;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #453575;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 500; /* Unificato con il CSS globale */
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.feature-content p {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.5;
    margin: 0;
}

/* Features List Styles */
.features-list {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.4;
    text-indent: 0;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #453575;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
}

/* Right Section - Form */
.waitlist-form-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 140px;
    box-shadow: none !important;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.waitlist-form label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.waitlist-form input,
.waitlist-form select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
    outline: none;
    border-color: #453575;
    box-shadow: 0 0 0 3px rgba(69, 53, 117, 0.1);
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #453575;
    box-shadow: 0 0 0 3px rgba(69, 53, 117, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2c3e50;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #453575;
    background: #453575;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Checkbox styles */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.checkbox-group .checkbox-label {
    display: block;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.6;
    text-align: left;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    flex: 1;
}

.checkbox-label a {
    color: #453575;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #3a2d5f;
}

/* Override form-group flex ONLY for checkbox groups */
.form-group.checkbox-group {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}

/* Ensure checkbox comes first */
.form-group.checkbox-group input[type="checkbox"] {
    order: 1 !important;
}

/* Ensure label comes second */
.form-group.checkbox-group .checkbox-label {
    order: 2 !important;
}

/* Simple checkbox layout - NO FLEX BULLSHIT */
.checkbox-simple {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.checkbox-simple input[type="checkbox"] {
    float: left;
    margin-top: 2px;
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.checkbox-simple label {
    display: block;
    overflow: hidden;
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.6;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.checkbox-simple label a {
    color: #453575;
    text-decoration: underline;
}

.checkbox-simple label a:hover {
    color: #3a2d5f;
}


.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #453575;
    background: #453575;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Submit Button - Scoped to specific contexts only, not global */
/* These styles should only apply where explicitly needed, not globally */
/* Removed global .submit-button styles to prevent interference with waitlist page */
/* All submit button styles are now defined in lista-dattesa.css */

/* Form Validation */
.form-group.error input,
.form-group.error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success select {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.success-message {
    color: #27ae60;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Loading State - Removed global .submit-button.loading to prevent interference */
/* Loading states are now defined in lista-dattesa.css */

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

/* Success State */
.form-success {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-success-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.success-actions {
    margin-top: 2rem;
    text-align: center;
}

.success-actions .cta-button {
    display: inline-block;
    margin: 0 auto;
}

.form-success h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-success p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Responsive Design per Lista d'Attesa */
@media (max-width: 1024px) {
    .waitlist-layout {
        gap: 3rem;
    }
    
    .waitlist-info {
        padding-right: 1rem;
    }
    
    .page-header h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .waitlist-page {
        padding: 1.5rem 0 3rem;
    }
    
    .page-header {
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .waitlist-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .waitlist-info {
        padding-right: 0;
        order: 2;
    }
    
    .waitlist-form-container {
        order: 1;
        padding: 1.5rem;
    }
    
    .waitlist-intro h2 {
        font-size: 1.6rem;
    }
    
    .waitlist-intro p {
        font-size: 1rem;
    }
    
    .feature-block {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-content h3 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.9rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .submit-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .waitlist-submit-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .waitlist-page {
        padding: 1rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .waitlist-form-container {
        padding: 1rem;
    }
    
    .waitlist-intro h2 {
        font-size: 1.4rem;
    }
    
    .waitlist-intro p {
        font-size: 0.95rem;
    }
    
    .feature-block {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin: 0 auto;
    }
    
    .feature-content h3 {
        font-size: 0.95rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .waitlist-submit-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.6s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; }
.form-group:nth-child(9) { animation-delay: 0.9s; }
.form-group:nth-child(10) { animation-delay: 1.0s; }
.form-group:nth-child(11) { animation-delay: 1.1s; }
.form-group:nth-child(12) { animation-delay: 1.2s; }

/* Focus styles for accessibility */
.form-group input:focus,
.form-group select:focus,
.radio-label:focus-within,
.checkbox-label:focus-within {
    outline: 2px solid #453575;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }
    
    .hero {
        margin-top: 0;
        background: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .waitlist-page {
        background: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .waitlist-form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .submit-button {
        background: #000 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
}
}