* { box-sizing: border-box; }

body {
    margin: 0;
    background: #fdf2f6;
    color: #2a1520;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
}
a { color: #c2185b; }

/* --- Barra superiore --- */
.barra {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid #f3d6e3;
}
.marchio { font-family: 'Montserrat', Arial, sans-serif; font-weight: 900; font-size: 17px; color: #2a1520; text-decoration: none; }
.marchio span { color: #e91e7a; font-weight: 800; }
.barra nav { display: flex; flex-wrap: wrap; gap: 18px; }
.barra nav a { text-decoration: none; font-weight: 500; }

.pagina { max-width: 1300px; margin: 0 auto; padding: 24px 16px 48px; }

.etichetta {
    color: #c2185b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.etichetta a { text-decoration: none; }
h1 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 900; font-size: 28px; margin: 0 0 6px; }
.info { color: #6b5560; margin: 0; }

.intestazione { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

/* --- Riepilogo --- */
.riepilogo { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.riepilogo div {
    flex: 1 1 160px;
    background: #fff;
    border: 1px solid #f3d6e3;
    border-radius: 14px;
    padding: 14px 18px;
    color: #6b5560;
}
.riepilogo span { display: block; font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: 24px; color: #e91e7a; }

/* --- Ricerca --- */
.ricerca { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.ricerca input { flex: 1 1 260px; max-width: 420px; }

/* --- Tabella --- */
.tabella-contenitore { overflow-x: auto; background: #fff; border: 1px solid #f3d6e3; border-radius: 14px; }
.tabella { width: 100%; border-collapse: collapse; }
.tabella th, .tabella td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #f7e4ec; }
.tabella th { background: #fff7fa; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b5560; }
.tabella tbody tr:hover { background: #fffafc; }
.tabella .num { text-align: right; }
.tabella .vuoto { text-align: center; color: #6b5560; padding: 30px; }
.nowrap { white-space: nowrap; }
.azione { font-weight: 700; text-decoration: none; white-space: nowrap; }
.azione + .azione { margin-left: 12px; }
.azione.elimina { color: #d32f2f; }
.azione.sinistra { margin-right: auto; align-self: center; }

/* --- Conferma cancellazione --- */
.attenzione { background: #fdecea; color: #b71c1c; border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }
.dettaglio { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0 0 24px; }
.dettaglio dt { font-weight: 700; color: #6b5560; }
.dettaglio dd { margin: 0; }
.bottone.pericolo { background: #d32f2f; }
.bottone.pericolo:hover { background: #b71c1c; }

/* --- Form --- */
.scheda {
    background: #fff;
    border: 1px solid #f3d6e3;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(233, 30, 122, .06);
}
.login { max-width: 380px; margin: 60px auto 0; }
.modifica { max-width: 640px; }
.riga { display: flex; gap: 14px; }
.riga .campo { flex: 1; min-width: 0; }
.campo { margin-bottom: 16px; }
label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=search], input[type=number], textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #f0d4e1;
    border-radius: 10px;
    background: #fff7fa;
    font: inherit;
    color: inherit;
}
input.corto { width: 90px; margin-right: 12px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus { outline: none; border-color: #e91e7a; background: #fff; }
.quota { color: #6b5560; }
.quota strong { color: #e91e7a; }

.bottone {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 30px;
    background: #e91e7a;
    color: #fff;
    font: 700 14px 'DM Sans', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.bottone:hover { background: #d0156a; }
.bottone.piccolo { padding: 9px 18px; }
.bottone.secondario { background: #fff; color: #c2185b; border: 1px solid #f0d4e1; }
.login .bottone { width: 100%; }
.pulsanti { display: flex; justify-content: flex-end; gap: 10px; }

/* --- Messaggi --- */
.errore, input.errore, textarea.errore { border-color: #d32f2f !important; background: #fff4f4; }
.msg-errore { display: block; color: #d32f2f; font-size: 12px; margin-top: 5px; }
.avviso { background: #fdecea; color: #b71c1c; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.conferma { background: #e8f5e9; color: #1b5e20; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }

@media (max-width: 600px) {
    .riga { flex-direction: column; gap: 0; }
    .scheda { padding: 20px 16px; }
}
