/*
Theme Name: Bauerpress
Author: Gionatan Quintini
Description: Un tema di test
Version: 1.0
*/

/* Reset leggero */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f5f7;
}

/* Layout generico */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  background: #111827;
  color: #f9fafb;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.site-title {
  font-size: 1.5rem;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-main {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.site-footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* Contenuto principale */

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Lista articoli */

.post-list {
  list-style: none;
}

.post-card {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.post-card-title a {
  text-decoration: none;
  color: #111827;
}

.post-card-title a:hover {
  text-decoration: underline;
}

.post-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.post-card-excerpt {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Singolo post */

.single-post-header {
  margin-bottom: 1rem;
}

.single-post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.single-post-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.single-post-content p {
  margin-bottom: 1rem;
}

.single-post-content h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem;
}

/* Sidebar */

.sidebar {
  font-size: 0.92rem;
}

.sidebar-section {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sidebar-section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li + li {
  margin-top: 0.35rem;
}

.sidebar a {
  text-decoration: none;
  color: #374151;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Form di ricerca */

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

.search-form button {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 0.375rem;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-form button:hover {
  background: #1d4ed8;
}

/* Bottoni & badge */

.btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  color: #f9fafb;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

/* Pagine statiche */

.page-content p {
  margin-bottom: 0.9rem;
}

/* 404 */

.error-code {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.error-message {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Form contatti */

.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 500px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

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

/* Responsivo */

@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a {
    margin: 0 0.75rem 0.25rem 0;
    display: inline-block;
  }

  .site-main {
    grid-template-columns: 1fr;
  }
}
