h1, h2, h3, h4, h5, h6 {
    font-family: "Luckiest Guy";
}

p {
    font-family: Roboto;
}

a {
    text-decoration: none;
    color: #D8054C;
}

td {
    text-transform: math-auto;
    width: auto;
}

.table-auto-width td {
    width: auto;
}

.header {
    background-color: #333333;
}

.area-riservata {
    display: grid;
    align-items: center;
}

.btn_1 {
    background-color: #D8054C;
    transition: 0.5s;
    color: white;
    padding: 5px 15px;

}

.btn_5 {
    background-color: #D8054C;
    transition: 0.5s;
    color: white;
    padding: 5px 15px;

}

.btn_1:hover {
    background-color: #333333;
    color: #D8054C;
    border: solid 1px #D8054C;
}

.btn_5:hover {
    background-color: #333333;
    color: #D8054C;
    border: solid 1px #D8054C;
}

.btn_3 {
    background-color: #333333;
    transition: 0.5s;
    color: white;
    padding: 9px 6px;
    width: 220px;
    font-family: Roboto !important;
}

.btn_3:hover {
    background-color: #D8054C;
    color: white;
    border: solid 1px #333333;
}

.btn_4 {
    background-color: #333333;
    transition: 0.5s;
    color: white;
    padding: 5 15px;
    width: 174px;
    font-family: Roboto !important;
}

.btn_4:hover {
    border: solid 1px #333333;
}

#scadenzaDate {
    border: 1px solid gray;
}

#salvaScadenza {
    border: none;
}

.bg-dark {
    transition: 0.5s;
    background-color: #333333 !important;

}

.bg-dark-classe {
    transition: 0.5s;
    background-color: #333333 !important;
margin:0px 11px;
}

.bg-dark:hover {
    background-color: #D8054C!important;
    color: white !important;
    border:solid 1px #333333 !important;
}

.bg-dark-classe a {
    border: solid 1px white;
}

.bg-dark-classe a:hover {
    border: solid 1px white;
    background-color: #D8054C;
}

.btn_2 {
    background-color: #D8054C;
    transition: 0.5s;
    color: white;
    padding: 15px;
    border-radius: 0px;
    /* margin-top: 15px;*/
    font-family: Roboto;
}

.btn_2:hover {
    background-color: #333333;
    color: #D8054C;
    border: solid 1px #D8054C;
}

.btn_log {
    background: white;
    color: #d8054c;
    transition: 0.5s;
    font-family: Roboto;
    padding: 5px 15px;
}

.btn_log:hover {
    background-color: #333333;
    color: #D8054C;
    border: solid 1px #D8054C;
}

.logout img {
    width: 20%;
}

.img-fluid {
    width: 100%;
}

.logo {
    padding: 10px;
}

.testata {
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0px 10px 13px -7px #000000, 2px 4px 16px 10px rgba(0,0,0,0);
}
.testata img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.titolo span {
    color: #D8054C;
}

.testi span {
    color: #D8054C;
    font-weight: 600;
}

.card {
    border: none;
    margin-bottom: 15px;
}

.card_completo {
    border: none;
    margin-bottom: 15px;
    transition: opacity 0.3s ease-in-out;
}

.card_completo:hover {
    opacity: 0.5;
    cursor: not-allowed;
}

.card_completo a {
    /* Stili esistenti per i link */
    pointer-events: auto; /* Assicura che i link siano cliccabili di default */
}

.card_completo:hover a {
    pointer-events: none; /* Disabilita i click sui link all'hover della card */
    cursor: default; /* Cambia il cursore per indicare che non è cliccabile */
}

.sconto_selezionato {
    background: #d8054c;
    color: white !important;
}

.contenitore-footer {
    background-color: #333333;
}

.contenitore-footer h6 {
    text-transform: uppercase;
    color: white;
    padding: 30px;
    font-size: 22px;
}

.contenitore-footer span {
    color: #D8054C;
}

.my-4 {
    color: white;
}

.contenitore-footer p {
    color: white;

}

.contenitore-footer .form-label {
    color: black;
    text-align: left !important;
}

.contenitore-footer .form_contatti {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    margin: 10px;
    width: 48%;
    box-shadow: 5px 5px 7px -1px #ABABAB;
}

.newsletter {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 10px;
    width: 48%;
    box-shadow: 5px 5px 7px -1px #ABABAB;
}

.newsletter img {
    width: 180px;
}

.social img {
    width: 3%;
}

/*
.prenotazione {
    position: absolute;
    top: 20%;
    left: 25%;
    line-height: normal;
}
.prenotazione h5 {
    font-size: 25px;
}

.prenotazione p {
    font-size: 18px;
}
*/

.card {

    position: relative;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: auto;
}

.card-body.prenotazione {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    z-index: 1;
}

.card-body.prenotazione a {
    color:black;
}

.card-body.prenotazione h5 {
    margin-bottom: 10px;
    font-size: 24px;
}

.prenotazione_anno {
    position: absolute;
    top: 17%;
    left: 0%;
}

.prenotazione_anno h5 {
    font-size: 25px;
}

.prenotazione_anno p {
    font-size: 17px;
    color: black;
}

.prenotazione_anno img {
    width: 60%;
    transition: transform .5s ease;
}

.prenotazione_anno img:hover {
    transform: scale(1.2);
}

.descrizione_classe {
    color:black !important;
}

.bg-dark {
    margin: 0px 11px;
}

.sfondo-grigio {
    background-color: #ECECEC;
}

.login {
    background: #d8054c;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 5px 5px 7px -1px #ABABAB;
    width: 48%;
    margin: 10px;
}

.vai_corsi a {
    color: #D8054C;
}

.login-admin {
    background: #d8054c;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 5px 5px 7px -1px #ABABAB;

}

.admin {
    min-height: 600px;
}

.registrazione {
    background: #333333;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 5px 5px 7px -1px #ABABAB;
    width: 48%;
    margin: 10px;
}

.login h3 {
    color: white;
}

.corso-card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.corso-img-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa; /* Placeholder background */
}

.corso-img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image covers the container */
}

.corso-body {
    padding: 1rem;
}

.corso-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.sezione-pagamenti {
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.5rem;
}

.titolo-sezione {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #343a40;
}

.rata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.rata:last-child {
    border-bottom: none;
}

.stato-pagato {
    color: #28a745; /* Verde per pagato */
    font-weight: bold;
}

.stato-da-pagare {
    color: #dc3545; /* Rosso per da pagare */
    font-weight: bold;
}

.totale {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #343a40;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
}

.registrazione h3 {
    color: white;
}

.registrazione p {
    color: white;
}

.registrazione li {
    color: white;
}

.form_registrazione label {
    font-weight: 700;
    color: #d8054c;
}

.tab_generale {
    background-color: #D8054C;
    padding: 0px;
    min-height: 900px;
}

.accordion-side {
    font-family: Roboto;
}

.accordion-body li {
    padding-left: 40px;
}

.accordion-header {
    border: none;
    color: white;
}

.accordion-button {
    background: #d8054c;
    color: white;
    border-radius: 0px !important;
}

.accordion-item {
    border: none;
}

.list-group-item.active {
    background: #d8054c;
    color: white;
    border-top: solid 2px #ffffff;
    border-bottom: solid 2px;
}

.list-group-item {
    background-color: #d8054c;
    border: none;
    color: white;
    transform: 0.5s;
}

.list-group-item:hover {
    background-color: #af023c;
}

.list-group-item a {
    color: white;
}

.logout {
    background: #333333;
    color: white;
}

.list-group-item.active::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 15px 15px 15px 15px;
    border-color: transparent transparent transparent #d8054c !important;
}

.accordion-item:first-of-type > .accordion-header .accordion-button {
    border-radius: 0px;
    background: #d8054c;
    color: white;
}

.accordion-body {
    padding: 0px;
    margin: 0px;
}

.pannello_gestione_info {
    padding: 0px 30px;
}

.accordion-button:not(.collapsed) {
    background-color: white;
}

.pannello_gestione h3 {
    color: white;
}

.modifica img {
    transition: transform 0.3s ease;
    width: 20px;
}

.modifica:hover img {
    transform: scale(1.2);
}

.modifica_corso a {
    font-family: roboto;
    color: #d8054c;
    font-size: 17px !important;
}

.mediatica a {
    font-family: roboto;
    font-weight: 600;
    color: white;
    font-size: 15px;
}

.mediatica {
    background-color: black;
}

.social img {
    width: 40px;
    height: 40px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%; /* opzionale: rotondità */
}

.social a:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(216, 5, 76);
}

.corso span {
    color: #d8054c;
}

.table th {
    /*width: 226px;*/
    background: #c1c0c0;
}

.card-tessera {
    background-color: transparent;
    width: 300px;
    height: 200px;
    height: 200px;
}


.card-tessera {
    background-color: #ECECEC;
    color: white;
    transform: rotateY(180deg); /* Ruota il retro di 180 gradi inizialmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px; /* Bordo arrotondato opzionale */
}

.card-tessera p {
    margin: 5px 0;
    color: black;
}

.card-tessera h5 {
    color: black;
}

.card-tessera span {
    color: #d8054c;
    font-weight: 900;
}

.tessera {
    justify-content: center !important;
}

.iscritti_corso {
    background: #f1f1f1;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 5px 5px 7px -1px #ABABAB;
}

.iscritti_prova {
    background: #f1f1f1;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 5px 5px 7px -1px #ABABAB;
}

.tab-utenti a {
    font-family: 'Roboto';
    color: #333333;
    font-weight: bold;
    transition: 0.5s;
}

.vedi_slot a {
    font-family: 'Roboto';
    color: #333333;
    font-weight: bold;
    transition: 0.5s;
}

.tab-utenti a:hover {
    color: #d8054c;
}

.tab-utenti img:hover {
    transform: scale(1.3);
}

.tab-utenti span {
    color: #d8054c;
    text-transform: uppercase;
    font-size: 14px;
}

.modulo_tessera img {
    width: 11%;
}

.paga_tessera img {
    width: 19%;
}

.vedi_slot img {
    width: 30px;
    transition: 0.5s;
}

.vedi_slot img:hover {
    transform: scale (1.1) !important;
}

.prova img {
    width: 20px;
}

.nuovo_costo {
    margin-top: 30px;
}

.nuovo_costo span {
    font-size: 18px;
    font-weight: bold;
    color: #d8054c;
}

.box_rate span {
    font-size: 18px;
    font-weight: bold;
    color: #d8054c;
}

.importo_sottratto span {
    margin-top: 30px;
    font-size: 18px;
    font-weight: bold;
    color: #d8054c;
}

.rate .form-label {
    font-weight: bold;
}

.elenco_corsi td {
    color: #d8054c;
    font-weight: 700;
}

.edit_slot .form-label {
    color: #d8054c;
    font-weight: 700;
}

.pagamenti_rate img {
    width: 50%;
}

.pagamenti_rate p {
    font-size: 13px;
    text-align: center;
    font-weight: 700;
}

.form-label {
    margin-bottom: .5rem;
    font-family: roboto;
    color: #d8054c;
    font-size: 17px !important;
    font-weight: bold;
}



.ordinameto {
    width: 30px;
    margin-right: 10px;
}

/* --- Personalizzazione del Tooltip --- */

.my-tooltip-button .fa-info-circle {
    margin-left: 8px;
}


.my-tooltip-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #D8054C;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
}


.my-tooltip-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #D8054C;
    border: none;
    cursor: pointer;
    width: 100%;
}

.my-custom-tooltip {
    background-color: white;
    opacity: 1 !important;
}

.tooltip.my-custom-tooltip .tooltip-inner {
    background-color: white;
    opacity: 1 !important;
    color: black;
    max-width: 350px;
    min-width: 250px;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.tooltip.my-custom-tooltip .tooltip-arrow::before {
    border-color: white transparent transparent transparent;
}


.tooltip.my-custom-tooltip[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: whit transparent transparent transparente;
}
.tooltip.my-custom-tooltip[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: white transparent transparent transparent;
}
.tooltip.my-custom-tooltip[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: white transparent transparent transparent;
}
.tooltip.my-custom-tooltip[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color:  transparent transparent transparent white;
}

.tooltip.my-custom-tooltip span{
    font-weight:800;
    color:#D8054C;
}

.filtro{
    border: solid 1px #dfe3e7;
    padding: 10px;
    border-radius: 3px;
}

.briciole p{
    color: #D8054C;
    margin-bottom: 0px;
    font-size: 15px;
}

.w-69 {
    width: 69% !important;
}

.text-bg-success {
  margin-right: 10px;
}
#richieste_da_gestire span {
    color:yellow !important;
}

.bg-danger {
    --bs-bg-opacity: 1;
    background-color: yellow !important;
}
.popover-body a {
    color:black;
    transition: 0.2s;
}

.popover-body a:hover {
    color:#D8054C;
    font-weight: 600;
}

.richieste {
    display: grid;
    align-items: center;
}

.rata input:disabled {
    cursor: not-allowed;
    background: #c3c3c3;
}


/* MEDIA QUERIES */
@media (min-device-width: 240px) and (max-device-width: 767px) {

    .pannello_gestione {
        margin: 0px;
    }

    .btn_log {
     margin-bottom: 2px;
    }

    .log-in a{
        margin-bottom: 15px;
    }

    .w-69 {
        width: 95% !important;
    }

    .list-group-item.active::after {
        right: 0px;
    }


    .testata {
        height: 125px;
    }

    .prenotazione_anno {
        top: 15%;
    }
    .prenotazione_anno p {
        font-size: 15px;
    }

    .bg-dark-classe {
        margin: 0px 10px;
    }

    .sconto {
        margin-bottom: 15px;
    }

    .modulo_tessera img {
        width: 25%;
    }

    .paga_tessera img {
        width: 31%;
    }

    .paga_tessera {
        margin-top: 30px;
    }

    .my-button {
        width: 100%;
    }

    .btn_1 {
        width: 92%;
        margin: 15px;
    }

    .btn_5 {
        width: 92%;
        margin: 0px;
    }

    .card {
        border: none;
        margin-top: 30px;
    }

    .social img {
        width: 10%;
    }

    .tab_generale {
        min-height: 300px;
    }

    .btn_3 {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
        text-align: center;
        font-family: Roboto !important;
    }

    .table th {
        width: 160px;
    }

    .rata {
        display: table-footer-group;
    }

    .login {
        width: 95%;
    }

    .registrazione {
        width: 95%;
    }

    .newsletter {
        width: 95%;
    }

    .contenitore-footer .form_contatti {
        width: 95%;
    }

    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    .tooltip-container .tooltip-text.active {
        visibility: visible;
        opacity: 1;
    }

    .totale{
        display: inherit;
    }

}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .prenotazione_anno {
        top: 13%;
    }
    .prenotazione_anno p {
        font-size: 14px;
    }
    .bg-dark-classe {
        margin: 0px 9px;
    }
}