/* Chipie Scarpe — palette rosa cipria, denim e crema (stile casual francese) */

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;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

/* Accent "coral" classes mappate su rosa polvere / lampone soft */
.bg-coral-100 {
    background-color: #fce7ef;
}
.bg-coral-200 {
    background-color: #f9d0e0;
}
.bg-coral-500 {
    background-color: #c45d7e;
}
.bg-coral-600 {
    background-color: #a84a68;
}
.text-coral-200 {
    color: #f9d0e0;
}
.text-coral-500 {
    color: #c45d7e;
}
.text-coral-600 {
    color: #a84a68;
}
.border-coral-500 {
    border-color: #c45d7e;
}
.ring-coral-500 {
    --tw-ring-color: #c45d7e;
}

@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, 252, 250, 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: #c4b8b0;
    border-radius: 5px;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #c45d7e;
    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: #c45d7e;
}

@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: #c45d7e;
    color: white;
}

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

.prose-chipie p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* —— Best products showcase (homepage) —— */
.best-products-section {
    position: relative;
    isolation: isolate;
    background: linear-gradient(165deg, #fff5f7 0%, #faf8f6 38%, #f0f9ff 100%);
}

.best-products-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.best-products-bg::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 80%;
    top: -20%;
    left: -20%;
    background: radial-gradient(ellipse 50% 45% at 70% 20%, rgba(196, 93, 126, 0.14), transparent 55%),
        radial-gradient(ellipse 40% 35% at 15% 80%, rgba(125, 211, 252, 0.18), transparent 50%),
        radial-gradient(ellipse 35% 30% at 90% 70%, rgba(253, 224, 230, 0.5), transparent 45%);
}

.best-products-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 1;
}

.best-products-header-deco {
    width: 3rem;
    height: 4px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #c45d7e, #f9a8d4, #7dd3fc);
    margin-bottom: 1.25rem;
}

.best-products-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.94);
    color: #a84a68;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(196, 93, 126, 0.28);
    box-shadow: 0 2px 10px rgba(68, 64, 60, 0.06);
}

.best-products-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid rgba(214, 211, 209, 0.95);
    color: #292524;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 9999px;
    height: 3rem;
    padding: 0 2rem;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(68, 64, 60, 0.08);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.best-products-secondary-cta:hover {
    background: #fff;
    border-color: rgba(196, 93, 126, 0.45);
    color: #a84a68;
    box-shadow: 0 8px 24px rgba(196, 93, 126, 0.15);
}

.best-products-secondary-cta:focus-visible {
    outline: 2px solid #c45d7e;
    outline-offset: 3px;
}

.best-products-title span {
    background: linear-gradient(120deg, #44403c 0%, #c45d7e 45%, #0c4a6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.best-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 252, 250, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 6px -1px rgba(68, 64, 60, 0.06),
        0 20px 40px -12px rgba(196, 93, 126, 0.12),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.best-product-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(196, 93, 126, 0.35);
    box-shadow: 0 25px 50px -12px rgba(196, 93, 126, 0.22),
        0 12px 24px -8px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

.best-product-card:focus-visible {
    outline: 2px solid #c45d7e;
    outline-offset: 3px;
}

.best-product-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #c45d7e;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(196, 93, 126, 0.25);
    box-shadow: 0 2px 8px rgba(68, 64, 60, 0.08);
}

.best-product-visual {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(160deg, #fafaf9 0%, #fff 50%, #fdf2f4 100%);
    overflow: hidden;
}

.best-product-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(196, 93, 126, 0.08), transparent 65%);
    pointer-events: none;
}

.best-product-visual img {
    position: relative;
    z-index: 1;
    transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.best-product-card:hover .best-product-visual img {
    transform: scale(1.06);
}

.best-product-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.45) 48%,
        rgba(255, 255, 255, 0.15) 52%,
        transparent 60%
    );
    transform: translateX(-100%) skewX(-12deg);
    transition: transform 0.65s ease;
}

.best-product-card:hover .best-product-shine {
    transform: translateX(100%) skewX(-12deg);
}

.best-product-body {
    padding: 1.35rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.best-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.65rem 1.25rem;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border-radius: 9999px;
    background: linear-gradient(135deg, #c45d7e 0%, #d47290 45%, #a84a68 100%);
    box-shadow: 0 4px 14px rgba(196, 93, 126, 0.45);
    transition: box-shadow 0.3s ease, transform 0.25s ease, filter 0.25s ease;
}

.best-product-card:hover .best-product-cta {
    box-shadow: 0 8px 24px rgba(196, 93, 126, 0.5);
    filter: brightness(1.05);
}

.best-product-cta svg {
    transition: transform 0.25s ease;
}

.best-product-card:hover .best-product-cta svg {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .best-product-card,
    .best-product-visual img,
    .best-product-shine,
    .best-product-cta,
    .best-product-cta svg {
        transition: none !important;
    }
    .best-product-card:hover {
        transform: none;
    }
    .best-product-card:hover .best-product-visual img {
        transform: none;
    }
    .best-product-card:hover .best-product-shine {
        transform: translateX(-100%) skewX(-12deg);
    }
}
