/* ================================================================
   FisiomanagerPRO - Main Stylesheet
   Design: Glassmorphism, Gradients, Depth Shadows
   Font: Poppins (Google Fonts)
   Framework: Bootstrap 5.3.3 (overrides below)
   ================================================================ */

/* === Design Tokens === */
:root {
    --color-primary: #0066CC;
    --color-primary-dark: #004d99;
    --color-primary-light: #e6f0fa;
    --color-secondary: #00A86B;
    --color-secondary-dark: #008755;
    --color-accent: #FF6B35;
    --color-accent-dark: #e55a2b;
    --color-dark: #212529;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-gray-light: #adb5bd;
    --font-primary: 'Poppins', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-depth: 0 1px 2px rgba(0,0,0,0.04),
                    0 4px 8px rgba(0,0,0,0.04),
                    0 16px 32px rgba(0,0,0,0.04),
                    0 32px 64px rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* === Typography === */
body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.lead {
    font-weight: 300;
    font-size: 1.2rem;
}

/* === Glassmorphism === */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

/* === Gradient Effects === */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.gradient-bg-accent {
    background: linear-gradient(135deg, var(--color-accent), #ff8f65);
}

.gradient-bg-animated {
    background: linear-gradient(-45deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-primary));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Depth Shadows === */
.depth-shadow {
    box-shadow: var(--shadow-depth);
}

.depth-shadow-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.depth-shadow-hover:hover {
    box-shadow: var(--shadow-depth);
    transform: translateY(-4px);
}

/* === Navbar === */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand .navbar-logo {
    margin: -0.75rem 0;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--color-dark);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-primary);
}

/* === Buttons === */
.btn {
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Rounded pill buttons */
.btn.rounded-pill {
    border-radius: 50px;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 50%, rgba(0, 168, 107, 0.05) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section .display-4 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* === Cards === */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Footer === */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.6);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.site-footer h5,
.site-footer h6 {
    font-weight: 600;
}

/* === Breadcrumb === */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--color-gray);
}

/* === Utility Classes === */
.text-primary { color: var(--color-primary) !important; }
.text-secondary-custom { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.bg-primary-light { background-color: var(--color-primary-light) !important; }

.section-padding {
    padding: 5rem 0;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Editable content wrapper - styles page_content() output */
.section-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-intro p {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-intro p:last-child { margin-bottom: 0; }

/* Override for dark sections */
.section-dark .section-intro p {
    color: rgba(255,255,255,0.7);
}

/* CTA section */
.cta-section .section-intro p {
    color: rgba(255,255,255,0.85);
}

/* Story content (chi-siamo) */
.story-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.story-content p {
    font-size: 1.1rem;
}

/* Page header content in dark sections */
.page-header-intro h1 {
    font-size: calc(1.325rem + 0.9vw);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-header-intro p {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* === Scroll Reveal (initial state for GSAP) === */
.reveal, .reveal-stagger > * {
    /* Elements start visible; GSAP handles the animation.
       If JS fails, content is still visible. */
}

/* === 404 Page === */
.display-1.gradient-text {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem;
    }

    .hero-section {
        min-height: 50vh;
    }
}

@media (max-width: 575.98px) {
    .hero-section .display-4 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* ================================================================
   Phase 2: Homepage Sections
   Dark/Light rhythm: Hero(dark) > Problems(light) > Modules(white)
   > Comparison(light) > Stats(dark) > Testimonials(dark) > CTA(accent)
   ================================================================ */

/* === Dark Section Base === */
.section-dark {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a2a2a 100%);
    color: #fff;
}

/* === Hero Section (Dark Override) === */
.hero-section {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a2a2a 100%);
    color: #fff;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .display-4 {
    color: #fff;
}

.typed-cursor {
    color: #00d4aa;
    font-weight: 300;
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-trust-badge {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust-badge i {
    color: #00d4aa;
}

/* === Problems Section (Light) === */
.problems-section {
    background-color: #f8f9fa;
    color: var(--color-dark);
}

.problem-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.problem-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.problem-card .icon-circle i {
    font-size: 1.5rem;
    color: #00d4aa;
}

.problem-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 0;
}

/* === Modules Section (White) === */
.modules-section {
    background: #fff;
}

.modules-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.module-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--color-primary-light);
    border-radius: 50px;
    background: transparent;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.module-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.module-tab.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    color: #fff;
}

.module-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.module-content .module-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.module-content .module-info p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.module-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.module-features li i {
    color: #00d4aa;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.module-features li strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.module-features li span {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.module-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-visual i {
    font-size: 8rem;
    color: var(--color-primary-light);
    opacity: 0.5;
}

/* === Comparison Section (Light) === */
.comparison-section {
    background-color: #f8f9fa;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table thead th {
    background: var(--color-dark);
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border: none;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: #f8f9fa;
}

.comparison-table .highlight-col {
    background: rgba(0, 102, 204, 0.04);
}

.comparison-table thead .highlight-col {
    background: var(--color-primary);
}

.comparison-table .bi-check-circle-fill.text-success {
    font-size: 1.1rem;
}

.comparison-table .bi-x-circle-fill.text-danger {
    font-size: 1.1rem;
}

/* === Stats Section (Dark) === */
.stats-section {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a2a2a 100%);
    color: #fff;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #00d4aa;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* === Testimonials Section (Dark) === */
.testimonials-section {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a2a2a 100%);
    color: #fff;
}

.testimonials-swiper {
    padding-bottom: 3rem;
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.testimonial-stars {
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: #00d4aa;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-author-info strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.testimonial-author-info span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Swiper pagination overrides */
.testimonials-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: #00d4aa;
}

/* === CTA Section (Accent Gradient) === */
.cta-section {
    background: linear-gradient(135deg, #FF6B35, #ff8f65);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* === Dropdown Glassmorphism === */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.navbar .dropdown-divider {
    margin: 0.25rem 0;
    border-color: rgba(0, 0, 0, 0.08);
}

/* === Phase 2 Responsive Additions === */
@media (max-width: 767.98px) {
    .stats-section .row {
        /* 2 column grid on mobile handled by col-6 */
    }

    .module-content {
        grid-template-columns: 1fr;
    }

    .module-visual {
        display: none;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .module-content {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.6rem 0.5rem;
    }
}

/* === Mobile Touch Targets === */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .module-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar .nav-link {
        min-height: 44px;
    }
}

/* ================================================================
   Phase 3: Pricing Page
   Cards with highlighted SOLO + expandable feature comparison matrix
   ================================================================ */

/* === Pricing Card Base === */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* === Highlighted Card (SOLO) === */
.pricing-card-highlighted {
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    position: relative;
    z-index: 2;
}

.pricing-card-highlighted:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.25);
}

/* === Badge on Highlighted === */
.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35, #FF8F65);
    color: #fff;
    padding: 4px 20px;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

/* === Price Display === */
.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.pricing-price .currency {
    font-size: 1.2rem;
    vertical-align: super;
    margin-right: 2px;
}

.pricing-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-gray);
}

/* === Feature Comparison Matrix === */
.feature-matrix {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-matrix thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.feature-matrix .plan-header-solo {
    background: rgba(0, 102, 204, 0.08);
}

.feature-matrix .category-row {
    background: #e9ecef;
    font-weight: 600;
}

.feature-matrix .category-row td {
    font-size: 0.9rem;
    padding: 0.7rem 0.75rem;
    color: var(--color-dark);
}

.feature-matrix tbody td {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
}

.feature-matrix .plan-col-solo {
    background: rgba(0, 102, 204, 0.03);
}

.feature-matrix .bi-check-circle-fill {
    font-size: 1.1rem;
}

.feature-matrix .bi-dash {
    font-size: 1.3rem;
}

/* ================================================================
   Phase 3: SOLO Landing Page
   Single-focus conversion layout with hero, features, widget, trust
   ================================================================ */

/* === SOLO Landing Hero === */
.solo-hero {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    color: #fff;
    padding: 5rem 0;
}

.solo-hero .display-4 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
}

.solo-price-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
}

.solo-trial-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.solo-trial-badge i {
    color: #ffc107;
}

/* === Widget Placeholder === */
#solo-widget-container {
    min-height: 300px;
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.1rem;
}

/* === Feature List on SOLO Page === */
.solo-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 1rem;
}

.solo-feature-item i {
    color: #00A86B;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* === SOLO Responsive === */
@media (max-width: 575.98px) {
    .solo-hero {
        padding: 3rem 0;
    }

    .solo-price-display {
        font-size: 2.5rem;
    }

    #solo-widget-container {
        min-height: 200px;
    }
}

/* === Responsive: Pricing on mobile === */
@media (max-width: 575.98px) {
    .pricing-price {
        font-size: 2rem;
    }

    .feature-matrix thead th,
    .feature-matrix tbody td {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* ========== FAQ Pages ========== */

/* Category Cards */
.faq-category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.faq-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

/* Article Content Typography */
.faq-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.faq-article-content p {
    margin-bottom: 1.25rem;
}

.faq-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.faq-article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.faq-article-content ul,
.faq-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.faq-article-content li {
    margin-bottom: 0.5rem;
}

.faq-article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #555;
}

.faq-article-content code {
    background: #f1f3f5;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #d63384;
}

.faq-article-content pre {
    background: #1a1a2e;
    color: #e9ecef;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.faq-article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.faq-article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.faq-article-content a:hover {
    color: var(--color-secondary);
}

.faq-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.faq-article-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

.faq-article-content table th,
.faq-article-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.faq-article-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Sidebar Links */
.faq-sidebar-link {
    color: #495057;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.faq-sidebar-link:hover {
    color: var(--color-primary);
}

/* FAQ Search Input */
#faq-search {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
}

#faq-search:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 170, 0.15);
}

/* ================================================================
   Phase 6: Tarteaucitron Cookie Consent - Equal Prominence Overrides
   Italian Garante requires Accept and Reject buttons to have
   equal visual weight (no dark patterns).
   ================================================================ */

/* Ensure both Accept All and Deny All buttons are the same size and prominence */
#tarteaucitronAlertBig #tarteaucitronPersonalize,
#tarteaucitronAlertBig #tarteaucitronAllDenied,
#tarteaucitronAlertBig #tarteaucitronPersonalize2 {
    display: inline-block !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--font-primary) !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    border: 2px solid var(--color-primary) !important;
    margin: 4px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

/* Accept All: filled primary */
#tarteaucitronAlertBig #tarteaucitronPersonalize2 {
    background: var(--color-primary) !important;
    color: #fff !important;
}

/* Deny All: outline primary (same visual weight) */
#tarteaucitronAlertBig #tarteaucitronAllDenied {
    background: transparent !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Personalize: secondary style */
#tarteaucitronAlertBig #tarteaucitronPersonalize {
    background: transparent !important;
    color: var(--color-gray) !important;
    border-color: var(--color-gray-light) !important;
    font-weight: 400 !important;
}

/* Hover states */
#tarteaucitronAlertBig #tarteaucitronPersonalize2:hover {
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}

#tarteaucitronAlertBig #tarteaucitronAllDenied:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}

/* Banner overall styling */
#tarteaucitronAlertBig {
    font-family: var(--font-primary) !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1) !important;
}

/* Privacy policy link in cookie banner */
.tarteaucitronPrivacyUrl {
    color: var(--color-primary) !important;
}

/* ================================================================
   Phase 6: Privacy consent checkbox styling
   ================================================================ */

.privacy-consent-check .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.privacy-consent-check .form-check-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.privacy-consent-check .form-check-label a:hover {
    color: var(--color-primary-dark);
}

/* ================================================================
   Phase 6: Floating WhatsApp Chatbot Button
   Fixed position bottom-right, WhatsApp green, pulse animation
   NOTE: No transform:scale() -- breaks layout (Phase 3 lesson)
   ================================================================ */

.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 0;
    pointer-events: none;
}

.chatbot-fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    pointer-events: auto;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.chatbot-fab-btn:hover {
    background: #20BD5A;
    color: #fff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.chatbot-fab-btn:focus {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}

/* Tooltip label */
.chatbot-fab-label {
    background: var(--color-dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 10px;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.chatbot-fab:hover .chatbot-fab-label {
    opacity: 1;
    visibility: visible;
}

/* Pulse ring animation on the button */
.chatbot-fab-btn::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: chatbotPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes chatbotPulse {
    0% {
        opacity: 0.6;
        width: 56px;
        height: 56px;
    }
    100% {
        opacity: 0;
        width: 80px;
        height: 80px;
    }
}

/* Chatbot container placeholder (future n8n widget) */
.chatbot-container {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
    .chatbot-fab {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-fab-label {
        display: none;
    }
}
