/* Explain: Base reset, typography, and custom styles including scrollbar and hero animations. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

[x-cloak] {
    display: none !important;
}

/* Custom scrollbar for a luxury feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

.text-gradient-gold {
    background: linear-gradient(90deg, var(--primary-color) 0%, #fef08a 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero slideshow: luce che aumenta gradualmente sulla foto attiva */
@keyframes heroBrighten {
    0% {
        opacity: 0.4;
        filter: brightness(0.75) saturate(1);
    }
    100% {
        opacity: 0.9;
        filter: brightness(1.25) saturate(1.15);
    }
}

.hero-slide-active {
    animation: heroBrighten 3s ease-in-out forwards;
}