/* Root and Scroll Styles */
html.lenis {
    height: auto;
}

body {
    background-color: #FAF9F6;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

/* Reveal Animations Initial States */
.reveal {
    visibility: hidden;
}

/* Premium Button Effects - Apeel Style */
.btn-primary {
    @apply bg-primary text-bone rounded-full px-8 py-4 font-semibold transition-all duration-300 hover:bg-accent hover:text-primary shadow-sm hover:shadow-lg;
}

.btn-secondary {
    @apply border-2 border-primary text-primary rounded-full px-8 py-4 font-semibold transition-all duration-300 hover:bg-primary/5;
}

/* Hub varietà di mango — stato attivo dei filtri */
.filter-btn[aria-pressed="true"] {
    background-color: #154626;
    color: #FAF9F6;
    border-color: #154626;
}

.filter-btn[aria-pressed="true"]:hover {
    color: #FAF9F6;
}

/* Interactive Card Effects */
.product-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -20px rgba(21, 70, 38, 0.15);
}

/* --- Slider Core Styles (Apeel Style) --- */
.slider-container {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Seasonal Calendar Refined Scroll */
.scrollbar-premium::-webkit-scrollbar {
    height: 4px;
}
.scrollbar-premium::-webkit-scrollbar-track {
    background: rgba(21, 70, 38, 0.05);
    border-radius: 10px;
}
.scrollbar-premium::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

@media (max-width: 1023px) {
    .scrollbar-premium {
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
}

@media (min-width: 768px) {
    .slider-container {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.slider-wrapper {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-item {
    user-select: none;
    -webkit-user-drag: none;
}

/* Seasonal Calendar Styles */
#calendario .grid-cols-12 {
    background: rgba(21, 70, 38, 0.05);
}

#calendario .rounded-full {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#calendario .rounded-full:hover {
    transform: scaleY(1.3);
}

/* Navigation Dropdowns */
.nav-dropdown {
    @apply absolute top-full left-0 mt-2 w-56 bg-white rounded-2xl shadow-xl border border-primary/5 opacity-0 invisible transition-all duration-300 transform -translate-y-2 p-4 space-y-2;
}

.nav-item:hover .nav-dropdown {
    @apply opacity-100 visible translate-y-0;
}

/* Mobile Menu Panel */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-panel {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar for Mobile Panel */
#mobile-panel nav::-webkit-scrollbar {
    width: 0px;
}
