.navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 0.7rem 1rem;
}

.navbar-transparent {
    background-color: rgb(255 255 255 / 94%);
}

.navbar-colored {
    background-color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #4BA4DA;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}


.partecipabtn {
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    border-width: 2px;
    font-size: 0.9rem;
    color: #4BA4DA;
    border-color: #4BA4DA;
    background-color: transparent;
    transition: all 0.3s;
}

.partecipabtn:hover {
    color: #ffffff;
    border-color: #4BA4DA;
    background-color: #4BA4DA;
}



.hero .logo-rotated {
    transform: rotate(354deg);
    transition: transform 0.3s;

    z-index: 2;
}



.hero .logo-rotated {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.event-box {
    background-color: #2D8AC8;
    color: white;
    font-weight: bold;
    padding: 20px 100px;
    font-size: 2.5rem;
    display: inline-block;
    margin: 15px 0;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}


.event-box.first {
    transform: rotate(2deg);
    margin-bottom: 6px;
    z-index: 1;
}

.event-box.secondary {
    transform: rotate(-4deg);
}

.info-section p,
.info-section h4 {
    color: #4BA4DA;
}

.info-btn {
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #4BA4DA;


    border-radius: 50px;
    color: #4BA4DA;
    background-color: transparent;
    transition: all 0.3s;
    padding: 8px 40px;

}

.info-btn:hover {
    background-color: #4BA4DA;
    color: #ffffff;
    text-decoration: none;
}


.payoff-section {
    background: linear-gradient(90deg, #4BA4DA, #0077b6);

}


.guest-section {
    background: url(../img/colori3.png) no-repeat left center;
    background-size: 60%;
    background-position: left center;
    background-repeat: no-repeat;
    color: #333;
}

.guest-photo {
    max-width: 300px;
    border-radius: 10px;
}

.guest-section p {
    color: #4BA4DA;

}

.guest-label {
    background: #4BA4DA;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 6px;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.guest-label strong {
    display: block;
    font-size: 1.1rem;
}

.guest-subtitle {
    font-style: italic;
    color: #444;
    margin-bottom: 15px;
}

.guest-text {
    line-height: 1.5;
}

@media (max-width: 480px) {
    .guest-section {
        background-position: top center;
        background-size: 160%;
    }

    .guest-photo {
        max-width: 250px;

    }

    .guest-label {

        padding: 12px 12px;
        position: absolute;


    }

}

#cookie-banner {
    position: fixed;
    /* Fissa il banner in basso alla finestra del browser */
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #343a40;
    /* Colore di sfondo scuro */
    color: #fff;
    /* Testo bianco */
    padding: 15px;
    z-index: 1000;
    /* Assicura che il banner sia sopra gli altri elementi */
    display: none;
    /* Nascosto di default, verrà mostrato tramite JS */
}

/* Pulsante di accettazione stile Bootstrap */
#cookie-banner .btn-privacy {
    background-color: #198754;
    color: white;
}

.scroll-offset {
    scroll-margin-top: 100px;
}

.coming-section {
    color: #4BA4DA;
}

.section-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    color: #4BA4DA;
    letter-spacing: 1px;
}

.coming-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #999;
}


.gallery-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-img.top-focus {
    object-position: top;
}



#galleryModal .modal-content {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

#galleryModal .modal-body img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
    display: block;

}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-wrapper:hover {
    transform: scale(1.05);
}

.gallery-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;

}

@media (min-width: 768px) {
    .gallery-wrapper:hover .gallery-overlay-icon {
        opacity: 1;
    }
}

.gallery-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

@media (min-width: 768px) {
    .gallery-wrapper:hover::before {
        opacity: 1;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #4BA4DA;
    background-size: 100%, 100%;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    opacity: 0.9;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    display: none;
}


@media (max-width: 767.98px) {
    #galleryContainer .col-6:nth-child(n+7) {
        display: none;
    }
}



.testimonials-section h4 {
    color: #4BA4DA;
    font-weight: bold;
}

.contact-links a {
    color: #4BA4DA;
    text-decoration: none;
    position: relative;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-links a:hover {
    border-bottom: 1px solid #4BA4DA;
}

.contact-links i {
    color: #4BA4DA;
}

.footer-section {
    margin-top: -100px;
    padding-top: 160px;
    background: url('../img/esplosione2.png') no-repeat top center;
    background-size: cover;
}


.footer-section a {
    text-decoration: none;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.footer-section a:hover {
    border-bottom: 2px solid white;
}



.pricing-title {
    margin-bottom: 210px;
}

.pricing-title p {
    color: #4BA4DA;
}

.pricing-card {
    border-radius: 20px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-top: 80px;

}


.pricing-header {
    color: #fff;
    padding: 20px 10px 65px;
    width: 60%;
    margin: 0 auto;
    position: absolute;
    top: -145px;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
    border-radius: 12px 12px 0 0;
    text-align: center;
}


.pricing-header h4 {
    margin: 0;
    font-weight: bold;
}

.pricing-price {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 10px;
}


.pricing-body {
    padding: 30px 23px;
    flex-grow: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    font-size: 1.1rem;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #555;
}

.pricing-features li::before {
    content: "✔";
    font-weight: bold;
}


.pricing-footer {
    padding: 20px;
    border-radius: 0 0 20px 20px;
}

.pricing-footer a {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
}

.pricing-footer a:hover {
    background: #fff;
}


.basic .pricing-header,
.basic .pricing-footer {
    background: linear-gradient(135deg, #a445b2, #fa4299);
}


.basic .pricing-features li::before {
    color: #a445b2;
}

.basic .pricing-footer button {
    border-color: #fff;
    color: #fff;
}

.basic .pricing-footer button:hover {
    color: #a445b2;
}

.standard .pricing-header,
.standard .pricing-footer {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.standard .pricing-features li::before {
    color: #1abc9c;
}

.standard .pricing-footer button {
    border-color: #fff;
    color: #fff;
}

.standard .pricing-footer button:hover {
    color: #16a085;
}

.premium .pricing-header,
.premium .pricing-footer {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.gradient-title-pink {
    background: linear-gradient(135deg,
            #a445b2 0%,
            #d94ab6 40%,
            #fa4299 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

}

.gradient-title-edge {
    background: linear-gradient(135deg,
            #f39c12 0%,
            #e67e22 40%,
            #d35400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-title-outdoor {
    background: linear-gradient(135deg,
            #2980b9 0%,
            #3b5d80 40%,
            #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


.card-explosive {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-explosive:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}


.gradient-pink-body {
    background: linear-gradient(135deg, #e67ee6, #fa78b0);
    border-radius: 0 0 1rem 1rem;
    padding: 1.2rem;
}

.gradient-edge-body {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 0 0 1rem 1rem;
    padding: 1.2rem;
}

.gradient-outdoor-body {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 0 0 1rem 1rem;
    padding: 1.2rem;
}

#articlesList li a {
    color: #007bff;
    text-decoration: none;
}

#articlesList li a:hover {
    text-decoration: underline;
}

.card-title {
    font-weight: 700;
    color: #fff;
}

.card-subtitle {
    font-weight: 500;
}

.card-text {
    color: #fdfdfd;
}


.card-img-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    transition: transform 0.3s ease;
}

.card-explosive:hover .card-img-top {
    transform: scale(1.05);
}

.premium .pricing-features li::before {
    color: #f39c12;
}

.premium .pricing-footer button {
    border-color: #fff;
    color: #fff;
}

.premium .pricing-footer button:hover {
    color: #d35400;
}


#arene p {
    color: #4BA4DA;
}

.td-blue {
    background: linear-gradient(135deg, #4ba4da, #2b6cb0);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    line-height: 1.2;
    padding: 15px;
}

.td-pink {
    background: linear-gradient(135deg, #e67ee6, #fa78b0);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    line-height: 1.2;
    padding: 15px;
}

.td-gray {
    background: white; 
    color: #306E9A !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.2;
    padding: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}




.td-green {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    line-height: 1.2;
    padding: 15px;
}

.td-orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    line-height: 1.2;
    padding: 15px;
}

.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;

    table-layout: fixed;
    width: 100%;
}

.table thead {
    background: #4ba4da;
    color: #fff;
}

.table th,
.table td {
    vertical-align: middle !important;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.table tbody tr:nth-child(even) {
    background: #e3f2fd;
}

.table th {
    width: 16.6%;
}

.logo-link {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
    cursor: pointer;
}

#videoModal .btn-close {
    filter: invert(1);


}

@media (max-width: 768px) {

    table.table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 10px;
        background: #fff;
        overflow: hidden;
    }

    td {

        padding: 10px 15px;
        border: none;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: black;
        display: block;
        margin-bottom: 5px;
    }

    .table td,
    .td-blue,
    .td-pink,
    .td-gray,
    .td-green,
    .td-orange {
        font-size: 15px;

    }
}

@media (max-width: 576px) {
    .hero {
        height: 70vh !important;
    }

    .footer-section {
        margin-top: -50px;
        padding-top: 90px;

    }

    .partner-logos img:first-child {
        max-height: 99px !important;
    }

    .partner-logos img:nth-child(2) {
        max-height: 85px !important;
    }


    .event-info-section p,
    .event-info-section a {
        font-size: 1.1rem !important;
    }

    .event-info-section h4 {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem;
    }

    .partner-logos img {
        max-height: 60px;
        margin: 0 8px;
    }

    .contact-links p {
        font-size: 1.1rem !important;
    }

    .event-box {
        padding: 15px 50px;
        font-size: 1.5rem;
    }

    #programma img {
        width: 100% !important;
    }

    .pricing .col-md-4 {
        margin-bottom: 160px !important;
    }

    .pricing .col-md-4:last-child {
        margin-bottom: 0 !important;
    }

    .pricing-header {
        top: -150px;
    }

    .pricing {
        margin-top: 80px;
    }

    .pricing-title img {
        width: 35% !important;
        top: -50% !important;

        left: 110px !important;
    }

    .hero .overlay {
        padding-top: 30px !important;
    }


    .logo-rotated {
        width: 80% !important;
    }

    .imgOrganizzato1 {
        max-height: 75px !important;
    }

    .imgOrganizzato2 {
        max-height: 65px !important;
    }

    #arene img {
        width: 100% !important;
    }
}