/* Happidea — modern-brand (biancheria casa: salvia, sabbia, rosa cipria) */

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 salvia + rosa cipria (classi coral del template) */
.bg-coral-100 {
    background-color: #e8f0ea;
}
.bg-coral-200 {
    background-color: #d4e4d8;
}
.bg-coral-500 {
    background-color: #6b8f71;
}
.bg-coral-600 {
    background-color: #5a7a60;
}
.text-coral-200 {
    color: #d4e4d8;
}
.text-coral-500 {
    color: #6b8f71;
}
.text-coral-600 {
    color: #5a7a60;
}
.border-coral-500 {
    border-color: #6b8f71;
}
.ring-coral-500 {
    --tw-ring-color: #6b8f71;
}

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

/* Pagine interne: header non trasparente + main abbastanza alto per non coprire il breadcrumb */
body.inner-page #header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(231, 229, 228, 0.95);
}

main.inner-main {
    /* Header fisso: py-5 + riga logo/nav (può andare a capo su md) — pt-24 non basta */
    padding-top: 9rem;
}

@media (min-width: 1280px) {
    main.inner-main {
        padding-top: 7.75rem;
    }
}

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

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

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

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

::-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 #6b8f71;
    outline-offset: 2px;
}

input::placeholder {
    color: #a8a29e;
}

input:focus {
    outline: none;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

#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: #6b8f71;
}

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

::-moz-selection {
    background-color: #6b8f71;
    color: white;
}

/* Header: più aria tra le voci */
.site-header-row {
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .site-header-row {
        gap: 2.5rem;
    }
}

.nav-link {
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    color: #57534e;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.85);
    color: #1c1917;
}

.nav-link-active {
    color: #5a7a60;
    background-color: rgba(232, 240, 234, 0.98);
    font-weight: 600;
}

.nav-link-active:hover {
    color: #4a6b50;
    background-color: rgba(212, 228, 216, 0.98);
}

/* Breadcrumb — striscia elegante sotto l'header */
.breadcrumb-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 250, 249, 0.9) 100%);
    border-bottom: 1px solid rgba(231, 229, 228, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.breadcrumb-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .breadcrumb-inner {
        font-size: 0.9375rem;
    }
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: #78716c;
    padding: 0.35rem 0.85rem 0.35rem 0.65rem;
    border-radius: 9999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #5a7a60;
    background-color: rgba(232, 240, 234, 0.85);
}

.breadcrumb-link svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    color: #d6d3d1;
    flex-shrink: 0;
    padding: 0 0.15rem;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #44403c;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e8f0ea 0%, #eef4ef 100%);
    border: 1px solid rgba(107, 143, 113, 0.2);
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
    max-width: 100%;
}
