/**
 * NoSpace Landing Page CSS
 * Modern styles for the home page
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --landing-hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --landing-text-light: #ffffff;
    --landing-text-dark: #2d3748;
    --landing-accent: #667eea;
    --landing-section-padding: 5rem 2rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 70vh; /* Ridotto da 100vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem); /* Responsive e più grande */
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.hero-section h1 .highlight {
    background: linear-gradient(90deg, #fff 0%, #a8edea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem); /* Più grande */
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.2);
}

.hero-section .cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    background: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-section .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

/* Scroll indicator - più sottile */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 2rem;
    color: white;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10; /* Assicura che stia sopra la Hero */
    margin-top: 0rem; /* Effetto sovrapposizione card */
    border-radius: 40px 40px 0 0; /* Arrotonda l'inizio della sezione */
}

html[data-theme="light"] .about-section .soft-glass-card {
	background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.about-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    font-size: 1.2rem; /* Aumentato da 1.1rem */
    line-height: 1.9; /* Aumentato da 1.8 */
    margin-bottom: 1.5rem;
}

.about-content ul li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    font-size: 1.15rem; /* Aumentato */
}

/* Nuova classe per effetto Glass/Card più morbido */
.soft-glass-card {
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15); /* Ombra colorata diffusa */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--landing-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

/* ========================================
   Timeline Section
   ======================================== */
.timeline-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
    margin-top: -2rem; /* Sovrappone leggermente la sezione precedente */
}

.timeline-section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 4rem;
    font-weight: 700;
    position: relative;
}

.timeline-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Layout a griglia per Timeline + Immagine */
.timeline-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-content-col {
    text-align: right; /* Testo allineato a destra verso la linea centrale se c'è l'immagine */
}

.timeline-image-col img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease;
}

.timeline-image-col img:hover {
    transform: scale(1.02);
}

/* Stile della lista Timeline */
ul.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: inline-block; /* Per stare vicino alla linea */
}

/* Linea verticale */
ul.timeline-list::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -20px; /* Posiziona la linea a destra del testo */
    width: 2px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.2), #667eea, rgba(118, 75, 162, 0.2));
}

ul.timeline-list li {
    margin-bottom: 3rem;
    position: relative;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Pallini luminosi */
ul.timeline-list li::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: -26px; /* Centrato sulla linea (20px padding + 2px linea + offset) */
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

ul.timeline-list li:hover::after {
    background: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    transform: scale(1.2);
}

/* Data in evidenza */
ul.timeline-list li strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 992px) {
    .timeline-grid-layout {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .timeline-content-col {
        text-align: left;
        padding-left: 2rem;
    }
    
    ul.timeline-list::after {
        left: -20px;
        right: auto;
    }
    
    ul.timeline-list li::after {
        left: -26px;
        right: auto;
    }
    
    .timeline-image-col {
        order: -1; /* Immagine sopra su mobile */
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* ========================================
   RAG Project Section
   ======================================== */
.rag-section,
.rag-project-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--landing-text-light);
    position: relative;
    overflow: hidden;
}

.rag-section::before,
.rag-project-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.rag-project-card {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rag-section h2,
.rag-project-card h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.rag-section p,
.rag-project-card p {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.rag-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rag-feature {
    text-align: center;
    padding: 1.5rem;
}

.rag-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rag-cta {
    text-align: center;
    margin-top: 3rem;
}

.rag-section .cta-btn,
.rag-cta a {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--landing-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.rag-section .cta-btn:hover,
.rag-cta a:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #fff, #f0f0f0);
}

/* ========================================
   CTA Final Section
   ======================================== */
.cta-final-section {
    padding: var(--landing-section-padding);
    text-align: center;
}

.cta-final-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--landing-accent);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: var(--landing-accent);
    border: 2px solid var(--landing-accent);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Utility Classes
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.full-width {
    width: 100%;
}
