/* Pagine interne — v4.3
 * Fascia ondulata comune e contenuto su una sola colonna leggibile.
 */
.ni-project-hero {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 205px;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding: 42px max(30px, calc((100vw - var(--ni-max, 1320px)) / 2 + 30px)) 72px !important;
  background: var(--ni-red, #7f3040);
  isolation: isolate;
}

.ni-project-hero::before,
.ni-project-hero::after {
  content: "";
  position: absolute;
  left: -6%;
  width: 112%;
  border-radius: 50%;
  pointer-events: none;
}

.ni-project-hero::before {
  bottom: -66px;
  height: 104px;
  background: #9b5261;
  transform: rotate(1.2deg);
  z-index: -2;
}

.ni-project-hero::after {
  bottom: -86px;
  height: 108px;
  background: #b07b86;
  transform: rotate(-0.8deg);
  z-index: -1;
}

.ni-project-hero .wp-block-post-title {
  width: auto !important;
  max-width: none !important;
  margin: 0 0 0 auto !important;
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  text-align: right;
  text-transform: uppercase;
}

.ni-project-main {
  box-sizing: border-box;
  width: 100% !important;
  max-width: calc(var(--ni-max, 1320px) + 60px) !important;
  margin: 0 auto !important;
  padding: 62px 30px 90px !important;
}

.ni-project-main > .ni-project-content,
.ni-project-content.wp-block-post-content {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  color: #262626;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1rem, .96rem + .12vw, 1.1rem);
  line-height: 1.72;
  column-count: 1;
}

/* Impedisce agli stili globali di restringere e ricentrare i singoli blocchi. */
.ni-project-content.wp-block-post-content > * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0;
  margin-bottom: 1.25em;
}

.ni-project-content.wp-block-post-content h2,
.ni-project-content.wp-block-post-content h3,
.ni-project-content.wp-block-post-content h4 {
  color: var(--ni-red, #7f3040);
  font-family: Oswald, sans-serif;
  line-height: 1.15;
}

.ni-project-content.wp-block-post-content a {
  color: var(--ni-red, #7f3040);
}

@media (max-width: 800px) {
  .ni-project-hero {
    min-height: 170px;
    padding: 34px 24px 58px !important;
  }

  .ni-project-hero::before {
    bottom: -58px;
    height: 88px;
  }

  .ni-project-hero::after {
    bottom: -72px;
    height: 92px;
  }

  .ni-project-hero .wp-block-post-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .ni-project-main {
    max-width: 100% !important;
    padding: 48px 24px 68px !important;
  }
}


/* v4.3 — Il contenuto editoriale usa davvero tutta la larghezza dell'header. */
.ni-project-main,
.ni-project-main.wp-block-group,
.ni-project-main.is-layout-flow,
.ni-project-main.is-layout-constrained {
  width: min(100%, calc(var(--ni-max, 1320px) + 60px)) !important;
  max-width: calc(var(--ni-max, 1320px) + 60px) !important;
}

.ni-project-content,
.ni-project-content.wp-block-post-content,
.ni-project-content.is-layout-flow,
.ni-project-content.is-layout-constrained {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: none !important;
  max-width: none !important;
}

/* Neutralizza il limite globale di 760px di Twenty Twenty-Five sui blocchi interni. */
.ni-project-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.ni-project-content.wp-block-post-content > *,
.ni-project-content.wp-block-post-content > .wp-block-group,
.ni-project-content.wp-block-post-content > .wp-block-columns,
.ni-project-content.wp-block-post-content > p {
  box-sizing: border-box !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: none !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
