/* Enhancements for the standalone Martineli website. */
[hidden] { display: none !important; }
.static-catalog { max-width: 1220px; margin: 0 auto; padding: 48px 24px 80px; }
.static-catalog h1, .static-catalog h2 { margin-top: 0; }
.static-catalog a { color: inherit; }
.static-catalog .static-action, .static-contact button {
  display: inline-block; border: 1px solid currentColor; padding: .8rem 1.2rem;
  background: #222; color: #fff; text-decoration: none; line-height: 1.5;
}
.static-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); }
.static-product h1 { font-size: clamp(28px, 4vw, 48px); overflow-wrap: anywhere; }
.static-product figure { margin: 0 0 12px; }
.static-product figure img { width: 100%; height: auto; }
.static-product-gallery, .static-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.static-product-gallery img, .static-media-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.static-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(205px, 100%), 1fr)); gap: 24px; padding: 0; list-style: none; }
.static-catalog-grid a { display: block; text-decoration: none; }
.static-catalog-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f5f4f2; margin-bottom: .65rem; }
.static-catalog-grid span { display: block; font-size: 16px; }
.static-catalog-nav { padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; list-style: none; margin-bottom: 24px; }
.static-catalog-search input { font: inherit; width: min(460px,100%); background: #fff; color: #222; padding: .65rem .85rem; border: 1px solid #777; margin: .4rem 0 1.2rem; }
.static-contact form input:not([type="submit"]), .static-contact textarea { color: #222; }
.static-contact small { display: block; margin-top: .8em; }
.static-contact a { text-decoration: underline; }
.static-original-form :where(input[type="submit"],button[type="submit"]) { cursor: pointer; }
.static-map-link { display: inline-block; margin: .5em 0; text-decoration: underline; }
.static-media-grid a:focus-visible, .static-catalog a:focus-visible, .static-contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.static-page-nav { display: flex; justify-content: space-between; gap: 16px; margin: 2rem 0; }
@media (max-width: 700px) { .static-product { grid-template-columns: 1fr; } }
.static-catalog-access { margin: 24px auto; text-align: center; }
.static-catalog-access a { display: inline-block; padding: 12px 20px; border: 1px solid currentColor; }
html { overflow-x: clip; }
.static-magazine-link { text-decoration: none; }
.static-magazine-cover { display: grid; align-content: center; justify-items: center; width: min(100%, 240px); aspect-ratio: 3 / 4; background: #222; color: #fff; padding: 18px; text-align: center; }
.static-magazine-cover b { font-size: clamp(24px, 3vw, 36px); letter-spacing: .12em; }
.static-magazine-cover span { font-size: 15px; }

/* Keep homepage sections readable without the legacy scroll animations. */
body.home.page-template-page-slider .wpb_row :is(.animate, .wpb_animate_when_almost_visible) {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

/* WPBakery sets the featured project row margins to 100px with !important. */
body.home.page-template-page-slider .vc_custom_1536755124299 {
  margin-block: clamp(32px, 4vw, 64px) !important;
}
