/*
 * 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 */
