/* Pannello di gestione annunci. Riusa le variabili di stile.css. */

.pannello-testata {
  background: var(--blu); color: var(--bianco); padding: 1rem 0;
}
.pannello-testata .contenitore { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.pannello-testata img { height: 38px; width: auto; background: var(--bianco); border-radius: 6px; padding: 3px 6px; }
.pannello-testata .titolo { font-weight: 700; margin-right: auto; }
.pannello-testata a, .pannello-testata button.collegamento {
  color: rgba(255,255,255,.85); font-size: .92rem; background: none; border: 0; cursor: pointer; font: inherit;
}
.pannello-testata a:hover, .pannello-testata button.collegamento:hover { color: var(--bianco); }

.pannello { padding: 2.5rem 0 4rem; background: var(--sfondo); min-height: 70vh; }
.barra { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.barra h1 { margin: 0; font-size: 1.6rem; margin-right: auto; }

.tabella { width: 100%; border-collapse: collapse; background: var(--bianco); border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra); }
.tabella th, .tabella td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--bordo); font-size: .94rem; vertical-align: middle; }
.tabella th { background: var(--sfondo); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grigio); }
.tabella tr:last-child td { border-bottom: 0; }
.tabella img { width: 62px; height: 46px; object-fit: cover; border-radius: 5px; }
.tabella .azioni-riga { display: flex; gap: .5rem; justify-content: flex-end; }

.pillola { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pillola-si { background: #e7f6ec; color: #17603a; }
.pillola-no { background: #f1f3f5; color: var(--grigio); }

.bottone-piccolo { padding: .42rem .85rem; font-size: .86rem; border-radius: 7px; }
.bottone-rosso { background: #fff; color: #9b1c1c; border-color: #f0c8c8; }
.bottone-rosso:hover { background: #9b1c1c; color: #fff; border-color: #9b1c1c; }

.riquadro { background: var(--bianco); border-radius: var(--raggio); box-shadow: var(--ombra); padding: 2rem; margin-bottom: 1.6rem; }
.riquadro h2 { font-size: 1.15rem; color: var(--blu); }
.campi { display: grid; gap: 1rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.campo-largo { grid-column: 1 / -1; }
.campo .aiuto { font-weight: 400; color: var(--grigio); font-size: .82rem; }

.foto-griglia { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.foto-voce { position: relative; border: 1px solid var(--bordo); border-radius: 8px; overflow: hidden; background: var(--sfondo); }
.foto-voce img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.foto-voce .comandi { display: flex; gap: .3rem; padding: .4rem; justify-content: center; }
.foto-voce .comandi button { border: 1px solid var(--bordo); background: var(--bianco); border-radius: 5px; cursor: pointer; padding: .2rem .5rem; font-size: .8rem; }
.foto-voce .comandi button:hover { background: var(--sfondo); }
.foto-voce .copertina { position: absolute; top: .4rem; left: .4rem; background: rgba(14,44,71,.9); color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

.accesso { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--blu); padding: 1.5rem; }
.accesso form { background: var(--bianco); padding: 2.5rem; border-radius: var(--raggio); width: min(400px, 100%); box-shadow: var(--ombra-alta); }
.accesso img { height: 52px; width: auto; margin-bottom: 1.4rem; }
.accesso h1 { font-size: 1.3rem; color: var(--blu); }
.accesso p.sotto { color: var(--grigio); font-size: .9rem; margin-bottom: 1.6rem; }
