/* ========================================
   PRICING PAGE - GLASSMORPHISM STYLES
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #f8fafc;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.1);
    --gradient-bg: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --colored:#df005e;
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
    --primary-color: #6366f1;
    --secondary-color: #0f172a;
    --accent-color: #0891b2;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.3);
    --gradient-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e40af 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] body {
    background:#202020;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background:
            url('../images/bg_01.jpg') bottom/cover no-repeat fixed; /* Aggiunto 'fixed' */
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    will-change: auto; /* Previene problemi di rendering */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none; /* Rimosso per performance */
    transform: translateZ(0); /* Force hardware acceleration */
}

/* ========================================
   THEME SWITCHER
   ======================================== */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

[data-bs-theme="light"] .theme-toggle {
    color: black;
}

/* ========================================
   PRICING CARDS - GLASSMORPHISM
   ======================================== */
.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

[data-bs-theme="dark"] .pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 24px;
    z-index: 0;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.3);
}

/* Featured Card */
.pricing-card.featured {
    transform: scale(1.05);
    background: linear-gradient(145deg, var(--glass-bg), rgba(37, 99, 235, 0.1));
}

.pricing-card.featured::after {
    content: 'Anche per Hotel';
    position: absolute;
    top: 40px;
    right: -40px;
    background: linear-gradient(45deg, var(--accent-color), #0891b2);
    color: white;
    padding: 5px 40px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 2;
}

/* Card Header */
.card-header-custom {
    background: #f1f1f1;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: var(--text-primary);
    text-align: center;
    padding: 40px 30px;
    border: none;
    border-bottom: 1px solid var(--glass-border);
}

[data-bs-theme="dark"] .card-header-custom {
    color: var(--text-primary);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.plan-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
}

.plan-period {
    opacity: 0.8;
    font-size: 14px;
}

/* Feature List */
.feature-list {
    padding: 35px 30px;
    background: rgba(255,255,255,0.02);
}

.feature-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] .feature-item {
    border-bottom-color: rgba(255,255,255,0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    margin-right: 15px;
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.feature-icon.check {
    color: var(--accent-color);
}

.feature-icon.cross {
    color: #ef4444;
}

.feature-icon {
    margin-right: 15px;
    font-size: 20px; /* Leggermente più grandi */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.feature-icon.check {
    color: #10b981; /* Verde success */
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    padding: 2px;
}

.feature-icon.cross {
    color: #ef4444; /* Rosso per limitazioni */
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    padding: 2px;
}

.feature-icon.neutral {
    color: #6b7280; /* Grigio neutro per "non incluso" */
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    padding: 2px;
}

/* Hover effect sulle icone */
.feature-item:hover .feature-icon.check {
    color: #059669;
    transform: scale(1.1);
}

.feature-item:hover .feature-icon.cross {
    color: #dc2626;
    transform: scale(1.1);
}

.feature-item:hover .feature-icon.neutral {
    color: #4b5563;
    transform: scale(1.1);
}

/* ========================================
   BUTTONS & CTA
   ======================================== */
.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50px;
    padding: 18px 35px;
    font-weight: 600;
    text-transform: none; /* Rimosso uppercase per essere più moderno */
    letter-spacing: 0.3px; /* Ridotto */
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    color: #FFC005;
}

/* ========================================
   CUSTOM CARD
   ======================================== */
.custom-card {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.custom-card .card-header-custom {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
    color: #f59e0b;
}

.custom-card .feature-item {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

.custom-card .card-header-custom {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
    color: white !important; /* Forza colore bianco */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.custom-card .plan-name {
    color: white !important;
}

.custom-card .plan-price {
    color: white !important;
}

.custom-card .plan-period {
    color: rgba(255,255,255,0.9) !important;
}

/* Gestione temi per CUSTOM card */
[data-bs-theme="dark"] .custom-card .card-header-custom {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.4));
    color: white !important;
}

[data-bs-theme="light"] .custom-card .card-header-custom {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.8));
    color: white !important;
}

/* ========================================
   TYPOGRAPHY & BADGES
   ======================================== */
.section-title {
    font-size: 48px;
    font-weight: 700; /* Cambiato da 800 a 700 */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.recommendation-badge {
    background: linear-gradient(145deg, var(--accent-color), #059669);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(30, 64, 175, 0.08));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

[data-bs-theme="light"] .stats-section {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.1));
    border-color: rgba(255,255,255,0.2);
}

[data-bs-theme="dark"] .stats-section {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(30, 64, 175, 0.08));
    border-color: rgba(255,255,255,0.1);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .plan-price {
        font-size: 28px;
    }

    .feature-list {
        padding: 25px 20px;
    }

    .cta-button {
        padding: 15px 25px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .theme-switcher {
        top: 15px;
        right: 15px;
    }

    .theme-toggle {
        padding: 10px 15px;
    }

    .hero-section {
        padding: 40px 0 30px;
    }

    .section-title {
        font-size: 28px;
    }
}

#footer {
    background-color: #1a1a1a;
    color: #a8a8a8;
}
#footer p {
    font-size: 0.9rem;
}


.footer-links a {
    color: #a8a8a8;
    text-decoration: none;
    font-size: 0.85rem;
}
span.vat {
    font-size: 1.1rem;
    font-weight: 400;
    padding-bottom: 1rem;
}


/* Hamburger personalizzato stile Disual */
.hamburger-custom {
    padding: 8px 12px;
}

.hamburger-lines {
    width: 24px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hover effect */
.hamburger-custom:hover .line {
    background-color: var(--primary-color);
}

/* Responsive spacing */
.line1 {
    width: 100%;
}

.line2 {
    margin-left: auto;
}

.line3 {
    margin-left: auto;
}

/* Dark theme */
[data-bs-theme="dark"] .line {
    background-color: var(--text-primary);
}

[data-bs-theme="light"] .line {
    background-color: #333;
}

/* Animation quando menu è aperto (opzionale) */
.hamburger-custom.active .line1 {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-custom.active .line2 {
    opacity: 0;
}

.hamburger-custom.active .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
    width: 100%;
}

.navbar li>a.nav-link {
    font-size: 0.9rem;
}
.navbar li>a.nav-link.active {
    color: var(--colored) !important;
}

.logo-adaptive {
    transition: filter 0.3s ease;
}

/* Tema chiaro - mantieni colore originale (scuro) */
[data-bs-theme="light"] .logo-adaptive {
    filter: none;
}

/* Tema scuro - inverti colori per renderlo bianco */
[data-bs-theme="dark"] .logo-adaptive {
    filter: brightness(0) invert(1);
}

/* Hover effect */
.navbar-brand:hover .logo-adaptive {
    opacity: 0.8;
    transform: scale(1.02);
}

.card-package {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.card-package .badge  {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

