/**
 * Rappresentativa Serie C - Page Styles
 * Extracted from inline styles for better maintainability
 */


/* Override burger menu color for this page - make it white */
body .lega-pro-burger,
.lega-pro-burger {
    border-color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(0, 0, 0, 0.3) !important;
}
body .lega-pro-burger .navbar-toggler-icon,
.lega-pro-burger .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
body .lega-pro-burger:hover,
.lega-pro-burger:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 1) !important;
}

/* Override fotogallery width for this page only */
.fotogallery-carousel-wrapper {
    max-width: 1100px !important;
    padding: 0 40px !important;
}

/* Hero Video Section */
.rappresentativa-hero {
    position: relative;
    height: 85vh;
    height: 85dvh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
    margin-top: -120px;
    padding-top: 120px;
}

.rappresentativa-hero video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center 25%;
}

.rappresentativa-hero iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

.rappresentativa-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(91,44,111,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.rappresentativa-hero-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.rappresentativa-hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.rappresentativa-hero-content p {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
.rappresentativa-section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #5B2C6F;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header .divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #5B2C6F);
    margin: 0 auto;
    border-radius: 2px;
}

/* News Slider */
.news-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.news-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.news-slide {
    flex: 0 0 350px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-slide:hover {
    transform: translateY(-5px);
}

.news-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-slide-content {
    padding: 1.5rem;
}

.news-slide-date {
    font-size: 0.85rem;
    color: #5B2C6F;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-slide-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-slide-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #5B2C6F;
    background: white;
    color: #5B2C6F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav-btn:hover {
    background: #5B2C6F;
    color: white;
}

.slider-nav-btn.prev { left: 0; }
.slider-nav-btn.next { right: 0; }

/* Staff Card Hover */
.staff-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Staff Section */
.staff-section {
    background: linear-gradient(135deg, #5B2C6F 0%, #462456 100%);
    color: white;
}

.staff-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    border: 2px dashed rgba(255,255,255,0.3);
}

.staff-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.staff-placeholder p {
    opacity: 0.8;
}

/* Timeline Section - HORIZONTAL */
.storia-section .timeline-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    height: 320px;
    margin-top: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Horizontal line in middle - matches container width */
.storia-section .timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37 0%, #5B2C6F 100%);
}

.storia-section .timeline-item {
    position: relative;
    flex: 0 0 120px;
    min-width: 120px;
    padding: 0.3rem;
    text-align: center;
}

/* Odd = top */
.storia-section .timeline-item:nth-child(odd) {
    align-self: flex-start;
    padding-bottom: 30px;
}

/* Even = bottom */
.storia-section .timeline-item:nth-child(even) {
    align-self: flex-end;
    padding-top: 30px;
}

/* Dot */
.storia-section .timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #D4AF37;
    border: 3px solid #5B2C6F;
    border-radius: 50%;
    z-index: 2;
}

.storia-section .timeline-item:nth-child(odd)::before {
    bottom: 0;
}

.storia-section .timeline-item:nth-child(even)::before {
    top: 0;
}

.storia-section .timeline-year {
    display: inline-block;
    background: #5B2C6F;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}

.storia-section .timeline-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.2rem 0;
}

.storia-section .timeline-description {
    font-size: 0.7rem;
    color: #555;
    line-height: 1.3;
    margin: 0;
}

/* Calendario Section */
.calendario-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f5fa;
    border-radius: 16px;
    border: 2px dashed #5B2C6F;
}

/* Responsive */
@media (max-width: 768px) {
    /* Fix: logo non sovrappone titolo */
    .rappresentativa-hero-content {
        padding-top: 100px;
    }

    .rappresentativa-hero-content h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .rappresentativa-hero-content p {
        font-size: 1rem;
    }

    /* Video grid: 2 colonne su mobile */
    .video-thumbs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .video-gallery-section {
        margin-top: -80px !important;
        padding-bottom: 2rem !important;
        background: linear-gradient(to bottom, transparent 0%, #f5f5f7 50%) !important;
    }

    .video-gallery-section > div {
        padding: 0 15px !important;
    }

    /* NEWS: rimuovi gap con video section */
    .news-section {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }

    .news-slider-wrapper {
        padding: 0 40px;
    }

    .news-slide {
        flex: 0 0 280px;
    }

    /* ===== MOBILE VERTICAL TIMELINE - ZIGZAG ===== */
    .storia-section .timeline-container {
        display: flex;
        flex-direction: column;
        height: auto;
        left: 0;
        transform: none;
        padding: 0;
        position: relative;
        gap: 0;
    }

    /* Vertical line in the CENTER */
    .storia-section .timeline-container::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #D4AF37 0%, #5B2C6F 100%);
    }

    .storia-section .timeline-item {
        flex: none;
        min-width: auto;
        width: 45%;
        padding: 0 0 2rem 0;
        position: relative;
    }

    /* Odd items = LEFT side */
    .storia-section .timeline-item:nth-child(odd) {
        align-self: flex-start !important;
        text-align: right;
        padding-right: 20px;
        padding-bottom: 2rem;
        padding-top: 0;
    }

    /* Even items = RIGHT side */
    .storia-section .timeline-item:nth-child(even) {
        align-self: flex-end !important;
        text-align: left;
        padding-left: 20px;
        padding-bottom: 2rem;
        padding-top: 0;
    }

    .storia-section .timeline-item:last-child {
        padding-bottom: 0;
    }

    /* Dot in the CENTER */
    .storia-section .timeline-item::before {
        top: 5px;
        bottom: auto;
    }

    .storia-section .timeline-item:nth-child(odd)::before {
        left: auto;
        right: -8px;
        transform: translateX(50%);
    }

    .storia-section .timeline-item:nth-child(even)::before {
        left: -8px;
        right: auto;
        transform: translateX(-50%);
    }

    .storia-section .timeline-year {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .storia-section .timeline-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .storia-section .timeline-description {
        display: block;
        font-size: 0.7rem;
        color: #444;
        line-height: 1.4;
    }
}
/* ===== HERO VIDEO SECTION - DAZN/NETFLIX STYLE ===== */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    max-height: 750px;
    margin-top: -120px;
    overflow: hidden;
    background: #0a0a0a;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
}

/* Video Player */
#hero-video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#hero-video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Poster */
.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Gradient Overlays */
.gradient-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.gradient-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 350px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Title */
.hero-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.hero-title-overlay h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 0 0 0.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.hero-title-overlay p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin: 0;
}

/* Custom Play Button */
.custom-play-btn {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(91, 44, 111, 0.95);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(91, 44, 111, 0.5);
}

.custom-play-btn:hover {
    background: #D4AF37;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.6);
    border-color: rgba(255,255,255,0.5);
}

.custom-play-btn.playing {
    opacity: 0;
    pointer-events: none;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-arrow:hover {
    background: rgba(91, 44, 111, 0.9);
    border-color: #D4AF37;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
    left: 24px;
}

.nav-arrow-right {
    right: 24px;
}

/* Mute Button - Hidden */
.mute-btn {
    display: none;
}

.mute-btn:hover {
    background: rgba(91, 44, 111, 0.9);
    border-color: #D4AF37;
}

/* Video Info */
.video-info {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-550px);
    margin-left: 40px;
    z-index: 8;
}

.video-category {
    display: inline-block;
    background: #D4AF37;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.video-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Thumbnails Overlay */
.thumbnails-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 40px 24px;
}

.thumbnails-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.thumbnails-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnails-scroll::-webkit-scrollbar {
    display: none;
}

/* Thumbnail */
.thumbnail {
    flex-shrink: 0;
    width: 160px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.thumbnail.active {
    opacity: 1;
    border-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 24px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-play {
    width: 36px;
    height: 36px;
    background: rgba(91, 44, 111, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 16px 8px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255,255,255,0.6);
}

.dot.active {
    background: #D4AF37;
    width: 24px;
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-video-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title-overlay h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .nav-arrow {
        width: 48px;
        height: 48px;
    }

    .nav-arrow-left { left: 16px; }
    .nav-arrow-right { right: 16px; }

    .thumbnail {
        width: 140px;
    }

    .thumbnail img {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-video-section {
        height: 60vh;
        min-height: 450px;
        margin-top: -100px;
    }

    .video-container {
        height: calc(100% + 100px);
    }

    .hero-title-overlay h1 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero-title-overlay p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .custom-play-btn {
        width: 64px;
        height: 64px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .nav-arrow-left { left: 8px; }
    .nav-arrow-right { right: 8px; }

    .video-info {
        bottom: 160px;
        left: 20px;
    }

    .video-title {
        font-size: 1.1rem;
    }

    .thumbnails-overlay {
        padding: 0 16px 16px;
    }

    .thumbnail {
        width: 120px;
    }

    .thumbnail img {
        height: 68px;
    }

    .thumbnail-title {
        font-size: 0.65rem;
    }

    .mute-btn {
        bottom: 170px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title-overlay h1 {
        font-size: 1.8rem;
    }

    .thumbnail {
        width: 100px;
    }

    .thumbnail img {
        height: 56px;
    }

    .progress-dots {
        margin-top: 12px;
    }
}
/* ===== NEWS SECTION - NETFLIX STYLE ===== */
.news-section {
    background: #f5f5f7;
    padding: 5rem 0;
    position: relative;
}

.news-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #5B2C6F;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 0.5rem;
}

.news-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.news-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #5B2C6F);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Carousel Wrapper */
.news-carousel-wrapper {
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
    overflow: hidden;
}

/* Navigation Arrows */
.news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(91, 44, 111, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.news-nav:hover {
    background: #D4AF37;
    transform: translateY(-50%) scale(1.1);
}

.news-nav-left {
    left: -10px;
}

.news-nav-right {
    right: -10px;
}

/* Carousel */
.news-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-carousel::-webkit-scrollbar {
    display: none;
}

/* News Card */
.news-card {
    flex-shrink: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(91, 44, 111, 0.2);
}

.news-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5B2C6F 0%, #7B4C8F 100%);
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}

.news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #D4AF37;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-content {
    padding: 1.25rem;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5B2C6F;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-card-title {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5B2C6F;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-link {
    color: #D4AF37;
    gap: 8px;
}

/* View All Button */
.news-view-all {
    text-align: center;
    margin-top: 2.5rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #5B2C6F;
    border: 2px solid #5B2C6F;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #5B2C6F;
    color: white;
    gap: 12px;
}

.news-empty {
    text-align: center;
    color: #666;
    padding: 3rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-card {
        width: 280px;
    }

    .news-nav {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 3rem 0;
    }

    .news-header h2 {
        font-size: 2rem;
    }

    .news-card {
        width: 260px;
    }

    .news-card-image {
        height: 150px;
    }

    .news-nav {
        display: none;
    }

    .news-carousel {
        padding-left: 1rem;
        margin-left: -1rem;
    }
}

@media (max-width: 480px) {
    .news-card {
        width: 240px;
    }
}
/* ===== STAFF SECTION - ORGANIGRAMMA STYLE ===== */
.staff-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.staff-card-new {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border-radius: 16px;
    padding: 1.5rem 1rem 1.2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.08), 0 0 0 1px rgba(91, 44, 111, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
}

.staff-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(91, 44, 111, 0.15), 0 0 0 1px rgba(91, 44, 111, 0.1);
}

.staff-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B2C6F 0%, #764ba2 50%, #667eea 100%);
    transition: all 0.4s ease;
}

.staff-card-new:hover .staff-card-accent {
    height: 6px;
}

.staff-photo-new {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    position: relative;
}

.staff-photo-new .photo-ring {
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, #5B2C6F 0%, #764ba2 50%, #667eea 100%);
    border-radius: 50%;
    opacity: 0.15;
    transition: all 0.4s ease;
}

.staff-card-new:hover .photo-ring {
    opacity: 0.25;
    inset: -8px;
}

.staff-photo-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.15);
    transition: all 0.4s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.staff-card-new:hover .staff-photo-new img {
    transform: scale(1.05);
}

.staff-photo-new.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-photo-new.fallback .initials {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e0ef 0%, #f0ebf5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.1);
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5B2C6F;
    opacity: 0.7;
}

.staff-name-new {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.staff-role-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(91, 44, 111, 0.15) 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.staff-role-badge span {
    font-size: 0.65rem;
    background: linear-gradient(135deg, #5B2C6F 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .staff-grid-new {
        grid-template-columns: repeat(2, 1fr);
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .staff-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .staff-card-new {
        padding: 1.2rem 0.8rem 1rem;
    }

    .staff-photo-new {
        width: 70px;
        height: 70px;
    }

    .staff-name-new {
        font-size: 0.8rem;
    }
}

/* Legacy staff styles - keeping for backward compatibility */
.staff-section {
    background: linear-gradient(180deg, #5B2C6F 0%, #4A1F5C 100%);
    display: none;
}

/* Animazione entrata staggered */
@keyframes staffFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-card {
    animation: staffFadeIn 0.5s ease-out backwards;
}

.staff-card:nth-child(1) { animation-delay: 0.1s; }
.staff-card:nth-child(2) { animation-delay: 0.15s; }
.staff-card:nth-child(3) { animation-delay: 0.2s; }
.staff-card:nth-child(4) { animation-delay: 0.25s; }
.staff-card:nth-child(5) { animation-delay: 0.3s; }
.staff-card:nth-child(6) { animation-delay: 0.35s; }

/* Responsive */
@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .staff-card {
        padding: 1.5rem 1rem;
    }

    .staff-photo {
        width: 90px;
        height: 90px;
    }

    .staff-photo.fallback span {
        font-size: 1.75rem;
    }

    .staff-name {
        font-size: 0.95rem;
    }

    .staff-role {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== CALENDARIO CARDS COMPATTE ===== */
.calendario-section {
    background: linear-gradient(180deg, #efe7f4 0%, #e3d4ec 100%);
}

.calendario-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.match-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Single Match Card */
.match-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(91, 44, 111, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(91, 44, 111, 0.1);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(91, 44, 111, 0.15);
}

/* Card Header */
.match-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #5B2C6F, #7B4C8F);
    color: white;
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.match-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.match-date .month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    color: white;
}

.match-time {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.match-category {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.25);
}

.match-category.u17 { background: #e63946; }
.match-category.u16 { background: #2a9d8f; }
.match-category.u15 { background: #e76f51; }

/* Card Body */
.match-card-body {
    padding: 1.25rem 1rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: center;
}

.team-block .team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.team-block .team-logo-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B2C6F, #7B4C8F);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.team-block .team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.vs-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #5B2C6F;
    padding: 0.35rem 0.6rem;
    background: #f0e6f5;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Card Footer */
.match-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9f5fc;
    border-top: 1px solid #eee;
    font-size: 0.75rem;
    color: #666;
}

.match-card-footer svg {
    color: #5B2C6F;
    flex-shrink: 0;
}

.match-card-footer span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Accrediti Box */
.accrediti-box {
    text-align: center;
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(91,44,111,0.08);
    border-radius: 12px;
}

.accrediti-box p {
    color: #5B2C6F;
    font-size: 0.9rem;
    margin: 0;
}

.accrediti-box a {
    color: #5B2C6F;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 700px) {
    .match-cards-grid {
        grid-template-columns: 1fr;
    }

    .calendario-container {
        padding: 0 1rem;
    }
}

@media (max-width: 400px) {
    .match-card-header {
        padding: 0.75rem;
    }

    .match-date .day {
        font-size: 1.25rem;
    }

    .team-block .team-logo,
    .team-block .team-logo-fallback {
        width: 60px;
        height: 60px;
    }

    .team-block .team-name {
        font-size: 0.75rem;
    }
}

/* ===== RAPPRESENTATIVA GALLERY - Identico a fotogallery homepage ===== */
.rapp-gallery-swiper {
    width: 100%;
    padding: 80px 0 100px 0;
}

.rapp-gallery-swiper .swiper-slide {
    width: 380px;
    transition: all 0.4s ease;
}

.rapp-gallery-swiper .swiper-slide-active .rapp-gallery-card {
    transform: scale(1.18) translateY(-15px);
    box-shadow: 0 35px 90px rgba(91,44,111,0.45);
}

.rapp-gallery-swiper .swiper-slide-active .rapp-gallery-card:hover {
    transform: scale(1.25) translateY(-20px);
    box-shadow: 0 40px 100px rgba(91,44,111,0.5);
}

.rapp-gallery-swiper .swiper-slide:not(.swiper-slide-active) .rapp-gallery-card {
    opacity: 0.5;
    filter: brightness(0.7);
}

.rapp-gallery-swiper .swiper-slide:not(.swiper-slide-active) .rapp-gallery-card:hover {
    opacity: 0.8;
    filter: brightness(0.9);
    transform: scale(1.02);
}

/* Navigation Arrows */
.rapp-gallery-prev:hover,
.rapp-gallery-next:hover {
    background: linear-gradient(135deg, #5B2C6F 0%, #462456 100%);
    border-color: rgba(212,175,55,0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(91,44,111,0.5);
}

@media (max-width: 768px) {
    .rapp-gallery-swiper .swiper-slide {
        width: 300px !important;
    }

    .rapp-gallery-swiper {
        padding: 30px 0 60px 0;
    }

    .rapp-gallery-prev,
    .rapp-gallery-next {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    .rapp-gallery-swiper .swiper-slide {
        width: 260px !important;
    }
}

/* ===== CAMPIONI GALLERY - Same style as fotogallery ===== */
.campioni-gallery-section {
    overflow: hidden;
}

.campioni-swiper {
    width: 100%;
    padding: 50px 0 80px 0;
}

.campioni-swiper .swiper-slide {
    width: 280px;
    transition: all 0.4s ease;
}

.campioni-card {
    transition: all 0.3s ease;
    transform-origin: center center;
}

/* Active/Center Slide - scale ridotto per evitare effetto esagerato */
.campioni-swiper .swiper-slide-active .campioni-card {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 50px rgba(91,44,111,0.35);
}

.campioni-swiper .swiper-slide-active .campioni-card:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 25px 60px rgba(91,44,111,0.4);
}

/* Non-active slides - più visibili */
.campioni-swiper .swiper-slide:not(.swiper-slide-active) .campioni-card {
    opacity: 0.7;
    filter: brightness(0.8);
}

.campioni-swiper .swiper-slide:not(.swiper-slide-active) .campioni-card:hover {
    opacity: 0.9;
    filter: brightness(0.95);
    transform: scale(1.02);
}

/* Navigation Arrows */
.campioni-prev:hover,
.campioni-next:hover {
    background: linear-gradient(135deg, #5B2C6F 0%, #462456 100%);
    border-color: rgba(212,175,55,0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(91,44,111,0.5);
}

@media (max-width: 768px) {
    .campioni-swiper .swiper-slide {
        width: 220px !important;
    }

    .campioni-swiper {
        padding: 30px 0 60px 0;
    }

    .campioni-prev,
    .campioni-next {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    .campioni-swiper .swiper-slide {
        width: 180px !important;
    }
}
