/* ── Home: wrapper canvas ── */
.home-canvas {
  width: 100%;
}
/* BIG – layout responsive (Fase 0 + 1) */

:root {
  --gutter: clamp(20px, 4vw, 395px);
  --section-gap: clamp(48px, 6vw, 120px);
  --content-max: min(1130px, 100% - 2 * var(--gutter));
  --bp-nav-mobile: 1100px;
  --bp-canvas-stack: 899px;
}

.home-canvas {
  width: 100%;
}

/* ── Desktop 900–1919px: nav fissa (no scale), canvas scala in giù ── */
@media (min-width: 900px) and (max-width: 1919px) {
  body {
    padding-top: var(--nav-height);
  }

  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    transform: none;
    padding-left: calc(var(--nav-bracket-left) / var(--page-width) * 100%);
    padding-right: calc(var(--nav-bracket-right) / var(--page-width) * 100%);
  }

  .home-canvas {
    position: relative;
    overflow: hidden;
    height: calc(var(--home-hero-height) * var(--canvas-scale-down));
  }

  .home-canvas > .home-hero {
    position: absolute;
    left: 50%;
    top: 0;
    width: var(--page-width);
    max-width: none;
    margin-inline: 0;
    min-height: var(--home-hero-height);
    transform: translateX(-50%) scale(var(--canvas-scale-down));
    transform-origin: top center;
  }

  .home-manifesto__title-line {
    font-size: min(
      var(--home-manifesto-title-font-size),
      calc(100cqi / 32)
    );
    line-height: 1;
    height: auto;
    min-height: calc(var(--home-manifesto-title-line-height) * 0.92);
    padding-block: 2px;
  }

  .home-manifesto__title-line:first-child {
    margin-top: -3px;
    padding-top: 5px;
    padding-bottom: 2px;
    min-height: calc(var(--home-manifesto-title-line-height) * 0.92 + 3px);
  }

  .page {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .page-canvas {
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .page-canvas__inner {
    width: var(--page-width);
    margin-inline: auto;
    padding-inline: var(--content-margin-left);
    padding-bottom: clamp(64px, 8vw, 120px);
    box-sizing: border-box;
    position: relative;
    left: 50%;
    transform: translateX(-50%) scale(var(--canvas-scale-down));
    transform-origin: top center;
  }
}

/* ── Desktop ≥1920px: stage intero (nav + contenuto) scala proporzionalmente ── */
@media (min-width: 1920px) {
  body {
    padding-top: calc(var(--nav-height) * var(--stage-scale));
  }

  .site-header {
    left: 50%;
    right: auto;
    width: var(--page-width);
    max-width: none;
    margin-inline: 0;
    padding-left: var(--nav-bracket-left);
    padding-right: var(--nav-bracket-right);
    transform: translateX(-50%) scale(var(--stage-scale));
    transform-origin: top center;
  }

  .layout-guides__label {
    top: calc(var(--nav-height) * var(--stage-scale) + 5px);
  }

  .home-canvas {
    position: relative;
    overflow: hidden;
    height: calc(var(--home-hero-height) * var(--stage-scale));
  }

  .home-canvas > .home-hero {
    position: absolute;
    left: 50%;
    top: 0;
    width: var(--page-width);
    max-width: none;
    margin-inline: 0;
    min-height: var(--home-hero-height);
    transform: translateX(-50%) scale(var(--stage-scale));
    transform-origin: top center;
  }

  .home-manifesto__title-line {
    font-size: min(
      var(--home-manifesto-title-font-size),
      calc(100cqi / 32)
    );
    line-height: 1;
    height: auto;
    min-height: calc(var(--home-manifesto-title-line-height) * 0.92);
    padding-block: 2px;
  }

  .home-manifesto__title-line:first-child {
    margin-top: -3px;
    padding-top: 5px;
    padding-bottom: 2px;
    min-height: calc(var(--home-manifesto-title-line-height) * 0.92 + 3px);
  }

  .page {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .page-canvas {
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .page-canvas__inner {
    width: var(--page-width);
    margin-inline: auto;
    padding-inline: var(--content-margin-left);
    padding-bottom: clamp(64px, 8vw, 120px);
    box-sizing: border-box;
    position: relative;
    left: 50%;
    transform: translateX(-50%) scale(var(--stage-scale));
    transform-origin: top center;
  }
}

/* ── Nav mobile toggle ── */
.nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 6px;
}

body.nav-open {
  overflow: hidden;
}

/* ── Shell pagine interne ── */
.page {
  width: min(var(--page-width), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.page-title {
  padding-top: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.page-title__inner h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  font-variation-settings: 'wght' 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-title__line {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 16px;
  background: var(--black);
}

.page-title--wip .page-title__inner h1 {
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.15;
  max-width: 22em;
}

.page-title__laser {
  margin: 0;
}

.page-title__laser-wrap {
  display: inline;
}

.page-title__laser-text {
  background-image: linear-gradient(
    90deg,
    #000 0%,
    #000 40%,
    #555 46%,
    #bbb 49%,
    #fff 50%,
    #bbb 51%,
    #555 54%,
    #000 60%,
    #000 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-title--wip .page-title__inner {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
}

.page-title--wip .page-title__line {
  transform: scaleX(0);
  transform-origin: left center;
}

.page-title--wip.is-ready .page-title__inner {
  animation: wip-title-appear 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-title--wip.is-ready .page-title__line {
  animation: wip-line-appear 700ms cubic-bezier(0.42, 0, 0.58, 1) 520ms forwards;
}

.page-title--wip.is-ready .page-title__laser-text {
  animation: wip-laser-text 3.4s ease-in-out 900ms infinite;
}

.page-title--wip.is-ready .page-title__wink {
  animation: wip-wink-appear 500ms cubic-bezier(0.22, 1, 0.36, 1) 780ms both;
}

.page-title__wink-eye--right-open,
.page-title__wink-lid {
  transform-box: fill-box;
  transform-origin: 14.25px 8.5px;
}

.page-title__wink-eye--left {
  transform-box: fill-box;
  transform-origin: 6.5px 8.5px;
}

.page-title__wink-eye--right-open {
  opacity: 0;
}

.page-title--wip.is-ready .page-title__wink-lid {
  animation: wip-wink-lid-natural 4.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1.6s infinite;
}

.page-title--wip.is-ready .page-title__wink-eye--right-open {
  animation: wip-wink-open-natural 4.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1.6s infinite;
}

@keyframes wip-title-appear {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes wip-line-appear {
  to {
    transform: scaleX(1);
  }
}

@keyframes wip-laser-text {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -20% 0;
  }
}

@keyframes wip-wink-lid-natural {
  0%, 84%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }

  86% {
    opacity: 0.55;
    transform: scaleY(0.42);
  }

  88%, 89% {
    opacity: 0;
    transform: scaleY(0.06);
  }

  92% {
    opacity: 0.45;
    transform: scaleY(0.38);
  }

  96% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes wip-wink-open-natural {
  0%, 84%, 96%, 100% {
    opacity: 0;
    transform: scaleY(0.2);
  }

  87% {
    opacity: 0.35;
    transform: scaleY(0.55);
  }

  88%, 90% {
    opacity: 1;
    transform: scaleY(1);
  }

  93% {
    opacity: 0.15;
    transform: scaleY(0.35);
  }
}

@keyframes wip-wink-appear {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-title--wip .page-title__inner,
  .page-title--wip.is-ready .page-title__inner {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .page-title--wip .page-title__line,
  .page-title--wip.is-ready .page-title__line {
    transform: none;
    animation: none;
  }

  .page-title__laser-text {
    color: var(--black);
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
  }

  .page-title__wink-eye,
  .page-title__wink-lid,
  .page-title__wink-eye--right-open {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .page-title__wink-eye--right-open {
    opacity: 0;
  }

  .page-title--wip .page-title__wink,
  .page-title--wip.is-ready .page-title__wink {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.page-title__wink {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.2em;
  vertical-align: -0.06em;
  color: var(--black);
}

/* ── Programma ── */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.filter-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
}

.filter-bar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.filter-bar__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--black);
  background: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--black);
  color: var(--white);
}

.event-list {
  position: relative;
}

.event-day {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.event-day__label {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  margin-bottom: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--black);
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.event-card + .event-card {
  margin-top: 12px;
}

.event-card:hover,
.event-card.is-hovered {
  background: var(--black);
  color: var(--white);
}

.event-card__title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  margin-bottom: 6px;
}

.event-card__subtitle,
.event-card__meta {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.45;
}

.event-card__action {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Mappa ── */
.map-section {
  margin-bottom: var(--section-gap);
}

.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--black);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--white);
  transform: scale(1);
  transition: transform 0.2s ease;
}

.map-pin:hover {
  transform: scale(1.25);
  background: var(--black);
}

.map-pin::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--black);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.map-pin:hover::after {
  opacity: 1;
}

/* ── Ospiti ── */
.ospiti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.ospite-card {
  cursor: pointer;
}

.ospite-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.ospite-card__name {
  margin-top: 12px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
}

/* ── Dettaglio ospite / venue ── */
.guest-detail,
.venue-detail {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.guest-detail__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%);
}

.guest-detail__name,
.venue-detail__info h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  margin-bottom: 16px;
}

.guest-detail__bio,
.venue-detail__text {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.venue-detail__map {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--black);
}

.venue-detail__map-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.venue-detail__maps-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  border: 1px solid var(--black);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.venue-detail__maps-link:hover {
  background: var(--black);
  color: var(--white);
}

/* ── Partners / Contatti ── */
.partners-section,
.contacts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 4vw, 56px);
  max-width: var(--content-max);
}

.partners-group__title,
.contacts-block__label {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  margin-bottom: 12px;
}

.partners-group__text,
.contacts-block__text {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.contacts-block + .contacts-block {
  margin-top: 32px;
}

.partners-logos img {
  max-width: min(100%, 240px);
  height: auto;
}

/* ── Transizione pagina ── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1);
}

.page-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.7s cubic-bezier(0.42, 0, 0.58, 1),
    transform 0.7s cubic-bezier(0.42, 0, 0.58, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   Nav mobile + layout impilato sotto 900px
   (sotto 900px: reflow; da 900px: scale canvas unificato)
   ══════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav-frame {
    width: min(var(--nav-frame-w), 100%);
    max-width: calc(100vw - 40px);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-header.is-menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    z-index: 98;
    background: rgba(0, 0, 0, 0.35);
  }

  .main-nav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(320px, 100vw);
    height: auto;
    padding: 24px;
    background: var(--nav-bg);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .site-header.is-menu-open .main-nav {
    transform: translateX(0);
  }

  .nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: none;
    white-space: normal;
  }

  .main-nav .nav-link:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-link__underline {
    width: calc(100% + 14px);
    margin-left: -7px;
    margin-top: -8px;
  }

  .guest-detail,
  .venue-detail {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  :root {
    --title-internazionale-em-ratio: 5.3;
    --hero-date-font-size: clamp(36px, 8vw, 72px);
    --hero-perche-title-size: clamp(32px, 7vw, 72px);
    --hero-perche-title-line-height: 0.82;
    --hero-protagonists-title-font-size: clamp(32px, 7vw, 64px);
    --home-manifesto-title-font-size: clamp(20px, 4vw, 40px);
    /* Interlinea più compatta del blocco nero (era clamp 28–48, troppo alto) */
    --home-manifesto-title-line-height: calc(var(--home-manifesto-title-font-size) * 1.12);
    --home-mobile-box-font-size: 17px;
    --home-mobile-box-line-height: calc(21 / 22);
    --hero-cta-height: 54px;
    --hero-cta-font-size: 16px;
    --box-padding: 20px;
    /* Allinea padding laterale del box Perché agli altri box home */
    --home-perche-box-padding-left: var(--fold-intro-padding-x);
    --home-perche-box-padding-right: var(--fold-intro-padding-x);
    --home-mobile-hero-arc-scale: 1.5;
    --home-mobile-hero-arc-peek: 88px;
    --home-mobile-hero-arc-clip-height: 145px;
  }

  .home-canvas {
    height: auto;
    overflow: visible;
  }

  body {
    padding-top: var(--nav-height);
  }

  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    transform: none;
    padding-left: 0;
    padding-right: 0;
  }

  .nav-frame {
    width: min(var(--nav-frame-w), 100%);
  }

  .page-canvas {
    overflow: visible;
    height: auto !important;
  }

  .page-canvas__inner {
    width: 100%;
    left: auto;
    transform: none;
    padding-inline: 0;
  }

  .page {
    width: min(var(--page-width), 100%);
    max-width: 100%;
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-bottom: clamp(64px, 8vw, 120px);
  }

  .home-canvas > .home-hero {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  /* Home: da canvas assoluto a flusso (solo smartphone/tablet stretti) */
  .home-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    padding-bottom: var(--section-gap);
  }

  .home-fold {
    order: 1;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: clamp(32px, 5vw, 64px) var(--gutter) 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .home-fold__grid {
    display: none;
  }

  .home-fold__title {
    position: relative;
    inset: auto;
    pointer-events: auto;
    order: 1;
    container-type: inline-size;
    width: 100%;
    --title-font-size: clamp(
      56px,
      calc((100cqw - 8px) / var(--title-internazionale-em-ratio)),
      92px
    );
    --title-line-step: calc(
      (var(--title-internazionale-top) - var(--title-biennale-top)) * var(--title-font-size) / 148px
    );
    --title-box-padding: calc(10px * var(--title-font-size) / 148px);
    --title-text-shift-y: calc(8px * var(--title-font-size) / 148px);
    --title-grafica-top-trim: calc(8px * var(--title-font-size) / 148px);
    --title-line-box-height: calc(
      var(--title-box-padding) * 2 + var(--title-font-size) * var(--title-line-height)
    );
  }

  .home-fold__title-line {
    position: static;
    display: table;
    width: auto;
    max-width: 100%;
    height: auto !important;
    margin: 0 0 calc(var(--title-line-box-height) * -1 + var(--title-line-step)) 0;
    white-space: normal;
    font-size: var(--title-font-size);
    line-height: 0;
    padding-block: var(--title-box-padding) !important;
    padding-inline: var(--title-box-padding-inline) !important;
  }

  .home-fold__title-text {
    display: block;
    line-height: var(--title-line-height);
    transform: translateY(var(--title-text-shift-y));
  }

  .home-fold__title-line--grafica {
    margin-top: calc(-1 * var(--title-grafica-top-trim));
  }

  .home-fold__intro {
    position: relative;
    order: 2;
    width: 100%;
    max-width: 100%;
    right: auto;
    top: auto;
    left: auto;
  }

  .home-hero-lower {
    order: 2;
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    padding-inline: var(--gutter);
  }

  .home-hero-lower__content {
    order: unset;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-inline: 0;
  }

  .home-perche {
    order: 3;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    --home-perche-lift: 0px;
    --home-perche-title-offset-y: 0px;
    --home-perche-grid-lift: 0px;
    --home-perche-grid-expand-left: 0px;
    --home-perche-grid-shrink-right: 0px;
    --home-perche-grid-shrink-left: 0px;
    --home-perche-box-lift: 0px;
    --home-perche-watermark-offset-x: 0px;
    --home-perche-watermark-offset-y: 0px;
    z-index: auto;
    pointer-events: auto;
    padding-inline: var(--gutter);
  }

  .home-perche__watermark {
    position: static;
    width: min(100%, 320px);
    margin-inline: auto;
    order: -1;
  }

  .home-perche__grid {
    display: none;
  }

  .home-diffuso {
    order: 4;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    --home-diffuso-lift: 0px;
    z-index: auto;
    pointer-events: auto;
    padding-inline: var(--gutter);
  }

  .home-diffuso__map-wrap {
    display: none;
  }

  .home-diffuso__map {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .home-protagonists {
    order: 5;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    --home-protagonists-lift: 0px;
    --home-protagonists-watermark-offset-x: 0px;
    --home-protagonists-watermark-offset-y: 0px;
    --home-protagonists-box-offset-y: 0px;
    z-index: auto;
    pointer-events: auto;
    padding-inline: var(--gutter);
  }

  .home-protagonists__media {
    max-width: 420px;
  }

  .home-hero-lower__topics,
  .home-hero-lower__date,
  .home-hero-lower__cta,
  .home-perche__title {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    top: auto;
    left: auto;
    right: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .home-hero-lower__content {
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .home-perche__title {
    font-size: var(--hero-perche-title-size);
    line-height: var(--hero-perche-title-line-height);
  }

  .home-perche__title,
  .home-perche__box,
  .home-diffuso__title,
  .home-diffuso__box,
  .home-diffuso__map-wrap,
  .home-diffuso__cta,
  .home-protagonists__title,
  .home-protagonists__media,
  .home-protagonists__box,
  .home-protagonists__cta {
    position: static;
    width: 100%;
    max-width: 100%;
    top: auto;
    left: auto;
    right: auto;
    white-space: normal;
  }

  .home-hero-lower__cta,
  .home-diffuso__cta,
  .home-protagonists__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    min-height: var(--hero-cta-height);
    padding: 10px 12px;
    font-size: var(--hero-cta-font-size);
    box-sizing: border-box;
  }

  .home-hero-lower__cta-label {
    line-height: 1.2;
  }

  .home-perche__box {
    display: block;
    min-height: 0;
    /* Stesso inset laterale degli altri box (niente +22px desktop) */
    padding: var(--fold-intro-padding-y) var(--fold-intro-padding-x);
  }

  .home-perche__box-text,
  .home-perche__box p {
    text-align: left;
    text-wrap: pretty;
  }

  .home-perche__box-line::after {
    display: none;
  }

  .home-perche__box p br {
    display: inline;
    line-height: 0;
    font-size: 0;
  }

  .home-perche__box p br::after {
    content: ' ';
    font-size: var(--home-mobile-box-font-size);
    line-height: 0;
  }

  .home-perche__box-line,
  .home-manifesto__box-line {
    display: inline;
    white-space: normal;
    width: auto;
    text-align: left;
    text-align-last: auto;
    letter-spacing: normal;
  }

  .home-perche__box-line:not(:last-child)::after,
  .home-manifesto__box-line:not(:last-child)::after {
    content: ' ';
  }

  /* Box testuali — a capo naturali (niente <br> da desktop) */
  .home-fold__intro p br,
  .home-hero-lower__topics p br,
  .home-diffuso__box p br,
  .home-protagonists__box p br {
    display: inline;
    line-height: 0;
    font-size: 0;
  }

  .home-fold__intro p br::after,
  .home-hero-lower__topics p br::after,
  .home-diffuso__box p br::after,
  .home-protagonists__box p br::after {
    content: ' ';
    font-size: var(--home-mobile-box-font-size);
    line-height: 0;
  }

  .home-fold__intro p,
  .home-hero-lower__topics p,
  .home-perche__box p,
  .home-diffuso__box p,
  .home-protagonists__box p,
  .home-manifesto__box p {
    text-wrap: pretty;
  }

  .home-perche__watermark,
  .home-protagonists__watermark {
    display: none;
  }

  .home-manifesto {
    order: 6;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow: hidden;
    pointer-events: auto;
    padding-inline: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 32px;
    --home-manifesto-lift: 0px;
    --home-manifesto-title-offset-y: 0px;
    --home-manifesto-box-offset-y: 0px;
    --home-manifesto-date-watermark-offset-y: 0px;
  }

  .home-manifesto__grid,
  .home-manifesto__date-watermark {
    display: none;
  }

  .home-manifesto__title {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    container-type: normal;
  }

  .home-manifesto__title-line {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin-left: 0;
    white-space: normal;
    height: auto;
    min-height: var(--home-manifesto-title-line-height);
    padding-block: 1px;
    font-size: var(--home-manifesto-title-font-size);
    line-height: 1.12;
    overflow: visible;
  }

  .home-manifesto__title-line:first-child {
    margin-top: -2px;
    padding-top: 3px;
    padding-bottom: 1px;
    min-height: calc(var(--home-manifesto-title-line-height) + 2px);
  }

  .home-manifesto__box {
    position: static;
    width: 100%;
    max-width: 100%;
    top: auto;
    right: auto;
  }

  .home-colophon {
    order: 7;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    pointer-events: auto;
    padding-inline: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 32px;
    --home-colophon-lift: 0px;
    --home-colophon-title-offset-y: 0px;
    --home-colophon-boxes-offset-y: 0px;
  }

  .home-colophon__title {
    position: static;
  }

  .home-colophon__box,
  .home-colophon__box--left,
  .home-colophon__box--right {
    position: static;
    width: 100%;
    max-width: 100%;
    left: auto;
    top: auto;
    min-height: 0;
  }

  .home-colophon__label-line,
  .home-colophon__value-line {
    white-space: normal;
  }

  .home-perche__box p {
    text-align: left;
    text-align-last: left;
    text-wrap: pretty;
  }

  /* Box testuali — unica tipografia mobile */
  .home-fold__intro p,
  .home-hero-lower__topics p,
  .home-perche__box p,
  .home-diffuso__box p,
  .home-protagonists__box p,
  .home-manifesto__box p,
  .home-colophon__label-line,
  .home-colophon__value-line {
    font-size: var(--home-mobile-box-font-size);
    line-height: var(--home-mobile-box-line-height);
  }

  .home-footer {
    order: 8;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding-inline: var(--gutter);
    padding-bottom: 40px;
    --home-footer-lift: 0px;
    background: #fff;
  }

  .home-footer::before {
    display: none;
  }

  .home-footer__divider {
    position: static;
    top: auto;
    left: auto;
  }

  .home-footer__inner {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
    margin-top: var(--home-footer-inner-gap);
    padding-inline: 0;
    justify-content: center;
  }

  .home-footer__meta {
    text-align: center;
  }

  .hero-date__text {
    white-space: normal;
  }

  /* Reset coordinate canvas: i figli absolute erano ancorati a .home-hero */
  .home-fold,
  .home-perche,
  .home-diffuso,
  .home-protagonists,
  .home-manifesto,
  .home-colophon,
  .home-footer,
  .home-hero-lower {
    transform: none;
    pointer-events: auto;
  }

  .home-fold > :not(.home-fold__grid),
  .home-perche > :not(.home-perche__grid),
  .home-diffuso > *,
  .home-protagonists > :not(.home-protagonists__watermark),
  .home-manifesto > :not(.home-manifesto__grid):not(.home-manifesto__date-watermark):not(.home-manifesto__arc),
  .home-colophon > *,
  .home-footer > * {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .frame-box,
  .home-fold__intro,
  .home-hero-lower__topics,
  .home-diffuso__box,
  .home-protagonists__box,
  .home-manifesto__box,
  .home-colophon__box {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .frame-box__corner {
    position: absolute;
  }

  .home-protagonists__title {
    font-size: var(--hero-protagonists-title-font-size);
  }

  .home-protagonists__media {
    width: 100%;
    margin-inline: auto;
  }

  /* Archi decorativi — dimensione canvas, solo porzioni visibili (mai nel footer) */
  .home-hero {
    overflow-x: clip;
  }

  .home-hero__arc {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 1920px;
    max-width: none;
    height: auto;
    max-height: var(--home-mobile-hero-arc-clip-height);
    overflow: hidden;
    transform: translateX(calc(1920px * var(--home-mobile-hero-arc-scale) - var(--home-mobile-hero-arc-peek)))
      scale(var(--home-mobile-hero-arc-scale));
    transform-origin: top right;
    z-index: 1;
    pointer-events: none;
  }

  .home-manifesto__title,
  .home-manifesto__box {
    position: relative;
    z-index: 1;
  }

  .home-manifesto__arc {
    display: none;
  }

  .home-footer .home-hero__arc,
  .home-footer__arc {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .nav-bracket {
    display: none;
  }

  .filter-bar__group {
    width: 100%;
  }
}
