/* ========================================

   Maneggio I Pavoni — Design System Lusso/Raffinato

   Palette: Nero #1A1A1A, Bordeaux #722F37, Champagne #E8D5B7, Grigio Perla #E8E5DF

   Font: Cormorant Garamond (headings), Jost (body)

   ======================================== */



/* --- CSS Custom Properties --- */

:root {

    --color-dark: #1A1A1A;

    --color-dark-light: #2A2A2A;

    --color-bordeaux: #722F37;

    --color-bordeaux-dark: #5A252C;

    --color-bordeaux-light: #8E4350;

    --color-oro: #C4956A;

    --color-oro-dark: #A67C52;

    --color-bg: #FBF9F6;

    --color-bg-alt: #F0EDE8;

    --color-white: #FFFFFF;

    --color-text: #1A1A1A;

    --color-text-muted: #6B6B6B;

    --color-text-light: #9A9A9A;

    --color-success: #2D5A27;

    --color-success-light: rgba(45, 90, 39, 0.12);

    --color-danger: #A83232;

    --color-danger-light: rgba(168, 50, 50, 0.12);

    --color-warning: #B8860B;

    --color-warning-light: rgba(184, 134, 11, 0.12);

    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --section-padding: 6rem 0;

    --section-padding-mobile: 3rem 0;

    --card-radius: 16px;

    --card-radius-sm: 12px;

    --btn-radius: 8px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);

    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);

    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

    --shadow-bordeaux: 0 4px 16px rgba(114, 47, 55, 0.25);

    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);

    --pavoni-navbar-offset: 80px;

}



/* --- Ultra-Fast Touch Feedback & PWA Page Loading Transition --- */

a,
button,
.btn,
.nav-link,
.card,
.dropdown-item {

    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.25) !important;

}



button:active,
.btn:active,
a.btn:active {

    transform: scale(0.97) !important;

    opacity: 0.88 !important;

    transition: transform 0.05s ease, opacity 0.05s ease !important;

}



#pwaPageProgressBar {

    position: fixed;

    top: 0;

    left: 0;

    height: 3px;

    width: 0%;

    z-index: 999999;

    background: linear-gradient(90deg, #D4AF37, #722F37, #D4AF37);

    box-shadow: 0 0 12px rgba(212, 175, 55, 0.9);

    transition: width 0.25s ease-out, opacity 0.2s ease;

    pointer-events: none;

}



/* --- Accessibility: Skip to Content --- */

.skip-to-content {

    position: absolute;

    top: -100%;

    left: 50%;

    transform: translateX(-50%);

    z-index: 99999;

    background: var(--color-bordeaux);

    color: var(--color-white);

    padding: 0.75rem 1.5rem;

    border-radius: 0 0 var(--card-radius-sm) var(--card-radius-sm);

    font-weight: 600;

    font-size: 0.95rem;

    transition: top 0.2s ease;

    text-decoration: none;

}



.skip-to-content:focus {

    top: 0;

    color: var(--color-white);

}



/* --- Focus-visible per accessibilità tastiera --- */

:focus-visible {

    outline: 3px solid var(--color-bordeaux);

    outline-offset: 2px;

    border-radius: 4px;

}



.btn:focus-visible,

.form-control:focus-visible,

.form-select:focus-visible {

    outline-offset: 1px;

}



/* --- Selection --- */

::selection {

    background: var(--color-bordeaux);

    color: var(--color-white);

}



/* --- Base --- */

body {

    font-family: var(--font-body);

    font-weight: 400;

    color: var(--color-text);

    background-color: var(--color-bg);

    padding-top: var(--pavoni-navbar-offset, 80px);

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



h1,

h2,

h3,

h4,

h5,

h6 {

    font-family: var(--font-heading);

    color: var(--color-dark);

    letter-spacing: -0.02em;

    font-weight: 600;

}



h1 {

    font-size: 3.5rem;

}



h2 {

    font-size: 2.8rem;

}



h3 {

    font-size: 2rem;

}



h4 {

    font-size: 1.5rem;

}



h5 {

    font-size: 1.2rem;

}



a {

    color: var(--color-bordeaux);

    text-decoration: none;

    transition: color var(--transition);

}



a:hover {

    color: var(--color-bordeaux-dark);

}



/* --- Link underline animation --- */

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.skip-to-content):not(.social-icon):not(.list-group-item):not(.badge) {

    background-image: linear-gradient(var(--color-bordeaux), var(--color-bordeaux));

    background-size: 0% 2px;

    background-repeat: no-repeat;

    background-position: left bottom;

    transition: background-size 0.3s ease;

    padding-bottom: 2px;

}



a:not(.btn):not(.nav-link):not(.dropdown-item):not(.skip-to-content):not(.social-icon):not(.list-group-item):not(.badge):hover {

    background-size: 100% 2px;

    color: var(--color-bordeaux-dark);

}



/* ========================================

   NAVBAR

   ======================================== */



#mainNavbar {

    background-color: rgba(26, 26, 26, 0.92);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;

    padding: 0.5rem 0;

}



#mainNavbar.navbar-scrolled {

    background-color: rgba(26, 26, 26, 0.97);

    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    padding: 0.25rem 0;

}



#mainNavbar .navbar-brand {

    font-family: var(--font-heading);

    font-size: 1.6rem;

    color: var(--color-white);

    font-weight: 600;

    letter-spacing: 0.02em;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



#mainNavbar .navbar-brand i {

    color: var(--color-oro);

    font-size: 1.3rem;

}



#mainNavbar .navbar-brand .brand-text {

    color: var(--color-white);

}



#mainNavbar .navbar-brand .brand-accent {

    color: var(--color-oro);

    font-weight: 700;

}



#mainNavbar .nav-link {

    color: #FFFFFF;

    font-weight: 500;

    font-size: 0.95rem;

    padding: 0.5rem 1rem;

    transition: color var(--transition);

    position: relative;

    letter-spacing: 0.01em;

}



#mainNavbar .nav-link:hover,

#mainNavbar .nav-link:focus {

    color: var(--color-oro);

}



#mainNavbar .nav-link.active-page {

    color: var(--color-oro) !important;

    font-weight: 500;

}



#mainNavbar .nav-link.active-page::after {

    content: '';

    position: absolute;

    bottom: 2px;

    left: 1rem;

    right: 1rem;

    height: 2px;

    background: var(--color-oro);

    border-radius: 1px;

}



/* Dropdown */

#mainNavbar .dropdown-menu {

    background: var(--color-dark);

    border: 1px solid rgba(232, 213, 183, 0.2);

    border-radius: var(--card-radius-sm);

    padding: 0.5rem;

    box-shadow: var(--shadow-lg);

}

@media (min-width: 992px) {
    #mainNavbar .dropdown-menu {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}



#mainNavbar .dropdown-menu .dropdown-item {

    color: rgba(255, 255, 255, 0.92);

    border-radius: 8px;

    padding: 0.6rem 1rem;

    font-size: 0.9rem;

    transition: all 0.2s ease;

}



#mainNavbar .dropdown-menu .dropdown-item:hover,

#mainNavbar .dropdown-menu .dropdown-item:focus {

    background: var(--color-bordeaux);

    color: var(--color-white);

}



#mainNavbar .dropdown-menu .dropdown-divider {

    border-top: 1px solid rgba(232, 213, 183, 0.15);

    margin: 0.35rem 0;

}



#mainNavbar .dropdown-menu .dropdown-header {

    color: var(--color-oro);

    font-family: var(--font-heading);

    font-size: 0.9rem;

    padding: 0.5rem 1rem 0.25rem;

}



/* Notification badge */

#mainNavbar .notification-badge {

    position: absolute;

    top: -2px;

    right: 2px;

    background: var(--color-bordeaux);

    color: var(--color-white);

    border-radius: 50%;

    width: 20px;

    height: 20px;

    font-size: 0.65rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid var(--color-dark);

}



/* Navbar scrolled adjustments for dropdown */

#mainNavbar.navbar-scrolled .notification-badge {

    border-color: var(--color-dark);

}



/* Toggler */

#mainNavbar .navbar-toggler {

    border: none;

    color: var(--color-white);

    font-size: 1.5rem;

    padding: 0;

}



#mainNavbar .navbar-toggler:focus {

    box-shadow: none;

}



/* Mobile collapse */

@media (max-width: 991.98px) {

    :root {
        --pavoni-navbar-offset: 116px;
    }

    #mainNavbar .navbar-brand {
        max-width: 100%;
        white-space: normal;
        line-height: 1.18;
    }

    #mainNavbar .navbar-collapse {

        background: var(--color-dark);

        border-radius: var(--card-radius);

        padding: 1rem 1rem 2.5rem 1rem;

        margin-top: 0.75rem;

        border: 1px solid rgba(232, 213, 183, 0.1);

        box-shadow: var(--shadow-lg);

        max-height: calc(100vh - 148px);

        max-height: calc(100dvh - 148px);

        overflow-y: auto !important;

        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch !important;

        overscroll-behavior-y: contain;

        touch-action: pan-y !important;

    }

    #mainNavbar .dropdown-menu {
        position: static !important;
        float: none !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        transform: none !important;
    }



    #mainNavbar .navbar-nav .btn {

        margin: 0.5rem 0 0 0 !important;

        width: 100%;

    }



    #mainNavbar .nav-link.active-page::after {

        left: 1rem;

        right: auto;

        width: 30px;

    }

}

@media (max-width: 400px) {

    #mainNavbar .navbar-brand {
        font-size: 1.38rem;
    }

}



/* ========================================

   BUTTONS

   ======================================== */



.btn {

    border-radius: var(--btn-radius);

    font-weight: 500;

    padding: 0.6rem 1.75rem;

    transition: all var(--transition);

    font-family: var(--font-body);

    letter-spacing: 0.01em;

}



.btn:hover {

    transform: translateY(-2px);

}



.btn:active {

    transform: translateY(0);

}



.btn-bordeaux {

    background-color: var(--color-bordeaux);

    border-color: var(--color-bordeaux);

    color: var(--color-white);

}



.btn-bordeaux:hover {

    background-color: var(--color-bordeaux-dark);

    border-color: var(--color-bordeaux-dark);

    color: var(--color-white);

    box-shadow: var(--shadow-bordeaux);

}



.btn-bordeaux:active {

    background-color: var(--color-bordeaux-dark) !important;

    border-color: var(--color-bordeaux-dark) !important;

}



.btn-outline-bordeaux {

    border-color: var(--color-bordeaux);

    color: var(--color-bordeaux);

    background: transparent;

}



.btn-outline-bordeaux:hover {

    background-color: var(--color-bordeaux);

    border-color: var(--color-bordeaux);

    color: var(--color-white);

    box-shadow: var(--shadow-bordeaux);

}



.btn-oro {

    background-color: var(--color-oro);

    border-color: var(--color-oro);

    color: var(--color-dark);

}



.btn-oro:hover {

    background-color: var(--color-oro-dark);

    border-color: var(--color-oro-dark);

    color: var(--color-dark);

    box-shadow: 0 4px 16px rgba(196, 149, 106, 0.35);

}



.btn-outline-oro {

    border-color: var(--color-oro);

    color: var(--color-oro);

    background: transparent;

}



.btn-outline-oro:hover {

    background-color: var(--color-oro);

    border-color: var(--color-oro);

    color: var(--color-dark);

}



.btn-dark-custom {

    background-color: var(--color-dark);

    border-color: var(--color-dark);

    color: var(--color-white);

}



.btn-dark-custom:hover {

    background-color: var(--color-dark-light);

    border-color: var(--color-dark-light);

    color: var(--color-white);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);

}



/* Button Loading State */

.btn-loading {

    position: relative;

    pointer-events: none;

    opacity: 0.8;

}



.btn-loading::after {

    content: '';

    display: inline-block;

    width: 1rem;

    height: 1rem;

    margin-left: 0.5rem;

    border: 2px solid rgba(255, 255, 255, 0.3);

    border-top-color: #fff;

    border-radius: 50%;

    animation: btnSpinner 0.6s linear infinite;

    vertical-align: middle;

}



@keyframes btnSpinner {

    to {

        transform: rotate(360deg);

    }

}



/* ========================================

   SECTION UTILITIES

   ======================================== */



.section-padding {

    padding: var(--section-padding);

}



.section-dark {

    background-color: var(--color-dark);

    color: var(--color-white);

}



.section-dark h1,

.section-dark h2,

.section-dark h3,

.section-dark h4,

.section-dark h5,

.section-dark h6 {

    color: var(--color-white) !important;

}



.section-bg-alt {

    background-color: var(--color-bg-alt);

}



.section-bg {

    background-color: var(--color-bg);

}



.section-title {

    font-family: var(--font-heading);

    font-size: 2.8rem;

    font-weight: 600;

    color: var(--color-dark);

    margin-bottom: 0.5rem;

    letter-spacing: -0.02em;

}



.section-dark .section-title {

    color: var(--color-white);

}



.section-subtitle {

    color: var(--color-text-muted);

    font-size: 1.15rem;

    max-width: 600px;

    margin: 0 auto;

    font-weight: 300;

}



.section-dark .section-subtitle {

    color: rgba(255, 255, 255, 0.7);

}



/* ========================================

   COLOR CLASSES

   ======================================== */



.bg-dark-custom {

    background-color: var(--color-dark) !important;

}



.bg-bordeaux {

    --bs-bg-opacity: 1;

    background-color: rgba(114, 47, 55, var(--bs-bg-opacity)) !important;

}



.bg-bordeaux-light,

.bg-bordeaux-subtle {

    background-color: rgba(114, 47, 55, 0.12) !important;

}



.bg-oro {

    --bs-bg-opacity: 1;

    background-color: rgba(196, 149, 106, var(--bs-bg-opacity)) !important;

}



.bg-oro-light,

.bg-oro-subtle {

    background-color: rgba(196, 149, 106, 0.15) !important;

}



.bg-light-custom {

    background-color: var(--color-bg-alt) !important;

}



.text-bordeaux {

    color: var(--color-bordeaux) !important;

}



.text-oro {

    color: var(--color-oro) !important;

}



.text-dark-custom {

    color: var(--color-dark) !important;

}



.text-muted-custom {

    color: var(--color-text-muted) !important;

}



.border-bordeaux {

    border-color: var(--color-bordeaux) !important;

}



.border-oro {

    border-color: var(--color-oro) !important;

}



.font-heading {

    font-family: var(--font-heading);

}



.font-body {

    font-family: var(--font-body);

}



/* ========================================
   HERO SECTION (VIDEO HERO & LUXURY BACKGROUND)
   ======================================== */

.hero-section {
    background: #1a0609 url('../images/hero_video_poster.jpg') center center / cover no-repeat;
    min-height: 92vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Wrapper & Looping Element */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.02);
    will-change: transform;
}

/* Dark Luxury Overlay (Bordeaux Satin & Onyx Vignette) */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(28, 7, 10, 0.45) 0%, rgba(14, 3, 5, 0.82) 100%),
        linear-gradient(180deg, rgba(14, 3, 5, 0.65) 0%, rgba(28, 7, 10, 0.30) 45%, rgba(14, 3, 5, 0.90) 100%);
    pointer-events: none;
}

/* Subtle luxury pattern accent on top of overlay */
.hero-video-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M50 50v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40V0h-2v4h-4v2h4v4h2V6h4V4h-4zM10 50v-4H8v4H4v2h4v4h2v-4h4v-2H10zM10 10V0H8v4H4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
}

/* Contenuto testuale e bottoni in primo piano SOPRA il video */
.hero-content {
    position: relative !important;
    z-index: 10 !important;
    isolation: isolate !important;
    -webkit-transform: translate3d(0, 0, 10px) !important;
    transform: translate3d(0, 0, 10px) !important;
    pointer-events: auto !important;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.95);
    position: relative;
    z-index: 2;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-title .accent {
    color: var(--color-oro);
    text-shadow: 0 0 35px rgba(212, 175, 55, 0.6), 0 2px 6px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #f7ede2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
    max-width: 680px;
    position: relative;
    z-index: 2;
    line-height: 1.65;
}

.hero-cta {
    position: relative;
    z-index: 2;
}

.hero-cta .btn {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Hero divider */
.hero-divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-oro), transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    position: relative;
    z-index: 2;
}

/* Video Play/Pause Floating Controller */
.hero-video-toggle {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 5, 8, 0.68);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--color-oro);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: all 0.25s ease;
    padding: 0;
}

.hero-video-toggle:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--color-oro);
    color: #ffffff;
    transform: scale(1.1);
}

.hero-video-toggle:focus {
    outline: 2px solid var(--color-oro);
    outline-offset: 2px;
}

.hero-video-toggle i {
    font-size: 1.25rem;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}


/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {

    padding: 3rem 0 2rem !important;

    margin-top: -1px;

    position: relative;

    overflow: hidden;

}



.page-header::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    height: 4px;

    background: linear-gradient(90deg, var(--color-bordeaux), var(--color-oro), var(--color-bordeaux));

}



.page-header h1 {

    position: relative;

    z-index: 1;

    color: var(--color-white);

}



.page-header .lead {

    position: relative;

    z-index: 1;

    opacity: 0.85;

}



/* ========================================

   CARDS

   ======================================== */



.card-elegant {

    background: var(--color-white);

    border: none;

    border-radius: var(--card-radius);

    box-shadow: var(--shadow-sm);

    transition: all var(--transition);

    height: 100%;

    overflow: hidden;

}



.card-elegant:hover {

    transform: translateY(-6px) scale(1.01);

    box-shadow: var(--shadow-lg);

}



.card-accent {

    border-top: 4px solid var(--color-bordeaux);

}



.card-accent-oro {

    border-top: 4px solid var(--color-oro);

}



/* Feature Cards */

.feature-card {

    background: var(--color-white);

    border: 1px solid rgba(0, 0, 0, 0.04);

    border-radius: var(--card-radius);

    transition: all var(--transition);

    height: 100%;

    padding: 2.5rem 2rem;

}



.feature-card:hover {

    transform: translateY(-8px) scale(1.02);

    box-shadow: var(--shadow-lg);

}



.feature-icon {

    width: 72px;

    height: 72px;

    margin: 0 auto 1.5rem;

    background: rgba(114, 47, 55, 0.08);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.8rem;

    color: var(--color-bordeaux);

    transition: all var(--transition);

}



.feature-card:hover .feature-icon {

    background: var(--color-bordeaux);

    color: var(--color-white);

    transform: scale(1.1);

}



/* Service Cards */

.service-card {

    background: var(--color-white);

    border-radius: var(--card-radius);

    overflow: hidden;

    transition: all var(--transition);

    height: 100%;

    box-shadow: var(--shadow-sm);

}



.service-card:hover {

    transform: translateY(-6px) scale(1.01);

    box-shadow: var(--shadow-lg);

}



.service-img {

    height: 100px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 2.8rem;

}



.service-card:hover .service-img {

    background-color: var(--color-bordeaux) !important;

}



.service-body h4 {

    font-family: var(--font-heading);

    font-size: 1.4rem;

    color: var(--color-dark);

}



/* Price Cards */

.price-card {

    position: relative;

    background: var(--color-white);

    border-radius: var(--card-radius);

    overflow: hidden;

    transition: all var(--transition);

    box-shadow: var(--shadow-sm);

    height: 100%;

}



.price-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-lg);

}



.price-card.recommended {

    border: 2px solid var(--color-bordeaux);

    transform: scale(1.03);

    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.15);

}



.price-card.recommended:hover {

    transform: scale(1.03) translateY(-6px);

}



.price-card-header {

    padding: 2rem 1.5rem;

    text-align: center;

}



.price-card-header.bg-bordeaux h4,

.price-card-header.bg-bordeaux .price-amount {

    color: var(--color-white);

}



.price-card-header.bg-oro h4,

.price-card-header.bg-oro .price-amount {

    color: var(--color-dark);

}



.price-card-header h4 {

    font-family: var(--font-heading);

    font-size: 1.6rem;

    margin-bottom: 0.25rem;

}



.price-amount {

    font-family: var(--font-heading);

    font-size: 2.5rem;

    font-weight: 700;

}



.price-card-body {

    padding: 1.5rem;

}



.price-card-body ul li {

    padding: 0.4rem 0;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.price-card-body ul li i {

    color: var(--color-bordeaux);

}



/* Badge "Consigliato" */

.badge-most-popular {

    position: absolute;

    top: -12px;

    left: 50%;

    transform: translateX(-50%);

    background: var(--color-bordeaux);

    color: var(--color-white);

    padding: 0.35rem 1.25rem;

    border-radius: 50px;

    font-size: 0.8rem;

    font-weight: 600;

    white-space: nowrap;

    box-shadow: var(--shadow-bordeaux);

    z-index: 2;

}



/* Step Cards */

.step-card {

    background: var(--color-white);

    padding: 2.5rem 2rem;

    border-radius: var(--card-radius);

    transition: all var(--transition);

    box-shadow: var(--shadow-sm);

    height: 100%;

}



.step-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-md);

}



.step-number {

    width: 64px;

    height: 64px;

    background: var(--color-bordeaux);

    color: var(--color-white);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.5rem;

    font-weight: 600;

    font-family: var(--font-heading);

    flex-shrink: 0;

}



.step-content h4 {

    font-family: var(--font-heading);

    font-size: 1.3rem;

    color: var(--color-dark);

}



/* Discount Cards */

.discount-card {

    transition: all var(--transition);

    height: 100%;

    border: 1px solid var(--color-bg-alt) !important;

    border-radius: var(--card-radius);

}



.discount-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-md);

    border-color: var(--color-oro) !important;

}



/* ========================================

   FORMS

   ======================================== */



.form-control,

.form-select {

    border-radius: var(--card-radius-sm);

    border: 1.5px solid var(--color-bg-alt);

    padding: 0.65rem 1rem;

    font-family: var(--font-body);

    font-size: 0.95rem;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    background: var(--color-white);

}



.form-control:focus,

.form-select:focus {

    border-color: var(--color-bordeaux);

    box-shadow: 0 0 0 0.2rem rgba(114, 47, 55, 0.15);

}



.form-control.is-invalid {

    border-color: var(--color-danger);

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23A83232'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23A83232' stroke='none'/%3e%3c/svg%3e");

    background-repeat: no-repeat;

    background-position: right calc(0.375em + 0.1875rem) center;

    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);

}



.form-control.is-invalid:focus {

    border-color: var(--color-danger);

    box-shadow: 0 0 0 0.2rem rgba(168, 50, 50, 0.25);

}



.form-label {

    font-weight: 500;

    color: var(--color-text-muted);

    margin-bottom: 0.35rem;

    font-size: 0.9rem;

}



.invalid-feedback {

    font-size: 0.85rem;

    color: var(--color-danger);

    margin-top: 0.25rem;

    display: flex;

    align-items: center;

    gap: 0.35rem;

}



/* ========================================

   ALERTS

   ======================================== */



.alert {

    border-radius: var(--card-radius-sm);

    border: none;

}



.alert-bordeaux {

    background-color: rgba(114, 47, 55, 0.1);

    color: var(--color-bordeaux-dark);

}



.alert-success-custom {

    background-color: var(--color-success-light);

    color: var(--color-success);

}



.alert-danger-custom {

    background-color: var(--color-danger-light);

    color: var(--color-danger);

}



.alert-warning-custom {

    background-color: var(--color-warning-light);

    color: var(--color-warning);

}



/* ========================================

   CONTACT

   ======================================== */



.contact-icon {

    width: 52px;

    height: 52px;

    background: rgba(114, 47, 55, 0.08);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.3rem;

    color: var(--color-bordeaux);

    flex-shrink: 0;

    transition: all var(--transition);

}



.contact-item:hover .contact-icon {

    background: var(--color-bordeaux);

    color: var(--color-white);

}



/* ========================================

   BADGES

   ======================================== */



.badge-bordeaux {

    background-color: var(--color-bordeaux);

    color: var(--color-white);

}



.badge-oro {

    background-color: var(--color-oro);

    color: var(--color-dark);

}



.badge-success-custom {

    background-color: var(--color-success);

    color: var(--color-white);

}



/* ========================================

   FOOTER

   ======================================== */



.footer {

    background-color: var(--color-dark);

    color: rgba(255, 255, 255, 0.8);

    padding: 5rem 0 0;

    position: relative;

}



.footer::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 4px;

    background: linear-gradient(90deg, var(--color-bordeaux), var(--color-oro), var(--color-bordeaux));

}



.footer-brand {

    font-family: var(--font-heading);

    font-size: 1.6rem;

    color: var(--color-oro);

    font-weight: 600;

}



.footer-text {

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.95rem;

    line-height: 1.7;

}



.footer-heading {

    font-family: var(--font-heading);

    font-size: 1.2rem;

    color: var(--color-oro);

    margin-bottom: 1.25rem;

    font-weight: 600;

}



.footer-links {

    list-style: none;

    padding: 0;

    margin: 0;

}



.footer-links li {

    margin-bottom: 0.6rem;

}



.footer-links a {

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.95rem;

    transition: color 0.2s ease;

    position: relative;

    padding-left: 1.2rem;

}



.footer-links a::before {

    content: '›';

    position: absolute;

    left: 0;

    color: var(--color-oro);

    font-size: 1.1rem;

}



.footer-links a:hover {

    color: var(--color-oro);

}



.footer-contacts {

    list-style: none;

    padding: 0;

    margin: 0;

}



.footer-contacts li {

    margin-bottom: 0.75rem;

    display: flex;

    align-items: flex-start;

    gap: 0.75rem;

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.95rem;

}



.footer-contacts li i {

    color: var(--color-oro);

    margin-top: 0.2rem;

}



.social-icon {

    display: inline-flex;

    width: 42px;

    height: 42px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    align-items: center;

    justify-content: center;

    color: var(--color-white);

    transition: all 0.3s ease;

    font-size: 1.1rem;

}



.social-icon:hover {

    background: var(--color-bordeaux);

    color: var(--color-white);

    transform: translateY(-3px);

}



.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    padding: 1.5rem 0;

    margin-top: 3rem;

    color: rgba(255, 255, 255, 0.4);

    font-size: 0.85rem;

}



/* ========================================

   TOAST NOTIFICATIONS

   ======================================== */



.toast-container-custom {

    position: fixed;

    top: 90px;

    right: 1rem;

    z-index: 1080;

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    max-width: 420px;

    width: 100%;

    pointer-events: none;

}



.toast-custom {

    pointer-events: auto;

    background: var(--color-white);

    border-radius: var(--card-radius-sm);

    padding: 1rem 1.25rem;

    box-shadow: var(--shadow-lg);

    display: flex;

    align-items: flex-start;

    gap: 0.75rem;

    animation: toastSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    border-left: 4px solid var(--color-bordeaux);

    position: relative;

    overflow: hidden;

}



.toast-custom.toast-danger {

    border-left-color: var(--color-danger);

}



.toast-custom.toast-warning {

    border-left-color: var(--color-warning);

}



.toast-custom.toast-info {

    border-left-color: var(--color-bordeaux);

}



.toast-custom.toast-success {

    border-left-color: var(--color-success);

}



.toast-custom .toast-icon {

    font-size: 1.3rem;

    flex-shrink: 0;

    margin-top: 0.1rem;

}



.toast-custom .toast-body {

    flex: 1;

    font-size: 0.9rem;

    color: var(--color-text);

    line-height: 1.5;

}



.toast-custom .toast-close {

    background: none;

    border: none;

    color: var(--color-text-muted);

    cursor: pointer;

    font-size: 1.1rem;

    padding: 0;

    line-height: 1;

    flex-shrink: 0;

    transition: color 0.2s;

}



.toast-custom .toast-close:hover {

    color: var(--color-dark);

}



.toast-custom .toast-progress {

    position: absolute;

    bottom: 0;

    left: 0;

    height: 3px;

    background: var(--color-bordeaux);

    animation: toastProgress 5s linear forwards;

}



.toast-custom.toast-danger .toast-progress {

    background: var(--color-danger);

}



.toast-custom.toast-warning .toast-progress {

    background: var(--color-warning);

}



.toast-custom.toast-info .toast-progress {

    background: var(--color-bordeaux);

}



.toast-custom.toast-success .toast-progress {

    background: var(--color-success);

}



@keyframes toastSlideIn {

    from {

        transform: translateX(120%);

        opacity: 0;

    }



    to {

        transform: translateX(0);

        opacity: 1;

    }

}



@keyframes toastProgress {

    from {

        width: 100%;

    }



    to {

        width: 0%;

    }

}



.toast-custom.toast-exit {

    animation: toastSlideOut 0.3s ease forwards;

}



@keyframes toastSlideOut {

    from {

        transform: translateX(0);

        opacity: 1;

    }



    to {

        transform: translateX(120%);

        opacity: 0;

    }

}



/* ========================================

   COOKIE BANNER

   ======================================== */



#cookieConsentBanner {

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    background: var(--color-dark);

    color: rgba(255, 255, 255, 0.85);

    padding: 1rem 0;

    z-index: 9999;

    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);

    display: none;

}



#cookieConsentBanner.show {

    display: block;

}



.cookie-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    flex-wrap: wrap;

}



.cookie-text {

    flex: 1;

    min-width: 250px;

    font-size: 0.9rem;

}



.cookie-text a {

    color: var(--color-oro);

    text-decoration: underline;

}



.cookie-actions {

    display: flex;

    gap: 0.5rem;

    flex-shrink: 0;

}



.btn-cookie-accept {

    background: var(--color-bordeaux);

    color: var(--color-white);

    border: none;

    padding: 0.5rem 1.25rem;

    border-radius: var(--btn-radius);

    font-weight: 500;

    font-size: 0.85rem;

    cursor: pointer;

    transition: all 0.2s;

}



.btn-cookie-accept:hover {

    background: var(--color-bordeaux-dark);

}



.btn-cookie-essential {

    background: transparent;

    color: rgba(255, 255, 255, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.2);

    padding: 0.5rem 1.25rem;

    border-radius: var(--btn-radius);

    font-weight: 500;

    font-size: 0.85rem;

    cursor: pointer;

    transition: all 0.2s;

}



.btn-cookie-essential:hover {

    border-color: var(--color-oro);

    color: var(--color-oro);

}



/* ========================================

   BACK TO TOP

   ======================================== */



.back-to-top {

    position: fixed;

    bottom: 1.5rem;

    left: 1.5rem;

    width: 44px;

    height: 44px;

    border-radius: 50%;

    background: var(--color-bordeaux);

    color: var(--color-white);

    border: 2px solid #d4af37;

    font-size: 1.2rem;

    cursor: pointer;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);

    transition: all var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    z-index: 1030;

}



.back-to-top.visible {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.back-to-top:hover {

    background: var(--color-bordeaux-dark);

    transform: translateY(-3px);

    box-shadow: 0 6px 24px rgba(114, 47, 55, 0.4);

    color: var(--color-white);

}



/* ========================================

   TABLE

   ======================================== */



.table-responsive-sticky {

    max-height: 500px;

    overflow-y: auto;

}



.table-responsive-sticky thead {

    position: sticky;

    top: 0;

    z-index: 10;

}



.table-responsive-sticky thead th {

    background: rgba(114, 47, 55, 0.06);

    position: sticky;

    top: 0;

    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);

    color: var(--color-bordeaux-dark);

    font-weight: 600;

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 0.03em;

}



.table-row-hover tbody tr {

    transition: background-color 0.15s ease;

}



.table-row-hover tbody tr:hover {

    background-color: rgba(114, 47, 55, 0.04);

}



/* ========================================

   EMPTY STATE

   ======================================== */



.empty-state {

    padding: 3rem 1rem;

    text-align: center;

}



.empty-state .empty-icon {

    font-size: 3.5rem;

    color: var(--color-text-light);

    opacity: 0.4;

    margin-bottom: 1rem;

}



.empty-state h5 {

    color: var(--color-dark);

    margin-bottom: 0.5rem;

}



.empty-state p {

    color: var(--color-text-muted);

    max-width: 400px;

    margin: 0 auto 1.25rem;

    font-size: 0.95rem;

}



/* ========================================

   SKELETON LOADING

   ======================================== */



.skeleton {

    background: linear-gradient(90deg, var(--color-bg-alt) 25%, #E0DDD6 50%, var(--color-bg-alt) 75%);

    background-size: 200% 100%;

    animation: skeletonPulse 1.5s ease-in-out infinite;

    border-radius: 8px;

}



.skeleton-text {

    height: 1rem;

    margin-bottom: 0.5rem;

    width: 100%;

}



.skeleton-text:last-child {

    width: 60%;

}



.skeleton-heading {

    height: 1.5rem;

    width: 40%;

    margin-bottom: 1rem;

}



.skeleton-card {

    height: 200px;

    width: 100%;

}



@keyframes skeletonPulse {

    0% {

        background-position: 200% 0;

    }



    100% {

        background-position: -200% 0;

    }

}



/* ========================================

   PAGINATION

   ======================================== */



.pagination-size-selector {

    display: inline-flex;

    align-items: center;

    gap: 0.35rem;

    font-size: 0.85rem;

    color: var(--color-text-muted);

}



.pagination-size-selector select {

    border: 1px solid var(--color-bg-alt);

    border-radius: var(--card-radius-sm);

    padding: 0.2rem 0.5rem;

    font-size: 0.85rem;

    background: var(--color-white);

    color: var(--color-text);

    cursor: pointer;

}



/* ========================================

   AUTH SECTION

   ======================================== */



.auth-section {

    min-height: calc(100vh - 80px);

    display: flex;

    align-items: center;

}



/* ========================================

   CARD STATS

   ======================================== */



.card-stats {

    border-radius: var(--card-radius);

    transition: all var(--transition);

}



.card-stats:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-md);

}



.stat-icon {

    border-radius: var(--card-radius-sm);

}



/* ========================================

   BREADCRUMB

   ======================================== */



.breadcrumb {

    background: transparent;

    padding: 0;

}



.breadcrumb-item a {

    color: var(--color-text-muted);

    font-size: 0.85rem;

}



.breadcrumb-item.active {

    color: var(--color-bordeaux);

    font-size: 0.85rem;

}



.breadcrumb-item+.breadcrumb-item::before {

    color: var(--color-text-light);

}



/* ========================================

   WIZARD PROGRESS

   ======================================== */



.wizard-progress {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 0;

    margin-bottom: 2rem;

}



.wizard-progress .step {

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.wizard-progress .step-number {

    width: 36px;

    height: 36px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 0.9rem;

    transition: all 0.3s ease;

    border: 2px solid var(--color-bg-alt);

    color: var(--color-text-muted);

    background: var(--color-white);

}



.wizard-progress .step.active .step-number {

    background: var(--color-bordeaux);

    border-color: var(--color-bordeaux);

    color: var(--color-white);

    box-shadow: 0 0 0 4px rgba(114, 47, 55, 0.15);

}



.wizard-progress .step.completed .step-number {

    background: var(--color-success);

    border-color: var(--color-success);

    color: var(--color-white);

}



.wizard-progress .step-label {

    font-size: 0.85rem;

    font-weight: 600;

    color: var(--color-text-muted);

}



.wizard-progress .step.active .step-label {

    color: var(--color-bordeaux);

}



.wizard-progress .step.completed .step-label {

    color: var(--color-success);

}



.wizard-progress .connector {

    width: 60px;

    height: 2px;

    background: var(--color-bg-alt);

    margin: 0 0.75rem;

    flex-shrink: 0;

}



.wizard-progress .connector.completed {

    background: var(--color-success);

}



/* ========================================

   RESPONSIVE

   ======================================== */



/* Tablet */

@media (max-width: 991.98px) {

    .hero-title {

        font-size: 2.8rem !important;

    }



    .section-title {

        font-size: 2.2rem;

    }



    .section-padding {

        padding: 4rem 0;

    }

}



/* Mobile large */

@media (max-width: 768px) {

    .hero-section {

        min-height: 70vh;

    }



    .hero-title {

        font-size: 2.2rem !important;

    }



    .hero-subtitle {

        font-size: 1.1rem !important;

    }



    .section-title {

        font-size: 1.8rem;

    }



    .section-subtitle {

        font-size: 1rem;

    }



    .section-padding {

        padding: var(--section-padding-mobile);

    }



    .page-header {

        padding: 2.2rem 0 1.5rem !important;

    }



    .price-card.recommended {

        transform: none;

    }



    .price-card.recommended:hover {

        transform: translateY(-6px);

    }

}



/* Mobile small */

@media (max-width: 576px) {

    .hero-section {

        min-height: 60vh;

    }



    .hero-title {

        font-size: 1.8rem !important;

    }



    .hero-subtitle {

        font-size: 1rem !important;

    }



    .section-title {

        font-size: 1.5rem;

    }



    .section-padding {

        padding: 2rem 0;

    }



    .page-header {

        padding: 1.5rem 0 1rem !important;

    }



    .page-header h1 {

        font-size: 1.8rem !important;

    }



    .page-header .lead {

        font-size: 0.95rem !important;

    }



    .display-3 {

        font-size: 1.8rem !important;

    }



    .display-5 {

        font-size: 1.5rem !important;

    }



    .display-6 {

        font-size: 1.5rem !important;

    }



    .price-card {

        margin: 0 0.5rem;

    }



    .card-stats .display-6 {

        font-size: 1.5rem;

    }



    .footer .col-lg-4 {

        text-align: center;

    }



    .cookie-inner {

        flex-direction: column;

        text-align: center;

        gap: 0.75rem;

    }



    .cookie-actions {

        width: 100%;

        flex-direction: column;

        gap: 0.5rem;

    }



    .cookie-actions button {

        width: 100%;

    }



    .wizard-progress {

        gap: 0.25rem;

    }



    .wizard-progress .connector {

        width: 30px;

    }



    .wizard-progress .step-label {

        font-size: 0.7rem;

    }



    .btn-lg {

        padding: 0.5rem 1rem;

        font-size: 0.9rem;

    }



    .table {

        font-size: 0.8rem;

    }

}



/* Landscape mobile */

@media (max-height: 500px) {

    .hero-section {

        min-height: 100vh;

        padding: 6rem 0 2rem;

    }



    .hero-title {

        font-size: 1.5rem !important;

    }



    .hero-subtitle {

        font-size: 0.9rem !important;

    }



    .section-padding {

        padding: 1.5rem 0;

    }

}



/* ========================================

   PRINT

   ======================================== */



@media print {



    .back-to-top,

    .toast-container-custom,

    #mainNavbar,

    .footer,

    #cookieConsentBanner,

    .btn {

        display: none !important;

    }



    body {

        padding-top: 0 !important;

    }



    .card,

    .bg-white,

    .card-elegant {

        box-shadow: none !important;

        border: 1px solid #ddd !important;

    }

}



/* ========================================

   UTILITY OVERRIDES

   ======================================== */



.shadow-hover {

    transition: box-shadow var(--transition);

}



.shadow-hover:hover {

    box-shadow: var(--shadow-lg);

}



.border-hover-bordeaux {

    transition: border-color var(--transition);

}



.border-hover-bordeaux:hover {

    border-color: var(--color-bordeaux) !important;

}



/* ========================================

   UTILITIES AGGIUNTIVE

   ======================================== */

.table-nowrap th,

.table-nowrap td {

    white-space: nowrap;

}

/* ========================================

   UI/UX DYNAMIC ENHANCEMENTS (AOS & GLASSMORPHISM)

   ======================================== */



.hover-lift {

    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

}

.hover-lift:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;

}



.bg-gradient-bordeaux {

    background: linear-gradient(135deg, var(--color-bordeaux) 0%, #4a0000 100%) !important;

    color: #ffffff !important;

}

.bg-gradient-bordeaux * {

    color: #ffffff !important;

}



/* ── Navbar Luxury & Homogeneous Design ─────────────────────────────── */

.glass-navbar {

    background: linear-gradient(135deg, rgba(80, 18, 24, 0.98) 0%, rgba(45, 9, 12, 0.98) 100%) !important;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

    padding: 0.5rem 0;

    transition: all 0.3s ease;

}



.glass-navbar .navbar-brand {

    color: #ffffff !important;

    font-weight: 700;

    letter-spacing: 0.3px;

}



.glass-navbar .brand-accent {

    color: #d4af37 !important;

}



.glass-navbar .nav-link {

    color: rgba(255, 255, 255, 0.9) !important;

    font-weight: 500;

    padding: 0.5rem 0.85rem !important;

    border-radius: 8px;

    transition: all 0.2s ease;

}



.glass-navbar .nav-link:hover,

.glass-navbar .nav-link:focus {

    color: #f7d488 !important;

    background-color: rgba(212, 175, 55, 0.12);

}



.glass-navbar .nav-link.active-page {

    color: #f7d488 !important;

    font-weight: 600;

    border-bottom: 2px solid #d4af37;

}



/* Luxury Dropdown Menu (Desktop) */

.glass-navbar .dropdown-menu {

    background: linear-gradient(180deg, #3d0c11 0%, #260609 100%) !important;

    border: 1px solid rgba(212, 175, 55, 0.35) !important;

    border-radius: 12px !important;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55) !important;

    padding: 8px !important;

    min-width: 230px;

}



.glass-navbar .dropdown-item {

    color: #f5f0eb !important;

    font-weight: 500;

    padding: 9px 14px !important;

    border-radius: 8px !important;

    transition: all 0.15s ease-in-out;

    display: flex;

    align-items: center;

    font-size: 0.95rem;

}



.glass-navbar .dropdown-item i {

    color: #d4af37 !important;

    font-size: 1.15rem;

    margin-right: 10px;

    transition: transform 0.15s ease;

}



.glass-navbar .dropdown-item:hover,

.glass-navbar .dropdown-item:focus {

    background: rgba(212, 175, 55, 0.2) !important;

    color: #ffffff !important;

    transform: translateX(4px);

}



.glass-navbar .dropdown-item:hover i {

    transform: scale(1.15);

}



.glass-navbar .dropdown-divider {

    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;

    margin: 6px 0 !important;

}



.glass-navbar .dropdown-header {

    color: #d4af37 !important;

    font-size: 0.72rem !important;

    font-weight: 700 !important;

    text-transform: uppercase !important;

    letter-spacing: 1.2px !important;

    padding: 8px 12px 4px !important;

}



/* Mobile Menu Styling (max-width: 991.98px) */

@media (max-width: 991.98px) {

    .glass-navbar .navbar-collapse {

        background: linear-gradient(180deg, rgba(50, 10, 14, 0.98) 0%, rgba(30, 5, 8, 0.99) 100%) !important;

        border: 1px solid rgba(212, 175, 55, 0.3);

        border-radius: 16px;

        padding: 1.25rem 1rem !important;

        margin-top: 0.75rem;

        max-height: calc(100vh - 90px);

        overflow-y: auto;

        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);

    }



    .glass-navbar .mobile-section-title {

        color: #d4af37;

        font-size: 0.75rem;

        font-weight: 700;

        text-transform: uppercase;

        letter-spacing: 1.5px;

        margin: 12px 0 6px 8px;

        display: flex;

        align-items: center;

    }



    .glass-navbar .mobile-section-title::after {

        content: '';

        flex: 1;

        height: 1px;

        background: rgba(212, 175, 55, 0.2);

        margin-left: 10px;

    }



    .glass-navbar .nav-link,

    .glass-navbar .dropdown-item {

        padding: 10px 14px !important;

        font-size: 1.05rem !important;

        margin-bottom: 3px;

        border-radius: 8px;

        color: #f5f0eb !important;

    }



    .glass-navbar .dropdown-menu {

        background: rgba(0, 0, 0, 0.25) !important;

        border: 1px solid rgba(255, 255, 255, 0.08) !important;

        box-shadow: none !important;

        padding: 6px !important;

        margin-bottom: 8px;

    }

}



/* Table Hover Custom */

.table-hover-custom tbody tr {
    transition: all 0.2s ease-in-out;
}

.table-hover-custom tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
    position: relative;
    background-color: #fff !important;
}



/* Fix z-index Bootstrap Modals in primo piano */

.modal-backdrop {

    z-index: 1050 !important;

}

.modal {

    z-index: 1060 !important;

}



/* ========================================

   GLOBAL SEARCH RESULTS — HIGH CONTRAST

   ======================================== */

#globalSearchResults {

    background: #ffffff !important;

    border: 1px solid rgba(212, 175, 55, 0.45) !important;

    border-radius: 12px !important;

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.12) !important;

    padding: 8px !important;

    min-width: 360px !important;

    backdrop-filter: none !important;

}



#globalSearchResults .search-result-item {

    display: flex !important;

    align-items: center !important;

    padding: 10px 12px !important;

    border-radius: 8px !important;

    text-decoration: none !important;

    color: #1a1a1a !important;

    background: #ffffff !important;

    transition: all 0.15s ease-in-out !important;

    border-bottom: 1px solid #f2f2f2 !important;

    margin-bottom: 2px !important;

}



#globalSearchResults .search-result-item:last-child {

    border-bottom: none !important;

    margin-bottom: 0 !important;

}



#globalSearchResults .search-result-item:hover,

#globalSearchResults .search-result-item:focus {

    background: #fdf7ed !important;

    border-left: 3px solid #d4af37 !important;

    transform: translateX(4px) !important;

}



#globalSearchResults .search-title {

    color: #111827 !important;

    font-weight: 700 !important;

    font-size: 0.92rem !important;

}



#globalSearchResults .search-subtitle {

    color: #4b5563 !important;

    font-size: 0.78rem !important;

    font-weight: 500 !important;

}







.glass-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.glass-navbar .nav-link:hover,
.glass-navbar .nav-link:focus {
    color: #f7d488 !important;
    background-color: rgba(212, 175, 55, 0.12);
}

.glass-navbar .nav-link.active-page {
    color: #f7d488 !important;
    font-weight: 600;
    border-bottom: 2px solid #d4af37;
}

/* Luxury Dropdown Menu (Desktop) */
.glass-navbar .dropdown-menu {
    background: linear-gradient(180deg, #3d0c11 0%, #260609 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55) !important;
    padding: 8px !important;
    min-width: 230px;
}

.glass-navbar .dropdown-item {
    color: #f5f0eb !important;
    font-weight: 500;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.glass-navbar .dropdown-item i {
    color: #d4af37 !important;
    font-size: 1.15rem;
    margin-right: 10px;
    transition: transform 0.15s ease;
}

.glass-navbar .dropdown-item:hover,
.glass-navbar .dropdown-item:focus {
    background: rgba(212, 175, 55, 0.2) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.glass-navbar .dropdown-item:hover i {
    transform: scale(1.15);
}

.glass-navbar .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin: 6px 0 !important;
}

.glass-navbar .dropdown-header {
    color: #d4af37 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 8px 12px 4px !important;
}

/* Mobile Menu Styling (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .glass-navbar .navbar-collapse {
        background: linear-gradient(180deg, rgba(50, 10, 14, 0.98) 0%, rgba(30, 5, 8, 0.99) 100%) !important;
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 16px;
        padding: 1.25rem 1rem 2.75rem 1rem !important;
        margin-top: 0.75rem;
        max-height: calc(100vh - 148px) !important;
        max-height: calc(100dvh - 148px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }

    .glass-navbar .mobile-section-title {
        color: #d4af37;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin: 12px 0 6px 8px;
        display: flex;
        align-items: center;
    }

    .glass-navbar .mobile-section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(212, 175, 55, 0.2);
        margin-left: 10px;
    }

    .glass-navbar .nav-link,
    .glass-navbar .dropdown-item {
        padding: 10px 14px !important;
        font-size: 1.05rem !important;
        margin-bottom: 3px;
        border-radius: 8px;
        color: #f5f0eb !important;
        touch-action: pan-y manipulation !important;
        transform: none !important;
    }

    .glass-navbar .dropdown-menu {
        background: rgba(0, 0, 0, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: none !important;
        padding: 6px !important;
        margin-bottom: 8px;
        position: static !important;
        float: none !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        transform: none !important;
    }
}

/* Table Hover Custom */
.table-hover-custom tbody tr {
    transition: all 0.2s ease-in-out;
}

.table-hover-custom tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
    position: relative;
    background-color: #fff !important;
}

/* Fix z-index Bootstrap Modals in primo piano */
.modal-backdrop {
    z-index: 1050 !important;
}

.modal {
    z-index: 1060 !important;
}

/* ========================================
   GLOBAL SEARCH RESULTS — HIGH CONTRAST
   ======================================== */
#globalSearchResults {
    background: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.12) !important;
    padding: 8px !important;
    min-width: 360px !important;
    backdrop-filter: none !important;
}

#globalSearchResults .search-result-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
    transition: all 0.15s ease-in-out !important;
    border-bottom: 1px solid #f2f2f2 !important;
    margin-bottom: 2px !important;
}

#globalSearchResults .search-result-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

#globalSearchResults .search-result-item:hover,
#globalSearchResults .search-result-item:focus {
    background: #fdf7ed !important;
    border-left: 3px solid #d4af37 !important;
    transform: translateX(4px) !important;
}

#globalSearchResults .search-title {
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
}

#globalSearchResults .search-subtitle {
    color: #4b5563 !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
}



#globalSearchResults .search-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(114, 47, 55, 0.1) !important;
    color: #722f37 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

#globalSearchResults .search-category-badge {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

/* ========================================
   PWA & DASHBOARD AZIONI RAPIDE: ZERO TRASPARENZA & ALTO CONTRASTO
   ======================================== */
#managerFabContainer .dropdown-menu {
    background-color: #ffffff !important;
    background: #ffffff !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 2px solid #d4af37 !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4) !important;
}

#managerFabContainer .dropdown-item {
    color: #1a080a !important;
    font-weight: 600 !important;
    background: transparent;
}

#managerFabContainer .dropdown-item:hover,
#managerFabContainer .dropdown-item:focus {
    background-color: rgba(114, 47, 55, 0.08) !important;
    color: #722f37 !important;
}

.manager-quick-pill,
.manager-quick-action-pill,
.btn-outline-bordeaux.manager-quick-pill {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1.5px solid #722f37 !important;
    color: #722f37 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
}

.manager-quick-pill:hover,
.manager-quick-action-pill:hover,
.btn-outline-bordeaux.manager-quick-pill:hover {
    background: #722f37 !important;
    background-color: #722f37 !important;
    color: #ffffff !important;
    border-color: #722f37 !important;
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.25) !important;
    transform: translateY(-1px);
}


/* ============================================================
   GESTIONE ALLIEVI: FLOATING BULK TOOLBAR & FILTRI MANCANZE
   ============================================================ */
.floating-bulk-toolbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    background: linear-gradient(135deg, #1e080b 0%, #350f14 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    animation: bulkToolbarIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes bulkToolbarIn {
    from {
        opacity: 0;
        transform: translate(-50%, 25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.border-start-xl {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 1199.98px) {
    .border-start-xl {
        border-left: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding-top: 0.85rem;
    }
}

.hover-shadow {
    transition: all 0.2s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.12);
    border-color: #d4af37 !important;
}


/* ============================================================
   MOBILE & SMARTPHONE PWA OPTIMIZATION — HERO & VIDEO BANNER
   ============================================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh !important;
        min-height: 90svh !important;
        padding: 5.2rem 1rem 2.2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
    }

    .hero-video-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: scale(1.01) !important;
    }

    .hero-video-overlay {
        background:
            radial-gradient(ellipse at center, rgba(28, 7, 10, 0.28) 0%, rgba(14, 3, 5, 0.82) 100%),
            linear-gradient(180deg, rgba(14, 3, 5, 0.60) 0%, rgba(28, 7, 10, 0.15) 45%, rgba(14, 3, 5, 0.88) 100%) !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 0 0.75rem !important;
        position: relative !important;
        z-index: 10 !important;
        isolation: isolate !important;
        -webkit-transform: translate3d(0, 0, 10px) !important;
        transform: translate3d(0, 0, 10px) !important;
        pointer-events: auto !important;
    }

    .hero-title {
        font-size: clamp(1.7rem, 6.5vw, 2.2rem) !important;
        line-height: 1.22 !important;
        margin-bottom: 0.5rem !important;
        letter-spacing: -0.3px !important;
        text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 1px 3px #000 !important;
    }

    .hero-title .accent {
        display: block !important;
        margin-top: 0.2rem !important;
        font-size: 1.05em !important;
        text-shadow: 0 0 25px rgba(212, 175, 55, 0.7), 0 2px 6px rgba(0, 0, 0, 0.95) !important;
    }

    .hero-divider {
        width: 48px !important;
        height: 2.5px !important;
        margin: 0.5rem auto 0.7rem !important;
    }

    .hero-subtitle {
        font-size: clamp(0.88rem, 3.2vw, 1.02rem) !important;
        line-height: 1.42 !important;
        max-width: 350px !important;
        margin: 0 auto 0.9rem !important;
        color: rgba(255, 255, 255, 0.93) !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
    }

    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.52rem !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .hero-cta .btn,
    .hero-cta .hero-btn {
        width: 100% !important;
        max-width: 310px !important;
        padding: 0.68rem 1.25rem !important;
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        letter-spacing: 0.2px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    }

    .hero-video-toggle {
        bottom: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
        background: rgba(18, 5, 8, 0.75) !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 88vh !important;
        min-height: 88svh !important;
        padding: 4rem 0.75rem 3rem !important;
    }

    .hero-title {
        font-size: 1.65rem !important;
    }

    .hero-subtitle {
        font-size: 0.88rem !important;
        max-width: 320px !important;
    }

    .hero-cta .btn,
    .hero-cta .hero-btn {
        max-width: 290px !important;
        padding: 0.62rem 1rem !important;
        font-size: 0.88rem !important;
    }
}

@media (display-mode: standalone) {

    /* Nella PWA installata su smartphone, nascondi il tasto Installa App */
    .btnInstallPwa {
        display: none !important;
    }
}

/* ==========================================================================
   CINEMATIC 3D COVERFLOW SLIDER & GALLERY (Galleria Fotografica d'Effetto)
   Dark Luxury Aesthetics, 3D Perspective, Touch/Drag, GPU Composited, CLS=0
   ========================================================================== */

.gallery-slider-section {
    background: radial-gradient(ellipse at 50% 25%, #260b10 0%, #150508 55%, #0c0204 100%);
    padding: 5rem 0 4.5rem;
    position: relative;
    border-top: 1px solid rgba(196, 149, 106, 0.25);
    border-bottom: 1px solid rgba(196, 149, 106, 0.25);
    overflow: hidden;
}

.gallery-slider-ambient-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 900px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, rgba(114, 47, 55, 0.06) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: ambientPulse 8s ease-in-out infinite alternate;
}

.gallery-slider-ambient-glow-secondary {
    position: absolute;
    bottom: -100px;
    left: 20%;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(196, 149, 106, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@keyframes ambientPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 1;
    }
}

.text-muted-champagne {
    color: rgba(232, 213, 183, 0.85) !important;
}

.accent-oro {
    color: var(--color-oro, #C4956A);
}

.gallery-slider-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Autoplay Progress Bar */
.gallery-slider-progress-wrapper {
    width: 100%;
    max-width: 620px;
    height: 3px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gallery-slider-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c4956a, #e8d5b7, #d4af37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    border-radius: 4px;
    transition: width 0.08s linear;
}

/* 3D Perspective Stage */
.gallery-3d-stage {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    touch-action: pan-y;
}

.gallery-3d-track {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Single Slide */
.gallery-3d-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 620px;
    height: 400px;
    max-width: 90vw;
    border-radius: 22px;
    border: 1px solid rgba(196, 149, 106, 0.25);
    background: #180608;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, border-color 0.25s ease;
    will-change: transform, opacity;
    cursor: pointer;
    contain: layout style;
    touch-action: pan-y;
}

/* State Transformations - Pure Hardware Acceleration (Zero Z-buffer fighting, Zero vibration) */
.gallery-3d-slide.is-active {
    transform: translate3d(-50%, -50%, 0) scale(1);
    -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 10;
    border: 2px solid rgba(212, 175, 55, 0.88);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(196, 149, 106, 0.32);
    cursor: zoom-in;
}

.gallery-3d-slide.is-active:hover {
    transform: translate3d(-50%, calc(-50% - 6px), 0) scale(1.02);
    -webkit-transform: translate3d(-50%, calc(-50% - 6px), 0) scale(1.02);
    border-color: #d4af37;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(212, 175, 55, 0.45);
}

.gallery-3d-slide.is-prev {
    transform: translate3d(calc(-50% - 310px), -50%, 0) scale(0.84);
    -webkit-transform: translate3d(calc(-50% - 310px), -50%, 0) scale(0.84);
    opacity: 0.72;
    visibility: visible;
    z-index: 6;
    border-color: rgba(196, 149, 106, 0.35);
}

.gallery-3d-slide.is-next {
    transform: translate3d(calc(-50% + 310px), -50%, 0) scale(0.84);
    -webkit-transform: translate3d(calc(-50% + 310px), -50%, 0) scale(0.84);
    opacity: 0.72;
    visibility: visible;
    z-index: 6;
    border-color: rgba(196, 149, 106, 0.35);
}

.gallery-3d-slide.is-prev:hover,
.gallery-3d-slide.is-next:hover {
    opacity: 0.92;
    border-color: rgba(212, 175, 55, 0.7);
}

.gallery-3d-slide.is-far-prev {
    transform: translate3d(calc(-50% - 500px), -50%, 0) scale(0.68);
    -webkit-transform: translate3d(calc(-50% - 500px), -50%, 0) scale(0.68);
    opacity: 0.3;
    visibility: visible;
    z-index: 3;
    border-color: rgba(196, 149, 106, 0.2);
}

.gallery-3d-slide.is-far-next {
    transform: translate3d(calc(-50% + 500px), -50%, 0) scale(0.68);
    -webkit-transform: translate3d(calc(-50% + 500px), -50%, 0) scale(0.68);
    opacity: 0.3;
    visibility: visible;
    z-index: 3;
    border-color: rgba(196, 149, 106, 0.2);
}

.gallery-3d-slide.is-hidden-left {
    transform: translate3d(calc(-50% - 660px), -50%, 0) scale(0.5) !important;
    -webkit-transform: translate3d(calc(-50% - 660px), -50%, 0) scale(0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

.gallery-3d-slide.is-hidden-right {
    transform: translate3d(calc(-50% + 660px), -50%, 0) scale(0.5) !important;
    -webkit-transform: translate3d(calc(-50% + 660px), -50%, 0) scale(0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

.gallery-3d-slide.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Card Internals */
.slide-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #180608;
}

/* Shading Layer (Ultra-veloce via hardware opacity) */
.slide-card-shade {
    position: absolute;
    inset: 0;
    background: rgba(12, 3, 5, 0.65);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-3d-slide.is-prev .slide-card-shade,
.gallery-3d-slide.is-next .slide-card-shade {
    opacity: 0.35;
}

.gallery-3d-slide.is-far-prev .slide-card-shade,
.gallery-3d-slide.is-far-next .slide-card-shade {
    opacity: 0.68;
}

.slide-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.35s ease;
}

.slide-img.is-loaded {
    opacity: 1;
}

.gallery-3d-slide.is-active:hover .slide-img {
    transform: scale(1.05);
}

/* Shimmer Skeleton Placeholder */
.slide-skeleton-placeholder {
    position: absolute;
    inset: 0;
    background: #1e090c;
    pointer-events: none;
    z-index: 1;
}

.slide-img.is-loaded~.slide-skeleton-placeholder {
    opacity: 0;
    display: none !important;
    animation: none !important;
    pointer-events: none;
}

@keyframes photoSkeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Overlay & Glassmorphic Badges */
.slide-overlay {
    position: absolute;
    inset: 0;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    background: linear-gradient(to top, rgba(12, 3, 5, 0.92) 0%, rgba(12, 3, 5, 0.32) 45%, transparent 75%);
    transition: background 0.3s ease;
    z-index: 2;
}

.gallery-3d-slide.is-active:hover .slide-overlay {
    background: linear-gradient(to top, rgba(12, 3, 5, 0.96) 0%, rgba(12, 3, 5, 0.22) 50%, rgba(12, 3, 5, 0.15) 100%);
}

.slide-counter-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(18, 5, 8, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slide-zoom-btn {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(22, 6, 9, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: #e8d5b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.slide-zoom-btn:hover {
    background: #722f37;
    border-color: #d4af37;
    color: #ffffff;
    transform: scale(1.14);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
}

.slide-caption-box {
    transform: translateY(2px);
    transition: transform 0.35s ease;
}

.slide-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    margin-bottom: 4px;
}

.slide-caption-meta {
    font-size: 0.85rem;
    color: rgba(232, 213, 183, 0.9);
    font-weight: 500;
}

.slide-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slide-action-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(24, 7, 10, 0.82);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: #e8d5b7;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}

.slider-arrow:hover {
    background: rgba(114, 47, 55, 0.95);
    border-color: #d4af37;
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    -webkit-transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.65);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.96);
    -webkit-transform: translateY(-50%) scale(0.96);
}

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

/* Controls Toolbar (Counter, Dots, Autoplay) */
.gallery-slider-controls {
    max-width: 900px;
    margin: 1.25rem auto 0;
}

.slider-current-count {
    color: #d4af37 !important;
    font-size: 1.35rem;
    letter-spacing: 1px;
}

.slider-dots-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.28);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(212, 175, 55, 0.7);
    transform: scale(1.2);
}

.slider-dot.is-active {
    width: 28px;
    border-radius: 12px;
    background: linear-gradient(90deg, #c4956a, #d4af37);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* Interactive Thumbnails Filmstrip */
.gallery-thumbs-wrapper {
    width: 100%;
    max-width: 920px;
    margin: 1.75rem auto 0;
    overflow-x: auto;
    padding: 8px 6px 14px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.gallery-thumbs-wrapper::-webkit-scrollbar {
    height: 5px;
}

.gallery-thumbs-wrapper::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 4px;
}

.gallery-thumbs-track {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    margin: 0 auto;
}

.gallery-thumb-item {
    position: relative;
    width: 92px;
    height: 62px;
    flex: 0 0 92px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: #140507;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    opacity: 0.55;
}

.gallery-thumb-item:hover {
    opacity: 0.9;
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.gallery-thumb-item.is-active {
    opacity: 1;
    border-color: #d4af37;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 175, 55, 0.75);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Adaptations */
@media (max-width: 992px) {
    .gallery-3d-stage {
        height: 420px;
    }

    .gallery-3d-slide {
        width: 520px;
        height: 350px;
    }

    .gallery-3d-slide.is-prev {
        transform: translate3d(calc(-50% - 240px), -50%, 0) scale(0.82);
        -webkit-transform: translate3d(calc(-50% - 240px), -50%, 0) scale(0.82);
    }

    .gallery-3d-slide.is-next {
        transform: translate3d(calc(-50% + 240px), -50%, 0) scale(0.82);
        -webkit-transform: translate3d(calc(-50% + 240px), -50%, 0) scale(0.82);
    }

    .gallery-3d-slide.is-far-prev,
    .gallery-3d-slide.is-far-next {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .slider-arrow-prev {
        left: 10px;
    }

    .slider-arrow-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .gallery-slider-section {
        padding: 3.5rem 0 3rem;
    }

    .gallery-3d-stage {
        height: 340px;
    }

    .gallery-3d-slide {
        width: 86vw;
        height: 280px;
        max-width: 440px;
        border-radius: 16px;
    }

    .gallery-3d-slide.is-prev {
        transform: translate3d(calc(-50% - 66%), -50%, 0) scale(0.84);
        -webkit-transform: translate3d(calc(-50% - 66%), -50%, 0) scale(0.84);
        opacity: 0.42;
    }

    .gallery-3d-slide.is-next {
        transform: translate3d(calc(-50% + 66%), -50%, 0) scale(0.84);
        -webkit-transform: translate3d(calc(-50% + 66%), -50%, 0) scale(0.84);
        opacity: 0.42;
    }

    .gallery-3d-slide.is-far-prev,
    .gallery-3d-slide.is-far-next {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .slider-arrow-prev {
        left: 6px;
    }

    .slider-arrow-next {
        right: 6px;
    }

    .slide-title {
        font-size: 1.35rem;
    }

    .slide-overlay {
        padding: 14px 16px;
    }

    .gallery-thumb-item {
        width: 74px;
        height: 50px;
        flex: 0 0 74px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-3d-stage {
        height: 290px;
    }

    .gallery-3d-slide {
        width: 88vw;
        height: 240px;
    }

    .gallery-3d-slide.is-prev {
        transform: translate3d(calc(-50% - 70%), -50%, 0) scale(0.8);
        -webkit-transform: translate3d(calc(-50% - 70%), -50%, 0) scale(0.8);
        opacity: 0.35;
    }

    .gallery-3d-slide.is-next {
        transform: translate3d(calc(-50% + 70%), -50%, 0) scale(0.8);
        -webkit-transform: translate3d(calc(-50% + 70%), -50%, 0) scale(0.8);
        opacity: 0.35;
    }

    .slide-title {
        font-size: 1.15rem;
    }

    .slide-action-hint {
        display: none;
    }
}



.scanner-terminal-card {
    background: linear-gradient(145deg, #ffffff 0%, #fcfbf9 100%) !important;
    border: 2px solid rgba(114, 47, 55, 0.22) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    position: relative;
    cursor: text;
}

.scanner-terminal-card:hover {
    border-color: rgba(114, 47, 55, 0.4) !important;
    box-shadow: 0 6px 24px rgba(114, 47, 55, 0.08) !important;
}

.scanner-terminal-card.is-focused {
    border-color: var(--color-bordeaux, #722f37) !important;
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.16), 0 0 0 3px rgba(114, 47, 55, 0.12) !important;
}

/* Variante Verde Istruttore / Presenze Lezioni */
.scanner-terminal-card.theme-success {
    border-color: rgba(25, 135, 84, 0.25) !important;
}

.scanner-terminal-card.theme-success:hover {
    border-color: rgba(25, 135, 84, 0.45) !important;
    box-shadow: 0 6px 24px rgba(25, 135, 84, 0.08) !important;
}

.scanner-terminal-card.theme-success.is-focused {
    border-color: #198754 !important;
    box-shadow: 0 8px 30px rgba(25, 135, 84, 0.16), 0 0 0 3px rgba(25, 135, 84, 0.15) !important;
}

/* Badge con radar pulse */
.scanner-live-badge {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}

.scanner-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: scanner-radar-pulse 1.8s infinite;
}

@keyframes scanner-radar-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Contenitore Input Adattivo ad Alta Visibilità */
.scanner-input-container {
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 2px solid #e2d9d5 !important;
    border-radius: 1rem !important;
    padding: 0.35rem 0.85rem !important;
    min-height: 54px;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.scanner-input-container:focus-within {
    border-color: var(--color-bordeaux, #722f37) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02), 0 0 0 3px rgba(114, 47, 55, 0.15) !important;
    background: #ffffff !important;
}

.scanner-input-container.theme-success:focus-within {
    border-color: #198754 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02), 0 0 0 3px rgba(25, 135, 84, 0.18) !important;
}

/* Campo Input Text Monospace ad Ampio Spazio */
.scanner-input-field {
    flex: 1 1 auto;
    min-width: 0 !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    letter-spacing: 0.5px !important;
    color: #1a1a1a !important;
    padding: 0.25rem 0.5rem !important;
}

.scanner-input-field::placeholder {
    color: #8c7b75 !important;
    font-weight: 500 !important;
    letter-spacing: 0px !important;
    font-family: inherit !important;
    font-size: 0.98rem !important;
}

/* Pulsante Convalida Ergonomico Responsive */
.btn-scanner-submit {
    min-height: 54px;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    border-radius: 1rem !important;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

/* Flash Laser animato alla ricezione del codice */
@keyframes scanner-laser-sweep {
    0% {
        background-color: rgba(22, 163, 74, 0.25);
        border-color: #16a34a;
    }

    100% {
        background-color: #ffffff;
    }
}

.scanner-laser-flash {
    animation: scanner-laser-sweep 0.65s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 575.98px) {
    .scanner-terminal-card {
        padding: 1.15rem 1rem !important;
        border-radius: 1rem !important;
    }

    .scanner-input-container {
        min-height: 52px;
        border-radius: 0.85rem !important;
        padding: 0.3rem 0.65rem !important;
    }

    .scanner-input-field {
        font-size: 1.05rem !important;
    }

    .scanner-input-field::placeholder {
        font-size: 0.88rem !important;
    }

    .btn-scanner-submit {
        min-height: 50px;
        border-radius: 0.85rem !important;
        font-size: 1rem !important;
    }
}


/* ==========================================================================
   OTTIMIZZAZIONE AVANZATA SMARTPHONE & PWA NATIVA (iOS / Android Standalone)
   ========================================================================== */

/* Rimozione tap highlight grigio preservando sempre lo scorrimento verticale (pan-y) al tocco */
a,
button,
.btn,
.nav-link,
.dropdown-item,
.form-check-input,
.form-select,
.quick-pill,
.pavoni-bottom-nav-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y manipulation;
}

/* Prevenzione overflow orizzontale SENZA creare doppi scroll container su html e body (che bloccano lo scroll mobile) */
html {
    max-width: 100%;
    overflow-x: clip;
    overflow-y: auto;
    height: auto;
    scroll-padding-top: calc(var(--pavoni-navbar-offset, 80px) + 12px);
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    height: auto;
    min-height: 100%;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

/* Modalità PWA Installata (Standalone): nascondi pulsante installazione senza bloccare lo scroll nativo */
@media (display-mode: standalone) {
    .btnInstallPwa {
        display: none !important;
    }
}

/* Barra di Navigazione Inferiore Fissa (App Tab Bar) per Smartphone (< 768px) */
.pavoni-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1038;
    background: linear-gradient(180deg, rgba(28, 8, 11, 0.98) 0%, rgba(18, 4, 6, 0.99) 100%);
    border-top: 1.5px solid rgba(212, 175, 55, 0.48);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.42);
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 4px);
    padding-right: env(safe-area-inset-right, 4px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.modal-open .pavoni-mobile-bottom-nav {
    opacity: 0;
    pointer-events: none;
}

.pavoni-bottom-nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: rgba(245, 235, 220, 0.78) !important;
    padding: 4px 2px;
    border-radius: 10px;
    position: relative;
    transition: color 0.18s ease, transform 0.15s ease, background-color 0.18s ease;
}

.pavoni-bottom-nav-item i {
    font-size: 1.22rem;
    line-height: 1.1;
    margin-bottom: 2px;
    color: #e8d5b7;
    transition: transform 0.18s ease, color 0.18s ease;
}

.pavoni-bottom-nav-item span.nav-tab-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.1;
}

.pavoni-bottom-nav-item:active {
    transform: scale(0.94);
}

.pavoni-bottom-nav-item.active-tab {
    color: #ffffff !important;
    background: rgba(212, 175, 55, 0.14);
}

.pavoni-bottom-nav-item.active-tab i {
    color: #ffd700 !important;
    transform: translateY(-1px);
}

.pavoni-bottom-nav-item.active-tab::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 28%;
    right: 28%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* Regole specifiche Smartphone (< 768px) */
@media (max-width: 767.98px) {
    /* Spazio inferiore per non coprire il contenuto o il footer con la Bottom App Bar */
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Prevenzione assoluta dell'auto-zoom di iOS Safari sui campi di input (richiede >= 16px) */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea,
    .form-control,
    .form-control-sm,
    .form-select,
    .form-select-sm {
        font-size: 16px !important;
    }

    /* Sollevamento ordinato dei pulsanti fluttuanti sopra la Bottom App Bar */
    #pavoniChatbotContainer {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
    }

    #managerFabContainer {
        bottom: calc(142px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
    }

    .back-to-top {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
        left: 14px !important;
        right: auto !important;
        width: 42px !important;
        height: 42px !important;
    }

    /* Finestra Chatbot ottimizzata per tastiera virtuale smartphone (dvh) */
    #chatbotWindow {
        position: fixed !important;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        right: 8px !important;
        left: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        height: calc(76dvh - 70px) !important;
        max-height: calc(100dvh - 140px) !important;
        z-index: 1060 !important;
    }

    /* Modali a scorrimento fluido su smartphone */
    .modal-dialog-scrollable .modal-body {
        -webkit-overflow-scrolling: touch;
    }
}

/* =====================================================================
   PICKER RICERCA RAPIDA ALLIEVI, CARD MOBILE LEZIONE & FULLCALENDAR LIST
   ===================================================================== */
.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.fc-list-event .fc-student-line {
    color: #212529 !important;
}

.pavoni-student-picker-wrapper {
    position: relative;
    width: 100%;
}

.pavoni-student-picker-input {
    font-size: 16px !important;
    min-height: 44px;
}

.pavoni-student-picker-inline-panel,
.pavoni-student-picker-dropdown {
    background-color: #ffffff;
    border: 1px solid rgba(114, 47, 55, 0.22);
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(30, 8, 11, 0.08);
    overflow: hidden;
}

.pavoni-student-picker-list,
.pavoni-student-picker-dropdown {
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pavoni-student-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f0ebe6;
    background-color: #ffffff;
    min-height: 50px;
}

.pavoni-student-picker-row:last-child {
    border-bottom: 0;
}

.pavoni-student-picker-row:hover {
    background-color: #fdf9f3;
}

.pavoni-student-picker-info {
    min-width: 0;
    flex: 1 1 auto;
}

.pavoni-student-picker-name {
    font-weight: 600;
    color: #1e080b;
    font-size: 0.92rem;
    line-height: 1.25;
    word-break: break-word;
}

.pavoni-student-picker-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pavoni-student-picker-badges .badge {
    font-size: 0.68rem;
}

.pavoni-picker-badge-horse {
    background-color: #722F37;
    color: #ffffff;
    border: 1px solid #d4af37;
}

.pavoni-quick-enroll-btn {
    min-height: 40px;
    white-space: nowrap;
}

.pavoni-student-picker-option {
    display: block;
    border: 0;
    border-bottom: 1px solid #f0ebe6;
    background-color: #ffffff;
    padding: 0.65rem 0.85rem;
    transition: background-color 0.15s ease;
    min-height: 48px;
}

.pavoni-student-picker-option:last-of-type {
    border-bottom: 0;
}

.pavoni-student-picker-option:hover,
.pavoni-student-picker-option:focus {
    background-color: #fdf9f3;
    outline: none;
}

.pavoni-student-picker-selected-card {
    background-color: #fffdf8;
    border: 1.5px solid #d4af37;
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
}

.pavoni-student-picker-footer {
    background-color: #f8f5f0;
    font-size: 0.74rem;
}

.mgr-enrolled-mobile-card {
    background-color: #ffffff;
    border: 1px solid rgba(114, 47, 55, 0.18);
    border-left: 4px solid #722F37;
    border-radius: 0.85rem;
    padding: 0.75rem;
    box-shadow: 0 2px 6px rgba(30, 8, 11, 0.06);
}
