.opt_img_with_check {
    width: 200px;
    padding: 10px;
    margin-block: 10px;
    background-color: rgb(201, 201, 201);
}

.opt_img_with_check img {
    width: 100%;
}

.wpcf7-file::-webkit-file-upload-button {
    visibility: hidden;
}

.wpcf7-file::before {
    content: 'Seleziona file';
    display: inline-block;
    background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px 8px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 1px 1px #fff;
    font-weight: 700;
    font-size: 10pt;
}

.wpcf7-file:hover::before {
    border-color: black;
}

.wpcf7-file:active::before {
    background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}

/*ANCHOR - Campi custom */
/*ANCHOR - Galleria */
.campo-galleria-anteprima {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.galleria-thumb {
    position: relative;
    cursor: move;
}

.galleria-thumb img {
    display: block;
    width: 100px;
    height: auto;
    border-radius: 4px;
}

.galleria-thumb .rimuovi-immagine {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d00;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sortable-placeholder {
    width: 100px;
    height: 100px;
    border: 2px dashed #aaa;
    background: #f7f7f7;
}