.materials-page .material-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.facade-choices button, .facade-casella button {
  border: 1px solid #aabdad;
  border-radius: 8px;
  background: #e7ede3;
  color: #224237;
  font: inherit;
}

.facade-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.facade-sample {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dcdcd1;
  border-radius: 12px;
  background: #fcfbf7;
}

.facade-photo { display: block; }
.facade-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.facade-info { padding: 15px; }
.facade-info h3 { margin: 0 0 10px; font-size: 1.15rem; }
.facade-info a { color: #315547; font-size: .875rem; }
.facade-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.facade-choices button { padding: 5px 9px; font-size: .825rem; cursor: pointer; }
.facade-choices button[aria-pressed="true"] { background: #224237; color: #fff; }

.facade-casella { margin: 0 0 20px; padding: 12px 15px; border: 1px solid #cdd8ca; border-radius: 10px; }
.facade-casella summary { cursor: pointer; font-weight: 700; }
.facade-casella ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.facade-casella li { display: grid; grid-template-columns: minmax(0, 260px) 1fr; align-items: center; gap: 8px; }
.facade-casella button { justify-self: start; cursor: pointer; padding: 5px 9px; }
@media (max-width: 900px) {
  .materials-page .material-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .materials-page .material-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facade-casella li { grid-template-columns: 1fr; }
}
