.button_generic {
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-block;
}

.button_wrap {
    width: 50%;
    white-space: nowrap; /* Impedisce che il testo vada a capo */
    overflow: hidden; /* Nasconde il contenuto che esce dall'elemento */
    text-overflow: ellipsis;
    display: inline-block;
}

.button_full{
    width: 100%;
    display: block;
}

/*--- COLORS ---*/
.button_text_black {
    color: #1E1E1E;
    background-color: white;
    border: 1px solid #79747e;
}

.button_text_black:hover,
.button_text_black:focus,
.button_text_black.active {
    color: white;
    background-color: #1E1E1E;
}

.button_bg_black {
    color: white;
    background-color: #1E1E1E;
    border: 1px solid #79747e;
}

.button_bg_black:hover,
.button_bg_black:focus,
.button_bg_black.active {
    color: #1E1E1E;
    background-color: white;
}

.button_text_red {
    color: red;
    background-color: white;
    border: 1px solid red;
}

.button_text_red:hover,
.button_text_red:focus,
.button_text_red.active {
    color: white;
    background-color: red;
}

.button_bg_red {
    color: white;
    background-color: red;
    border: 1px solid red;
}

.button_bg_red:hover,
.button_bg_red:focus,
.button_bg_red.active {
    color: red;
    background-color: white;
}

.button_text_green {
    color: #2A9F0F;
    background-color: white;
    border: 1px solid #2A9F0F;
}

.button_text_green:hover,
.button_text_green:focus,
.button_text_green.active {
    color: white;
    background-color: #2A9F0F;
}

.button_bg_green {
    color: white;
    background-color: #2A9F0F;
    border: 1px solid #2A9F0F;
}

.button_bg_green:hover,
.button_bg_green:focus,
.button_bg_green.active {
    color: #2A9F0F;
    background-color: white;
}

.button_text_blue {
    color: #007AFF;
    background-color: white;
    border: 1px solid #007AFF;
}

.button_text_blue:hover,
.button_text_blue:focus,
.button_text_blue.active {
    color: white;
    background-color: #007AFF;
}

.button_text_green_bg_grass {
    color: #2A9F0F;
    background-color: #CFF7D3;
    border: 1px solid #CFF7D3;
}

.button_text_green_bg_grass:hover,
.button_text_green_bg_grass:focus,
.button_text_green_bg_grass.active {
    color: #2A9F0F;
    background-color: #CFF7D3;
}

.button_text_grey {
    color: #1E1E1E;
    background-color: #F3F3F3;
    border: 1px solid #F3F3F3;
}

.button_text_grey:hover,
.button_text_grey:focus,
.button_text_grey.active {
    color: #1E1E1E;
    background-color: #F3F3F3;
}

.button_bg_blue {
    color: white;
    background-color: #007AFF;
    border: 1px solid #007AFF;
}

.button_bg_blue:hover,
.button_bg_blue:focus,
.button_bg_blue.active {
    color: #007AFF;
    background-color: white;
}

.button_bg_blue_no_hover {
    color: white;
    background-color: #007AFF;
    border: 1px solid #007AFF;
}

.button_text_purple {
    color: #7030A0;
    background-color: white;
    border: 1px solid #7030A0;
}

.button_text_purple:hover,
.button_text_purple:focus,
.button_text_purple.active {
    color: white;
    background-color: #7030A0;
}

.button_bg_purple {
    color: white;
    background-color: #7030A0;
    border: 1px solid #7030A0;
}

.button_bg_purple:hover,
.button_bg_purple:focus,
.button_bg_purple.active {
    color: #7030A0;
    background-color: white;
}

/*--- IMAGE ---*/
.button_image {
    color: #1E1E1E;
    background-color: white;
    border: 1px solid #79747e;
    margin: 2px 2px 2px 2px;
}

.button_image span{
    font-size: 17px;
}

.button_image:hover,
.button_image:focus,
.button_image.active {
    color: #007AFF;
    background-color: white;
    border: 1px solid #007AFF;
}

/*--- WIZARD ---*/
.button_wizard {
    display: block;
    margin-bottom: 10px;
}

.button_wizard.button_bg_blue{
    text-align: left;
}

/*--- TAG ---*/
.button_tag_generic {
    border-radius: 10px;
    text-decoration: none;
    color: #02542D;
    background-color: #CFF7D3;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.button_tag_full {
    width: auto;
    margin: 0px 10px 30px 10px;
    padding: 10px;
}

.button_tag_big {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0px 0px 10px 10px;
    padding: 5px 8px 5px 8px;
}

.button_tag_small {
    display: inline-block;
    width: auto;
    height: auto;
    margin-left: 10px;
    padding: 5px 8px 5px 8px;
    font-size: 12px;
}

/*--- TOOLTIP ---*/
.button_tooltip_outer {
    display: inline-block;
    position: relative;
    width: 100%;
}

.button_tooltip_outer .button_tooltip_inner {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    top: 50%;
    right: 105%; /* spostato a sinistra */
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #2c5fa9;
    border-radius: 12px;
    padding: 8px 12px;
    width: 220px;
    font-size: 13px;
    line-height: 1.3;
    color: #000;
    z-index: 10;
    text-align: left;
}

/* triangolino a destra */
.button_tooltip_outer .button_tooltip_inner::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: tranprincipalnt tranprincipalnt tranprincipalnt #2c5fa9;
}

/* visibile quando hover */
.button_tooltip_outer:hover .button_tooltip_inner {
    visibility: visible;
    opacity: 1;
}

/*--- ALTRO ---*/
.button_bread {
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    color: #02542D;
    background-color: #FFFBEB;
}

.button_short {
    padding: 0 10px 0 10px;
    font-size: 15px;
}