/* ============================================
   Reset e Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #FFFFFF;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Container
   ============================================ */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .site-container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .site-container {
        padding: 0 60px;
    }
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    background: #FFFFFF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

@media (min-width: 768px) {
    .site-logo {
        font-size: 42px;
    }
}

.nav-menu {
    display: none;
    gap: 32px;
    list-style: none;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #007AFF;
}

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

.cta-button-nav {
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.cta-button-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* ============================================
   Language Selector
   ============================================ */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0F0F0;
    color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: #E0E0E0;
    transform: translateY(-1px);
}

.language-icon {
    font-size: 18px;
}

.language-current {
    font-weight: 600;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333333;
}

.language-option:hover {
    background: #F8F8F8;
}

.language-option:first-child {
    border-radius: 12px 12px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 12px 12px;
}

.language-option span:first-child {
    font-size: 20px;
}

.language-option span:last-child {
    font-weight: 500;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #E8F4FD 0%, #FFFFFF 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

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

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.gradient-text {
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

.cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.cta-primary span {
    position: relative;
    z-index: 1;
}

.cta-secondary {
    background: #FFFFFF;
    color: #007AFF;
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #007AFF;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-secondary:hover::before {
    left: 0;
}

.cta-secondary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.hero-visual {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.floating-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: floatCard 3s ease-in-out infinite;
    position: relative;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.2);
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 0.5s;
}

.card-3 {
    animation-delay: 1s;
}

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

.card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-visual {
        gap: 20px;
    }
    
    .floating-card {
        padding: 20px;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.15);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

.feature-icon {
    font-size: 40px;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-description {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #E8F4FD 0%, #FFFFFF 100%);
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.step-item:hover .step-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.step-description {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
}

/* ============================================
   Why Choose Section
   ============================================ */
.why-choose-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
    transition: left 0.3s ease;
}

.benefit-item:hover::before {
    left: 0;
}

.benefit-item:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #D0E0F0 0%, #B0D0E0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.benefit-item:hover .benefit-icon {
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    color: #FFFFFF;
    transform: rotate(5deg) scale(1.1);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.benefit-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.benefit-text {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
}

/* ============================================
   What We Do Section
   ============================================ */
.what-we-do-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.what-we-do-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.what-we-do-section .section-title {
    color: #FFFFFF;
}

.what-we-do-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover::before {
    width: 300px;
    height: 300px;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-description {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cta-section-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-white {
    background: #FFFFFF;
    color: #007AFF;
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.cta-white:hover::before {
    width: 300px;
    height: 300px;
}

.cta-white:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #0056B3 0%, #003D7A 100%);
    color: #FFFFFF;
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-link {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #FFFFFF;
    padding-left: 20px;
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

.footer-email {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-email-link {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-email-link:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

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

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* Hover Effects Global */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .cta-section-title {
        font-size: 28px;
    }
    
    .cta-section-subtitle {
        font-size: 16px;
    }
}

