/* ============================================================
   FILE: /public/css/miniatura.css  (aggiornamento 78)
   Finestra per scegliere la miniatura di una persona.
   ============================================================ */
.gmin-sfondo {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
}
.gmin-finestra {
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    max-height: 94vh;
    overflow-y: auto;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    color: #222;
    text-align: center;
}
.gmin-titolo { margin: 0 0 6px; font-size: 1.3rem; }
.gmin-aiuto { margin: 0 0 10px; font-size: 1rem; line-height: 1.35; }
.gmin-altre { margin-bottom: 4px; font-weight: 700; }

.gmin-fila {
    display: flex;
    gap: 8px;
    margin: 0 0 10px;
    padding-bottom: 4px;
    overflow-x: auto;
}
.gmin-fila-foto {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
    overflow: hidden;
}
.gmin-fila-foto.scelta { border-color: var(--oro-scuro); }
.gmin-fila-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gmin-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;           /* l'ombra del cerchio non esce dalla foto */
    border-radius: 8px;
    touch-action: none;         /* il dito sposta il cerchio, non la pagina */
    user-select: none;
    -webkit-user-select: none;
    background: #ddd;
    line-height: 0;
}
.gmin-img {
    display: block;
    max-width: 100%;
    max-height: 46vh;
    width: auto;
    height: auto;
    -webkit-user-drag: none;
}
.gmin-cerchio {
    position: absolute;
    display: none;
    box-sizing: border-box;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    cursor: grab;
    touch-action: none;
}

.gmin-cursore-et {
    display: block;
    margin: 12px 0 4px;
    font-weight: 700;
    font-size: 0.95rem;
}
.gmin-cursore {
    display: block;
    width: 100%;
    height: 34px;
    margin-top: 2px;
    accent-color: var(--oro-scuro);
}
.gmin-stato { min-height: 1.3em; margin: 6px 0; font-size: 0.95rem; }
.gmin-bottoni {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.gmin-bottoni .btn-form { min-height: 44px; }

/* Il pulsante nella pagina "La storia di ..." */
.persona-miniatura-btn {
    display: inline-block;
    margin: 12px 0 0 8px;
    padding: 12px 18px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid var(--oro-chiaro);
    background: transparent;
    color: var(--oro-chiaro);
    cursor: pointer;
}
