/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.nav-brand h2 {
    color: #3A7952;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
}

.nav-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #3A7952;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #3A7952;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #3A7952;
    transition: all 0.3s ease;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 114, 49, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 114, 49, 0.2) transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 114, 49, 0.4);;
}

.cta-button-primary {
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(230, 114, 49, 0.3);;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(230, 114, 49, 0.4);;
}

.cta-button-giga {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 20px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button-mega:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-color: transparent;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
    background-image: url('images/investi-ora.png');
    background-size: contain; /* Si adatta proporzionalmente */
    background-repeat: no-repeat;
    background-position: center center;
  }
  
  @media (max-width: 768px) {
    .hero {
      background-size: 80%; /* più grande su schermi piccoli */
    }
  }
  
  @media (max-width: 480px) {
    .hero {
      background-size: 100%; /* occupa più spazio su mobile */
    }
  }
  

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-centered {
    color: black;
    text-align: center;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    color: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title-main {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: black;
}

.hero-subtitle-main {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: black;
}

.hero-cta-centered {
    margin-bottom: 2rem;
}

.cta-button-mega {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 280px;
}

.cta-button-mega:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.cta-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.cta-main {
    font-size: 1.2rem;
    font-weight: 800;
}

.hero-trust {
    opacity: 0.8;
}

.trust-text {
    font-size: 0.875rem;
    color: #595e62;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-main {
        font-size: 1.1rem;
    }
    
    .hero .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 2rem;
    }
    
    .hero-subtitle-main {
        font-size: 1rem;
    }

}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: 'Kanit', sans-serif;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 3s;
}

.floating-element:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}



.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
    font-style: italic;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Problem Section */
.problem-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
}

.problems-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.problem-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #f59e0b;
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.problem-icon i {
    font-size: 1.5rem;
    color: white;
}

.problem-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.problem-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Solution Section */
.solution-section {
    padding: 6rem 0;
    background: white;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 2rem;
}

.solution-benefits {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.benefit p {
    color: #64748b;
    line-height: 1.6;
}

.solution-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.consultant-avatar {
    position: relative;
    text-align: center;
}

.avatar-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.avatar-circle i {
    font-size: 4rem;
    color: white;
}

.avatar-badge {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    color: #3A7952;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

/* How it Works */
.how-it-works {
    padding: 6rem 0;
    background: #f8fafc;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: calc(50% - 40px);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Target Section */
.target-section {
    padding: 6rem 0;
    background: white;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.target-column {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.target-column:hover {
    transform: translateY(-5px);
    border-color: #3A7952;
    background: white;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.1);
}

.target-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.target-icon i {
    font-size: 2rem;
    color: white;
}

.target-column h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.target-column p {
    color: #64748b;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.service-text p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1.125rem;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background: white;
}

.benefits-header {
    text-align: center;
    margin-bottom: 4rem;
}

.benefits-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
}

.benefits-header p {
    font-size: 1.25rem;
    color: #64748b;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.benefit-item i {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: #64748b;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3A7952;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 2rem;
}

.about-text p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.profile-container {
    text-align: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.profile-image i {
    font-size: 5rem;
    color: white;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.credential i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.credential span {
    font-weight: 600;
    color: #1a202c;
}

/* Results Section */
.results-section {
    padding: 6rem 0;
    background: white;
}

.results-showcase {
    margin-bottom: 3rem;
}

.case-study {
    display: none;
    background: #f8fafc;
    border-radius: 20px;
    padding: 0.1;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.1);
}

.case-study.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-header {
    margin-bottom: 2rem;
}

.case-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.case-info p {
    color: #64748b;
    font-size: 1.125rem;
}

.case-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 2rem;
}

.case-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-challenge h4,
.case-solution h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.case-challenge p,
.case-solution p {
    color: #64748b;
    line-height: 1.6;
}

.case-chart {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.case-results {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.result-metric {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
    min-width: 150px;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #64748b;
    font-weight: 600;
}

.case-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.case-btn {
    background: #e2e8f0;
    color: #64748b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-btn.active {
    background: rgba(245, 158, 11, 1);
    color: white;
}

.case-btn:hover {
    background: #cbd5e1;
}

.case-btn.active:hover {
    background: rgba(245, 158, 11, 1);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    text-align: center;
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 1.25rem;
}

.feature span {
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #3A7952;
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details small {
    color: #94a3b8;
    font-style: italic;
}

.contact-map {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#map-iframe-container{
    height: 100%;
}
.map-container {
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #3A7952 0%;
}

.footer-column p {
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* Policy Modals */
.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.policy-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.policy-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a202c;
}

.close-policy {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.close-policy:hover {
    color: #3A7952;
}

.policy-body {
    padding: 2rem;
    overflow-y: auto;
}

.policy-body h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a202c;
}

.policy-body h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.policy-body h5 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.policy-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

.policy-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-body li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a202c;
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    color: #e2e8f0;
}

.cookie-content a {
    color: #3A7952;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: #3A7952;
    color: white;
}

.cookie-accept:hover {
    background: #2d5e40;
}

.cookie-decline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #e2e8f0;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(245, 158, 11, 0.1);
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.mobile-menu-links {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-links a:hover {
    background: #f8fafc;
    color: #2563eb;
}

.mobile-menu-cta {
    margin-top: 2rem;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stili per le immagini dei casi studio */
.case-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.case-image img:hover {
    transform: scale(1.05);
}

/* Stili per il notice della mappa */
.map-cookie-notice {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.cookie-notice-content {
    text-align: center;
    padding: 30px;
    max-width: 400px;
}

.cookie-notice-content i {
    font-size: 48px;
    color: #666;
    margin-bottom: 20px;
}

.cookie-notice-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.cookie-notice-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-accept-cookies {
    background: linear-gradient(135deg, #3A7952 0%, #5C6056 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-accept-cookies i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    .hero .container button{
        width: unset;
    }
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .chart-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-cta {
        align-items: center;
        justify-content: center;
    }
    
    .hero-badge {
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .solution-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .case-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-number {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
}

@media (max-width: 768px) {
    .case-study {
        padding: 1.5rem;
    }
    
    .case-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-chart {
        height: 250px;
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
        overflow: hidden;
    }
    
    .case-results {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .result-metric {
        width: 100%;
        max-width: 200px;
    }
    
    .case-selector {
        flex-wrap: wrap;
    }
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .cta-button-primary {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .floating-element {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .problems-list,
    .target-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .case-results {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
    }
    
    .policy-content {
        width: 90%;
        margin: 10% auto;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    /* Miglioramenti per la sezione risultati */
    .case-study {
        padding: 1.5rem;
    }
    
    .case-chart {
        height: 250px;
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
        overflow: hidden;
    }
    
    .result-metric {
        width: 100%;
        max-width: 200px;
    }
    
    .case-selector {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 1rem 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .chart-container {
        padding: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .case-study {
        padding: 1rem;
    }
    
    .case-info h3 {
        font-size: 1.25rem;
    }
    
    .case-chart {
        height: 200px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .policy-header {
        padding: 1rem 1.5rem;
    }
    
    .policy-body {
        padding: 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Responsive per cookie notice */
    .cookie-notice-content {
        padding: 20px;
    }
    
    .cookie-notice-content h3 {
        font-size: 20px;
    }
    
    .btn-accept-cookies {
        padding: 10px 20px;
        font-size: 14px;
    }
}

