/* =====================================================
   MASTER CAKE LAB — Home Page v2
   Hero asimmetrico, ribbon signature, sezioni rinnovate
   ===================================================== */

/* ---------- Trust Badges ---------- */
.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.trust-icon {
    color: var(--mcl-gold);
}

/* ---------- Stats Band ---------- */
.stats-band {
    background: rgba(212, 168, 83, 0.04);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
}
.stat-label {
    font-family: var(--font-utility);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ---------- Allergen Filter ---------- */
.allergen-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-full);
}
.filter-label {
    font-family: var(--font-utility);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.filter-btn {
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-utility);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
    background: rgba(212, 168, 83, 0.12);
    border-color: var(--mcl-gold);
    color: var(--mcl-gold);
}

/* ---------- About Section ---------- */
.about-section {
    padding: 6rem 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-image-wrap {
    position: relative;
}
.about-img-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    background: rgba(107, 45, 63, 0.05);
    border: 1px solid var(--surface-border);
    position: relative;
}

/* Gold Ribbon frame decorativo */
.about-img-frame::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--mcl-gold);
    border-radius: var(--radius-xl);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-title em {
    font-style: italic;
}
.about-text {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}
.about-text:last-of-type {
    margin-bottom: 2.5rem;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.about-feature {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.about-feature strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.about-feature p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image-wrap {
        display: none;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ---------- CTA Banner ---------- */
.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 3.5rem;
    overflow: hidden;
    position: relative;
    text-align: left;
    border: 1px solid var(--mcl-gold);
}

/* Gold Ribbon corner nel CTA */
.cta-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--mcl-gold), transparent 50%);
    opacity: 0.15;
    pointer-events: none;
}

.cta-banner-deco {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0.75rem 0 1.25rem;
}
.cta-title em {
    font-style: italic;
}
.cta-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}
.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 768px) {
    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
    .cta-banner-deco {
        display: none;
    }
    .cta-actions {
        justify-content: center;
    }
}

/* ---------- Hero Slideshow ---------- */
.hero-slideshow {
    display: block;
}

.hero-slideshow .hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 100svh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide .hero-content {
    animation: heroSlideIn 0.9s ease forwards;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.75rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(44, 24, 26, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: var(--mcl-gold);
    box-shadow: 0 0 8px rgba(212, 168, 83, 0.5);
    transform: scale(1.25);
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(44, 24, 26, 0.25);
    border: none;
    color: var(--mcl-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    backdrop-filter: blur(4px);
}

.hero-slideshow:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(212, 168, 83, 0.6);
    color: #fff;
}

.hero-arrow--prev { left: 1.5rem; }
.hero-arrow--next { right: 1.5rem; }

@media (max-width: 640px) {
    .hero-arrow { display: none; }
    .hero-dots { bottom: 4rem; }
}

/* ---------- Hero CTA Colors ---------- */
#hero-cta-shop {
    background: linear-gradient(135deg, var(--mcl-burgundy), var(--mcl-burgundy-dark));
    border-color: var(--mcl-burgundy);
    color: var(--mcl-white) !important;
}
#hero-cta-shop:hover {
    background: linear-gradient(135deg, var(--mcl-burgundy-soft), var(--mcl-burgundy));
}

#hero-cta-catering {
    background: var(--mcl-gold-dark);
    border-color: var(--mcl-gold-dark);
    color: var(--mcl-white) !important;
}
#hero-cta-catering:hover {
    background: var(--mcl-gold);
    border-color: var(--mcl-gold);
}

#hero-cta-custom {
    background: transparent;
    border-color: var(--mcl-gold);
    color: var(--mcl-burgundy) !important;
}
#hero-cta-custom:hover {
    background: var(--mcl-gold);
    color: var(--mcl-white) !important;
}

/* ---------- Lazy Image ---------- */
img[data-src] {
    opacity: 0;
    transition: opacity 0.4s;
}
img.loaded {
    opacity: 1;
}

/* ---------- Section Header Overrides ---------- */
.section-header .section-divider {
    display: none;
}

/* Use gold-ribbon instead of section-divider */
.section-header .gold-ribbon {
    margin: var(--space-4) auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .trust-badges {
        gap: 1rem;
        justify-content: center;
    }
}
