/* Project stories: shared Happy colours and typography, readable without scripts. */
.site-nav { gap: 20px; }
.site-nav a[aria-current="page"], .site-nav a[aria-current="location"] { color: var(--yellow); }
.hero-portfolio__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.projects-intro { padding: 70px 0 46px; }
.projects-intro h1 { max-width: 1050px; font-size: clamp(44px, 6.8vw, 86px); }
.projects-intro > .container > p:not(.eyebrow) { max-width: 760px; color: var(--mist); font-size: 18px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.projects-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card { min-width: 0; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.project-card > a { display: flex; height: 100%; flex-direction: column; }
.project-card > a:hover, .project-card > a:focus-visible { scale: 1; }
.project-card > a:focus-visible { outline: 3px solid var(--yellow); outline-offset: -4px; }
.project-card__image { aspect-ratio: 3 / 4; height: auto; object-fit: cover; background: var(--coal); }
.project-card__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.project-card__meta { margin-bottom: 12px; color: var(--yellow); font-size: 12px; font-weight: 700; line-height: 1.6; }
.project-card h2, .project-card h3 { margin-bottom: 15px; font: 28px/1.15 var(--display); text-transform: none; letter-spacing: -.4px; }
.project-card__summary { margin-bottom: 24px; color: var(--mist); font-size: 15px; line-height: 1.65; }
.project-card__read { display: flex; min-height: 44px; align-items: center; gap: 16px; margin-top: auto; color: var(--yellow); font-size: 13px; font-weight: 700; }
.project-card__read span { font-size: 22px; }
.project-card:hover { border-color: var(--yellow); }
.project-card { scroll-margin-top: 110px; }
.projects-list { padding-top: 0; }
.projects-list .filter-row { margin-bottom: 32px; }
.project-detail { padding: 42px 0 68px; }
.project-detail .breadcrumbs { margin-bottom: 34px; }
.project-detail__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: clamp(30px, 4.4vw, 64px); }
.project-detail__copy { min-width: 0; padding-top: 20px; }
.project-detail h1 { font-size: clamp(42px, 5.2vw, 70px); line-height: 1.04; letter-spacing: -1.5px; text-transform: none; overflow-wrap: break-word; }
.project-detail__subject { margin-bottom: 26px; color: var(--yellow); font-size: 16px; font-weight: 700; }
.project-detail__story p { color: var(--mist); font-size: 17px; line-height: 1.75; }
.project-detail__invitation { margin: 28px 0 22px; font-weight: 600; font-size: 17px; }
.project-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-detail__figure { min-width: 0; margin: 0; }
.project-detail__figure > img { aspect-ratio: 3 / 4; height: auto; object-fit: contain; border: var(--border); border-radius: var(--radius); background: var(--coal); }
.project-detail__figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; padding: 12px 3px 0; color: var(--grey); font-size: 12px; }
.project-detail__figure figcaption a { display: inline-flex; min-height: 44px; align-items: center; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.project-path { padding: 38px 0; border-block: var(--border); background: var(--coal); }
.project-path h2 { margin-bottom: 22px; font: 28px/1.15 var(--display); text-transform: none; }
.project-path__links { display: flex; flex-wrap: wrap; gap: 12px; }
.project-path__links a { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 18px; border: var(--border); border-radius: 999px; color: var(--mist); font-size: 13px; font-weight: 600; }
.project-path__links a:hover, .project-path__links a:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.project-path__links a:focus-visible, .project-bridge a:focus-visible, .portfolio-project a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.projects-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.projects-section-heading h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 54px); }
.projects-section-heading > a { display: inline-flex; min-height: 44px; align-items: center; color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.project-bridge { padding: 36px 0; border-block: var(--border); background: var(--coal); }
.project-bridge__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px; }
.project-bridge__inner > div { max-width: 740px; }
.project-bridge h2 { margin-bottom: 10px; font: 32px/1.1 var(--display); text-transform: none; }
.project-bridge p { margin-bottom: 0; color: var(--mist); }
.project-bridge__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.project-bridge__list a { display: flex; min-height: 112px; flex-direction: column; justify-content: center; gap: 10px; padding: 22px; border: var(--border); border-radius: 18px; background: var(--panel); }
.project-bridge__list a:hover, .project-bridge__list a:focus-visible { border-color: var(--yellow); scale: 1; }
.project-bridge__list strong { font-size: 17px; font-weight: 600; }
.project-bridge__list span { color: var(--yellow); font-size: 13px; }
.portfolio-project { min-width: 0; margin: 0; }
.portfolio-project > a { display: block; }
.portfolio-project > a:hover { scale: 1; }
.portfolio-project figcaption a { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; color: var(--yellow); font-size: 13px; font-weight: 700; }
.portfolio-preview { align-items: start; }
@media (max-width: 1180px) {
  .header-inner { min-height: 70px; }
  .header-inner > .language-switcher { margin-left: auto; margin-right: 14px; order: 0; }
  .header-inner .brand { max-width: 44vw; }
  .menu-toggle { display: grid; gap: 5px; min-width: 44px; min-height: 44px; align-content: center; justify-content: center; padding: 8px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; border-radius: 999px; background: var(--white); transition: .2s ease; }
  .menu-toggle.is-open span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-of-type(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  body.has-open-menu { overflow: hidden; }
  .site-nav { position: absolute; inset: 70px 0 auto; display: none; min-height: calc(100vh - 70px); min-height: calc(100dvh - 70px); align-content: start; align-items: stretch; gap: 0; padding: 10px 24px 24px; border-bottom: var(--border); background: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 0; }
  .site-nav .button { margin-top: 5px; }
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail__grid { grid-template-columns: 1fr; }
  .project-detail__copy { padding-top: 0; }
  .project-detail__figure { max-width: 640px; width: 100%; }
  .project-detail h1 { max-width: 760px; }
  .project-bridge__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .projects-intro { padding: 44px 0 28px; }
  .projects-intro h1 { font-size: clamp(38px, 10.8vw, 54px); }
  .projects-intro > .container > p:not(.eyebrow) { font-size: 16px; }
  .projects-grid, .projects-grid--related, .project-bridge__list { grid-template-columns: 1fr; }
  .project-card__copy { padding: 22px; }
  .project-card h2, .project-card h3 { font-size: 28px; }
  .project-detail { padding: 28px 0 48px; }
  .project-detail h1 { font-size: 42px; }
  .project-detail__story p { font-size: 16px; }
  .project-detail__actions .button { width: 100%; }
  .project-path__links a { width: 100%; justify-content: center; text-align: center; }
  .hero-portfolio__links { gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card a, .project-path a, .project-bridge a, .portfolio-project a, .portfolio-project img { transition: none; }
  .project-card a:hover, .project-path a:hover, .project-bridge a:hover, .portfolio-project img:hover { transform: none; scale: 1; }
}

/* Artist groups keep the expanded collection easy to browse without scripts. */
.project-artist-group { scroll-margin-top: 110px; }
.project-artist-group + .project-artist-group { margin-top: 80px; padding-top: 56px; border-top: var(--border); }
.project-artist-group__intro { margin: 14px 0 0; color: var(--mist); }
.project-artist-group .projects-section-heading .eyebrow { margin-bottom: 10px; }
@media (max-width: 600px) {
  .project-artist-group + .project-artist-group { margin-top: 48px; padding-top: 36px; }
}

/* One project collection, with permanent category anchors and native disclosures. */
.project-card h4 { margin-bottom: 15px; font: 28px/1.15 var(--display); text-transform: none; letter-spacing: -.4px; }
.project-category, .project-anchor, #artisti-progetti { scroll-margin-top: 110px; }
.project-anchor { display: block; position: relative; height: 0; }
.project-category { margin-top: 38px; }
.project-category > h3 { margin: 0 0 22px; color: var(--yellow); font: 28px/1.2 var(--display); }
.project-category-nav { margin-top: 28px; }
.project-back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 30px; color: var(--yellow); font-size: 13px; font-weight: 700; }
.project-bridge__more { margin-top: 18px; }
.project-bridge__more > summary { width: fit-content; min-height: 48px; padding: 14px 4px; color: var(--yellow); cursor: pointer; font-weight: 700; }
.project-bridge__more > summary:focus-visible, .project-back-link:focus-visible, .portfolio-story-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; border-radius: 8px; }
.portfolio-story-link { display: block; min-width: 0; border-radius: 18px; }
.portfolio-story-link:hover, .portfolio-story-link:focus-visible { scale: 1; }

@media (min-width: 901px) {
  .projects-intro { padding: 48px 0 30px; }
  .projects-intro h1 { max-width: 1100px; font-size: clamp(44px, 5.4vw, 68px); }
}
