* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fafaf9; color: #292524; line-height: 1.5; }
header { background: #ffffff; border-bottom: 1px solid #e7e5e4; padding: 16px 24px; position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-box { width: 40px; height: 40px; background: #92400e; color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; }
.logo-title { font-weight: 700; font-size: 18px; display: block; line-height: 1.1; }
.logo-sub { font-size: 12px; color: #78716c; }
.nav-links { display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: #57534e; }
.nav-links a:hover { color: #92400e; }
@media (max-width: 768px) { .nav-links { display: none; } }
.btn-login { background: #1c1917; color: white; text-decoration: none; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.container { max-width: 1240px; margin: 32px auto; padding: 0 24px; display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
@media (max-width: 850px) { .container { grid-template-columns: 1fr; } }
.sidebar { background: #ffffff; padding: 20px; border-radius: 16px; border: 1px solid #e7e5e4; height: fit-content; }
.sidebar h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; color: #78716c; }
.cat-list { list-style: none; margin-bottom: 24px; border-bottom: 1px solid #f5f5f4; padding-bottom: 16px; }
.cat-list li { margin-bottom: 8px; }
.cat-list a { text-decoration: none; color: #292524; font-size: 14px; font-weight: 500; display: block; padding: 4px 0; }
.cat-list a:hover { color: #92400e; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; color: #57534e; margin-bottom: 6px; }
input[type="text"] { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #d6d3d1; background: #fafaf9; font-size: 14px; }
.page-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 26px; color: #1c1917; }
.badge-count { background: #e7e5e4; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 24px; }
.card { background: #ffffff; border: 1px solid #e7e5e4; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.card-img-wrap { position: relative; height: 220px; background: #ffffff; padding: 20px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f5f5f4; }
.card-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.badge-linea { position: absolute; top: 12px; left: 12px; background: #fef3c7; color: #78350f; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-decoration: none; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.codice { font-size: 11px; color: #a8a29e; font-family: monospace; }
.card-title { font-size: 16px; font-weight: 700; margin: 6px 0 12px; color: #1c1917; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.spec-pill { background: #f5f5f4; color: #57534e; font-size: 12px; padding: 5px 10px; border-radius: 8px; }
.card-footer { border-top: 1px solid #f5f5f4; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prezzo-ok { font-size: 14px; font-weight: 700; color: #15803d; }
.prezzo-lock { font-size: 12px; font-weight: 600; color: #b91c1c; text-decoration: none; }
.btn-scheda { background: #1c1917; color: white; text-decoration: none; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.btn-scheda:hover { background: #92400e; }
footer { background: #1c1917; color: #a8a29e; text-align: center; padding: 32px 24px; margin-top: 60px; font-size: 13px; }
footer strong { color: #ffffff; display: block; margin-bottom: 4px; }

.hero-tag {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px;
}
.hero-intro h1 { font-size: 28px; color: #1c1917; line-height: 1.2; margin-bottom: 6px; }
.hero-intro p { font-size: 15px; color: #57534e; max-width: 720px; }

.hero-cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 850px) { .hero-cards-3 { grid-template-columns: 1fr; } }

.hero-card {
  position: relative; height: 240px; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center; text-decoration: none;
  display: flex; align-items: flex-end; padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: transform 0.25s ease;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 10%, rgba(28, 25, 23, 0.2) 100%);
}
.hero-content { position: relative; z-index: 2; color: #ffffff; }
.hero-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #fde68a; font-weight: 700; display: block; margin-bottom: 4px; }
.hero-content h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.hero-cta { font-size: 13px; font-weight: 600; color: #ffffff; background: rgba(255,255,255,0.18); padding: 5px 12px; border-radius: 8px; display: inline-block; backdrop-filter: blur(4px); }
.hero-card:hover .hero-cta { background: #92400e; }

/* Albero categorie richiudibile (Accordion) */
.cat-accordion {
  border-bottom: 1px solid #f5f5f4;
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.cat-accordion summary {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #292524;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.cat-accordion summary::-webkit-details-marker { display: none; }
.cat-accordion summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 600;
  color: #78716c;
}
.cat-accordion[open] summary::after {
  content: '−';
  color: #92400e;
}
.cat-accordion .cat-list {
  margin-top: 8px;
  margin-bottom: 4px;
  padding-left: 10px;
  border-bottom: none;
  padding-bottom: 0;
}
