:root {
    --brand-color-yellow: #FFD93D;
    --brand-color-green-dark: #3f7646;
    --brand-color-green: #6bcb77;
    --brand-color-blue: #4d96ff;
    --brand-color-darkblue: #254e91;
    --brand-color-darkblue-rgb: 37, 78, 145;
    --brand-color-red: #ff6b6b;
    --brand-color-violette: #a95cbb;
    --brand-color-purple: #a95cbb;
}

.glitch-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video text overlay styles */
.video-text-overlay {
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 2rem 1rem;
}

.video-text-overlay h1 {
    font-family: 'Ubuntu', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease-out;
}

.video-text-overlay p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
    animation: fadeInUp 1.5s ease-out;
}

/* Typed text monospace styling */
.typed {
    font-family: 'Ubuntu', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--brand-color-yellow);
}

.typed-cursor {
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
}

.typed-subtitles {
    font-family: 'Ubuntu', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--brand-color-green-dark);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-text-overlay h1 {
        font-size: 2.5rem;
    }

    .video-text-overlay p {
        font-size: 1.1rem;
    }
}

.btn.active,
.btn-primary,
.btn-check:checked+.btn,
.btn-check {

    background-color: var(--brand-color-blue) !important;
    color: white !important;
    border: none !important;
}

.btn-outline-primary {
    border: 1px solid var(--brand-color-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-check+.btn:hover {
    background-color: var(--brand-color-blue) !important;
}

.btn-check+.btn:hover {
    color: white !important;
}



.bg-label-discount {
    background-color: var(--brand-color-green);
    color: white;
}

.btn-higher {
    font-size: 1.2em;
    padding: 0.75em 1.5em;
}

.people-block {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.date-block {
    display: flex;
    align-items: stretch;
    border: 0px;
}

.date-card {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
}

/* Slot grid */
.slot-btn {
    width: 100%;
    min-height: 70px;
}

/* Stato loading per i pulsanti */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Selected badge */
.selected-badge {
    font-weight: 600;
}

.type-block {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: large;
    padding: 0.5em;
}

/* ===== Carousel generale ===== */
.carousel-item {
    position: relative;
    height: 70vh;
}

.carousel-item img,
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Overlay scuro per testi leggibili ===== */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* più scuro */
    z-index: 1;
}

/* ===== Container label ===== */
.labels-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: absolute;
    top: 20px;
    width: 100%;
    z-index: 2;
    flex-wrap: wrap;
}

.label-badge {
    background: rgba(0, 0, 0, 0.6);
    /* sfondo più scuro */
    padding: 6px 12px;
    border-radius: 20px;
    color: #ffffff;
    /* testo bianco */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    border: 1px solid #4d96ff;
    /* bordo brand */
}

/* ===== Caption testi centrati ===== */
.carousel-caption {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    color: #ffffff;
    /* testi bianchi */
}

.carousel-caption h2 {
    font-size: 2.5rem;
    /* più grande */
    font-weight: bold;
    color: #ffffff;
    /* testo bianco */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* ombra per leggibilità */
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1.4rem;
}

/* ===== Bottone dettagli ===== */
.btn-details {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border: 1px solid #4d96ff;
    border-radius: 50px;
    color: #ffffff;
    background: rgba(77, 150, 255, 0.1);
    /* semi-trasparente brand */
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: rgba(77, 150, 255, 0.2);
    box-shadow: 0 6px 12px rgba(77, 150, 255, 0.5);
}

/* ===== Controlli carosello ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .labels-container {
        gap: 10px;
    }

    .label-badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .btn-details {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Profile Page Booking Cards */
.booking-card-container {
    box-shadow: 0 5px 20px color-mix(in srgb, var(--default-color), transparent 92%) !important;
}

.booking-card-container:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px color-mix(in srgb, var(--accent-color), transparent 85%) !important;
}

.booking-header {
    border-bottom: 1px solid rgba(var(--accent-color-rgb), 0.1);
    padding-bottom: 15px;
}

.booking-title-info h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 600;
}

/* Override per titoli delle schede prezzi e eventi con font Ubuntu */
.work-process .steps-content h3,
.team .team-member h3,
.team .team-member .member-info h3,
section.team .team-member .member-info h3,
.team-member .member-info h3,
div.team-member div.member-info h3,
[class*="team"] h3,
[class*="member-info"] h3,
html body main section.team .container .row .col-lg-6 .team-member .member-info h3 {
    font-family: "Ubuntu", sans-serif !important;
}

.final-price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.pricing-section {
    background-color: rgba(var(--accent-color-rgb), 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
    text-align: right;
}

.price-breakdown {
    margin-bottom: 10px;
}

.booking-info-item {
    font-size: 0.95rem;
}

.slots-section h6 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.slot-info {
    background-color: rgba(var(--accent-color-rgb), 0.08);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
    font-size: 0.9rem;
}

.coupon-info {
    background: linear-gradient(135deg, rgba(107, 203, 119, 0.2), rgba(107, 203, 119, 0.1));
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--brand-color-green-dark);
    font-size: 0.80rem;
}

.coupon-info .badge {
    background-color: var(--brand-color-green-dark) !important;
}

.booking-actions .btn {
    min-width: 140px;
    font-weight: 500;
    border-radius: 50px !important;
    padding: 8px 24px;
    font-family: var(--heading-font);
    transition: all 0.3s ease;
}

.pic img.testimonial-img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 8px;
}

.pic img.testimonial-img-large {
    width: 269px !important;
    height: 269px !important;
    object-fit: cover;
    border-radius: 12px;
    border: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .booking-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        align-items: center;
    }

    .pic {
        align-self: center;
        margin: 0 auto !important;
    }

    .booking-title-info {
        text-align: center;
    }

    .booking-final-price {
        text-align: center !important;
        order: -1;
        margin-bottom: 15px;
    }

    .final-price-large {
        font-size: 1.8rem;
    }

    .col-md-4 {
        margin-top: 20px;
    }

    .booking-actions {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .booking-actions .btn {
        min-width: 110px;
        font-size: 0.9rem;
    }
}

/* Modal contact item hover effects */
.contact-item[onclick]:hover {
    background: rgba(77, 150, 255, 0.1) !important;
    border-color: rgba(77, 150, 255, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Logout button styles */
.logout-btn {
    background: white !important;
}

.logout-btn:hover {
    background: white !important;
    color: color-mix(in srgb, var(--accent-color), transparent 25%) !important;
    border-color: color-mix(in srgb, var(--accent-color), transparent 25%) !important;
}

/* Empty state styles */
.empty-state-container {
    padding: 2rem 1rem;
}

/* Enhanced hover effects for all buy-btn and read_more links */
.empty-state-actions .buy-btn,
.buy-btn,
a[class*="buy-btn"],
a[href*="/book/"],
a[href*="/events/"],
.steps-content a.buy-btn,
.read-more,
a:contains("read_more") {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.empty-state-actions .buy-btn:hover,
.buy-btn:hover,
a[class*="buy-btn"]:hover,
a[href*="/book/"]:hover,
a[href*="/events/"]:hover,
.steps-content a.buy-btn:hover,
.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 150, 255, 0.25);
}

@media (max-width: 768px) {
    .empty-state-container {
        padding: 1.5rem 0.5rem;
    }
}

/* Glitch Event Modal Styles */
#glitchEventModal .modal-content {
    border: none;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

#glitchEventModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(77, 150, 255, 0.1), rgba(77, 150, 255, 0.05));
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

#glitchEventModal .modal-title {
    font-weight: 600;
    color: var(--brand-color-darkblue);
    font-size: 1.5rem;
}

#glitchEventModal .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#glitchEventModal .modal-body {
    padding: 2rem;
    background: transparent;
}

#glitchEventModal .event-icon-container {
    background: linear-gradient(135deg, rgba(77, 150, 255, 0.2), rgba(77, 150, 255, 0.1));
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

#glitchEventModal .event-icon-container i {
    font-size: 2.5rem;
    color: var(--brand-color-blue);
}

#glitchEventModal .event-title {
    color: var(--brand-color-darkblue);
    font-weight: 600;
}

#glitchEventModal .event-description {
    color: rgba(var(--brand-color-darkblue-rgb), 0.8);
    margin-bottom: 2rem;
}

#glitchEventModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 1.5rem;
}

/* Animazione per il chip dell'evento */
@keyframes pulse-chip {

    0%,
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 2px 8px rgba(169, 92, 187, 0.4);
    }
}

.slot-btn[data-event-id] .bg-event-chip {
    animation: pulse-chip 2s ease-in-out infinite;
}