/* Helvetica Neue: font locali, pesi e corsivi. */
@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-UltraLight.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-UltraLightItalic.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-ThinItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-HeavyItalic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("assets/fonts/HelveticaNeueCyr-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
}

/* STRUTTURA PRINCIPALE */

.portfolio {
  display: grid;
  grid-template-columns: 59.8% 40.2%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* COLONNA SINISTRA */

.left-panel {
  overflow: visible;
  background: #d9d9d9;
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* HEADER */

.header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 20px;
}

.logo,
.about-link {
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  color: #000;
}

.header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.6px;
}

.about-link {
  justify-self: end;
  margin-right: 12%;
}

/* FASCIA BIANCA E TESTO CHE ATTRAVERSA LE COLONNE */
.left-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--intro-height, 260px);
  background: #fff;
  pointer-events: none;
}

.intro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 20px;
  pointer-events: none;
}

/* Entrambe le copie occupano esattamente lo stesso spazio. */
.intro-text {
  position: relative;
  width: 100%;
  margin: 0;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.8px;
}

/* Testo nero: visibile solo nella colonna sinistra. */
.intro-text-left {
  display: none; /* La copia destra copre ora entrambe le colonne. */
}

/* Testo unico: difference lo rende nero sul bianco e reattivo sulle immagini. */

.intro-text-right {
  color: #fff;
  mix-blend-mode: difference;
}

/* COLONNA DESTRA */

.projects-scroll {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  position: relative;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

/* SINGOLI PROGETTI */

.project {
  height: 100%;
  min-height: 100%;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  scroll-snap-align: center;
  scroll-snap-stop: always;

  position: relative;
  overflow: hidden;
}

.project h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.5px;
  text-align: center;
}

/* COLORI PLACEHOLDER */

.project-01 {
  background-image: url("assets/copertina.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-02 {
  background: #bcbcbc;
}

.project-03 {
  background: #929292;
}

.project-04 {
  background: #c9c9c9;
}

/* RESPONSIVE PROVVISORIO */

@media (max-width: 700px) {
  .portfolio {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .left-panel {
    min-height: 35vh;
  }

  .projects-scroll {
    height: 65dvh;
  }

  .intro-text {
    font-size: 13px;
  }

  .project h2 {
    font-size: 20px;
  }
}

/* EFFETTO DIFFERENCE — WORKS */

.header h1 {
  color: #ffffff;
  mix-blend-mode: difference;
}

/* EFFETTO DIFFERENCE — NOMI DEI PROGETTI */

.project h2 {
  color: #ffffff;
  mix-blend-mode: difference;
}
/* TRANSIZIONI TRA PROGETTI — lo scroll nativo rimane attivo */
.projects-scroll {
  scroll-behavior: smooth;
}

.project h2 {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1),
              transform 950ms cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}

.project.is-active h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Leggero zoom sulle immagini, senza cambiare la composizione dei titoli */
.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transform: scale(1.055);
  transition: transform 1100ms cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.project.is-active::before {
  transform: scale(1);
}

.project h2 {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .projects-scroll { scroll-behavior: auto; }
  .project h2 { opacity: 1; transform: none; transition: none; }
  .project::before { transform: none; transition: none; }
}

/* WORKS OVERLAY — non altera il layout e lo scroll della homepage */
.works-open { appearance:none; border:0; background:none; padding:0; margin:0; color:inherit; font:inherit; letter-spacing:inherit; line-height:inherit; cursor:pointer; }
.works-view { position:fixed; inset:0; z-index:100; overflow:hidden; background:#e9e9e9; opacity:0; visibility:hidden; pointer-events:none; transition:opacity 650ms cubic-bezier(.22,1,.36,1),visibility 650ms; }
.works-view.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.works-previews,.works-wash { position:absolute; inset:0; pointer-events:none; }
.works-preview { position:absolute; inset:-2%; opacity:0; transform:scale(1.055); transition:opacity 750ms cubic-bezier(.22,1,.36,1),transform 1450ms cubic-bezier(.22,1,.36,1); background-size:cover; background-position:center; }
.works-preview.is-selected { opacity:1; transform:scale(1); }
.works-preview-01 { background-image:url('assets/copertina.jpg'); }
.works-preview-02 { background:linear-gradient(120deg,#bbb8b3,#e0dbd2 45%,#979994); }
.works-preview-03 { background:linear-gradient(135deg,#929c9c,#d8d9d6 50%,#a7a7ae); }
.works-preview-04 { background:linear-gradient(115deg,#d2c3b8,#a7a8aa 55%,#e4e0d7); }
.works-wash { background:rgba(245,245,245,.66); }
.works-content { position:relative; height:100%; padding:clamp(16px,3vw,46px); display:flex; flex-direction:column; justify-content:space-between; }
.works-list { display:flex; flex-direction:column; align-items:flex-start; margin-left:clamp(20px,17vw,350px); margin-top:clamp(12px,2vh,35px); }
.works-list button,.works-list a { font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:clamp(22px,2.8vw,49px); font-weight:500; line-height:.97; letter-spacing:-.055em; text-decoration:none; color:#111; border:0; background:none; padding:0; margin:0; cursor:pointer; transition:opacity 280ms ease, transform 450ms cubic-bezier(.22,1,.36,1); }
.works-list .works-close { margin-bottom:5px; }
.works-list:has(.works-link:hover) .works-link:not(:hover) { opacity:.45; }
.works-link:hover,.works-link:focus-visible { transform:translateX(10px); }
.works-credit { font-size:10px; letter-spacing:.01em; }
.works-view:not(.is-open) .works-list { transform:translateY(18px); opacity:0; }
.works-list { transition:transform 800ms cubic-bezier(.22,1,.36,1),opacity 700ms ease; }
body.works-is-open { overflow:hidden; }
@media(max-width:700px) { .works-list { margin-left:0; margin-top:18vh; } .works-list button,.works-list a { font-size:clamp(30px,8vw,48px); } .works-wash { background:rgba(245,245,245,.73); } }
@media(prefers-reduced-motion:reduce) { .works-view,.works-preview,.works-list,.works-list button,.works-list a { transition:none!important; } }

/* TYPOGRAPHY SIZES — requested desktop sizes */
.logo, .about-link { font-size: 13px; }
.header h1, .project h2, .intro-text { font-size: 40px; }
.works-list button, .works-list a, .works-credit { font-size: 40px; }

/* Keep requested sizes also when earlier mobile rules apply. */
@media (max-width: 700px) {
  .logo, .about-link { font-size: 13px; }
  .header h1, .project h2, .intro-text { font-size: 40px; }
  .works-list button, .works-list a, .works-credit { font-size: 40px; }
}

/* TYPOGRAPHY FINAL — Helvetica Neue Medium.
   Placed last to override older Roman/Arial declarations. */
body,
.logo,
.about-link,
.header h1,
.project h2,
.intro-text,
.works-list button,
.works-list a,
.works-credit,
.works-open {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-synthesis: none;
}

/* Intro: comfortable rhythm for a long uppercase paragraph. */
.intro-text {
  font-size: 40px;
  line-height: 1.13;
  letter-spacing: -0.15px;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-wrap: pretty;
}

/* Keep titles crisp without excessively tight spacing. */
.header h1,
.project h2 {
  letter-spacing: -0.5px;
}
.works-list button,
.works-list a {
  letter-spacing: -0.8px;
  line-height: 1.06;
}


/* FINAL TYPOGRAPHY — Semibold (600), all portfolio sections. */
html, body, button, a,
.logo, .about-link, .header h1, .project h2,
.intro-text, .works-open, .works-list button,
.works-list a, .works-credit {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 550;
  font-style: normal;
}

/* Intro: even lines, comfortable leading, optical kerning.
   White band's height is still measured by the existing JS. */
.intro-text {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0px;
  font-kerning: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Titles: strong but not overly compressed. */
.header h1, .project h2 { letter-spacing: -0.65px; }
.works-list button, .works-list a { letter-spacing: -0.65px; line-height: 1.08; }

/* TRACKING GLOBALE */

body,
.logo,
.about-link,
.header h1,
.project h2,
.intro-text,
.works-list button,
.works-list a,
.works-credit {
  letter-spacing: 0.1px;
}



/* ALLINEAMENTO PRECISO: CLOSE, coincide con WORKS nella homepage.
   Le coordinate sono lette dal pulsante reale, anche dopo il caricamento del font. */
.works-list {
  position: absolute;
  top: var(--works-top, 20px);
  left: var(--works-left, 20px);
  margin: 0;
}
/* Stessa metrica verticale del pulsante WORKS. */
.works-list .works-close {
  line-height: 1;
}
@media (max-width: 700px) {
  .works-list { margin: 0; }
}

/* ABOUT — posizioni condivise con i testi della homepage */
.about-page { background:#fff; color:#000; }
.about-layout { position:relative; min-height:100vh; min-height:100dvh; }
.about-header { width:59.8%; position:relative; }
/* La stessa classe .header conserva la griglia e i margini della homepage. */
.about-header .header h1, .about-header h1 { color:#000; mix-blend-mode:normal; }
.about-header .works-open { color:#000; }
.about-heading-block {
  position:absolute;
  top:var(--about-bio-top, 40px);
  left:var(--about-x, 50.5vw);
  right:20px;
}
.about-bio { margin:0; max-width:550px; font-size:13px; line-height:1.12; }
.about-footer { position:absolute; inset:auto 0 20px; }
.about-contact-label {
  position:absolute;
  left:var(--works-left, 20vw);
  bottom:0;
  font-size:13px;
  line-height:1;
}
.about-contact-details {
  position:relative;
  margin-left:var(--about-x, 50.5vw);
  margin-right:20px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  font-size:24px;
  line-height:1.08;
  overflow-wrap:anywhere;
}
.about-page a { color:inherit; text-decoration:none; }
.about-page a:hover { opacity:.55; }
.about-page .about-bio, .about-page .about-contact-label, .about-page .about-contact-details {
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight:550; font-style:normal; letter-spacing:.1px;
}
@media(max-width:700px) {
  .about-header { width:100%; }
  .about-heading-block { top:100px; left:20px; right:20px; }
  .about-footer { position:relative; margin-top: min(65vh, 520px); padding-bottom:20px; }
  .about-contact-label { position:static; display:block; margin:0 20px 20px; }
  .about-contact-details { margin-left:20px; font-size:clamp(18px,5vw,24px); }
}


/* PAGINE PROGETTO — template condiviso */
.project-detail-page { background:#fff; color:#000; }
.project-detail-layout { display:grid; grid-template-columns: 20% 80%; min-height:100dvh; }
.project-detail-sidebar { position:sticky; top:0; height:100dvh; padding:15px 15px 20px; display:flex; flex-direction:column; min-width:0; }
.project-detail-logo { font-size:13px; line-height:1; color:inherit; text-decoration:none; align-self:flex-start; }
.project-detail-heading { margin-top:23px; }
.project-detail-heading h1 { margin:0; font-size:40px; font-weight:550; line-height:1; letter-spacing:.1px; }
.project-detail-heading p { margin:3px 0 0; font-size:13px; line-height:1.15; letter-spacing:.1px; }
.project-detail-nav { margin-top:auto; display:flex; flex-direction:column; align-items:flex-start; }
.project-detail-nav a { color:inherit; text-decoration:none; font-size:40px; font-weight:550; line-height:1.03; letter-spacing:.1px; }
.project-detail-nav a:hover { opacity:.5; }
.project-detail-media { padding:15px 26px 15px 11px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.project-detail-placeholder { width:100%; aspect-ratio: 16 / 9; background:#d9d9d9; }
.project-detail-placeholder:nth-child(even) { background:#d1d1d1; }
.project-detail-media img,
.project-detail-media video { display:block; width:100%; height:auto; }
/* Per inserire immagini: sostituire i blocchi placeholder con tag img */
@media(max-width:700px) {
  .project-detail-layout { display:block; }
  .project-detail-sidebar { position:relative; height:auto; min-height:230px; padding:20px; }
  .project-detail-heading { margin-top:25px; }
  .project-detail-heading h1,.project-detail-nav a { font-size:clamp(26px,7vw,40px); }
  .project-detail-nav { margin-top:50px; }
  .project-detail-media { padding:0 20px 20px; gap:12px; }
}

/* Homepage: project titles lead to case studies */
.project-detail-entry { color:inherit; text-decoration:none; font:inherit; letter-spacing:inherit; }
.project-detail-entry:hover { opacity:.75; }

/* MARGINI PROGETTI — griglia calibrata sulla reference 1651px.
   Media inizia a 20.65vw, con margini esterni da 20px. */
@media (min-width: 701px) {
  .project-detail-layout { grid-template-columns: 19.45% minmax(0, 1fr); }
  .project-detail-sidebar { padding: 20px; }
  .project-detail-heading { margin-top: 14px; }
  .project-detail-media { padding: 20px; gap: 12px; }
}

/* GHOST MAGAZINE — coppia di immagini affiancate */
.project-detail-image-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; }
.project-detail-image-pair img { display:block; width:100%; height:auto; min-width:0; }


/* HOMEPAGE REFERENCE 02 — overrides limited to the homepage */
.home-redesign { grid-template-columns:20.65% minmax(0,1fr); }
.home-redesign .home-sidebar { background:#fff; overflow:hidden; justify-content:flex-start; }
.home-redesign .home-sidebar::after { display:none; }
.home-redesign .home-header { display:grid; grid-template-columns:1fr auto auto; gap:20px; align-items:start; padding:20px; width:100%; }
.home-redesign .home-header .logo,
.home-redesign .home-header .about-link,
.home-redesign .home-header .home-works-button { font-size:13px; line-height:1; font-weight:550; letter-spacing:.1px; margin:0; color:#000; text-decoration:none; white-space:nowrap; }
.home-redesign .home-header .about-link { justify-self:end; }
.home-redesign .home-project-list { display:flex; flex-direction:column; align-items:flex-start; margin:12px 20px 0; min-width:0; }
.home-redesign .home-project-link { font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:40px; line-height:1.08; font-weight:550; letter-spacing:.1px; color:#000; text-decoration:none; white-space:nowrap; transition:opacity 280ms ease, transform 450ms cubic-bezier(.22,1,.36,1); }
.home-redesign .home-project-list:has(a:hover) a:not(:hover) { opacity:.35; }
.home-redesign .home-project-link:hover,
.home-redesign .home-project-link:focus-visible { transform:translateX(5px); }
.home-redesign .projects-scroll { height:100%; }
.home-redesign .project { background-color:#d9d9d9; }
.home-redesign .project h2 { font-size:40px; font-weight:550; letter-spacing:.1px; line-height:1.08; color:#fff; mix-blend-mode:difference; }
.home-redesign .project-01 { background-image:url("assets/copertina.jpg"); background-position:center; background-size:cover; }
.home-redesign .project-02 { background:#c7c7c7; }
.home-redesign .project-03 { background:#b4b4b4; }
.home-redesign .project-04 { background:#d0d0d0; }
@media (max-width:700px) {
  .home-redesign { display:flex; flex-direction:column; height:100dvh; overflow:hidden; }
  .home-redesign .home-sidebar { flex:0 0 auto; height:auto; min-height:0; }
  .home-redesign .home-header { padding:20px; }
  .home-redesign .home-project-list { margin:8px 20px 20px; }
  .home-redesign .home-project-link { font-size:clamp(23px,6vw,40px); }
  .home-redesign .projects-scroll { flex:1 1 auto; min-height:0; height:auto; }
  .home-redesign .project h2 { font-size:clamp(28px,7vw,40px); }
}
@media (prefers-reduced-motion:reduce) {
  .home-redesign .home-project-link { transition:none; }
}

/* HOMEPAGE — progetto visibile sottolineato nella lista */
.home-redesign .home-header { grid-template-columns: 1fr auto; }
.home-redesign .home-project-link.is-current {
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
  opacity: 1;
}
.home-redesign .home-project-list:has(a:hover) a.is-current:not(:hover) { opacity: 1; }

/* HOMEPAGE — tutta la preview è un link, senza interferire con lo scroll */
.home-redesign .project-preview-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.home-redesign .project-preview-link h2 {
  pointer-events: none;
}
.home-redesign .project-preview-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}

/* Text case: preserve the capitalization authored in HTML. */
body { text-transform: none; }

/* HOMEPAGE EDITORIALE — reference 26/10; margini condivisi da 20px. */
body.editorial-home-page { background:#fff; color:#000; }
.editorial-home {
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  padding:20px;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight:550;
  letter-spacing:.1px;
}
.editorial-home a { color:inherit; text-decoration:none; }
.editorial-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  font-size:13px;
  line-height:1;
}
.editorial-projects { display:flex; flex-direction:column; margin-top:35px; }
.editorial-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:31px;
  border-top:1px solid #777;
  font-size:13px;
  line-height:1.15;
  gap:16px;
}
.editorial-row:last-child { border-bottom:1px solid #777; }
.editorial-row span:last-child { text-align:right; }
.editorial-row:hover span:first-child,
.editorial-row:focus-visible span:first-child { text-decoration:underline; text-underline-offset:2px; }
.editorial-footer { margin-top:auto; display:flex; flex-direction:column; align-items:flex-start; font-size:13px; line-height:1.05; }
@media(max-width:700px) {
  .editorial-home { padding:20px; }
  .editorial-projects { margin-top:35px; }
  .editorial-row { min-height:35px; }
}


/* HOMEPAGE — accordion come nel video di riferimento */
.editorial-projects { gap:0; }
.editorial-item { border-top:1px solid #777; }
.editorial-item:last-child { border-bottom:1px solid #777; }
.editorial-item-heading { margin:0; padding:0; font:inherit; }
.editorial-item .editorial-row {
  appearance:none; background:transparent; border:0; width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:0; margin:0; text-align:left; cursor:pointer;
  min-height:31px; font:inherit; font-size:13px; font-weight:550;
  line-height:1.15; letter-spacing:.1px; color:inherit;
}
.editorial-item .editorial-row span:last-child { text-align:right; }
.editorial-item .editorial-row:hover span:first-child,
.editorial-item .editorial-row:focus-visible span:first-child { text-decoration:underline; text-underline-offset:2px; }
.editorial-item .editorial-row:focus-visible { outline:1px solid #777; outline-offset:-1px; }
.editorial-panel { display:grid; grid-template-rows:0fr; opacity:0; visibility:hidden; transition:grid-template-rows 650ms cubic-bezier(.22,1,.36,1),opacity 450ms ease,visibility 650ms; }
.editorial-item.is-open .editorial-panel { grid-template-rows:1fr; opacity:1; visibility:visible; }
.editorial-panel-inner { min-height:0; overflow:hidden; }
.editorial-gallery { display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scroll-snap-type:x proximity; padding:8px 0 0; }
.editorial-gallery img { display:block; flex:0 0 auto; width:auto; height:min(58vw,65vh); max-width:calc(100vw - 40px); object-fit:contain; scroll-snap-align:start; background:#eee; }
.editorial-panel-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0 16px; font-size:13px; }
.editorial-panel-actions a { text-decoration:underline; text-underline-offset:2px; }
.editorial-empty { display:flex; align-items:center; justify-content:center; background:#e2e2e2; color:#555; height:min(58vw,65vh); width:min(65vw,800px); }
@media(max-width:700px) {
 .editorial-gallery img { height:min(70vw,420px); }
 .editorial-empty { height:70vw; }
}
@media(prefers-reduced-motion:reduce) { .editorial-panel { transition:none; } }

/* HOMEPAGE TYPOGRAPHIC — nuova reference */
body.typographic-home-page {
  margin: 0;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}
.typographic-home-page .typographic-home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.typographic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #888;
}
.typographic-header a,
.typographic-footer a,
.typographic-footer span {
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: 0.1px;
  color: #000;
  text-decoration: none;
}
.typographic-projects { padding-top: 12px; }
.typographic-projects h1 {
  max-width: 100%;
  margin: 0;
  font-family: inherit;
  font-size: clamp(44px, 6.65vw, 120px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}
.typographic-projects a {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}
.typographic-projects a:hover,
.typographic-projects a:focus-visible { text-decoration: underline; text-decoration-thickness: 0.045em; text-underline-offset: 0.06em; }
@media (hover: hover) {
  .typographic-projects h1:has(a:hover) .typographic-project-title:not(:has(a:hover)) { opacity: .45; }
}
.typographic-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
}
.typographic-home-page .typographic-category {
  flex: 1;
  display: grid;
  align-items: center;
  justify-items: start;
  padding-top: 36px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.1px;
}
.typographic-home-page .typographic-category-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.typographic-home-page .typographic-category-list [data-category] { opacity: .4; transition: opacity 120ms ease-out; }
.typographic-home-page .typographic-category-list .is-active { opacity: 1; }
.typographic-dot {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000;
  pointer-events: none;
}
@media (max-width: 700px) {
  .typographic-home-page .typographic-home { padding: 20px; }
  .typographic-projects h1 { font-size: clamp(42px, 9vw, 72px); line-height: 1.07; }
}

/* Homepage: titoli dei lavori in Medium, tracking leggermente aperto. */
.typographic-home-page .typographic-projects h1,
.typographic-home-page .typographic-projects h1 a {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* HOMEPAGE — inversione colori tramite pulsante circolare */
.typographic-home-page {
  --home-bg: #fff;
  --home-fg: #000;
  --home-rule: #888;
  background: var(--home-bg);
  color: var(--home-fg);
  transition: background-color 350ms ease, color 350ms ease;
}
.typographic-home-page.is-inverted {
  --home-bg: #000;
  --home-fg: #fff;
  --home-rule: #777;
}
.typographic-home-page .typographic-header { border-bottom-color: var(--home-rule); }
.typographic-home-page .typographic-header a,
.typographic-home-page .typographic-footer a,
.typographic-home-page .typographic-footer span,
.typographic-home-page .typographic-projects a { color: var(--home-fg); }
.typographic-home-page .typographic-dot {
  background: var(--home-fg);
  border: 1px solid var(--home-fg);
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  transition: background-color 350ms ease, border-color 350ms ease, transform 250ms ease;
}
.typographic-home-page .typographic-dot:hover { transform: scale(1.15); }
.typographic-home-page .typographic-dot:focus-visible { outline: 2px solid var(--home-fg); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  .typographic-home-page, .typographic-home-page .typographic-dot { transition: none; }
}


/* FIX INVERSIONE: stesso colore per sfondo, titoli, punteggiatura e link.
   body.typographic-home-page prevaleva sulla regola meno specifica. */
body.typographic-home-page {
  background-color: var(--home-bg);
  color: var(--home-fg);
}
body.typographic-home-page .typographic-home {
  background-color: var(--home-bg);
  color: var(--home-fg);
  transition: background-color 350ms ease, color 350ms ease;
}
body.typographic-home-page .typographic-projects h1 {
  color: var(--home-fg);
}
body.typographic-home-page .typographic-projects h1 a {
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  body.typographic-home-page .typographic-home { transition: none; }
}

/* ABOUT — pulsante centrale e box espandibile (reference 27/10) */
.typographic-home-page .typographic-header { position:relative; min-height:15px; }
.typographic-home-page .typographic-header .about-toggle {
  position:absolute; left:calc((100vw - 40px) / 3); top:0; transform:none;
  appearance:none; border:0; padding:0; margin:0; background:none;
  color:var(--home-fg); font-family:inherit; font-size:14px;
  font-weight:500; font-style:normal; line-height:1.05;
  letter-spacing:.1px; cursor:pointer;
  transition:color 250ms ease;
}
.typographic-home-page .typographic-header > a { font-size:14px; font-weight:500; transition:color 250ms ease; }
.typographic-home-page .typographic-header > a:hover,
.typographic-home-page .typographic-header > a:focus-visible,
.typographic-home-page .typographic-header .about-toggle:hover,
.typographic-home-page .typographic-header .about-toggle:focus-visible { color:#00ff5f; }
.typographic-home-page .about-popup {
  position:absolute; top:calc(100% + 12px); left:50%;
  width:min(440px,calc(100vw - 40px));
  padding:10px; border:1px solid var(--home-fg);
  background:var(--home-bg); color:var(--home-fg);
  z-index:30; font-size:13px; font-weight:500;
  line-height:1.12; letter-spacing:.1px;
}
.typographic-home-page .about-popup[hidden] { display:none; }
.typographic-home-page .about-popup p { margin:0; }
@media(max-width:700px) {
  .typographic-home-page .about-popup { left:50%; transform:translateX(-50%); }
}

/* ABOUT — allineamento preciso alla linea dell'header e al testo About */
.typographic-home-page .about-popup {
  top: 100%;
  left: var(--about-popup-left, 50%);
  transform: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
}
/* Peso 600 per tutti i testi della homepage */
.typographic-home-page .typographic-header > a,
.typographic-home-page .typographic-header .about-toggle,
.typographic-home-page .typographic-projects h1,
.typographic-home-page .typographic-projects h1 a,
.typographic-home-page .typographic-footer a,
.typographic-home-page .typographic-footer span {
  font-weight: 600;
}
@media (max-width:700px) {
  .typographic-home-page .about-popup { transform:none; }
}

/* ABOUT — allineamento con la guida della reference.
   Il testo parte esattamente sotto la A di About; il bordo resta più a sinistra. */
.typographic-home-page .typographic-header .about-popup {
  top: 100%;
  left: var(--about-popup-left, 50%);
  transform: none;
  padding: 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
  box-sizing: border-box;
  max-width: calc(100vw - 40px);
  width: min(560px, calc(100% - var(--about-popup-left, 50%)));
}
@media (max-width: 700px) {
  .typographic-home-page .typographic-header .about-popup {
    left: 0;
    width: 100%;
  }
}

/* La linea raggiunge i bordi senza spostare i contenuti dell'header. */
.typographic-home-page .typographic-header { border-bottom-color: transparent; }
.typographic-home-page .typographic-header::after {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -1px;
  border-bottom: 1px solid var(--home-rule);
  pointer-events: none;
}
.typographic-home-page .typographic-footer a,
.typographic-home-page .typographic-footer span { font-size: 14px; }
/* Anteprime decorative: livelli indipendenti, senza modificare il layout. */
.typographic-home-page .typographic-home { isolation: isolate; }
.typographic-home-page .home-previews {
  position: absolute;
  inset: var(--home-preview-top, 0px) 0 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.typographic-home-page .home-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.typographic-home-page .home-preview.is-active { opacity: 1; }
.typographic-home-page .home-preview[data-preview="ghost-magazine"] { background-image: url("assets/previews/ghost-magazine.jpg"); }
.typographic-home-page .home-preview[data-preview="ghost-radio"] { background-image: url("assets/previews/ghost-radio.jpg"); }
.typographic-home-page .home-preview[data-preview="giulietto-chiesa"] { background-image: url("assets/previews/giulietto-chiesa.jpg"); }
.typographic-home-page .home-preview[data-preview="drype"] { background-image: url("assets/previews/drype.jpg"); }
.typographic-home-page .home-preview[data-preview="acog"] { background-image: url("assets/previews/acog.jpg"); }
.typographic-home-page .home-previews::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--home-bg);
  opacity: .58;
  transition: background-color 350ms ease;
}

/* Pagine progetto — header condiviso e griglia della reference. */
.project-detail-page {
  --project-header-height: 48px;
  --home-bg: #fff;
  --home-fg: #000;
}
.project-detail-page .project-detail-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--project-header-height);
  padding: 16px 20px;
  border-bottom: 1px solid #000;
  background: #fff;
}
.project-detail-header > a,
.project-detail-header .about-toggle {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .1px;
  color: #000;
}
.project-detail-header .about-toggle {
  position: absolute;
  left: calc(20px + (100vw - 40px) / 3);
  top: 16px;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
}
.project-detail-header > a:hover,
.project-detail-header .about-toggle:hover { color: #00ff5f; }
.project-detail-header .about-popup {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: var(--about-popup-left, 33.333%);
  width: min(560px, calc(100% - var(--about-popup-left, 33.333%) - 20px));
  padding: 32px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .1px;
}
.project-detail-header .about-popup[hidden] { display: none; }
.project-detail-header .about-popup p { margin: 0; }
.project-detail-page .project-detail-layout {
  grid-template-columns: calc((100vw - 40px) / 3) minmax(0, 1fr);
  min-height: calc(100dvh - var(--project-header-height));
}
.project-detail-page .project-detail-sidebar {
  top: var(--project-header-height);
  height: calc(100dvh - var(--project-header-height));
  padding: 0 0 16px;
  overflow-y: auto;
}
.project-detail-page .project-detail-heading {
  flex-shrink: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #000;
  border-top: 0;
}
.project-detail-page .project-detail-heading h1,
.project-detail-page .project-detail-heading p,
.project-detail-page .project-detail-nav a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .1px;
}
.project-detail-page .project-detail-heading .project-detail-meta {
  margin: 32px 0 0;
  color: #d0d0d0;
}
.project-detail-page .project-detail-heading .project-detail-description { margin: 32px 0 0; }
.project-detail-page .project-detail-nav {
  flex-shrink: 0;
  align-items: stretch;
  margin-top: auto;
  padding-top: 32px;
}
.project-detail-page .project-detail-nav a {
  padding: 10px 20px;
  border: 1px solid #000;
}
.project-detail-page .project-detail-nav a + a { border-top: 0; }
.project-detail-page .project-detail-media { padding: 20px; gap: 12px; }
.project-detail-page .project-detail-placeholder { aspect-ratio: 4 / 3; }
@media (max-width: 700px) {
  .project-detail-header .about-popup {
    left: 20px;
    width: calc(100% - 40px);
  }
  .project-detail-page .project-detail-layout { display: block; }
  .project-detail-page .project-detail-sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding-bottom: 0;
    overflow: visible;
  }
  .project-detail-page .project-detail-nav { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .typographic-home-page .home-preview,
  .typographic-home-page .home-previews::after { transition: none; }
}

/* Un solo header per homepage e progetti. */
html.is-inverted body {
  --home-bg: #000;
  --home-fg: #fff;
  --home-rule: #777;
}
body.project-detail-page,
body.about-page {
  background: var(--home-bg, #fff);
  color: var(--home-fg, #000);
}
body.project-detail-page .project-detail-heading,
body.project-detail-page .project-detail-nav a { border-color: var(--home-fg); }
html.is-inverted .project-detail-heading .project-detail-meta { color: #777; }
html.is-inverted .about-header h1,
html.is-inverted .about-header .works-open,
html.is-inverted .about-header .logo,
html.is-inverted .about-header .about-link { color: var(--home-fg); }
:is(body.typographic-home-page, body.project-detail-page) {
  --project-column-width: 33vw;
}
body.project-detail-page .project-detail-layout {
  grid-template-columns: var(--project-column-width) minmax(0, 1fr);
}
:is(body.typographic-home-page, body.project-detail-page) .typographic-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  height: 48px;
  min-height: 48px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--home-fg);
  background: var(--home-bg);
}
body.typographic-home-page .typographic-header { margin: -20px -20px 0; }
body.typographic-home-page .typographic-header::after { content: none; }
:is(body.typographic-home-page, body.project-detail-page) .typographic-header > a,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .1px;
  color: var(--home-fg);
}
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle {
  position: absolute;
  left: calc(var(--project-column-width) + 20px);
  top: 16px;
  transform: none;
}
:is(body.typographic-home-page, body.project-detail-page) .typographic-header > a:hover,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header > a:focus-visible,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle:hover,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle:focus-visible { color: #00ff5f; }
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-popup {
  top: 100%;
  left: var(--project-column-width);
  width: min(560px, calc(100% - var(--project-column-width) - 20px));
  max-width: calc(100vw - 40px);
  transform: none;
  padding: 10px 19px;
  border: 1px solid var(--home-fg);
  background: var(--home-bg);
  color: var(--home-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .1px;
}
body.project-detail-page { padding-top: var(--project-header-height); }
body.project-detail-page .project-detail-header {
  position: fixed;
  left: 0;
  right: 0;
}
@media (max-width: 700px) {
  :is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-popup {
    left: 20px;
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typographic-home-page .typographic-category-list [data-category] { transition: none; }
}

/* Etichetta compatta accanto al cursore, nello stile del box About. */
.typographic-home-page .typographic-category-list {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 16px);
  pointer-events: none;
  padding: 5px 8px;
  border: 1px solid var(--home-fg);
  background: var(--home-bg);
  color: var(--home-fg);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .1px;
}
.typographic-home-page .typographic-category-list[hidden],
.typographic-home-page .typographic-category-list [data-category] {
  display: none;
}
.typographic-home-page .typographic-category-list .is-active {
  display: block;
  opacity: 1;
}

/* Homepage: margini esterni uniformi di 10px, anche su mobile. */
body.typographic-home-page .typographic-home {
  padding: 10px;
}
body.typographic-home-page .typographic-header {
  margin: -10px -10px 0;
  padding: 10px;
  height: 36px;
  min-height: 36px;
}
body.typographic-home-page .typographic-header .about-toggle {
  left: calc(var(--project-column-width) + 10px);
  top: 10px;
}
body.typographic-home-page .typographic-header .about-popup {
  width: min(560px, calc(100% - var(--project-column-width) - 10px));
  max-width: calc(100vw - 20px);
}
body.typographic-home-page .typographic-dot {
  right: 10px;
  bottom: 10px;
}
@media (max-width: 700px) {
  body.typographic-home-page .typographic-header .about-popup {
    left: 10px;
    width: calc(100% - 20px);
  }
}

/* Header leggermente più sottile, con testi centrati nella fascia. */
body.typographic-home-page .typographic-header {
  height: 32px;
  min-height: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
}
body.typographic-home-page .typographic-header .about-toggle {
  top: 8px;
}
body.project-detail-page {
  --project-header-height: 44px;
}
body.project-detail-page .project-detail-header {
  padding-top: 14px;
  padding-bottom: 14px;
}
body.project-detail-page .typographic-header .about-toggle {
  top: 14px;
}

/* Il testo del box parte sulla stessa verticale di About. */
body.typographic-home-page .typographic-header .about-popup {
  top: 100%;
  left: var(--project-column-width);
  padding: 10px 9px;
}
body.project-detail-page .typographic-header .about-popup {
  top: 100%;
  left: var(--project-column-width);
  padding: 10px 19px;
}
@media (max-width: 700px) {
  body.typographic-home-page .typographic-header .about-popup {
    left: 10px;
  }
  body.project-detail-page .typographic-header .about-popup {
    left: 20px;
  }
}

/* Spaziatura appena più stretta con Helvetica Neue. */
:is(body.typographic-home-page, body.project-detail-page) .typographic-header > a,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle,
:is(body.typographic-home-page, body.project-detail-page) .about-popup,
body.typographic-home-page .typographic-footer > *,
body.typographic-home-page .typographic-category-list,
body.project-detail-page .project-detail-heading h1,
body.project-detail-page .project-detail-heading p,
body.project-detail-page .project-detail-nav a {
  letter-spacing: -0.01em;
}
body.typographic-home-page .typographic-projects h1,
body.typographic-home-page .typographic-projects h1 a {
  letter-spacing: -0.015em;
}
/* Compensazione ottica del bordo dei caratteri grandi rispetto al logo. */
body.typographic-home-page .typographic-projects h1 {
  margin-left: -0.035em;
}
/* Il bordo del riquadro aggiunge 1px al margine del testo. */
body.project-detail-page .project-detail-heading {
  padding-left: 19px;
}

/* Homepage: margini da 8px e header più sottile. */
body.typographic-home-page .typographic-home {
  padding: 8px;
}
body.typographic-home-page .typographic-header {
  margin: -8px -8px 0;
  height: 28px;
  min-height: 28px;
  padding: 6px 8px;
}
body.typographic-home-page .typographic-header .about-toggle {
  left: calc(var(--project-column-width) + 8px);
  top: 6px;
}
body.typographic-home-page .typographic-header .about-popup {
  padding: 10px 7px;
  width: min(560px, calc(100% - var(--project-column-width) - 8px));
  max-width: calc(100vw - 16px);
}
body.typographic-home-page .typographic-dot {
  right: 8px;
  bottom: 8px;
}
body.typographic-home-page .typographic-projects h1,
body.typographic-home-page .typographic-projects h1 a {
  letter-spacing: -1.5px;
}
body.project-detail-page {
  --project-header-height: 40px;
}
body.project-detail-page .project-detail-header {
  padding-top: 12px;
  padding-bottom: 12px;
}
body.project-detail-page .typographic-header .about-toggle {
  top: 12px;
}
@media (max-width: 700px) {
  body.typographic-home-page .typographic-header .about-popup {
    left: 8px;
    width: calc(100% - 16px);
  }
}

/* Testi piccoli leggibili; titoli principali della homepage a -1.5px. */
html body,
html body * {
  letter-spacing: normal !important;
}
body.typographic-home-page .typographic-projects h1,
body.typographic-home-page .typographic-projects h1 a {
  letter-spacing: -1.5px !important;
}

/* Peso Medium per i testi dell'header condiviso. */
:is(body.typographic-home-page, body.project-detail-page) .typographic-header > a,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle {
  font-weight: 500;
}

/* Peso Medium per i testi, preservando i titoli dei progetti. */
body,
body :where(*) {
  font-weight: 500 !important;
}
body.typographic-home-page .typographic-projects h1,
body.typographic-home-page .typographic-projects h1 a,
body.typographic-home-page .typographic-project-title {
  font-weight: 600 !important;
}

/* Header identico in homepage e in tutte le pagine progetto. */
:is(body.typographic-home-page, body.project-detail-page) {
  --project-header-height: 28px;
  --page-gutter: 8px;
}
:is(body.typographic-home-page, body.project-detail-page) .typographic-header {
  height: var(--project-header-height);
  min-height: var(--project-header-height);
  padding: 6px var(--page-gutter);
}
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle {
  top: 6px;
  left: calc(var(--project-column-width) + var(--page-gutter));
}
:is(body.typographic-home-page, body.project-detail-page) .typographic-header > a,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle {
  transition: color 250ms ease;
}
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-popup {
  top: 100%;
  left: var(--project-column-width);
  padding: 10px calc(var(--page-gutter) - 1px);
  width: min(560px, calc(100% - var(--project-column-width) - var(--page-gutter)));
  max-width: calc(100vw - 2 * var(--page-gutter));
}
body.project-detail-page .project-detail-sidebar {
  padding-bottom: var(--page-gutter);
}
body.project-detail-page .project-detail-heading {
  padding: var(--page-gutter) calc(var(--page-gutter) - 1px);
}
body.project-detail-page .project-detail-nav a {
  padding: 10px calc(var(--page-gutter) - 1px);
}
body.project-detail-page .project-detail-media {
  padding: var(--page-gutter);
}
@media (max-width: 700px) {
  :is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-popup {
    left: var(--page-gutter);
    width: calc(100% - 2 * var(--page-gutter));
  }
}

/* Tipografia omogenea nelle schede di tutti i progetti. */
body.project-detail-page .project-detail-heading h1,
body.project-detail-page .project-detail-heading p,
body.project-detail-page .project-detail-nav a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500 !important;
  line-height: 1.12;
}
body.project-detail-page .project-detail-heading .project-detail-meta {
  color: var(--home-fg);
}

/* Contatti: verde condiviso con l'header e sottolineatura all'interazione. */
body.typographic-home-page .typographic-footer a {
  transition: color 250ms ease;
  text-underline-offset: 2px;
}
body.typographic-home-page .typographic-footer a:hover,
body.typographic-home-page .typographic-footer a:focus-visible,
body.typographic-home-page .typographic-footer a:active {
  color: #00ff5f;
  text-decoration: underline;
}


/* Spazio temporaneo per il video di Audiofactory. */
.project-video-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--home-bg);
  color: var(--home-fg);
  border: 1px solid currentColor;
  padding: 16px;
  font-size: 14px;
}
.project-video-placeholder p { margin: 0; }

/* Fotogramma del video usato anche come anteprima del progetto. */
.typographic-home-page .home-preview[data-preview="audiofactory"] {
  background-image: url("assets/previews/audiofactory.jpg");
}

/* Peso 600 per il nome e About nell'header condiviso. */
:is(body.typographic-home-page, body.project-detail-page) .typographic-header > a,
:is(body.typographic-home-page, body.project-detail-page) .typographic-header .about-toggle {
  font-weight: 600 !important;
}
