/* Prestige Template - Custom Styles */

/* ===== FONTS ===== */
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;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ===== GOLD COLOR PALETTE ===== */
.bg-gold-500 {
    background-color: #D4A853;
}
.bg-gold-500\/5 {
    background-color: rgba(212, 168, 83, 0.05);
}
.bg-gold-500\/20 {
    background-color: rgba(212, 168, 83, 0.2);
}
.text-gold-500 {
    color: #D4A853;
}
.text-gold-500\/20 {
    color: rgba(212, 168, 83, 0.2);
}
.border-gold-500 {
    border-color: #D4A853;
}
.fill-gold-500 {
    fill: #D4A853;
}
.hover\:text-gold-500:hover {
    color: #D4A853;
}
.hover\:bg-gold-500:hover {
    background-color: #D4A853;
}
.group:hover .group-hover\:text-gold-500 {
    color: #D4A853;
}
.group:hover .group-hover\:bg-gold-500 {
    background-color: #D4A853;
}

/* ===== DARK COLOR ===== */
.bg-dark {
    background-color: #0A0A0A;
}
.bg-dark\/85 {
    background-color: rgba(10, 10, 10, 0.85);
}
.text-dark {
    color: #0A0A0A;
}
.border-dark {
    border-color: #0A0A0A;
}
.hover\:bg-dark:hover {
    background-color: #0A0A0A;
}
.hover\:border-dark:hover {
    border-color: #0A0A0A;
}
.group:hover .group-hover\:bg-dark {
    background-color: #0A0A0A;
}

/* ===== CREAM BACKGROUND ===== */
.bg-cream {
    background-color: #F5F0EB;
}
.bg-cream\/50 {
    background-color: rgba(245, 240, 235, 0.5);
}
.hover\:bg-cream:hover {
    background-color: #F5F0EB;
}

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

@keyframes scrollDot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.animate-scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

/* ===== HEADER CTA (affiliate) ===== */
a.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #0a0a0a;
    background: linear-gradient(145deg, #ecd496 0%, #d4a853 42%, #b8892e 100%);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 2px 6px rgba(10, 10, 10, 0.08),
        0 4px 14px rgba(212, 168, 83, 0.35);
    transition:
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

a.header-cta-btn:hover {
    color: #fff;
    background: #0a0a0a;
    border-color: #2a2a2a;
    box-shadow: 0 6px 24px rgba(10, 10, 10, 0.35);
    transform: translateY(-1px);
}

a.header-cta-btn:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 3px;
}

a.header-cta-btn--block {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0.75rem;
}

a.header-cta-btn--hero {
    padding: 0.9rem 1.85rem;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
}

/* ===== BEST SELLERS SECTION ===== */
.section-bestsellers {
    background: linear-gradient(180deg, #fdfcfa 0%, #f5f0eb 45%, #efe8e0 100%);
}

.bestseller-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 1.125rem;
    overflow: hidden;
    border: 1px solid rgba(10, 10, 10, 0.07);
    box-shadow:
        0 2px 4px rgba(10, 10, 10, 0.04),
        0 8px 24px rgba(10, 10, 10, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.bestseller-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 8px rgba(10, 10, 10, 0.06),
        0 16px 40px rgba(10, 10, 10, 0.12);
}

.bestseller-img-wrap {
    background: linear-gradient(160deg, #fffcf7 0%, #f0ebe5 100%);
    border-bottom: 1px solid rgba(10, 10, 10, 0.05);
}

a.bestseller-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #0a0a0a;
    background: #d4a853;
    border-radius: 0.5rem;
    border: 1px solid rgba(10, 10, 10, 0.06);
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a.bestseller-cta:hover {
    color: #fff;
    background: #0a0a0a;
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.2);
}

/* ===== HEADER STYLES ===== */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* ===== FAQ STYLES ===== */
.faq-item.active .faq-plus-vertical {
    display: none;
}

.faq-item.active .faq-icon {
    transform: rotate(0deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* Inner pages: risposte più lunghe, stesso look della home */
.section-faq-inner .faq-item.active .faq-content {
    max-height: 1200px;
}

/* ===== TESTIMONIAL CAROUSEL (MOBILE) ===== */
#testimonial-carousel {
    position: relative;
}

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

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

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

.testimonial-dot.active {
    background-color: #D4A853;
    width: 24px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #D4A853;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c09640;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #D4A853;
    outline-offset: 2px;
}

/* ===== SELECTION STYLES ===== */
/* ===== FOOTER AFFILIATE (readability on dark bg) ===== */
#contatti .footer-affiliate-disclaimer {
    color: #e7e5e4;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

#contatti .footer-affiliate-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
    #contatti .footer-affiliate-box {
        padding: 1.75rem 2rem;
    }
}

::selection {
    background-color: #D4A853;
    color: #0A0A0A;
}

::-moz-selection {
    background-color: #D4A853;
    color: #0A0A0A;
}

/* ===== REDUCED MOTION ===== */
@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;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header,
    footer,
    #mobile-menu,
    button,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
