/* Andrea Fontebasso — porcellana: palette avorio, pietra, oro antico */

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;
}

/* Accento oro antico / bronzo (ex coral) */
.bg-coral-100 {
    background-color: #f5efe6;
}
.bg-coral-200 {
    background-color: #e8dcc8;
}
.bg-coral-500 {
    background-color: #a67c52;
}
.bg-coral-600 {
    background-color: #8a6543;
}
.text-coral-200 {
    color: #e8dcc8;
}
.text-coral-500 {
    color: #a67c52;
}
.text-coral-600 {
    color: #8a6543;
}
.border-coral-500 {
    border-color: #a67c52;
}
.ring-coral-500 {
    --tw-ring-color: #a67c52;
}

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

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

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

.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-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
    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: #fafaf9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #78716c;
}

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

input::placeholder {
    color: #a8a29e;
}

input:focus {
    outline: none;
}

#testimonial-carousel {
    position: relative;
}

#testimonial-track {
    display: flex;
    transition: transform 0.3s ease;
}

#testimonial-track > div {
    flex: 0 0 100%;
    padding: 0 1rem;
}

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

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

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-stats .w-px {
        width: 100%;
        height: 1px;
    }
}

@media print {
    header,
    footer,
    #mobile-menu,
    button,
    .no-print {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    a {
        color: black;
        text-decoration: underline;
    }
}

@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;
    }
}

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

::-moz-selection {
    background-color: #a67c52;
    color: white;
}

.product-placeholder {
    background: linear-gradient(145deg, #e7e5e4 0%, #d6d3d1 100%);
}

/* Affiliate CTA — gradient bronzo, glow (palette coral = oro antico) */
.cta-trova-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #c9a06b 0%, #a67c52 38%, #8f6d47 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow:
        0 8px 26px -8px rgba(74, 52, 34, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}
.cta-trova-online:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px -8px rgba(74, 52, 34, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff;
}
.cta-trova-online:active {
    transform: translateY(0);
}
.cta-trova-online--block {
    display: flex;
    width: 100%;
}
.cta-trova-online svg {
    flex-shrink: 0;
}

.object-contain {
    object-fit: contain;
}

/* Height utility missing from built Tailwind bundle */
.h-11 {
    height: 2.75rem;
}
