/* Nebula Aerosol — palette medica teal / ciano (classi coral-* mantenute per compatibilità HTML) */

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

.bg-coral-100 {
    background-color: #ccfbf1;
}
.bg-coral-200 {
    background-color: #99f6e4;
}
.bg-coral-500 {
    background-color: #0d9488;
}
.bg-coral-600 {
    background-color: #0f766e;
}
.text-coral-200 {
    color: #99f6e4;
}
.text-coral-500 {
    color: #0d9488;
}
.text-coral-600 {
    color: #0f766e;
}
.border-coral-500 {
    border-color: #0d9488;
}
.ring-coral-500 {
    --tw-ring-color: #0d9488;
}

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

/* Extra space: nav ↔ CTA (ms-* may be missing from purged Tailwind build) */
#header-cta {
    margin-left: 1.25rem;
}

@media (min-width: 1280px) {
    #header-cta {
        margin-left: 2rem;
    }

    /* Clearer separation between top-level menu items than gap-4 alone */
    header nav[aria-label="Principale"] {
        column-gap: 1.75rem;
        row-gap: 0.5rem;
    }
}

/* Desktop nav dropdowns (avoids 12+ flat links) */
.nav-dropdown-panel {
    display: none;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    display: block;
}
.nav-dropdown-trigger svg {
    transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

/* Mobile accordion nav */
details.nav-accordion > summary {
    list-style: none;
}
details.nav-accordion > summary::-webkit-details-marker {
    display: none;
}

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

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

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

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

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

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

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: #cbd5e1;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

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

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

::-moz-selection {
    background-color: #0d9488;
    color: white;
}
