:root {
  --orange: #ff5b00;
  --orange-2: #f47a22;
  --ink: #080806;
  --coal: #11110f;
  --bone: #f4efe5;
  --paper: #fffaf0;
  --sage: #a5b89c;
  --moss: #51644d;
  --line: rgba(8, 8, 6, 0.14);
  --line-light: rgba(244, 239, 229, 0.18);
  --muted: #726f66;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bone);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img,
picture {
  display: block;
  width: 100%;
  height: 100%;
}

img {
  object-fit: cover;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 64px);
  color: var(--bone);
  background: rgba(8, 8, 6, 0.72);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 146px;
  height: 46px;
  object-fit: contain;
  filter: brightness(1.08);
}

.brand-glyph {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-glyph i {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid var(--orange);
  transform: rotate(45deg);
}

.brand-glyph svg {
  position: relative;
  width: 56px;
  height: 26px;
  overflow: visible;
}

.brand-glyph path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 4;
  stroke-linecap: round;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

#site-nav a {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(244, 239, 229, 0.86);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

#site-nav a:hover,
#site-nav a.active {
  color: #fff;
  border-color: rgba(255, 91, 0, 0.55);
  background: rgba(255, 91, 0, 0.14);
}

.language-switch {
  position: relative;
  margin-left: 6px;
}

.language-switch > button {
  min-height: 40px;
  min-width: 46px;
  border: 1px solid rgba(255, 91, 0, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 91, 0, 0.16);
  color: #fff;
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: none;
  min-width: 132px;
  padding: 6px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(8, 8, 6, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.language-switch:hover > div,
.language-switch.is-open > div {
  display: grid;
}

#site-nav .language-switch a,
#site-nav .language-switch div button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
}

#site-nav .language-switch div button:hover,
#site-nav .language-switch div button.is-active {
  background: rgba(255, 91, 0, 0.24);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--bone);
}

.hero-cinematic {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 229, 0.08) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 10px;
  padding: 92px 16px 16px;
  opacity: 0.92;
}

.hero-shot {
  overflow: hidden;
  border: 1px solid rgba(244, 239, 229, 0.16);
  background: #222;
  transform: translateY(var(--float, 0));
  animation: drift 12s ease-in-out infinite alternate;
}

.hero-shot img {
  filter: saturate(0.9) contrast(1.06);
}

.shot-1 {
  grid-column: 1 / 6;
  grid-row: 2 / 7;
  clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 0 100%);
  --float: 12px;
}

.shot-2 {
  grid-column: 6 / 10;
  grid-row: 1 / 5;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
  --float: -8px;
}

.shot-3 {
  grid-column: 10 / 13;
  grid-row: 2 / 8;
  --float: 18px;
}

.shot-4 {
  grid-column: 5 / 8;
  grid-row: 5 / 9;
  --float: -14px;
}

.shot-5 {
  grid-column: 8 / 11;
  grid-row: 5 / 9;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
}

.shot-6,
.shot-7 {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.92), rgba(8, 8, 6, 0.62) 44%, rgba(8, 8, 6, 0.18)),
    linear-gradient(0deg, rgba(8, 8, 6, 0.82), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(980px, calc(100% - 40px));
  padding: 150px 0 86px;
  margin-left: clamp(20px, 6vw, 86px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 91, 0, 0.46);
  border-radius: 999px;
  color: var(--orange);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-content h1 {
  max-width: 920px;
  color: #fff;
  font-size: 6.4rem;
}

.hero-content p {
  max-width: 720px;
  margin-top: 26px;
  color: rgba(244, 239, 229, 0.88);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions a,
.ghost-button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.hero-actions a:nth-child(2),
.ghost-button {
  background: rgba(244, 239, 229, 0.08);
  color: var(--bone);
}

.hero-symbol {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 42px;
  z-index: 4;
  transform: scale(1.7);
  opacity: 0.9;
}

@keyframes drift {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 18px;
  }
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--orange);
  color: #fff;
}

.metric-band article {
  min-height: 170px;
  padding: 28px clamp(18px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.metric-band strong {
  display: block;
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: 4rem;
  line-height: 0.9;
}

.metric-band span {
  display: block;
  max-width: 170px;
  margin-top: 14px;
  font-weight: 700;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 24px;
  padding: 94px clamp(20px, 5vw, 82px);
  background: var(--bone);
}

.manifesto-copy h2,
.section-title h2,
.video-copy h2,
.photo-river h2,
.gallery-toolbar h2 {
  max-width: 900px;
  font-size: 4rem;
}

.manifesto-copy p,
.section-title p,
.video-copy p,
.photo-river p {
  max-width: 660px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.manifesto-media {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

/* === Ambiti di intervento — banda di pannelli fotografici espandibili === */
.ambiti {
  grid-column: 1 / -1;
  margin-top: 28px;
}

.ambiti-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.ambiti-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.amb-acc {
  border-top: 1px solid var(--line);
}

.amb-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}

/* Barra accento verticale che cresce all'apertura */
.amb-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

.amb-item.is-open {
  background: rgba(255, 91, 0, 0.035);
}

.amb-item.is-open::before {
  transform: scaleY(1);
}

.amb-trigger {
  display: grid;
  grid-template-columns: 64px 1fr auto 34px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px clamp(12px, 2vw, 24px);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.amb-num {
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(8, 8, 6, 0.22);
  transition: color 0.4s ease, transform 0.4s ease;
}

.amb-trigger:hover .amb-num,
.amb-item.is-open .amb-num {
  color: var(--orange);
}

.amb-item.is-open .amb-num {
  transform: scale(1.08);
}

.amb-title {
  position: relative;
  justify-self: start;
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.12;
  color: var(--ink);
  transition: color 0.3s ease;
}

/* Sottolineatura arancio che entra su hover / apertura */
.amb-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.1, 1);
}

.amb-trigger:hover .amb-title {
  color: var(--orange);
}

.amb-trigger:hover .amb-title::after,
.amb-item.is-open .amb-title::after {
  transform: scaleX(1);
}

.amb-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
}

.amb-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.35s ease, transform 0.4s ease;
}

.amb-toggle::before,
.amb-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, background 0.35s ease;
}

.amb-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.amb-item.is-open .amb-toggle {
  border-color: var(--orange);
  transform: rotate(180deg);
}

.amb-item.is-open .amb-toggle::before,
.amb-item.is-open .amb-toggle::after {
  background: var(--orange);
}

.amb-item.is-open .amb-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Pannello rivelato: foto + testo */
.amb-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.1, 1);
}

.amb-item.is-open .amb-panel {
  max-height: 620px;
}

.amb-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 4px clamp(12px, 2vw, 24px) 38px 64px;
}

.amb-photo {
  overflow: hidden;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.amb-photo .image-carousel,
.amb-photo .carousel-frame {
  min-height: 300px;
  height: 300px;
  padding: 0;
}

.amb-photo .carousel-label {
  display: inline-block;
  margin: 0;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
}

.amb-photo img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transform: scale(1.12);
  filter: grayscale(0.3) contrast(1.03);
  transition: transform 0.85s ease, filter 0.85s ease;
}

.amb-item.is-open .amb-photo img {
  transform: scale(1);
  filter: grayscale(0) contrast(1.05);
}

/* Foto verticale (Energia): inquadra le teste in alto, non i corpi al centro */
.amb-item.amb-photo-top .amb-photo img {
  object-position: 50% 12%;
}

.amb-copy p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.12s, transform 0.5s ease 0.12s;
}

.amb-item.is-open .amb-copy p {
  opacity: 1;
  transform: none;
}

.amb-meta {
  display: inline-block;
  margin-top: 18px;
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.22s, transform 0.5s ease 0.22s;
}

.amb-item.is-open .amb-meta {
  opacity: 1;
  transform: none;
}

/* Mobile: foto sopra il testo, trigger compatto */
@media (max-width: 860px) {
  .amb-trigger {
    grid-template-columns: 46px 1fr 30px;
    gap: 12px;
    padding: 18px 4px;
  }

  .amb-tag {
    display: none;
  }

  .amb-num {
    font-size: 1.6rem;
  }

  .amb-panel-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 2px 6px 26px 26px;
  }

  .amb-photo img {
    height: 220px;
  }

  .amb-item.is-open .amb-panel {
    max-height: 760px;
  }
}

.project-tile,
.context-card,
.impact-card,
.contact-data article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 18px 42px rgba(8, 8, 6, 0.08);
}

.project-tile span,
.context-card span,
.impact-card span,
.project-feature span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--orange);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
}

.project-tile h3 {
  font-size: 1.55rem;
}

.dark-section {
  padding: 98px clamp(20px, 5vw, 82px);
  background: var(--ink);
  color: var(--bone);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 34px;
}

.dark-section h2,
.dark-section h3 {
  color: #fff;
}

.inline-link {
  align-self: end;
  color: var(--orange);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
  white-space: nowrap;
}

.inline-link::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-left: 10px;
  vertical-align: middle;
  background: currentColor;
}

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

.project-tile {
  background: rgba(244, 239, 229, 0.06);
  border-color: var(--line-light);
  box-shadow: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.project-tile:hover {
  transform: translateY(-8px);
  background: rgba(255, 91, 0, 0.12);
}

.project-tile p,
.impact-card p,
.context-card p {
  color: var(--muted);
}

.dark-section .project-tile p {
  color: rgba(244, 239, 229, 0.72);
}

.photo-river {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  background: var(--bone);
}

.photo-river > div:first-child {
  padding: 0 clamp(20px, 5vw, 82px) 30px;
}

.river-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.river-track figure {
  width: 260px;
  height: 340px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.video-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 98px clamp(20px, 5vw, 82px);
  background: var(--coal);
  color: var(--bone);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.people-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 98px clamp(20px, 5vw, 82px);
  background: var(--coal);
  color: var(--bone);
}

.people-frame {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: #151511;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.people-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #151511;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 8, 6, 0.52), transparent 55%);
  pointer-events: none;
}

.video-open-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(8, 8, 6, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.play-button::before {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  animation: ping 1.9s infinite;
}

.play-button span {
  margin-left: 5px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #fff;
}

.video-frame.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.video-frame.is-playing .video-open-link {
  opacity: 0.18;
}

@keyframes ping {
  to {
    scale: 1.35;
    opacity: 0;
  }
}

.video-copy h2 {
  color: #fff;
}

.timeline-wrap,
.context-grid,
.feature-stack,
.impact-layout,
.impact-home,
.partnership-cta,
.gallery-lab,
.contact-grid {
  padding: 98px clamp(20px, 5vw, 82px);
  background: var(--bone);
}

.timeline-line {
  position: relative;
  display: grid;
  gap: 28px;
}

.timeline-line::before {
  content: "";
  position: absolute;
  left: 125px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.timeline-year {
  position: sticky;
  top: 100px;
  height: 64px;
  color: var(--orange);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
}

.timeline-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 0.52fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline-card picture {
  min-height: 330px;
}

.image-carousel {
  position: relative;
  height: 100%;
  min-height: 330px;
  overflow: hidden;
  background: #191916;
}

.carousel-frame {
  position: relative;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.025);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.7s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(8, 8, 6, 0.68);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.carousel-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}

.carousel-prev::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.carousel-next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.carousel-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(8, 8, 6, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--orange);
}

.timeline-card .image-carousel,
.timeline-card .carousel-frame,
.timeline-card .carousel-dots,
.feature-media .image-carousel,
.feature-media .carousel-frame,
.feature-media .carousel-dots {
  padding: 0;
}

.project-feature .carousel-label,
.timeline-card .carousel-label {
  display: inline-block;
  margin: 0;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
}

.timeline-card div {
  padding: 28px;
}

.timeline-card h2,
.context-card h2,
.impact-card h2,
.project-feature h2 {
  font-size: 2.3rem;
}

.timeline-card p {
  margin-top: 18px;
  color: var(--muted);
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.context-card {
  min-height: 300px;
}

.context-card h2 {
  color: var(--orange);
}

.feature-stack {
  display: grid;
  gap: 24px;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 0.45fr);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.project-feature:nth-child(even) {
  grid-template-columns: minmax(0, 0.45fr) minmax(280px, 0.55fr);
}

.project-feature:nth-child(even) .feature-media {
  order: 2;
}

.feature-media {
  min-height: 520px;
}

.feature-media .image-carousel {
  min-height: 520px;
}

.story-summary {
  display: grid;
  gap: 18px;
  padding: 86px clamp(20px, 5vw, 82px) 36px;
  background: var(--bone);
}

.story-summary h2 {
  max-width: 900px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.story-summary p {
  max-width: 980px;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 54px);
}

.feature-copy p {
  margin-top: 20px;
  color: var(--muted);
}

.feature-copy .ghost-button {
  justify-self: start;
  margin-top: 28px;
  color: var(--ink);
  background: transparent;
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
}

.impact-photo {
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
}

.impact-home .impact-photo {
  display: grid;
  place-items: center;
  background: #151511;
}

.impact-home .impact-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.impact-cards {
  display: grid;
  gap: 14px;
}

.impact-card {
  min-height: 260px;
}

.impact-home {
  background:
    linear-gradient(135deg, rgba(255, 91, 0, 0.08), transparent 34%),
    var(--bone);
}

.compact-impact {
  padding: 0;
  background: transparent;
}

.partnership-cta {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: var(--coal);
  color: var(--bone);
}

.partnership-media {
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.partnership-copy h2 {
  max-width: 760px;
  color: #fff;
  font-size: 4rem;
}

.partnership-copy p {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(244, 239, 229, 0.74);
}

.partnership-copy .inline-link {
  display: inline-flex;
  margin-top: 26px;
}

.gallery-lab {
  background: var(--ink);
  color: var(--bone);
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.gallery-toolbar h2 {
  color: #fff;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-buttons button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.filter-buttons button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.gallery-masonry {
  columns: 4 220px;
  column-gap: 12px;
}

.gallery-card {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: #222;
  cursor: zoom-in;
  break-inside: avoid;
}

.gallery-card picture {
  height: auto;
}

.gallery-card img {
  height: auto;
}

.gallery-card.is-hidden {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
}

.contact-data {
  display: grid;
  gap: 12px;
}

.contact-data article {
  min-height: auto;
}

.contact-data span {
  color: var(--orange);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
}

.contact-data p {
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.contact-data a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 91, 0, 0.45);
  text-underline-offset: 3px;
}

.contact-data-expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.contact-form button {
  justify-self: start;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(20px, 5vw, 82px);
  background: var(--ink);
  color: var(--bone);
}

.site-footer > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
}

.site-footer > div:first-child {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.site-footer p {
  color: rgba(244, 239, 229, 0.64);
}

.site-footer a {
  color: var(--orange);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.project-modal,
.lightbox {
  width: min(1020px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.project-modal::backdrop,
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.project-modal > button,
.lightbox > .lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(8, 8, 6, 0.68);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.lightbox-nav.is-hidden {
  display: none;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}

.lightbox-prev::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.lightbox-next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

@media (max-width: 760px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

.project-modal > div {
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(24px, 5vw, 60px);
}

.project-modal h2 {
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 3rem;
}

.project-modal p,
.project-modal li {
  color: var(--muted);
}

.lightbox {
  background: #000;
}

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

/* ── Hero background video ─────────────────────────────── */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

/* ── Post-hero shots section ────────────────────────────── */
.shots-reveal {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 98px clamp(20px, 5vw, 82px);
  background: var(--coal);
  color: var(--bone);
}

.shots-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  grid-template-rows: repeat(2, 240px);
  gap: 10px;
}

.shot-main {
  grid-row: 1 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  clip-path: polygon(0 0, 94% 0, 100% 8%, 100% 100%, 0 100%);
}

.shots-mini {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}

.shots-mini:nth-child(3) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%);
}

.shots-caption p {
  margin-top: 18px;
  color: rgba(244, 239, 229, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.shots-caption .ghost-button {
  display: inline-flex;
  margin-top: 28px;
  color: var(--bone);
  background: rgba(244, 239, 229, 0.08);
}

/* ── Project timeline (homepage dark section) ───────────── */
.project-timeline {
  position: relative;
  padding-left: 68px;
  display: grid;
  gap: 20px;
}

.project-timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), rgba(255, 91, 0, 0.18));
}

.ptl-item {
  position: relative;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0;
  border: 1px solid rgba(244, 239, 229, 0.08);
  border-radius: var(--radius);
  transition: border-color 0.5s ease, background 0.5s ease;
}

.ptl-item::before {
  content: "";
  position: absolute;
  left: -52px;
  top: 28px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 91, 0, 0.36);
  border-radius: 50%;
  background: var(--ink);
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.ptl-item.is-visible {
  border-color: rgba(255, 91, 0, 0.22);
  background: rgba(255, 91, 0, 0.04);
}

.ptl-item.is-visible::before {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 91, 0, 0.14);
}

.ptl-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-left: clamp(20px, 3vw, 36px);
}

.ptl-num {
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 0.88;
  color: rgba(255, 91, 0, 0.14);
  letter-spacing: -0.02em;
  user-select: none;
}

.ptl-body {
  padding-top: 6px;
}

.ptl-body h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  transition: color 0.4s;
}

.ptl-item.is-visible .ptl-body h3 {
  color: var(--orange);
}

.ptl-body p {
  margin-top: 12px;
  color: rgba(244, 239, 229, 0.62);
  font-size: 0.97rem;
}

/* ── Context accordion (storia-e-politica) ──────────────── */
.context-accordion-wrap {
  padding: 98px clamp(20px, 5vw, 82px);
  background: var(--bone);
}

.accordion-intro {
  max-width: 760px;
  margin-bottom: 52px;
}

.accordion-intro h2 {
  font-size: 4rem;
  margin-top: 14px;
}

.ctx-accordion {
  border-top: 1px solid var(--line);
}

.ctx-item {
  border-bottom: 1px solid var(--line);
}

.ctx-trigger {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s;
}

.ctx-trigger:hover {
  background: rgba(255, 91, 0, 0.04);
  border-radius: var(--radius);
  padding-left: 10px;
}

.ctx-num {
  color: var(--orange);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
}

.ctx-label {
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--ink);
  line-height: 1.2;
}

.ctx-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-radius: 50%;
  flex: 0 0 28px;
}

.ctx-icon::before,
.ctx-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.ctx-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.35s ease;
}

.ctx-item.is-open .ctx-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.ctx-item.is-open .ctx-icon {
  border-color: var(--orange);
}

.ctx-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s ease, padding 0.35s ease;
}

.ctx-item.is-open .ctx-body {
  max-height: 620px;
  padding-bottom: 36px;
}

.ctx-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 640px;
}

.ctx-img {
  width: 360px;
  height: 240px;
  flex: 0 0 360px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #151511;
}

.ctx-img .image-carousel,
.ctx-img .carousel-frame {
  min-height: 240px;
  height: 240px;
  padding: 0;
}

.ctx-img .carousel-label {
  display: inline-block;
  margin: 0;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
}

/* ── Territory photo (chi-siamo, replaces video placeholder) */
.territory-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 98px clamp(20px, 5vw, 82px);
  background: var(--coal);
  color: var(--bone);
}

.territory-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.territory-copy h2 {
  color: #fff;
  font-size: 2.8rem;
}

.territory-copy p {
  margin-top: 18px;
  color: rgba(244, 239, 229, 0.76);
  font-size: 1.05rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: block;
  }

  #site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    padding: 18px 22px 28px;
    background: rgba(8, 8, 6, 0.96);
    border-bottom: 1px solid var(--line-light);
  }

  #site-nav.is-open {
    display: grid;
  }

  #site-nav a {
    min-height: 48px;
  }

  .language-switch {
    margin-left: 0;
  }

  .language-switch > button {
    width: 100%;
  }

  .language-switch > div {
    position: static;
    margin-top: 8px;
  }

  .hero-content h1 {
    font-size: 4.6rem;
  }

  .manifesto-grid,
  .video-stage,
  .shots-reveal,
  .territory-photo,
  .timeline-card,
  .project-feature,
  .project-feature:nth-child(even),
  .impact-layout,
  .partnership-cta,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-feature:nth-child(even) .feature-media {
    order: 0;
  }

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

  .gallery-toolbar,
  .section-title {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 120px;
  }

  .brand .brand-glyph {
    display: none;
  }

  #site-nav {
    inset: 72px 0 auto 0;
  }

  .hero-collage {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 7px;
    padding: 82px 10px 10px;
  }

  .shot-1 {
    grid-column: 1 / 7;
    grid-row: 1 / 5;
  }

  .shot-2 {
    grid-column: 1 / 4;
    grid-row: 5 / 8;
  }

  .shot-3 {
    grid-column: 4 / 7;
    grid-row: 5 / 9;
  }

  .shot-4,
  .shot-5 {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 8, 6, 0.94), rgba(8, 8, 6, 0.44)),
      linear-gradient(90deg, rgba(8, 8, 6, 0.62), transparent);
  }

  .hero-content {
    width: calc(100% - 34px);
    margin-left: 17px;
    padding: 132px 0 58px;
  }

  .hero-content h1 {
    font-size: 3.15rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-symbol {
    display: none;
  }

  .metric-band,
  .project-grid,
  .context-grid {
    grid-template-columns: 1fr;
  }

  .metric-band article {
    min-height: 126px;
  }

  .metric-band strong {
    font-size: 3rem;
  }

  .manifesto-grid,
  .dark-section,
  .timeline-wrap,
  .context-grid,
  .feature-stack,
  .impact-layout,
  .impact-home,
  .partnership-cta,
  .gallery-lab,
  .contact-grid,
  .video-stage,
  .shots-reveal,
  .context-accordion-wrap,
  .territory-photo {
    padding: 58px 17px;
  }

  .manifesto-copy h2,
  .section-title h2,
  .video-copy h2,
  .partnership-copy h2,
  .photo-river h2,
  .gallery-toolbar h2 {
    font-size: 2.55rem;
  }

  .manifesto-media,
  .impact-photo,
  .partnership-media,
  .feature-media {
    min-height: 310px;
  }

  .timeline-line::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
  }

  .timeline-year {
    position: relative;
    top: auto;
    height: auto;
  }

  .timeline-card div {
    padding: 22px;
  }

  .timeline-card .image-carousel,
  .feature-media .image-carousel {
    min-height: 310px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .timeline-card h2,
  .context-card h2,
  .impact-card h2,
  .project-feature h2 {
    font-size: 2rem;
  }

  .video-frame {
    aspect-ratio: 9 / 16;
  }

  .shots-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 170px);
  }

  .shot-main {
    grid-row: 1 / 3;
  }

  .project-timeline {
    padding-left: 40px;
  }

  .project-timeline::before {
    left: 12px;
  }

  .ptl-item::before {
    left: -32px;
  }

  .ptl-inner {
    grid-template-columns: 1fr;
    padding-left: 14px;
  }

  .ptl-num {
    display: none;
  }

  .ctx-body {
    grid-template-columns: 1fr;
  }

  .ctx-img .image-carousel,
  .ctx-img .carousel-frame {
    min-height: 240px;
    height: 240px;
  }

  .accordion-intro h2 {
    font-size: 2.6rem;
  }

  .river-track figure {
    width: 210px;
    height: 282px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 20px;
  }

  .footer-actions {
    justify-items: start;
  }

  .contact-data-expanded {
    grid-template-columns: 1fr;
  }
}


.ctx-img-contain img,
.ctx-img .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #151511;
}

.shots-with-video {
  grid-template-columns: minmax(300px, 0.95fr) minmax(280px, 0.9fr) minmax(280px, 0.8fr);
  align-items: center;
}

.shots-video-frame {
  min-height: 260px;
  align-self: center;
}

@media (max-width: 980px) {
  .people-stage,
  .shots-with-video {
    grid-template-columns: 1fr;
  }
}


.manifesto-video {
  padding: 0;
  background: #151511;
}

.manifesto-video-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.manifesto-video-frame::after {
  pointer-events: none;
}

@media (max-width: 760px) {
  .manifesto-video-frame {
    min-height: 260px;
  }
}

/* Content image framing fixes: show complete photos in galleries/carousels. */
.amb-photo,
.timeline-card .image-carousel,
.timeline-card .carousel-frame,
.feature-media,
.feature-media .image-carousel,
.feature-media .carousel-frame,
.ctx-img,
.ctx-img .image-carousel,
.ctx-img .carousel-frame,
.project-feature .image-carousel,
.project-feature .carousel-frame {
  background: #151511;
}

.amb-photo .image-carousel,
.amb-photo .carousel-frame {
  background: #151511;
}

.amb-photo .carousel-slide,
.amb-photo .carousel-slide.is-active,
.timeline-card .carousel-slide,
.timeline-card .carousel-slide.is-active,
.feature-media .carousel-slide,
.feature-media .carousel-slide.is-active,
.ctx-img .carousel-slide,
.ctx-img .carousel-slide.is-active,
.project-feature .carousel-slide,
.project-feature .carousel-slide.is-active {
  transform: none !important;
}

.amb-photo img,
.amb-item.is-open .amb-photo img,
.amb-item.amb-photo-top .amb-photo img,
.timeline-card .carousel-slide img,
.feature-media .carousel-slide img,
.ctx-img .carousel-slide img,
.project-feature .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: #151511;
}

.amb-photo img,
.amb-item.is-open .amb-photo img {
  filter: grayscale(0) contrast(1.02);
}

@media (max-width: 760px) {
  .amb-photo .image-carousel,
  .amb-photo .carousel-frame {
    min-height: 260px;
    height: 260px;
  }

  .amb-photo img {
    height: 260px;
  }
}

/* Client photo archive: optimized thumbnails, full image only in lightbox. */
.stema-archive {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 56px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.stema-archive .section-title {
  margin-bottom: 24px;
}

.stema-archive .section-title p {
  max-width: 760px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}

.stema-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.stema-group-tabs button,
.filter-buttons [data-stema-gallery-filter] {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.stema-group-tabs button.active,
.filter-buttons [data-stema-gallery-filter].active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.stema-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.stema-card {
  position: relative;
  display: grid;
  min-height: 174px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151511;
  cursor: zoom-in;
}

.stema-card img {
  width: 100%;
  height: 174px;
  object-fit: contain;
  object-position: center center;
  background: #151511;
}

.stema-card span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 8, 6, 0.74);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stema-load-more {
  display: inline-flex;
  margin-top: 22px;
  color: var(--ink);
}

.stema-load-more[hidden] {
  display: none;
}

.gallery-lab .gallery-card {
  background: #151511;
}

.gallery-lab .gallery-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: center center;
  background: #151511;
}

@media (max-width: 720px) {
  .stema-archive {
    padding: 46px 14px;
  }

  .stema-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stema-card {
    min-height: 142px;
  }

  .stema-card img {
    height: 142px;
  }
}

/* ===== Caroselli a 20 foto: nessun taglio, sfondo nero uniforme ===== */
/* Ogni foto viene mostrata intera (contain) su fondo nero: le proporzioni
   diverse restano visibili con bande nere invece di essere tagliate. */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* !important: vince sulle framing-fix piu' specifiche (#151511) -> nero pieno */
  background: #000 !important;
}

.image-carousel,
.carousel-frame,
.amb-photo .image-carousel,
.amb-photo .carousel-frame,
.timeline-card .image-carousel,
.timeline-card .carousel-frame,
.feature-media .image-carousel,
.feature-media .carousel-frame,
.ctx-img .image-carousel,
.ctx-img .carousel-frame,
.project-feature .image-carousel,
.project-feature .carousel-frame {
  background: #000;
}

/* La framing-fix precedente usava un grigio scurissimo: portata a nero pieno. */
.amb-photo .carousel-slide img,
.timeline-card .carousel-slide img,
.feature-media .carousel-slide img,
.ctx-img .carousel-slide img,
.project-feature .carousel-slide img {
  background: #000;
}

/* 20 pallini: vanno a capo e restano centrati, senza sbordare su mobile. */
.carousel-dots {
  flex-wrap: wrap;
  max-width: 86%;
  justify-content: center;
  row-gap: 5px;
}

/* ===== Hero home: solo gli operai (immagine singola full-bleed) ===== */
.hero-collage.hero-single {
  display: block;
  grid-template: none;
  gap: 0;
  padding: 0;
  opacity: 1;
}

.hero-collage.hero-single .hero-shot {
  position: absolute;
  inset: 0;
  border: 0;
  clip-path: none;
  transform: none;
  animation: none;
}

.hero-collage.hero-single .hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.96) contrast(1.04);
}
