/* Chi Siamo Page Specific Styles */

/* Hero Section */
.hero-chi-siamo {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-chi-siamo .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-chi-siamo .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-chi-siamo .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.8) 0%, 
        rgba(79, 70, 229, 0.8) 50%, 
        rgba(139, 92, 246, 0.8) 100%);
}

.hero-chi-siamo .hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    animation: hero-entrance 1s ease-out;
    color: white;
}

.hero-chi-siamo .hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-chi-siamo .hero-description {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.story-content {
    animation: slide-in-left 0.8s ease-out;
}

.story-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.5s ease;
}

.story-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.story-icon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    animation: story-icon-float 4s ease-in-out infinite;
}

@keyframes story-icon-float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-5deg) scale(1.02); }
    75% { transform: rotate(3deg) scale(1.04); }
}

.story-icon svg {
    color: white;
}

.story-card h3 {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 24px;
}

.story-card p {
    color: #374151;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.story-card p:last-child {
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    animation: slide-in-right 0.8s ease-out;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #6366f1, #8b5cf6);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    animation: timeline-item-entrance 0.8s ease-out;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes timeline-item-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    z-index: 10;
    animation: year-pulse 2s ease-in-out infinite;
}

@keyframes year-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.timeline-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-left: calc(50% + 40px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 12px 12px 0;
    border-color: transparent white transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: auto;
    right: -12px;
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent white;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.timeline-content p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation: values-float-1 12s ease-in-out infinite;
}

.values-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: values-float-2 10s ease-in-out infinite;
}

@keyframes values-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, -50px) scale(1.2); }
}

@keyframes values-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1.2); }
    50% { transform: translate(-80px, 30px) scale(1); }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 10;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: value-card-entrance 0.8s ease-out;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes value-card-entrance {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateY(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateY(0);
    }
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.value-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: value-icon-spin 5s ease-in-out infinite;
}

@keyframes value-icon-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(15deg) scale(1.2); }
    50% { transform: rotate(-15deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.15); }
}

.value-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.value-card p {
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

.value-stat {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: stat-pulse 2s ease-in-out infinite;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: team-card-entrance 0.8s ease-out;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes team-card-entrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(-15deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

.team-card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.team-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-content {
    padding: 32px;
    text-align: center;
}

.team-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.team-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.team-stat {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: team-stat-pulse 2s ease-in-out infinite;
}

@keyframes team-stat-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mission Section */
.mission-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    color: white;
    text-align: center;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    animation: mission-entrance 0.8s ease-out;
}

@keyframes mission-entrance {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.mission-content h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 24px;
    animation: mission-title-pulse 3s ease-in-out infinite;
}

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

.mission-content p {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    line-height: 1.6;
    opacity: 0.95;
}

/* Navigation Active State */
.nav-link.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-year {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-content::before {
        left: -12px;
        border-width: 12px 12px 12px 0;
        border-color: transparent white transparent transparent;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -12px;
        right: auto;
        border-width: 12px 12px 12px 0;
        border-color: transparent white transparent transparent;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation utilities */
@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}