/* Awards View All Button */
.awards-section a[href="/awards"]:hover {
    background: #4a2359 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 44, 111, 0.3);
}

/* Awards Carousel Styles */
.awards-carousel-wrapper {
    position: relative;
}

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

.awards-swiper .swiper-slide {
    width: 380px;
    transition: all 0.3s ease;
}

/* Award Card 3D Effect */
.award-card-3d {
    position: relative;
    width: 100%;
    height: 550px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.award-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(91,44,111,0.3);
}

/* Active/Center Slide */
.swiper-slide-active .award-card-3d {
    transform: scale(1.05) translateY(-10px);
}

.swiper-slide-active .award-card-inner {
    border-color: rgba(91,44,111,0.8);
    box-shadow: 0 30px 80px rgba(91,44,111,0.4), 0 0 40px rgba(91,44,111,0.2);
}

/* Non-active slides */
.swiper-slide:not(.swiper-slide-active) .award-card-inner {
    opacity: 0.6;
    filter: brightness(0.7);
}

/* Award Photo */
.award-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.award-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
}

.award-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5B2C6F 0%, #462456 100%);
}

/* Gradient Overlays */
.award-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}

.award-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 1;
}

/* Sponsor Badge */
.sponsor-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(255,255,255,0.98);
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.sponsor-badge img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

/* Badges Container - Right */
.award-badges-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Girone Badge */
.award-girone-badge {
    background: rgba(91,44,111,0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.award-girone-badge span {
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Badge - Bottom */
.award-category-badge-bottom {
    background: rgba(91,44,111,0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 80px;
    max-width: 100px;
}

.award-category-badge-bottom span {
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Award Info */
.award-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.award-info-left {
    text-align: left;
}

.award-winner-name {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.award-team-name {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.award-date {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.award-month {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.award-year {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Decorative Corners */
.award-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(91,44,111,0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.award-corner-tl {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.award-corner-tr {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.award-corner-bl {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.award-corner-br {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.swiper-slide-active .award-corner {
    border-color: rgba(91,44,111,0.9);
}

/* Award Click Overlay */
.award-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    cursor: pointer;
}

/* Award Modal */
.award-modal {
    display: none !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin: 0 !important;
    padding: 0 !important;
}

.award-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.award-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.award-modal-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.award-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-modal-close:hover {
    color: #D4AF37;
    transform: scale(1.2);
}

.award-modal-info {
    margin-top: 1.5rem;
    color: white;
    text-align: center;
}

.award-modal-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.award-modal-team {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.award-modal-details {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.award-modal-details span {
    background: rgba(91, 44, 111, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .award-modal-name {
        font-size: 1.5rem;
    }

    .award-modal-team {
        font-size: 1rem;
    }

    .award-modal-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Navigation Arrows */
.awards-nav-prev,
.awards-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(91,44,111,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.awards-nav-prev {
    left: 0;
}

.awards-nav-next {
    right: 0;
}

.awards-nav-prev:hover,
.awards-nav-next:hover {
    background: rgba(91,44,111,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(91,44,111,0.5);
}

.awards-nav-prev svg,
.awards-nav-next svg {
    color: white;
}

.awards-nav-prev.swiper-button-disabled,
.awards-nav-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .awards-carousel-wrapper {
        padding: 0 80px;
    }

    .awards-swiper .swiper-slide {
        width: 340px;
    }

    .award-card-3d {
        height: 500px;
    }
}

@media (max-width: 768px) {
    /* HOTFIX iOS: rimuove effetti 3D che saturano VRAM su mobile */
    .award-card-3d {
        perspective: none !important;
        transform-style: flat !important;
    }
    .award-card-inner {
        transform: none !important;
        transform-style: flat !important;
        transition: none !important;
    }
    .swiper-slide-active .award-card-inner,
    .swiper-slide:not(.swiper-slide-active) .award-card-inner {
        transform: none !important;
    }

    .awards-carousel-wrapper {
        padding: 0 60px;
    }

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

    .awards-swiper .swiper-slide {
        width: 300px;
    }

    .award-card-3d {
        height: 450px;
    }

    .awards-nav-prev,
    .awards-nav-next {
        width: 50px;
        height: 50px;
    }

    .awards-nav-prev {
        left: 10px;
    }

    .awards-nav-next {
        right: 10px;
    }

    .award-winner-name {
        font-size: 1.4rem;
    }

    .sponsor-badge img {
        max-width: 50px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .awards-carousel-wrapper {
        padding: 0 50px;
    }

    .awards-swiper .swiper-slide {
        width: 260px;
    }

    .award-card-3d {
        height: 400px;
    }

    .award-info {
        padding: 20px;
    }

    .award-winner-name {
        font-size: 1.2rem;
    }
}
