/* Shared rules first. Anything that belongs to one page, or that
   differs from page to page, is nested under that page's body class. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Montserrat:wght@600;700&display=swap');

:root {
  --black: #0a0a0a;
  --yellow: #f2c318;
  --yellow-dim: #d4ab14;
}

* {
  box-sizing: border-box;
}

.site-header {
  display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 32px;
      background: var(--black);
      border-bottom: 1px solid #1c1c1c;
      gap: 24px;
      flex-wrap: nowrap;
      overflow-x: auto;
      position: relative;
      z-index: 40;
}

.logo {
  background: var(--yellow);
      padding: 8px 16px;
      border-radius: 2px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
}

nav {
  display: flex;
      align-items: center;
      gap: 22px;
      flex-wrap: nowrap;
      flex-shrink: 0;
}

nav a.active {
  border-bottom: 2px solid var(--yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid #333;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  color: var(--yellow);
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.55);
}

body.nav-open .nav-backdrop {
  display: block;
}

.lang span {
  padding: 2px 4px;
}

.lang span.active {
  color: var(--yellow);
}

.lang span.inactive {
  color: #6b5c10;
}

.logo img {
  display: block; height: 46px; width: auto;
}

.photo-caption {
  text-align: center;
      font-size: 12px;
      color: #999;
      padding: 10px 16px 0;
      letter-spacing: 0.03em;
      font-style: italic;
}

.bio-section {
  max-width: 780px;
      margin: 0 auto;
      padding: 48px 24px 80px;
}

.bio-section h1 {
  font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: var(--yellow);
      font-weight: 700;
      font-size: 2.67rem;
      margin-bottom: 28px;
      letter-spacing: 0.02em;
}

.bio-text {
  display: none; line-height: 1.85; font-size: 1.36rem; color: #ddd;
}

.bio-text.active {
  display: block;
}

.bio-text p {
  margin: 0 0 20px;
}

.bio-text .placeholder {
  color: #777; font-style: italic;
}

.timeline {
  margin-top: 8px;
}

.tl-row {
  display: flex;
      gap: 18px;
      padding: 9px 0;
      border-bottom: 1px solid #1e1e1e;
      font-size: 1.23rem;
}

.tl-year {
  flex: 0 0 90px;
      color: var(--yellow);
      font-weight: 600;
      font-family: 'Century Gothic', 'Poppins', sans-serif;
}

.tl-event {
  color: #ccc; line-height: 1.5;
}

.bio-gallery {
  display: grid;
      grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
      gap: 20px;
      margin: 40px 0 8px;
}

.bio-gallery figure {
  margin: 0;
      background: #0f0f0f;
      border: 1px solid #1e1e1e;
}

.bio-gallery img {
  display: block;
      width: 100%;
      height: 520px;
      object-fit: cover;
}

.bio-gallery figcaption {
  padding: 10px 12px;
      font-size: 0.8rem;
      color: #999;
      font-style: italic;
      letter-spacing: 0.02em;
}

.bio-gallery figure.tall img {
  height: 650px;
}

.bio-gallery figure.full img {
  height: 650px;
      object-fit: contain;
      background: #000;
}

.bio-gallery figure.wide-caption {
  grid-column: 1 / -1;
      display: flex;
      flex-direction: row;
}

.bio-gallery figure.wide-caption .wide-caption-images {
  display: flex;
      flex-shrink: 0;
      gap: 2px;
}

.bio-gallery figure.wide-caption .wide-caption-images img {
  width: 360px;
      height: auto;
      flex-shrink: 0;
      display: block;
}

.bio-gallery figure.wide-caption figcaption {
  display: flex;
      align-items: center;
      font-size: 0.95rem;
      line-height: 1.6;
      padding: 20px;
      font-style: normal;
      color: #ccc;
}

.ricerca-section {
  max-width: 780px;
      margin: 0 auto;
      padding: 20px 24px 90px;
}

.ricerca-title {
  font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: var(--yellow);
      font-weight: 600;
      font-size: 2rem;
      line-height: 1.4;
      margin: 0 0 30px;
}

.ricerca-text {
  display: none;
}

.ricerca-text.active {
  display: block;
}

.ricerca-text p {
  line-height: 1.85;
      font-size: 1.33rem;
      color: #ddd;
      margin: 0 0 26px;
      text-align: justify;
}

.ricerca-text .poem {
  margin: 0 0 30px;
      padding: 20px 26px;
      border-left: 3px solid var(--yellow);
      color: #f2d879;
      font-size: 1.4rem;
      line-height: 1.9;
}

.img-placeholder {
  border: 1px dashed #444;
      background: #0d0d0d;
      color: #888;
      font-size: 0.82rem;
      font-style: italic;
      text-align: center;
      padding: 40px 16px;
      margin: 0 0 26px;
      letter-spacing: 0.02em;
}

.img-placeholder-row {
  display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 0 0 26px;
}

.img-placeholder-row .img-placeholder {
  margin: 0;
}

.subnav a.active {
  color: var(--yellow);
      border-bottom: 2px solid var(--yellow);
}

.opera-viewer {
  max-width: 1100px;
      margin: 0 auto;
      padding: 40px 24px 60px;
      display: flex;
      align-items: center;
      gap: 18px;
}

.nav-arrow {
  background: none;
      border: none;
      color: #555;
      font-size: 2.5rem;
      cursor: pointer;
      flex-shrink: 0;
      padding: 10px;
      user-select: none;
      transition: color 0.2s;
}

.nav-arrow:not(:disabled):hover {
  color: var(--yellow);
}

.nav-arrow:disabled {
  color: #2a2a2a; cursor: default;
}

.opera-main {
  flex: 1;
      display: grid;
      grid-template-columns: 1.3fr 1fr;
      gap: 40px;
      align-items: start;
}

@media (max-width: 800px) {
  .opera-main { grid-template-columns: 1fr; }
      .opera-viewer { padding: 24px 16px 40px; }
}

.opera-image {
  background: #000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
}

.opera-image img {
  max-width: 100%;
      max-height: 70vh;
      display: block;
}

.opera-details {
  display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: center;
}

.opera-details img {
  height: 80px;
      width: 80px;
      object-fit: cover;
      opacity: 0.85;
      cursor: pointer;
}

.opera-details img:hover {
  opacity: 1;
}

.opera-info h1 {
  color: var(--yellow);
      font-weight: 600;
      font-size: 2rem;
      margin: 0 0 18px;
}

.opera-field {
  margin: 0 0 12px;
      font-size: 1.33rem;
      line-height: 1.5;
      color: #ddd;
}

.opera-field .label {
  color: #888;
      font-size: 0.85em;
      display: block;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      margin-bottom: 2px;
}

.opera-desc {
  margin-top: 22px;
      font-size: 1.15rem;
      line-height: 1.75;
      color: #ccc;
}

.thumb-strip {
  max-width: 1100px;
      margin: 0 auto;
      padding: 0 24px 60px;
      display: flex;
      gap: 10px;
      overflow-x: auto;
}

.thumb-strip img {
  height: 74px;
      width: 74px;
      object-fit: cover;
      cursor: pointer;
      opacity: 0.55;
      border: 2px solid transparent;
      transition: opacity 0.2s, border-color 0.2s;
      flex-shrink: 0;
}

.thumb-strip img.active {
  opacity: 1;
      border-color: var(--yellow);
}

.opera-counter {
  text-align: center;
      color: #666;
      font-size: 0.9rem;
      letter-spacing: 0.05em;
      padding-bottom: 10px;
}

.intro {
  max-width: 1040px; margin: 0 auto; padding: 40px 32px 10px;
}

.intro h2 {
  color: var(--yellow); font-weight: 400; font-size: 30px; letter-spacing: 5px; margin: 0 0 26px;
}

.intro p {
  color: #d9c87a; font-size: 1.05rem; line-height: 1.95; text-align: left; margin: 0 0 20px; max-width: 76ch;
}

.ricerca-figure-row {
  display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 0 0 26px;
}

.ricerca-figure-row figure {
  margin: 0;
      text-align: center;
}

.ricerca-figure-row img {
  max-width: 100%;
      max-height: 480px;
      display: block;
      margin: 0 auto;
}

.ricerca-figure-row figcaption {
  margin-top: 8px;
      font-size: 0.8rem;
      color: #999;
      font-style: italic;
}

.ricerca-figure {
  margin: 0 0 26px;
      text-align: center;
}

.ricerca-figure img {
  max-width: 100%;
      max-height: 640px;
      display: block;
      margin: 0 auto;
}

.ricerca-figure figcaption {
  margin-top: 10px;
      font-size: 0.82rem;
      color: #999;
      font-style: italic;
      letter-spacing: 0.02em;
}

.ricerca-figure-pair {
  margin: 0 0 26px;
      text-align: center;
}

.ricerca-figure-pair .pair-images {
  display: flex;
      justify-content: center;
      gap: 4px;
}

.ricerca-figure-pair img {
  max-height: 640px;
      max-width: 48%;
      display: block;
}

.ricerca-figure-pair figcaption {
  margin-top: 10px;
      font-size: 0.82rem;
      color: #999;
      font-style: italic;
      letter-spacing: 0.02em;
}

body.page-home {
  margin: 0;
      background: var(--black);
      font-family: 'Montserrat', sans-serif;
      color: var(--yellow);

  .logo svg {
    display: block; height: 46px;
  }

  nav a {
    color: var(--yellow);
        text-decoration: none;
        font-weight: 700;
        font-size: 13px;
        letter-spacing: 0.04em;
        padding-bottom: 4px;
        white-space: nowrap;
  }

  .lang {
    display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 700;
        padding-left: 20px;
        border-left: 1px solid #333;
        flex-shrink: 0;
  }

  .lang {
    cursor: pointer;
  }

  .hero {
    position: relative;
        width: 100%;
        height: 62vh;
        min-height: 380px;
        overflow: hidden;
        background: #000;
  }

  .hero-slide {
    position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1.6s ease-in-out;
  }

  .hero-slide.active {
    opacity: 1;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-slide::after {
    content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 22%, rgba(0,0,0,0.15) 100%);
  }

  .hero-title {
    position: absolute;
        left: 5%;
        bottom: 9%;
        z-index: 5;
        margin: 0;
        font-family: 'Century Gothic', 'Poppins', sans-serif;
        font-style: normal;
        font-weight: 500;
        letter-spacing: 0.02em;
        color: var(--yellow);
        font-size: clamp(2.6rem, 7vw, 5.5rem);
        text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  }

  @media (max-width: 700px) {
    .site-header { padding: 12px 18px; }
        nav { gap: 14px; }
        nav a { font-size: 11px; }
        .lang { padding-left: 12px; }
  }
}

body.page-biografia {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .artist-photo {
    width: 100%;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        background: #000;
  }

  .artist-photo img {
    width: auto;
        height: 100%;
        max-height: 100vh;
        object-fit: cover;
        display: block;
  }

  @media (max-width: 600px) {
    .img-placeholder-row { grid-template-columns: 1fr; }
  }

  .subnav {
    display: flex;
        gap: 28px;
        padding: 16px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.04em;
        font-family: 'Century Gothic', 'Poppins', sans-serif;
        padding-bottom: 4px;
  }
}

body.page-ceramiche {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .subnav {
    display: flex;
        gap: 24px;
        padding: 14px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
        flex-wrap: wrap;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.03em;
        padding-bottom: 4px;
  }
}

body.page-contatti {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .artist-photo {
    width: 100%;
        max-height: 70vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        background: #000;
  }

  .artist-photo img {
    width: auto;
        height: 100%;
        max-height: 70vh;
        object-fit: cover;
        display: block;
  }

  @media (max-width: 600px) {
    .ricerca-figure-row { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .img-placeholder-row { grid-template-columns: 1fr; }
  }

  .subnav {
    display: flex;
        gap: 28px;
        padding: 16px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.04em;
        font-family: 'Century Gothic', 'Poppins', sans-serif;
        padding-bottom: 4px;
  }

  .contatti {
    max-width: 900px; margin: 0 auto; padding: 70px 32px 110px;
  }

  .contatti h2 {
    color: var(--yellow); font-weight: 400; font-size: 30px; letter-spacing: 5px; margin: 0 0 34px;
  }

  .contatti .nome {
    color: #eee; font-size: 1.6rem; font-weight: 600; margin: 0 0 30px; letter-spacing: 0.02em;
  }

  .contatti .riga {
    margin: 0 0 22px; font-size: 1.25rem; line-height: 1.5;
  }

  .contatti .riga .label {
    color: #888; font-size: 0.72em; display: block;
        letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px;
  }

  .contatti a {
    color: var(--yellow); text-decoration: none;
  }

  .contatti a {
    border-bottom: 1px solid #4a3f0a;
  }

  .contatti a:hover {
    border-bottom-color: var(--yellow);
  }

  .blocco {
    display: none;
  }

  .blocco.active {
    display: block;
  }
}

body.page-monografie {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .artist-photo {
    width: 100%;
        max-height: 70vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        background: #000;
  }

  .artist-photo img {
    width: auto;
        height: 100%;
        max-height: 70vh;
        object-fit: cover;
        display: block;
  }

  @media (max-width: 600px) {
    .ricerca-figure-row { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .img-placeholder-row { grid-template-columns: 1fr; }
  }

  .subnav {
    display: flex;
        gap: 28px;
        padding: 16px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.04em;
        font-family: 'Century Gothic', 'Poppins', sans-serif;
        padding-bottom: 4px;
  }

  .mono-wrap {
    max-width: 1040px; margin: 0 auto; padding: 46px 32px 90px;
  }

  .mono {
    display: none;
  }

  .mono.active {
    display: block;
  }

  .mono article {
    display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 44px;
        align-items: start;
  }

  .mono article + article {
    margin-top: 60px;
        padding-top: 50px;
        border-top: 1px solid #1c1c1c;
  }

  @media (max-width: 760px) {
    .mono article { grid-template-columns: 1fr; gap: 26px; }
  }

  .mono .copertina img {
    width: 100%; display: block;
  }

  .mono h2 {
    color: var(--yellow);
        font-weight: 400;
        font-size: 26px;
        letter-spacing: 3px;
        margin: 0 0 22px;
  }

  .mono .scheda {
    margin: 0 0 26px;
  }

  .mono .riga {
    margin: 0 0 12px; font-size: 1.1rem; color: #ddd; line-height: 1.5;
  }

  .mono .riga .label {
    color: #888;
        font-size: 0.8em;
        display: block;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 2px;
  }

  .mono .scarica {
    display: inline-block;
        border: 1px solid var(--yellow);
        color: var(--yellow);
        text-decoration: none;
        padding: 12px 22px;
        font-weight: 600;
        letter-spacing: 0.05em;
        font-size: 0.95rem;
        transition: background 0.2s, color 0.2s;
  }

  .mono .scarica:hover {
    background: var(--yellow); color: #0a0a0a;
  }

  .mono .peso {
    color: #777; font-size: 0.85rem; margin: 10px 0 0;
  }

  .mono .attesa {
    color: #777;
        font-size: 1.05rem;
        line-height: 1.8;
        border: 1px dashed #333;
        padding: 30px;
  }
}

body.page-olio {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .subnav {
    display: flex;
        gap: 24px;
        padding: 14px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
        flex-wrap: wrap;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.03em;
        padding-bottom: 4px;
  }
}

body.page-disponibili {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .artist-photo {
    width: 100%;
        max-height: 70vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        background: #000;
  }

  .artist-photo img {
    width: auto;
        height: 100%;
        max-height: 70vh;
        object-fit: cover;
        display: block;
  }

  @media (max-width: 600px) {
    .ricerca-figure-row { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .img-placeholder-row { grid-template-columns: 1fr; }
  }

  .subnav {
    display: flex;
        gap: 28px;
        padding: 16px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.04em;
        font-family: 'Century Gothic', 'Poppins', sans-serif;
        padding-bottom: 4px;
  }

  .disp-intro {
    max-width: 1040px; margin: 0 auto; padding: 42px 32px 6px;
  }

  .disp-intro h2 {
    color: var(--yellow); font-weight: 400; font-size: 28px; letter-spacing: 4px; margin: 0 0 20px;
  }

  .disp-intro p {
    color: #d9c87a; font-size: 1.05rem; line-height: 1.9; max-width: 76ch; margin: 0 0 10px;
  }

  .disp-conta {
    color: #777; font-size: 0.95rem; letter-spacing: 0.05em; margin: 0 0 4px;
  }

  .griglia {
    max-width: 1280px;
        margin: 0 auto;
        padding: 30px 32px 90px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 34px 26px;
  }

  .cella {
    display: flex; flex-direction: column;
  }

  .cella .foto {
    background: #000;
        height: 260px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
  }

  .cella .foto img {
    max-width: 100%; max-height: 260px; display: block;
  }

  .cella .senza {
    width: 100%; height: 100%;
        border: 1px dashed #3a3a3a;
        color: #5a5a5a;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        display: flex; align-items: center; justify-content: center;
        text-align: center; padding: 14px;
  }

  .cella h3 {
    color: var(--yellow); font-weight: 600; font-size: 1.05rem; margin: 14px 0 6px;
  }

  .cella p {
    margin: 0 0 3px; font-size: 0.92rem; color: #bbb; line-height: 1.45;
  }

  .cella .sez {
    margin-top: 7px; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
  }

  .cella .sez a {
    color: #888; text-decoration: none; border-bottom: 1px solid #333;
  }

  .cella .sez a:hover {
    color: var(--yellow); border-color: var(--yellow);
  }

  .cella .solo-qui {
    margin-top: 7px; font-size: 0.8rem; color: #666; letter-spacing: 0.04em;
  }
}

body.page-carta {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .subnav {
    display: flex;
        gap: 24px;
        padding: 14px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
        flex-wrap: wrap;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.03em;
        padding-bottom: 4px;
  }

  .subsubnav {
    display: flex;
        gap: 28px;
        padding: 12px 32px;
        background: #030303;
        border-bottom: 1px solid #161616;
        flex-wrap: wrap;
  }

  .subsubnav a {
    color: #777;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        letter-spacing: 0.03em;
        padding-bottom: 3px;
        cursor: pointer;
  }

  .subsubnav a.active {
    color: var(--yellow);
        border-bottom: 2px solid var(--yellow);
  }

  .segnaposto {
    width: 100%;
        min-height: 300px;
        border: 2px dashed #3a3a3a;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #5a5a5a;
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        text-align: center;
        padding: 24px;
  }

  .in-attesa {
    max-width: 1100px;
        margin: 0 auto;
        padding: 40px 24px 80px;
        color: #777;
        font-size: 1.05rem;
        line-height: 1.8;
  }
}

body.page-percorso {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .artist-photo {
    width: 100%;
        max-height: 70vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        background: #000;
  }

  .artist-photo img {
    width: auto;
        height: 100%;
        max-height: 70vh;
        object-fit: cover;
        display: block;
  }

  @media (max-width: 600px) {
    .ricerca-figure-row { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .img-placeholder-row { grid-template-columns: 1fr; }
  }

  .subnav {
    display: flex;
        gap: 28px;
        padding: 16px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.04em;
        font-family: 'Century Gothic', 'Poppins', sans-serif;
        padding-bottom: 4px;
  }
}

body.page-pitture {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .intro-figure {
    display: flex; gap: 26px; align-items: flex-end; margin: 32px 0 28px;
  }

  .intro-figure figure {
    margin: 0;
  }

  .intro-figure figure.balena {
    flex: 149 1 0;
  }

  .intro-figure figure.introspezioni {
    flex: 220 1 0;
  }

  .intro-figure img {
    width: 100%; height: auto; display: block; background: #000;
  }

  .intro-figure figcaption {
    color: #9b8b52; font-size: 0.86rem; line-height: 1.5; margin-top: 10px;
  }

  @media (max-width: 760px) {
    .intro-figure { display: block; }
        .intro-figure figure { margin-bottom: 26px; }
  }

  .subnav {
    display: flex;
        gap: 24px;
        padding: 14px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
        flex-wrap: wrap;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.03em;
        padding-bottom: 4px;
  }
}

body.page-sculture {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .subnav {
    display: flex;
        gap: 24px;
        padding: 14px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
        flex-wrap: wrap;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.03em;
        padding-bottom: 4px;
  }

  .intro h3 {
    color: var(--yellow); font-weight: 400; font-size: 22px; letter-spacing: 4px; margin: 38px 0 20px;
  }

  .video-wrap {
    position: relative; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; margin: 34px 0 10px; background: #000;
  }

  .video-wrap iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  }

  .intro p.video-caption {
    color: #9b8b52; font-size: 0.9rem; line-height: 1.5; margin: 0 0 18px;
  }
}

body.page-tecnica {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .subnav {
    display: flex;
        gap: 24px;
        padding: 14px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
        flex-wrap: wrap;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.03em;
        padding-bottom: 4px;
  }
}

body.page-testi {
  margin: 0;
      background: var(--black);
      font-family: 'Century Gothic', 'Poppins', sans-serif;
      color: #eee;

  nav a {
    color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; padding-bottom: 4px; white-space: nowrap;
  }

  .lang {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding-left: 20px; border-left: 1px solid #333; flex-shrink: 0; cursor: pointer;
  }

  .artist-photo {
    width: 100%;
        max-height: 70vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        background: #000;
  }

  .artist-photo img {
    width: auto;
        height: 100%;
        max-height: 70vh;
        object-fit: cover;
        display: block;
  }

  @media (max-width: 600px) {
    .ricerca-figure-row { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .img-placeholder-row { grid-template-columns: 1fr; }
  }

  .subnav {
    display: flex;
        gap: 28px;
        padding: 16px 32px;
        background: #050505;
        border-bottom: 1px solid #1c1c1c;
  }

  .subnav a {
    color: #999;
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        letter-spacing: 0.04em;
        font-family: 'Century Gothic', 'Poppins', sans-serif;
        padding-bottom: 4px;
  }

  .testi-wrap {
    max-width: 1000px; margin: 0 auto; padding: 46px 32px 90px;
  }

  .testo {
    display: none;
  }

  .testo.active {
    display: block;
  }

  .testo article + article {
    margin-top: 64px;
        padding-top: 54px;
        border-top: 1px solid #1c1c1c;
  }

  .testo h2 {
    color: var(--yellow);
        font-weight: 400;
        font-size: 27px;
        letter-spacing: 3px;
        margin: 0 0 30px;
  }

  .testo .attribuzione {
    color: #999;
        font-size: 0.95rem;
        letter-spacing: 0.04em;
        margin: 0 0 30px;
        text-transform: uppercase;
  }

  .testo p {
    line-height: 1.85;
        font-size: 1.33rem;
        color: #ddd;
        margin: 0 0 26px;
        text-align: justify;
  }

  .testo .firma {
    text-align: right;
        color: #f2d879;
        font-size: 1.2rem;
        margin: 34px 0 0;
  }

  .saggio-figura {
    margin: 34px 0; text-align: center;
  }

  .saggio-figura img {
    max-width: 100%; max-height: 620px; display: block; margin: 0 auto;
  }

  .saggio-figura figcaption {
    margin-top: 10px;
        font-size: 0.85rem;
        color: #999;
        font-style: italic;
        letter-spacing: 0.02em;
  }

  .testo .sottotitolo {
    color: #bbb;
        font-size: 1.05rem;
        line-height: 1.7;
        font-style: italic;
        margin: -18px 0 22px;
  }
}

/* Main menu collapses to a hamburger below this width. Kept last so it
   overrides the page-specific nav link styles above. */
@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    overflow: visible;
    padding: 12px 18px;
    gap: 12px;
  }

  .site-header > .logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header > nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-shrink: 1;
    padding: 6px 0 4px;
    border-top: 1px solid #1c1c1c;
  }

  body.nav-open .site-header > nav {
    display: flex;
  }

  body .site-header > nav a {
    white-space: normal;
    padding: 14px 2px;
    border-bottom: 1px solid #1c1c1c;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  body .site-header > nav a.active {
    border-bottom-color: var(--yellow);
  }

  body .site-header .lang {
    border-left: none;
    padding-left: 0;
    font-size: 14px;
  }
}
