/* =============================================================================
   SPLASH PAGE LUOGO - Template Styles
   ============================================================================= */

/* Splash Hero Section */
a {
    color: #ffc107!important;
}
a.btn.btn-primary{    
    color: #000!important;
}
body.dev .header__logo img {
    height: 1.8rem;
}
.splash-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.splash-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.splash-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
}

.splash-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    transition: opacity 0.3s ease;
    min-height: 4.2rem; /* Mantiene altezza costante durante il toggle */
    display: inline-block;
    width: 100%;
}

.splash-hero__subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.splash-hero__actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.splash-cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.splash-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.splash-cta i {
    margin-right: 0.5rem;
}

/* Scroll Indicator */
.splash-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    color: white;
    animation: bounce 2s infinite;
    font-size: 2rem;
    transition: opacity 0.3s ease;
}

.splash-scroll-indicator:hover {
    opacity: 0.7;
}
.page-template-tpl-home .evento-multi-day::before {
    background: transparent !important;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Eventi Oggi Section */
.splash-eventi-oggi {
    background: #f8f9fa;
}

.splash-eventi-oggi h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 3rem;
}

.splash-eventi-oggi h2 i {
    color: #ffc107;
    margin-right: 0.5rem;
}

/* Evento Card */
.splash-evento-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.splash-evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.splash-evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.splash-evento-card__time {
    display: flex;
    align-items: center;
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.splash-evento-card__time i {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #ffc107;
}

.splash-evento-card__title {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.splash-evento-card__category {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.splash-evento-card__category i {
    margin-right: 0.5rem;
    color: #ffc107;
}

.splash-evento-card__excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.splash-evento-card__link {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.splash-evento-card__link:hover {
    color: #0056b3;
    text-decoration: none;
}

.splash-evento-card__link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.splash-evento-card__link:hover i {
    transform: translateX(3px);
}

.evento-multi-day {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.evento-multi-day-badge {
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.evento-day-indicator {
    color: #6c757d;
    font-weight: 400;
    margin-left: 0.5rem;
}

.meta-item-secondary {
    opacity: 0.8;
    font-size: 0.875rem;
}

.meta-item-secondary i {
    color: #ffc107;
}

.evento-multi-day-info {
    color: #856404;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.evento-multi-day-info i {
    color: #ffc107;
}

/* Animazione per eventi multi-giorno */
.evento-multi-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffc107 0%, #ffed4e  100%);
    border-radius: 0 0.375rem 0.375rem 0;
}

.evento-programma-card {
    position: relative;
}

/* Effetto hover per eventi multi-giorno */
.evento-multi-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}
.header__logo a.main-nav__item.menu-item.menu-item-type-custom.menu-item-object-custom.d-lg-none {
    margin-left: 100%;
}
/* Responsive per badge multi-giorno */
@media (max-width: 576px) {
    .evento-multi-day-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .evento-day-indicator {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Toggle button states */
#btn-toggle-prossimo-evento {
    transition: all 0.3s ease;
}

#btn-toggle-prossimo-evento.showing-prossimo {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

#btn-toggle-prossimo-evento.showing-prossimo:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Luogo Info Section */
.splash-luogo-info {
    background: #f8f9fa;
}

.splash-luogo-info h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.splash-luogo-info h2 i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.splash-luogo-info__content {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.splash-luogo-info__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-item i {
    color: #ffc107;
    font-size: 1.1rem;
    min-width: 20px;
}

.detail-item span {
    color: #555;
    font-size: 1rem;
}

.splash-luogo-info__image {
    text-align: center;
}

.splash-luogo-info__image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.splash-luogo-info__image img:hover {
    transform: scale(1.02);
}
span.bmc-btn-text {
    color: #000 !important;
}
/* Static Map Styles */
.splash-luogo-info__map {
    text-align: center;
}
ul.sub-menu.dropdown-menu.show {
    background-color: #000;
}
.map-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
}

.map-static {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: #ffc107;
    text-decoration: none;
    transform: translateY(-2px);
}
.tax-comune main.main-content {
    padding-top: 35px;
}
.map-link i {
    font-size: 1.2rem;
}

.map-link span {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Google Maps Embed Styles */
.map-embed-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    width: 100%;
}

.map-embed-container:hover {
    transform: scale(1.02);
}

.map-embed-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border-radius: 15px;
}
.header__logo-text small {
    color: #fff;
    margin-left: 25px;
    font-weight: bold;
}
#login-luogo-tab, #register-luogo-tab{
    background-color: transparent;
    color: #ffc107;
    transition: all 0.3s ease;
}
#login-luogo-tab.active, #register-luogo-tab.active{
    background-color: #ffc107;
    color: #000;
    border-radius: 25px;
}

#footer img.figure__img_logo {
    height: 32px;
    width: 74px;
}
.footer {
    border-top: 1px solid #2d2d2d!important;
}
i.bi.bi-megaphone {
    color: #fff !important;
}
.home-hero__nav-prev-inline, .home-hero__nav-next-inline {
    margin-top: -10px;
}
.hamburger.is-active .hamburger-inner {
    background-color: #000!important;
}
.hamburger .hamburger-inner, .hamburger .hamburger-inner::before, .hamburger .hamburger-inner::after, .hamburger.is-active .hamburger-inner::before, .hamburger.is-active .hamburger-inner::after {
    background-color: #fff!important;
}
.badge.luogo-nome a {
    color: #000 !important;
}
.badge i.bi.bi-geo-alt {
    margin-right: 10px;
}
/* Responsive adjustments for iframe */
@media (max-width: 768px) {
    
    .home-hero__slider .badge.luogo-nome {
        font-size: .8rem!important;
    }

    .map-embed-container iframe {
        height: 300px;
    }
    button.btn.btn-primary.login-logout-btn {
        margin-top: -5px!important;
        margin-right: 60px;
    }
}

@media (max-width: 576px) {
    .map-embed-container iframe {
        height: 250px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-hero__title {
        font-size: 2.5rem;
        min-height: 3.2rem; /* Riduce altezza minima su mobile */
    }
    
    .splash-hero__subtitle {
        font-size: 1.2rem;
    }
    
    .splash-hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .splash-cta {
        width: 280px;
        max-width: 90%;
    }
    
    .splash-scroll-indicator {
        bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .splash-hero {
        min-height: 500px;
    }
    
    .splash-hero__title {
        font-size: 2rem;
        margin-bottom: 1rem;
        min-height: 2.5rem; /* Ulteriore riduzione per schermi molto piccoli */
    }
    
    .splash-hero__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .splash-evento-card {
        margin-bottom: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
.modal .form-check-label {
    color: #fff !important;
    padding-left: 0 !important;
    text-align: left;
    margin-left: 10px;
}
/* Loading State Animation */
.splash-page.loading .splash-hero__content {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
i.bi-calendar-plus, i.bi.bi-plus-circle {
    margin-right: 10px;
}
button#btn-submit-evento {
    background-color: #f1b604;
    border-color: #f1b604;
}
.ml-form-embedContainer .ml-form-embedWrapper{
    background-color: #1a1a1a!important;
}
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent h4,
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent p,
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p{
    color: #fff!important;
}
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
    background-color: #eeb303 !important;
    color: #000!important;
}
/* Dark Theme Support */

    .splash-eventi-oggi,
    .splash-luogo-info,
    .splash-content {
        background: #2d2d2d!important;
    }
    
    .splash-evento-card {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .splash-evento-card__title {
        color: #ffffff;
    }
    
    .splash-luogo-info h2 {
        color: #fff;
    }
    
    .splash-luogo-info__content {
        color: #b0b0b0;
    }
    
    .detail-item span {
        color: #b0b0b0;
    }


/* Eventi in Programma Section */
.splash-eventi-programma {
    background: #ffffff;
}

.splash-eventi-programma h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 3rem;
}

.splash-eventi-programma h2 i {
    color: #ffc107;
    margin-right: 0.5rem;
}

/* Evento Card */
.evento-programma-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.evento-programma-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.evento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.evento-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-oggi {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
}

.status-domani {
    background: linear-gradient(135deg, #4ecdc4, #26a69a);
    color: white;
}

.status-settimana {
    background: linear-gradient(135deg, #45b7d1, #2196f3);
    color: white;
}

.status-mese {
    background: linear-gradient(135deg, #96ceb4, #4caf50);
    color: white;
}

.status-futuro {
    background: linear-gradient(135deg, #feca57, #ff9f43);
    color: white;
}

.evento-categoria-badge {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.evento-categoria-badge i {
    font-size: 0.75rem;
}

.evento-card-content {
    padding: 1rem 1.5rem;
}

.evento-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.evento-card-title {
    color: #333;
}

.evento-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.meta-item i {
    color: #ffc107;
    font-size: 0.9rem;
    min-width: 16px;
}

.evento-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.evento-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.evento-highlight {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #ff6b6b;
    font-weight: 600;
}

.evento-highlight i {
    animation: twinkle 1.5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hover Effects */
.evento-programma-card.hover-effect {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.evento-card-title {
    transition: color 0.3s ease;
}

/* Animation for status badges */
@keyframes statusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* No Eventi Placeholder */
.no-eventi-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-eventi-placeholder h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-eventi-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.no-eventi-placeholder small {
    opacity: 0.7;
}

/* Load More Button */
#load-more-eventi {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#load-more-eventi:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.splash-content .justify-content-center {
    justify-content: center !important;
    align-items: center;
}
/* Responsive Design for Eventi Section */
@media (max-width: 768px) {
    button.btn.btn-primary.login-logout-btn {
        margin-top: -10px;
        position: fixed;
        top: 0;
        right: 0;
    }
    body.dev .header__main {
        height: 40px;
    }
    #areaRiservataTabsNav button {
        font-size: 14px;
    }
    .content-formatted {
        padding: 15px;
        text-align: center;
    }
    .evento-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .evento-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .evento-highlight {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .evento-programma-card {
        margin-bottom: 1.5rem;
    }
    
    .evento-card-content {
        padding: 1rem;
    }
    
    .evento-card-footer {
        padding: 0 1rem 1rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
}

/* Dark Theme Support for Eventi Section */

    .splash-eventi-programma {
        background: #1a1a1a;
    }
    
    .splash-eventi-programma h2 {
        color: #ffffff;
    }
    
    .evento-programma-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .evento-card-title {
        color: #ffffff;
    }
    
    .meta-item {
        color: #b0b0b0;
    }
    
    .evento-card-excerpt {
        color: #b0b0b0;
    }
    
    .no-eventi-placeholder {
        color: #b0b0b0;
    }
    
    .no-eventi-placeholder h3 {
        color: #ffffff;
    }


/* =============================================================================
   MODAL SEGNALAZIONE EVENTO STYLES
   ============================================================================= */

/* Modal customizations */
#segnalazioneEventoModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #2d2d2d;
    color: #fff !important;
}

#segnalazioneEventoModal .modal-header {
    border-bottom: 1px solid #000;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #000;
}

#segnalazioneEventoModal .modal-header .btn-close {
    filter: invert(0);
}

#segnalazioneEventoModal .modal-body {
    padding: 2rem;
    background-color: #2d2d2d;
    color: #fff !important;
}

#segnalazioneEventoModal .modal-footer {
    border-top: 1px solid #000;
    border-radius: 0 0 15px 15px;
    background-color: #2d2d2d;
    color: #fff !important;
}
button#btn-prosegui {
    background-color: #f2b704;
    border-color: #f2b704;
}
/* Alert customizations */
#segnalazione-alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1.5rem;
}

/* Form styling */
.segnala-evento-btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 600;
}

.segnala-evento-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Tab styling */
#authTabs .nav-link {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#authTabs .nav-link:hover {
    transform: translateY(-1px);
}

#authTabs .nav-link.active {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border-color: transparent;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    white-space: pre-wrap; /* Preserva gli spazi */
}

.form-control:focus, .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    transform: translateY(-1px);
}

/* Assicura che gli input di testo possano contenere spazi */
.form-control[type="text"], 
.form-control[type="email"], 
.form-control[type="password"],
textarea.form-control {
    word-spacing: normal;
    letter-spacing: normal;
}

.form-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: #ffc107;
}
.form-check-label {
    color: #fff!important;
}
.text-muted {
    color: #fff!important;
}
.splash-luogo-info__map {
    max-width: 100%;
}
/* Button styling */
.modal-footer .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-slider-wrapper {
    position: relative;
}

.swipe-indicator {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
    animation: pulse-swipe 2s infinite ease-in-out;
}

.swipe-indicator i {
    font-size: 1rem;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

.swipe-indicator i.bi-chevron-left {
    animation-name: bounce-horizontal-left;
}

.swipe-indicator i.bi-chevron-right {
    animation-name: bounce-horizontal-right;
}

@keyframes pulse-swipe {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 1;
    }
}

@keyframes bounce-horizontal-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@keyframes bounce-horizontal-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

/* Loading animation */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Custom checkbox/radio styling */
.form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-check-input:focus {
    border-color: #ffeaa7;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Toast notifications */
.toast {
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
button.btn.btn-primary {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
}
button.btn.btn-primary.login-logout-btn {
    margin-top: -10px;
    background-color: transparent !important;
    color: #fff;
    border-color: transparent !important;
}
.splash-eventi-programma.pt-100 .badge.luogo-nome,
.splash-content .badge.luogo-nome {
    font-size: 12px;
    padding: 8px 12px;
}
button.slick-arrow, button.slick-arrow:focus {
    background-color: #ffc107;
    color: #000 !important;
    border-radius: 8px;
    width: 35px;
    z-index: 2;
    height: 25px;

}
button.slick-arrow:before{
    color: #000 !important;
}
button.slick-arrow.slick-prev{
    left: 0;
}
button.slick-arrow.slick-next{
    right: 0;
}

/* Responsive modal */
@media (max-width: 768px) {    
    .header__logo a.main-nav__item.menu-item.menu-item-type-custom.menu-item-object-custom.d-lg-none {
        margin-left: 40%;
    }
    .modal .modal-dialog {
        top: 35px;
    }
    .hideMobile {
        display: none;
    }
    button#btn-prosegui,button#btn-submit-evento {
        margin-top: 15px;
    }
    .splash-luogo-info__map {
        margin-top: 30px;
    }
    #segnalazioneEventoModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #segnalazioneEventoModal .modal-body {
        padding: 1.5rem;
    }
    
    .splash-hero__actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .splash-cta {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    #segnalazioneEventoModal .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Step Verifica Eventi */
#step-verifica-eventi .table {
    margin-bottom: 0;
}

#step-verifica-eventi .table td,
#step-verifica-eventi .table th {
    padding: 0.5rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

#step-verifica-eventi .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

#step-verifica-eventi .badge {
    font-size: 0.75rem;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

#eventi-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Dark theme per tabella eventi */

    #step-verifica-eventi .table {
        color: #e0e0e0;
    }
    
    #step-verifica-eventi .table th {
        background-color: #343a40;
        color: #ffffff;
        border-bottom-color: #495057;
    }
    
    .table-responsive {
        border-color: #495057;
    }

    .luogo-nome {
        background-color: #ffc107;
        color: #000;
        border-radius: 10px;
        padding: 15px 30px;
        font-size: 18px;
        margin-bottom: 10px;
    }
/* Print Styles */
@media print {
    .splash-hero {
        height: auto;
        min-height: auto;
        background: none !important;
        color: black !important;
    }
    
    .splash-hero__overlay {
        display: none;
    }
    
    .splash-hero__actions,
    .splash-scroll-indicator {
        display: none;
    }
    
    .splash-evento-card,
    .evento-programma-card {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .evento-status {
        border: 1px solid #333;
        color: #333 !important;
        background: none !important;
    }
}

.mobile-slider-wrapper {
    position: relative;
}

.swipe-indicator {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
    animation: pulse-swipe 2s infinite ease-in-out;
}

.swipe-indicator i {
    font-size: 1rem;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

.swipe-indicator i.bi-chevron-left {
    animation-name: bounce-horizontal-left;
}

.swipe-indicator i.bi-chevron-right {
    animation-name: bounce-horizontal-right;
}

@keyframes pulse-swipe {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 1;
    }
}

@keyframes bounce-horizontal-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@keyframes bounce-horizontal-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

/* =============================================================================
   MODALE LOGIN/LOGOUT - STILI CONDIVISI CON SEGNALAZIONE
   ============================================================================= */

/* Modali di autenticazione - stessi stili della segnalazione */
.modal {
    z-index: 1055 !important;
}

/* Fix specifico per modale nel header */
body .modal-backdrop,
body .modal-backdrop.show,
body .modal-backdrop.fade,
body .modal-backdrop.fade.show {
    z-index: 0 !important;
}
#areaRiservataTabsNav button {
    color: #eeb303!important;
}
.modal-backdrop {
    z-index: 0 !important;
}

.modal-backdrop.show {
    z-index: 0 !important;
}

.modal .modal-dialog {
    z-index: 1056 !important;
    position: relative;
}

.modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #2d2d2d;
    color: #fff !important;
    z-index: 1057 !important;
    position: relative;
}

.modal .modal-header {
    border-bottom: 1px solid #000;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #000;
}

.modal .modal-header .btn-close {
    filter: invert(0);
}
#areaRiservataTabsNav button.active{
    background-color: #383838!important;
    border-color: #000!important;
}
ul#areaRiservataTabsNav {
    border-color: #000;
}
.modal .modal-body {
    padding: 2rem;
    background-color: #2d2d2d;
    color: #fff !important;
}

.modal .modal-footer {
    border-top: 1px solid #000;
    border-radius: 0 0 15px 15px;
    background-color: #2d2d2d;
    color: #fff !important;
}

a.btn.btn-danger {
    background-color: #f0b503;
    color: #000 !important;
    border-color: #f0b503;
}
button#segnalazioni-tab:hover{
    border-width: 0px;
    background-color: #383838!important;
}
/* Tab styling per modali */
.modal #authTabs {
    position: relative;
    z-index: 1058 !important;
    border-bottom: none;
}

.modal #authTabs .nav-link {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    position: relative;
    z-index: 1058 !important;
}

.modal #authTabs .nav-link:hover {
    transform: translateY(-1px);
}

.modal #authTabs .nav-link.active {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border-color: transparent;
    color: #212529;
}

/* Form controls per modali */
.modal .form-control, 
.modal .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    background-color: #404040;
    color: #fff;
    border-color: #555;
    position: relative;
    z-index: 1058 !important;
}

.modal .form-control:focus, 
.modal .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    transform: translateY(-1px);
    background-color: #404040;
    color: #fff;
}

.modal .form-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal .form-label i {
    color: #ffc107;
}

.modal .form-check-label {
    color: #fff !important;
}

.modal .text-muted {
    color: #ccc !important;
}

.modal .form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.modal .form-check-input {
    position: relative;
    z-index: 1058 !important;
}

.modal .form-check-input:focus {
    border-color: #ffeaa7;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Assicura che tutti gli elementi interattivi della modale siano sopra il backdrop */
.modal input,
.modal button,
.modal select,
.modal textarea,
.modal a,
.modal label {
    position: relative;
    z-index: 1058 !important;
}

/* Forza il backdrop a rimanere completamente dietro */
.modal-backdrop::before,
.modal-backdrop::after {
    z-index: -1 !important;
}

/* Override per qualsiasi stile Bootstrap che possa interferire */
.modal.show ~ .modal-backdrop,
.modal.fade.show ~ .modal-backdrop {
    z-index: 0 !important;
}

/* Alert customizations per modali */
.modal .alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1.5rem;
}

/* Button styling per modali */
.modal .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1058 !important;
}

.modal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Area Riservata - Tab Segnalazioni */
.segnalazione-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #555 !important;
    transition: all 0.3s ease;
}

.segnalazione-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffc107 !important;
}

.segnalazione-item h6 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.segnalazione-item .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.segnalazioni-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.segnalazioni-list::-webkit-scrollbar {
    width: 6px;
}

.segnalazioni-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.segnalazioni-list::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 3px;
}

.segnalazioni-list::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}

/* =============================================================================
   BOTTONI SEGNALAZIONE EVENTO - COLORE GIALLO
   ============================================================================= */

/* Bottoni di segnalazione evento - forza colore giallo */
.btn[data-bs-target="#segnalazioneEventoModal"],
.segnala-evento-btn,
.splash-cta.btn-warning,
button[data-bs-target="#segnalazioneEventoModal"] {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.btn[data-bs-target="#segnalazioneEventoModal"]:hover,
.segnala-evento-btn:hover,
.splash-cta.btn-warning:hover,
button[data-bs-target="#segnalazioneEventoModal"]:hover {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #212529 !important;
}
