/* -----------------------------
   COMPONENTS STYLES
----------------------------- */

/* Hero Component */
.hero-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    perspective: 1000px;
}

#flower-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.hero-date {
    position: relative;
    z-index: 2;
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-xl);
}

.hero-intro {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Video Stories Component */
.video-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.story-video {
    position: relative;
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.story-video video,
.story-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .video-stories {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
        padding: 0 15px;
    }

    .story-video {
        height: 80vh;
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--black);
    }

    .story-video video,
    .story-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: var(--black);
    }

    .container {
        padding: 0;
        max-width: 100%;
    }

    section.visual-references {
        padding: 0;
        margin: 0;
        background: var(--black);
    }

    section.visual-references h2,
    section.visual-references .section-intro {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Per dispositivi più piccoli */
@media (max-width: 380px) {
    .story-video {
        height: 100vh;
    }
}

/* Rimuove scrollbar ma mantiene funzionalità */
.video-stories {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-stories::-webkit-scrollbar {
    display: none;
}

/* Concept Cards */
.concept-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Timeline Component */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 100px auto 0;
    padding-bottom: 50px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.timeline-content {
    width: 45%;
    padding: var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.timeline-time {
    font-size: var(--text-lg);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Mobile Styles per Timeline */
@media (max-width: 768px) {
    .timeline-container {
        margin: 40px auto 0;
        padding: 0 20px 30px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        margin-left: 20px;
        margin-bottom: 30px;
        padding-left: 30px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-content {
        width: 100%;
        padding: 15px;
    }

    .timeline-dot {
        left: 20px;
        width: 12px;
        height: 12px;
    }

    .timeline-time {
        font-size: var(--text-base);
        margin-bottom: 8px;
    }

    .timeline-content h3 {
        font-size: var(--text-lg);
        margin-bottom: 8px;
    }

    .timeline-content p {
        font-size: var(--text-sm);
        line-height: 1.4;
        margin: 0;
    }
}

/* Header Component */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}

/* Logo specifici */
.logo {
    height: 40px;
    width: auto;
    display: block;
}

.logo.pacha-logo {
    height: 50px;
}

/* Titolo centrale nell'header */
.header-title {
    color: var(--text);
    font-size: var(--text-sm);
    text-align: center;
    letter-spacing: 2px;
    font-weight: 400;
    margin: 0 20px;
}

/* Unified Text Styles */
h1, h2, h3, p, .section-intro, .timeline-content p {
    text-align: center;
    font-weight: 400;
    line-height: 1.5;
}

.section-intro, .hero-intro p {
    font-size: var(--text-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .header-nav {
        padding: 0 15px;
        gap: 12px;
    }

    .brand-group {
        gap: 10px;
    }

    .logo {
        height: 35px;
    }

    .logo.pacha-logo {
        height: 45px; /* Mantenuto più grande */
    }

    .header-title {
        font-size: 9px;
        letter-spacing: 1px;
        padding: 0 8px;
    }

    /* Mobile Typography */
    .section-intro, .hero-intro p {
        font-size: var(--text-base);
        padding: 0 20px;
    }

    h2 {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-lg);
    }

    h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-md);
    }

    p {
        font-size: var(--text-base);
        line-height: 1.6;
    }

    .timeline-content p {
        font-size: var(--text-base);
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .header-nav {
        padding: 0 12px;
    }

    .logo {
        height: 32px;
    }

    .logo.pacha-logo {
        height: 40px; /* Ancora abbastanza grande */
    }

    .header-title {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
}

/* Timeline Adjustments */
.timeline-time {
    font-size: var(--text-xl);
    font-weight: 500;
    text-align: center;
}

.timeline-content h3 {
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

/* Concept Cards */
.concept-card h3 {
    text-align: center;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.concept-card p {
    text-align: center;
    line-height: 1.6;
}

/* Section Subtitles */
.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text);
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

/* Footer styles */
footer {
    padding: var(--space-xl) 0;
    background: var(--dark-bg);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: var(--space-lg);
}

.footer-logos .logo {
    height: 40px;
    width: auto;
}

.footer-logos .logo.pacha-logo {
    height: 50px;
}

/* ... altri stili dei componenti ... */ 