/* =========================================
   1. HERO SECTION
   ========================================= */
.hero-section.modern-split-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding-top: 0;
    background:
        radial-gradient(900px 600px at 15% 20%, rgba(31, 157, 85, 0.35), transparent 60%),
        radial-gradient(700px 500px at 85% 10%, rgba(242, 164, 58, 0.3), transparent 65%),
        linear-gradient(135deg, #0f1b1f 0%, #1b2a2f 50%, #1f2f33 100%);
}

.hero-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    z-index: 5;
    pointer-events: none;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    text-decoration: none;
    transition: var(--transition-base);
    animation: heroIndicatorBounce 2s infinite;
}

.hero-scroll-indicator:hover {
    color: var(--color-accent);
    transform: translateX(-50%) translateY(-5px);
}

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

.hero-section.modern-split-hero::before,
.hero-section.modern-split-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

.hero-section.modern-split-hero::before {
    width: 360px;
    height: 360px;
    background: rgba(31, 157, 85, 0.5);
    top: -120px;
    right: 15%;
}

.hero-section.modern-split-hero::after {
    width: 420px;
    height: 420px;
    background: rgba(242, 164, 58, 0.4);
    bottom: -180px;
    left: 10%;
}

.bokeh-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    filter: blur(6px);
    animation: floatBokeh 12s ease-in-out infinite;
}

.bokeh-1 {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.25);
    top: 12%;
    left: 8%;
}

.bokeh-2 {
    width: 220px;
    height: 220px;
    background: rgba(31, 157, 85, 0.35);
    bottom: 18%;
    right: 12%;
    animation-delay: -4s;
}

.bokeh-3 {
    width: 120px;
    height: 120px;
    background: rgba(242, 164, 58, 0.4);
    top: 40%;
    right: 30%;
    animation-delay: -8s;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 0 0 clamp(20px, 6vw, 80px);
    z-index: 3;
    gap: 40px;
}

.hero-text-content {
    flex: 1;
    max-width: 680px;
    text-align: left;
    padding-top: 90px;
    color: var(--color-text-light);
}

.hero-text-content h1 {
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 24px;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.hero-text-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 36px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-actions-left {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-premium-cta,
.btn-secondary-cta {
    padding: 16px 34px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-premium-cta {
    background: linear-gradient(135deg, var(--color-primary), #2cbf6d);
    color: #ffffff;
    font-weight: 800;
    box-shadow: var(--shadow-green);
}

.btn-premium-cta:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 38px rgba(31, 157, 85, 0.35);
}

.btn-secondary-cta {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary-cta:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-social-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.hero-social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-social-links .social-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--color-accent);
}

.hero-image-container {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.hero-wavy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url(#hero-premium-mask);
    z-index: 3;
    position: relative;
    animation: imageBreathing 12s ease-in-out infinite;
    transform-origin: center;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
}

.hero-image-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-image-backdrop::before,
.hero-image-backdrop::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: url(#hero-premium-mask);
    filter: blur(90px);
    opacity: 0.55;
    animation: driftBokeh 15s ease-in-out infinite alternate;
}

.hero-image-backdrop::before {
    background: radial-gradient(circle at 60% 30%, rgba(31, 157, 85, 0.7) 0%, transparent 60%),
        radial-gradient(circle at 80% 60%, rgba(242, 164, 58, 0.6) 0%, transparent 60%);
    top: -5%;
    left: -5%;
}

.hero-image-backdrop::after {
    background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 55%),
        radial-gradient(circle at 30% 80%, rgba(31, 157, 85, 0.7) 0%, transparent 55%);
    top: 6%;
    left: 6%;
    animation-delay: -7s;
}

/* =========================================
   2. SECTION HEADERS & TYPOGRAPHY
   ========================================= */
.hero-container-text {
    text-align: center;
    margin: 100px auto 60px;
    padding: 0 20px;
    max-width: 960px;
}

.about-section-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 8vw, 100px);
    max-width: 1300px;
    margin: 140px auto;
    padding: 0 min(5vw, 60px);
}

.about-image-container {
    flex: 0 1 45%;
    position: relative;
    max-width: 600px;
}

.about-split-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    transition: var(--transition-base);
    border: 1px solid var(--card-border);
}

.about-split-image:hover {
    transform: scale(1.01) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.about-text-content {
    flex: 0 1 50%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    margin: 0;
    color: var(--color-text-dark);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.brand-subtitle {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.brand-year {
    color: var(--color-accent);
}

.brand-desc {
    margin: 28px auto 0;
    color: var(--color-text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-header {
    padding: 90px 20px 40px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    margin: 0;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.small-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.line-glow {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 20px auto 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--color-primary-glow);
}

/* =========================================
   3. GRIDS & CARDS
   ========================================= */
.stats-container,
.categories-grid,
.products-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.stat-3d-card,
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

/* Directional Entrance for Stats */
.stat-box.reveal-on-scroll:nth-child(odd) {
    transform: translateX(-120px) scale(0.9);
    opacity: 0;
}

.stat-box.reveal-on-scroll:nth-child(even) {
    transform: translateX(120px) scale(0.9);
    opacity: 0;
}

.stat-box.reveal-on-scroll.visible {
    transform: translate(0, 0) scale(1) !important;
    opacity: 1 !important;
}

.stat-3d-card::after,
.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 157, 85, 0.06), rgba(242, 164, 58, 0.06));
    opacity: 0;
    transition: var(--transition-base);
}

.stat-3d-card:hover,
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--card-bg-hover);
}

.stat-3d-card:hover::after,
.category-card:hover::after {
    opacity: 1;
}



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

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat-label,
.cat-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cat-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.category-card:hover .cat-icon {
    transform: scale(1.08);
    color: var(--color-accent);
}

/* =========================================
   4. TRUST BAR & CAROUSELS
   ========================================= */
.trust-bar {
    padding: 60px 0 20px;
    background: transparent;
}

.photo-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 80px 0;
    position: relative;
    background: transparent;
    border-radius: var(--radius-lg);
    margin: 40px 0;
}

.photo-carousel-wrapper::before,
.photo-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}


.photo-carousel-track {
    display: flex;
    align-items: center;
    gap: 90px;
    width: max-content;
    animation: scrollCarousel 45s linear infinite;
}

.photo-carousel-track img {
    height: 220px;
    width: 340px;
    object-fit: cover;
    border-radius: 30px;
    filter: none;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.photo-carousel-track img:hover {
    filter: none;
    transform: scale(1.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.ios-carousel-wrapper {
    width: 100%;
    padding: 20px 0 40px;
    margin: 0 auto;
    max-width: 1200px;
    overflow: hidden;
}

.ios-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ios-carousel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.ios-carousel .feature-card {
    flex: 0 0 min(320px, 85vw);
    scroll-snap-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 26px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
}

.ios-carousel .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    background: var(--card-bg-hover);
}

.feature-card .card-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 22px;
    transition: var(--transition-base);
}

.feature-card:hover .card-icon {
    transform: scale(1.08) rotate(4deg);
    color: var(--color-accent);
}

.feature-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.feature-card .card-text {
    font-size: 1.02rem;
    color: var(--color-text-gray);
    line-height: 1.6;
}

/* =========================================
   5. TIMELINE
   ========================================= */
.interactive-timeline {
    position: relative;
    max-width: 1100px;
    margin: 50px auto 120px;
    padding: 20px 10px;
    overflow: hidden;
}

.timeline-progress-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--divider-color);
    top: 0;
    bottom: 0;
    border-radius: 10px;
}

.timeline-progress-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 10px;
    transition: height 0.1s;
    box-shadow: 0 0 20px rgba(31, 157, 85, 0.4);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Directional Entrance Setup Timeline */
.timeline-item.reveal-on-scroll:nth-child(odd) {
    transform: translateX(-150px) scale(0.9);
    opacity: 0;
}

.timeline-item.reveal-on-scroll:nth-child(even) {
    transform: translateX(150px) scale(0.9);
    opacity: 0;
}

.timeline-item.visible {
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
}

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

.timeline-dot {
    width: 56px;
    height: 56px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.timeline-item.active .timeline-dot {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-green);
    transform: translateX(-50%) scale(1.1);
}

.timeline-content {
    width: 45%;
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    /* Fondamentale per contenere l'effetto riempimento */
    z-index: 1;
    /* Assicura che l'animazione stia dietro al testo */
}

/* --- VERO EFFETTO RIEMPIMENTO (LIQUIDO) --- */
.timeline-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 157, 85, 0.18);
    /* Colore verde dell'onda */
    transform: scaleY(0);
    transform-origin: top;
    /* Si riempie dall'alto verso il basso */
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.timeline-item.active .timeline-content::before {
    transform: scaleY(1);
}

.timeline-item.active .timeline-content {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(31, 157, 85, 0.2);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.glass-panel {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.trust-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 12px;
}

.trust-card-desc {
    color: var(--color-text-gray);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   6. FINAL CTA
   ========================================= */
.final-cta {
    padding: 100px 20px;
    background:
        radial-gradient(700px 450px at 20% -10%, rgba(31, 157, 85, 0.35), transparent 60%),
        linear-gradient(135deg, #0f1a1f 0%, #18262b 100%);
    color: white;
    text-align: center;
    border-radius: 40px;
    margin: 60px 20px 100px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.final-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(242, 164, 58, 0.2), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.final-cta h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.cta-layout {
    display: flex;
    justify-content: center;
}

.cta-info {
    max-width: 760px;
    margin: 0 auto;
}

.final-cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-location {
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.btn-location:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* =========================================
   6.5 HELP SECTION
   ========================================= */
.help-section {
    padding: 100px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.help-card {
    display: flex;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.help-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.help-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 22px;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.help-icon-wrapper.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.help-icon-wrapper.phone {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.help-icon-wrapper.email {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
}

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

.help-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-text-dark);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.help-card-content p {
    font-size: 1rem;
    color: var(--color-text-gray);
    margin: 0;
}

.help-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--color-text-gray);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-base);
}

.help-card:hover .help-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-primary);
}

/* =========================================
   7. MEDIA QUERIES
   ========================================= */
@media (max-width: 1100px) {
    .hero-content-wrapper {
        padding: 0 clamp(20px, 5vw, 50px);
    }

    .hero-wavy-image {
        width: min(440px, 50vw);
    }
}

@media (max-width: 900px) {
    .hero-section.modern-split-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 15px auto 0;
        display: flex;
        justify-content: center;
        animation: heroIndicatorBounceMobile 2s infinite;
    }

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

    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .hero-text-content {
        padding-top: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group {
        align-items: center;
    }

    .hero-actions-left {
        justify-content: center;
    }

    .hero-image-container {
        display: none;
    }

    .timeline-progress-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 70px;
    }

    .timeline-dot {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 90%;
        margin-left: 0;
        position: relative;
        z-index: 3;
        /* Rimuove la trasparenza su mobile, sfocando la linea dietro */
        background-color: var(--color-bg, #ffffff);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .final-cta {
        margin: 40px 10px 80px;
        padding: 60px 20px;
    }

    .about-section-split {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
        margin: 80px auto;
    }

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

    .about-image-container {
        max-width: 100%;
        flex: 1;
    }

    .about-split-image {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .hero-text-content h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .section-header {
        padding: 70px 20px 30px;
    }

    .stat-label,
    .cat-title {
        letter-spacing: 0.15em;
    }
}

/* =========================================
   8. ANIMATIONS
   ========================================= */
@keyframes imageBreathing {

    0%,
    100% {
        transform: scale(1.02) translateY(0);
    }

    50% {
        transform: scale(1.05) translateY(-10px);
    }
}

@keyframes driftBokeh {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-20px, 30px) rotate(5deg);
    }
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 25px));
    }
}

/* =========================================
   7. HERO ENTRANCE ANIMATIONS
   ========================================= */
@keyframes heroSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-120px) scale(0.98);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideRight {
    from {
        opacity: 0;
        transform: translateX(120px) scale(0.98);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.hero-animate-left {
    opacity: 0;
    animation: heroSlideLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-right {
    opacity: 0;
    animation: heroSlideRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-up {
    opacity: 0;
    animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-delay-1 {
    animation-delay: 150ms;
}

.hero-delay-2 {
    animation-delay: 350ms;
}

.hero-delay-3 {
    animation-delay: 550ms;
}

.hero-delay-4 {
    animation-delay: 750ms;
}

@keyframes floatBokeh {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* =========================================
   9. EFFETTI ENTRATA GLOBALI (SLIDE UP)
   ========================================= */
/* Applica lo scivolamento dal basso per tutto ciò che NON è timeline o statistiche (quelle entrano dai lati) */
.reveal-on-scroll:not(.stat-box):not(.timeline-item) {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-on-scroll.visible:not(.stat-box):not(.timeline-item) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =========================================
   DARK MODE OVERRIDES - INDEX
   ========================================= */
[data-theme="dark"] .final-cta {
    background: var(--color-bg) !important;
    border: 1px solid var(--card-border);
}

[data-theme="dark"] .final-cta::after {
    display: none !important;
}