/* YSS Ammortizzatori - Custom Styles */
/* Industrial/automotive color palette: slate + amber accents */

body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Amber accent - automotive/performance feel */
.bg-amber-100 {
    background-color: #fffbeb;
}
.bg-amber-200 {
    background-color: #fef3c7;
}
.bg-amber-500 {
    background-color: #f59e0b;
}
.bg-amber-600 {
    background-color: #d97706;
}
.text-amber-200 {
    color: #fef3c7;
}
.text-amber-500 {
    color: #f59e0b;
}
.text-amber-600 {
    color: #d97706;
}
.text-amber-700 {
    color: #b45309;
}
.border-amber-500 {
    border-color: #f59e0b;
}
.ring-amber-500 {
    --tw-ring-color: #f59e0b;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-up-delay {
    animation: fadeUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.open {
    display: block;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    outline: none;
}

::selection {
    background-color: #f59e0b;
    color: white;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #cbd5e1;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: #f59e0b;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
