body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #EDF2F4;
  color: #2B2D42;
}

a { color: #E63946; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #ddd;
}

.logo a {
  font-weight: 800;
  font-size: 22px;
  color: #E63946;
}

.main-nav a {
  margin-left: 15px;
  font-weight: 500;
  color: #2B2D42;
}

.content {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #8D99AE;
}

.site-footer a { color: #E63946; }

.credits { margin-top: 5px; }

.annunci-list, .annuncio-singolo {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.annuncio-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.annuncio-item:last-child {
  border-bottom: none;
}

.annuncio-item h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.annuncio-meta {
  font-size: 13px;
  color: #8D99AE;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  background: #E63946;
  color: #fff;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn.secondary {
  background: #8D99AE;
}

.btn.small {
  font-size: 12px;
  padding: 6px 10px;
}

form label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea,
form select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: #8D99AE;
  margin-top: 5px;
}

.flash {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}

.flash.success { background: #d8f5d2; color: #245c1c; }
.flash.error { background: #ffd4d4; color: #7b1f1f; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  text-align: left;
  background: #f7f7f7;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

.login-box {
  max-width: 360px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 10px;
  }
}

/* css aggiuntivo per style HOME */

/* HERO */
.hero {
  background: linear-gradient(135deg, #E63946, #ef726d);
  color: #fff;
  padding: 50px 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.hero-inner h1 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 800;
}

.hero-inner p {
  font-size: 18px;
  opacity: 0.9;
}

.hero-btn {
  margin-top: 20px;
  font-size: 18px;
  padding: 12px 20px;
}

/* CATEGORIE */
.categorie-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.cat-item {
  background: #EDF2F4;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  color: #2B2D42;
}

/* ANNUNCI GRID */
.annunci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.annuncio-card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.annuncio-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.card-meta {
  font-size: 13px;
  color: #8D99AE;
  margin-top: 5px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #2B2D42;
  margin: 10px 0;
}

