*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --block-h: calc(100vh - 56px);
  --panel-w: calc(var(--block-h) * 4 / 3);
}

html, body {
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 16px 28px;
  background: #000;
  color: #fff;
}
.nav-logo {
    gap:10px;
  display: flex;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 0.9rem;
  color: #fff;
  text-decoration: none;
  flex-direction: row;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
}
.nav-links {
  color: #fff;
  display: flex; gap: 52px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; text-decoration: none; opacity: 1; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.65; }
.nav-right {
  margin-left: auto; display: flex; align-items: center;
  gap: 6px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #999;
}
.nav-right svg { width: 13px; height: 13px; stroke: #999; fill: none; stroke-width: 2; }

/* ── Mobile menu trigger ── */
.nav-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-menu-btn .menu-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
  height: 9px;
  justify-content: space-between;
  position: relative;
}
.nav-menu-btn .menu-lines span {
  display: block;
  height: 1px;
  background: #fff;
  width: 100%;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

/* ── Off-canvas panel ── */
#mobile-nav {
  display: none;
  position: fixed;
  top: 56px; right: 0;
  width: 50vw;
  height: calc(100dvh - 56px);
  background: #000;
  z-index: 9999;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 20px 40px 20px;
}
#mobile-nav.open { display: flex; }
#mobile-nav .mobile-nav-social { margin-top: auto; }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}
.mobile-nav-links a:hover { opacity: 1; }

.mobile-nav-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-social a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
}
.mobile-nav-social a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  #mobile-nav { display: none; }
  #mobile-nav.open { display: flex; }
}

main { padding-top: 56px; }

.list-wrap {
    display: flex;
    flex-direction: column;
    gap:10px;
  will-change: transform;
  transform-origin: center 30%;
}

.project-block {
  overflow: hidden;
  position: relative;
  height: var(--block-h);
}

.project-block .block-row {
  cursor: grab;
}
.project-block .block-row:active {
  cursor: grabbing;
}

.drag-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.3s, transform 0.3s;
  will-change: transform;
  white-space: nowrap;
  mix-blend-mode: difference;
}
.drag-cursor.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.drag-cursor.grabbing { transform: translate(-50%, -50%) scale(0.85); background: #fff; color: #000; }

.block-row {
  display: flex;
  will-change: transform;
  user-select: none;
  height: 100%;
  gap: 50px;
  padding: 15px 0px;
}

.panel-base {
  width: 100vw;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  height: 100%;
}

.panel-base-inner {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.meta-col {
  position: absolute;
  right: 100%;
  top: 0;
  width: 220px;
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  height: 100%;
}

.project-icon {
  width: 40px; height: 40px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
}
.project-icon svg { width: 28px; height: 28px; fill: #fff; }

.project-title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; font-weight: 900;
  text-align: right; line-height: 1.45; margin-bottom: 5px;
}
.project-location {
  font-size: 1rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #999; text-align: right;
}

.project-extra {
  width: 100%; text-align: right;
  margin-top: 24px; opacity: 0; pointer-events: none;
}
.project-block.expanded .project-extra { pointer-events: auto; }

.extra-year { font-size: 13px; color: #999; margin-bottom: 20px; }
.extra-item { margin-bottom: 16px; }
.extra-label { font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: #999; margin-bottom: 3px; }
.extra-value { font-size: 1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; }
.extra-share { margin-top: 24px; }
.share-lbl { font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: #999; margin-bottom: 8px; }
.share-row { display: flex; gap: 5px; justify-content: flex-end; }
.share-btn { width: 20px; height: 20px; border: 1px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; cursor: pointer; }
.label-location-expanded { font-weight: 500; }

.img-col {
  flex-shrink: 0;
  overflow: hidden;
  cursor: default;
  width: 900px;
  height: 100vh;
}
.img-col img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; pointer-events: none; user-select: none;
}

.panel-text {
  position: absolute;
  left: 100%; top: 0;
  width: 290px;
  padding: 0 0 0 28px;
  opacity: 0; pointer-events: none;
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column;
  justify-content: flex-start; gap: 20px;
}
.project-block.expanded .panel-text { pointer-events: auto; overflow: hidden; justify-content: space-between; }
.panel-text > div {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.panel-text p { font-size: 1rem; line-height: 1.2rem; color: #fff; margin-bottom: 0; }

.panel-img-extra {
  flex-shrink: 0; overflow: hidden;
  opacity: 0; pointer-events: none;
  height: 100%; display: flex; align-items: stretch;
}
.project-block.expanded .panel-img-extra { pointer-events: auto; }
.panel-img-extra img {
  height: 100%; width: auto; display: block;
  pointer-events: none; user-select: none; object-fit: cover;
}




.img-box {
  background: #d9d4d4; flex-shrink: 0;
  overflow: hidden; position: relative;
}
.img-box img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; pointer-events: none; user-select: none;
}

.pnl-text { flex-shrink: 0; color: #111; }
.pnl-text p {
  font-family: "Montserrat";
  font-size: 1rem; line-height: 1.2rem;
  color: #fff; margin-bottom: 14px;
}
.pnl-text h3 {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #999; margin-bottom: 5px; margin-top: 18px;
}
.pnl-text h3:first-child { margin-top: 0; }

.pnl-1 { flex-shrink: 0; width: var(--panel-w); height: 100%; display: flex; align-items: stretch; overflow: hidden; }
.pnl-1 .img-box { width: 100%; height: 100%; }

/* pnl-2: larghezza ridotta così 1:1 + testo stanno entrambi verticalmente */
.pnl-2 { flex-shrink: 0; width: calc(var(--block-h) * 0.62); height: 100%; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; justify-content: space-between;}
.pnl-2 .img-box { width: 100%; aspect-ratio: 1 / 1; flex-shrink: 0; }
.pnl-2 .pnl-text { padding: 20px 0 0 0; width: 100%; flex: 1; min-height: 0; overflow: hidden; }

/* pnl-3: immagine 3/4 allineata in cima */
.pnl-3 { flex-shrink: 0; height: 100%; display: flex; align-items: flex-start; overflow: hidden; }
.pnl-3 .img-box { aspect-ratio: 3 / 4; height: 100%; flex-shrink: 0; }

.pnl-4 { flex-shrink: 0; width: calc(var(--panel-w) * 0.75); height: 100%; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }
.pnl-4 .pnl-text { padding: 0 0 20px 0; width: 100%; flex-shrink: 0; }
.pnl-4 .img-box { width: 100%; flex: 1; }

.pnl-5 { flex-shrink: 0; width: var(--panel-w); height: 100%; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; justify-content: flex-end; }
.pnl-5 .pnl-text { padding: 0 0 20px 0; width: 100%; flex-shrink: 0; }
.pnl-5 .img-box { width: 100%; height: 55%; flex-shrink: 0; }

.pnl-6 { flex-shrink: 0; height: 100%; display: flex; align-items: stretch; overflow: hidden; }
.pnl-6 .img-box { height: 100%; aspect-ratio: 2 / 3; }

.pnl-7 { flex-shrink: 0; height: 100%; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; width: 500px; }
.pnl-7 .img-box { width: 100%; height: 60%; flex-shrink: 0; }
.pnl-7 .pnl-text { padding: 20px 0 0 0; width: 100%; }

.pnl-8 { flex-shrink: 0; height: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px; overflow: hidden; padding: 0; }
.pnl-8 .img-box { height: 100%; aspect-ratio: 4 / 3; background: transparent; }
.pnl-8 .img-box img { object-fit: contain; }

/* ──────────────────────────────────────────
   PNL-CASE-STUDY:
   +-------------------------------------+
   |                        [img] [sub]  |
   |-------------------------------------|
   | [TITOLO GRANDE]                     |
   | [Testo]                             |
   +-------------------------------------+
   ────────────────────────────────────── */
.pnl-case-study {
  flex-shrink: 0;
  width: var(--panel-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
/* zona superiore: colonnina destra con immagine + PLOOM sotto */
.pnl-case-study .cs-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 0;
}
.pnl-case-study .cs-top .img-box {
  aspect-ratio: 4 / 3;
  width: 55%;
  flex-shrink: 0;
}
.pnl-case-study .cs-subtitle {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ccc;
  padding-top: 10px;
  /* allineato sotto l'immagine, stesso width */
  width: 55%;
  text-align: left;
}
/* zona inferiore: separatore + CASE STUDY + testo a sinistra */
.pnl-case-study .cs-bottom {
  flex-shrink: 0;
  padding-top: 20px;
  padding-bottom: 15px;
}
.pnl-case-study .cs-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 3rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 16px;
  color: #fff;
}
.pnl-case-study .cs-body {
  font-size: 1rem;
  line-height: 1.4rem;
  color: #fff;
}

.panel-end-spacer { flex-shrink: 0; width: 100px; }

/* ── EXPERIENCES PANELS ───────────────────────────────────── */

/* exp-txt-only: pannello solo testo, width configurabile */
.exp-txt-only {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.exp-txt-only p {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.exp-txt-only p:last-child { margin-bottom: 0; }
.exp-txt-only h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}
.exp-txt-only h3 {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #999; margin-bottom: 8px; margin-top: 20px;
}
.exp-txt-only h3:first-child { margin-top: 0; }

/* exp-txt-img-below: riga1=testo, riga2=due portrait affiancate */
.exp-txt-img-below {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.exp-txt-img-below .row-text {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 20px;
}
.exp-txt-img-below .row-text p {
  font-size: 1rem; line-height: 1.5rem; color: #fff; margin-bottom: 0.8rem;
}
.exp-txt-img-below .row-text p:last-child { margin-bottom: 0; }
.exp-txt-img-below .row-text h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem; font-weight: 900;
  text-transform: uppercase; line-height: 1.1;
  margin-bottom: 14px; color: #fff;
}
.exp-txt-img-below .row-text h3 {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #999; margin-bottom: 8px;
}
.exp-txt-img-below .row-imgs {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 20px;
  min-height: 0;
}
.exp-txt-img-below .row-imgs .img-box {
  flex: 1;
  height: 100%;
}

/* exp-img-txt-below: riga1=due portrait affiancate, riga2=testo */
.exp-img-txt-below {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.exp-img-txt-below .row-imgs {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 20px;
  min-height: 0;
}
.exp-img-txt-below .row-imgs .img-box {
  flex: 1;
  height: 100%;
}
.exp-img-txt-below .row-text {
  flex-shrink: 0;
  padding-top: 20px;
}
.exp-img-txt-below .row-text p {
  font-size: 1rem; line-height: 1.5rem; color: #fff; margin-bottom: 0.8rem;
}
.exp-img-txt-below .row-text p:last-child { margin-bottom: 0; }
.exp-img-txt-below .row-text h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem; font-weight: 900;
  text-transform: uppercase; line-height: 1.1;
  margin-bottom: 14px; color: #fff;
}
.exp-img-txt-below .row-text h3 {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #999; margin-bottom: 8px;
}

/* exp-wide: immagine landscape full height full width */
.exp-wide {
  flex-shrink: 0;
  width: 100vw;
  height: 100%;
  overflow: hidden;
}
.exp-wide .img-box {
  width: 100%;
  height: 100%;
}

/* exp-two-imgs: due immagini portrait affiancate full height */
.exp-two-imgs {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow: hidden;
}
.exp-two-imgs .img-box {
  flex: 1;
  height: 100%;
}

/* ──────────────────────────────────────────
   PNL-SQ-BOTTOM: immagine 1:1 allineata in basso ~50% altezza
   ────────────────────────────────────────── */
.pnl-sq-bottom {
  flex-shrink: 0;
  width: calc(var(--block-h) * 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
}
.pnl-sq-bottom .img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────
   PNL-SQ-TOP: immagine 1:1 allineata in alto ~50% altezza (inverso)
   ────────────────────────────────────────── */
.pnl-sq-top {
  flex-shrink: 0;
  width: calc(var(--block-h) * 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}
.pnl-sq-top .img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────
   PNL-PLAN-TEXT: planimetria sopra + testo sotto
   ────────────────────────────────────────── */
.pnl-plan-text {
  flex-shrink: 0;
  width: calc(var(--panel-w) * 0.65);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}
.pnl-plan-text .img-box {
  width: 100%;
  flex: 1;
}
.pnl-plan-text .img-box img { object-fit: contain; }
.pnl-plan-text .pnl-text {
  padding: 20px 0 0 0;
  width: 100%;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────
   PNL-2B: due immagini affiancate (wide + portrait) ~50% + testo sotto
   ────────────────────────────────────────── */
.pnl-2b {
  flex-shrink: 0;
  width: var(--panel-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}
.pnl-2b .img-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 55%;
  flex-shrink: 0;
  gap: 50px;
}
.pnl-2b .img-row .img-box { height: 100%; }
.pnl-2b .img-row .img-box-wide { flex: 2; }
.pnl-2b .img-row .img-box-portrait { flex: 1; }
.pnl-2b .pnl-text { padding: 20px 0 0 0; width: 100%; }

/* ──────────────────────────────────────────
   PNL-5 aggiornato: testo sopra + wide + portrait affiancate sotto
   ────────────────────────────────────────── */
.pnl-5 {
  flex-shrink: 0;
  width: var(--panel-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}
.pnl-5 .pnl-text { padding: 0 0 20px 0; width: 100%; flex-shrink: 0; }
.pnl-5 .img-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 55%;
  flex-shrink: 0;
  gap: 50px;
}
.pnl-5 .img-row .img-box { height: 100%; }
.pnl-5 .img-row .img-box-wide { flex: 2; }
.pnl-5 .img-row .img-box-portrait { flex: 1; }

/* ──────────────────────────────────────────
   PNL-TEXT-ONLY: testo centrato verticalmente
   ────────────────────────────────────────── */
.pnl-text-only {
  flex-shrink: 0;
  width: calc(var(--panel-w) * 0.6);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 0 20px;
}
.pnl-text-only p {
  font-family: "Montserrat";
  font-size: 1rem;
  line-height: 1.4rem;
  color: #fff;
}

/* ══════════════════════════════════════════
   DESKTOP / MOBILE SPLIT
   ══════════════════════════════════════════ */
@media (max-width: 768px)  { .desktop-only { display: none !important; } }
@media (min-width: 769px)  { .mobile-only  { display: none !important; } }

@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  main { padding-top: 52px; }
  .drag-cursor { display: none !important; }

  .mobile-only.project-block {
    overflow: hidden;
    height: calc((100vw - 40px) * 2 / 3 + 60px);
  }

  .mobile-only .block-row {
    display: flex; flex-direction: row;
    align-items: flex-start; height: 100%; gap: 28px;
    padding-right: 20px;
  }

  .mobile-only .m-panel-base {
    flex-shrink: 0; width: 100vw;
    padding: 0 20px; display: flex; flex-direction: column;
  }

  .mobile-only .m-img-col {
    width: 100%; height: calc((100vw - 40px) * 2 / 3);
    flex-shrink: 0; overflow: hidden; cursor: pointer;
  }
  .mobile-only.project-block.expanded .m-img-col { cursor: default; }
  .mobile-only .m-img-col img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    pointer-events: none; user-select: none;
  }

  .mobile-only .m-meta {
    display: flex; flex-direction: row;
    align-items: center; gap: 10px; padding: 12px 0 0 0;
  }
  .mobile-only .m-icon {
    width: 32px; height: 32px; border: 1px solid #999;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .mobile-only .m-icon svg { width: 22px; height: 22px; fill: #fff; }
  .mobile-only .m-title { font-family: "Helvetica", sans-serif; font-size: 14px; font-weight: 900; color: #fff; line-height: 1.3; }
  .mobile-only .m-location { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #999; }

  .mobile-only .m-panel {
    flex-shrink: 0; width: calc(100vw - 40px);
    height: calc((100vw - 40px) * 2 / 3);
    opacity: 0; pointer-events: none;
    display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  }
  .mobile-only .m-panel-info { width: 50vw; }
  .mobile-only.project-block.expanded .m-panel { pointer-events: auto; }

  .mobile-only .m-label { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #999; }
  .mobile-only .m-value { font-size: 14px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.3; color: #fff; }
  .mobile-only .m-item { display: flex; flex-direction: column; gap: 3px; }
  .mobile-only .m-p { font-size: 10px; line-height: 1.5; color: #fff; }

  .mobile-only .m-panel-img {
    flex-shrink: 0; width: calc(100vw - 40px);
    height: calc((100vw - 40px) * 2 / 3);
    opacity: 0; pointer-events: none;
    overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  }
  .mobile-only.project-block.expanded .m-panel-img { pointer-events: auto; }
  .mobile-only .m-panel-img .img-box { position: relative; flex-shrink: 0; overflow: hidden; }
  .mobile-only .m-panel-img .img-box img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; pointer-events: none; user-select: none;
  }
  .mobile-only .m-pnl-text { flex-shrink: 0; padding: 14px 0 0 0; }

  .mobile-only .m-pnl-1 .img-box { width: 100%; height: 100%; }
  .mobile-only .m-pnl-2 .img-box { width: 100%; height: 55%; }
  .mobile-only .m-pnl-2 .m-pnl-text { flex: 1; overflow-y: auto; }
  .mobile-only .m-pnl-3 { justify-content: flex-start; }
  .mobile-only .m-pnl-3 .img-box { width: 100%; height: 80%; }
  .mobile-only .m-pnl-4 .m-pnl-text { padding: 0 0 14px 0; }
  .mobile-only .m-pnl-4 .img-box { width: 100%; flex: 1; }
  /* m-pnl-2b: due immagini affiancate + testo sotto */
  .mobile-only .m-pnl-2b {
    flex-direction: column;
  }
  .mobile-only .m-pnl-2b .img-row {
    display: flex; flex-direction: row;
    width: 100%; height: 55%; flex-shrink: 0; gap: 20px;
  }
  .mobile-only .m-pnl-2b .img-row .img-box { height: 100%; }
  .mobile-only .m-pnl-2b .img-row .img-box-wide { flex: 2; }
  .mobile-only .m-pnl-2b .img-row .img-box-portrait { flex: 1; }
  .mobile-only .m-pnl-2b .m-pnl-text { flex: 1; overflow-y: auto; }

  /* m-pnl-5: testo sopra + immagini affiancate sotto */
  .mobile-only .m-pnl-5 .m-pnl-text { padding: 0 0 14px 0; }
  .mobile-only .m-pnl-5 .img-row {
    display: flex; flex-direction: row;
    width: 100%; height: 55%; flex-shrink: 0; gap: 20px;
  }
  .mobile-only .m-pnl-5 .img-row .img-box { height: 100%; }
  .mobile-only .m-pnl-5 .img-row .img-box-wide { flex: 2; }
  .mobile-only .m-pnl-5 .img-row .img-box-portrait { flex: 1; }

  /* m-pnl-text-only: testo centrato */
  .mobile-only .m-pnl-text-only {
    justify-content: center;
  }
  .mobile-only .m-pnl-text-only .m-p {
    font-size: 12px; line-height: 1.65;
  }
  .mobile-only .m-pnl-6 { width: calc((100vw - 40px) * 2 / 3); }
  .mobile-only .m-pnl-6 .img-box { width: 100%; height: 100%; }
  .mobile-only .m-pnl-7 .img-box { width: 100%; height: 60%; }
  .mobile-only .m-pnl-7 .m-pnl-text { flex: 1; overflow-y: auto; }
  .mobile-only .m-pnl-8 { background: transparent; }
  .mobile-only .m-pnl-8 .img-box { width: 100%; height: 100%; background: transparent; }
  .mobile-only .m-pnl-8 .img-box img { object-fit: contain; }

  /* m-pnl-sq-bottom: immagine 1:1 allineata in basso */
  .mobile-only .m-pnl-sq-bottom {
    justify-content: flex-end;
  }
  .mobile-only .m-pnl-sq-bottom .img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    height: auto;
    position: relative;
  }

  /* m-pnl-sq-top: immagine 1:1 allineata in alto */
  .mobile-only .m-pnl-sq-top {
    justify-content: flex-start;
  }
  .mobile-only .m-pnl-sq-top .img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    height: auto;
    position: relative;
  }

  /* m-pnl-plan-text: planimetria + testo sotto */
  .mobile-only .m-pnl-plan-text {
    flex-direction: column;
  }
  .mobile-only .m-pnl-plan-text .img-box {
    width: 100%;
    height: 65%;
    flex-shrink: 0;
  }
  .mobile-only .m-pnl-plan-text .img-box img { object-fit: contain; }
  .mobile-only .m-pnl-plan-text .m-pnl-text { flex: 1; overflow-y: auto; }

  .panel-end-spacer { width: 20px; flex-shrink: 0; }
}

.dot-logo {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 0;
  width: fit-content;
  cursor: pointer;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.dot.visible {
  opacity: 1;
}

.dot.hidden {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.nav-logo:hover .dot.hidden,
.dot-logo.animating .dot.hidden {
  opacity: 1;
}

.nav-logo:hover .dot,
.dot-logo.animating .dot {
  animation: breathe 2.8s var(--delay) ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1;    transform: scale(1);   }
  50%       { opacity: 0.05; transform: scale(0.1); }
}


.contact-details a {
    text-decoration: none;
    color: #fff;
}
.contact-details a:hover {
    opacity: 0.5;
}

.panel-title {
    font-size: 2.5rem!important;
    line-height: 2.5rem!important;
    margin-bottom:60px!important;
    font-weight: 500!important;
}



/* ══════════════════════════
   FOOTER
══════════════════════════ */
footer {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

/* RIGA 1 */
.footer-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px 28px;
  border-bottom: 1px solid #e8e8e8;
}

/* Logo — riusa le classi .nav-logo e .dot-logo già esistenti nel tuo CSS */
/* Se vuoi sovrascrivere il colore (footer è su sfondo bianco): */
.footer-top .nav-logo { color: #111; }
.footer-top .dot { background: #111; }

/* Social centrati in assoluto */
.footer-social {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.65; }

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Nav links destra */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-nav a {
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.5; }

/* RIGA 2 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span,
.footer-bottom a {
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .footer-top {
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 28px 24px;
  }

  .footer-social {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .footer-bottom {
    padding: 14px 28px;
    gap: 10px 24px;
  }
}

@media (max-width: 520px) {
  .footer-top {
    padding: 24px 20px 20px;
    gap: 18px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-nav {
    width: 100%;
    align-items: flex-start;
    order: 4;
  }

  .footer-bottom {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}


@media (max-width: 860px) {

  footer {
      height: 400px;
    text-align: center;
  }

  /* RIGA 1: diventa colonna centrata */
  .footer-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    gap: 20px;
  }

  /* Social: torna in flusso normale */
  .footer-social {
    position: static;
    transform: none;
    justify-content: center;
    order: 3;
  }

  /* Logo: ordine 1 */
  .footer-top .nav-logo {
    order: 1;
  }

  /* Nav links: ordine 2, centrati */
  .footer-nav {
    order: 2;
    align-items: center;
  }

  /* Social: ordine 3 */
  .footer-social {
    order: 3;
  }

  /* RIGA 2: colonna centrata, ordine invertito */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 32px;
    gap: 10px;
  }

  /* Ordine riga 2: privacy → terms → all rights → copyright */
  .footer-bottom a:nth-child(2) { order: 1; } /* Privacy and Cookie Policy */
  .footer-bottom a:nth-child(1) { order: 2; } /* Terms of use */
  .footer-bottom span:nth-child(2) { order: 3; } /* All rights reserved */
  .footer-bottom span:nth-child(1) { order: 4; } /* © 2026 Forma */

  .footer-bottom {
    display: flex;
  }

}