.disabled, .disabled:hover, .disabled:focus, .disabled:active {
    opacity: .6;
    cursor: not-allowed;
}

.abbonati-button {
    background-image: linear-gradient(120deg, #ad8b3a 46%, #ddc079);
    color: white;
    border-radius: 10px;
    transition: .0s;
    padding: 10px 30px;
    font-size: 24px;
}

.abbonati-button:hover {
    background-image: linear-gradient(60deg, #ad8b3a 25%, #ddc079);
}


/*---------------------PAGINA PERCORSO------------------------*/
.image-percorso {
    display: block;
    max-width: 700px;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.descrizione-percorso {
    text-align: justify;
    color: #fff;
    line-height: 22px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.descrizione-percorso p {
    padding-top: 10px;
}


/*------------------------------ EPISODI --------------------------------------*/
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.img-grid-cerca {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 0.4fr));
    justify-content: center;
    gap: 1rem;
}

.img-grid-item {
    overflow: hidden;
}

.img-grid-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.feedback-form-container {
    padding: 20px 0px 0px 0px;
}

.feedback-form-container-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%; /* Adjusted width to be consistent with the video player */
    border-radius: 15px;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.feedback-form-container textarea {
    width: 100%;
    height: 150px;
    border-radius: .5rem;
    border: 1px solid #CCCCCC;
    padding: .5rem;
    font-size: 1rem;
    resize: vertical;
}

.feedback-form-container select {
    width: 100%;
    border-radius: .5rem;
    border: 1px solid #CCCCCC;
    padding: .5rem;
    font-size: 1rem;
}

.feedback-form-container-button {
    align-self: flex-end;
    color: #fff;
    border: 2px white solid;
    padding: .75rem 1.25rem;
    cursor: pointer;
    background-color: transparent;
    border-radius: 15px;
}

.feedback-form-container button:hover {
    background-color: #FFCC99;
}

.feedback-form-container .error-message {
    color: #EE0000;
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

.pin-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pin-verification-modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.pin-verification-modal-x {
    text-align: right;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.pin-verification-modal form {
    display: flex;
    flex-direction: column;
}

.pin-verification-modal input {
    width: 400px;
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.pin-verification-modal button {
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    background-color: #4d98e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pin-verification-modal button:hover {
    background-color: #6f9dbe;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ad8b3a;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #000000;
    background-color: #FFFFFF;
    cursor: pointer;
}

.payment-button:hover {
    background-image: linear-gradient(120deg, #ad8b3a 46%, #ddc079);
    color: white;
    transition: .0s;
}

.payment-button img {
    height: 2rem;
}

/*------------------------------------PROFILO-------------------------------------*/

.profile-page {
    display: flex;
    background-color: #6f9dbe;
    color: white;
}

.profile-page main {
    height: calc(100vh - var(--navbar-height));
    overflow: auto;
}

.custom-sidebar {
    width: 300px;
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    color: #A0A0A0;
}

.custom-sidebar > nav {
    height: 100%;
    background-color: #fff;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-sidebar-nav ul {
    list-style-type: none;
    padding: 0;
}

.custom-sidebar-nav li {
    padding: 0 0.3rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    height: 55px;
    position: relative;
}

.custom-sidebar-nav li:hover, .custom-sidebar-selected {
    color: #000; /*#4d98e2*/
}

.custom-sidebar-nav li > div {
    margin: auto 0;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}

.custom-sidebar-nav li > .custom-sidebar-sbarra > img {
    left: 30px;
    height: 30px;
    display: flex;
    gap: 1rem;
}

.custom-sidebar-nav li > div:not(.custom-sidebar-sbarra) {
    left: 30px;
    height: 20px;
    display: flex;
    gap: 1rem;
}

.custom-sidebar-nav li > div:not(.custom-sidebar-sbarra) > img {
    left: 30px;
    height: 20px;
    display: flex;
    gap: 1rem;
}


.custom-sidebar-nav li span {
    margin: auto;
}


.sidebar-logout {
    position: relative;
}

.sidebar-logout > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px; /* Distanza da sinistra */
  right: 10px; /* Distanza da destra */
  height: 1px; /* Altezza del "bordo" */
  background-color: #cdcdcd; /* Colore del "bordo" */
}

.custom-sidebar-sbarra {
    font-size: x-large;
    display: none;
}

.custom-sidebar-nav li:hover > .custom-sidebar-sbarra, .custom-sidebar-selected > .custom-sidebar-sbarra {
    display: block;
    left: -5px;
}

/*.custom-sidebar-selected:hover > .custom-sidebar-sbarra > img {
    display: none;
}*/


.button.primary {
    background-color: #FFCC66;
    color: #000000;
    border-radius: 100rem;
    padding: .75rem 1.25rem;
    margin: 0.5rem;
    display: inline-block;
    text-align: center;
}

.button.primary:hover {
    background-color: #FFCC99;
    color: #000000;
}

.page-title {
    font-size: 1.5em;
    margin-bottom: 30px;
    border-bottom: 1px solid;
}

.cursor-pointer {
    cursor: pointer;
}

.informazioni-utente-img {
    height: 25px;
}


.informazioni-utente-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.edit-button:hover {
    background-color: #0056b3;
}

.edit-panel-button {
    display: block;
    width: 400px;
    padding: 5px;
    background-color: #4d98e2;;
    border: 1px solid;
    cursor: pointer;
    color: white;
    border-radius: 20px;
    margin: 20px auto;
}

.edit-panel-button:hover, .edit-panel-sendcode button:hover {
    background-color: #b9cfdf;
}

.resend-code {
    background-color: transparent;
    border-bottom: 1px solid;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.edit-panel-sendcode {
    flex-direction: column;
    margin: 20px auto;
    display: flex;
    width: min-content;
    padding: 10px;
    border-radius: 15px;
    gap: 1rem;
}

.edit-panel-sendcode input, .edit-panel-sendcode textarea {
    border: 1px solid transparent;
    outline: 0px;
    padding: 15px;
    border-radius: 15px;
    width: 300px;
    background: rgb(250, 250, 250);
}

.edit-panel-sendcode input:hover, .edit-panel-sendcode textarea:hover {
    border: 1px solid #4d98e2;
}

.edit-panel-sendcode button {
    background-color: #4d98e2;
    font-weight: bold;
    width: 300px;
    padding: 15px;
    border: 1px solid #fff;
    border-radius: 15px;
    color: white;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    gap: 1rem;
    margin-top: 20px;
}

.ticket-grid li {
    border-radius: 5px;
    background-color: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: black;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
}

.ticket-grid li:hover {
    background-color: #edf3f7;
}

.ticket-grid li img{
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    padding: 1rem;
}

.ticket-grid .add-ticket {
    background-color: transparent;
    border: 0.4rem solid white;
    border-style: double;
}

.ticket-grid .add-ticket:hover {
    background-color: #edf3f7;
}

/*---------------------------------------------------------PAGINA NUOVA SEGNALAZIONI---------------------------------------------------------*/


/*---------------------------------------------------------PAGINA SEGNALAZIONI---------------------------------------------------------*/


.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--navbar-height));
}

.chat-container > div:not(.informazioni-utente-titolo-mobile) {
    height: 100%; /* Compensa padding e margini */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 100%;
    padding: 10px 20px;
}

.messages {
    width: 100%;
    overflow-y: hidden;
    padding: 15px;
    background-color: #fff;
    border: 1px solid transparent;
    outline: 0px;
    padding: 15px 0px 0px 0px;
    border-radius: 15px 15px 0px 0px;
}

.messages > div {
    min-height: calc(45vh - var(--navbar-height));
    max-height: 100%;
    overflow-y: auto;
    padding: 0px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.messages > div::-webkit-scrollbar {
    width: 10px;
}

.messages > div::-webkit-scrollbar-track {
    background: #fff; /* Colore della pista */
}

.messages > div::-webkit-scrollbar-thumb {
    background-color: #b3b3b3; /* Colore della scrollbar */
    border-radius: 15px; /* Bordo arrotondato */
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    max-width: 70%;
    overflow-wrap: break-word;
}

.message > p{
    text-align: justify;
}

.message.user {
    background-color: #3f3f3f;
    align-self: flex-end;
}

.message.operator {
    background-color: #F7F7F7;
    color: #222222;
    align-self: flex-start;
}

.dettaglio-segnalazione-form {
    background-color: #fff;
    border-radius: 0px 0px 15px 15px;
    padding: 15px;
}

.dettaglio-segnalazione-form > div {
    background-color: #fff;
    border: 1px solid #4d98e2;
    border-radius: 15px;
    display: flex;
    min-height: 100%;
    max-height: 30vh;
}

.dettaglio-segnalazione-form > div:focus-within {
    border: 1.5px solid #4d98e2;
}

.dettaglio-segnalazione-form button {
    background-color: #fff;
    font-weight: bold;
    width: 100%;
    padding: 5px;
    border: 1px solid #fff;
    border-radius: 15px;
    color: white;
    max-height: 15vh;
    margin: auto;
}
.dettaglio-segnalazione-form textarea {
    width: 100%;
    resize: none;
    border: 1px solid transparent;
    outline: 0px;
    padding: 10px;
    border-radius: 15px 0px 0px 15px;
    background: #fff;
    overflow-y: auto;
    align-content: space-around;
    min-height: 60px; /* Altezza minima */
    max-height: 29vh; /* Altezza massima basata sul div genitore */
    height: auto; /* Imposta l'altezza iniziale */
}

.dettaglio-segnalazione-form textarea::-webkit-scrollbar {
    width: 0px;
}

.dettaglio-segnalazione-button-container {
    display: flex;
}

.dettaglio-segnalazione-button-container > button {
    margin-bottom: 0;
    min-height: 60px;
}

#visualizza-pagamenti table  {
    background-color: #fff;
    color: black;
    font-size: 13px;
    padding: 2.2vh;
    border-radius: 5px;
    width: 100%;
}

.table-container {
    width: 100%;
    overflow: auto;
    margin-bottom: 20px;
}

#visualizza-pagamenti table .table-title {
    font-size: 18px;
}

#visualizza-pagamenti th, td {
    padding: 1.6vh 1.8vh; /* Distanza interna delle celle */
    text-align: left; /* Allinea il testo a sinistra */
}

#visualizza-pagamenti table .table-card {
    padding: 6px;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
}

.bg-c-f3ac0b {
    background-color: #f3ac0b;
}

.bg-c-83e380 {
    background-color: #83e380;
}

#visualizza-pagamenti .cards-visa {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 2rem;
    margin-bottom: 20px;
}

#visualizza-pagamenti .cards-visa > div {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 200px;
    background-color: green;
    border-radius: 15px;
    padding: 20px;
    justify-content: space-between;
}

#visualizza-pagamenti .cards-visa img {
    width: 30px;
    cursor: pointer;    
}

.cards-visa .cards-visa-first-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.abbonamento-info {
    font-size: 13px;
    background-color: #fff;
    color: black;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.abbonamento-info div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 4.6vh;
}

.abbonamento-info-title {
    font-size: 18px;
    font-weight: 700;
}

.abbonamento-info-left {
    font-weight: 500;
}

.abbonamento-info button {
    padding: 7px;
    font-size: 13px;
    background-color: #4d98e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.abbonamento-info button:hover {
    background-color: #b9cfdf;
}

.abbonamento-call {
    width: 300px;
    min-height: 50vh;
    max-height: 100%;
    background-color: #fff;
    color: black;
    padding: 12px;
    border-radius: 10px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 3px solid #ad8b3a;
}

.abbonamento-call > p {
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto;
}

.abbonamento-call > div > div {
    display: flex;
    flex-direction: row;
    padding: 0px 15px;
}

.abbonamento-call > div > div > img {
    display: flex;
    margin: auto 0;
    height: 20px;
}

.abbonamento-call > div > div > p {
    padding: 10px 20px;
    text-align: justify;
}

.abbonamento-call .linea-1 {
    border-bottom: 1px solid gainsboro;
    margin: 20px 42px 10px;
}

.abbonamento-call .linea-2 {
    border-bottom: 1px solid gainsboro;
    margin: 10px 42px 10px;
}

.golden-color {
    background-image: linear-gradient(120deg, #ad8b3a 46%, #ddc079);
    color: #fff;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}


.cancel-confirmation-modal .button-group {
    display: flex;
    gap: 1rem;
    justify-content: end;
}

.cancel-confirmation-modal .button-group button  {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    background-color: #4d98e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cancel-confirmation-modal .button-group button:hover {
    background-color: #6f9dbe;
}

.cancel-confirmation-modal .button-group button.button-irreversible-action  {
    background-color: transparent;
    color: red;
    border: 1px solid red;
}

.cancel-confirmation-modal .button-group button.button-reversible-action  {
    background-color: transparent;
    color: #4d98e2;
    border: 1px solid #4d98e2;
}

.cancel-confirmation-modal .button-group button.button-irreversible-action:hover, .cancel-confirmation-modal .button-group button.button-reversible-action:hover {
    border: 1px solid #6f9dbe;
    color: #6f9dbe;
}


/*********************************************************** PAGINA CERCA ***********************************************************/

.cerca-container {
    background-color: #6f9dbe;
    padding-top: calc( var(--navbar-height) / 1.5 );
}

.cerca-container .container {
    padding-bottom: calc(var(--navbar-height) / 1.5);
}

.cerca-container .image-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 20px;
}

.cerca-container .image-container img {
    width: 200px;
    object-fit: contain;
    object-position: right;
    height: fit-content;
}

.cerca-container .image-container img.right {
    margin: auto 0;
    margin-bottom: 0;
}


.palla-cerca {
    background-color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    margin: auto 0;
    animation: bounce 0.9s infinite; /* Applica l'animazione bounce con durata di 2 secondi in loop infinito */
}

.palla-cerca.w-80 {
    width: 80px;
    height: 80px;
    animation-delay: 0s; /* Aggiunta di un ritardo di 1 secondo all'inizio dell'animazione */
}

.palla-cerca.w-90 {
    width: 90px;
    height: 90px;
    animation-delay: 0.3s; /* Aggiunta di un ritardo di 1 secondo all'inizio dell'animazione */
}

.palla-cerca.w-100 {
    width: 100px;
    height: 100px;
    animation-delay: 0.6s; /* Aggiunta di un ritardo di 1 secondo all'inizio dell'animazione */
}

.noMoreResults {
    font-size: 30px;
    font-weight: bold;
    padding: 20px;
    color: #fff;
    margin: auto 0;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Posizione di partenza e fine (al livello di base) */
    }
    50% {
        transform: translateY(-30px); /* Muove l'elemento 30px verso l'alto */
    }
}

/* Media Queries */

@media (max-width: 720px) {

    .custom-sidebar {
        width: 100%;
    }

    .custom-content {
        display: none;
        width: 100%;
        padding: 0px;
    }


    .custom-sidebar > nav {
        border-radius: 0px;
    }



    .wid-500 > input, .wid-500 > textarea, .wid-500 > button {
        width: 400px;
    }

    .chat-container > div:not(.informazioni-utente-titolo-mobile) {
        height: calc(100% - 3.5rem); /* Compensa padding e margini */
    }

    .chat-container > div:not(.informazioni-utente-titolo-mobile) {
        padding: 0px;
    }

    .messages, .dettaglio-segnalazione-form {
        border-radius: 0px;
    }

    #visualizza-pagamenti .cards-visa {
        justify-content: center;
    }

    .palla-cerca.w-80, .palla-cerca.w-90, .palla-cerca.w-100 {
        width: 50px;
        height: 50px;
    }

    .noMoreResults {
        font-size: 18px;
        font-weight: bold;
        padding: 20px;
        color: #fff;
        margin: auto;
    }
}

/* Stili per dispositivi mobili in orientamento orizzontale */
@media (max-width: 500px) and (pointer: coarse), (max-width: 500px) and (hover: none), (max-width: 500px) and (orientation: landscape) {
    .hero-container {
        height: 100vh;
    }

    .hero-container-man {
        height: auto;
    }
}

@media (max-width: 350px) {

    .pin-verification-modal input {
        width: 200px;
    }

    .wid-500 > input, .wid-500 > textarea, .wid-500 > button {
        width: 200px;
    }
}

/* Form */

.char-counter {
    width: 100%;
    text-align: right;
    color: #333333;
    margin-top: .5rem;
}

.char-counter.red {
    color: #EE0000;
}

input:hover {
    border: 1px solid #000000;
}




.error-messages ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

input.error {
    border: 1px solid #EE0000;
}

.error-container {
    background-color: #000000;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 1.25rem;
}

.tweet-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    margin-bottom: .75rem;
}

label {
    display: block;
}


.username {
    font-size: 1rem;
    color: #000000;
    font-weight: 600;
}


/* Footer, Media Queries e Keyframes */
footer {
    text-align: center;
    color: #FFFFFF;
}

.cookies {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    color: #FFFFFF;
    text-align: center;
    z-index: 20;
    padding: 1.25rem;
}

.cookies button {
    font-weight: 500;
    color: #FFFFFF;
    border: 1px solid #FFFFEE;
    padding: .25rem .5rem;
    border-radius: .5rem;
    background-color: #000000;
    margin-left: .75rem;
    text-align: center;
}

.cookies button:hover {
    border: 1px solid #FFFFFF;
}

.no-script {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FFFFFF;
    color: #000000;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

