* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dropzone */
#myDropzone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    min-height: 50px !important;
}

#mydropzone .dz-message {
    text-align: center;
    margin: 2em 0;
}

.dropzone .dz-preview .dz-image {
    box-shadow: 1px 1px 5px black;
    width: 80px !important;
    height: 80px !important;
}

.dropzone .dz-preview .dz-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.dropzone .dz-preview {
    min-height: 50px !important;
    margin: 5px !important;
}
/* end Dropzone */

.success-banner {

    color: rgb(21, 87, 36)te;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    background: rgb(212, 237, 218);
    margin: 20px 0 20px;
    border-left: 5px solid rgb(21, 87, 36);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.5s ease-out;
    justify-content: space-between;
}

.grecaptcha-badge {
    display: none !important;
}




body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

#header_and_logo{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    gap: 20px;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 10px;


    &>img{
        width: 100px;
    }


    .paragraph-welcome{

        font-size: 14px;
        margin: 0;
    }
}

.form-group {
    &>label {
        color: white;
        font-weight: 500;

    }
    &>.form-text {
        color: white;
        font-size: 12px;
    }
}

.form-check-input{
    margin-top: 0 !important;
}

.label_privacy, .label_disclaimer{
    font-size: 9px;
    font-weight: 300;
}

.link_privacy, .link_disclaimer{
    color: white;
    text-decoration: underline;
    &:hover{
        color: #ccc
    }
}

.border-danger{
    border-color: red;
}

.text-danger{
    font-weight: 600;

}
.form-group{
    margin-bottom: 10px;
}

ul{
    margin-bottom: 0 !important;
}
.container_button {
    margin-top: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 20px;

    &>button, &>a{
        color:white;
        font-size:18px;
        padding:10px 40px;
    }
}


.icon_success_ticket {
    max-width: 150px;
    width: 95%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 30px auto;
    background-color: green;
    display: flex;
    justify-content: center;
    align-items: center;

    &>i {
        color: white;
        font-size: 80px;
    }
}

.body_ticket {
    &>p {
        font-size: 19px;
        line-height: 1.7;
        color: white;
    }
}

@media (max-width: 900px) {
    body {
        overflow: auto;
        height: auto;
    }
}

/* Sfondo con immagine e dissolvenza */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (max-width: 900px) {
    .background-container {
        position: absolute;
        min-height: 100vh;
        height: 100%;
    }

    .main-container {
        position: relative;
        z-index: 1;
    }
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform-origin: center center;
}

.background-image.active {
    opacity: 0.7;
}

/* Animazioni di scorrimento */
.background-image.scroll-vertical {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    animation: scrollVertical 25s linear infinite alternate;
}

.background-image.scroll-horizontal {
    width: auto;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    animation: scrollHorizontal 30s linear infinite alternate;
}

@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-100% + 100vh));
    }
}

@keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}

/* Pause animation on hover della sidebar destra */
.sidebar-right:hover~.background-container .background-image {
    animation-play-state: paused;
}



/* Layout principale */
.main-container {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar sinistra - Area ticketing */
.sidebar-left {
    width: 600px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    padding: 25px;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-left h1 {
    color: #ffffff;

    font-size: 28px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
ul.dashed {
    margin: 0;
    color: white;
    font-size: 9px;

  }
  ul.dashed {
    list-style-type: none;
  }
  ul.dashed > li {
    text-indent: 5px;
  }
  ul.dashed > li:before {
    content: "-";
    text-indent: 5px;
    padding-right: 5px;
  }


.checkbox_privacy, .checkbox_disclaimer{
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 9px;
}

.main-content {
    min-height: 400px;
}

.placeholder-content {
    color: #e8f4fd;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.ticket-section {
    margin-bottom: 25px;
}

.ticket-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}



/* Area centrale */
.content-area {
    flex: 1;
    position: relative;
}

/* Elemento fluttuante info - Basso destra */
.sidebar-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px) saturate(1.8);
    -webkit-backdrop-filter: blur(15px) saturate(1.8);
    color: white;
    padding: 18px;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-right:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.artwork-info {
    opacity: 0.95;
}

.artwork-info h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.artwork-info .artist {
    color: #87ceeb;
    font-size: 13px;
    margin-bottom: 6px;
    font-style: italic;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.artwork-info .date {
    color: #b8c6db;
    margin-bottom: 12px;
    font-size: 12px;
    opacity: 0.85;
}

.artwork-info .description {
    color: #e8f4fd;
    line-height: 1.4;
    margin-bottom: 12px;
    font-size: 12px;
    opacity: 0.9;
}

.artwork-info .description p {
    margin-bottom: 8px;
}

.artwork-info .description p:last-child {
    margin-bottom: 0;
}

.artwork-info .description a {
    color: #87ceeb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.artwork-info .description a:hover {
    color: #b8d4f1;
    text-decoration: underline;
}

.artwork-info .description em,
.artwork-info .description i {
    font-style: italic;
}

.artwork-info .description strong,
.artwork-info .description b {
    font-weight: 600;
    color: #ffffff;
}

/* Collapse per impostazioni */
.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.settings-toggle h4 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.settings-toggle .chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #ffffff;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.settings-toggle.active .chevron {
    transform: rotate(180deg);
}

.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-content.active {
    max-height: 120px;
}

.settings-inner {
    padding: 12px;
}

.settings-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.settings-input label {
    color: #e8f4fd;
    font-weight: 500;
    font-size: 11px;
    opacity: 0.9;
}

.settings-input input {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    width: 60px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.settings-input input:focus {
    outline: none;
    border-color: #87ceeb;
    background: rgba(255, 255, 255, 0.15);
}

.settings-buttons {
    display: flex;
    gap: 6px;
}

.settings-buttons button {
    padding: 5px 10px;
    font-size: 10px;
    background: rgba(135, 206, 235, 0.3);
    border: 1px solid rgba(135, 206, 235, 0.5);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-buttons button:hover {
    background: rgba(135, 206, 235, 0.5);
    border-color: rgba(135, 206, 235, 0.7);
}

.artwork-info .details {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.artwork-info .details h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.artwork-info .details p {
    margin-bottom: 4px;
    color: #e8f4fd;
    font-size: 11px;
    opacity: 0.85;
    line-height: 1.3;
}

.artwork-info .details a {
    color: #87ceeb;
    text-decoration: none;
    font-size: 11px;
    padding: 6px 12px;
    background: rgba(135, 206, 235, 0.2);
    border: 1px solid rgba(135, 206, 235, 0.4);
    border-radius: 4px;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.artwork-info .details a:hover {
    background: rgba(135, 206, 235, 0.4);
    border-color: rgba(135, 206, 235, 0.6);
    color: #b8d4f1;
    transform: translateY(-1px);
}

/* Indicatori di caricamento */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar-left {
        width: 100%;
        height: auto;
        max-height: none;
        overflow-y: visible;
        min-height: auto;
        box-shadow: none;
        border-right: none;
        padding-bottom: 25px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px) saturate(1.5);
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
    }

    .content-area {
        display: none;
    }

    .sidebar-right {
        position: static;
        width: 100%;
        max-width: none;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px) saturate(1.8);
        -webkit-backdrop-filter: blur(15px) saturate(1.8);
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin: 0;
        padding: 25px;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .sidebar-left {
        padding: 20px;
        padding-bottom: 20px;
    }

    .sidebar-right {
        padding: 20px;
    }
}


    /* Stile per il banner di errore */
    .error-banner {
        background: linear-gradient(135deg, #ff6b6b, #ee5a52);
        color: white;
        padding: 15px 20px;
        border-radius: 8px;
        margin: 20px 0 20px;
        border-left: 5px solid #d63031;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 12px;
        animation: slideInDown 0.5s ease-out;
    }

    .error-banner i {
        font-size: 20px;
        color: #fff;
    }

    .error-banner .error-message {
        flex: 1;
        font-weight: 500;
    }

    .error-banner .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .error-banner .close-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    @keyframes slideInDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }

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

    .error-banner.hidden {
        display: none;
    }