/* WRAPPER */
.rubrica-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* GRID */
.rubrica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* CARD */
.rubrica-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* INPUTS */
.rubrica-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* FONTE COLORATA (TESTO) */
.fonte-cartello,
.fonte-acquisizione,
.fonte-richiesta {
    font-weight: 600;
}

/* FONTE COLORATA (BADGE) */
.fonte-cartello { background: #ff8800; color: white; padding: 3px 8px; border-radius: 4px; }
.fonte-acquisizione { background: #0066cc; color: white; padding: 3px 8px; border-radius: 4px; }
.fonte-richiesta { background: #00aa55; color: white; padding: 3px 8px; border-radius: 4px; }
.fonte-rubrica { background: #666; color: white; padding: 3px 8px; border-radius: 4px; }

/* PULSANTI ACTIS */
.btn-actis {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-actis-primary {
    background: #003366;
    color: white;
}
.btn-actis-primary:hover {
    background: #00509e;
}

.btn-actis-secondary {
    background: #003366;
    color: white;
    border: 1px solid #d1d5db;
}
.btn-actis-secondary:hover {
    background: #00509e;
}

.btn-actis-danger {
    background: #b30000;
    color: white;
}
.btn-actis-danger:hover {
    background: #cc0000;
}

/* AZIONI RUBRICA */
.rubrica-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

/* LISTA CONTATTI */
.rubrica-lista {
    margin-top: 20px;
    padding: 0 20px;   /* 🔥 spazio laterale */
}

.rubrica-riga {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;                 /* riga alta ma non esagerata */
    border-bottom: 1px solid #e5e5e5;
}

/* NOME E TELEFONO — PULSANTI INVISIBILI */
.rubrica-nome-btn,
.rubrica-tel-btn {
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 22px;                 /* 🔥 più equilibrato */
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

/* NOME */
.rubrica-nome-btn {
    color: #003c9e;
}

/* NUMERO */
.rubrica-tel-btn {
    color: #222;
    margin-left: 40px;               /* 🔥 più armonioso */
}


/* LISTA SCHEDE */
.schede-lista {
    margin-top: 20px;
}

.scheda-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #fafafa;
}

.scheda-card label {
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.scheda-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.scheda-line {
    margin: 6px 0;
    font-size: 14px;
}