/* ========================================
   IL SENTIERO DI KUAN - Design System
   Modern Glassmorphism & Spiritual Aesthetics
   ======================================== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Antic+Didone&family=Outfit:wght@300;400;500;600&display=swap');

/* ----- CSS Variables ----- */
:root {
    /* New Natural Color Palette */
    --color-dusty-olive: #717464;
    --color-lime-cream: #cff27e;
    --color-straw-gold: #f2dd6e;
    --color-amethyst-smoke: #b084cc;
    --color-dusty-grape: #665687;

    /* Derived colors for compatibility */
    --color-primary: #665687;
    /* dusty-grape - main accent */
    --color-primary-dark: #4d4066;
    /* darker dusty-grape */
    --color-primary-light: #8576a8;
    /* lighter dusty-grape */
    --color-secondary: #b084cc;
    /* amethyst-smoke */
    --color-secondary-light: #c9a8e0;
    /* lighter amethyst-smoke */
    --color-accent: #cff27e;
    /* lime-cream */

    /* Legacy mapping */
    --color-violet: #665687;
    /* replaced with dusty-grape */
    --color-violet-dark: #4d4066;
    --color-violet-light: #8576a8;
    --color-gold: #f2dd6e;
    /* straw-gold */
    --color-gold-light: #fdf5c2;
    --color-gold-dark: #d9c462;
    --color-teal: #717464;
    /* dusty-olive */
    --color-teal-light: #cff27e;
    /* lime-cream */
    --color-rose: #b084cc;
    /* amethyst-smoke */
    --color-rose-light: #c9a8e0;

    /* Neutrals */
    --color-cream: #f9f7f2;
    /* warmer cream (unchanged) */
    --color-ivory: #fcfaf5;
    /* warm ivory (unchanged) */
    --color-charcoal: #717464;
    /* dusty-olive */
    --color-gray-dark: #5a5c50;
    --color-gray: #8a8c7f;
    --color-gray-light: #e8e6e0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(0, 0, 0, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --glass-blur: blur(16px);

    /* Typography */
    --font-heading: 'Antic Didone', serif;
    --font-body: 'Outfit', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-slower: 0.8s ease;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-charcoal);
    background: var(--color-cream);
    overflow-x: hidden;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-charcoal);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-violet);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-violet-dark);
}

/* ----- Layout Utilities ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-violet), var(--color-gold));
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

/* ----- Glassmorphism Components ----- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
}

.glass-card-light {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: var(--space-md);
    left: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    padding: var(--space-md) var(--space-lg);
    transition: all var(--transition-base);
    /* Glassmorphism always applied */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.18);
    padding: var(--space-sm) var(--space-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-logo img {
    height: 50px;
    width: auto;
    transition: height var(--transition-base);
}

.navbar.scrolled .navbar-logo img {
    height: 40px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.navbar-menu a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-violet), var(--color-gold));
    transition: width var(--transition-base), left var(--transition-base);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 60%;
    left: 20%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-charcoal);
    transition: all var(--transition-fast);
}

.navbar-brand-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-charcoal);
    display: none;
}

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: clip;
    background: linear-gradient(135deg,
            var(--color-cream) 0%,
            #f3e8ff 25%,
            #fdf2f8 50%,
            #ecfdf5 75%,
            var(--color-ivory) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* ----- Hero background image + overlay ----- */
.hero-bg-image {
    position: absolute;
    inset: -10%;
    z-index: 0;
    overflow: hidden;
}

.home-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    will-change: transform;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(255, 249, 235, 0.55) 0%,
        rgba(243, 232, 255, 0.42) 50%,
        rgba(236, 253, 245, 0.48) 100%
    );
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    animation: floatBg 20s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: var(--space-xl);
    padding-top: calc(var(--space-xl) + 100px);
}

/* Ellisse sfumata dietro titolo e tagline:
   il ::before è molto più grande del box del testo,
   così il gradiente ha spazio per morire dolcemente */
.hero-text-card {
    position: relative;
    isolation: isolate; /* stacking context: ::before z-index:-1 resta sotto al testo */
    padding: var(--space-xl) var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.hero-text-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 400%;
    background: radial-gradient(ellipse at center,
        rgba(255, 249, 235, 0.78) 0%,
        rgba(255, 249, 235, 0.25) 35%,
        transparent 62%
    );
    pointer-events: none;
    z-index: -1; /* dietro al testo, ma dentro al contesto del card */
}

.hero-logo {
    max-width: 280px;
    margin-bottom: 0;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.2));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: linear-gradient(90deg, var(--color-violet-dark), var(--color-violet), #a07c2a, var(--color-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% auto;
    animation: shimmer 10s linear infinite;
    white-space: nowrap;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1.7;
    background: linear-gradient(90deg, var(--color-violet-dark), var(--color-violet), #a07c2a, var(--color-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% auto;
    animation: shimmer 5s linear infinite;
    max-width: 720px;
    margin: 0 auto var(--space-md);
    position: relative;
    padding-bottom: var(--space-md);
}

.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-violet), transparent);
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 300;
    color: rgba(113, 116, 100, 0.65);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    position: relative; /* sopra al ::before del hero-text-card */
}

.hero-buttons .btn {
    width: 260px;
    justify-content: center;
}

.hero-buttons .btn svg {
    display: none;
}

.hero-buttons .btn-glass {
    background: rgba(102, 86, 135, 0.12);
    border: 1.5px solid var(--color-violet);
    color: var(--color-violet-dark);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-violet), var(--color-violet-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    color: white;
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--color-charcoal);
}

.btn-glass:hover {
    background: var(--glass-bg-light);
    transform: translateY(-2px);
}

/* ----- Treatment Cards ----- */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.treatment-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.treatment-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.treatment-card:hover .treatment-card-image {
    transform: scale(1.05);
}

.treatment-card-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.treatment-card-content .btn {
    margin-top: auto;
    align-self: center;
}

.treatment-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-violet-dark);
}

.treatment-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* ----- About Section ----- */
.about-section {
    background: linear-gradient(180deg, var(--color-ivory) 0%, #f3e8ff 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content {
    padding: var(--space-xl);
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content h3 {
    text-align: center;
    margin-bottom: var(--space-md);
}

/* ----- Founder Cards ----- */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.founder-card {
    text-align: center;
    padding: var(--space-2xl);
}

.founder-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-lg);
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, var(--color-violet), var(--color-gold)) border-box;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.founder-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.founder-role {
    color: var(--color-violet);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.founder-bio {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ----- Contact Section ----- */
.contact-section {
    background: linear-gradient(135deg, #f3e8ff 0%, #ecfdf5 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-weight: 500;
    color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-violet), var(--color-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ----- Footer ----- */
.footer {
    background: #717464;
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-violet), var(--color-gold), var(--color-teal));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-map-container {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    max-width: 120px;
    margin-bottom: var(--space-md);
}

.footer h4 {
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-violet);
    transform: translateY(-3px);
    color: white;
}

/* ----- Animations ----- */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatBg {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slower), transform var(--transition-slower);
}

/* ----- Testimonials Section ----- */
.testimonials-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-cream) 0%, #f3e8ff 100%);
}

/* Background decoration */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(176, 132, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 25s ease-in-out infinite reverse;
    z-index: 0;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--space-xl) var(--space-xl);
    z-index: 1;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    gap: var(--space-2xl);
    touch-action: pan-y;
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    padding: var(--space-2xl);
    position: relative;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.6s ease;
    filter: blur(2px);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.testimonial-quote-icon {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: var(--color-violet-light);
    opacity: 0.3;
    margin-bottom: -40px;
    display: block;
    display: block;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-charcoal);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: var(--space-lg);
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-violet-dark);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: var(--space-lg);
    color: var(--color-gold);
    font-size: 2.5rem;
    animation: floatLogo 4s ease-in-out infinite;
}

/* Indicators */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    cursor: pointer;
    transition: all var(--transition-base);
}

.indicator.active {
    background: var(--color-violet);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Animations for the active card content */
.testimonial-card.active .testimonial-text {
    animation: fadeInUp 0.8s ease forwards;
}

.testimonial-card.active .testimonial-author {
    animation: fadeInUp 0.8s ease forwards 0.2s;
    opacity: 0;
    /* Starts hidden for animation */
}


.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* ----- Events Carousel Section ----- */
.events-section {
    --slide-w: 40%;
    --slide-gap: 1.5rem;
    --slide-offset: 30%; /* (100% - slide-w) / 2 */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-ivory) 0%, #e8e0f0 100%);
}

.events-section::before {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 86, 135, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 20s ease-in-out infinite;
    z-index: 0;
}

.events-carousel {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0;
    z-index: 1;
}

.events-track {
    display: flex;
    gap: var(--slide-gap);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: center;
    touch-action: pan-y;
}

.event-slide {
    flex: 0 0 var(--slide-w);
    text-align: center;
    transform: scale(0.82);
    opacity: 0.4;
    filter: blur(2px);
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
    pointer-events: none;
}

/* Slide centrale attiva */
.event-slide.slide-active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 2;
    pointer-events: auto;
}

/* Slide adiacenti (prev / next) */
.event-slide.slide-prev,
.event-slide.slide-next {
    transform: scale(0.82);
    opacity: 0.6;
    filter: blur(0);
    pointer-events: auto;
    cursor: pointer;
}

/* Evento passato: grayscale + leggero dim */
.event-slide.past .event-slide-img-wrapper {
    filter: grayscale(30%);
}

.event-slide.past.slide-active .event-slide-img-wrapper {
    filter: grayscale(15%);
    opacity: 0.85;
}

.event-slide-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 86, 135, 0.15);
    transition: box-shadow 0.4s ease, filter 0.4s ease;
}

.event-slide.slide-active .event-slide-img-wrapper {
    box-shadow: 0 12px 40px rgba(102, 86, 135, 0.25);
}

.event-slide-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Badges */
.event-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.event-badge-upcoming {
    background: var(--color-violet);
    color: #fff;
    box-shadow: 0 2px 12px rgba(102, 86, 135, 0.4);
}

.event-badge-active {
    background: var(--color-gold);
    color: var(--color-charcoal);
    box-shadow: 0 2px 12px rgba(242, 221, 110, 0.4);
    animation: pulse-violet 2s ease-in-out infinite;
}

/* Info sotto immagine */
.event-slide-info {
    padding: var(--space-md) var(--space-xs) 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-slide.slide-active .event-slide-info {
    opacity: 1;
}

.event-slide-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-violet-dark);
    margin-bottom: var(--space-sm);
}

.btn-sm {
    padding: var(--space-xs) var(--space-lg);
    font-size: 0.85rem;
}

/* Frecce navigazione */
.events-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 86, 135, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-violet);
    transition: all var(--transition-base);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.events-nav:hover {
    background: var(--color-violet);
    color: #fff;
    box-shadow: 0 4px 16px rgba(102, 86, 135, 0.3);
}

.events-nav-prev {
    left: var(--space-md);
}

.events-nav-next {
    right: var(--space-md);
}

/* Indicatori */
.events-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.events-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 86, 135, 0.2);
    cursor: pointer;
    transition: all var(--transition-base);
}

.events-indicator.active {
    background: var(--color-violet);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(102, 86, 135, 0.3);
}

/* Link social (Facebook, YouTube) */
.social-cta-row {
    text-align: center;
    margin-bottom: var(--space-md);
}

.social-cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-violet);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 86, 135, 0.15);
    transition: all var(--transition-base);
}

.social-cta-link:hover {
    background: var(--color-violet);
    color: #fff;
    box-shadow: 0 4px 16px rgba(102, 86, 135, 0.3);
}

/* ----- Video Carousel Section ----- */
.video-section {
    --slide-w: 50%;
    --slide-gap: 1.5rem;
    position: relative;
    overflow: hidden;
    background: var(--color-ivory);
}

.video-carousel {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0;
    z-index: 1;
}

.video-track {
    display: flex;
    gap: var(--slide-gap);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: center;
    touch-action: pan-y;
}

.video-slide {
    flex: 0 0 var(--slide-w);
    text-align: center;
    transform: scale(0.85);
    opacity: 0.4;
    filter: blur(2px);
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
    pointer-events: none;
}

.video-slide.slide-active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 2;
    pointer-events: auto;
}

.video-slide.slide-prev,
.video-slide.slide-next {
    transform: scale(0.85);
    opacity: 0.6;
    filter: blur(0);
    pointer-events: auto;
    cursor: pointer;
}

.video-slide-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 86, 135, 0.15);
    transition: box-shadow 0.4s ease;
}

.video-slide.slide-active .video-slide-wrapper {
    box-shadow: 0 12px 40px rgba(102, 86, 135, 0.25);
}

.video-facade {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-base);
}

.video-facade:hover .video-thumbnail {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-base), filter var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.video-facade:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
}

.video-play-bg {
    transition: fill var(--transition-base), fill-opacity var(--transition-base);
}

.video-facade:hover .video-play-bg {
    fill: #cc0000;
    fill-opacity: 1;
}

.video-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Frecce navigazione video */
.video-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 86, 135, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-violet);
    transition: all var(--transition-base);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-nav:hover {
    background: var(--color-violet);
    color: #fff;
    box-shadow: 0 4px 16px rgba(102, 86, 135, 0.3);
}

.video-nav-prev {
    left: var(--space-md);
}

.video-nav-next {
    right: var(--space-md);
}

/* Indicatori video */
.video-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.video-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 86, 135, 0.2);
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-indicator.active {
    background: var(--color-violet);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(102, 86, 135, 0.3);
}

.video-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ----- Responsive Design ----- */
@media (max-width: 1100px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        align-items: center;
        padding: var(--space-xl);
        gap: var(--space-lg);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all var(--transition-base);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-brand-text {
        display: block;
        margin-left: var(--space-sm);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: calc(var(--space-xl) + 80px);
    }

    .hero-logo {
        max-width: 200px;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .founders-grid {
        grid-template-columns: 1fr;
    }

    .founder-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .glass-card {
        padding: var(--space-lg);
    }

    .hero-logo {
        max-width: 160px;
    }
}

/* ----- Modal ----- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: var(--color-cream);
    margin: 5% auto;
    padding: var(--space-2xl);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform var(--transition-base);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: var(--color-gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-violet);
    text-decoration: none;
}

.modal-body {
    padding-top: var(--space-md);
    max-height: 70vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-gray);
    border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-violet);
}

/* ----- Parallax Section ----- */
.parallax-section {
    background-image: url('../images/20250518_181153.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--space-4xl) 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    min-height: 400px;
}

@media (max-width: 1024px) {
    .parallax-section {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
}

.parallax-recovery {
    background-image: url('../images/relaxing_spa_background.png');
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--space-xl);
}

.parallax-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.parallax-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--color-cream);
}

@media (max-width: 768px) {
    /* Center Footer on Mobile */
    .footer {
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
        width: 100%;
    }

    /* Video carousel mobile */
    .video-section {
        --slide-w: 80%;
        --slide-gap: 0.75rem;
    }

    .video-nav {
        display: none;
    }

    /* Events carousel mobile */
    .events-section {
        --slide-w: 65%;
        --slide-gap: 0.75rem;
        --slide-offset: 17.5%;
    }

    .events-nav {
        display: none;
    }

    .event-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        top: var(--space-sm);
        right: var(--space-sm);
    }

    .event-slide-title {
        font-size: 0.95rem;
    }

    .event-slide.slide-prev,
    .event-slide.slide-next {
        transform: scale(0.78);
        opacity: 0.5;
    }
}

/* ----- WhatsApp FAB ----- */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition-base);
    animation: pulse-green 2s infinite;
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background-color: #20bd5a;
    color: white;
}

.whatsapp-fab svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-fab svg {
        width: 28px;
        height: 28px;
    }
}

/* ----- Exclusive Badge ----- */
.badge-exclusive {
    position: absolute;
    top: 15px;
    left: 0;
    background: linear-gradient(90deg, #ffd700, #b8860b);
    color: var(--color-charcoal);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 217, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.5) inset;
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
}

/* ----- Courses Section ----- */
.courses-section {
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    padding: 0;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
}

.course-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-card:hover .course-card-image {
    transform: scale(1.05);
}

.course-category {
    position: absolute;
    top: 15px;
    left: 0;
    background: linear-gradient(135deg, var(--color-violet), var(--color-violet-dark));
    color: white;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.course-card-content {
    padding: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.course-card-content h3 {
    font-size: 1.2rem;
    color: var(--color-violet-dark);
    margin: 0;
}

.course-card-content .btn {
    align-self: center;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card-image {
        height: 180px;
    }
}

/* ----- Cookie Consent Banner ----- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 600px;
    width: calc(100% - 40px);
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-content p {
    margin: 0;
    color: var(--color-charcoal);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.cookie-content a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
    transition: all var(--transition-fast);
}

.cookie-content a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary-dark);
}

.cookie-content .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 24px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.cookie-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 86, 135, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        width: calc(100% - 20px);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
    }

    .cookie-content p {
        font-size: 0.85rem;
    }

    .cookie-content .btn {
        width: 100%;
        padding: 12px 24px;
    }
}

/* ===== Special Event FAB ===== */
.event-fab-wrapper {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
}

/* FAB button */
.event-fab {
    pointer-events: auto;
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-violet), var(--color-violet-dark));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 86, 135, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse-violet 2.5s infinite;
}

.event-fab:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(102, 86, 135, 0.65);
}

@keyframes pulse-violet {
    0%   { box-shadow: 0 0 0 0 rgba(102, 86, 135, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(102, 86, 135, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 86, 135, 0); }
}

/* Badge rosso */
.event-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Panel eventi */
.event-fab-panel {
    background: var(--color-ivory);
    border-radius: var(--radius-xl);
    width: 280px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(102, 86, 135, 0.12);
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-fab-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.event-fab-panel-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
}

.event-fab-panel-close:hover {
    background: rgba(0, 0, 0, 0.55);
}

.event-fab-panel-img {
    width: 100%;
    display: block;
}

.event-fab-panel-body {
    padding: 1rem;
}

.event-fab-panel-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.event-fab-panel-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-charcoal);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.event-fab-panel-desc {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.6;
}

.event-fab-panel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #25D366;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.event-fab-panel-cta:hover {
    background: #1ebe5d;
    color: white;
}

@media (max-width: 768px) {
    .event-fab-wrapper {
        bottom: 85px;
        right: 20px;
    }

    .event-fab {
        width: 52px;
        height: 52px;
    }

    .event-fab-panel {
        width: 260px;
    }

}
