body {
    background-color: #fdf0d5 !important;
}

.section-divider {
    width: 100%;
    height: 3px;
    background-color: #003049;
}

/* Hero Section Layout Diagonale */
.hero-diagonal {
    position: relative;
    height: 95vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-diagonal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%
    );
    clip-path: polygon(0 0, 75% 0, 55% 100%, 0 100%);
    z-index: 1;
}

.hero-diagonal .event-info {
    position: relative;
    z-index: 2;
    max-width: 55%;
    padding: 3rem;
    color: #fff;
    animation: slideInLeft 1s ease-out;
}

.hero-diagonal .event-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    color: #fff;
}

.hero-diagonal .event-meta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.hero-diagonal .meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    animation: slideInLeft 1s ease-out;
}

.hero-diagonal .meta-item:nth-child(1) {
    animation-delay: 0.2s;
}
.hero-diagonal .meta-item:nth-child(2) {
    animation-delay: 0.4s;
}
.hero-diagonal .meta-item:nth-child(3) {
    animation-delay: 0.6s;
}
.hero-diagonal .meta-item:nth-child(4) {
    animation-delay: 0.8s;
}

.hero-diagonal .meta-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #c1121f, #780000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3);
    flex-shrink: 0;
}

.hero-diagonal .event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #fff;
    animation: slideInLeft 1s ease-out 1s both;
}

/* Animazioni */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-diagonal .event-info {
        max-width: 60%;
        padding: 2.5rem;
    }

    .hero-diagonal .event-title {
        font-size: 3rem;
    }

    .hero-diagonal::before {
        clip-path: polygon(0 0, 70% 0, 50% 100%, 0 100%);
    }
}

@media (max-width: 768px) {
    .hero-diagonal {
        height: 80vh;
        min-height: 500px;
    }

    .hero-diagonal .event-info {
        max-width: 90%;
        padding: 2rem;
    }

    .hero-diagonal .event-title {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }

    .hero-diagonal .meta-item {
        font-size: 1.1rem;
        gap: 0.8rem;
    }

    .hero-diagonal .meta-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-diagonal .event-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-diagonal::before {
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
        background: linear-gradient(
            135deg,
            rgba(0, 48, 73, 0.8) 0%,
            rgba(0, 48, 73, 0.6) 60%,
            rgba(0, 48, 73, 0.3) 100%
        );
    }
}

@media (max-width: 480px) {
    .hero-diagonal {
        height: 70vh;
        min-height: 450px;
    }

    .hero-diagonal .event-info {
        max-width: 95%;
        padding: 1.5rem;
    }

    .hero-diagonal .event-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-diagonal .meta-item {
        font-size: 1rem;
        gap: 0.7rem;
    }

    .hero-diagonal .meta-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero-diagonal .event-description {
        font-size: 0.95rem;
    }

    .hero-diagonal::before {
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    }
}

/* Aggiungi questi stili se vuoi un effetto hover sui meta-icon */
.hero-diagonal .meta-icon:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Effetto parallasse migliorato */
@media (min-width: 769px) {
    .hero-diagonal {
        background-attachment: fixed;
    }
}

.event-content-block {
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

.event-content-block:nth-child(1) {
    animation-delay: 0.1s;
}
.event-content-block:nth-child(2) {
    animation-delay: 0.2s;
}
.event-content-block:nth-child(3) {
    animation-delay: 0.3s;
}
.event-content-block:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenuto testo */
.text-content p {
    color: #003049;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.gallery-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 48, 73, 0.15);
    background: #003049;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Contenuto video con dimensioni ottimizzate */
.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #003049;
}

.custom-video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    background: #003049;
}

.external-video {
    text-align: center;
    padding: 2rem;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(45deg, #c1121f, #780000);
    text-decoration: none;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(193, 18, 31, 0.3);
    font-size: 1.1rem;
}

.video-link i {
    font-size: 1.5rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .gallery-carousel,
    .carousel-image,
    .video-wrapper,
    .custom-video {
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

@media (max-width: 768px) {
    .container h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .event-content-block {
        padding: 1.2rem 0.6rem;
        margin-bottom: 1.2rem;
    }

    .gallery-carousel,
    .carousel-image,
    .video-wrapper,
    .custom-video {
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 180px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 38px;
        height: 38px;
        left: 8px;
        right: 8px;
    }

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

    .video-link {
        padding: 10px 18px;
        font-size: 0.97rem;
    }
}

@media (max-width: 480px) {
    .event-content-block {
        padding: 0.7rem;
        border-radius: 8px;
    }

    .container h2 {
        font-size: 1.2rem;
    }

    .gallery-carousel,
    .carousel-image,
    .video-wrapper,
    .custom-video {
        max-width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 120px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 28px;
        height: 28px;
        left: 4px;
        right: 4px;
    }
}

/* Stato vuoto */
.empty-state {
    padding: 100px 0;
}

.empty-content {
    text-align: center;
}

.empty-icon {
    margin-bottom: 30px;
}

.empty-icon i {
    font-size: 4rem;
    color: #669bbc;
}

.empty-content h3 {
    color: #003049;
    margin-bottom: 15px;
}

.empty-content p {
    color: #669bbc;
}
