/* === stchannel__variables-css.css === */
/**
 * StChannel Master CSS Variables
 * 
 * Sistema unificato di variabili CSS per tutto il tenant StChannel.
 * Questo file deve essere caricato per primo per garantire la disponibilità
 * delle variabili in tutti gli altri file CSS.
 * 
 * Ordine di caricamento raccomandato:
 * 1. _variables.css (questo file)
 * 2. _bootstrap-overrides.css
 * 3. Altri file specifici
 */

:root {
    /* ========================================
       SISTEMA DI COLORI PRINCIPALE
       ======================================== */
    
    /* Colore primario unificato StChannel */
    --st-primary: #00ff9d;
    --st-primary-rgb: 0, 255, 157;
    --st-primary-dark: #00cc7d;
    --st-primary-light: #33ffac;
    --st-primary-darker: #00995f;
    --st-primary-lighter: #66ffbc;
    
    /* Varianti del verde per diversi usi */
    --st-green-neon: #00ff41;
    --st-green-bright: #7fff00;
    --st-green-forest: #228b22;
    --st-green-emerald: #50c878;
    
    /* Colori secondari */
    --st-secondary: #8b5cf6;
    --st-secondary-rgb: 139, 92, 246;
    --st-secondary-dark: #6b5b95;
    --st-secondary-light: #a78bfa;

    /* Avviso editoriale — banda "ANTEPRIMA" dei contenuti non pubblicati
       (usata solo da blog-preview-banner.css, mai su pagine pubbliche) */
    --st-preview-bg: #ffb703;
    --st-preview-bg-dark: #d68f00;
    --st-preview-rgb: 255, 183, 3;
    --st-preview-text: #1a1200;

    /* ========================================
       PALETTE NEUTRA E BACKGROUND
       ======================================== */
    
    /* Colori scuri per background */
    --st-black: #000000;
    --st-dark: #0a0a0a;
    --st-dark-card: #111111;
    --st-dark-surface: #1a1a1a;
    --st-dark-elevated: #2d2d2d;
    
    /* Colori chiari */
    --st-white: #ffffff;
    --st-light: #f8f9fa;
    --st-light-gray: #e2e8f0;
    --st-light-surface: #f7fafc;
    
    /* Testi */
    --st-text-primary: #ffffff;
    --st-text-secondary: #a0a0a0;
    --st-text-muted: #666666;
    --st-text-accent: #f0f6fc;
    --st-text-dark: #1a202c;
    
    /* ========================================
       SISTEMA DI GRADIENTI
       ======================================== */
    
    /* Gradienti primari */
    --st-gradient-primary: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-dark) 100%);
    --st-gradient-primary-soft: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 204, 125, 0.2) 100%);
    --st-gradient-primary-intense: linear-gradient(135deg, var(--st-green-neon) 0%, var(--st-primary) 50%, var(--st-primary-light) 100%);
    
    /* Gradienti scuri */
    --st-gradient-dark: linear-gradient(135deg, var(--st-dark) 0%, var(--st-dark-elevated) 100%);
    --st-gradient-dark-card: linear-gradient(135deg, var(--st-dark-card) 0%, var(--st-dark-surface) 100%);
    --st-gradient-black: linear-gradient(135deg, var(--st-black) 0%, var(--st-dark) 50%, var(--st-dark-surface) 100%);
    
    /* Gradienti secondari */
    --st-gradient-secondary: linear-gradient(135deg, var(--st-secondary) 0%, var(--st-secondary-dark) 100%);
    --st-gradient-hero: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-dark) 25%, var(--st-primary-light) 50%, var(--st-green-neon) 100%);
    
    /* Gradienti glass/vetro */
    --st-gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --st-gradient-glass-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    
    /* ========================================
       SISTEMA DI OMBRE
       ======================================== */
    
    /* Ombre standard */
    --st-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --st-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --st-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
    --st-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.3);
    --st-shadow-xl: 0 32px 128px rgba(0, 0, 0, 0.4);
    
    /* Ombre colorate (effetto glow) */
    --st-shadow-primary: 0 4px 6px rgba(0, 255, 157, 0.1);
    --st-shadow-primary-lg: 0 10px 25px rgba(0, 255, 157, 0.15);
    --st-shadow-glow: 0 0 40px rgba(0, 255, 157, 0.4);
    --st-shadow-neon: 0 0 60px rgba(0, 255, 65, 0.5);
    --st-shadow-intense: 0 0 80px rgba(0, 255, 136, 0.6);
    
    /* ========================================
       SISTEMA DI BORDER RADIUS
       ======================================== */
    
    --st-radius-xs: 4px;
    --st-radius-sm: 8px;
    --st-radius-md: 16px;
    --st-radius-lg: 24px;
    --st-radius-xl: 32px;
    --st-radius-full: 50%;
    --st-radius-button: 30px;  /* Per i pulsanti arrotondati */
    
    /* ========================================
       SISTEMA DI SPACING
       ======================================== */
    
    --st-space-xs: 0.25rem;    /* 4px */
    --st-space-sm: 0.5rem;     /* 8px */
    --st-space-md: 1rem;       /* 16px */
    --st-space-lg: 1.5rem;     /* 24px */
    --st-space-xl: 2rem;       /* 32px */
    --st-space-2xl: 3rem;      /* 48px */
    --st-space-3xl: 4rem;      /* 64px */
    
    /* ========================================
       SISTEMA TIPOGRAFICO
       ======================================== */
    
    /* Font families */
    --st-font-primary: 'Montserrat', sans-serif;
    --st-font-secondary: 'Roboto', sans-serif;
    --st-font-mono: 'Fira Code', 'Cascadia Code', monospace;
    
    /* Font weights */
    --st-font-light: 300;
    --st-font-regular: 400;
    --st-font-medium: 500;
    --st-font-semibold: 600;
    --st-font-bold: 700;
    --st-font-black: 900;
    
    /* Font sizes */
    --st-text-xs: 0.75rem;     /* 12px */
    --st-text-sm: 0.875rem;    /* 14px */
    --st-text-base: 1rem;      /* 16px */
    --st-text-lg: 1.125rem;    /* 18px */
    --st-text-xl: 1.25rem;     /* 20px */
    --st-text-2xl: 1.5rem;     /* 24px */
    --st-text-3xl: 1.875rem;   /* 30px */
    --st-text-4xl: 2.25rem;    /* 36px */
    --st-text-5xl: 3rem;       /* 48px */
    
    /* Line heights */
    --st-leading-tight: 1.25;
    --st-leading-normal: 1.5;
    --st-leading-relaxed: 1.75;
    
    /* ========================================
       SISTEMA DI TRANSIZIONI
       ======================================== */
    
    --st-transition-fast: 0.15s ease-out;
    --st-transition-normal: 0.3s ease-out;
    --st-transition-slow: 0.5s ease-out;
    --st-transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ========================================
       SISTEMA DI Z-INDEX
       ======================================== */
    
    --st-z-dropdown: 1000;
    --st-z-sticky: 1020;
    --st-z-fixed: 1030;
    --st-z-modal-backdrop: 1040;
    --st-z-modal: 1050;
    --st-z-popover: 1060;
    --st-z-tooltip: 1070;
    --st-z-max: 9999;
    
    /* ========================================
       VARIABILI SPECIFICHE COMPONENTI
       ======================================== */
    
    /* Chat */
    --st-chat-bg: var(--st-dark-card);
    --st-chat-header-bg: var(--st-gradient-dark);
    --st-chat-message-bg: var(--st-dark-surface);
    --st-chat-border: rgba(0, 255, 157, 0.2);
    
    /* Cards */
    --st-card-bg: var(--st-dark-card);
    --st-card-border: rgba(255, 255, 255, 0.1);
    --st-card-hover-shadow: var(--st-shadow-primary-lg);
    
    /* Buttons */
    --st-btn-primary-bg: var(--st-primary);
    --st-btn-primary-color: var(--st-black);
    --st-btn-primary-hover-bg: var(--st-primary-light);
    --st-btn-radius: var(--st-radius-button);
    
    /* Navigation */
    --st-nav-bg: var(--st-gradient-dark);
    --st-nav-link-color: rgba(255, 255, 255, 0.9);
    --st-nav-link-hover-color: var(--st-primary);
    
    /* Portfolio */
    --st-portfolio-card-bg: var(--st-gradient-dark-card);
    --st-portfolio-overlay: rgba(0, 0, 0, 0.8);
    
    /* Services */
    --st-service-card-bg: var(--st-dark-surface);
    --st-service-icon-bg: var(--st-gradient-primary);
    
    /* Blog */
    --st-blog-card-bg: var(--st-dark-card);
    --st-blog-meta-color: var(--st-text-muted);
}

/* ========================================
   UTILITÀ PER DEBUGGING E SVILUPPO
   ======================================== */

/* Mostra variabili in console per debugging */
.st-debug-vars::before {
    content: "StChannel CSS Variables Loaded ✓";
    position: fixed;
    top: 0;
    right: 0;
    background: var(--st-primary);
    color: var(--st-black);
    padding: var(--st-space-xs) var(--st-space-sm);
    font-size: var(--st-text-xs);
    z-index: var(--st-z-max);
    opacity: 0;
    animation: debug-flash 2s ease-out;
}

@keyframes debug-flash {
    0%, 90% { opacity: 0; }
    10%, 80% { opacity: 1; }
}

/* ========================================
   COMPATIBILITÀ LEGACY
   ======================================== */

/* Alias per compatibilità con file esistenti */
:root {
    /* Alias Bootstrap */
    --bs-primary: var(--st-primary);
    --bs-primary-rgb: var(--st-primary-rgb);
    
    /* Alias stchannel-theme.css */
    --stchannel-primary: var(--st-primary);
    --stchannel-primary-dark: var(--st-primary-dark);
    --stchannel-primary-light: var(--st-primary-light);
    --stchannel-primary-rgb: var(--st-primary-rgb);
    --stchannel-gradient-primary: var(--st-gradient-primary);
    --stchannel-gradient-dark: var(--st-gradient-dark);
    --stchannel-gradient-hero: var(--st-gradient-hero);
    --stchannel-dark: var(--st-dark-surface);
    --stchannel-light: var(--st-white);
    --stchannel-gray: var(--st-text-muted);
    --stchannel-gray-light: var(--st-light-gray);
    --stchannel-shadow: var(--st-shadow-primary);
    --stchannel-shadow-lg: var(--st-shadow-primary-lg);
    
    /* Alias components.css */
    --primary-green: var(--st-primary);
    --secondary-green: var(--st-primary-dark);
    --accent-green: var(--st-primary-light);
    --dark-green: var(--st-primary-darker);
    --neon-green: var(--st-green-neon);
    --bright-green: var(--st-green-bright);
    --bg-primary: var(--st-black);
    --bg-secondary: var(--st-dark);
    --bg-card: var(--st-dark-card);
    --bg-surface: var(--st-dark-surface);
    --text-primary: var(--st-text-primary);
    --text-secondary: var(--st-text-secondary);
    --text-accent: var(--st-text-accent);
    --text-muted: var(--st-text-muted);
    
    /* Alias services e portfolio */
    --service-primary: var(--st-primary);
    --service-secondary: var(--st-secondary);
    --service-light: var(--st-light-gray);
    --portfolio-primary-color: var(--st-primary);
    --portfolio-primary-rgb: var(--st-primary-rgb);
    --portfolio-bg-color: var(--st-dark-card);
    
    /* Card gradient variables for blog cards */
    --card-gradient-start: var(--st-primary);
    --card-gradient-end: #ff4757;
}

/* === stchannel__bootstrap-overrides-css.css === */
/**
 * StChannel Bootstrap Overrides
 * 
 * Overrides consolidati per Bootstrap 5.3+ usando le variabili unificate.
 * Questo file sostituisce e consolida:
 * - bss-overrides.css
 * - Parti di stchannel-theme.css relative a Bootstrap
 * 
 * Richiede: _variables.css caricato prima
 */

/* ========================================
   BOOTSTRAP CSS VARIABLES OVERRIDE
   ======================================== */

:root, [data-bs-theme=light] {
    /* Colori primari */
    --bs-primary: var(--st-primary);
    --bs-primary-rgb: var(--st-primary-rgb);
    --bs-primary-text-emphasis: var(--st-primary-darker);
    --bs-primary-bg-subtle: rgba(var(--st-primary-rgb), 0.1);
    --bs-primary-border-subtle: rgba(var(--st-primary-rgb), 0.3);
    
    /* Colori secondari */
    --bs-secondary: var(--st-secondary);
    --bs-secondary-rgb: var(--st-secondary-rgb);
    
    /* Colori neutri */
    --bs-light: var(--st-white);
    --bs-light-rgb: 255, 255, 255;
    --bs-light-text-emphasis: var(--st-text-muted);
    --bs-light-bg-subtle: var(--st-white);
    --bs-light-border-subtle: var(--st-white);
    
    --bs-dark: var(--st-dark-surface);
    --bs-dark-rgb: 26, 26, 26;
    
    /* Font family principale */
    --bs-body-font-family: var(--st-font-primary);
    --bs-font-sans-serif: var(--st-font-primary);
    
    /* Border radius globale */
    --bs-border-radius: var(--st-radius-sm);
    --bs-border-radius-sm: var(--st-radius-xs);
    --bs-border-radius-lg: var(--st-radius-md);
    --bs-border-radius-xl: var(--st-radius-lg);
    --bs-border-radius-pill: var(--st-radius-full);
}

[data-bs-theme=dark] {
    --bs-body-bg: var(--st-black);
    --bs-body-color: var(--st-text-primary);
    --bs-tertiary-bg: var(--st-dark-card);
    --bs-border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   PULSANTI PERSONALIZZATI
   ======================================== */

/* Pulsante primario */
.btn-primary {
    --bs-btn-color: var(--st-btn-primary-color);
    --bs-btn-bg: var(--st-btn-primary-bg);
    --bs-btn-border-color: var(--st-btn-primary-bg);
    --bs-btn-hover-color: var(--st-btn-primary-color);
    --bs-btn-hover-bg: var(--st-btn-primary-hover-bg);
    --bs-btn-hover-border-color: var(--st-btn-primary-hover-bg);
    --bs-btn-focus-shadow-rgb: var(--st-primary-rgb);
    --bs-btn-active-color: var(--st-btn-primary-color);
    --bs-btn-active-bg: var(--st-primary-light);
    --bs-btn-active-border-color: var(--st-primary-light);
    --bs-btn-disabled-color: var(--st-btn-primary-color);
    --bs-btn-disabled-bg: var(--st-primary);
    --bs-btn-disabled-border-color: var(--st-primary);
    
    border-radius: var(--st-btn-radius);
    font-weight: var(--st-font-semibold);
    transition: all var(--st-transition-normal);
    box-shadow: var(--st-shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--st-shadow-primary);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--st-shadow-xs);
}

/* Pulsante outline primario */
.btn-outline-primary {
    --bs-btn-color: var(--st-primary);
    --bs-btn-border-color: var(--st-primary);
    --bs-btn-focus-shadow-rgb: var(--st-primary-rgb);
    --bs-btn-hover-color: var(--st-btn-primary-color);
    --bs-btn-hover-bg: var(--st-primary);
    --bs-btn-hover-border-color: var(--st-primary);
    --bs-btn-active-color: var(--st-btn-primary-color);
    --bs-btn-active-bg: var(--st-primary);
    --bs-btn-active-border-color: var(--st-primary);
    --bs-btn-disabled-color: var(--st-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--st-primary);
    
    border-radius: var(--st-btn-radius);
    font-weight: var(--st-font-medium);
    transition: all var(--st-transition-normal);
}

.btn-outline-primary:hover {
    box-shadow: var(--st-shadow-primary);
    transform: translateY(-1px);
}

/* Pulsante light */
.btn-light {
    --bs-btn-color: var(--st-text-dark);
    --bs-btn-bg: var(--st-white);
    --bs-btn-border-color: var(--st-white);
    --bs-btn-hover-color: var(--st-text-dark);
    --bs-btn-hover-bg: var(--st-light-gray);
    --bs-btn-hover-border-color: var(--st-light-gray);
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
    --bs-btn-active-color: var(--st-text-dark);
    --bs-btn-active-bg: var(--st-light-gray);
    --bs-btn-active-border-color: var(--st-light-gray);
    
    border-radius: var(--st-btn-radius);
    font-weight: var(--st-font-medium);
    transition: all var(--st-transition-normal);
}

/* Pulsante dark */
.btn-dark {
    --bs-btn-color: var(--st-white);
    --bs-btn-bg: var(--st-dark-surface);
    --bs-btn-border-color: var(--st-dark-surface);
    --bs-btn-hover-color: var(--st-white);
    --bs-btn-hover-bg: var(--st-dark-elevated);
    --bs-btn-hover-border-color: var(--st-dark-elevated);
    
    border-radius: var(--st-btn-radius);
    font-weight: var(--st-font-medium);
    transition: all var(--st-transition-normal);
}

/* ========================================
   CARDS PERSONALIZZATE
   ======================================== */

.card {
    background: var(--st-card-bg);
    border: 1px solid var(--st-card-border);
    border-radius: var(--st-radius-md);
    transition: all var(--st-transition-normal);
    box-shadow: var(--st-shadow-sm);
}

.card:hover {
    box-shadow: var(--st-card-hover-shadow);
    transform: translateY(-2px);
}

.card-header {
    background: var(--st-gradient-dark);
    border-bottom: 1px solid var(--st-card-border);
    color: var(--st-text-primary);
}

.card-body {
    color: var(--st-text-primary);
}

.card-footer {
    background: var(--st-dark-surface);
    border-top: 1px solid var(--st-card-border);
    color: var(--st-text-secondary);
}

/* ========================================
   FORM CONTROLS
   ======================================== */

.form-control {
    background-color: var(--st-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--st-text-primary);
    border-radius: var(--st-radius-sm);
    transition: all var(--st-transition-fast);
}

.form-control:focus {
    background-color: var(--st-dark-surface);
    border-color: var(--st-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--st-primary-rgb), 0.25);
}

.form-control::placeholder {
    color: var(--st-text-muted);
}

.form-select {
    background-color: var(--st-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--st-text-primary);
    border-radius: var(--st-radius-sm);
}

.form-select:focus {
    border-color: var(--st-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--st-primary-rgb), 0.25);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: var(--st-nav-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--st-chat-border);
}

.navbar-brand {
    color: var(--st-text-primary) !important;
    font-weight: var(--st-font-bold);
}

.navbar-nav .nav-link {
    color: var(--st-nav-link-color) !important;
    font-weight: var(--st-font-medium);
    transition: all var(--st-transition-fast);
    border-radius: var(--st-radius-sm);
    margin: 0 var(--st-space-xs);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--st-nav-link-hover-color) !important;
    background-color: rgba(var(--st-primary-rgb), 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--st-primary) !important;
    font-weight: var(--st-font-bold);
}

.navbar-toggler {
    border-color: var(--st-primary);
    color: var(--st-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--st-primary-rgb), 0.25);
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
    background-color: var(--st-dark-card);
    border: 1px solid var(--st-card-border);
    border-radius: var(--st-radius-lg);
    color: var(--st-text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--st-card-border);
}

.modal-footer {
    border-top: 1px solid var(--st-card-border);
}

.modal-backdrop {
    background-color: var(--st-black);
}

/* ========================================
   ALERTS
   ======================================== */

.alert-primary {
    color: var(--st-primary-darker);
    background-color: rgba(var(--st-primary-rgb), 0.1);
    border-color: rgba(var(--st-primary-rgb), 0.3);
}

.alert-dark {
    color: var(--st-text-primary);
    background-color: var(--st-dark-surface);
    border-color: var(--st-card-border);
}

/* ========================================
   DROPDOWN
   ======================================== */

.dropdown-menu {
    background-color: var(--st-dark-card);
    border: 1px solid var(--st-card-border);
    border-radius: var(--st-radius-md);
    box-shadow: var(--st-shadow-lg);
}

.dropdown-item {
    color: var(--st-text-primary);
    transition: all var(--st-transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--st-primary);
    background-color: rgba(var(--st-primary-rgb), 0.1);
}

.dropdown-divider {
    border-top: 1px solid var(--st-card-border);
}

/* ========================================
   BADGE
   ======================================== */

.badge {
    border-radius: var(--st-radius-full);
}

.badge.bg-primary {
    background-color: var(--st-primary) !important;
    color: var(--st-black) !important;
}

/* ========================================
   PROGRESS
   ======================================== */

.progress {
    background-color: var(--st-dark-surface);
    border-radius: var(--st-radius-full);
}

.progress-bar {
    background: var(--st-gradient-primary);
}

/* ========================================
   TOOLTIPS E POPOVERS
   ======================================== */

.tooltip-inner {
    background-color: var(--st-dark-elevated);
    color: var(--st-text-primary);
    border-radius: var(--st-radius-sm);
}

.popover {
    background-color: var(--st-dark-card);
    border: 1px solid var(--st-card-border);
    border-radius: var(--st-radius-md);
}

.popover-header {
    background-color: var(--st-dark-surface);
    border-bottom: 1px solid var(--st-card-border);
    color: var(--st-text-primary);
}

.popover-body {
    color: var(--st-text-primary);
}

/* ========================================
   UTILITÀ PERSONALIZZATE
   ======================================== */

/* Classe per testi con colore primario */
.text-st-primary {
    color: var(--st-primary) !important;
}

/* Classe per background scuri */
.bg-st-dark {
    background-color: var(--st-dark-card) !important;
}

/* Classe per ombre primarie */
.shadow-st-primary {
    box-shadow: var(--st-shadow-primary) !important;
}

/* Classe per ombre glow */
.shadow-st-glow {
    box-shadow: var(--st-shadow-glow) !important;
}

/* Classe per gradienti */
.bg-st-gradient-primary {
    background: var(--st-gradient-primary) !important;
}

.bg-st-gradient-dark {
    background: var(--st-gradient-dark) !important;
}

/* === stchannel_stchannel-theme-css.css === */
/**
 * StChannel Theme CSS - Refactored
 * 
 * Tema personalizzato che utilizza le variabili unificate da _variables.css
 * Le variabili originali sono mantenute per compatibilità tramite alias in _variables.css
 * 
 * Richiede: _variables.css caricato prima
 */

/* Spazio tra contenuto principale e footer */
.site-footer {
    margin-top: 4rem;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.stchannel-header {
    background: var(--st-nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--st-chat-border);
    position: sticky;
    top: 0;
    z-index: var(--st-z-sticky);
    transition: all var(--st-transition-fast);
}

.stchannel-navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform var(--st-transition-normal);
}

.stchannel-navbar-brand:hover img {
    transform: scale(1.05);
}

.stchannel-nav-link {
    color: var(--st-nav-link-color) !important;
    font-weight: var(--st-font-medium);
    padding: 0.75rem 1rem !important;
    transition: all var(--st-transition-normal);
    position: relative;
    border-radius: var(--st-radius-sm);
    margin: 0 var(--st-space-xs);
}

.stchannel-nav-link:hover {
    color: var(--st-nav-link-hover-color) !important;
    transform: translateY(-2px);
    background-color: rgba(var(--st-primary-rgb), 0.1);
}

.stchannel-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--st-gradient-primary);
    transition: all var(--st-transition-normal);
    transform: translateX(-50%);
    border-radius: var(--st-radius-full);
}

.stchannel-nav-link:hover::after,
.stchannel-nav-link.active::after {
    width: 80%;
}

.stchannel-nav-link.active {
    color: var(--st-primary) !important;
    font-weight: var(--st-font-semibold);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.stchannel-footer {
    background: var(--st-nav-bg);
    border-top: 1px solid var(--st-chat-border);
    margin-top: auto;
    padding: var(--st-space-2xl) 0 var(--st-space-xl) 0;
}

.stchannel-footer-title {
    color: var(--st-primary);
    font-weight: var(--st-font-semibold);
    margin-bottom: var(--st-space-md);
    font-size: var(--st-text-lg);
}

.stchannel-footer-link {
    color: var(--st-nav-link-color);
    text-decoration: none;
    transition: all var(--st-transition-normal);
    display: block;
    padding: var(--st-space-xs) 0;
    border-radius: var(--st-radius-sm);
}

.stchannel-footer-link:hover {
    color: var(--st-primary);
    transform: translateX(5px);
    padding-left: var(--st-space-sm);
}

.stchannel-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(var(--st-primary-rgb), 0.1);
    border: 1px solid rgba(var(--st-primary-rgb), 0.3);
    border-radius: var(--st-radius-full);
    color: var(--st-primary);
    text-decoration: none;
    transition: all var(--st-transition-normal);
    margin: 0 var(--st-space-sm);
}

.stchannel-social-link:hover {
    background: var(--st-primary);
    color: var(--st-black);
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.stchannel-hero {
    background: var(--st-gradient-hero);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stchannel-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(var(--st-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--st-primary-rgb), 0.1) 0%, transparent 50%);
    z-index: 1;
}

.stchannel-hero-content {
    position: relative;
    z-index: 2;
}

/* ========================================
   BUTTONS PERSONALIZZATI
   ======================================== */
.btn-stchannel-primary {
    background: var(--st-gradient-primary);
    border: none;
    color: var(--st-btn-primary-color);
    font-weight: var(--st-font-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--st-btn-radius);
    transition: all var(--st-transition-normal);
    box-shadow: var(--st-shadow-primary);
}

.btn-stchannel-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-primary-lg);
    color: var(--st-btn-primary-color);
    background: var(--st-gradient-primary-intense);
}

.btn-stchannel-outline {
    background: transparent;
    border: 2px solid var(--st-primary);
    color: var(--st-primary);
    font-weight: var(--st-font-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--st-btn-radius);
    transition: all var(--st-transition-normal);
}

.btn-stchannel-outline:hover {
    background: var(--st-primary);
    color: var(--st-btn-primary-color);
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-primary);
}

/* ========================================
   CARDS PERSONALIZZATE
   ======================================== */

.stchannel-card {
    background: var(--st-card-bg);
    border-radius: var(--st-radius-lg);
    box-shadow: var(--st-shadow-sm);
    transition: all var(--st-transition-normal);
    overflow: hidden;
    border: 1px solid var(--st-card-border);
}

.stchannel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--st-card-hover-shadow);
    border-color: var(--st-primary);
}

.stchannel-card-header {
    background: var(--st-gradient-primary);
    color: var(--st-btn-primary-color);
    padding: var(--st-space-lg);
    font-weight: var(--st-font-semibold);
}

/* ========================================
   UTILITÀ TEMATICHE
   ======================================== */

.text-stchannel-primary {
    color: var(--st-primary) !important;
}

.bg-stchannel-primary {
    background: var(--st-primary) !important;
}

.bg-stchannel-gradient {
    background: var(--st-gradient-primary) !important;
}

.bg-stchannel-dark {
    background: var(--st-dark-card) !important;
}

.border-stchannel-primary {
    border-color: var(--st-primary) !important;
}

/* ========================================
   ANIMAZIONI
   ======================================== */

@keyframes stchannel-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--st-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--st-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--st-primary-rgb), 0);
    }
}

.stchannel-pulse {
    animation: stchannel-pulse 2s infinite;
}

@keyframes stchannel-glow {
    0%, 100% {
        box-shadow: var(--st-shadow-primary);
    }
    50% {
        box-shadow: var(--st-shadow-glow);
    }
}

.stchannel-glow {
    animation: stchannel-glow 3s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .stchannel-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .stchannel-navbar-brand img {
        height: 32px;
    }
    
    .stchannel-social-link {
        width: 35px;
        height: 35px;
        margin: 0 var(--st-space-xs);
    }
    
    .stchannel-footer {
        padding: var(--st-space-xl) 0 var(--st-space-lg) 0;
    }
    
    .btn-stchannel-primary,
    .btn-stchannel-outline {
        padding: 0.6rem 1.5rem;
        font-size: var(--st-text-sm);
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .stchannel-card {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .stchannel-footer-link {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* ========================================
   SKIP NAVIGATION LINK (Accessibilità - TEC-3)
   Nascosto di default (Bootstrap .visually-hidden-focusable),
   visibile solo quando riceve focus da tastiera.
   ======================================== */
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 99999;
    padding: 8px 16px;
    background: var(--st-primary, #00ff9d);
    color: var(--st-dark, #0a0a0a);
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
}

/* ========================================
   FONT-SIZE MINIMO 14px SU MOBILE (TEC-4)
   L'audit a 375px ha rilevato testo sotto i 14px:
   - tagline/sottotitolo hero (~11.2px)
   - badge categorie blog/portfolio (~10-12px)
   Garantiamo leggibilità minima senza rompere il layout.
   ======================================== */
@media (max-width: 768px) {
    /* Hero: tagline / sottotitolo descrittivo */
    #hero .cta-big-block p,
    #cta-big-block p,
    .hero-tagline,
    .hero-subtitle,
    [class*="tagline"],
    [class*="subtitle"] {
        font-size: max(14px, 3.5vw) !important;
    }

    /* Badge categorie (blog carousel v3 + portfolio masonry/wall) */
    .blog-card-category-v3,
    .portfolio-card__category,
    .portfolio-wall-card__category,
    .category-badge,
    [class*="category"][class*="badge"] {
        font-size: 13px !important;
    }
}


/* === stchannel_footer-css.css === */
/* Footer Styles per StChannel */
.site-footer{
    padding: 0 !important;
}

.stchannel-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #1a1a1a 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.stchannel-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--st-primary, #00ff9d), transparent);
}

.footer-brand .brand-text {
    background: var(--st-gradient-primary, linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--st-gradient-primary, linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%));
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--st-primary, #00ff9d);
    transform: translateX(5px);
}

.footer-links a::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--st-primary, #00ff9d);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 10px;
}

/* Difensivo: garantisce che le icone FontAwesome nel menu footer siano sempre
   visibili (qualunque reset esterno non le nasconda). */
.stchannel-footer .footer-links a i {
    display: inline-block !important;
    color: inherit;
}

/* Voce "Tutorial" evidenziata nel footer (coerente con l'header):
   colore neon + glow pulsante leggero. */
.stchannel-footer .footer-link-tutorial {
    color: var(--st-primary, #00ff9d) !important;
    animation: stFooterTutorialPulse 2.6s ease-in-out infinite;
}
.stchannel-footer .footer-link-tutorial i {
    color: var(--st-primary, #00ff9d) !important;
}
.stchannel-footer .footer-link-tutorial:hover {
    text-shadow: 0 0 12px rgba(0, 255, 157, 0.7);
}
@keyframes stFooterTutorialPulse {
    0%, 100% { text-shadow: 0 0 0 rgba(0, 255, 157, 0); }
    50%      { text-shadow: 0 0 10px rgba(0, 255, 157, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
    .stchannel-footer .footer-link-tutorial { animation: none !important; }
}

/* Disclaimer AI generativa */
.footer-ai-disclaimer {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    line-height: 1.5;
    margin-top: 1.75rem !important;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: .6rem;
}
.footer-ai-disclaimer i {
    color: rgba(0,255,157,.4);
    margin-right: 5px;
    font-size: .68rem;
}

/* Social Links — pallini tondi in griglia flex-wrap */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
    max-width: 220px;
}

.stchannel-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stchannel-social-link i,
.stchannel-social-link svg {
    transition: color 0.3s ease;
}

.stchannel-social-link:hover {
    background: var(--st-gradient-primary, linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%));
    color: var(--st-dark, #0a0a0a) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4);
}

.stchannel-social-link:hover i,
.stchannel-social-link:hover svg {
    color: var(--st-dark, #0a0a0a) !important;
}

/* Contact Info */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    width: 20px;
    margin-right: 1rem;
    color: var(--st-primary, #00ff9d);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--st-primary, #00ff9d);
}

/* Newsletter */
.newsletter-signup {
    margin-top: 2rem;
}

.newsletter-signup h6 {
    color: #ffffff;
    font-weight: 600;
}

.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: white;
}

.newsletter-form .btn {
    background: var(--st-gradient-primary, linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%));
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: var(--st-dark, #0a0a0a);
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, #00cc7d 0%, #00ff9d 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    text-align: right;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--st-primary, #00ff9d);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--st-gradient-primary, linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%));
    border: none;
    border-radius: 50%;
    color: var(--st-dark, #0a0a0a);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #00cc7d 0%, #00ff9d 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .stchannel-footer {
        padding: 40px 0 20px;
    }

    .footer-bottom-links {
        text-align: left;
        justify-content: flex-start;
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* === chatcontainercomponent_chat-config.css === */
/* 
 * Chat-Config - Variabili CSS centralizzate per l'interfaccia chat
 * @copyright [2024] [chat-ida/saintchannel]
 * @author [Dario Santocanale]
 * @version 1.0.1
 * Questo file contiene tutte le variabili CSS condivise tra i vari componenti dell'interfaccia chat.
 * Centralizzare le variabili in questo file permette una gestione coerente degli stili in tutta l'applicazione.
 */

.chat-container {
    /* ======================================
       1. COLORI BASE
       ====================================== */
    /* Variabili Bootstrap con fallback ai colori originali */
    --chat-primary: var(--bs-success, #00FF9D);
    --chat-primary-light: rgba(var(--bs-success-rgb, 0, 255, 157), 0.15);
    --chat-primary-hover: var(--bs-success-dark, #00e68c);
    
    --chat-bg: var(--bs-white, #FFFFFF);
    --chat-bg-dark: var(--bs-light, #F0F0F0);
    --chat-bg-light: var(--bs-gray-100, #FAFAFA);
    --chat-bg-hover: rgba(var(--bs-dark-rgb, 0, 0, 0), 0.05);
    --chat-bg-active: rgba(var(--bs-dark-rgb, 0, 0, 0), 0.08);
    
    --chat-border: var(--bs-gray-300, #E5E7EB);
    --chat-border-light: rgba(var(--bs-gray-300-rgb, 229, 231, 235), 0.5);
    
    --chat-text: var(--bs-gray-800, #333333);
    --chat-text-muted: var(--bs-gray-600, #6B7280);
    
    --chat-shadow-color: rgba(var(--bs-dark-rgb, 0, 0, 0), 0.1);
    
    /* ======================================
       2. DIMENSIONI E SPAZI
       ====================================== */
    /* Dimensioni container */
    --chat-container-height: 600px;
    --chat-container-min-height: 400px;
    --chat-header-height: 56px;
    --chat-tabs-height: 40px;
    --chat-tabs-content-height: 200px;
    --chat-sidebar-width: 280px;
    --chat-dropdown-width: 220px;
    --chat-dropdown-mobile-width: 180px;
    --chat-input-height: 30px;
    /* Calcoliamo dinamicamente l'altezza del componente di input 
       basandoci su padding verticale (sopra e sotto) + altezza di base + 1px per il bordo */
    --chat-height-component: calc(var(--chat-input-height) + (var(--chat-input-padding-y) * 2) + 1px);
    
    /* Spaziature */
    --chat-spacing-xs: 4px;
    --chat-spacing-sm: 8px;
    --chat-spacing-md: 12px;
    --chat-spacing-lg: 16px;
    --chat-spacing-xl: 24px;
    
    /* Padding specifici per l'input */
    --chat-input-padding-x: 16px;
    --chat-input-padding-y: 12px;
    --chat-input-mobile-padding-x: 12px;
    --chat-input-mobile-padding-y: 10px;
    
    /* Distanze tra messaggi */
    --chat-message-spacing: 15px;
    --chat-message-gap: 15px;
    
    /* ======================================
       3. TIPOGRAFIA
       ====================================== */
    --chat-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --chat-font-size: 14px;
    --chat-font-size-xs: 11px;
    --chat-font-size-sm: 12px;
    --chat-font-size-lg: 16px;
    --chat-font-size-xl: 18px;
    
    /* ======================================
       4. BORDI E RAGGI DI CURVATURA
       ====================================== */
    --chat-border-radius: 6px;
    --chat-border-radius-lg: 8px;
    --chat-border-radius-xl: 12px;
    --chat-button-radius: 6px;
    
    /* ======================================
       5. EFFETTI VISUALI
       ====================================== */
    /* Ombre */
    --chat-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --chat-box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
    --chat-box-shadow-top: 0 -4px 12px rgba(0, 0, 0, 0.1);
    --chat-box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --chat-box-shadow-input: 0 1px 3px rgba(0, 0, 0, 0.08);
    --chat-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    
    /* Transizioni */
    --chat-transition: all 0.2s ease-out;
    --chat-transition-fast: all 0.15s ease-out;
    
    /* ======================================
       6. Z-INDEX STACKING ORDER
       ====================================== */
    --chat-zindex-default: 1;
    --chat-zindex-dropdown: 1000;
    --chat-zindex-fixed: 1030;
    --chat-zindex-popover: 1060;
    --chat-zindex-modal: 1080;
    --chat-zindex-fullscreen: 1100;
    --chat-zindex-spinner: 9999;           /* Z-index molto alto per lo spinner di caricamento */
    
    /* ======================================
       7. BOTTONI E CONTROLLI
       ====================================== */
    --chat-button-size: 38px;
    --chat-button-mobile-size: 34px;
    --chat-button-icon-size: 20px;
    --chat-button-icon-mobile-size: 18px;
    
    /* ======================================
       8. STILI MESSAGGI
       ====================================== */
    --chat-message-user-bg: var(--chat-primary-light);
    --chat-message-user-text: var(--chat-text);
    --chat-message-user-border: var(--chat-primary);
    
    --chat-message-assistant-bg: var(--chat-bg-light);
    --chat-message-assistant-text: var(--chat-text);
    --chat-message-assistant-border: var(--chat-border);
    
    --chat-message-system-bg: rgba(229, 231, 235, 0.15);
    --chat-message-system-text: var(--chat-text-muted);
    --chat-message-system-border: var(--chat-border-light);
    
    /* ======================================
       9. SPINNER DI CARICAMENTO
       ====================================== */
    --chat-spinner-size: 40px;                    /* Dimensione spinner */
    --chat-spinner-border-width: 4px;            /* Spessore bordo spinner */
    --chat-spinner-color: var(--bs-success, #00FF9D);      /* Colore spinner */
    --chat-spinner-overlay-bg: var(--bs-white, #FFFFFF);   /* Sfondo overlay */
    --chat-spinner-overlay-opacity: 0.85;        /* Opacità overlay */
}

/* ======================================
   9. DARK MODE
   ====================================== */
.chat-container.chat-dark-mode {
    --chat-primary: #00FF9D;
    --chat-primary-light: rgba(0, 255, 157, 0.15);
    --chat-primary-hover: #00e68c;
    
    --chat-bg: #1F2937;
    --chat-bg-dark: #111827;
    --chat-bg-light: #2D3748;
    --chat-bg-hover: rgba(255, 255, 255, 0.05);
    --chat-bg-active: rgba(255, 255, 255, 0.08);
    
    --chat-border: #374151;
    --chat-border-light: rgba(55, 65, 81, 0.5);
    
    --chat-text: #F3F4F6;
    --chat-text-muted: #9CA3AF;
    
    --chat-shadow-color: rgba(0, 0, 0, 0.3);
    
    --chat-message-user-bg: rgba(0, 255, 157, 0.1);
    --chat-message-user-text: #F3F4F6;
    --chat-message-user-border: var(--chat-primary);
    
    --chat-message-assistant-bg: #2D3748;
    --chat-message-assistant-text: #F3F4F6;
    --chat-message-assistant-border: #374151;
    
    --chat-message-system-bg: rgba(55, 65, 81, 0.5);
    --chat-message-system-text: #D1D5DB;
    --chat-message-system-border: #4B5563;
    
    --chat-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --chat-box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.2);


    /* Ombra del menu a discesa in dark mode */
    
    --chat-text: #ffffff;
    --chat-text-muted: #888b90;
    
    /* Spinner in dark mode */
    --chat-spinner-overlay-bg: var(--bs-gray-900, #111827);
}

/* ======================================
   10. MEDIA QUERIES PER VARIABILI RESPONSIVE
   ====================================== */
@media (max-width: 767px) {
    .chat-container {
        /* Riduzione di alcuni spazi su mobile */
        --chat-sidebar-width: 260px;
    }
}

/* Media query per schermi più piccoli */
@media (max-width: 480px) {
    .chat-container {
        --chat-font-size: 13px;
        --chat-message-spacing: 10px;
        --chat-message-gap: 10px;
    }
}

/* ======================================
   11. VARIABILI PER COMPATIBLITÀ BROWSER
   ====================================== */
@supports not (height: 100svh) {
    .chat-container {
        --chat-fullscreen-height: 100vh;
    }
}

@supports (height: 100svh) {
    .chat-container {
        --chat-fullscreen-height: 100svh;
    }
}
/* === stchannel_styles-css.css === */
#hero {
  /*opacity: 0.69;*/
  /*background: var(--bs-cyan);*/
  margin-top: 0.7em;
}

/* === OTTIMIZZAZIONI HERO MOBILE === */
@media (max-width: 767.98px) {
  #hero {
    margin-top: 0.5rem;
  }
  
  #hero .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Logo più spazio sotto su mobile */
  #logo-hero-full-block-sm {
    margin-bottom: 2rem !important;
  }
  
  /* Titolo Full Stack AI Developer Strategist - più compatto */
  #hero h1 {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  #hero h1 span {
    display: block;
    line-height: 1.2;
  }
  
  /* Nascondi il pulsante "Watch how I work" su mobile */
  #div-btn-custom-animate {
    display: none !important;
  }
  
  /* Mostra il pulsante "Start your project" in alto (hero) su mobile */
  #hero-cta-mobile {
    display: block !important;
    margin: 2rem auto;
    text-align: center;
  }
  
  #hero-cta-mobile .btn {
    font-size: 1.15rem !important;
    padding: 1.25rem 2.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
    min-width: 250px;
  }
}

/* Nascondi il CTA mobile hero su desktop */
@media (min-width: 768px) {
  #hero-cta-mobile {
    display: none !important;
  }
}

#main_container {
  opacity: 1;
}

#logo-hero {
  background: url("../../assets/img/saintchannel_logo_ico_square_268.png") center / contain no-repeat;
  width: 34px;
  height: 40px;
}

.menu-hero-active {
  color: var(--bs-primary) !important;
  font-weight: bold;
}

#hero-navbar {
  height: 50px;
  /*position: sticky;*/
}

.btn-custom-full {
  border-radius: 30px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-right: 10px;
  padding-left: 10px;
  --bs-light-rgb: 255,255,255;
  color: var(--bs-black) !important;
  margin-left: 15px;
}

body {
  /*background: url("../../assets/img/Saint_Channel_Bozza_Num_33.jpg") top / cover no-repeat;*/
  /*filter: blur(0px);*/
  /*opacity: 1;*/
  /*transform: perspective(0px);*/
  /*backdrop-filter: opacity(1) blur(0px) hue-rotate(0deg);
  -webkit-backdrop-filter: opacity(1) blur(0px) hue-rotate(0deg);*/
  height: 4000px;
}

#render-check {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#header-image {
  max-width: 100%;
  left: 1%;
  position: relative;
}

#cta-ida-big-div {
  /*background-color: red;*/
  border-radius: 100px;
  display: inline-block !important;
}

#cta-ida-big-btn {
  border-radius: 100px;
  padding: 20px;
}

#cta-big-block {
  position: relative;
}

.p-around-cta-ida-big {
  font-size: 0.7em;
}

/* === OTTIMIZZAZIONI MOBILE PER CTA BLOCK === */
@media (max-width: 767.98px) {
  /* Nascondi il blocco CTA centrale su mobile (abbiamo già il CTA nell'hero) */
  #cta-big-block {
    display: none !important;
  }
}

.logo-hero-full {
  margin-top: -5%;
  z-index: 3;
}

@media (max-width: 767px) {
  #logo-hero-full-block {
    display: none !important;
  }
}

@media (min-width: 767px) {
  #logo-hero-full-block-sm {
    display: none !important;
  }
}

#laser-div {
  position: relative;
}

#laser-lamp {
  width: max-content;
}

#laser-lamp::after {
  content: '';
  background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(0,103,213,1) 50%, rgba(0,212,255,0) 100%);
  position: absolute;
  width: 45vw;
  height: 3px;
  margin-top: 2.5em;
  left: 50%;
  transform: translateX(-50%);
  z-index: -5;
}

/* Extra small devices (phones, less than 576px) */

@media (max-width: 575.98px) {
  #laser-lamp {
    width: 80vw;
  }
}

/* Small devices (landscape phones, 576px and up) */

@media (min-width: 576px) and (max-width: 767.98px) {
  #laser-lamp {
    width: 70vw;
  }
}

/* Medium devices (tablets, 768px and up) */

@media (min-width: 768px) {
  #laser-lamp {
    width: clamp(200px, 80%, 350px);
  }
}

#space-to-header {
  height: 9em;
}

/* ========================================
   REGOLE TIPOGRAFICHE PER TAG HTML
   ======================================== */

/* Headings principali */
h1 {
  color: var(--st-text-primary, #ffffff);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  color: var(--st-text-primary, #ffffff);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

h3 {
  color: var(--st-text-accent, #f0f6fc);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

h4 {
  color: var(--st-text-accent, #f0f6fc);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h5 {
  color: var(--st-text-secondary, #a0a0a0);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

h6 {
  color: var(--st-text-secondary, #a0a0a0);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* Paragrafi e testo di base */
p {
  color: var(--st-text-secondary, #a0a0a0);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Paragrafi con classe lead */
.lead {
  color: var(--st-text-accent, #f0f6fc);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}

/* Testo piccolo */
small {
  color: var(--st-text-muted, #666666);
  font-size: 0.875rem;
}

/* Enfasi e strong */
strong, b {
  color: var(--st-text-primary, #ffffff);
  font-weight: 600;
}

em, i {
  color: var(--st-text-accent, #f0f6fc);
}

/* Collegamenti */
a {
  color: var(--st-primary, #00ff9d);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--st-primary-light, #33ffac);
  text-shadow: 0 0 8px rgba(var(--st-primary-rgb), 0.3);
}

/* Code e preformatted */
code {
  color: var(--st-green-neon, #00ff41);
  background-color: var(--st-dark-card, #111111);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

pre {
  background-color: var(--st-dark-card, #111111);
  color: var(--st-text-accent, #f0f6fc);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--st-primary, #00ff9d);
  overflow-x: auto;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--st-primary, #00ff9d);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--st-text-accent, #f0f6fc);
  font-style: italic;
  background-color: rgba(var(--st-primary-rgb), 0.05);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

/* Liste */
ul, ol {
  color: var(--st-text-secondary, #a0a0a0);
  line-height: 1.6;
}

li {
  margin-bottom: 0.3rem;
}

/* Liste con marker personalizzato */
ul li::marker {
  color: var(--st-primary, #00ff9d);
}

ol li::marker {
  color: var(--st-primary, #00ff9d);
  font-weight: 600;
}

/* Divisori */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--st-primary, #00ff9d) 50%, 
    transparent 100%);
  margin: 2rem 0;
  opacity: 0.3;
}

/* Override per elementi con classi text-* di Bootstrap */
.text-primary {
  color: var(--st-primary, #00ff9d) !important;
}

.text-secondary {
  color: var(--st-text-secondary, #a0a0a0) !important;
}

.text-muted {
  color: var(--st-text-muted, #666666) !important;
}

.text-white {
  color: var(--st-text-primary, #ffffff) !important;
}

/* Classi utili per testi speciali */
.text-glow {
  text-shadow: 0 0 10px rgba(var(--st-primary-rgb), 0.5);
}

.text-neon {
  color: var(--st-green-neon, #00ff41);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* ========================================
   STILI PULSANTI STCHANNEL CON EFFETTI NEON
   Tutti i pulsanti hanno:
   - Alone neon progressivo al hover (4-5 livelli)
   - Elevazione e leggero scaling
   - Transizioni fluide per icone e colori
   - Feedback tattile al click
   - Animazione pulse-glow per elementi CTA
   ======================================== */

/* Pulsante primary StChannel con animazione futuristica */
.btn-stchannel-primary {
  background: var(--st-gradient-primary, linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%));
  border: 2px solid var(--st-primary, #00ff9d);
  color: var(--st-dark, #0a0a0a) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  letter-spacing: 0.5px;
  box-shadow: var(--st-shadow-primary, 0 4px 6px rgba(0, 255, 157, 0.1));
}

.btn-stchannel-primary:hover {
  background: var(--st-gradient-primary-intense, linear-gradient(135deg, #00ff41 0%, #00ff9d 50%, #33ffac 100%));
  border-color: var(--st-green-neon, #00ff41);
  color: var(--st-dark, #0a0a0a) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 25px rgba(0, 255, 157, 0.8),
    0 0 50px rgba(0, 255, 157, 0.6),
    0 0 75px rgba(0, 255, 157, 0.4),
    0 0 100px rgba(0, 255, 157, 0.2);
}

.btn-stchannel-primary:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 
    0 0 15px rgba(0, 255, 157, 0.6),
    0 0 30px rgba(0, 255, 157, 0.4);
}

/* Icone scure per pulsante primary (sempre visibili) */
.btn-stchannel-primary i,
.btn-stchannel-primary .fas,
.btn-stchannel-primary .fab,
.btn-stchannel-primary .bi {
  color: var(--st-dark, #0a0a0a) !important;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.btn-stchannel-primary:hover i,
.btn-stchannel-primary:hover .fas,
.btn-stchannel-primary:hover .fab,
.btn-stchannel-primary:hover .bi {
  color: var(--st-dark, #0a0a0a) !important;
  opacity: 1;
  text-shadow: 0 0 5px rgba(10, 10, 10, 0.3);
}

/* Pulsante secondary con bordo luminoso e effetto neon */
.btn-stchannel-secondary {
  background: transparent;
  border: 2px solid var(--st-primary, #00ff9d);
  color: var(--st-primary, #00ff9d) !important;
  font-weight: 500;
  border-radius: 50px;
  padding: 12px 24px;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 0 0 var(--st-primary, #00ff9d);
}

.btn-stchannel-secondary:hover {
  color: var(--st-dark, #0a0a0a) !important;
  box-shadow: 
    inset 0 0 0 50px var(--st-primary, #00ff9d),
    0 0 25px rgba(0, 255, 157, 0.8),
    0 0 50px rgba(0, 255, 157, 0.6),
    0 0 75px rgba(0, 255, 157, 0.4),
    0 0 100px rgba(0, 255, 157, 0.2);
  border-color: var(--st-green-neon, #00ff41);
  text-shadow: none;
  transform: translateY(-3px) scale(1.02);
}

/* Pulsante ghost per elementi meno evidenti */
.btn-stchannel-ghost {
  background: rgba(var(--st-primary-rgb), 0.1);
  border: 1px solid rgba(var(--st-primary-rgb), 0.3);
  color: var(--st-primary, #00ff9d) !important;
  font-weight: 400;
  border-radius: 25px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-stchannel-ghost:hover {
  background: rgba(var(--st-primary-rgb), 0.2);
  border-color: var(--st-primary, #00ff9d);
  color: var(--st-primary-light, #33ffac) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 20px rgba(0, 255, 157, 0.6),
    0 0 40px rgba(0, 255, 157, 0.4),
    0 0 60px rgba(0, 255, 157, 0.3);
  backdrop-filter: blur(15px);
}

.btn-stchannel-secondary:active {
  transform: translateY(-1px) scale(1.01);
  color: var(--st-dark, #0a0a0a) !important; /* Mantiene il testo scuro per contrasto */
  background: var(--st-primary, #00ff9d) !important; /* Sfondo pieno per visibilità - !important per sovrascrivere */
  border-color: var(--st-green-neon, #00ff41) !important;
  box-shadow: 
    inset 0 0 0 2px var(--st-green-neon, #00ff41), /* Bordo interno per rinforzo */
    0 0 15px rgba(0, 255, 157, 0.6),
    0 0 30px rgba(0, 255, 157, 0.4) !important;
}

.btn-stchannel-ghost:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 
    0 0 10px rgba(0, 255, 157, 0.5),
    0 0 20px rgba(0, 255, 157, 0.3);
}

/* Dimensioni personalizzate con effetti neon scalabili */
.btn-stchannel-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 60px;
}

.btn-stchannel-lg:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 0 30px rgba(0, 255, 157, 0.8),
    0 0 60px rgba(0, 255, 157, 0.6),
    0 0 90px rgba(0, 255, 157, 0.4),
    0 0 120px rgba(0, 255, 157, 0.2);
}

.btn-stchannel-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 30px;
}

.btn-stchannel-sm:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 
    0 0 15px rgba(0, 255, 157, 0.6),
    0 0 30px rgba(0, 255, 157, 0.4),
    0 0 45px rgba(0, 255, 157, 0.2);
}

/* Icone nei pulsanti StChannel */
.btn-stchannel-primary i,
.btn-stchannel-secondary i,
.btn-stchannel-ghost i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-stchannel-primary:hover i,
.btn-stchannel-secondary:hover i,
.btn-stchannel-ghost:hover i {
  transform: translateX(3px);
}

/* Cambio colore specifico per l'icona del pulsante secondary */
.btn-stchannel-secondary:hover i {
  color: var(--st-dark, #0a0a0a) !important;
  transform: translateX(3px);
}

/* Assicura che le icone siano visibili anche al click */
.btn-stchannel-secondary:active i {
  color: var(--st-dark, #0a0a0a) !important;
  transform: translateX(3px);
}

/* Stato pressed per mantenere consistenza durante pressioni prolungate */
.btn-stchannel-secondary:active:focus,
.btn-stchannel-secondary.pressed {
  color: var(--st-dark, #0a0a0a) !important;
  background: var(--st-primary, #00ff9d) !important;
  border-color: var(--st-green-neon, #00ff41) !important;
  box-shadow: 
    inset 0 0 0 2px var(--st-green-neon, #00ff41),
    0 0 15px rgba(0, 255, 157, 0.6),
    0 0 30px rgba(0, 255, 157, 0.4) !important;
}

/* Effetto glow al focus per accessibilità */
.btn-stchannel-primary:focus,
.btn-stchannel-secondary:focus,
.btn-stchannel-ghost:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--st-primary-rgb), 0.3);
}

/* Stato disabled */
.btn-stchannel-primary:disabled,
.btn-stchannel-secondary:disabled,
.btn-stchannel-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Integrazione con il sistema di animazione esistente */
.btn-custom-animate {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Effetti intensificati per tutti i pulsanti con animazione */
.btn-custom-animate.btn-stchannel-primary:hover,
.btn-custom-animate.btn-stchannel-secondary:hover,
.btn-custom-animate.btn-stchannel-ghost:hover {
  animation: none; /* Rimuovi l'animazione di base durante l'hover */
}

/* Effetto CTA principale ancora più drammatico */
.btn-custom-animate.btn-stchannel-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 0 30px rgba(0, 255, 157, 0.9),
    0 0 60px rgba(0, 255, 157, 0.7),
    0 0 90px rgba(0, 255, 157, 0.5),
    0 0 120px rgba(0, 255, 157, 0.3);
}

/* Effetto specifico per portfolio button con alone neon intensificato */
.portfolio-button.btn-stchannel-secondary {
  position: relative;
  overflow: hidden;
}

.portfolio-button.btn-stchannel-secondary:hover {
  animation: none; /* Rimuovi l'animazione di base durante l'hover */
  box-shadow: 
    inset 0 0 0 50px var(--st-primary, #00ff9d),
    0 0 25px rgba(0, 255, 157, 0.8),
    0 0 50px rgba(0, 255, 157, 0.6),
    0 0 75px rgba(0, 255, 157, 0.4),
    0 0 100px rgba(0, 255, 157, 0.2);
  border-color: var(--st-green-neon, #00ff41);
  text-shadow: none;
  transform: translateY(-3px) scale(1.02);
}

.portfolio-button.btn-stchannel-secondary:active {
  transform: translateY(-1px) scale(1.01);
  color: var(--st-dark, #0a0a0a) !important; /* Mantiene il testo scuro per contrasto */
  background: var(--st-primary, #00ff9d) !important; /* Sfondo pieno per visibilità - !important per sovrascrivere */
  border-color: var(--st-green-neon, #00ff41) !important;
  box-shadow: 
    inset 0 0 0 2px var(--st-green-neon, #00ff41), /* Bordo interno per rinforzo */
    0 0 15px rgba(0, 255, 157, 0.6),
    0 0 30px rgba(0, 255, 157, 0.4) !important;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 4px 6px rgba(0, 255, 157, 0.1),
      0 0 10px rgba(0, 255, 157, 0.2);
  }
  50% {
    box-shadow: 
      0 10px 25px rgba(0, 255, 157, 0.15),
      0 0 20px rgba(0, 255, 157, 0.4),
      0 0 40px rgba(0, 255, 157, 0.2);
  }
}
/* === chatcontainercomponent_chat-style.css === */
/* 
 * Chat-Style - Stili generali dell'interfaccia chat
 * @copyright [2024] [chat-ida/saintchannel]
 * @author [Dario Santocanale]
 * @version 1.0.1
 */

/* Variabili globali per il layout mobile in fullscreen */
:root {
  --chat-input-wrapper-height: 150px; /* Altezza dell'area input per il calcolo dei margini */
}

/* ======================================
   1. STRUTTURA BASE
   ====================================== */

/* Reset CSS per la chat */
.chat-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ======================================
   2. CONTENITORE PRINCIPALE
   ====================================== */
.chat-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--chat-container-height);
  background-color: var(--chat-bg);
  border-radius: var(--chat-border-radius);
  font-family: var(--chat-font-family);
  font-size: var(--chat-font-size);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--chat-border);
  box-shadow: var(--chat-box-shadow);
  color: var(--chat-text);
}

/* Layout body */
.chat-container .chat-body {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: calc(100% - var(--chat-header-height));
  min-height: var(--chat-container-min-height);
}

/* ======================================
   3. HEADER
   ====================================== */
/* Gli stili dell'header sono stati spostati nel file chat-header.css */

/* ======================================
   4. AREA PRINCIPALE (MESSAGGI CHAT)
   ====================================== */
.chat-container .chat-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  position: relative;
}

.chat-container .chat-messages-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  background-color: var(--chat-bg);
}

/* Gli stili specifici dei messaggi sono stati spostati nel file chat-messages.css */

/* ======================================
   5. SEZIONE INPUT
   ====================================== */
/* Le regole relative all'input sono state spostate nel file chat-input.css */

/* ======================================
   6. TABS
   ====================================== */
.chat-container .chat-tabs-container {
  width: 100%;
  flex: 0 0 auto;
  border-top: 1px solid var(--chat-border);
}

.chat-container .chat-tabs-bottom {
  background-color: var(--chat-bg-dark);
  border: none;
  display: flex;
  flex-direction: column;
}

.chat-container .chat-tab-buttons {
  display: flex;
  align-items: center;
  height: var(--chat-tabs-height);
  padding: 0 0.5rem;
  overflow-x: auto;
  background-color: var(--chat-bg-dark);
  border-bottom: none;
}

.chat-container .chat-tab-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--chat-spacing-md) var(--chat-spacing-lg);
  background: none;
  color: var(--chat-text);
  font-size: 0.9rem;
  border: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--chat-transition);
  justify-content: center;
  position: relative;
  font-weight: 500;
  border-top-right-radius: var(--chat-border-radius-lg);
  border-top-left-radius: var(--chat-border-radius-lg);
}

.chat-container .chat-tab-button.active {
  color: var(--chat-bg-dark);
  background-color: var(--chat-primary);
  border-top-right-radius: var(--chat-border-radius-lg);
  border-top-left-radius: var(--chat-border-radius-lg);
}

.chat-container .chat-tab-button:hover:not(.active) {
  background-color: var(--chat-bg-hover);
}

.chat-container .chat-tab-button svg {
  width: 16px;
  height: 16px;
}

.chat-container .chat-tab-content {
  height: var(--chat-tabs-content-height);
  overflow-y: auto;
  transition: height 0.3s ease;
  flex: 1;
  background-color: var(--chat-bg);
  overflow: hidden;
}

.chat-container .chat-tab-pane {
  display: none;
  padding: var(--chat-spacing-md);
  overflow-y: auto;
  height: 100%;
}

.chat-container .chat-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Preset messages */
.chat-container .chat-chat-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--chat-spacing-sm);
}

.chat-container .chat-preset-button {
  background-color: var(--chat-bg-light);
  color: var(--chat-text);
  border: 1px solid var(--chat-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: var(--chat-font-size-sm);
  cursor: pointer;
  transition: var(--chat-transition);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.chat-container .chat-preset-button:hover {
  background-color: var(--chat-bg-hover);
  border-color: var(--chat-primary);
  color: var(--chat-primary);
}

/* ======================================
   7. COMPONENTE ALLEGATO
   ====================================== */
.chat-container .sct-chat-attachment {
  display: flex;
  background-color: var(--chat-bg-light);
  border: 1px solid var(--chat-border);
  border-radius: var(--chat-border-radius);
  padding: var(--chat-spacing-md);
  margin: var(--chat-spacing-sm) 0;
  transition: var(--chat-transition);
  max-width: 100%;
  width: 100%;
}

/* Gli stili per allegati nei messaggi sono stati spostati nel file chat-messages.css */

.chat-container .sct-chat-attachment:hover {
  background-color: var(--chat-bg-hover);
  border-color: var(--chat-primary);
}

.chat-container .sct-chat-attachment-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--chat-primary-light);
  border-radius: var(--chat-border-radius);
  margin-right: var(--chat-spacing-md);
}

.chat-container .sct-chat-attachment-icon svg {
  width: 24px;
  height: 24px;
  color: var(--chat-primary);
}

.chat-container .sct-chat-attachment-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.chat-container .sct-chat-attachment-title {
  font-weight: 600;
  margin-bottom: var(--chat-spacing-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-container .sct-chat-attachment-meta {
  font-size: var(--chat-font-size-xs);
  color: var(--chat-text-muted);
}

.chat-container .sct-chat-attachment-actions {
  display: flex;
  align-items: center;
  margin-left: var(--chat-spacing-md);
  flex-shrink: 0;
}

.chat-container .sct-chat-attachment-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--chat-text);
  cursor: pointer;
  transition: var(--chat-transition);
  padding: 0;
  margin-left: var(--chat-spacing-sm);
}

.chat-container .sct-chat-attachment-btn:hover {
  background-color: var(--chat-bg-hover);
  color: var(--chat-primary);
}

.chat-container .sct-chat-attachment-btn svg {
  width: 18px;
  height: 18px;
}

/* ======================================
   8. RESPONSIVE
   ====================================== */
@media (max-width: 768px) {
  .chat-container .chat-body {
    flex-direction: column;
  }
  
  /* Gli stili responsive dell'header sono stati spostati nel file chat-header.css */
  
  /* Gli stili per i messaggi responsive sono stati spostati nel file chat-messages.css */
  
  .chat-container .chat-tab-button span {
    display: none;
  }
  
  .chat-container .chat-tab-button {
    padding: var(--chat-spacing-sm) var(--chat-spacing-md);
  }
  
  .chat-container .chat-preset-button {
    width: 100%;
  }
}

/* ======================================
   9. SCROLLBAR PERSONALIZZATA
   ====================================== */

/* Le scrollbar specifiche per i messaggi sono state spostate nel file chat-messages.css */

.chat-container .chat-tab-pane::-webkit-scrollbar {
  width: 6px;
}

.chat-container .chat-tab-pane::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container .chat-tab-pane::-webkit-scrollbar-thumb {
  background-color: var(--chat-primary);
  border-radius: 20px;
  border: 2px solid var(--chat-bg-light);
}

/* Modalità a schermo intero */
.chat-container.chat-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--chat-zindex-fullscreen);
  width: 100% !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  border-radius: 0;
  border: none;
}

.chat-fullscreen-active {
  overflow: hidden;
}

/* Stile posizioni del container */
.chat-position-embed {
  position: relative;
  height: 100%;
}

.chat-position-fixed {
  position: fixed;
  bottom: var(--chat-spacing-xl);
  right: var(--chat-spacing-xl);
  width: 380px;
  height: 600px;
  z-index: var(--chat-zindex-fixed);
  box-shadow: var(--chat-box-shadow);
  border-radius: var(--chat-border-radius);
  overflow: hidden;
}

.chat-position-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  max-height: 700px;
  z-index: var(--chat-zindex-fixed);
  border-radius: var(--chat-border-radius-lg) var(--chat-border-radius-lg) 0 0;
  box-shadow: var(--chat-box-shadow-top);
  overflow: hidden;
}

.chat-position-icon-left {
  position: fixed;
  bottom: var(--chat-spacing-xl);
  left: var(--chat-spacing-xl);
  z-index: var(--chat-zindex-fixed);
}

/* Nuovo stile per posizione centrata */
.chat-position-center {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  display: block;
  box-shadow: var(--chat-box-shadow);
  border-radius: var(--chat-border-radius);
  overflow: hidden;
}

/* Classe aggiuntiva per la centratura completa */
.centered-chat-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Il layout fullscreen dei messaggi è stato spostato nel file chat-messages.css */

/* ======================================
   SPINNER DI CARICAMENTO
   ====================================== */
.chat-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--chat-spinner-overlay-bg);
  opacity: var(--chat-spinner-overlay-opacity);
  z-index: var(--chat-zindex-spinner); /* Valore z-index molto elevato per garantire visibilità */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.chat-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.chat-spinner {
  width: var(--chat-spinner-size);
  height: var(--chat-spinner-size);
  border: var(--chat-spinner-border-width) solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--chat-spinner-color);
  animation: chat-spinner-rotation 1s linear infinite;
}

@keyframes chat-spinner-rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======================================
   10. FIX PER LAYOUT MOBILE IN FULLSCREEN
   ====================================== */

/* Fix generale per assicurare che l'ultimo messaggio sia sempre visibile */
@media (max-width: 768px) {
  .chat-container.chat-fullscreen .chat-body {
    padding-bottom: var(--chat-input-wrapper-height);
  }
  
  /* Quando la modalità fullscreen viene attivata, scrolliamo automaticamente in fondo */
  .chat-container.chat-fullscreen .chat-messages {
    scroll-padding-bottom: calc(var(--chat-input-wrapper-height) + 20px);
  }
}
/* === chatheadercomponent.css === */
/* 
 * Chat Header - Stili specifici per l'intestazione della chat
 * @copyright [2024] [chat-ida/saintchannel]
 * @author [Dario Santocanale]
 * @version 1.0.0
 *
 * Questo file contiene tutti gli stili relativi all'header della chat,
 * inclusi logo, selettori di provider/modello e menu dropdown.
 */

/* ======================================
   1. STRUTTURA BASE DELL'HEADER
   ====================================== */

/* Container principale dell'header */
.chat-container #chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--chat-spacing-lg);
  background-color: var(--chat-bg-dark);
  color: var(--chat-text);
  height: var(--chat-header-height);
  min-height: var(--chat-header-height);
  max-height: var(--chat-header-height);
  width: 100%;
  border-bottom: 1px solid var(--chat-border);
  flex: 0 0 auto;
  z-index: var(--chat-zindex-fixed);
}

/* ======================================
   2. LOGO
   ====================================== */

/* Container del logo */
.chat-container #ida-logo {
  flex-shrink: 0;
  width: 50px;
  height: 20px;
}

.chat-container #ida-logo svg {
  width: 100%;
  height: auto;
  fill: var(--chat-text);
}

/* ======================================
   3. CONTATORE TOKEN
   ====================================== */

/* Container principale del contatore token */
.chat-container #chat-token-display {
  margin: 0 var(--chat-spacing-md);
  font-size: var(--chat-font-size-sm);
  color: var(--chat-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--chat-spacing-xs) var(--chat-spacing-sm);
  background-color: var(--chat-bg-light);
  border-radius: var(--chat-border-radius);
  min-width: 180px;
  gap: var(--chat-spacing-xs);
  opacity: 0.85;
}

/* Container dei contatori individuali */
.chat-container .token-counters {
  display: flex;
  gap: var(--chat-spacing-md);
  align-items: center;
}

/* Stile per i singoli contatori */
.chat-container .token-item {
  display: flex;
  gap: var(--chat-spacing-xs);
  font-size: var(--chat-font-size-xs);
  color: var(--chat-text);
}

/* Etichetta dei token */
.chat-container .token-label {
  color: var(--chat-text-muted);
  font-size: 0.9em;
}

/* Pulsante per ricalcolare i token */
.token-recalculate-btn {
  background: transparent;
  color: #666;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--chat-spacing-xs);
  transition: var(--chat-transition);
}

.token-recalculate-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #000;
  transform: rotate(30deg);
}

.token-recalculate-btn svg {
  width: 14px;
  height: 14px;
}

.dark-mode .token-recalculate-btn {
  color: #aaa;
}

.dark-mode .token-recalculate-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ======================================
   4. CONTENITORE OPZIONI
   ====================================== */

.chat-container #chat-options {
  display: flex;
  align-items: center;
  gap: var(--chat-spacing-sm);
}

/* ======================================
   5. SELETTORE PROVIDER/MODELLO
   ====================================== */

/* Container dei selettori */
.chat-container .chat-provider-selector,
.chat-container .chat-model-selector {
  position: relative;
}

/* Selettori dropdown */
.chat-container .chat-provider-select,
.chat-container .chat-model-select {
  padding: 0.3rem 1rem 0.3rem 0.5rem;
  border: 1px solid var(--chat-border);
  border-radius: var(--chat-border-radius);
  background-color: var(--chat-primary-light);
  font-size: var(--chat-font-size-xs);
  color: var(--chat-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  min-width: 120px;
}

/* Opzioni dei selettori */
.chat-container .chat-provider-select option,
.chat-container .chat-model-select option {
  background-color: var(--chat-bg-dark);
  color: var(--chat-text);
  padding: var(--chat-spacing-sm);
}

/* Focus sui selettori */
.chat-container .chat-provider-select:focus,
.chat-container .chat-model-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Freccia dropdown per i selettori */
.chat-container .chat-provider-selector::after,
.chat-container .chat-model-selector::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--chat-text);
  pointer-events: none;
}

/* ======================================
   6. PULSANTI HEADER
   ====================================== */

.chat-container .chat-icon-button {
  width: var(--chat-button-size);
  height: var(--chat-button-size);
  background-color: transparent;
  color: var(--chat-text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--chat-transition);
  position: relative;
  overflow: hidden;
}

.chat-container .chat-icon-button:hover {
  background-color: var(--chat-bg-hover);
  color: var(--chat-primary);
}

/* Stile specifico per il pulsante fullscreen - migliora feedback visivo */
.chat-container .fullscreen-button {
  position: relative;
}

/* Aggiunge un effetto di highlight quando attivo, particolarmente utile su mobile */
.chat-container .fullscreen-button.active {
  background-color: var(--chat-primary);
  color: var(--chat-bg-dark);
  transform: scale(1.05);
}

/* Effetto ripple per tocchi su mobile */
.chat-container .fullscreen-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

/* Attiva effetto ripple quando si preme il pulsante su mobile */
.chat-container .fullscreen-button:active::after {
  animation: ripple 0.5s ease-out;
}

/* Animazione per supportare la transizione fullscreen */
.chat-container.fullscreen-transitioning {
  transition: all 0.4s ease-out !important;
}

@keyframes ripple {
  0% { transform: scale(0, 0); opacity: 0.7; }
  20% { transform: scale(20, 20); opacity: 0.5; }
  100% { opacity: 0; transform: scale(40, 40); }
}

.chat-container .chat-icon-button svg {
  width: var(--chat-button-icon-size);
  height: var(--chat-button-icon-size);
  stroke: currentColor;
  fill: none;
}

/* ======================================
   7. MENU DROPDOWN
   ====================================== */

.chat-container .chat-menu {
  position: absolute;
  top: var(--chat-header-height);
  right: 0;
  background-color: var(--chat-bg-light);
  border: 1px solid var(--chat-border);
  border-radius: var(--chat-border-radius);
  width: var(--chat-dropdown-width);
  box-shadow: var(--chat-box-shadow-light);
  z-index: var(--chat-zindex-dropdown);
  overflow: hidden;
  transform-origin: top right;
  transition: var(--chat-transition);
}

.chat-container .chat-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--chat-spacing-md) var(--chat-spacing-lg);
  border-bottom: 1px solid var(--chat-border);
}

.chat-container .chat-menu-title {
  margin: 0;
  font-size: var(--chat-font-size-lg);
  font-weight: 500;
}

.chat-container .chat-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.chat-container .chat-menu-body {
  padding: var(--chat-spacing-md);
}

.chat-container .chat-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--chat-spacing-sm);
}

.chat-container .chat-menu-button {
  display: flex;
  align-items: center;
  gap: var(--chat-spacing-md);
  background: none;
  border: none;
  padding: var(--chat-spacing-md);
  text-align: left;
  border-radius: var(--chat-border-radius);
  cursor: pointer;
  transition: var(--chat-transition);
  font-size: 0.95rem;
  color: var(--chat-text);
}

.chat-container .chat-menu-button:hover {
  background-color: var(--chat-bg-hover);
}

/* ======================================
   8. RESPONSIVE
   ====================================== */

@media (max-width: 768px) {
  .chat-container #chat-header {
    padding: 0 var(--chat-spacing-md);
  }
  
  .chat-container #chat-token-display {
    position: absolute;
    top: var(--chat-header-height);
    right: var(--chat-spacing-md);
    background-color: var(--chat-bg-dark);
    border: 1px solid var(--chat-border);
    z-index: var(--chat-zindex-dropdown);
    transform: scale(0.8);
    transform-origin: top right;
    display: none;
  }
  
  .chat-container #chat-token-display.show-mobile {
    display: flex;
  }
  
  .chat-container .chat-provider-select,
  .chat-container .chat-model-select {
    max-width: 100px;
    min-width: auto;
    font-size: var(--chat-font-size-sm);
    padding: 5px 20px 5px 8px;
  }
}

/* === chatmessagescomponent.css === */
/* 
 * Chat Messages - Stili specifici per i messaggi della chat
 * @copyright [2024] [chat-ida/saintchannel]
 * @author [Dario Santocanale]
 * @version 1.0.1
 *
 * Questo file contiene tutti gli stili relativi ai messaggi della chat,
 * inclusi i tipi di messaggio, animazioni e indicatori di digitazione.
 * Updated: 2026-01-18 - Fixed gallery navigation with pixel-based scrolling
 */

/* ======================================
   1. STRUTTURA BASE DEI MESSAGGI
   ====================================== */

/* Container principale dei messaggi */
.chat-container .chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--chat-message-spacing);
  display: flex;
  flex-direction: column;
  gap: var(--chat-message-gap);
  scroll-behavior: smooth;
}

/* Stile base per tutti i messaggi */
.chat-container .message {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  max-width: 80%;
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: var(--chat-border-radius);
  animation: messageFadeIn 0.3s ease forwards;
}

/* Contenuto del messaggio */
.chat-container .message-content {
  word-break: break-word;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Timestamp del messaggio */
.chat-container .message-timestamp {
  font-size: var(--chat-font-size-xs);
  color: var(--chat-text-muted);
  margin-bottom: 0.25rem;
  text-align: right;
}

/* ======================================
   2. TIPI DI MESSAGGIO
   ====================================== */

/* Messaggio dell'utente */
.chat-container .message.user {
  background-color: var(--chat-message-user-bg);
  color: var(--chat-message-user-text);
  border: 1px solid var(--chat-message-user-border);
  border-radius: var(--chat-border-radius) 0 var(--chat-border-radius) var(--chat-border-radius);
  align-self: flex-end;
  margin-left: auto;
}

.chat-container .message.user p {
  /* Questa regola contrasta eventuali stili ereditati sul sito */
  color: var(--chat-message-user-text);
}

/* Messaggio dell'assistente */
.chat-container .message.assistant {
  background-color: var(--chat-message-assistant-bg);
  color: var(--chat-message-assistant-text);
  border: 1px solid var(--chat-message-assistant-border);
  border-radius: 0 var(--chat-border-radius) var(--chat-border-radius) var(--chat-border-radius);
  align-self: flex-start;
  margin-right: auto;
  box-shadow: var(--chat-box-shadow-input);
}

.chat-container .message.assistant p {
  /* Questa regola contrasta eventuali stili ereditati sul sito */
  color: var(--chat-message-assistant-text);
}

.chat-container .message.assistant .message-timestamp {
  text-align: left;
}

/* Messaggio di sistema */
.chat-container .message.system {
  background-color: var(--chat-message-system-bg);
  color: var(--chat-message-system-text);
  border: 1px solid var(--chat-message-system-border);
  max-width: 90%;
  align-self: center;
  text-align: center;
  border-radius: var(--chat-border-radius);
}

/* Notifiche in chat */
.chat-container .message.notification {
  max-width: 90%;
  align-self: center;
  border-radius: var(--chat-border-radius);
  padding: 1rem 1.25rem;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: notificationSlideIn 0.4s ease-out forwards;
}

.chat-container .message.notification .notification-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.chat-container .message.notification .notification-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chat-container .message.notification .notification-body {
  line-height: 1.6;
  text-align: left;
}

.chat-container .message.notification .notification-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.chat-container .message.notification .notification-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.chat-container .message.notification .notification-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tipi di notifica */
.chat-container .message.notification.error {
  background-color: #fee;
  border: 2px solid #fcc;
  color: #c33;
}

.chat-container .message.notification.error .notification-btn {
  background-color: #c33;
  color: white;
}

.chat-container .message.notification.error .notification-btn:hover {
  background-color: #a22;
}

.chat-container .message.notification.warning {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
}

.chat-container .message.notification.warning .notification-btn {
  background-color: #ffc107;
  color: #212529;
}

.chat-container .message.notification.warning .notification-btn:hover {
  background-color: #e0a800;
}

.chat-container .message.notification.info {
  background-color: #d1ecf1;
  border: 2px solid #17a2b8;
  color: #0c5460;
}

.chat-container .message.notification.info .notification-btn {
  background-color: #17a2b8;
  color: white;
}

.chat-container .message.notification.info .notification-btn:hover {
  background-color: #138496;
}

.chat-container .message.notification.success {
  background-color: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
}

.chat-container .message.notification.success .notification-btn {
  background-color: #28a745;
  color: white;
}

.chat-container .message.notification.success .notification-btn:hover {
  background-color: #218838;
}

/* Animazione notifica */
@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================
   3. MESSAGGIO DI BENVENUTO
   ====================================== */

.chat-container .chat-welcome {
  text-align: center;
  padding: 1.5rem;
  color: var(--chat-text);
  max-width: 90%;
  width: 500px;
  margin: auto;
  background-color: var(--chat-bg-light);
  border: 1px solid var(--chat-border);
  border-radius: var(--chat-border-radius);
  box-shadow: var(--chat-box-shadow-light);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.chat-container .chat-welcome h2 {
  font-size: var(--chat-font-size-xl);
  margin-bottom: var(--chat-spacing-md);
  color: var(--chat-primary);
}

.chat-container .chat-welcome p {
  margin-bottom: var(--chat-spacing-md);
  line-height: 1.5;
}

.chat-container .chat-provider-info {
  font-size: var(--chat-font-size-sm);
  opacity: 0.7;
  margin-top: var(--chat-spacing-md);
  padding-top: 0.5rem;
  border-top: 1px solid var(--chat-border);
}

/* ======================================
   4. INDICATORE DI DIGITAZIONE
   ====================================== */

.chat-container .typing-message {
  padding-top: var(--chat-spacing-md) !important;
  padding-bottom: var(--chat-spacing-md) !important;
}

.chat-container .typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--chat-spacing-xs);
}

/* Inline label dentro l'indicatore (usato durante streaming SSE).
   Manteniamo i 3 span dot come primi in DOM per non rompere :nth-child(1..3),
   ma spostiamo visivamente la label all'inizio così i puntini restano alla fine. */
.chat-container .typing-indicator .typing-indicator-label {
  order: -1;
  margin-right: 6px;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  opacity: 1;
  animation: none;
  color: var(--chat-text-muted);
  font-size: var(--chat-font-size-sm);
  line-height: 1.3;
  white-space: normal;
  flex: 1 1 auto;
  min-width: 0;
}

.chat-container .typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--chat-primary);
  border-radius: 50%;
  opacity: 0.7;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.chat-container .typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.chat-container .typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-container .typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-container .typing-label {
  margin-top: 0.35rem;
  font-size: var(--chat-font-size-sm);
  color: var(--chat-text-muted);
  line-height: 1.3;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

/* ======================================
   4b. STREAMING UX - PUNTINI INLINE E BLOCCO INTERAZIONI
   ====================================== */

/* Puntini animati mostrati alla fine del testo durante streaming */
.streaming-dots-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.streaming-dots-inline .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--chat-primary, #007bff);
  border-radius: 50%;
  opacity: 0.7;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.streaming-dots-inline .dot:nth-child(1) {
  animation-delay: 0s;
}

.streaming-dots-inline .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.streaming-dots-inline .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Classe per bloccare le interazioni sul messaggio durante streaming */
.streaming-blocked {
  pointer-events: none;
  user-select: none;
}

.streaming-blocked a,
.streaming-blocked button,
.streaming-blocked [role="button"],
.streaming-blocked .action-button {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ======================================
   5. ALLEGATI NEI MESSAGGI
   ====================================== */

.chat-container .sct-chat-attachment.in-message {
  max-width: 320px;
  margin-top: 5px;
  margin-bottom: 5px;
  align-self: flex-start;
}

.chat-container .message.user .sct-chat-attachment.in-message {
  align-self: flex-end;
  margin-left: auto;
}

/* ======================================
   6. ANIMAZIONI
   ====================================== */

@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================
   7. LAYOUT SPECIFICO PER FULLSCREEN
   ====================================== */

.chat-container .chat-fullscreen #chat-messages {
  height: calc(100% - var(--chat-header-height) - var(--chat-height-component)) !important;
  margin-bottom: var(--chat-height-component) !important;
  padding-bottom: calc(var(--chat-height-component) + 20px) !important;
}

/* ======================================
   8. SCROLLBAR PERSONALIZZATA
   ====================================== */

.chat-container .chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-container .chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container .chat-messages::-webkit-scrollbar-thumb {
  background-color: var(--chat-primary);
  border-radius: 20px;
  border: 2px solid var(--chat-bg);
}

/* ======================================
   9. RESPONSIVE
   ====================================== */

@media (max-width: 768px) {
  .chat-container .message {
    max-width: 90%;
  }
  
  .chat-container .chat-welcome {
    width: 90%;
    padding: var(--chat-spacing-md);
  }
  
  /* Fix per l'ultimo messaggio che viene nascosto dall'area input in modalità fullscreen */

  
  /* Assicura che ci sia spazio sufficiente per vedere l'ultimo messaggio */
  .chat-container.chat-fullscreen #chat-messages {
    padding-bottom: calc(var(--chat-input-wrapper-height, 80px) + 60px) !important;
  }
}

/* ======================================
   8. MESSAGE GALLERY (IMAGES-TOP)
   ====================================== */

/* Container gallery - ZERO margini/padding per evitare spazi extra */
.chat-container .message-gallery {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--chat-border-radius);
  overflow: hidden;
  position: relative;
  display: block;
  white-space: normal; /* Reset pre-wrap ereditato da message-content */
}

/* Assicura che la gallery non erediti spazi da elementi parent */
.chat-container .message-content > .message-gallery {
  margin-top: 20px !important;
  margin-bottom: 0.5rem !important;
}

/* Su mobile riduci lo spazio sopra e sotto */
@media (max-width: 480px) {
  .chat-container .message-content > .message-gallery {
    margin-top: 8px !important;
    margin-bottom: 0.25rem !important;
  }
}

/* Rimuovi margini da p vuoti o contenenti solo gallery */
.chat-container .message-content > p:empty,
.chat-container .message-content > p:has(> .message-gallery:only-child) {
  display: contents; /* Rende il p trasparente al layout */
  margin: 0;
  padding: 0;
}

/* Gallery container con navigazione */
.chat-container .gallery-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--chat-border-radius);
  background-color: transparent;
  /* Altezza minima proporzionale: slide quadrate max 250px */
  min-height: min(250px, 70vw);
}

/* Single image: aspect ratio 16:9, centrata */
.chat-container .gallery-container.gallery-single {
  aspect-ratio: 16 / 9;
  min-height: auto;
  max-width: 520px;
  margin: 0 auto;
}

/* Track scorrevole che contiene le immagini */
.chat-container .gallery-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  gap: 8px;
  padding: 0;
  white-space: normal; /* Reset pre-wrap ereditato da message-content */
}

/* Multi-image mode: immagini QUADRATE max 250x250 */
.chat-container .gallery-container:not(.gallery-single) .gallery-slide {
  flex: 0 0 auto;
  width: min(250px, 70vw);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

/* Single image mode: 16:9, con max-width (centrata) */
.chat-container .gallery-container.gallery-single .gallery-track {
  justify-content: center;
}

.chat-container .gallery-container.gallery-single .gallery-slide {
  flex: 0 0 auto;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.chat-container .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene aspect ratio e riempie il container quadrato */
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 6px;
}

.chat-container .gallery-single .gallery-image {
  border-radius: 0;
}

.chat-container .gallery-image:hover {
  opacity: 0.95;
}

/* Placeholder durante caricamento */
.chat-container .gallery-image-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: galleryShimmer 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chat-text-muted);
  font-size: 0.85rem;
}

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

/* Navigazione frecce - Design moderno */
.chat-container .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 1;
  pointer-events: auto;
}

/* SVG arrow icons dentro le frecce */
.chat-container .gallery-nav::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #333;
  border-bottom: 2.5px solid #333;
  display: block;
}

.chat-container .gallery-prev::before {
  transform: rotate(135deg);
  margin-left: 3px;
}

.chat-container .gallery-next::before {
  transform: rotate(-45deg);
  margin-right: 3px;
}

.chat-container .gallery-nav:hover {
  background-color: var(--chat-primary, #007bff);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chat-container .gallery-nav:hover::before {
  border-color: white;
}

.chat-container .gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.chat-container .gallery-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background-color: rgba(200, 200, 200, 0.7);
}

.chat-container .gallery-prev {
  left: 6px;
}

.chat-container .gallery-next {
  right: 6px;
}

/* Indicatori (dots) */
.chat-container .gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 3px 8px;
}

.chat-container .gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.chat-container .gallery-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.chat-container .gallery-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Single image mode (no navigation) */
.chat-container .gallery-single .gallery-nav,
.chat-container .gallery-single .gallery-dots {
  display: none;
}

/* Counter badge */
.chat-container .gallery-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 5;
}

/* ======================================
   GALLERY SKELETON LOADER (STREAMING)
   ====================================== */

/* Skeleton con GIF animata durante caricamento streaming */
.chat-container .gallery-skeleton {
  margin: 12px 0;
}

.chat-container .gallery-skeleton .gallery-container {
  position: relative;
  width: min(250px, 70vw);
  min-height: 250px;
  background: #f5f5f5;
  border-radius: var(--chat-border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-container .gallery-skeleton .gallery-container.gallery-single {
  width: min(100%, 520px);
  min-height: auto;
  aspect-ratio: 16 / 9;
}

.chat-container .gallery-skeleton-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--chat-border-radius);
}

.chat-container .gallery-skeleton-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--chat-border-radius);
  color: #999;
  font-size: 0.9rem;
}

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

/* ====================================== */

/* Lightbox overlay */
.chat-gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.chat-gallery-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.chat-gallery-lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.chat-gallery-lightbox .lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Skeleton GIF singola (non dentro carosello) */
.chat-container .gallery-skeleton-single {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--chat-border-radius);
  background-color: transparent;
}

.chat-container .gallery-skeleton-single .gallery-skeleton-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive gallery */
@media (max-width: 480px) {
  /* Su mobile ridimensiona ma mantieni quadrato, max 180x180 */
  .chat-container .gallery-container:not(.gallery-single) .gallery-slide {
    flex: 0 0 auto;
    width: min(180px, 70vw);
    aspect-ratio: 1 / 1;
  }
  
  /* Container mobile: adatta altezza a 70vw per quadrato */
  .chat-container .gallery-container:not(.gallery-single) {
    min-height: min(180px, 70vw);
  }
  
  /* Skeleton GIF singola su mobile */
  .chat-container .gallery-skeleton-single {
    max-width: 100%;
  }
  
  .chat-container .gallery-nav {
    width: 30px;
    height: 30px;
  }
  
  .chat-container .gallery-nav::before {
    width: 8px;
    height: 8px;
    border-width: 2px;
  }
  
  .chat-container .gallery-dots {
    padding: 3px 8px;
  }
  
  .chat-container .gallery-dot {
    width: 6px;
    height: 6px;
  }
}

/* ======================================
   GALLERY - FIX FLICKERING SU SCHERMI PICCOLI
   ====================================== */

/* Stabilizza la gallery container per prevenire flickering */
.chat-container .gallery-container {
  /* GPU layer stabile per evitare repaint */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Contenimento solo paint per evitare overlap sul layout */
  contain: paint;
}

/* Ottimizzazioni per chat floating/embedded piccola */
.chat-container:not(.chat-fullscreen) .gallery-container {
  /* Forza GPU compositing stabile */
  isolation: isolate;
}

.chat-container:not(.chat-fullscreen) .gallery-track {
  /* Rimuovi will-change dinamico su viewports piccoli - causa flickering */
  will-change: auto;
  /* Transizione più fluida con meno repaint */
  transform: translateZ(0);
}

/* Quando la chat è stretta (floating mode tipico) */
@media (max-width: 400px), (max-height: 500px) {
  .chat-container .gallery-container {
    /* Layout più stabile senza collassare l'altezza */
    contain: paint;
  }
  
  .chat-container .gallery-track {
    /* Transizione più corta per evitare frame drops */
    transition: transform 0.25s ease-out;
    /* Rimuovi will-change che può causare flickering */
    will-change: auto;
  }
  
  .chat-container .gallery-slide {
    /* Riduci complessità rendering */
    transform: translateZ(0);
  }
  
  .chat-container .gallery-image {
    /* Evita animazioni che causano reflow */
    transition: none;
  }
  
  .chat-container .gallery-nav {
    /* Rendering più leggero */
    transition: opacity 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  }
  
  .chat-container .gallery-nav:hover {
    /* Disabilita scale su mobile per evitare reflow */
    transform: translateY(-50%);
  }
}

/* Fix specifico per chat embedded con dimensioni fisse piccole */
.chat-container[style*="width"][style*="height"] .gallery-container,
.chat-container.embedded .gallery-container {
  contain: strict;
}

.chat-container[style*="width"][style*="height"] .gallery-track,
.chat-container.embedded .gallery-track {
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* === chatinputcomponent.css === */
/* 
 * Chat Input - Stili unificati per l'area di input della chat
 * @copyright [2024] [chat-ida/saintchannel]
 * @author [Dario Santocanale]
 * @version 1.2.0
 *
 * Questo file consolida tutte le regole CSS relative all'area di input della chat
 * per garantire una visualizzazione coerente su tutti i dispositivi, inclusi i dispositivi mobili.
 */

/* ======================================
   1. STRUTTURA BASE DELL'INPUT
   ====================================== */

/* Container principale per l'input della chat */
.chat-container .chat-input-wrapper {
    position: sticky;
    bottom: 0;
    z-index: var(--chat-zindex-fixed);
    width: 100%;
    background-color: var(--chat-bg);
    border-top: 1px solid var(--chat-border);
    box-shadow: var(--chat-box-shadow-top);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex: 0 0 auto;
    transform: translateZ(0); /* Previene il flicker durante lo scroll */
    -webkit-transform: translateZ(0);
    will-change: transform; /* Ottimizzazione per browser mobili */
    backface-visibility: hidden;
}

/* Container flex per organizzare gli elementi dell'input */
.chat-container .chat-input-flex-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: var(--chat-input-padding-y) var(--chat-input-padding-x);
    background-color: var(--chat-bg);
    gap: var(--chat-spacing-md);
    border-top: none !important;
    box-sizing: border-box;
    margin: 0;
    position: relative; /* Aggiungiamo position relative per posizionare meglio i figli */
}

/* Container per il textarea dell'input */
.chat-container .sct-chat-input-container {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

/* Textarea dell'input */
.chat-container .sct-chat-input {
    width: 100%;
    min-height: 40px;
    max-height: 100px;
    padding: var(--chat-input-padding-y) var(--chat-input-padding-x);
    padding-right: 50px; /* Aggiungiamo spazio a destra per evitare che il testo finisca sotto i pulsanti */
    border: 1px solid var(--chat-border);
    border-radius: var(--chat-border-radius-xl);
    background-color: var(--chat-bg-light);
    color: var(--chat-text);
    font-family: var(--chat-font-family);
    font-size: var(--chat-font-size);
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--chat-box-shadow-inset);
}

.chat-container .sct-chat-input:focus {
    outline: none;
    border-color: var(--chat-primary);
    box-shadow: 0 0 0 1px var(--chat-primary-light), var(--chat-box-shadow-inset);
}

.chat-container .sct-chat-input::placeholder {
    color: var(--chat-text-muted);
}

/* Contatore caratteri */
.chat-container .sct-chat-char-counter {
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-size: var(--chat-font-size-xs);
    color: var(--chat-text-muted);
    background-color: transparent;
    padding: 2px 5px;
    border-radius: 10px;
    pointer-events: none;
}

/* ======================================
   2. PULSANTI DELL'INPUT
   ====================================== */

/* Container dei pulsanti di azione */
.chat-container .sct-chat-input-actions {
    display: flex;
    flex: 0 0 auto;
    gap: var(--chat-spacing-sm);
    align-items: center;
    justify-content: flex-end;
    min-width: 88px; /* Riduciamo lo spazio minimo */
    margin-left: auto; /* Forza lo spostamento all'estrema destra */
    position: relative; /* Per il posizionamento del dropdown */
}

/* Stile base dei pulsanti */
.chat-container .sct-chat-input-button {
    width: var(--chat-button-size);
    height: var(--chat-button-size);
    min-width: var(--chat-button-size); /* Previene il rimpicciolimento */
    min-height: var(--chat-button-size); /* Previene il rimpicciolimento */
    border-radius: var(--chat-button-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--chat-bg-light);
    color: var(--chat-text);
    border: 1px solid var(--chat-border);
    cursor: pointer;
    transition: var(--chat-transition);
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    box-shadow: var(--chat-box-shadow-input);
    position: relative; /* Importante per il posizionamento delle icone */
    overflow: visible; /* Assicura che l'icona non venga tagliata */
}

/* Hover effect sui pulsanti */
.chat-container .sct-chat-input-button:hover {
    background-color: var(--chat-bg-hover);
    color: var(--chat-primary);
    transform: translateY(-2px);
    box-shadow: var(--chat-box-shadow-hover);
}

/* Animazione pressione pulsanti */
.chat-container .sct-chat-input-button:active {
    transform: translateY(0);
}

/* Stile specifico per il pulsante invia */
.chat-container .sct-chat-send-button {
    background-color: var(--chat-primary);
    color: var(--chat-bg-dark);
    border: none;
}

.chat-container .sct-chat-send-button:hover {
    background-color: var(--chat-primary);
    opacity: 0.9;
    color: var(--chat-bg-dark);
}

/* Input file nascosto */
.chat-container .sct-chat-attachment-button input[type="file"] {
    display: none;
}

/* ======================================
   3. ICONE NEI PULSANTI
   ====================================== */

/* Stile base delle icone - REVISIONE COMPLETA */
.chat-container .sct-chat-input-button svg,
.chat-container .sct-chat-input-button [data-chat-icon] {
    width: var(--chat-button-icon-size);
    height: var(--chat-button-icon-size);
    display: block;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Posizionamento assoluto al centro */
}

/* Fallback per icone vecchie */
.chat-container .sct-chat-input-button i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

/* Icone SVG direttamente nel background per garantire la visibilità */
.chat-container .sct-chat-attachment-button:after,
.chat-container .sct-chat-emoji-button:after,
.chat-container .sct-chat-send-button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--chat-button-icon-size);
    height: var(--chat-button-icon-size);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Icona allegato - versione chiara */
.chat-container .sct-chat-attachment-button:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-paperclip' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 3a2.5 2.5 0 0 1 5 0v9a1.5 1.5 0 0 1-3 0V5a.5.5 0 0 1 1 0v7a.5.5 0 0 0 1 0V3a1.5 1.5 0 1 0-3 0v9a2.5 2.5 0 0 0 5 0V5a.5.5 0 0 1 1 0v7a3.5 3.5 0 1 1-7 0z'/%3E%3C/svg%3E");
}

/* Icona emoji - versione chiara */
.chat-container .sct-chat-emoji-button:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-emoji-smile' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='M4.285 9.567a.5.5 0 0 1 .683.183A3.498 3.498 0 0 0 8 11.5a3.498 3.498 0 0 0 3.032-1.75.5.5 0 1 1 .866.5A4.498 4.498 0 0 1 8 12.5a4.498 4.498 0 0 1-3.898-2.25.5.5 0 0 1 .183-.683M7 6.5C7 7.328 6.552 8 6 8s-1-.672-1-1.5S5.448 5 6 5s1 .672 1 1.5m4 0c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5S9.448 5 10 5s1 .672 1 1.5'/%3E%3C/svg%3E");
}

/* Icona invia - versione scura */
.chat-container .sct-chat-send-button:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23001a1a' class='bi bi-send-fill' viewBox='0 0 16 16'%3E%3Cpath d='M15.964.686a.5.5 0 0 0-.65-.65L.767 5.855H.766l-.452.18a.5.5 0 0 0-.082.887l.41.26.001.002 4.995 3.178 3.178 4.995.002.002.26.41a.5.5 0 0 0 .886-.083zm-1.833 1.89L6.637 10.07l-.215-.338a.5.5 0 0 0-.154-.154l-.338-.215 7.494-7.494 1.178-.471z'/%3E%3C/svg%3E");
}

/* ======================================
   4. LAYOUT GENERALE DELLA CHAT PER L'INPUT
   ====================================== */

/* Struttura principale della chat */
.chat-container .chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Container dei messaggi */
.chat-container .chat-messages-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Area dei messaggi */
.chat-container .chat-messages {
    height: calc(100% - var(--chat-input-height));
    overflow-y: auto !important;
    box-sizing: content-box;
    margin-right: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    scrollbar-gutter: stable both-edges !important;
    padding-right: var(--chat-message-spacing) !important;
    padding-left: var(--chat-message-spacing) !important;
    padding-top: var(--chat-message-spacing) !important;
    padding-bottom: var(--chat-message-spacing) !important;
    overscroll-behavior: contain !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Questo assicura che l'ultimo messaggio abbia sempre spazio sotto */
.chat-container .chat-messages:after {
    content: '';
    display: block;
    height: var(--chat-spacing-md);
    flex-shrink: 0;
}

/* ======================================
   5. VISIBILITÀ DELLA SCROLLBAR
   ====================================== */

/* Stile scrollbar per WebKit (Chrome, Safari, Edge) */
.chat-container .chat-main .chat-messages-wrapper .chat-messages::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.chat-container .chat-main .chat-messages-wrapper .chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    margin: 5px !important;
}

.chat-container .chat-main .chat-messages-wrapper .chat-messages::-webkit-scrollbar-thumb {
    background: var(--chat-primary) !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    background-clip: content-box !important;
    min-height: 30px !important;
}

.chat-container .chat-main .chat-messages-wrapper .chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--chat-primary-hover) !important;
}

/* Supporto per Firefox */
.chat-container .chat-main .chat-messages-wrapper .chat-messages {
    scrollbar-width: auto !important;
    scrollbar-color: var(--chat-primary) rgba(0, 0, 0, 0.1);
}

/* Supporto per Internet Explorer */
.chat-container .chat-main .chat-messages-wrapper .chat-messages {
    -ms-overflow-style: auto !important;
}

/* ======================================
   6. DROPDOWN MENU NELL'AREA INPUT
   ====================================== */

/* Menu toggle button */
.chat-container .sct-chat-menu-toggle {
    position: relative;
    z-index: 50;
    background-color: var(--chat-bg-light);
    transition: background-color 0.2s ease;
}

.chat-container .sct-chat-menu-toggle:hover {
    background-color: var(--chat-bg-hover);
}

.chat-container .sct-chat-menu-toggle.active {
    background-color: var(--chat-primary);
    color: #fff;
}

/* Menu dropdown container */
.chat-container .sct-chat-input-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 5px);
    right: 8px;
    width: var(--chat-dropdown-width);
    background-color: var(--chat-bg);
    border: 1px solid var(--chat-border);
    border-radius: var(--chat-border-radius);
    box-shadow: var(--chat-box-shadow-light);
    z-index: var(--chat-zindex-dropdown);
    overflow: hidden;
    display: none; /* Nascosto di default */
    flex-direction: column;
    padding: 4px 0;
    transform-origin: bottom right;
    transform: scale(0.95);
    opacity: 0;
    transition: var(--chat-transition-fast);
}

.chat-container .sct-chat-input-dropdown-menu.open {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Elementi del menu */
.chat-container .sct-chat-input-dropdown-item {
    display: flex;
    align-items: center;
    padding: var(--chat-spacing-sm) var(--chat-spacing-md);
    cursor: pointer;
    color: var(--chat-text);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: var(--chat-font-size);
    transition: background-color 0.2s;
}

.chat-container .sct-chat-input-dropdown-item:hover {
    background-color: var(--chat-bg-hover);
}

.chat-container .sct-chat-input-dropdown-item:active {
    background-color: var(--chat-bg-active);
}

/* Icone negli elementi del menu */
.chat-container .sct-chat-input-dropdown-item [data-chat-icon],
.chat-container .sct-chat-input-dropdown-item svg {
    width: 18px;
    height: 18px;
    margin-right: var(--chat-spacing-md);
    flex-shrink: 0;
}

.chat-container .sct-chat-input-dropdown-item-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======================================
   7. MODALITÀ FULLSCREEN
   ====================================== */

/* Fix per l'input in modalità fullscreen */
.chat-container .chat-fullscreen .chat-input-wrapper {
    position: fixed !important; /* Forza fixed in modalità fullscreen */
    bottom: 0;
    background-color: var(--chat-bg);
    width: 100%;
    box-sizing: border-box;
    z-index: var(--chat-zindex-fullscreen);
    border-top: 1px solid var(--chat-border); /* Aggiunge separazione visiva */
    left: 0;
    right: 0;
    padding-bottom: env(safe-area-inset-bottom, var(--chat-spacing-md));
}

/* ======================================
   8. NUOVA STRUTTURA INPUT (SOLUZIONE FIX SPAZIO VUOTO)
   ====================================== */

/* Stile principale per il container di input - SOLUZIONE SPAZIO VUOTO */
.chat-container .chat-input-container {
    display: flex;
    align-items: center;
    padding: var(--chat-input-padding-y) var(--chat-input-padding-x);
    background-color: var(--chat-bg);
    border-top: 1px solid var(--chat-border);
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: var(--chat-zindex-fixed);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    margin-top: 0; /* Elimina qualsiasi margine superiore */
    margin-bottom: 0; /* Elimina qualsiasi margine inferiore */
}

/* Area di input principale */
.chat-container .chat-input-area {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-right: var(--chat-spacing-md);
}

/* Pulsanti di azione */
.chat-container .chat-action-button {
    width: var(--chat-button-size);
    height: var(--chat-button-size);
    min-width: var(--chat-button-size);
    min-height: var(--chat-button-size);
    border-radius: var(--chat-button-radius);
    background-color: var(--chat-bg-light);
    color: var(--chat-text);
    border: 1px solid var(--chat-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--chat-transition);
    position: relative;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

/* Contenitore dei pulsanti di azione */
.chat-container .chat-buttons-container {
    display: flex;
    gap: var(--chat-spacing-sm);
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
}

/* Menu dropdown nella nuova struttura */
.chat-container .chat-dropdown-menu {
    position: absolute;
    bottom: 55px; /* Posizionato sopra i pulsanti */
    right: 10px;
    width: var(--chat-dropdown-width);
    background-color: var(--chat-bg);
    border: 1px solid var(--chat-border);
    border-radius: var(--chat-border-radius-lg);
    box-shadow: var(--chat-box-shadow-light);
    z-index: var(--chat-zindex-popover);
    overflow: hidden;
    display: none;
    transform-origin: bottom right;
    transform: scale(0.95);
    opacity: 0;
    transition: var(--chat-transition-fast);
}

.chat-container .chat-dropdown-menu.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Elementi del menu dropdown */
.chat-container .chat-dropdown-item {
    display: flex;
    align-items: center;
    padding: var(--chat-spacing-md) var(--chat-spacing-lg);
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--chat-text);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: var(--chat-font-size);
}

/* ======================================
   9. MEDIA QUERIES PER DISPOSITIVI MOBILI
   ====================================== */

@media (max-width: 767px) {
    .chat-container .chat-input-flex-container {
        padding: var(--chat-input-mobile-padding-y) var(--chat-input-mobile-padding-x);
        gap: var(--chat-spacing-sm);
    }
    
    .chat-container .sct-chat-input {
        padding: var(--chat-input-mobile-padding-y) var(--chat-input-mobile-padding-x);
        min-height: 36px;
        font-size: 16px; /* Previene lo zoom automatico su iOS */
    }
    
    .chat-container .sct-chat-input-button {
        width: var(--chat-button-mobile-size);
        height: var(--chat-button-mobile-size);
        min-width: var(--chat-button-mobile-size);
        min-height: var(--chat-button-mobile-size);
    }

    .chat-container .sct-chat-input-button svg,
    .chat-container .sct-chat-input-button [data-chat-icon] {
        width: var(--chat-button-icon-mobile-size);
        height: var(--chat-button-icon-mobile-size);
    }
    
    .chat-container .sct-chat-input-dropdown-menu {
        width: var(--chat-dropdown-mobile-width);
    }
    
    /* Nasconde il contatore di caratteri */
    .chat-container .sct-chat-char-counter {
        display: none;
    }
    
    /* CORREZIONE: L'input rimane all'interno del container della chat quando non è in fullscreen */
    .chat-container .chat-input-wrapper {
        position: sticky; /* Non fisso di default */
        bottom: 0;
        transform: translateZ(0); /* Previene il flicker durante lo scroll */
        -webkit-transform: translateZ(0);
        will-change: transform; /* Ottimizzazione per browser mobili */
        z-index: var(--chat-zindex-fixed); /* Sopra gli altri elementi ma sotto il fullscreen */
    }
    
    /* Chat input container per mobile */
    .chat-container .chat-input-container {
        padding: var(--chat-input-mobile-padding-y) var(--chat-input-mobile-padding-x);
    }
    
    .chat-container .chat-action-button {
        width: var(--chat-button-mobile-size);
        height: var(--chat-button-mobile-size);
        min-width: var(--chat-button-mobile-size);
        min-height: var(--chat-button-mobile-size);
    }
    
    /* Garantisce che l'input sia sempre visibile anche su mobile in modalità fullscreen */
    .chat-container .chat-fullscreen .chat-input-container {
        position: fixed !important;
        padding-bottom: calc(var(--chat-input-mobile-padding-y) + env(safe-area-inset-bottom, 0px));
        box-shadow: var(--chat-box-shadow-top);
    }
    
    /* Aggiunge spazio extra sotto i messaggi in fullscreen su mobile */
    .chat-container .chat-fullscreen .chat-messages {
        padding-bottom: calc(var(--chat-message-spacing) + 60px) !important;
    }
    
    /* Correzione specifica per la modalità fullscreen su mobile */
    .chat-container.chat-fullscreen .chat-input-wrapper {
        position: fixed !important;
        bottom: env(safe-area-inset-bottom, 0);
        left: 0;
        right: 0;
        z-index: calc(var(--chat-zindex-fixed) + 1);
    }

    .chat-container.chat-fullscreen .chat-messages-wrapper {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
    }
}

/* Stile specifico per iPhone e dispositivi iOS */
@media screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 0) {
    /* Safari e Chrome su iOS */
    .chat-container .chat-input-wrapper {
        bottom: 0;
        margin-bottom: 0; /* Supporto per notch degli iPhone */
    }
    
    /* Assicura che l'input rimanga visibile quando appare la tastiera */
    .chat-container .chat-input-wrapper.keyboard-active {
        position: absolute;
    }
}

/* Aggiungere questa classe quando la tastiera è attiva su mobile (potrebbe richiedere JS per il toggle) */
.chat-container.keyboard-active .chat-input-wrapper {
    position: absolute !important;
    bottom: 0 !important;
}
/* === chatmessagesmarkdowncss.css === */

                /* ======================================
                   MARKDOWN STYLING COMPATTO - ChatMessages
                   ====================================== */

                /* Titoli con colore primario della chat */
                .chat-container .message-content h1,
                .chat-container .message-content h2,
                .chat-container .message-content h3,
                .chat-container .message-content h4,
                .chat-container .message-content h5,
                .chat-container .message-content h6 {
                    color: var(--chat-primary);
                    font-weight: 700;
                    margin: 0.6em 0 0.2em 0;
                    line-height: 1.2;
                    font-family: inherit;
                }

                .chat-container .message-content h1 { font-size: 1.6em; }
                .chat-container .message-content h2 { font-size: 1.4em; }
                .chat-container .message-content h3 { font-size: 1.2em; }
                .chat-container .message-content h4 { font-size: 1.1em; }
                .chat-container .message-content h5 { font-size: 1em; }
                .chat-container .message-content h6 { font-size: 0.9em; }

                /* Paragrafi compatti */
                .chat-container .message-content p {
                    margin: 0.3em 0;
                    line-height: 1.4;
                }

                /* Primo paragrafo dopo titolo: nessun margine sopra */
                .chat-container .message-content h1 + p,
                .chat-container .message-content h2 + p,
                .chat-container .message-content h3 + p,
                .chat-container .message-content h4 + p,
                .chat-container .message-content h5 + p,
                .chat-container .message-content h6 + p {
                    margin-top: 0;
                }

                /* Testo enfatizzato */
                .chat-container .message-content strong {
                    color: var(--chat-primary);
                    font-weight: 700;
                }

                .chat-container .message-content em {
                    color: var(--chat-primary);
                    opacity: 0.8;
                    font-style: italic;
                }

                /* Liste compatte */
                .chat-container .message-content ul,
                .chat-container .message-content ol {
                    margin: 0.4em 0;
                    padding-left: 1.2em;
                }

                .chat-container .message-content li {
                    margin: 0.1em 0;
                    line-height: 1.3;
                }

                /* Lista con primo elemento: nessun margine sopra */
                .chat-container .message-content ul:first-child,
                .chat-container .message-content ol:first-child {
                    margin-top: 0;
                }

                /* Blockquotes */
                .chat-container .message-content blockquote {
                    border-left: 3px solid var(--chat-primary);
                    background: var(--chat-primary-light, rgba(0, 123, 255, 0.1));
                    margin: 0.4em 0;
                    padding: 0.4em 0.8em;
                    border-radius: 4px;
                    font-style: italic;
                }

                /* Codice inline */
                .chat-container .message-content code {
                    background: var(--chat-bg-light, #f8f9fa);
                    color: var(--chat-text, inherit);
                    padding: 0.1em 0.3em;
                    border-radius: 3px;
                    font-family: 'Courier New', Monaco, monospace;
                    font-size: 0.85em;
                    border: 1px solid var(--chat-border, #e9ecef);
                }

                /* Blocchi di codice */
                .chat-container .message-content pre {
                    background: var(--chat-bg-light, #f8f9fa);
                    border: 1px solid var(--chat-border, #e9ecef);
                    border-radius: 6px;
                    padding: 0.6em;
                    margin: 0.4em 0;
                    overflow-x: auto;
                }

                .chat-container .message-content pre code {
                    background: none;
                    padding: 0;
                    border: none;
                    border-radius: 0;
                }

                /* Link */
                .chat-container .message-content a {
                    color: var(--chat-primary);
                    text-decoration: none;
                    font-weight: 500;
                    transition: all 0.2s ease;
                }

                .chat-container .message-content a:hover {
                    color: var(--chat-primary-hover, var(--chat-primary));
                    text-decoration: underline;
                }

                /* ======================================
                   INDICATORE STREAMING - USA IL SISTEMA ESISTENTE
                   ====================================== */
                
                /* Il sistema .typing-indicator è già definito in chat-messages.css
                   Non serve duplicare qui - usiamo quello esistente */

                /* Responsive per mobile */
                @media (max-width: 768px) {
                    .chat-container .message-content h1 { font-size: 1.4em; }
                    .chat-container .message-content h2 { font-size: 1.2em; }
                    .chat-container .message-content h3 { font-size: 1.1em; }
                }
            
/* === stchannel_components-css.css === */
/*
 * CSS Componenti SaintChannel - Design Ultra Moderno
 * Stile futuristico con gradienti avanzati e animazioni spettacolari
 */

/* === VARIABILI CSS AVANZATE === */
:root {
    /* Palette verde ultramoderna */
    --primary-green: #00ff88;
    --secondary-green: #00cc6a;
    --accent-green: #39ff8b;
    --dark-green: #004d24;
    --neon-green: #00ff41;
    --bright-green: #7fff00;
    
    /* Gradienti spettacolari */
    --gradient-hero: linear-gradient(135deg, #00ff88 0%, #00cc6a 25%, #39ff8b 50%, #00ff41 100%);
    --gradient-card: linear-gradient(145deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 204, 106, 0.08) 100%);
    --gradient-hover: linear-gradient(135deg, #00ff41 0%, #00ff88 50%, #39ff8b 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d1117 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-border: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    
    /* Colori base ultra-dark */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-surface: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-accent: #f0f6fc;
    --text-muted: #666666;
    
    /* Design system avanzato */
    --border-radius-xs: 4px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-full: 50%;
    
    /* Sistema di ombre spettacolari */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 32px 128px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 255, 136, 0.4);
    --shadow-neon: 0 0 60px rgba(0, 255, 65, 0.5);
    --shadow-intense: 0 0 80px rgba(0, 255, 136, 0.6);
    
    /* Sistema di animazioni */
    --transition-instant: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Tipografia moderna */
    --font-display: 'Inter', 'SF Pro Display', system-ui, sans-serif;
    --font-body: 'Inter', 'SF Pro Text', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

/* === RESET E BASE ULTRA-MODERNI === */
* {
    box-sizing: border-box;
}

.services-grid, 
.portfolio-gallery, 
.blog-carousel {
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

/* === BACKGROUND ANIMATO === */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(57, 255, 139, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -10px) scale(1.05); }
    66% { transform: translate(20px, 10px) scale(0.95); }
}

/* === TITOLI ULTRA-MODERNI === */
.ultra-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ultra-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--gradient-hero);
    border-radius: 3px;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
    100% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.8); }
}

.ultra-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* === COMPONENTE SERVICES GRID SPETTACOLARE === */
.services-grid {
    padding: 6rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.service-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    height: 100%;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    border-radius: inherit;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-border);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-intense), var(--shadow-xl);
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: iconRotate 4s linear infinite;
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--bg-primary);
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient-hero);
    color: var(--bg-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: var(--shadow-glow);
}

.service-cta {
    background: var(--gradient-hero);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left var(--transition-fast);
}

.service-cta:hover::before {
    left: 100%;
}

.service-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-intense), var(--shadow-lg);
    color: var(--bg-primary);
    text-decoration: none;
}

.service-cta i {
    transition: transform var(--transition-normal);
}

.service-cta:hover i {
    transform: translateX(5px);
}

/* === GRID RESPONSIVE AVANZATO === */
.services-grid .row {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

@media (max-width: 1200px) {
    .services-grid .row {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 2.5rem;
        transform: none !important;
    }
    
    .service-card:hover {
        transform: translateY(-10px) !important;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .services-grid .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 2rem;
    }
}

/* === COMPONENTE PORTFOLIO GALLERY SPETTACOLARE === */
.portfolio-gallery {
    padding: 6rem 0;
    position: relative;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid transparent;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-border);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.portfolio-item {
    margin-bottom: 3rem;
    transition: all var(--transition-normal);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    position: relative;
    height: 400px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-border);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-intense), var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: var(--text-primary);
    width: 100%;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-category {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tech-tag {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* === COMPONENTE BLOG CAROUSEL SPETTACOLARE === */
.blog-carousel {
    padding: 6rem 0;
    position: relative;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-border);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.blog-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 2rem;
}

.blog-category {
    background: var(--gradient-hero);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-date {
    font-weight: 500;
}

/* === ANIMAZIONI GLOBALI === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === SWIPER OVERRIDES === */
.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-green);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-green);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .portfolio-gallery,
    .blog-carousel {
        padding: 4rem 0;
    }
    
    .project-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .ultra-title {
        font-size: 2.5rem;
    }
    
    .ultra-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .project-card {
        height: 300px;
    }
    
    .project-overlay {
        padding: 1.5rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    .services-grid,
    .portfolio-gallery,
    .blog-carousel {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .project-card,
    .blog-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ============================================
   BLOG CAROUSEL COMPONENT - ULTRA MODERN DESIGN
   ============================================ */

/* Stili specifici per Swiper nel blog carousel */
.blog-carousel-wrapper {
    position: relative;
    padding: 2rem 0;
    background: transparent !important;
}

.blog-swiper {
    background: transparent !important;
    padding: 0;
}

.blog-swiper .swiper-wrapper {
    background: transparent !important;
}

.blog-swiper .swiper-slide {
    height: 480px; /* Aumentata altezza */
    display: flex;
    background: transparent !important;
}

.blog-swiper .ultra-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-swiper .ultra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 255, 136, 0.03) 0%,
            rgba(0, 204, 106, 0.02) 50%,
            rgba(57, 255, 139, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.blog-swiper .ultra-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow:
        0 10px 40px rgba(0, 255, 136, 0.15),
        0 0 30px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(0, 255, 136, 0.2);
}

.blog-swiper .ultra-card:hover::before {
    opacity: 1;
}

.blog-swiper .ultra-card-image {
    height: 280px; /* Aumentata da 200px a 280px */
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog-swiper .ultra-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.blog-swiper .ultra-card:hover .ultra-card-image img {
    transform: scale(1.05);
}

.blog-swiper .ultra-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.blog-swiper .ultra-badge {
    background: rgba(0, 255, 136, 0.9);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

.blog-swiper .ultra-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.blog-swiper .ultra-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.blog-swiper .meta-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(0, 255, 136, 0.8);
    margin-right: 1.25rem;
    font-weight: 500;
}

.blog-swiper .meta-item:last-child {
    margin-right: 0;
}

.blog-swiper .meta-item i {
    color: rgba(0, 255, 136, 0.6);
    margin-right: 0.5rem;
}

.blog-swiper .ultra-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    line-height: 1.3;
}

.blog-swiper .ultra-card-title a:hover {
    color: rgba(0, 255, 136, 0.9);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.blog-swiper .ultra-card-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-swiper .author-info {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(0, 255, 136, 0.7);
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-swiper .author-info i {
    color: rgba(0, 255, 136, 0.5);
}

.blog-swiper .ultra-btn {
    border-color: rgba(0, 255, 136, 0.4);
    color: rgba(0, 255, 136, 0.9);
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-swiper .ultra-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.6);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.blog-swiper .ultra-nav-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.8), rgba(0, 204, 106, 0.8));
    border-radius: 50%;
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.blog-swiper .ultra-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 136, 1), rgba(0, 204, 106, 1));
}

.blog-swiper .ultra-nav-btn::after {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.blog-swiper .ultra-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 255, 136, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.blog-swiper .ultra-pagination .swiper-pagination-bullet-active {
    background: rgba(0, 255, 136, 0.8);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* Responsive Design per Blog Carousel */
@media (max-width: 768px) {
    .blog-carousel-wrapper {
        padding: 1rem 0;
    }
    
    .blog-swiper .swiper-slide {
        height: 420px; /* Altezza ridotta su tablet */
    }
    
    .blog-swiper .ultra-card-content {
        padding: 1.25rem;
    }
    
    .blog-swiper .ultra-card-image {
        height: 220px; /* Ridotta da 280px a 220px */
    }
    
    .blog-swiper .ultra-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .blog-swiper .ultra-nav-btn::after {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .blog-swiper .swiper-slide {
        height: 380px;
    }
    
    .blog-swiper .ultra-card-content {
        padding: 1rem;
    }
    
    .blog-swiper .ultra-card-image {
        height: 200px; /* Mobile ancora più compatta */
    }
}

/* Fine Blog Carousel Component */

/* ============================================
   BLOG GALLERY CAROUSEL - NUOVO DESIGN CON IMMAGINI COMPLETE
   ============================================ */

.blog-carousel-gallery {
    position: relative;
}

.blog-gallery-wrapper {
    position: relative;
    padding: 2rem 0;
    background: transparent !important;
}

.blog-gallery-swiper {
    background: transparent !important;
    padding: 0;
}

.blog-gallery-swiper .swiper-wrapper {
    background: transparent !important;
}

.blog-gallery-swiper .swiper-slide {
    height: auto; /* Altezza automatica per adattarsi al contenuto */
    display: flex;
    background: transparent !important;
}

.blog-gallery-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.blog-gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 255, 136, 0.03) 0%,
            rgba(0, 204, 106, 0.02) 50%,
            rgba(57, 255, 139, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.blog-gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow:
        0 10px 40px rgba(0, 255, 136, 0.15),
        0 0 30px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(0, 255, 136, 0.2);
}

.blog-gallery-card:hover::before {
    opacity: 1;
}

/* Immagine con aspect ratio 16:9 che mantiene le proporzioni */
.blog-gallery-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Aspect ratio fisso */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    z-index: 2;
}

.blog-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostra l'immagine completa */
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    background: rgba(0, 0, 0, 0.1); /* Sfondo sottile per contrasto */
}

.blog-gallery-card:hover .blog-gallery-image img {
    transform: scale(1.05);
}

.blog-gallery-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.blog-gallery-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.blog-gallery-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.blog-gallery-title a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    line-height: 1.3;
    font-size: 1.1rem;
}

.blog-gallery-title a:hover {
    color: rgba(0, 255, 136, 0.9);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.blog-gallery-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Navigation Buttons */
.blog-gallery-nav-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.8), rgba(0, 204, 106, 0.8));
    border-radius: 50%;
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.blog-gallery-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 136, 1), rgba(0, 204, 106, 1));
}

.blog-gallery-nav-btn::after {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

/* Pagination */
.blog-gallery-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 255, 136, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.blog-gallery-pagination .swiper-pagination-bullet-active {
    background: rgba(0, 255, 136, 0.8);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-gallery-wrapper {
        padding: 1rem 0;
    }
    
    .blog-gallery-content {
        padding: 1.25rem;
    }
    
    .blog-gallery-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .blog-gallery-nav-btn::after {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .blog-gallery-content {
        padding: 1rem;
    }
    
    .blog-gallery-title a {
        font-size: 1rem;
    }
    
    .blog-gallery-text {
        font-size: 0.9rem;
    }
}

/* Fine Blog Gallery Carousel */

/* === stchannel_blog_article_css.css === */
/* Blog Article V3 Styles */
.blog-article-v3 {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
}

.blog-article-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(131, 58, 180, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.article-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.article-back-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.article-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-tag {
    background: rgba(0, 255, 157, 0.2);
    color: #00ff9d;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 157, 0.3);
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: rgba(0, 255, 157, 0.3);
    color: #00ff9d;
    transform: translateY(-2px);
}

.article-content-wrapper {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: -2rem auto 3rem;
    max-width: 900px;
    overflow: hidden;
}

.article-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.article-body {
    padding: 3rem;
    color: #ffffff;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h1, .article-body h2, .article-body h3 {
    color: #00ff9d;
    margin: 2rem 0 1rem;
}

.article-body h2 {
    font-size: 1.8rem;
    border-left: 4px solid #00ff9d;
    padding-left: 1rem;
}

.article-body h3 {
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.ai-disclosure-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.35);
    border-radius: 10px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.ai-disclosure-notice i {
    color: #00ff9d;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.article-body blockquote {
    background: rgba(0, 255, 157, 0.1);
    border-left: 4px solid #00ff9d;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

/* Generic pre styling */
.article-body pre {
    background: #1e1e1e; /* VS Code dark theme */
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Code blocks SENZA line numbers (versione pulita) */
.article-body .markdown-pre {
    position: relative;
    background: #1e1e1e; /* VS Code dark */
    border-left: 3px solid #007acc; /* VS Code blue accent */
    padding: 1.5rem;
    overflow-x: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-body .markdown-pre code {
    display: block;
    background: transparent;
    color: #d4d4d4; /* VS Code text color */
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre;
    tab-size: 4;
}

/* Rimuovi stili line-number dal JS se presenti */
.article-body .markdown-pre .line-number {
    display: none !important;
}

.article-body .markdown-pre code.has-line-numbers {
    padding-left: 0 !important;
}

.article-body .markdown-pre .code-line {
    display: block;
}

.article-body .markdown-pre .line-content {
    display: inline;
}

/* Inline code (non dentro pre) */
.article-body code:not(.markdown-code) {
    background: rgba(255, 255, 255, 0.1);
    color: #e96900; /* Arancione VS Code per keywords */
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Tabelle markdown */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.article-body table thead tr {
    background: rgba(255, 255, 255, 0.08);
}

.article-body table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.article-body table td {
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

.article-body table tbody tr:last-child td {
    border-bottom: none;
}

.article-body table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Su schermi stretti le tabelle markdown (spesso 3+ colonne) non entrano
   nella larghezza disponibile: invece di tagliare il contenuto, le rendiamo
   scrollabili orizzontalmente mantenendo le colonne leggibili. */
@media (max-width: 768px) {
    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-body table th,
    .article-body table td {
        white-space: nowrap;
    }

    .article-body table::-webkit-scrollbar {
        height: 6px;
    }

    .article-body table::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }
}

.related-posts {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-post-card::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-post-card:hover::before {
    transform: scaleX(1);
}

.related-post-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-post-title {
    color: #00ff9d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.related-post-title:hover {
    color: #00ff9d;
}

.article-nav-bottom {
    text-align: center;
    margin-top: 3rem;
}

.btn-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    color: white;
}

/* Allineato allo stack di pulsanti flottanti sitewide (#st-floating-buttons,
   definito in cookie-consent-new.css: bottom:20px/right:20px, 2 pulsanti da
   50px con gap 10px = 110px di altezza). Questo TOC occupa lo slot superiore
   dello stack, subito sopra il pulsante di condivisione: 20 + 110 (cluster
   sitewide) + 10 (gap) + 50 (share) + 10 (gap) = 200px. */
.floating-toc {
    position: fixed;
    right: 20px;
    bottom: 200px;
    z-index: 1000;
    display: none;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-toc.has-toc {
    display: flex;
}

.floating-toc.visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-toc.stop-at-footer {
    position: absolute;
    bottom: 200px;
}

/* Pulsante "pillola" collassato: stile allineato agli altri pulsanti
   flottanti del sito (.st-float-btn in cookie-consent-new.css) */
.toc-toggle-btn {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--st-primary);
    color: var(--st-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
    transition: all 0.3s ease;
}

.toc-toggle-btn:hover {
    background: linear-gradient(135deg, var(--st-primary) 0%, #00cc7a 100%);
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.5);
}

.floating-toc.expanded .toc-toggle-btn {
    display: none;
}

.toc-panel {
    display: none;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    width: 250px;
    max-height: 60vh;
}

.floating-toc.expanded .toc-panel {
    display: flex;
}

.toc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.toc-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.toc-close-btn:hover {
    color: #fff;
}

/* Corpo scrollabile: l'indice non cresce più oltre il 60% dell'altezza viewport */
.toc-panel-body {
    overflow-y: auto;
    padding-right: 0.25rem;
}

.toc-panel-body::-webkit-scrollbar {
    width: 4px;
}

.toc-panel-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Freccina che segnala altro contenuto scrollabile sotto */
.toc-scroll-hint {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: tocScrollHintBounce 1.4s ease-in-out infinite;
}

.toc-panel.has-more-content .toc-scroll-hint {
    opacity: 1;
}

@keyframes tocScrollHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(4px); }
}

.mobile-toc {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin: 2rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    overflow: hidden;
}

/* Barra sempre visibile e compatta, il contenuto si espande solo su richiesta */
.mobile-toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
}

.mobile-toc-chevron {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s ease;
}

.mobile-toc.expanded .mobile-toc-chevron {
    transform: rotate(180deg);
}

.mobile-toc-body {
    max-height: 0;
    overflow-y: auto;
    padding: 0 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-toc.expanded .mobile-toc-body {
    max-height: 45vh;
    padding: 0 1rem 1rem;
}

@media (max-width: 1200px) {
    /* Sotto i 1200px l'indice "vero" è la barra sticky .mobile-toc: il
       pallino flottante resta visibile (allineato allo stack) ma il click
       scorre fino alla barra e la apre, invece di mostrare il pannello
       desktop (vedi setupTocToggle in blog-article.js). */
    .mobile-toc.has-toc {
        display: block;
    }
}

@media (max-width: 768px) {
    .article-content-wrapper {
        margin: -1rem 1rem 2rem;
    }
    
    .article-body {
        padding: 2rem 1.5rem;
    }
    
    .article-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        min-height: 50vh;
    }
    
    .related-posts {
        padding: 2rem 1.5rem;
    }
    
    .mobile-toc {
        margin: 1rem 0;
        top: 70px;
    }

    .mobile-toc.expanded .mobile-toc-body {
        max-height: 40vh;
    }

    /* Slot dello stack allineato ai pulsanti flottanti sitewide (cluster
       mobile bottom:10px/right:10px, 2 pulsanti da 45px con gap 10px = 100px):
       10 + 100 (cluster) + 10 (gap) + 45 (share) + 10 (gap) = 175px */
    .floating-toc {
        right: 10px;
        bottom: 175px;
    }

    .toc-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .floating-toc.stop-at-footer {
        bottom: 175px;
    }
}

/* Hide any duplicate floating elements */
.floating-share:not(.social-share-component),
#floating-share,
.share-widget:not(.social-share-component),
.floating-action-btn:not(.social-share-component),
.chat-widget.floating,
.notification-widget.floating {
    display: none !important;
}

/* Header numbers styling - numeri negli header con colore primario */
.article-content .header-number {
    color: #00ff9d; /* Primary color */
    font-weight: 700;
    margin-right: 0.3em;
}

/* Liste non ordinate con bullet colorati */
.article-body ul {
    list-style-type: none;
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-body ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
}

.article-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ff9d;
    font-weight: bold;
}

/* Liste ordinate SENZA numerazione automatica */
.article-body ol {
    list-style-type: none;
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-body ol li {
    margin-bottom: 0.5rem;
}

/* === stchannel_modals-css.css === */
/* ═══════════════════════════════════════════════════════════════════════════════
   🎭 MODALI SAINTCHANNEL - Sistema Verde Neon Design
   ═══════════════════════════════════════════════════════════════════════════════ */

/* 🎨 Variabili CSS per Modali - Utilizzo Sistema Unificato */
:root {
    /* Variabili specifiche modali che utilizzano il sistema unificato */
    --st-modal-bg: var(--st-dark-surface);
    --st-modal-border: var(--st-primary);
    --st-modal-border-radius: var(--st-radius-md);
    --st-modal-shadow: var(--st-shadow-primary-lg);
    --st-modal-overlay: rgba(0, 0, 0, 0.8);
    --st-modal-icon-bg: var(--st-gradient-primary);
    --st-modal-header-bg: var(--st-gradient-dark);
}

/* 🌑 Modal Backdrop con Stile SaintChannel */
.modal-backdrop {
    background-color: var(--st-modal-overlay);
    backdrop-filter: blur(5px);
}

/* 📦 Container Principale Modale */
.st-modal-content {
    background: var(--st-modal-bg);
    border: 2px solid var(--st-modal-border);
    border-radius: var(--st-modal-border-radius);
    box-shadow: var(--st-modal-shadow);
    overflow: hidden;
    position: relative;
}

.st-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--st-primary), transparent);
    animation: modalGlow 2s ease-in-out infinite alternate;
}

@keyframes modalGlow {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* 🎯 Header della Modale */
.st-modal-header {
    background: var(--st-modal-header-bg);
    border-bottom: 1px solid rgba(var(--st-primary-rgb), 0.2);
    padding: var(--st-space-xl);
    display: flex;
    align-items: center;
    gap: var(--st-space-md);
    position: relative;
}

.st-modal-icon {
    width: 50px;
    height: 50px;
    background: var(--st-modal-icon-bg);
    border-radius: var(--st-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--st-black);
    flex-shrink: 0;
    box-shadow: var(--st-shadow-primary);
}

.st-modal-title-wrapper {
    flex: 1;
}

.st-modal-title {
    color: var(--st-primary);
    font-weight: var(--st-font-bold);
    font-size: var(--st-text-xl);
    margin: 0;
    text-shadow: 0 0 10px rgba(var(--st-primary-rgb), 0.3);
}

.st-modal-subtitle {
    color: var(--st-text-secondary);
    font-size: var(--st-text-sm);
    margin: var(--st-space-xs) 0 0 0;
    font-style: italic;
}

/* ❌ Pulsante Chiusura Personalizzato */
.st-modal-close {
    background: none;
    border: none;
    color: var(--st-text-secondary);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: var(--st-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--st-transition-normal);
    position: relative;
    overflow: hidden;
}

.st-modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 69, 58, 0.1);
    border-radius: var(--st-radius-full);
    transition: var(--st-transition-normal);
    transform: translate(-50%, -50%);
}

.st-modal-close:hover {
    color: #ff453a;
    transform: rotate(90deg);
}

.st-modal-close:hover::before {
    width: 100%;
    height: 100%;
}

/* 📝 Body della Modale */
.st-modal-body {
    padding: var(--st-space-2xl);
    color: var(--st-text-primary);
    background: var(--st-gradient-dark-card);
}

/* 🎬 Contenitore Video */
.st-video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--st-black);
    border-radius: var(--st-radius-sm);
    border: 1px solid rgba(var(--st-primary-rgb), 0.3);
    overflow: hidden;
    position: relative;
}

.st-video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--st-text-secondary);
}

.st-video-play-icon {
    font-size: 4rem;
    color: var(--st-primary);
    margin-bottom: var(--st-space-md);
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.st-video-text {
    margin: 0;
    font-size: var(--st-text-base);
}

/* 👍 Footer della Modale */
.st-modal-footer {
    background: var(--st-modal-header-bg);
    border-top: 1px solid rgba(var(--st-primary-rgb), 0.2);
    padding: var(--st-space-xl);
    display: flex;
    gap: var(--st-space-md);
    justify-content: flex-end;
}

/* 🔘 Bottoni Modale con Design SaintChannel */
.st-btn-primary {
    background: var(--st-gradient-primary);
    border: none;
    color: var(--st-black);
    font-weight: var(--st-font-semibold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--st-radius-sm);
    transition: var(--st-transition-normal);
    box-shadow: var(--st-shadow-primary);
    position: relative;
    overflow: hidden;
}

.st-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.st-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-glow);
    color: var(--st-black);
    background: linear-gradient(135deg, var(--st-green-neon) 0%, var(--st-primary) 100%);
}

.st-btn-primary:hover::before {
    left: 100%;
}

.st-btn-secondary {
    background: transparent;
    border: 2px solid var(--st-text-muted);
    color: var(--st-text-muted);
    font-weight: var(--st-font-semibold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--st-radius-sm);
    transition: var(--st-transition-normal);
}

.st-btn-secondary:hover {
    background: var(--st-text-muted);
    color: var(--st-white);
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-md);
}

/* ✅ Modale Successo */
.st-modal-success .st-modal-icon-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.st-success-animation {
    margin-bottom: var(--st-space-xl);
}

.st-success-icon {
    font-size: 4rem;
    color: #28a745;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.st-success-message {
    font-size: var(--st-text-lg);
    color: var(--st-text-primary);
    margin: 0;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .st-modal-header {
        padding: var(--st-space-md);
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .st-modal-body {
        padding: var(--st-space-xl);
    }
    
    .st-modal-footer {
        padding: var(--st-space-md);
        flex-direction: column;
    }
    
    .st-modal-footer .btn {
        width: 100%;
        margin-bottom: var(--st-space-sm);
    }
    
    .st-modal-footer .btn:last-child {
        margin-bottom: 0;
    }
    
    .st-video-play-icon {
        font-size: 3rem;
    }
}

/* 🎯 Form styling nelle modali (utilizza contact-form esistente) */
.st-modal-body .contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--st-primary-rgb), 0.3);
    color: var(--st-text-primary);
    border-radius: var(--st-radius-sm);
    padding: 0.75rem;
    transition: var(--st-transition-normal);
}

.st-modal-body .contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--st-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--st-primary-rgb), 0.25);
    color: var(--st-white);
}

.st-modal-body .contact-form .form-label {
    color: var(--st-primary);
    font-weight: var(--st-font-semibold);
    margin-bottom: var(--st-space-sm);
}

/* 🎨 Animazioni di apertura modale */
.modal.fade .modal-dialog {
    transition: transform var(--st-transition-slow), opacity var(--st-transition-slow);
    transform: translate(0, -50px) scale(0.8);
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
}

/* === social_share_component_css.css === */

/* Social Share Component Styles */
.social-share-component {
    position: relative;
    z-index: 1000;
}

/* Floating Position — allineato allo stack di pulsanti flottanti sitewide
   (#st-floating-buttons, in cookie-consent-new.css: bottom:20px/right:20px,
   2 pulsanti da 50px con gap 10px = 110px di altezza). Occupa lo slot subito
   sopra quel cluster: 20 + 110 (cluster) + 10 (gap) = 140px. */
.social-share-floating {
    position: fixed;
    right: 20px;
    bottom: 140px;
    z-index: 1000;
}

/* position:absolute (invece di un layout in-flow) evita che il box del
   pulsante padre si estenda per tutta l'altezza della lista icone anche da
   chiusa (visibility:hidden nasconde solo il contenuto, non la sua area di
   click) — con un box esteso, il padre finirebbe per intercettare i click
   destinati al pallino Indice posizionato subito sopra nello stack. */
.social-share-floating .social-share-buttons {
    position: absolute;
    right: 0;
    bottom: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.social-share-floating.active .social-share-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Stile allineato agli altri pulsanti flottanti del sito (.st-float-btn in
   cookie-consent-new.css) */
.social-share-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--st-primary);
    color: var(--st-primary);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
    transition: all 0.3s ease;
}

.social-share-toggle:hover {
    background: linear-gradient(135deg, var(--st-primary) 0%, #00cc7a 100%);
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.5);
}

/* Inline Position */
.social-share-inline .social-share-buttons {
    display: block;
}

/* Sticky Position */
.social-share-sticky {
    position: sticky;
    top: 20px;
    margin: 20px 0;
}

/* Share Buttons Container */
.social-share-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-share-inline .social-share-items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

/* Share Buttons */
.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--brand-color);
    color: white;
    text-decoration: none;
    border: none;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Labels */
.social-share-inline .social-share-btn {
    width: auto;
    padding: 8px 16px;
    border-radius: 25px;
}

.social-share-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.social-share-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.social-share-inline .social-share-title {
    text-align: left;
    margin-bottom: 10px;
    margin-right: 15px;
    display: inline-block;
}

/* Sizes */
.social-share-small .social-share-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

.social-share-large .social-share-btn {
    width: 55px;
    height: 55px;
    font-size: 20px;
}

/* Animation */
.social-share-animated .social-share-btn:nth-child(1) { animation-delay: 0.1s; }
.social-share-animated .social-share-btn:nth-child(2) { animation-delay: 0.2s; }
.social-share-animated .social-share-btn:nth-child(3) { animation-delay: 0.3s; }
.social-share-animated .social-share-btn:nth-child(4) { animation-delay: 0.4s; }
.social-share-animated .social-share-btn:nth-child(5) { animation-delay: 0.5s; }
.social-share-animated .social-share-btn:nth-child(6) { animation-delay: 0.6s; }
.social-share-animated .social-share-btn:nth-child(7) { animation-delay: 0.7s; }

.social-share-animated.active .social-share-btn {
    animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.copy-notification.show {
    transform: translateX(0);
}

/* Responsive — slot mobile allineato al cluster sitewide (bottom:10px/right:10px,
   2 pulsanti da 45px con gap 10px = 100px): 10 + 100 + 10 = 120px */
@media (max-width: 768px) {
    .social-share-floating {
        right: 10px;
        bottom: 120px;
    }

    .social-share-toggle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .social-share-floating .social-share-buttons {
        bottom: 55px;
    }

    .social-share-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Stop at footer */
.social-share-floating.stop-at-footer {
    position: absolute;
    bottom: 140px;
    top: auto;
}

@media (max-width: 768px) {
    .social-share-floating.stop-at-footer {
        bottom: 120px;
    }
}

/* === stchannel_animated-background-css.css === */
/**
 * StChannel Animated Background - Futuristic Design
 * 
 * Sfondo animato con gradienti, particelle e elementi in movimento
 * Ottimizzato per performance mobile
 * 
 * Richiede: _variables.css caricato prima
 */

/* ========================================
   SFONDO PRINCIPALE ANIMATO
   ======================================== */

.st-animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;
    overflow: hidden;
    background: var(--st-gradient-black);
    pointer-events: none;
}

/* Gradiente di base con animazione lenta */
.st-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        var(--st-black) 0%,
        var(--st-dark) 25%,
        var(--st-dark-surface) 50%,
        var(--st-dark) 75%,
        var(--st-black) 100%
    );
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 50%;
        filter: hue-rotate(5deg);
    }
    50% {
        background-position: 50% 100%;
        filter: hue-rotate(10deg);
    }
    75% {
        background-position: 0% 100%;
        filter: hue-rotate(5deg);
    }
}

/* ========================================
   PARTICELLE FLUTTUANTI
   ======================================== */

.st-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.st-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--st-primary);
    border-radius: var(--st-radius-full);
    opacity: 0;
    animation: particleFloat linear infinite;
    box-shadow: 0 0 6px var(--st-primary);
}

/* Variazioni di particelle */
.st-particle:nth-child(odd) {
    background: var(--st-green-neon);
    box-shadow: 0 0 6px var(--st-green-neon);
    animation-duration: 15s;
}

.st-particle:nth-child(even) {
    background: var(--st-primary-light);
    box-shadow: 0 0 4px var(--st-primary-light);
    animation-duration: 20s;
}

.st-particle:nth-child(3n) {
    width: 3px;
    height: 3px;
    animation-duration: 25s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* ===== PARTICELLE SPECIALI ===== */
.st-particle-large {
    width: 4px !important;
    height: 4px !important;
    opacity: 0.9;
    box-shadow: 0 0 12px var(--st-primary);
}

.st-particle-trail {
    width: 1px !important;
    height: 15px !important;
    background: linear-gradient(180deg, 
        var(--st-primary) 0%, 
        transparent 100%) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ===== PARTICELLE DI SCROLL ===== */
.st-scroll-particle {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 8px;
    background: var(--st-primary);
    border-radius: 50%;
    animation: scrollParticleFlow linear infinite;
    opacity: 0.3; /* Semitrasparenza come richiesto */
    box-shadow: 0 0 8px rgba(var(--st-primary-rgb), 0.5);
    border: 1px solid rgba(var(--st-primary-rgb), 0.3);
}

@keyframes scrollParticleFlow {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(calc(100vh + 20px));
        opacity: 0;
    }
}

/* ========================================
   ONDE LUMINOSE
   ======================================== */

.st-wave {
    position: absolute;
    width: 200%;
    height: 200px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--st-primary-rgb), 0.03),
        transparent
    );
    animation: waveMove 30s linear infinite;
    transform-origin: center;
}

.st-wave:nth-child(1) {
    top: 20%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.st-wave:nth-child(2) {
    top: 60%;
    animation-duration: 35s;
    animation-delay: -15s;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--st-green-neon), 0.02),
        transparent
    );
}

@keyframes waveMove {
    0% {
        transform: translateX(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(100%) rotate(360deg);
    }
}

/* ========================================
   ELEMENTI GEOMETRICI FLUTTUANTI
   ======================================== */

.st-geometric {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--st-primary-rgb), 0.2);
    border-radius: var(--st-radius-sm);
    animation: geometricFloat 40s linear infinite;
    opacity: 0;
}

.st-geometric:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: -10s;
    transform: rotate(45deg);
}

.st-geometric:nth-child(2) {
    top: 70%;
    right: 15%;
    animation-delay: -25s;
    border-radius: var(--st-radius-full);
    width: 30px;
    height: 30px;
}

.st-geometric:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: -35s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
    background: linear-gradient(45deg, transparent, rgba(var(--st-primary-rgb), 0.1));
}

@keyframes geometricFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.8);
    }
    25% {
        opacity: 0.6;
        transform: translateY(-30px) rotate(90deg) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-60px) rotate(180deg) scale(1.2);
    }
    75% {
        opacity: 0.6;
        transform: translateY(-30px) rotate(270deg) scale(1);
    }
}

/* ========================================
   EFFETTO SCANLINE FUTURISTICO
   ======================================== */

.st-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(var(--st-primary-rgb), 0.01) 2px,
        rgba(var(--st-primary-rgb), 0.01) 4px
    );
    animation: scanlineMove 3s linear infinite;
    opacity: 0.3;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

/* ========================================
   OTTIMIZZAZIONI MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Riduce animazioni su mobile per performance */
    .st-bg-gradient {
        animation-duration: 30s; /* Più lento */
    }
    
    .st-particle {
        animation-duration: 25s !important; /* Più lento */
    }
    
    .st-wave {
        animation-duration: 40s !important; /* Più lento */
        height: 100px; /* Più piccole */
    }
    
    .st-geometric {
        animation-duration: 50s; /* Più lento */
        width: 25px; /* Più piccoli */
        height: 25px;
    }
    
    .st-scanlines {
        opacity: 0.1; /* Meno visibili */
    }
    
    /* Ottimizzazioni per particelle di scroll */
    .st-scroll-particle {
        width: 6px;
        height: 6px;
        animation-duration: 10s; /* Più lento su mobile */
    }
}

@media (max-width: 480px) {
    /* Ulteriori ottimizzazioni per schermi molto piccoli */
    .st-particles .st-particle:nth-child(n+6) {
        display: none; /* Meno particelle */
    }
    
    .st-geometric:nth-child(n+3) {
        display: none; /* Meno elementi geometrici */
    }
    
    .st-wave:nth-child(n+2) {
        display: none; /* Meno onde */
    }
}

/* ========================================
   MODALITÀ RISPARMIO ENERGETICO
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .st-animated-background * {
        animation-duration: 60s !important;
        animation-iteration-count: 1 !important;
    }
    
    .st-scanlines {
        display: none;
    }
    
    .st-particles {
        display: none;
    }
}

/* ========================================
   OVERLAY GRADIENTE PER LEGGIBILITÀ
   ======================================== */

.st-content-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(var(--st-black), 0.3) 0%,
        rgba(var(--st-black), 0.1) 50%,
        rgba(var(--st-black), 0.3) 100%
    );
    backdrop-filter: blur(0.5px);
}

/* ========================================
   CONTROLLI DI ATTIVAZIONE
   ======================================== */

/* Classe per attivare lo sfondo animato */
body.st-animated-bg .st-animated-background {
    display: block;
}

body:not(.st-animated-bg) .st-animated-background {
    display: none;
}

/* Variante ridotta per performance */
body.st-animated-bg.st-reduced-motion .st-animated-background .st-particles,
body.st-animated-bg.st-reduced-motion .st-animated-background .st-scanlines {
    display: none;
}

body.st-animated-bg.st-reduced-motion .st-animated-background * {
    animation-duration: 60s !important;
}

/* === stchannel_header-css.css === */
/* Header Styles per StChannel */
.stchannel-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.stchannel-header .navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.stchannel-header .navbar-nav {
    align-items: center;
    text-align: center;
}

.stchannel-header .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    align-self: center;
}

.stchannel-header .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.stchannel-header .navbar-brand:hover {
    transform: scale(1.05);
}

.stchannel-header .brand-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.stchannel-header .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.stchannel-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-2px);
}

.stchannel-header .nav-link.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stchannel-header .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.btn-cta {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

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

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .stchannel-header .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stchannel-header .nav-link {
        margin: 0.25rem 0;
    }

    .stchannel-header .ms-3,.stchannel-header .ms-2 {
        margin-left: 0 !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
        display: flex;
    }

    .stchannel-header .btn, .stchannel-header .ms-2 .sc-auth-login-btn{
        margin: auto;
    }


    .btn-cta {
        width: 100%;
        text-align: center;
    }
}

/* Scrolled State */
.stchannel-header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
}

.stchannel-header.scrolled .navbar {
    padding: 0.5rem 0;
}

/* Hamburger Menu Animato */
.stchannel-header .navbar-toggler {
    width: 50px;
    height: 50px;
    position: relative;
    border: 2px solid #00ff9d;
    border-radius: 12px;
    background: rgba(0, 255, 157, 0.05);
    padding: 0;
    /* La visibilità è gestita da Bootstrap (navbar-expand-lg) + override in coda:
       NON forzare display:block qui, altrimenti l'hamburger appare anche su desktop. */
    transition: all 0.3s ease;
    overflow: visible;
}

.stchannel-header .navbar-toggler:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: #00cc7d;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.stchannel-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 157, 0.25);
    outline: none;
}

/* Linee dell'hamburger */
.stchannel-header .hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #00ff9d;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.stchannel-header .hamburger-line:nth-child(1) {
    top: 11px;
}

/* ============================================================
   Auth Widget
   ============================================================ */

/* Bottone login */
.sc-auth-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--st-primary, #00ff9d);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid var(--st-primary, #00ff9d);
    border-radius: 20px;
    transition: background .2s, color .2s, box-shadow .2s;
    white-space: nowrap;
    line-height: 1;
}
.sc-auth-login-btn:hover {
    background: var(--st-primary, #00ff9d);
    color: #0a0a0a;
    box-shadow: 0 0 12px rgba(0,255,157,.4);
    text-decoration: none;
}
.sc-auth-login-btn i { font-size: .9rem; }

/* Wrapper posizionamento dropdown */
.sc-auth-menu {
    position: relative;
}

/* Avatar circolare - trigger */
.sc-auth-menu__trigger {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--st-primary, #00ff9d);
    background: #1a1a2e;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    display: block;
    flex-shrink: 0;
}
.sc-auth-menu__trigger:hover,
.sc-auth-menu__trigger[aria-expanded="true"] {
    box-shadow: 0 0 0 3px rgba(0,255,157,.25);
    border-color: var(--st-primary, #00ff9d);
}
.sc-auth-menu__trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.sc-auth-menu__trigger span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--st-primary, #00ff9d);
    font-weight: 700;
    font-size: .9rem;
}

/* Pallino premium */
.sc-auth-menu__premium-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #0a0a0a;
    pointer-events: none;
}

/* Dropdown panel */
.sc-auth-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #111;
    border: 1px solid rgba(0,255,157,.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    z-index: 9999;
    padding: 6px 0;
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.sc-auth-menu__dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header utente */
.sc-auth-menu__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 8px;
}
.sc-auth-menu__head-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0,255,157,.4);
}
.sc-auth-menu__head > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}
.sc-auth-menu__head strong {
    color: #fff;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-auth-menu__head small {
    color: rgba(255,255,255,.4);
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-auth-menu__badge {
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .68rem;
    color: #f59e0b;
    font-weight: 600;
}

/* Separatore */
.sc-auth-menu__sep {
    height: 1px;
    background: rgba(255,255,255,.07);
    margin: 4px 0;
}

/* Voci menu */
.sc-auth-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: rgba(255,255,255,.75);
    font-size: .83rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sc-auth-menu__item i {
    width: 16px;
    text-align: center;
    color: var(--st-primary, #00ff9d);
    font-size: .82rem;
    flex-shrink: 0;
}
.sc-auth-menu__item:hover {
    background: rgba(0,255,157,.07);
    color: #fff;
    text-decoration: none;
}
.sc-auth-menu__item--upgrade       { color: #f59e0b; }
.sc-auth-menu__item--upgrade i     { color: #f59e0b; }
.sc-auth-menu__item--logout i      { color: #ef4444; }
.sc-auth-menu__item--logout:hover  { background: rgba(239,68,68,.07); }

/* Mobile */
@media (max-width: 767.98px) {
    /*.sc-auth-login-btn span { display: none; }*/
    .sc-auth-menu__dropdown { right: -8px; min-width: 200px; }
}


.stchannel-header .hamburger-line:nth-child(2) {
    top: 22px;
}

.stchannel-header .hamburger-line:nth-child(3) {
    top: 33px;
}

/* Stato attivo - trasforma in X */
.stchannel-header .navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 23.5px;
    transform: translateX(-50%) rotate(45deg);
}

.stchannel-header .navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-100%);
}

.stchannel-header .navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    top: 23.5px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Effetto glow al click */
.stchannel-header .navbar-toggler[aria-expanded="true"] {
    background: rgba(0, 255, 157, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
}

/* ════════════════════════════════════════════════════════════════
   OVERRIDE FINALI (ex blocco <style> inline di header.php)
   Stanno in coda così vincono la cascade nel bucket "custom CSS"
   (renderCustomCSS viene emesso a fine body, dopo i CSS asset).
   ════════════════════════════════════════════════════════════════ */

/* ── Hamburger: visibile SOLO sotto lg (fix: appariva anche su desktop) ── */
@media (min-width: 992px) {
    .stchannel-header .navbar-toggler { display: none !important; }
}
@media (max-width: 991.98px) {
    .stchannel-header .navbar-toggler { display: block !important; }
}

/* ── Auth Widget: pulsante login "Entra" (stessa altezza del CTA) ─────── */
.sc-auth-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 46px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(0,255,157,.55) !important;
    background: rgba(0,255,157,.06) !important;
    color: rgba(0,255,157,.9) !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}
.sc-auth-login-btn i { font-size: 1rem !important; }
.sc-auth-login-btn:hover {
    border-color: #00ff9d !important;
    color: #00ff9d !important;
    background: rgba(0,255,157,.12) !important;
    box-shadow: 0 0 0 3px rgba(0,255,157,.2) !important;
    text-decoration: none !important;
}

/* Avatar circolare (allineato all'altezza del pill "Entra") */
.sc-auth-menu__trigger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    overflow: visible !important;   /* il badge premium non viene tagliato */
    align-items: center !important;
    justify-content: center !important;
}
.sc-auth-menu__trigger img,
.sc-auth-menu__trigger span { border-radius: 50% !important; }
.sc-auth-menu__trigger span { overflow: hidden !important; }

/* Badge premium: stella dorata in alto a destra */
.sc-auth-menu__premium-dot {
    top: -4px !important;
    right: -4px !important;
    bottom: auto !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    font-style: normal !important;
    font-size: 8px !important;
    color: #0a0a0a !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* ── CTA navbar "Inizia Progetto": testo su due righe, compatto ──────
   Stessa altezza del pulsante "Entra" (46px) così formano una coppia. */
.stchannel-header .nav-cta-btn {
    height: 46px !important;
    padding: 0 16px !important;
    font-size: .8rem !important;
    line-height: 1.05 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    white-space: normal !important;   /* consente le due righe del label */
    text-align: left !important;
    box-sizing: border-box !important;
}
.stchannel-header .nav-cta-btn i { font-size: .95rem !important; margin: 0 !important; flex-shrink: 0; }
.stchannel-header .nav-cta-btn__label { display: inline-block; line-height: 1.05; }

/* ── Voce "Tutorial" evidenziata + animazione neon (header) ─────────
   Colore neon di base così spicca tra le voci bianche + glow pulsante. */
.stchannel-header .nav-link-tutorial {
    color: #00ff9d !important;
    transition: color .25s ease, text-shadow .25s ease !important;
    animation: stTutorialPulse 2.6s ease-in-out infinite !important;
}
.stchannel-header .nav-link-tutorial i {
    color: #00ff9d !important;
    transition: transform .50s ease !important;
}
.stchannel-header .nav-link-tutorial:hover {
    color: #6effc6 !important;
    text-shadow: 0 0 12px rgba(0,255,157,.75) !important;
}
.stchannel-header .nav-link-tutorial:hover i {
    transform: translateY(-2px) scale(1.15) !important;
}
@keyframes stTutorialPulse {
    0%, 100% { text-shadow: 0 0 0 rgba(0,255,157,0); }
    50%      { text-shadow: 0 0 10px rgba(0,255,157,.65); }
}
@media (prefers-reduced-motion: reduce) {
    .stchannel-header .nav-link-tutorial { animation: none !important; }
}

/* ── Auth trigger: nome e chevron SOLO su mobile ────── */
.sc-auth-trigger__name,
.sc-auth-trigger__chevron { display: none !important; }

@media (min-width: 992px) {
    .sc-auth-menu__trigger .sc-auth-trigger__name,
    .sc-auth-menu__trigger .sc-auth-trigger__chevron { display: none !important; }
    /* Trigger desktop: torna al pallino circolare */
    .sc-auth-menu__trigger {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
}

/* ── Mobile auth widget ─────────────────────────────────────────────
   Su mobile il trigger diventa una riga larga (avatar + nome + chevron)
   e il dropdown si espande inline nel flusso (non assoluto), così non
   viene tagliato e l'utente può scorrere per vedere tutte le voci.
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {

    /* Contenitore widget: larghezza piena, centrato */
    .stchannel-header .sc-auth-widget {
        width: 100%;
        justify-content: center !important;
    }

    /* sc-auth-menu occupa tutta la larghezza */
    .sc-auth-menu { width: 100%; }

    /* Trigger: riga flex larga, centrata */
    .sc-auth-menu__trigger {
        width: 100% !important;
        height: auto !important;
        min-width: unset !important;
        border-radius: 12px !important;
        padding: 10px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    /* Avatar dentro il trigger: dimensione fissa */
    .sc-auth-menu__trigger img {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }
    /* Span iniziale (no avatar) */
    .sc-auth-menu__trigger > span:not(.sc-auth-trigger__name) {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }

    /* Nome utente: visibile su mobile — override width/height/border-radius dalla regola base span */
    .sc-auth-menu__trigger .sc-auth-trigger__name {
        display: block !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        border-radius: 0 !important;
        text-align: left !important;
        color: rgba(255,255,255,.85) !important;
        font-size: .9rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        align-items: initial !important;
        justify-content: initial !important;
    }

    /* Freccia: visibile su mobile, ruota quando aperto */
    .sc-auth-menu__trigger .sc-auth-trigger__chevron {
        display: inline-block !important;
        font-size: .78rem !important;
        color: rgba(255,255,255,.5) !important;
        transition: transform .25s ease !important;
        flex-shrink: 0 !important;
    }
    .sc-auth-menu__trigger[aria-expanded="true"] .sc-auth-trigger__chevron {
        transform: rotate(180deg);
    }

    /* Dropdown: inline nel flusso (non assoluto), animato via max-height */
    .sc-auth-menu__dropdown {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height .35s ease !important;
        width: 100% !important;
        border-radius: 12px !important;
        margin-top: 0 !important;
        pointer-events: none !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    .sc-auth-menu__dropdown.is-open {
        max-height: 600px !important;
        pointer-events: auto !important;
        transform: none !important;
        background: #111 !important;
        border-color: rgba(0,255,157,.2) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,.6) !important;
        margin-top: 6px !important;
    }
}

/* === stchannel_cookie-consent-css.css === */
/**
 * Cookie Consent Styles - Sistema Tracking SaintChannel v2
 * 
 * Stili aggiornati per banner, modale e pulsanti flottanti
 * con design system Verde Neon SaintChannel.
 * 
 * @version 2.0
 * @date 2025-09-15
 * @framework SaintChannel v2.10.22
 */

/* ==========================================
   VARIABILI CSS TRACKING
   ========================================== */
:root {
    --st-cookie-modal-bg: rgba(0, 0, 0, 0.95);
    --st-cookie-content-bg: #1a1a1a;
    --st-cookie-border: var(--st-primary);
    --st-cookie-text: #ffffff;
    --st-cookie-text-muted: #cccccc;
    --st-cookie-accent: var(--st-primary);
    --st-cookie-secondary: #6c757d;
    --st-cookie-success: #28a745;
    --st-cookie-warning: #ffc107;
    --st-cookie-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
}

/* ==========================================
   COOKIE BANNER (Mini finestra in basso)
   ========================================== */

.st-cookies-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--st-primary);
    border-radius: 15px;
    padding: 20px;
    color: white;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.4);
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.st-cookies-banner.show {
    transform: translateX(0);
    opacity: 1;
}

.st-banner-header h6 {
    color: var(--st-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.st-banner-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.st-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-banner-buttons .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* ==========================================
   COOKIE MODAL (Modale completa)
   ========================================== */

.st-cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.st-cookies-modal.show {
    opacity: 1;
}

.st-cookies-modal .modal-content {
    border: 2px solid var(--st-primary);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 255, 157, 0.3);
}

.st-cookies-modal .modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 13px 13px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Pulsante chiudi sempre allineato in alto a destra */
.st-cookies-modal .modal-header #st-cookie-close {
    margin-left: auto;
    flex-shrink: 0;
}

.st-cookies-modal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.st-cookies-modal .btn-close {
    background-size: 1.2em;
    opacity: 0.8;
}

.st-cookies-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Categorie cookie nella modale */
.st-cookies-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.st-cookies-category:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--st-primary);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-title {
    color: var(--st-primary);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-cookies-category .category-description {
    color: #dbdbdb !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.st-cookies-category .category-cookies {
    color: #dbdbdb !important;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
    padding-top: 5px;
    border-top: 1px solid rgba(0, 255, 157, 0.2);
}

/* Toggle switch per categorie */
.st-cookies-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

/* Tag style per badge necessario */
.st-tag {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 1px solid;
}

.st-tag-success {
    background-color: var(--st-primary);
    color: #1a1a1a;
    border-color: var(--st-primary);
}

.st-cookies-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.st-cookies-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #666;
    border-radius: 24px;
    transition: 0.3s;
}

.st-cookies-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.st-cookies-toggle input:checked + .st-cookies-slider {
    background-color: var(--st-primary);
}

.st-cookies-toggle input:checked + .st-cookies-slider:before {
    transform: translateX(26px);
}

.st-cookies-toggle input:disabled + .st-cookies-slider {
    background-color: var(--st-primary);
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================
   PULSANTI FLOTTANTI
   ========================================== */

.st-floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.st-float-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--st-primary);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--st-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.st-float-btn:hover {
    background: linear-gradient(135deg, var(--st-primary) 0%, #00cc7a 100%);
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.5);
}

.st-float-btn i {
    font-size: 1.1rem;
}

/* Animazioni */
@keyframes cookieSlideIn {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cookieModalSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .st-cookies-banner {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }

    .st-floating-buttons {
        bottom: 10px;
        right: 10px;
    }

    .st-float-btn {
        width: 45px;
        height: 45px;
    }

    .st-cookies-modal .modal-dialog {
        margin: 0.5rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================
   TEC-2 — Cookie banner compact su mobile
   Riduce padding, font size e spazio verticale
   per migliorare CLS e leggibilità su schermi piccoli.
   ========================================== */
@media (max-width: 480px) {
    .st-cookies-banner {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .st-banner-header h6 {
        font-size: 0.78rem;
        margin-bottom: 6px;
        letter-spacing: 0.3px;
    }

    .st-banner-text {
        font-size: 0.78rem;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .st-banner-buttons {
        gap: 6px;
    }

    .st-banner-buttons .btn {
        padding: 7px 10px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
}

/* ==========================================
   SCROLLBAR PERSONALIZZATA PER MODALE
   ========================================== */

/* Scrollbar per la modale */
.st-cookies-modal .modal-body::-webkit-scrollbar {
    width: 12px;
}

.st-cookies-modal .modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

.st-cookies-modal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--st-primary) 0%, #00cc7a 100%);
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

.st-cookies-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00cc7a 0%, var(--st-primary) 100%);
}

.st-cookies-modal .modal-body::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Scrollbar per Firefox */
.st-cookies-modal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--st-primary) #1a1a1a;
}

/* === stchannel_tracking-component-css.css === */
/**
 * Tracking Component CSS - Sistema Tracking SaintChannel
 * 
 * Stili per:
 * - Floating Action Buttons
 * - Banner Cookie Laterale  
 * - Modale Cookie Dettagliata
 * - Elementi UI tracking
 * 
 * @version 1.0
 * @date 2025-09-10
 * @framework SaintChannel v2.10.22
 */

/* ==========================================
   FLOATING ACTION BUTTONS - COOKIES TRACKING
   ========================================== */

.st-cookies-floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.st-cookies-floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--st-primary, #00ff9d);
    background: rgba(0, 0, 0, 0.7);
    color: var(--st-primary, #00ff9d);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    position: relative;
}

.st-cookies-floating-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 255, 157, 0.1);
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.3);
}

.st-cookies-floating-btn.scroll-top {
    background: rgba(22, 33, 62, 0.95);
}

/* Tooltip specifico per cookies */
.st-cookies-floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: var(--st-text, #ffffff);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--st-border, #374151);
    pointer-events: none;
    z-index: 1070;
}

.st-cookies-floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* ==========================================
   BANNER COOKIE LATERALE - SPECIFICO
   ========================================== */

.st-cookies-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid var(--st-primary, #00ff9d);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9998;
    transform: translateX(110%);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.st-cookies-banner.show {
    transform: translateX(0);
}

.st-cookies-banner h6 {
    color: var(--st-primary, #00ff9d);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.st-cookies-banner p {
    color: var(--st-text, #ffffff);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.st-cookies-banner .btn-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.st-cookies-banner .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.st-cookies-banner .btn-outline-light {
    color: var(--st-text, #ffffff);
    border-color: var(--st-border, #374151);
    background: transparent;
}

.st-cookies-banner .btn-outline-light:hover {
    background: rgba(51, 65, 85, 0.3);
    color: var(--st-text, #ffffff);
}

.st-cookies-banner .btn-primary {
    background: var(--st-primary, #00ff9d);
    border: none;
    color: var(--st-darker, #0f172a);
    font-weight: 600;
}

.st-cookies-banner .btn-success {
    background: var(--st-primary, #00ff9d);
    border: 2px solid var(--st-primary, #00ff9d);
    color: var(--st-darker, #0f172a);
    font-weight: 600;
}

.st-cookies-banner .btn-success:hover {
    background: rgba(0, 255, 157, 0.9);
    border-color: var(--st-primary, #00ff9d);
    color: var(--st-darker, #0f172a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

/* ==========================================
   MODALE COOKIE DETTAGLIATA - SPECIFICO
   ========================================== */

.st-cookies-modal {
    --bs-modal-bg: rgba(26, 26, 46, 0.98);
    --bs-modal-border-color: var(--st-border, #374151);
}

.st-cookies-modal .modal-content {
    background: rgba(26, 26, 46, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 2px solid var(--st-primary, #00ff9d);
    border-radius: 12px;
}

.st-cookies-modal .modal-header {
    border-bottom: 1px solid var(--st-border, #374151);
    background: rgba(0, 255, 157, 0.1);
}

.st-cookies-modal .modal-footer {
    border-top: 1px solid var(--st-border, #374151);
    background: rgba(15, 23, 42, 0.5);
}

/* Cookie Categories */
.st-cookies-categories {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.st-cookies-category {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--st-border, #374151);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.st-cookies-category h6 {
    color: var(--st-primary, #00ff9d);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.st-cookies-category p {
    color: var(--st-text-muted, #cbd5e1);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Descrizioni cookie più chiare */
.st-cookies-category small.text-muted {
    color: #e2e8f0 !important;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ==========================================
   TOGGLE SWITCHES - COOKIES SPECIFICO
   ========================================== */

.st-cookies-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.st-cookies-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.st-cookies-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--st-dark, #1e293b);
    transition: 0.4s;
    border-radius: 24px;
    border: 1px solid var(--st-border, #374151);
}

.st-cookies-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--st-text-muted, #cbd5e1);
    transition: 0.4s;
    border-radius: 50%;
}

.st-cookies-toggle input:checked + .st-cookies-slider {
    background-color: var(--st-primary, #00ff9d);
    border-color: var(--st-primary, #00ff9d);
}

.st-cookies-toggle input:disabled + .st-cookies-slider {
    background-color: var(--st-primary, #00ff9d);
    opacity: 0.6;
    cursor: not-allowed;
}

.st-cookies-toggle input:checked + .st-cookies-slider:before {
    transform: translateX(26px);
    background-color: var(--st-darker, #0f172a);
}

.st-cookies-toggle input:focus + .st-cookies-slider {
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.3);
}

/* ==========================================
   RESPONSIVE - COOKIES TRACKING
   ========================================== */

@media (max-width: 768px) {
    .st-cookies-banner {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
    
    .st-cookies-floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .st-cookies-floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .st-cookies-categories {
        max-height: 300px;
    }
}

/* === stchannel_chat_contact_switch_css.css === */
/* chat-contact-switch.css mtime:1755704586 */
/* Chat Contact Switch Component Styles - SaintChannel */

/* === CONTAINER PRINCIPALE === */
.chat-contact-switch-container {
    background: transparent;
    position: relative;
    width: 100%;
}

/* === SWITCH STILE ABBONAMENTO === */
.switch-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 1.5rem 0;
    background: transparent;
    margin-bottom: 1rem;
}

.switch-selector {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
    border-radius: 2rem;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.switch-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.switch-background {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    height: calc(100% - 0.5rem);
    background: linear-gradient(135deg, var(--st-primary, #00ff9d), var(--st-secondary, #00ccff));
    border-radius: 1.75rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
    z-index: 1;
}

.switch-option {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1.5rem;
    border-radius: 1.75rem;
    background: transparent;
    border: none;
    color: var(--st-text-muted, #9ca3af);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.switch-option:hover {
    color: var(--st-text, #ffffff);
}

.switch-option.active {
    color: var(--st-dark, #0a0a0a);
}

.switch-option i {
    font-size: 1rem;
}

/* Calcolo dinamico larghezza background */
.switch-selector[data-active="chat"] .switch-background {
    width: var(--chat-width);
    left: 0.25rem;
}

.switch-selector[data-active="contact"] .switch-background {
    width: var(--contact-width);
    left: var(--contact-left);
}

/* === VIEW CONTAINER === */
.switch-views {
    position: relative;
    width: 100%;
}

.view {
    width: 100%;
}

/* Panel Headers */
.panel-header {
    margin-bottom: 0.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border-radius: 0.25rem;
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--st-text, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.panel-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.2;
    opacity: 1;
}

/* Panel Content */
.panel-content { position: relative; }

/* === ANIMAZIONI === */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility fade */
.fade-enter { opacity: 0; }
.fade-enter-active { transition: opacity .25s ease; opacity: 1; }

/* === LOADING STATES === */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--st-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === ERROR STATES === */
.error-state {
    text-align: center;
    padding: 2rem;
    color: var(--st-text-muted);
}

.error-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .switch-selector-container {
        padding: 1rem;
    }
    
    .switch-option {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .switch-option i {
        font-size: 0.9rem;
    }
    
    .view { padding: 1.5rem 0; }
    
    .panel-title { font-size: 1rem; }
    
    .panel-subtitle { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .switch-option {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .view { padding: 1rem 0; }
}

/* === ACCESSIBILITY === */
.switch-option:focus {
    outline: 2px solid var(--st-primary);
    outline-offset: 2px;
}

.switch-selector:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.3);
}

/* === DARK MODE OPTIMIZATIONS === */
@media (prefers-color-scheme: dark) {
    .chat-contact-switch-container {
        background: transparent;
    }
}


/* === PRINT STYLES === */
@media print {
    .chat-contact-switch-container {
        display: none !important;
    }
}

/* Nessuna regola fullscreen: gestione demandata alla chat o overlay JS */

/* === CONTACT LINKS STYLE (no multicolor, match site theme) === */
.chat-contact-switch-container .view.view-contact .panel-content.contact-content a,
.chat-contact-switch-container .view.view-contact .panel-content .contact-social-block .social-buttons a,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn {
    color: var(--st-primary, #00ff9d);
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.1rem;
    margin: 0.125rem 0.75rem 0.125rem 0;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.chat-contact-switch-container .view.view-contact .panel-content.contact-content a:hover,
.chat-contact-switch-container .view.view-contact .panel-content .contact-social-block .social-buttons a:hover,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn:hover {
    color: var(--st-primary, #00ff9d);
    border-bottom-color: currentColor !important;
    opacity: 0.9;
}

.chat-contact-switch-container .view.view-contact .panel-content.contact-content a i,
.chat-contact-switch-container .view.view-contact .panel-content.contact-content a svg,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn i,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn svg {
    color: currentColor;
}

/* Social buttons uniformi */
.chat-contact-switch-container .contact-social-block,
.chat-contact-switch-container .contact-buttons-section { margin-top: 1.25rem; }
.chat-contact-switch-container .social-buttons,
.chat-contact-switch-container .contact-buttons-section .social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
.chat-contact-switch-container .social-btn,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a,
.chat-contact-switch-container .contact-buttons-section .social-buttons a,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn {
    --btn-bg: rgba(255,255,255,0.06);
    --btn-bg-hover: rgba(255,255,255,0.1);
    --btn-border: rgba(255,255,255,0.12);
    color: var(--st-primary, #00ff9d) !important;
    background: var(--btn-bg) !important;
    border: 1px solid var(--btn-border) !important;
    border-radius: 8px !important; /* più quadrati */
    height: 56px !important; /* altezza uniforme */
    padding: 0 1rem !important; /* spazio orizzontale */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    line-height: 1.15;
    font-size: 1rem;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease, color .2s ease;
}
.chat-contact-switch-container .social-btn:hover,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a:hover,
.chat-contact-switch-container .contact-buttons-section .social-buttons a:hover,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn:hover {
    background: var(--btn-bg-hover) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.chat-contact-switch-container .social-btn i,
.chat-contact-switch-container .social-btn svg,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a i,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a svg,
.chat-contact-switch-container .contact-buttons-section .social-buttons a i,
.chat-contact-switch-container .contact-buttons-section .social-buttons a svg,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn i,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn svg {
    color: currentColor;
    font-size: 0.95rem;
}

/* Forza rimozione stili preesistenti su anchor base dentro il blocco social */
.chat-contact-switch-container .contact-social-block .social-buttons a,
.chat-contact-switch-container .contact-buttons-section .social-buttons a,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn {
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* === GLOBAL: Uniforma i pulsanti in .contact-buttons-section (fuori dal componente) === */
.contact-buttons-section a.contact-action-btn {
    --btn-bg: rgba(255,255,255,0.06);
    --btn-bg-hover: rgba(255,255,255,0.1);
    --btn-border: rgba(255,255,255,0.12);
    color: var(--st-primary, #00ff9d) !important;
    background: var(--btn-bg) !important;
    border: 1px solid var(--btn-border) !important;
    border-radius: 8px !important; /* più quadrati */
    height: 56px !important; /* altezza uniforme */
    padding: 0 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
}
.contact-buttons-section a.contact-action-btn:hover {
    background: var(--btn-bg-hover) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.contact-buttons-section a.contact-action-btn i,
.contact-buttons-section a.contact-action-btn svg {
    color: currentColor !important;
    font-size: 1.05rem !important;
}
.contact-buttons-section .col-md-3 .contact-action-btn,
.contact-buttons-section .col-sm-6 .contact-action-btn {
    /* a tutta larghezza dentro la colonna */
    width: 100% !important;
}

/* Larghezza uniforme per i pulsanti dentro il componente (non in griglia) */
.chat-contact-switch-container .social-buttons { justify-content: center; }
.chat-contact-switch-container .social-buttons a { width: 210px; }

/* Mobile: pulsanti a tutta larghezza */
@media (max-width: 576px) {
    .chat-contact-switch-container .social-buttons a { width: 100%; }
}

/* === ABOUT PAGE: Migliora styling sezione contatti === */
.contact-section .text-center .text-muted {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 400;
}

.contact-section .contact-buttons-section {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem !important;
    position: relative;
    z-index: 10;
}

/* Separazione netta dal componente sopra */
.contact-section .contact-switch-wrapper + * {
    clear: both;
    margin-top: 3rem !important;
}

/* Wrapper indipendente per la sezione social */
.contact-section .social-section-wrapper {
    margin-top: 3rem !important;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 10;
}

.contact-section .contact-buttons-section .row {
    justify-content: center;
}

.contact-section .contact-buttons-section a.contact-action-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-section .contact-buttons-section a.contact-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,255,157,0.15);
}

.contact-section .contact-buttons-section a.contact-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}

.contact-section .contact-buttons-section a.contact-action-btn:hover::before {
    left: 100%;
}

/* Specifici colori per tipo di pulsante */
.contact-section .email-btn:hover { border-color: #ff6b6b !important; }
.contact-section .linkedin-btn:hover { border-color: #0077b5 !important; }
.contact-section .github-btn:hover { border-color: #333 !important; }
.contact-section .website-btn:hover { border-color: #00ff9d !important; }
.contact-section .twitter-btn:hover { border-color: #1da1f2 !important; }
.contact-section .phone-btn:hover { border-color: #25d366 !important; }

/* === stchannel_chat_contact_switch_social_css.css === */

        /* Stili per i pulsanti social del ChatContactSwitchComponent */
        .chat-contact-switch-container .social-section-wrapper {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .chat-contact-switch-container .contact-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 0.5rem;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            font-weight: 500;
            width: 100%;
            min-height: 50px;
        }

        .chat-contact-switch-container .contact-action-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--st-primary, #00ff9d);
            color: var(--st-primary, #00ff9d);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
        }

        .chat-contact-switch-container .contact-action-btn i {
            font-size: 1.2rem;
            opacity: 0.8;
        }

        /* Colori specifici per ogni social */
        .chat-contact-switch-container .email-btn:hover { 
            background: rgba(220, 53, 69, 0.1); 
            border-color: #dc3545; 
            color: #dc3545; 
        }
        .chat-contact-switch-container .linkedin-btn:hover { 
            background: rgba(0, 119, 181, 0.1); 
            border-color: #0077b5; 
            color: #0077b5; 
        }
        .chat-contact-switch-container .github-btn:hover { 
            background: rgba(36, 41, 47, 0.1); 
            border-color: #24292f; 
            color: #24292f; 
        }
        .chat-contact-switch-container .twitter-btn:hover { 
            background: rgba(29, 161, 242, 0.1); 
            border-color: #1da1f2; 
            color: #1da1f2; 
        }
        .chat-contact-switch-container .website-btn:hover { 
            background: rgba(0, 255, 157, 0.1); 
            border-color: var(--st-primary, #00ff9d); 
            color: var(--st-primary, #00ff9d); 
        }
        .chat-contact-switch-container .phone-btn:hover { 
            background: rgba(40, 167, 69, 0.1); 
            border-color: #28a745; 
            color: #28a745; 
        }
        .chat-contact-switch-container .facebook-btn:hover { 
            background: rgba(24, 119, 242, 0.1); 
            border-color: #1877f2; 
            color: #1877f2; 
        }
        .chat-contact-switch-container .instagram-btn:hover { 
            background: rgba(225, 48, 108, 0.1); 
            border-color: #e1306c; 
            color: #e1306c; 
        }
        .chat-contact-switch-container .youtube-btn:hover { 
            background: rgba(255, 0, 0, 0.1); 
            border-color: #ff0000; 
            color: #ff0000; 
        }
        .chat-contact-switch-container .tiktok-btn:hover { 
            background: rgba(255, 0, 80, 0.1); 
            border-color: #ff0050; 
            color: #ff0050; 
        }
        .chat-contact-switch-container .telegram-btn:hover { 
            background: rgba(0, 136, 204, 0.1); 
            border-color: #0088cc; 
            color: #0088cc; 
        }
        .chat-contact-switch-container .whatsapp-btn:hover { 
            background: rgba(37, 211, 102, 0.1); 
            border-color: #25d366; 
            color: #25d366; 
        }
        .chat-contact-switch-container .behance-btn:hover { 
            background: rgba(0, 101, 255, 0.1); 
            border-color: #0065ff; 
            color: #0065ff; 
        }
        .chat-contact-switch-container .dribbble-btn:hover { 
            background: rgba(234, 76, 137, 0.1); 
            border-color: #ea4c89; 
            color: #ea4c89; 
        }
        .chat-contact-switch-container .stackoverflow-btn:hover { 
            background: rgba(244, 128, 36, 0.1); 
            border-color: #f48024; 
            color: #f48024; 
        }
        .chat-contact-switch-container .devto-btn:hover { 
            background: rgba(15, 23, 42, 0.1); 
            border-color: #0f172a; 
            color: #0f172a; 
        }
        .chat-contact-switch-container .medium-btn:hover { 
            background: rgba(18, 18, 18, 0.1); 
            border-color: #121212; 
            color: #121212; 
        }

        /* Responsive per mobile */
        @media (max-width: 576px) {
            .chat-contact-switch-container .contact-buttons-section .row {
                gap: 0.5rem;
            }
            .chat-contact-switch-container .contact-action-btn {
                padding: 0.6rem 0.8rem;
                font-size: 0.8rem;
                min-height: 45px;
            }
            .chat-contact-switch-container .contact-action-btn i {
                font-size: 1rem;
            }
        }
        
