/* ==========================================================================
   INPE Rivestimenti - brand layer (INPE Brand Identity Finale)
   Loaded after every other stylesheet. Palette: Basalto, Gesso, Calce,
   Cemento, Ottone. Type: Archivo (struttura), IBM Plex Mono (tecnica),
   Instrument Serif italic (calore). Square corners, hard edges, 1.5px rules.
   Selectors use body.inpe-site:not(.x-brand) to outrank the legacy layers.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
body.inpe-site:not(.x-brand) {
  --basalto: #14120F;
  --gesso: #F8F6F2;
  --calce: #E9E3D8;
  --cemento: #8C877E;
  --ottone: #9C7A3B;
  --ottone-scuro: #7E6229;
  --ottone-chiaro: #C9A75F;
  --grigio-900: #3A352E;
  --grigio-700: #5C574F;
  --grigio-300: #D8D2C7;
  --rule: 1.5px;

  --ink: var(--basalto);
  --ink-soft: var(--grigio-900);
  --text: var(--basalto);
  --text-muted: var(--grigio-700);
  --text-on-dark: var(--gesso);
  --text-muted-dark: var(--grigio-300);
  --white: var(--gesso);
  --pure: #FFFFFF;
  --marble: var(--calce);
  --stone: var(--cemento);
  --gold: var(--ottone);
  --gold-deep: var(--ottone-scuro);
  --gold-light: var(--ottone-chiaro);
  --line: rgba(20, 18, 15, 0.16);
  --line-strong: var(--basalto);
  --line-dark: rgba(248, 246, 242, 0.18);
  --shadow-sm: 0 1px 2px rgba(20,18,15,.05), 0 8px 18px -14px rgba(20,18,15,.28);
  --shadow-md: 0 18px 36px -26px rgba(20,18,15,.38);
  --shadow-lg: 0 34px 64px -36px rgba(20,18,15,.42);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --shell: 1376px;
  --gutter: 48px;

  /* Raised Basalto slabs: square block with a solid offset edge. */
  --slab-inset: clamp(16px, 4vw, 56px);
  --slab-gap: 32px;
  --slab-gap-after: 48px;
  --slab-plinth: 0 34px 60px -34px rgba(20,18,15,.5), 0 12px 24px -18px rgba(20,18,15,.3);

  background: var(--gesso);
  color: var(--basalto);
  font-family: var(--font-body);
}
@media (max-width: 1199px) { body.inpe-site:not(.x-brand) { --gutter: 36px; } }
@media (max-width: 959px)  { body.inpe-site:not(.x-brand) { --gutter: 28px; } }
@media (max-width: 639px)  { body.inpe-site:not(.x-brand) { --gutter: 20px; --slab-gap: 24px; --slab-gap-after: 32px; } }


body.inpe-site:not(.x-brand) :is(input, select, textarea):focus-visible,
body.inpe-site:not(.x-brand) :focus-visible { outline: 2px solid var(--ottone); outline-offset: 3px; }

/* ---------- Typography ---------- */
body.inpe-site:not(.x-brand) :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.inpe-site:not(.x-brand) h3 { font-weight: 700; letter-spacing: -0.01em; }
body.inpe-site:not(.x-brand) :is(p, li, dd, figcaption, label, input, select, textarea, button, a) { font-family: var(--font-body); }

body.inpe-site:not(.x-brand) :is(.inpe-kicker, .eyebrow, .form-kicker, .brand-label) {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ottone-scuro);
}
body.inpe-site:not(.x-brand) :is(.section-dark, .inpe-project, .site-footer, .service-project-band.is-dark) :is(.inpe-kicker, .eyebrow) { color: var(--ottone-chiaro); }
body.inpe-site:not(.x-brand) :is(.inpe-material-mark, .swatch-mark) { display: none; }
body.inpe-site:not(.x-brand) .submenu-rail .swatch-mark { display: flex; }
body.inpe-site:not(.x-brand) :is(.media-note, .page-photo-credit, .option-number, .ba-tag, .card-read, .field label, .journal-tools label) {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.inpe-site:not(.x-brand) :is(.media-note, .ba-tag) { font-size: 10px; font-weight: 500; }
body.inpe-site:not(.x-brand) .card-read { font-size: 12px; font-weight: 500; color: var(--basalto); }
body.inpe-site:not(.x-brand) :is(.lede, .body-text) { color: var(--grigio-700); }
body.inpe-site:not(.x-brand) :is(.section-dark, .inpe-project, .cta-band) :is(.lede, .body-text, p:not(.inpe-kicker):not(.eyebrow)) { color: var(--grigio-300); }
body.inpe-site:not(.x-brand) .inpe-gold { color: var(--ottone-scuro); }

/* ---------- Buttons ---------- */
body.inpe-site:not(.x-brand) .btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  min-height: 52px;
  padding: 0 24px;
  border: var(--rule) solid transparent;
  transform: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
body.inpe-site:not(.x-brand) .btn::before,
body.inpe-site:not(.x-brand) .btn::after { display: none; }
body.inpe-site:not(.x-brand) .btn:hover { transform: none; }
body.inpe-site:not(.x-brand) .btn-primary { --btn-bg: var(--ottone); --btn-fg: var(--basalto); background: var(--ottone); color: var(--basalto); border-color: var(--ottone); }
body.inpe-site:not(.x-brand) .btn-primary:hover { background: var(--ottone-chiaro); border-color: var(--ottone-chiaro); color: var(--basalto); }
body.inpe-site:not(.x-brand) .btn-ghost,
body.inpe-site:not(.x-brand) .btn-secondary { --btn-bg: transparent; --btn-fg: var(--basalto); background: transparent; color: var(--basalto); border-color: var(--basalto); }
body.inpe-site:not(.x-brand) .btn-ghost:hover,
body.inpe-site:not(.x-brand) .btn-secondary:hover { background: var(--basalto); color: var(--gesso); }
body.inpe-site:not(.x-brand) :is(.brand-hero, .section-dark) .btn-ghost { color: var(--gesso); border-color: var(--grigio-300); }
body.inpe-site:not(.x-brand) :is(.brand-hero, .section-dark) .btn-ghost:hover { background: var(--gesso); color: var(--basalto); border-color: var(--gesso); }
body.inpe-site:not(.x-brand) .btn .icon,
body.inpe-site:not(.x-brand) .btn .btn-arrow { transform: none; }
body.inpe-site:not(.x-brand) .inpe-text-link { font-family: var(--font-display); font-weight: 700; color: var(--basalto); border-bottom: var(--rule) solid var(--ottone); }
body.inpe-site:not(.x-brand) .inpe-text-link:hover { color: var(--ottone-scuro); }

/* ---------- Header ---------- */
body.inpe-site:not(.x-brand) .site-header { background: #FFFFFF; border-bottom: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .site-header .header-inner { max-width: var(--shell); padding-inline: var(--gutter); }
body.inpe-site:not(.x-brand) .header-rule { display: none; }
body.inpe-site:not(.x-brand) .nav-link { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--basalto); }
body.inpe-site:not(.x-brand) .nav-link::after { background: var(--ottone); height: 2px; }
body.inpe-site:not(.x-brand) .nav-link:hover { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .header-whatsapp { border-radius: 0; }
body.inpe-site:not(.x-brand) .header-call-mobile { background: var(--ottone); color: var(--basalto); font-family: var(--font-display); font-weight: 700; }
body.inpe-site:not(.x-brand) .menu-toggle { border: var(--rule) solid var(--basalto); background: #FFFFFF; color: var(--basalto); }
body.inpe-site:not(.x-brand) .menu-toggle-bars span { background: var(--basalto); }

/* Services dropdown */
body.inpe-site:not(.x-brand) .submenu { top: calc(100% + 17px); overflow: visible; border: var(--rule) solid var(--basalto); background: #FFFFFF; }
body.inpe-site:not(.x-brand) .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 19px; }
body.inpe-site:not(.x-brand) .submenu-rail { background: var(--calce); color: var(--basalto); border-right: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .submenu-rail p { font-family: var(--font-display); font-weight: 800; color: var(--basalto); }
body.inpe-site:not(.x-brand) .submenu .submenu-all { white-space: nowrap; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--basalto); border-bottom: var(--rule) solid var(--ottone); padding-bottom: 4px; }
body.inpe-site:not(.x-brand) .submenu .submenu-all:hover { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .submenu ul a { font-family: var(--font-display); font-weight: 600; color: var(--basalto); }
body.inpe-site:not(.x-brand) .submenu ul a:hover { background: var(--calce); }
body.inpe-site:not(.x-brand) .submenu ul a img { outline: 1px solid rgba(20, 18, 15, .14); outline-offset: -1px; }

/* Mobile menu: light panel so the logo sits on its own white. */
body.inpe-site:not(.x-brand) .mobile-menu-backdrop { background: rgba(20, 18, 15, .55); }
body.inpe-site:not(.x-brand) .mobile-menu-panel { height: 100dvh; max-height: none; background: #FFFFFF; color: var(--basalto); border-left: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .mobile-menu-head { border-bottom: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .mobile-menu-logo img { filter: none; }
body.inpe-site:not(.x-brand) .mobile-menu-close { border: var(--rule) solid var(--basalto); color: var(--basalto); background: #FFFFFF; }
body.inpe-site:not(.x-brand) .mobile-nav-list > li { border-bottom: 1px solid var(--grigio-300); }
body.inpe-site:not(.x-brand) :is(.mobile-nav-list a, .mobile-nav-list summary) { color: var(--basalto); font-family: var(--font-display); font-weight: 700; }
body.inpe-site:not(.x-brand) .mobile-nav-list summary .icon { color: var(--ottone); }
body.inpe-site:not(.x-brand) .mobile-subnav { border-left: var(--rule) solid var(--ottone); }
body.inpe-site:not(.x-brand) .mobile-subnav a { color: var(--grigio-900); font-weight: 600; }
body.inpe-site:not(.x-brand) .mobile-menu-contact { border-top: var(--rule) solid var(--basalto); }

/* Mobile sticky CTA */
body.inpe-site:not(.x-brand) .mobile-cta { background: var(--gesso); border-top: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .mobile-cta > .mobile-whatsapp { background: #25D366; border-color: #25D366; color: #FFFFFF; }

/* ---------- Hero system ---------- */
body.inpe-site:not(.x-brand) .brand-hero {
  --hero-min: clamp(520px, 66vh, 640px);
  --hero-content: calc(var(--shell) - 2 * var(--gutter));
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--hero-content) * .46))
    minmax(0, calc(var(--hero-content) * .54))
    minmax(var(--gutter), 1fr);
  grid-template-rows: minmax(var(--hero-min), auto);
  background: var(--basalto);
  color: var(--gesso);
  border-bottom: var(--rule) solid var(--basalto);
  overflow: hidden;
  isolation: isolate;
}
body.inpe-site:not(.x-brand) .brand-hero-panel { grid-column: 1 / 3; grid-row: 1; background: var(--basalto); }
body.inpe-site:not(.x-brand) .brand-hero-media { grid-column: 3 / 5; grid-row: 1; position: relative; overflow: hidden; background: var(--grigio-900); }
body.inpe-site:not(.x-brand) .brand-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-focus, 50% 50%);
}
body.inpe-site:not(.x-brand) .brand-hero-body {
  grid-column: 2; grid-row: 1; align-self: end;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 80px 56px 64px 0;
  min-width: 0;
}
body.inpe-site:not(.x-brand) .brand-hero-label {
  margin: 0 0 20px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ottone-chiaro);
}
body.inpe-site:not(.x-brand) .brand-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.25rem + 2.9vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--gesso);
  text-wrap: balance;
}
body.inpe-site:not(.x-brand) .brand-hero h1 em { font-style: normal; color: var(--ottone-chiaro); }
body.inpe-site:not(.x-brand) .brand-hero-payoff { margin: 22px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--gesso); }
body.inpe-site:not(.x-brand) .brand-hero-lede { margin: 18px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--grigio-300); }
body.inpe-site:not(.x-brand) .brand-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
body.inpe-site:not(.x-brand) .brand-hero-meta {
  grid-column: 3; grid-row: 1; align-self: end; justify-self: end;
  position: relative; z-index: 2; margin: 0;
}
body.inpe-site:not(.x-brand) .brand-hero-credit {
  padding: 11px 14px;
  background: var(--basalto); color: var(--grigio-300);
  font-family: var(--font-mono); font-weight: 400; font-size: 11px; line-height: 1.3;
  letter-spacing: .1em; text-transform: uppercase;
}

/* Text-only hero (Contatti) */
body.inpe-site:not(.x-brand) .brand-hero--text { grid-template-rows: auto; }
body.inpe-site:not(.x-brand) .brand-hero--text .brand-hero-panel { grid-column: 1 / -1; }
body.inpe-site:not(.x-brand) .brand-hero--text .brand-hero-body { grid-column: 2 / 4; padding: 88px 0 72px; }
body.inpe-site:not(.x-brand) .brand-hero--text h1 { max-width: 16ch; }
body.inpe-site:not(.x-brand) .brand-hero--text .brand-hero-lede { max-width: 56ch; }

/* Home: carousel inside the photo column */
body.inpe-site:not(.x-brand) .brand-hero-home { --hero-min: clamp(560px, 74vh, 720px); }
body.inpe-site:not(.x-brand) :is(.bh-slides, .bh-slide, .bh-photo) { position: absolute; inset: 0; }
body.inpe-site:not(.x-brand) .bh-slide { opacity: 0; visibility: hidden; transition: opacity 1.1s cubic-bezier(.22,.72,.2,1), visibility 1.1s; }
body.inpe-site:not(.x-brand) .bh-slide.is-active { opacity: 1; visibility: visible; }
body.inpe-site:not(.x-brand) .bh-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 50% 50%);
  transform: scale(1.04); transition: transform 9s cubic-bezier(.16,.7,.2,1);
}
body.inpe-site:not(.x-brand) .bh-slide.is-active .bh-photo img { transform: scale(1); }
body.inpe-site:not(.x-brand) .bh-carousel { display: flex; align-items: stretch; background: var(--basalto); }
body.inpe-site:not(.x-brand) .bh-slide-link { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 18px; min-height: 56px; color: var(--gesso); text-decoration: none; }
body.inpe-site:not(.x-brand) .bh-slide-link span { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ottone-chiaro); }
body.inpe-site:not(.x-brand) .bh-slide-link b { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--gesso); }
body.inpe-site:not(.x-brand) .bh-slide-link:hover b { color: var(--ottone-chiaro); }
body.inpe-site:not(.x-brand) .bh-dots { display: flex; align-items: center; gap: 6px; padding: 0 16px; border-left: var(--rule) solid var(--grigio-900); }
body.inpe-site:not(.x-brand) .bh-dots button { position: relative; width: 26px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
body.inpe-site:not(.x-brand) .bh-dots button::before,
body.inpe-site:not(.x-brand) .bh-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; }
body.inpe-site:not(.x-brand) .bh-dots button::before { background: var(--grigio-700); }
body.inpe-site:not(.x-brand) .bh-dots button::after { background: var(--ottone-chiaro); transform: scaleX(0); transform-origin: 0 50%; }
body.inpe-site:not(.x-brand) .bh-dots button.is-active::after { transform: scaleX(1); transition: transform 5.5s linear; }
body.inpe-site:not(.x-brand) .brand-hero-home.is-paused .bh-dots button.is-active::after { transition: none; }
body.inpe-site:not(.x-brand) .bh-dots button:hover::before { background: var(--grigio-300); }

@media (max-width: 1199px) {
  body.inpe-site:not(.x-brand) .brand-hero-body { padding-right: 40px; }
}
@media (max-width: 959px) {
  body.inpe-site:not(.x-brand) .brand-hero {
    grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
    grid-template-rows: auto auto;
  }
  body.inpe-site:not(.x-brand) .brand-hero-media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 10; }
  body.inpe-site:not(.x-brand) .brand-hero-panel { grid-column: 1 / -1; grid-row: 2; }
  body.inpe-site:not(.x-brand) .brand-hero-body { grid-column: 2; grid-row: 2; padding: 40px 0 44px; }
  body.inpe-site:not(.x-brand) .brand-hero-meta { grid-column: 2; grid-row: 1; }
  body.inpe-site:not(.x-brand) .brand-hero--text { grid-template-rows: auto; }
  body.inpe-site:not(.x-brand) .brand-hero--text :is(.brand-hero-panel, .brand-hero-body) { grid-row: 1; }
  body.inpe-site:not(.x-brand) .brand-hero--text .brand-hero-body { grid-column: 2; padding: 56px 0 48px; }
  body.inpe-site:not(.x-brand) .brand-hero-lede { max-width: 60ch; }
}
@media (max-width: 639px) {
  body.inpe-site:not(.x-brand) .brand-hero-media { aspect-ratio: 4 / 3; }
  body.inpe-site:not(.x-brand) .brand-hero-body { padding: 32px 0 36px; }
  body.inpe-site:not(.x-brand) .brand-hero-label { margin-bottom: 14px; font-size: 11px; }
  body.inpe-site:not(.x-brand) .brand-hero h1 { font-size: clamp(2.1rem, 7.6vw + .4rem, 2.6rem); }
  body.inpe-site:not(.x-brand) .brand-hero-payoff { font-size: 19px; margin-top: 16px; }
  body.inpe-site:not(.x-brand) .brand-hero-lede { font-size: 16px; margin-top: 14px; }
  body.inpe-site:not(.x-brand) .brand-hero-actions { width: 100%; margin-top: 26px; }
  body.inpe-site:not(.x-brand) .brand-hero-actions .btn { width: 100%; }
  body.inpe-site:not(.x-brand) .brand-hero-credit { padding: 8px 10px; font-size: 10px; }
  body.inpe-site:not(.x-brand) .bh-slide-link { padding: 8px 12px; min-height: 44px; }
  body.inpe-site:not(.x-brand) .bh-slide-link b { display: none; }
  body.inpe-site:not(.x-brand) .bh-dots { padding: 0 10px; gap: 4px; }
  body.inpe-site:not(.x-brand) .bh-dots button { width: 22px; }
}

/* ---------- Sections ---------- */
body.inpe-site:not(.x-brand) :is(.section, .inpe-section) { background-color: var(--gesso); }
body.inpe-site:not(.x-brand) .section-surface,
body.inpe-site:not(.x-brand) .inpe-home .inpe-services,
body.inpe-site:not(.x-brand) .quote-zone { background: var(--calce); }
body.inpe-site:not(.x-brand) :is(.service-options, .journal-preview, .service-catalog) { background: var(--gesso); }
body.inpe-site:not(.x-brand) .inpe-home :is(.inpe-intro, .inpe-process, .inpe-contact) { background: var(--gesso); }
body.inpe-site:not(.x-brand) .inpe-section-blend { display: none; }
body.inpe-site:not(.x-brand) :is(.quote-zone-pattern) { display: none; }
body.inpe-site:not(.x-brand) .quote-zone::before,
body.inpe-site:not(.x-brand) .quote-zone::after { display: none; }

/* Raised Basalto slabs (id-level :not() so the plinth outranks the global no-shadow rule) */
body.inpe-site:not(#x-brand) :is(.cta-band, .service-final, .section-dark),
body.inpe-site:not(#x-brand).inpe-home .inpe-project {
  background: var(--basalto);
  color: var(--gesso);
  margin: var(--slab-gap) var(--slab-inset) var(--slab-gap-after);
  box-shadow: var(--slab-plinth) !important;
}
body.inpe-site:not(.x-brand) :is(.cta-band, .service-final) { padding-block: 30px; }

/* Trust strip */
body.inpe-site:not(.x-brand) .inpe-trust-strip { background: var(--gesso); border-bottom: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .inpe-trust-line span { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--basalto); }
body.inpe-site:not(.x-brand) .inpe-trust-line span::before { background: var(--ottone); }

/* Anchor navs and chips */
body.inpe-site:not(.x-brand) .service-anchor-nav { background: var(--gesso); border-bottom: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .service-anchor-nav a { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--basalto); }
body.inpe-site:not(.x-brand) .service-anchor-nav a:hover { border-color: var(--ottone); color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .project-jump { padding-block: 40px 8px; }
body.inpe-site:not(.x-brand) .project-jump-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--rule) solid var(--basalto); background: #FFFFFF; }
body.inpe-site:not(.x-brand) .project-jump-grid a {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 20px;
  border-right: var(--rule) solid var(--basalto);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3;
  color: var(--basalto); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
body.inpe-site:not(.x-brand) .project-jump-grid a:last-child { border-right: 0; }
body.inpe-site:not(.x-brand) .project-jump-grid a span { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .project-jump-grid a:hover { background: var(--basalto); color: var(--gesso); }
body.inpe-site:not(.x-brand) .project-jump-grid a:hover span { color: var(--ottone-chiaro); }
@media (max-width: 959px) {
  body.inpe-site:not(.x-brand) .project-jump-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.inpe-site:not(.x-brand) .project-jump-grid a:nth-child(2) { border-right: 0; }
  body.inpe-site:not(.x-brand) .project-jump-grid a:nth-child(-n+2) { border-bottom: var(--rule) solid var(--basalto); }
}
@media (max-width: 639px) {
  body.inpe-site:not(.x-brand) .project-jump { padding-block: 28px 4px; }
  body.inpe-site:not(.x-brand) .project-jump-grid { grid-template-columns: minmax(0, 1fr); }
  body.inpe-site:not(.x-brand) .project-jump-grid a { border-right: 0; min-height: 56px; }
  body.inpe-site:not(.x-brand) .project-jump-grid a:not(:last-child) { border-bottom: var(--rule) solid var(--basalto); }
}

/* ---------- Cards and lists ---------- */
body.inpe-site:not(.x-brand) :is(.work-card, .journal-card) { background: #FFFFFF; border: var(--rule) solid var(--basalto); transition: border-color .2s var(--ease); }
body.inpe-site:not(.x-brand) :is(.work-card, .journal-card):hover { border-color: var(--ottone); }
body.inpe-site:not(.x-brand) :is(.work-card-media, .journal-card-media) { border-bottom: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .media-note { background: var(--basalto); color: var(--gesso); padding: 5px 8px; }
body.inpe-site:not(.x-brand) :is(.work-card h3, .journal-card h3) { color: var(--basalto); }
body.inpe-site:not(.x-brand) .option-card { background: #FFFFFF; border: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .option-number { color: var(--ottone-scuro); font-size: 12px; font-weight: 500; }
body.inpe-site:not(.x-brand) .service-steps > li { border-top: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .service-steps > li > span { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .service-checks > div { border-bottom: 1px solid var(--grigio-300); }
body.inpe-site:not(.x-brand) .service-checks dt { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
body.inpe-site:not(.x-brand) .service-checks > div { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; }
@media (max-width: 639px) {
  body.inpe-site:not(.x-brand) .service-checks > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
body.inpe-site:not(.x-brand) img.service-project-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 72%; border: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .combination-list a { border-bottom: var(--rule) solid var(--basalto); font-family: var(--font-display); font-weight: 700; color: var(--basalto); }
body.inpe-site:not(.x-brand) .inpe-service-list details { border-bottom: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .inpe-service-list summary { font-family: var(--font-display); font-weight: 700; color: var(--basalto); }
body.inpe-site:not(.x-brand) .inpe-service-list summary .icon { border: var(--rule) solid var(--basalto); color: var(--basalto); }

/* Flat boxed cards (contatti, chi siamo, materiali) */
body.inpe-site:not(.x-brand) :is(.case-card, .note-card, .tone-guide li) {
  background: #FFFFFF;
  border: var(--rule) solid var(--basalto);
  transform: none !important;
  will-change: auto;
}
body.inpe-site:not(.x-brand) :is(.case-card, .note-card, .tone-guide li)::before { display: none; }
body.inpe-site:not(.x-brand) .case-card:hover { border-color: var(--ottone); }
body.inpe-site:not(.x-brand) .case-card h3 { color: var(--basalto); }

/* Header logo: keep the file's own proportions */
body.inpe-site:not(.x-brand) .site-header .brand { width: auto; }
body.inpe-site:not(.x-brand) .site-header .brand img,
body.inpe-site:not(.x-brand) .site-header.is-stuck .brand img { width: auto; height: 58px; object-fit: contain; }
@media (max-width: 959px) {
  body.inpe-site:not(.x-brand) .site-header .brand img,
  body.inpe-site:not(.x-brand) .site-header.is-stuck .brand img { height: 50px; }
}
@media (max-width: 639px) {
  body.inpe-site:not(.x-brand) .site-header .brand img,
  body.inpe-site:not(.x-brand) .site-header.is-stuck .brand img { height: 44px; }
}

/* Photos: flat, framed by a thin Basalto rule */
body.inpe-site:not(.x-brand) :is(.service-detail-photo img, .service-project-photo img, .service-faq-photo img, .inpe-method-photo picture, .about-photo picture, .detail-figure picture, .article-cover img) { border: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) :is(.gallery-item picture, .photo-gallery-grid .gallery-item picture) { border: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) :is(.service-detail-photo figcaption, .service-faq-photo figcaption, .gallery-item figcaption) { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio-700); }
body.inpe-site:not(.x-brand) .service-faq-photo { margin: 32px 0 0; max-width: 460px; }
body.inpe-site:not(.x-brand) .service-faq-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body.inpe-site:not(.x-brand) .service-faq-photo figcaption { margin-top: 12px; }
@media (max-width: 959px) { body.inpe-site:not(.x-brand) .service-faq-photo { max-width: none; margin-bottom: 8px; } }

/* Gallery dialog */
body.inpe-site:not(.x-brand) .gallery-dialog { background: var(--gesso); border: var(--rule) solid var(--basalto); color: var(--basalto); }
body.inpe-site:not(.x-brand) .gallery-dialog::backdrop { background: rgba(20, 18, 15, .9); }
body.inpe-site:not(.x-brand) .gallery-dialog button { border: var(--rule) solid var(--basalto); background: #FFFFFF; color: var(--basalto); }
body.inpe-site:not(.x-brand) .gallery-dialog button:hover { background: var(--basalto); color: var(--gesso); }
body.inpe-site:not(.x-brand) .gallery-dialog-head p { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Quote zone: form + map ---------- */
body.inpe-site:not(.x-brand) .quote-zone-form .contact-form { background: #FFFFFF; border: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .quote-zone-form .form-intro { font-family: var(--font-display); font-weight: 800; }
body.inpe-site:not(.x-brand) .contact-form :is(input, select, textarea) { background: #FFFFFF; border: var(--rule) solid var(--cemento); color: var(--basalto); }
body.inpe-site:not(.x-brand) .contact-form :is(input, select, textarea):focus { border-color: var(--basalto); outline: 2px solid var(--ottone); outline-offset: 2px; }
body.inpe-site:not(.x-brand) .field label { font-size: 11px; font-weight: 500; color: var(--grigio-900); }
body.inpe-site:not(.x-brand) .quote-zone-grid { align-items: start; }
body.inpe-site:not(.x-brand) .quote-zone-map { display: grid; gap: 0; justify-items: stretch; align-content: start; }
body.inpe-site:not(.x-brand) .sicily-map-card { width: 100%; margin: 0; transform: none; }
body.inpe-site:not(.x-brand) .sicily-map-card img { display: block; width: 100%; height: auto; border: var(--rule) solid var(--basalto); background: #FFFFFF; }
body.inpe-site:not(.x-brand) .quote-zone-card {
  width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  padding: 0;
  background: var(--basalto);
  border: var(--rule) solid var(--basalto); border-top: 0;
  backdrop-filter: none;
}
body.inpe-site:not(.x-brand) :is(.quote-zone-card a, .quote-zone-card span) {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 20px;
  color: var(--gesso); font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border-top: 1px solid var(--grigio-900);
}
body.inpe-site:not(.x-brand) :is(.quote-zone-card a, .quote-zone-card span):nth-child(odd) { border-right: 1px solid var(--grigio-900); }
body.inpe-site:not(.x-brand) :is(.quote-zone-card a, .quote-zone-card span):nth-child(-n+2) { border-top: 0; }
body.inpe-site:not(.x-brand) .quote-zone-card a:hover { background: var(--grigio-900); color: var(--ottone-chiaro); }
body.inpe-site:not(.x-brand) .quote-zone-card .icon:not(.whatsapp-icon) { color: var(--ottone-chiaro); }
@media (max-width: 639px) {
  body.inpe-site:not(.x-brand) .quote-zone-card { grid-template-columns: minmax(0, 1fr); }
  body.inpe-site:not(.x-brand) :is(.quote-zone-card a, .quote-zone-card span) { border-right: 0 !important; border-top: 1px solid var(--grigio-900); min-height: 56px; font-size: 14px; }
  body.inpe-site:not(.x-brand) :is(.quote-zone-card a, .quote-zone-card span):first-child { border-top: 0; }
}

/* Journal tools */
body.inpe-site:not(.x-brand) .journal-tools { border-bottom: var(--rule) solid var(--basalto); }
body.inpe-site:not(.x-brand) .journal-tools :is(input, select) { border: var(--rule) solid var(--cemento); background: #FFFFFF; }

/* ---------- Articles ---------- */
body.inpe-site:not(.x-brand) .article-header { padding-block: 56px 36px; }
body.inpe-site:not(.x-brand) .article-header h1 { font-size: clamp(2.2rem, 1.2rem + 2.2vw, 3.4rem); line-height: 1.05; max-width: 22ch; margin: 16px 0 18px; }
body.inpe-site:not(.x-brand) .article-cover img { aspect-ratio: 16 / 9; max-height: 560px; width: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
body.inpe-site:not(.x-brand) .site-footer { background: var(--basalto); color: var(--grigio-300); }
body.inpe-site:not(.x-brand) .site-footer h2 { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ottone-chiaro); }
body.inpe-site:not(.x-brand) .site-footer a { color: var(--gesso); }
body.inpe-site:not(.x-brand) .site-footer a:hover { color: var(--ottone-chiaro); }
body.inpe-site:not(.x-brand) :is(.footer-logo-plate, .footer-logo-compact),
body.inpe-site:not(.x-brand).inpe-home .footer-logo-compact { background: #FFFFFF; border: 0; padding: 10px; }
body.inpe-site:not(.x-brand) .footer-logo-compact::before { display: none; }
body.inpe-site:not(.x-brand) .footer-bottom { border-top: var(--rule) solid var(--grigio-900); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cemento); }

@media (prefers-reduced-motion: reduce) {
  body.inpe-site:not(.x-brand) :is(.bh-slide, .bh-photo img, .btn) { transition: none; }
  body.inpe-site:not(.x-brand) .bh-dots button.is-active::after { transition: none; }
}

/* ==========================================================================
   Balance pass (17/09): brighter surfaces, softer corners, background pattern.
   Keeps Archivo + Plex Mono and the brass accent; black only in footer and
   small CTA bands.
   ========================================================================== */
body.inpe-site:not(.x-brand) {
  --panel: #EFEAE1;
  --soft-line: #DDD6CA;
  background: var(--gesso) url("../images/pattern-inpe.svg") 0 0 / 640px 640px repeat;
}

/* Sections let the pattern show through */
body.inpe-site:not(.x-brand) :is(.section, .inpe-section, .service-options, .journal-preview, .service-catalog, .service-anchor-nav, .inpe-trust-strip, .journal-section),
body.inpe-site:not(.x-brand) .inpe-home :is(.inpe-intro, .inpe-process, .inpe-contact) { background-color: transparent; }
body.inpe-site:not(.x-brand) :is(.section-surface, .quote-zone),
body.inpe-site:not(.x-brand) .inpe-home .inpe-services { background: rgba(233, 227, 216, .55); }

/* Softer structure lines */
body.inpe-site:not(.x-brand) .site-header { border-bottom: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) :is(.service-anchor-nav, .inpe-trust-strip, .journal-tools) { border-bottom: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) :is(.service-steps > li, .combination-list a, .inpe-service-list details) { border-color: var(--soft-line); border-width: 1px; }
body.inpe-site:not(.x-brand) .inpe-service-list summary .icon { border: 1px solid var(--soft-line); border-radius: 50%; }

/* Buttons: rounded, gentle lift */
body.inpe-site:not(.x-brand) .btn { border-radius: 12px; border-width: 1px; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
body.inpe-site:not(.x-brand) .btn:hover { transform: translateY(-2px); }
body.inpe-site:not(.x-brand) .btn-primary { box-shadow: 0 10px 22px -16px rgba(126, 98, 41, .7); }

/* Hero: light panel instead of black */
body.inpe-site:not(.x-brand) .brand-hero { background: var(--panel); color: var(--basalto); border-bottom: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .brand-hero-panel { background: var(--panel) url("../images/pattern-inpe.svg") 0 0 / 640px 640px repeat; }
body.inpe-site:not(.x-brand) .brand-hero-label { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .brand-hero h1 { color: var(--basalto); }
body.inpe-site:not(.x-brand) .brand-hero h1 em { color: var(--ottone); }
body.inpe-site:not(.x-brand) .brand-hero-payoff { color: var(--grigio-900); }
body.inpe-site:not(.x-brand) .brand-hero-lede { color: var(--grigio-700); }
body.inpe-site:not(.x-brand) .brand-hero .btn-ghost { color: var(--basalto); border-color: var(--basalto); }
body.inpe-site:not(.x-brand) .brand-hero .btn-ghost:hover { background: var(--basalto); color: var(--gesso); border-color: var(--basalto); }
body.inpe-site:not(.x-brand) .brand-hero-media { background: var(--calce); }
body.inpe-site:not(.x-brand) .brand-hero-credit { background: rgba(248, 246, 242, .92); color: var(--grigio-900); border-radius: 10px 0 0 0; }
body.inpe-site:not(.x-brand) .bh-carousel { background: rgba(248, 246, 242, .94); border-radius: 12px 0 0 0; }
body.inpe-site:not(.x-brand) .bh-slide-link span { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .bh-slide-link b { color: var(--basalto); }
body.inpe-site:not(.x-brand) .bh-slide-link:hover b { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .bh-dots { border-left: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .bh-dots button::before { background: var(--grigio-300); }
body.inpe-site:not(.x-brand) .bh-dots button::after { background: var(--ottone); }
body.inpe-site:not(.x-brand) .bh-dots button:hover::before { background: var(--cemento); }

/* Home project section and Materiali finishes: light raised panel instead of black */
body.inpe-site:not(#x-brand).inpe-home .inpe-project,
body.inpe-site:not(#x-brand) .section-dark {
  background: #FFFFFF;
  color: var(--basalto);
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  box-shadow: var(--slab-plinth) !important;
}
body.inpe-site:not(.x-brand) :is(.inpe-project, .section-dark) :is(h2, h3, .inpe-project-toolbar > p) { color: var(--basalto); }
body.inpe-site:not(#x-brand) :is(.inpe-project, .section-dark) :is(.inpe-kicker, .eyebrow) { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) :is(.inpe-project, .section-dark) :is(.lede, .body-text, p:not(.inpe-kicker):not(.eyebrow)) { color: var(--grigio-700); }
body.inpe-site:not(.x-brand) :is(.inpe-project, .section-dark) :is(.inpe-text-link, .link-arrow, .link-arrow-light) { color: var(--basalto); }
body.inpe-site:not(.x-brand) :is(.inpe-project, .section-dark) :is(.inpe-text-link, .link-arrow, .link-arrow-light):hover { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .inpe-project-images { border: 1px solid var(--soft-line); border-radius: 14px; box-shadow: none; }
body.inpe-site:not(.x-brand) .inpe-project-toolbar { border-bottom-color: var(--soft-line); }
body.inpe-site:not(.x-brand) .inpe-phase-tabs { border-color: var(--soft-line); border-radius: 12px; }
body.inpe-site:not(.x-brand) .inpe-phase-tabs button { color: var(--basalto); border-radius: 9px; }
body.inpe-site:not(.x-brand) .inpe-phase-tabs button[aria-selected="true"] { background: var(--basalto); color: var(--gesso); }
body.inpe-site:not(.x-brand) .inpe-phase-tabs button:hover:not([aria-selected="true"]) { background: var(--calce); }
body.inpe-site:not(.x-brand) .section-dark .finish-label { color: var(--basalto); }
body.inpe-site:not(.x-brand) .section-dark .detail-figure figcaption { color: var(--grigio-700); }

/* CTA bands: stay dark as the one accent, rounded and lifted */
body.inpe-site:not(#x-brand) :is(.cta-band, .service-final) { border-radius: 22px; }
body.inpe-site:not(.x-brand) :is(.cta-band, .service-final) :is(h2, h3, p, a:not(.btn)) { color: var(--gesso); }

/* Cards, photos, form: rounded, light borders */
body.inpe-site:not(.x-brand) :is(.work-card, .journal-card, .option-card, .case-card, .note-card, .tone-guide li) {
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
body.inpe-site:not(.x-brand) :is(.work-card, .journal-card, .case-card):hover { border-color: var(--ottone-chiaro); box-shadow: var(--shadow-md); }
body.inpe-site:not(.x-brand) :is(.work-card-media, .journal-card-media) { border-bottom: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .media-note { border-radius: 6px; }
body.inpe-site:not(.x-brand) :is(.service-detail-photo img, img.service-project-photo, .service-faq-photo img, .inpe-method-photo picture, .about-photo picture, .detail-figure picture, .article-cover img, .gallery-item picture, .photo-gallery-grid .gallery-item picture, .sicily-map-card img) {
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  overflow: hidden;
}
body.inpe-site:not(.x-brand) .project-jump-grid { border: 1px solid var(--soft-line); border-radius: 14px; overflow: hidden; }
body.inpe-site:not(.x-brand) .project-jump-grid a { border-color: var(--soft-line) !important; }
body.inpe-site:not(.x-brand) .quote-zone-form .contact-form { border: 1px solid var(--soft-line); border-radius: 20px; box-shadow: var(--shadow-md); }
body.inpe-site:not(.x-brand) .contact-form :is(input, select, textarea) { border: 1px solid var(--grigio-300); border-radius: 10px; }
body.inpe-site:not(.x-brand) .quote-zone-map { gap: 12px; }
body.inpe-site:not(.x-brand) .quote-zone-card { background: #FFFFFF; border: 1px solid var(--soft-line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
body.inpe-site:not(.x-brand) :is(.quote-zone-card a, .quote-zone-card span) { color: var(--basalto); border-color: var(--soft-line) !important; }
body.inpe-site:not(.x-brand) .quote-zone-card a:hover { background: var(--calce); color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .quote-zone-card .icon:not(.whatsapp-icon) { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .journal-tools :is(input, select) { border: 1px solid var(--grigio-300); border-radius: 10px; }

/* Header, menu, dropdown */
body.inpe-site:not(.x-brand) .header-whatsapp { border-radius: 12px; }
body.inpe-site:not(.x-brand) .menu-toggle { border: 1px solid var(--soft-line); border-radius: 12px; }
body.inpe-site:not(.x-brand) .submenu { border: 1px solid var(--soft-line); border-radius: 18px; overflow: visible; box-shadow: var(--shadow-lg); }
body.inpe-site:not(.x-brand) .submenu-rail { border-right: 1px solid var(--soft-line); border-radius: 17px 0 0 17px; }
body.inpe-site:not(.x-brand) .submenu ul a { border-radius: 10px; }
body.inpe-site:not(.x-brand) .submenu ul a img { border-radius: 8px; }
body.inpe-site:not(.x-brand) .mobile-menu-panel { border-left: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .mobile-menu-head { border-bottom: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .mobile-menu-contact { border-top: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .mobile-menu-close { border: 1px solid var(--soft-line); border-radius: 50%; }
body.inpe-site:not(.x-brand) .mobile-cta { border-top: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .gallery-dialog { border-radius: 18px; border: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .gallery-dialog button { border-radius: 50%; border: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) :is(.footer-logo-plate, .footer-logo-compact) { border-radius: 12px; }

/* Safety net: dark text never sits on a dark surface */
body.inpe-site:not(.x-brand) :is(.site-footer, .cta-band, .service-final, .social-band) .inpe-text-link { color: var(--gesso); }

body.inpe-site:not(.x-brand) .article-aside nav a span { color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .field-optional { color: var(--grigio-700); }

/* ==========================================================================
   Round 3 (17/09): white text on brass buttons, image slots, service work
   photos, article figures, three-project page, thinner social band.
   ========================================================================== */

/* Brass buttons: pure white text (hover darkens the brass so white stays readable) */
body.inpe-site:not(#x-brand) .btn-primary,
body.inpe-site:not(#x-brand) .btn-primary:visited { --btn-fg: #FFFFFF; color: #FFFFFF; }
body.inpe-site:not(#x-brand) .btn-primary:hover,
body.inpe-site:not(#x-brand) .btn-primary:focus-visible { background: var(--ottone-scuro); border-color: var(--ottone-scuro); color: #FFFFFF; }
body.inpe-site:not(#x-brand) .btn-primary :is(.icon, .btn-arrow, svg) { color: #FFFFFF; stroke: #FFFFFF; }
body.inpe-site:not(#x-brand) .header-call-mobile { color: #FFFFFF; }

/* Placeholder for images still to be generated: clearly labelled, never fake */
body.inpe-site:not(.x-brand) .img-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-width: 0; min-height: 0; padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, #F1ECE3 0 12px, #EAE4DA 12px 24px);
  border: 1.5px dashed var(--cemento); border-radius: 14px; color: var(--grigio-900);
}
body.inpe-site:not(.x-brand) .img-slot span { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .img-slot code { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; color: var(--grigio-700); }
body.inpe-site:not(.x-brand) .inpe-material-stage .img-slot { height: 100%; border-radius: 0; }
body.inpe-site:not(.x-brand) .gallery-note { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--calce); font-size: 10px; letter-spacing: .08em; color: var(--grigio-700); }

/* Service pages: two work photos */
body.inpe-site:not(.x-brand) .service-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
body.inpe-site:not(.x-brand) .service-work-photo { margin: 0; min-width: 0; }
body.inpe-site:not(.x-brand) .service-work-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--soft-line); border-radius: 14px; }
body.inpe-site:not(.x-brand) .service-work-photo figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio-700); }

/* Articles: inline figures */
body.inpe-site:not(.x-brand) .article-figure { margin: 8px 0 36px; }
body.inpe-site:not(.x-brand) .article-figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--soft-line); border-radius: 14px; }
body.inpe-site:not(.x-brand) .article-figure figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio-700); }

/* Progetti: index of the three projects + one block per project */
body.inpe-site:not(.x-brand) .project-index { padding-block: 44px 20px; }
body.inpe-site:not(.x-brand) .project-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
body.inpe-site:not(.x-brand) .project-index-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: #FFFFFF; border: 1px solid var(--soft-line); border-radius: 16px; box-shadow: var(--shadow-sm);
  color: var(--basalto); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
body.inpe-site:not(.x-brand) .project-index-card:hover { border-color: var(--ottone-chiaro); transform: translateY(-3px); box-shadow: var(--shadow-md); }
body.inpe-site:not(.x-brand) .project-index-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--calce); }
body.inpe-site:not(.x-brand) .project-index-media :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
body.inpe-site:not(.x-brand) .project-index-media .img-slot { height: 100%; border: 0; border-radius: 0; }
body.inpe-site:not(.x-brand) .project-index-copy { display: grid; gap: 6px; padding: 18px 20px 20px; }
body.inpe-site:not(.x-brand) .project-index-copy span { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ottone-scuro); }
body.inpe-site:not(.x-brand) .project-index-copy strong { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.25; }
body.inpe-site:not(.x-brand) .project-block { scroll-margin-top: 90px; }
body.inpe-site:not(.x-brand) .project-gallery { grid-template-columns: minmax(0, 1fr); }
body.inpe-site:not(.x-brand) .project-gallery > .gallery-item { min-width: 0; }
@media (min-width: 960px) { body.inpe-site:not(.x-brand) .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.inpe-site:not(.x-brand) .project-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 32px; }
body.inpe-site:not(.x-brand) .project-foot .project-notes { margin: 0; max-width: 760px; }
body.inpe-site:not(.x-brand) .project-foot .inpe-text-link { flex-shrink: 0; }

/* Social band: thinner and narrower, logos unchanged */
body.inpe-site:not(#x-brand) .social-band {
  max-width: 820px;
  margin-inline: auto;
  padding: 24px 16px 22px;
  border-radius: 22px;
}
body.inpe-site:not(#x-brand) .social-band .social-band__title { margin-bottom: 14px; font-size: 22px; }

@media (max-width: 959px) {
  body.inpe-site:not(.x-brand) .project-index-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.inpe-site:not(.x-brand) .project-index-card { flex-direction: row; align-items: stretch; }
  body.inpe-site:not(.x-brand) .project-index-media { width: 38%; flex: 0 0 38%; aspect-ratio: auto; min-height: 110px; }
  body.inpe-site:not(.x-brand) .project-index-copy { align-content: center; padding: 14px 16px; }
  body.inpe-site:not(.x-brand) .project-index-copy strong { font-size: 17px; }
  body.inpe-site:not(.x-brand) .project-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 639px) {
  body.inpe-site:not(.x-brand) .service-work-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.inpe-site:not(.x-brand) .project-index { padding-block: 28px 8px; }
  body.inpe-site:not(.x-brand) .project-index-copy strong { font-size: 16px; }
  body.inpe-site:not(#x-brand) .social-band { margin-inline: var(--gutter); padding: 20px 12px 18px; }
  body.inpe-site:not(#x-brand) .social-band .social-band__title { font-size: 19px; }
  body.inpe-site:not(.x-brand) .img-slot code { font-size: 11px; }
}

@media (max-width: 399px) { body.inpe-site:not(#x-brand) .social-band .social-band__title { font-size: 17px; } }

/* ---------- Round 6 (17/09/2026) ---------- */
/* Striscia che scorre: continua a girare, ma si ferma quando e' fuori schermo */
.inpe-trust-strip.is-offscreen .inpe-trust-track { animation-play-state: paused; }

/* Modulo preventivo: riga privacy sotto il pulsante */
body.inpe-site:not(.x-brand) .contact-form .form-privacy { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--grigio-700); text-align: center; }
body.inpe-site:not(.x-brand) .contact-form .form-privacy a { color: var(--ottone-scuro); text-decoration: underline; text-underline-offset: 3px; }
body.inpe-site:not(.x-brand) .contact-form .form-privacy a:hover { color: var(--basalto); }

/* Footer: link privacy */
body.inpe-site:not(.x-brand) .footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.inpe-site:not(.x-brand) .footer-bottom a:hover { color: var(--gesso); }

/* Menu mobile: pulsante preventivo grande + WhatsApp tondo accanto */
body.inpe-site:not(.x-brand) .mobile-menu-contact { display: flex; align-items: center; gap: 12px; }
body.inpe-site:not(.x-brand) .mobile-menu-contact .mobile-menu-quote { flex: 1 1 auto; min-width: 0; width: auto; }
body.inpe-site:not(.x-brand) .mobile-menu-whatsapp { flex: 0 0 54px; width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #25D366; color: #FFFFFF; transition: background-color .2s var(--ease), transform .2s var(--ease); }
body.inpe-site:not(.x-brand) .mobile-menu-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }
body.inpe-site:not(.x-brand) .mobile-menu-whatsapp .icon { width: 25px; height: 25px; flex-basis: 25px; }

/* Header tra 960 e 1199px: il pulsante preventivo resta visibile accanto al menu */
@media (min-width: 960px) and (max-width: 1199px) {
  body.inpe-site:not(.x-brand) .header-cta { display: inline-flex; }
}

/* Pagine servizio: modulo preventivo in fondo alla pagina */
body.inpe-site:not(.x-brand) .service-quote-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
body.inpe-site:not(.x-brand) .service-quote-copy { position: sticky; top: 120px; }
body.inpe-site:not(.x-brand) .service-quote-copy .lede { margin-top: 16px; max-width: 42ch; }
body.inpe-site:not(.x-brand) .service-quote-alt { list-style: none; margin: 28px 0 0; padding: 0; display: grid; max-width: 420px; }
body.inpe-site:not(.x-brand) .service-quote-alt a { display: flex; align-items: center; gap: 6px; min-height: 48px; border-top: 1px solid var(--soft-line); color: var(--grigio-700); font-size: 15px; text-decoration: none; }
body.inpe-site:not(.x-brand) .service-quote-alt li:last-child a { border-bottom: 1px solid var(--soft-line); }
body.inpe-site:not(.x-brand) .service-quote-alt b { color: var(--basalto); font-weight: 700; }
body.inpe-site:not(.x-brand) .service-quote-alt a:hover b { color: var(--ottone-scuro); }
@media (max-width: 959px) {
  body.inpe-site:not(.x-brand) .service-quote-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.inpe-site:not(.x-brand) .service-quote-copy { position: static; }
}
/* Etichetta unica "Richiedi un preventivo": mai su due righe */
body.inpe-site:not(.x-brand) :is(.header-cta, .nav-desktop .nav-link, .mobile-menu-quote) { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1299px) {
  body.inpe-site:not(.x-brand) .nav-desktop ul { gap: 20px; }
  body.inpe-site:not(.x-brand) .header-cta { padding-inline: 18px; }
}
body.inpe-site:not(.x-brand) .mobile-menu-contact .mobile-menu-quote { padding-inline: 16px; gap: 8px; font-size: 15px; }
@media (max-width: 379px) { body.inpe-site:not(.x-brand) .mobile-menu-quote .btn-arrow { display: none; } }

/* Progetti: galleria di foto verticali (progetto 02, foto reali), coppie prima/dopo affiancate */
body.inpe-site:not(.x-brand) .project-gallery.project-gallery--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.inpe-site:not(.x-brand) .project-gallery--portrait .gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
body.inpe-site:not(.x-brand) .project-gallery--portrait .gallery-item figcaption { font-size: 13px; }
@media (min-width: 640px) {
  body.inpe-site:not(.x-brand) .project-gallery.project-gallery--portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  body.inpe-site:not(.x-brand) .project-gallery--portrait > .gallery-item:nth-child(6) { order: 3; }
  body.inpe-site:not(.x-brand) .project-gallery--portrait > .gallery-item:nth-child(n+3):nth-child(-n+5) { order: 4; }
}

/* Pulsanti ottone scuriti del 20% (testo bianco piu' leggibile). Per tornare indietro: cancellare questo blocco. */
body.inpe-site:not(#x-brand) { --ottone-btn: #7D622F; --ottone-btn-hover: #66502A; }
body.inpe-site:not(#x-brand) .btn-primary,
body.inpe-site:not(#x-brand) .btn-primary:visited { --btn-bg: var(--ottone-btn); background: var(--ottone-btn); border-color: var(--ottone-btn); }
body.inpe-site:not(#x-brand) .btn-primary:hover,
body.inpe-site:not(#x-brand) .btn-primary:focus-visible { background: var(--ottone-btn-hover); border-color: var(--ottone-btn-hover); }
body.inpe-site:not(#x-brand) .header-call-mobile { background: var(--ottone-btn); }
body.inpe-site:not(#x-brand) [data-reviews] .rv-next { background: var(--ottone-btn); border-color: var(--ottone-btn); }
@media (hover: hover) and (pointer: fine) {
  body.inpe-site:not(#x-brand) [data-reviews] .rv-next:hover { background: var(--ottone-btn-hover); border-color: var(--ottone-btn-hover); }
}

/* Footer: firma dell'agenzia Hard Hat (collegata alla sezione in Chi siamo) */
body.inpe-site:not(.x-brand) .footer-bottom .footer-credit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--cemento); text-decoration: none; }
body.inpe-site:not(.x-brand) .footer-credit img { width: 26px; height: auto; border-radius: 5px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
body.inpe-site:not(.x-brand) .footer-credit b { color: var(--gesso); font-weight: 600; letter-spacing: .1em; transition: color .2s var(--ease); }
body.inpe-site:not(.x-brand) .footer-credit:hover b,
body.inpe-site:not(.x-brand) .footer-credit:focus-visible b { color: #FECA11; }
body.inpe-site:not(.x-brand) .footer-credit:hover img,
body.inpe-site:not(.x-brand) .footer-credit:focus-visible img { transform: rotate(-10deg) translateY(-2px); }
@media (min-width: 960px) {
  body.inpe-site:not(.x-brand) .footer-bottom { grid-template-columns: 1fr auto auto; column-gap: 40px; align-items: center; }
}
@media (min-width: 768px) and (max-width: 959px) {
  body.inpe-site:not(.x-brand) .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  body.inpe-site:not(.x-brand) .footer-bottom .footer-credit { grid-column: 2; grid-row: 1 / span 2; }
}

/* Footer: pulsanti social sotto WhatsApp, stessa animazione 3D della fascia social */
body.inpe-site:not(#x-brand) .site-footer .footer-social { display: block; margin-top: 10px; }
body.inpe-site:not(#x-brand) .social-band.social-band--footer {
  --sb-tile: 48px; --sb-glyph: 22px; --sb-depth: 6px; --sb-gap: 18px; --sb-pop: 1px; --sb-split: 1px;
  max-width: none; margin: 0; padding: 0; background: transparent; box-shadow: none; border-radius: 0;
}
body.inpe-site:not(#x-brand) .social-band--footer .social-band__list { justify-content: flex-start; margin-left: 0; }
body.inpe-site:not(#x-brand) .social-band--footer .social-link { text-decoration: none; }
body.inpe-site:not(#x-brand) .social-band--footer .social-link::before { display: none; }
body.inpe-site:not(#x-brand) .social-band--footer .social-link__name { margin-top: calc(var(--sb-base) + 8px); font-size: 10px; }
@media (min-width: 960px) {
  body.inpe-site:not(#x-brand) .social-band.social-band--footer { --sb-tile: 52px; --sb-glyph: 24px; --sb-depth: 7px; --sb-gap: 20px; }
}

/* Menu Servizi: pulsante "Tutti i servizi" come blocco 3D completo (bordo, spessore sotto, pressione) */
body.inpe-site:not(#x-brand) .submenu .submenu-all {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin-top: auto; margin-bottom: 4px; padding: 7px 7px 7px 12px;
  border: 1px solid var(--basalto); border-radius: 10px; background: #FFFFFF;
  box-shadow: 0 4px 0 0 var(--basalto);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--basalto); text-decoration: none; white-space: nowrap;
  transform: translateY(0); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .2s var(--ease);
}
body.inpe-site:not(#x-brand) .submenu .submenu-all-arrow {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 7px; background: var(--ottone-btn, #7D622F); color: #FFFFFF;
  transition: transform .2s var(--ease);
}
body.inpe-site:not(#x-brand) .submenu .submenu-all-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.inpe-site:not(#x-brand) .submenu .submenu-all:hover,
body.inpe-site:not(#x-brand) .submenu .submenu-all:focus-visible { transform: translateY(2px); box-shadow: 0 2px 0 0 var(--basalto); background: var(--gesso); color: var(--basalto); }
body.inpe-site:not(#x-brand) .submenu .submenu-all:hover .submenu-all-arrow { transform: translateX(2px); }
body.inpe-site:not(#x-brand) .submenu .submenu-all:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--basalto); }
body.inpe-site:not(#x-brand) .submenu .submenu-all { width: calc(100% + 16px); margin-inline: -8px; padding: 7px 6px 7px 10px; font-size: 10px; letter-spacing: .05em; }
body.inpe-site:not(#x-brand) .submenu .submenu-all-arrow { flex-basis: 22px; width: 22px; height: 22px; }

/* Modulo: campo trappola anti-spam, fuori schermo (non display:none) */
.contact-form .form-trap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
