/* PiMa Design — atelier visual system.
   Warm graphite ground, ivory type, the brand pink kept for small accents and
   the one primary action per screen. Display serif for titles, a quiet sans
   for reading, a mono for codes and measurements. */

:root {
  --pima-bg: #0d0c0e;
  --pima-bg-deep: #09080a;
  --pima-surface: #151317;
  --pima-surface-2: #1c1a1f;
  --pima-ink: #eee8e1;
  --pima-muted: #a59da1;
  --pima-faint: #8a8286;
  --pima-steel: #cfcac5;
  --pima-line: rgba(238, 232, 225, 0.12);
  --pima-line-soft: rgba(238, 232, 225, 0.08);
  /* Fill for the primary action: dark enough for white text (6:1). */
  --pima-accent: #b8285f;
  --pima-accent-hover: #cc316d;
  /* Accent for text and hairlines on the dark ground. */
  --pima-rose: #f27fae;
  /* Older names, still read by commerce.css and the configurator. */
  --pima-pink: var(--pima-accent);
  --pima-copper: var(--pima-accent);
  --pima-panel: var(--pima-surface);
  --pima-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --pima-font-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pima-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --pima-max: 1280px;
  --pima-gutter: clamp(16px, 4vw, 64px);
  /* The header is tall at the top of the page, where the logo has room to be
     read, and compact once the page scrolls. */
  --pima-header-h: 112px;
  --pima-header-h-compact: 72px;
  --pima-logo-h: 84px;
  --pima-logo-h-compact: 50px;
  --pima-radius: 6px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pima-header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.pima-site {
  margin: 0;
  color: var(--pima-ink);
  background: var(--pima-bg);
  font-family: var(--pima-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--pima-rose);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pima-ink);
  color: var(--pima-bg);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--pima-font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 16ch;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.95;
}

h2 { font-size: clamp(36px, 4.4vw, 60px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); }

h1 em,
h2 em {
  color: var(--pima-steel);
  font-style: italic;
}

.pima-kicker {
  margin: 0 0 16px;
  color: var(--pima-rose);
  font-family: var(--pima-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pima-mono {
  font-family: var(--pima-font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--pima-muted);
}

.pima-lead,
.pima-page-hero p:not(.pima-kicker),
.pima-section__head p:not(.pima-kicker) {
  max-width: 56ch;
  color: var(--pima-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

.pima-link {
  display: inline-flex;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(238, 232, 225, 0.4);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease;
}

.pima-link:hover {
  color: var(--pima-rose);
  border-color: var(--pima-rose);
}

/* ---------- Buttons ---------- */

.pima-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pima-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pima-button--primary {
  background: var(--pima-accent);
  color: #fff;
}

.pima-button--primary::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 160ms ease;
}

.pima-button--primary:hover {
  background: var(--pima-accent-hover);
  color: #fff;
}

.pima-button--primary:hover::after { transform: translateX(3px); }

.pima-button--ghost {
  color: var(--pima-ink);
  border-color: rgba(238, 232, 225, 0.22);
  background: transparent;
}

.pima-button--ghost:hover {
  border-color: var(--pima-ink);
}

/* ---------- Header ---------- */

.site-header {
  /* Fixed, not sticky: the bar shrinks as the page scrolls, and a sticky bar
     changing height would pull the page up under the reader. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(13, 12, 14, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 200ms ease, background 200ms ease;
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

body.pima-site {
  padding-top: var(--pima-header-h);
}

.site-header.is-scrolled {
  border-bottom-color: var(--pima-line-soft);
  background: rgba(13, 12, 14, 0.9);
}

/* The logo sits in the middle, the menu on its left and the store actions on
   its right: the brand is the first thing read, not a corner mark. */
.site-header__inner {
  width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
  height: var(--pima-header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "nav brand actions";
  align-items: center;
  gap: 24px;
  transition: height 280ms ease;
}

.site-header.is-scrolled .site-header__inner {
  height: var(--pima-header-h-compact);
}

.site-brand {
  grid-area: brand;
  justify-self: center;
  display: inline-flex;
  align-items: center;
}

/* Scoped to the header so WooCommerce's `.woocommerce-page img { height: auto }`
   cannot blow the logo up to its natural size on store screens. The artwork
   already carries white outlines for dark grounds: no halo, which blurred the
   thin "DESIGNS" lettering. */
.site-header .site-brand__logo {
  width: auto;
  height: var(--pima-logo-h);
  transition: height 280ms ease;
}

.site-header.is-scrolled .site-brand__logo {
  height: var(--pima-logo-h-compact);
}

@media (prefers-reduced-motion: reduce) {
  .site-header__inner,
  .site-header .site-brand__logo {
    transition: none;
  }
}

.site-nav {
  grid-area: nav;
  justify-self: start;
}

/* Testata widget, "logo a sinistra": logo, menu in the middle, actions. */
.site-header--left .site-header__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav actions";
}

.site-header--left .site-brand { justify-self: start; }
.site-header--left .site-nav { justify-self: center; }

.site-nav ul {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* Sized for the centred logo: from 1261 px up the six entries fit beside
     it in every language (Spanish is the longest). */
  gap: clamp(12px, 1.2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  white-space: nowrap;
  padding: 8px 0;
  color: var(--pima-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--pima-rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--pima-rose);
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
  transform: scaleX(1);
}

.site-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pima-ink);
  cursor: pointer;
}

.site-nav-toggle__bars,
.site-nav-toggle__bars::before {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 200ms ease;
}

.site-nav-toggle__bars {
  position: relative;
  transform: translateY(-4px);
}

.site-nav-toggle__bars::before {
  content: "";
  position: absolute;
  top: 8px;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars {
  transform: translateY(0) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars::before {
  transform: translateY(-8px) rotate(-90deg);
}

/* clip, not hidden: hidden makes main a scroll container and every sticky
   element inside it (configurator preview, product specs) stops sticking. */
.site-main {
  overflow: clip;
}

/* ---------- Page scaffolding ---------- */

.pima-hero,
.pima-page-hero,
.pima-section,
.pima-detail {
  width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
  margin: 0 auto;
}

.pima-section,
.pima-detail {
  padding: clamp(64px, 9vw, 120px) 0;
}

/* Explicit, not `.pima-section + .pima-section`: in Elementor every section
   sits in its own wrapper, so sibling selectors never match there. */
.pima-section--divided {
  border-top: 1px solid var(--pima-line-soft);
}

.pima-page-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px);
}

.pima-page-hero h1 {
  max-width: 18ch;
  font-size: clamp(44px, 6vw, 84px);
}

.pima-page-hero p:not(.pima-kicker) {
  margin: 20px 0 0;
}

.pima-page-hero + .pima-section,
.pima-section.pima-section--tight {
  padding-top: clamp(16px, 2vw, 32px);
}

.pima-section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.pima-section__head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}

.pima-section__head--split > p:not(.pima-kicker) {
  max-width: 42ch;
  margin: 0;
  font-size: 16px;
}

/* ---------- Home: hero ---------- */

.pima-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
}

.pima-hero .pima-lead {
  margin: 28px 0 0;
}

.pima-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 560px;
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--pima-line);
}

.pima-hero__facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.pima-hero__facts dt {
  color: var(--pima-muted);
  font-size: 13px;
  line-height: 1.35;
}

.pima-hero__facts dd {
  margin: 0;
  font-family: var(--pima-font-display);
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1;
}

.pima-hero__media {
  margin: 0;
  display: grid;
  gap: 12px;
}

.pima-hero__media img {
  width: 100%;
  height: min(78vh, 680px);
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--pima-line);
  border-radius: 4px;
}

.pima-hero__media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--pima-muted);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The facts on their own, outside the hero (Numeri PiMa widget). */
.pima-facts-block {
  width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
  margin: 0 auto;
}

.pima-facts-block .pima-hero__facts {
  margin-top: 0;
}

/* ---------- Home: the four steps ---------- */

.pima-steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--pima-line);
  background: var(--pima-line);
}

.pima-steps__list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.2vw, 28px);
  background: var(--pima-bg);
}

.pima-steps__list h3 { font-size: clamp(28px, 2.6vw, 36px); }

.pima-steps__list p {
  flex-grow: 1;
  margin: 0;
  color: var(--pima-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pima-steps__num {
  color: var(--pima-rose);
  font-family: var(--pima-font-mono);
  font-size: 12px;
}

.pima-steps__count {
  color: var(--pima-steel);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Home: configurator teaser ---------- */

.pima-teaser__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--pima-line);
  border-radius: var(--pima-radius);
  background: var(--pima-surface);
}

.pima-teaser__visual {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 600px;
  padding: 24px;
  border-right: 1px solid var(--pima-line-soft);
  /* The stage of the configurator: a soft pool of light under the hilt. */
  background:
    radial-gradient(ellipse 55% 45% at 50% 52%, rgba(238, 232, 225, 0.07), transparent 70%),
    #111013;
}

.pima-teaser__label,
.pima-teaser__code {
  color: var(--pima-muted);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pima-teaser__code {
  justify-self: end;
  color: var(--pima-steel);
  letter-spacing: 0.08em;
}

.pima-teaser__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* The hilt at real scale, sized by its height like the configurator preview:
   width follows the drawing's own proportions. */
.pima-teaser__composite {
  display: block;
  width: auto;
  max-width: 100%;
  height: 470px;
  max-height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.55));
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pima-teaser__panel:hover .pima-teaser__composite {
    transform: translateY(-6px) scale(1.02);
  }
}

.pima-teaser__body {
  padding: clamp(32px, 5vw, 64px);
}

.pima-teaser__body > p:not(.pima-kicker) {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--pima-muted);
}

.pima-spec-list {
  margin: 28px 0 0;
  border-top: 1px solid var(--pima-line);
}

.pima-spec-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--pima-line);
  font-size: 15px;
}

.pima-spec-list dt { color: var(--pima-muted); font-size: 14px; }
.pima-spec-list dd { margin: 0; }

/* Measures under the name: long ones ("… in pianta, altezza di profilo …")
   no longer squeeze the name into two lines. */
.pima-spec-list dd .pima-mono {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Home: catalogue ---------- */

.pima-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pima-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--pima-line);
  border-radius: 999px;
  background: transparent;
  color: var(--pima-ink);
  font: 600 13px/1 var(--pima-font-body);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.pima-filter button span {
  color: var(--pima-faint);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  font-weight: 400;
}

.pima-filter button:hover { border-color: rgba(238, 232, 225, 0.4); }

.pima-filter button.is-active {
  border-color: var(--pima-ink);
  background: var(--pima-ink);
  color: var(--pima-bg);
}

.pima-filter button.is-active span { color: #5c565a; }

.pima-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pima-catalog__grid li[hidden] { display: none; }

/* List of creations with the category filter over it. */
.pima-creations > .pima-filter { margin-bottom: clamp(28px, 4vw, 44px); }
.pima-creations .pima-card[hidden] { display: none; }

.pima-catalog__grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* The drawings come in every proportion (a flat ricasso, a tall handle):
   the image is laid inside a fixed square so every tile keeps the same size. */
.pima-catalog__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border: 1px solid var(--pima-line-soft);
  border-radius: 4px;
  background: var(--pima-surface);
  transition: border-color 200ms ease, background 200ms ease;
}

.pima-catalog__thumb img {
  position: absolute;
  inset: 16%;
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
  transition: transform 260ms ease;
}

.pima-catalog__grid a:hover .pima-catalog__thumb {
  border-color: rgba(242, 127, 174, 0.5);
  background: var(--pima-surface-2);
}

.pima-catalog__grid a:hover .pima-catalog__thumb img { transform: scale(1.05); }

.pima-catalog__name {
  font-family: var(--pima-font-display);
  font-size: 22px;
  line-height: 1.1;
}

/* ---------- Home: assurances ---------- */

.pima-assurances ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pima-line);
  border-bottom: 1px solid var(--pima-line);
}

.pima-assurances li {
  padding: 36px 28px;
}

.pima-assurances li + li { border-left: 1px solid var(--pima-line); }
.pima-assurances li:first-child { padding-left: 0; }

.pima-assurances svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--pima-rose);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pima-assurances h3 {
  margin: 14px 0 8px;
  font-family: var(--pima-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.pima-assurances p {
  margin: 0;
  color: var(--pima-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- Cards: creations and visual art ---------- */

.pima-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pima-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pima-card img,
.pima-card__visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 400ms ease;
}

.pima-card > img,
.pima-card > .pima-card__visual {
  border: 1px solid var(--pima-line-soft);
}

.pima-card__visual {
  background:
    radial-gradient(circle at 50% 55%, rgba(238, 232, 225, 0.07), transparent 45%),
    var(--pima-surface);
}

.pima-card__body {
  padding: 20px 0 0;
}

.pima-card__body .pima-kicker {
  margin-bottom: 8px;
  color: var(--pima-muted);
  font-size: 11px;
}

.pima-card__body h3 a::after {
  /* The whole card is the link target. */
  content: "";
  position: absolute;
  inset: 0;
}

.pima-card__body h3 a:hover { color: var(--pima-rose); }

.pima-card__body p {
  margin: 10px 0 0;
  color: var(--pima-muted);
  font-size: 14px;
}

.pima-price {
  display: inline-block;
  margin-top: 12px;
  color: var(--pima-steel);
  font-family: var(--pima-font-mono);
  font-size: 12px;
}

.pima-visual-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr;
  gap: 16px;
}

.pima-visual-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--pima-line-soft);
  border-radius: 4px;
  background: var(--pima-surface);
}

.pima-visual-tile img,
.pima-visual-tile .pima-card__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}

.pima-visual-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 8, 10, 0.85));
}

.pima-visual-tile > div:last-child {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
}

.pima-visual-tile span {
  color: var(--pima-rose);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pima-visual-tile h3 { margin-top: 6px; }

/* ---------- Generic pages ---------- */

.pima-page,
.pima-content {
  color: var(--pima-ink);
}

.pima-content {
  width: min(760px, calc(100% - 2 * var(--pima-gutter)));
  margin: 0 auto;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.pima-content--wide {
  width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
}

.pima-content:not(.pima-content--wide) > * + * { margin-top: 1.2em; }

.pima-content h2 { margin-top: 1.6em; font-size: clamp(30px, 3.4vw, 42px); }
.pima-content h3 { margin-top: 1.4em; }

.pima-content p,
.pima-content li {
  color: var(--pima-muted);
  font-size: 17px;
  line-height: 1.75;
}

.pima-content a {
  color: var(--pima-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.pima-page-hero--compact {
  padding-top: clamp(28px, 3.5vw, 48px);
  padding-bottom: 24px;
}

.pima-page-hero--compact h1 {
  font-size: clamp(38px, 4.6vw, 60px);
}

/* ---------- Creation page ---------- */

.pima-creation {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: 0;
}

.pima-creation__crumbs {
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--pima-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pima-creation__crumbs a { color: var(--pima-muted); }
.pima-creation__crumbs a:hover { color: var(--pima-ink); }

.pima-creation__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 104px);
}

.pima-creation__intro {
  position: sticky;
  top: calc(var(--pima-header-h-compact) + 32px);
}

.pima-creation__intro h1 {
  font-size: clamp(44px, 5.6vw, 84px);
}

.pima-creation__lead {
  max-width: 34ch;
  margin: 20px 0 0;
  color: var(--pima-steel);
  font-family: var(--pima-font-display);
  font-size: clamp(21px, 1.8vw, 25px);
  font-style: italic;
  line-height: 1.3;
}

.pima-creation__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  border: 1px solid var(--pima-line);
  border-radius: 4px;
  background: var(--pima-line);
  overflow: hidden;
}

.pima-creation__facts div {
  padding: 14px 16px;
  background: var(--pima-surface);
}

.pima-creation__facts dt {
  margin-bottom: 4px;
  color: var(--pima-faint);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pima-creation__facts dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pima-creation__facts dd.pima-mono {
  color: var(--pima-ink);
  font-size: 13px;
}

.pima-creation__note {
  margin: 14px 0 0;
  color: var(--pima-faint);
  font-size: 13px;
}

/* Gallery: one large photo, thumbnails under it. */
.pima-gallery__main {
  position: relative;
  margin: 0;
  border: 1px solid var(--pima-line);
  border-radius: 4px;
  background: var(--pima-surface);
  overflow: hidden;
}

.pima-gallery__main a {
  display: block;
  cursor: zoom-in;
}

/* .pima-creation in front: Elementor's `.elementor img { height: auto }` loads later. */
.pima-creation .pima-gallery__main img,
.pima-gallery__empty {
  display: block;
  width: 100%;
  height: min(calc(100vh - var(--pima-header-h) - 250px), 760px);
  min-height: 420px;
  object-fit: contain;
}

.pima-gallery__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 12, 14, 0.72);
  color: var(--pima-steel);
}

.pima-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pima-gallery__thumbs a {
  display: block;
  border: 1px solid var(--pima-line);
  border-radius: 4px;
  background: var(--pima-surface);
  overflow: hidden;
  opacity: 0.62;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.pima-gallery__thumbs a:hover,
.pima-gallery__thumbs a[aria-current="true"] {
  opacity: 1;
}

.pima-gallery__thumbs a[aria-current="true"] { border-color: var(--pima-rose); }

.pima-gallery__thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Section labels: small mono titles, the page keeps one large title. */
.pima-creation__label {
  margin: 0 0 22px;
  color: var(--pima-rose);
  font-family: var(--pima-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pima-creation__story,
.pima-creation__tech,
.pima-creation__details {
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--pima-line-soft);
}

.pima-creation__story,
.pima-creation__tech {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.pima-creation__tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pima-creation__quote {
  margin: 0;
}

.pima-creation__quote p {
  margin: 0;
  font-family: var(--pima-font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.15;
}

.pima-creation .pima-content {
  width: auto;
  padding: 0;
  color: var(--pima-muted);
}

.pima-creation__specs {
  margin: 0;
}

.pima-creation__specs div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pima-line);
  font-size: 14px;
}

.pima-creation__specs div:first-child { border-top: 1px solid var(--pima-line); }
.pima-creation__specs dt { color: var(--pima-muted); }
.pima-creation__specs dd { margin: 0; text-align: right; }

.pima-creation__parts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pima-creation__parts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--pima-line);
  border-radius: 4px;
  background: var(--pima-surface);
}

.pima-creation__part-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 3px;
  background: var(--pima-surface-2);
}

/* Fixed limits, not percentages: a tall drawing (a grip) would otherwise
   keep its height and be cut by the box. .pima-creation in front of
   Elementor's `.elementor img { max-width: 100% }`. */
.pima-creation .pima-creation__part-thumb img {
  width: auto;
  height: auto;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.pima-creation__part-name {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.pima-creation__part-name .pima-mono { font-size: 11px; }

.pima-creation__part-code { color: var(--pima-rose); }

.pima-creation__shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pima-creation__shots figure { margin: 0; }

.pima-creation__related { padding-top: clamp(48px, 7vw, 96px); }
.pima-creation__related h2 { font-size: clamp(32px, 3.2vw, 46px); }

.pima-creation__shots a {
  display: block;
  border: 1px solid var(--pima-line-soft);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}

.pima-creation__shots img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms ease;
}

.pima-creation__shots a:hover img { transform: scale(1.03); }

.pima-creation__shots figcaption {
  margin-top: 10px;
  color: var(--pima-muted);
  font-size: 13px;
}

/* Photos at full size, over the page. */
.pima-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(9, 8, 10, 0.96);
  color: var(--pima-ink);
}

.pima-lightbox::backdrop { background: transparent; }
body.has-lightbox { overflow: hidden; }

.pima-lightbox[open] {
  display: grid;
  place-items: center;
}

.pima-lightbox figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  padding: 64px 72px;
}

.pima-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

.pima-lightbox figcaption {
  color: var(--pima-muted);
  font-size: 14px;
}

.pima-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--pima-line);
  border-radius: 50%;
  background: rgba(21, 19, 23, 0.8);
  color: var(--pima-ink);
  cursor: pointer;
}

.pima-lightbox button:hover { border-color: var(--pima-ink); }
.pima-lightbox button[hidden] { display: none; }
.pima-lightbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pima-lightbox [data-lightbox-close] { top: 16px; right: 16px; }
.pima-lightbox [data-lightbox-prev] { top: 50%; left: 16px; transform: translateY(-50%); }
.pima-lightbox [data-lightbox-next] { top: 50%; right: 16px; transform: translateY(-50%); }

@media (max-width: 960px) {
  .pima-creation__hero,
  .pima-creation__story,
  .pima-creation__tech {
    grid-template-columns: 1fr;
  }

  .pima-creation__intro { position: static; }
  .pima-creation .pima-gallery__main img,
  .pima-gallery__empty {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }
}

@media (max-width: 620px) {
  .pima-lightbox figure { padding: 64px 12px 88px; }
  .pima-lightbox [data-lightbox-prev],
  .pima-lightbox [data-lightbox-next] { top: auto; bottom: 20px; transform: none; }
  .pima-lightbox [data-lightbox-prev] { left: calc(50% - 60px); }
  .pima-lightbox [data-lightbox-next] { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .pima-creation__shots img { transition: none; }
  .pima-creation__shots a:hover img { transform: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--pima-line-soft);
  background: var(--pima-bg-deep);
  color: var(--pima-muted);
}

.site-footer__inner,
.site-footer__legal {
  width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
  margin: 0 auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: clamp(48px, 6vw, 80px) 0 48px;
}

.site-footer__brand p {
  max-width: 36ch;
  margin: 18px 0 24px;
  font-size: 14px;
}

.site-footer .site-footer__logo {
  width: auto;
  height: 88px;
}

.site-footer__brand .pima-button {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.site-footer__col h2 {
  margin: 0 0 18px;
  color: var(--pima-faint);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: var(--pima-ink);
  font-size: 14px;
  transition: color 160ms ease;
}

.site-footer ul a:hover { color: var(--pima-rose); }

/* Social icons: footer brand column and contact page, same round outline as the contact channels. */
.pima-social,
.site-footer .pima-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .site-footer__social { margin-top: 28px; }

.pima-contact__social {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.pima-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pima-line);
  border-radius: 50%;
  color: var(--pima-muted);
  transition: color 160ms ease, border-color 160ms ease;
}

.pima-social a:hover,
.pima-social a:focus-visible {
  border-color: var(--pima-rose);
  color: var(--pima-rose);
}

.pima-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--pima-line-soft);
  color: var(--pima-faint);
  font-size: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .pima-steps__list,
  .pima-assurances ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pima-assurances li:nth-child(3) { border-left: 0; padding-left: 0; }
  .pima-assurances li:nth-child(n + 3) { border-top: 1px solid var(--pima-line); }

  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1260px) {
  :root {
    --pima-header-h: 84px;
    --pima-header-h-compact: 64px;
    --pima-logo-h: 62px;
    --pima-logo-h-compact: 44px;
  }

  /* backdrop-filter makes the header the containing block of fixed children,
     which would trap the menu panel inside its 64px. Solid ground instead. */
  .site-header,
  .site-header.is-scrolled {
    background: rgba(13, 12, 14, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "brand actions";
  }

  .site-brand { justify-self: start; }

  .site-nav-toggle { display: inline-grid; place-items: center; }

  .site-nav {
    position: fixed;
    inset: var(--pima-header-h) 0 0;
    z-index: 49;
    padding: 24px var(--pima-gutter) 40px;
    overflow-y: auto;
    background: var(--pima-bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li { border-bottom: 1px solid var(--pima-line-soft); }

  .site-nav a {
    display: flex;
    padding: 18px 0;
    font-family: var(--pima-font-display);
    font-size: 30px;
  }

  .site-nav a::after { display: none; }

  .site-header.is-scrolled .site-nav { top: var(--pima-header-h-compact); }

  body.has-nav-open { overflow: hidden; }
}

@media (max-width: 960px) {
  .pima-hero,
  .pima-teaser__panel {
    grid-template-columns: 1fr;
  }

  /* Text first on small screens: the promise and the button stay above the fold. */
  .pima-hero__media img { height: min(64vh, 520px); }

  .pima-teaser__visual {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--pima-line-soft);
  }

  .pima-teaser__composite { height: 340px; }

  .pima-card-grid,
  .pima-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --pima-header-h: 76px;
    --pima-header-h-compact: 60px;
    --pima-logo-h: 56px;
    --pima-logo-h-compact: 42px;
  }

  .pima-hero__facts { gap: 16px; }

  .pima-steps__list,
  .pima-assurances ul {
    grid-template-columns: 1fr;
  }

  .pima-assurances li,
  .pima-assurances li:first-child { padding: 24px 0; }
  .pima-assurances li + li { border-left: 0; border-top: 1px solid var(--pima-line); }

  .pima-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pima-spec-list div { grid-template-columns: 84px minmax(0, 1fr); }

  .pima-actions .pima-button { flex: 1 1 100%; }

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

/* ---------- Elementor ---------- */

/* Containers the starter layouts mark as reading columns: the theme's widths
   win over the container's own. */
.elementor .e-con.pima-content {
  --width: min(760px, calc(100% - 2 * var(--pima-gutter)));
  width: var(--width);
  max-width: none;
  margin-inline: auto;
}

.elementor .e-con.pima-content.pima-content--wide {
  --width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
}

.elementor .e-con.pima-content .elementor-widget-text-editor {
  color: var(--pima-muted);
  font-size: 17px;
  line-height: 1.75;
}

.elementor .e-con.pima-content .elementor-widget-text-editor :is(h2, h3) {
  margin: 1.4em 0 0.5em;
  color: var(--pima-ink);
}

.pima-single__media img {
  width: 100%;
  border: 1px solid var(--pima-line);
  border-radius: 4px;
}

/* A template shown on its own (single-elementor_library.php, the editor's
   preview): the header stays in the flow, not fixed over the canvas. */
body.pima-template-preview {
  padding-top: 0;
}

body.pima-template-preview .site-header {
  position: relative;
}

/* Elementor resets every image inside its content (`.elementor img`: height
   auto, no border, no radius), which undid the sizes above on pages built
   with it. The same rules again, one class stronger. */
.elementor .pima-hero__media img {
  height: min(78vh, 680px);
  border: 1px solid var(--pima-line);
  border-radius: 4px;
}

.elementor .pima-catalog__thumb img { height: 68%; }
.elementor .pima-card img { border-radius: 4px; }
.elementor .pima-card > img { border: 1px solid var(--pima-line-soft); }
.elementor .pima-visual-tile img { height: 100%; }

.elementor .pima-single__media img {
  border: 1px solid var(--pima-line);
  border-radius: 4px;
}

@media (max-width: 960px) {
  .elementor .pima-hero__media img { height: min(64vh, 520px); }
}

/* ---------- Contact page ---------- */

.pima-contact {
  width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 9vw, 120px);
}

.pima-contact__top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: stretch;
}

/* The brand, given a stage of its own: the logo is the first thing read. */
.pima-contact__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 540px;
  padding: 56px 40px;
  overflow: hidden;
  border: 1px solid var(--pima-line);
  border-radius: var(--pima-radius);
  background:
    radial-gradient(ellipse 60% 45% at 50% 44%, rgba(242, 127, 174, 0.11), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(238, 232, 225, 0.05), transparent 70%),
    #111013;
}

.pima-contact__brand::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--pima-line-soft);
  border-radius: 3px;
  pointer-events: none;
}

.pima-contact__brand .pima-contact__logo {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.pima-contact__claim {
  position: relative;
  z-index: 1;
  color: var(--pima-muted);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pima-contact__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pima-contact__body h1 {
  font-size: clamp(44px, 5.4vw, 80px);
}

.pima-contact__body .pima-lead {
  margin: 24px 0 0;
}

.pima-contact__channels {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pima-line);
}

.pima-contact__channels li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--pima-line);
}

.pima-contact__channels svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--pima-line);
  border-radius: 50%;
  fill: none;
  stroke: var(--pima-rose);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pima-contact__channels li > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pima-contact__label {
  color: var(--pima-muted);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pima-contact__value {
  font-family: var(--pima-font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

a.pima-contact__value:hover { color: var(--pima-rose); }

.pima-contact__note {
  color: var(--pima-muted);
  font-size: 14px;
}

.pima-contact__reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--pima-line);
  background: var(--pima-line);
}

.pima-contact__reasons li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.2vw, 28px);
  background: var(--pima-bg);
}

.pima-contact__reasons h2 {
  font-size: clamp(26px, 2.4vw, 32px);
}

.pima-contact__reasons p {
  flex-grow: 1;
  margin: 0;
  color: var(--pima-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .pima-contact__top { grid-template-columns: 1fr; }

  .pima-contact__brand {
    min-height: 320px;
    padding: 40px 32px;
  }

  .pima-contact__brand .pima-contact__logo { width: min(72%, 320px); }
}

@media (max-width: 760px) {
  .pima-contact__reasons { grid-template-columns: 1fr; }
}

/* ---------- Language switcher ---------- */

.site-lang ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 6px 0 0;
  padding: 0;
  list-style: none;
}

.site-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 4px;
  color: var(--pima-muted);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-lang a:hover { color: var(--pima-rose); }

.site-lang .is-current a {
  color: var(--pima-ink);
  border-bottom-color: var(--pima-rose);
}

@media (max-width: 620px) {
  .site-lang ul { margin-right: 0; gap: 0; }
  .site-lang a { min-width: 24px; padding: 0 2px; font-size: 10px; }
}

/* ---------- Chi siamo ---------- */

.pima-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: min(var(--pima-max), calc(100% - 2 * var(--pima-gutter)));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 9vw, 120px);
}

.pima-about h1 {
  max-width: 14ch;
  font-size: clamp(44px, 5.6vw, 84px);
}

.pima-about .pima-lead {
  margin: 28px 0 0;
  color: var(--pima-ink);
  font-size: clamp(18px, 1.7vw, 21px);
}

.pima-about__text {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--pima-muted);
}

/* The two moments of every piece: the drawing laid over the prototype. */
.pima-about__visual {
  position: relative;
}

.pima-about__visual--pair {
  padding-bottom: clamp(72px, 9vw, 132px);
}

.pima-about__visual figure {
  margin: 0;
}

.pima-about__photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pima-line);
  border-radius: var(--pima-radius);
}

.pima-about__visual--pair .pima-about__photo {
  width: 78%;
  margin-left: auto;
}

.pima-about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pima-about__photo figcaption,
.pima-about__drawing figcaption {
  color: var(--pima-muted);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pima-about__photo figcaption {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 12, 14, 0.72);
  color: var(--pima-steel);
}

.pima-about__drawing {
  padding: 22px 24px 16px;
  border: 1px solid var(--pima-line);
  border-radius: var(--pima-radius);
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(238, 232, 225, 0.06), transparent 70%),
    #111013;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.pima-about__visual--pair .pima-about__drawing {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64%;
}

.pima-about__drawing img {
  width: 100%;
  opacity: 0.92;
}

.pima-about__drawing figcaption {
  margin-top: 14px;
}

/* ---------- Timeline ---------- */

.pima-timeline__list {
  display: grid;
  grid-template-columns: repeat(var(--pima-timeline-count, 3), minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pima-timeline__list li {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--pima-line);
}

.pima-timeline__list li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--pima-rose);
  border-radius: 50%;
  background: var(--pima-bg);
}

/* The current step. */
.pima-timeline__list li:last-child::before {
  background: var(--pima-rose);
  box-shadow: 0 0 0 5px rgba(242, 127, 174, 0.14);
}

.pima-timeline__label {
  display: block;
  margin-bottom: 18px;
  color: var(--pima-steel);
  font-family: var(--pima-font-display);
  font-size: clamp(40px, 4.4vw, 60px);
  font-style: italic;
  line-height: 1;
}

.pima-timeline__list h3 {
  margin-bottom: 12px;
}

.pima-timeline__list p {
  max-width: 40ch;
  margin: 0;
  color: var(--pima-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Founder ---------- */

.pima-founder {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.pima-founder__body h2 {
  max-width: 14ch;
  margin-bottom: 28px;
}

.pima-founder__body p:not(.pima-kicker) {
  max-width: 58ch;
  margin: 0 0 1em;
  color: var(--pima-muted);
  font-size: 17px;
  line-height: 1.7;
}

.pima-founder__body h2 + p {
  color: var(--pima-ink);
}

.pima-founder__path {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--pima-line);
  border-radius: var(--pima-radius);
  background: var(--pima-surface);
}

.pima-founder__path > p.pima-kicker {
  margin: 0 0 28px;
  color: var(--pima-rose);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.pima-founder__path ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pima-founder__path li {
  position: relative;
  padding: 0 0 28px 36px;
}

.pima-founder__path li:last-child { padding-bottom: 0; }

/* The thread joining the steps, and a dot on each. */
.pima-founder__path li::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: -4px;
  left: 5px;
  width: 1px;
  background: var(--pima-line);
}

.pima-founder__path li:last-child::before { display: none; }

.pima-founder__path li::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--pima-rose);
  border-radius: 50%;
  background: var(--pima-surface);
}

.pima-founder__path li:last-child::after { background: var(--pima-rose); }

.pima-founder__label {
  color: var(--pima-muted);
  font-family: var(--pima-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pima-founder__path h3 {
  margin: 6px 0;
  font-size: clamp(24px, 2vw, 28px);
}

.pima-founder__path p {
  margin: 0;
  color: var(--pima-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Partners ---------- */

.pima-partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pima-partners__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 28px 32px;
  border: 1px solid var(--pima-line);
  border-radius: var(--pima-radius);
  background: var(--pima-surface);
  transition: border-color 200ms ease, background-color 200ms ease;
}

a.pima-partners__item:hover {
  border-color: rgba(242, 127, 174, 0.45);
  background: var(--pima-surface-2);
}

/* As tall as the tile allows (140 px less padding): many partners have an
   emblem, not a wordmark, and at 64 px its lettering could not be read. */
.pima-partners__item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 84px;
  object-fit: contain;
  transition: opacity 200ms ease;
}

/* Transparent logos of any colour, drawn as one light silhouette. */
.pima-partners__item--mono img {
  filter: brightness(0) invert(0.93);
  opacity: 0.72;
}

.pima-partners__item--original img { opacity: 0.9; }

a.pima-partners__item:hover img { opacity: 1; }

/* Logos on white, or with dark lettering, keep their colours on ivory. */
.pima-partners__item--light {
  border-color: transparent;
  background: var(--pima-ink);
}

a.pima-partners__item--light:hover {
  border-color: var(--pima-rose);
  background: #fff;
}

.pima-partners__name {
  color: var(--pima-ink);
  font-family: var(--pima-font-display);
  font-size: 26px;
  line-height: 1.1;
  text-align: center;
}

.pima-partners__item svg {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--pima-rose);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.pima-partners__item--light svg { stroke: var(--pima-accent); }

a.pima-partners__item:hover svg,
a.pima-partners__item:focus-visible svg {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .pima-partners__item svg { opacity: 0.6; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pima-partners__item svg { transition: none; }
}

/* ---------- Call to action ---------- */

.pima-callout__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--pima-line);
  border-radius: var(--pima-radius);
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(242, 127, 174, 0.1), transparent 70%),
    var(--pima-surface);
}

.pima-callout h2 { max-width: 16ch; }

.pima-callout__panel p:not(.pima-kicker) {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--pima-muted);
}

.pima-callout .pima-actions { margin-top: 0; }

/* Shown only in the Elementor editor, in place of an empty section. */
.pima-editor-note {
  padding: 32px;
  border: 1px dashed var(--pima-line);
  border-radius: var(--pima-radius);
  color: var(--pima-muted);
  text-align: center;
}

@media (max-width: 960px) {
  .pima-about,
  .pima-founder { grid-template-columns: 1fr; }

  .pima-about__visual--pair .pima-about__photo { width: 86%; }
  .pima-about__visual--pair .pima-about__drawing { width: 72%; }
}

@media (max-width: 760px) {
  .pima-timeline__list {
    grid-template-columns: 1fr;
    padding-left: 6px;
  }

  .pima-timeline__list li {
    padding: 0 0 40px 32px;
    border-top: 0;
    border-left: 1px solid var(--pima-line);
  }

  .pima-timeline__list li:last-child { padding-bottom: 0; }

  .pima-timeline__list li::before {
    top: 4px;
    left: -6px;
  }

  .pima-timeline__label { margin-bottom: 12px; }
}

@media (max-width: 620px) {
  .pima-about__visual--pair .pima-about__photo { width: 92%; }
  .pima-about__visual--pair .pima-about__drawing { width: 80%; padding: 14px 16px 12px; }

  .pima-partners__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .pima-partners__item {
    height: 108px;
    padding: 20px;
  }

  .pima-partners__item img { max-height: 68px; }
}
