/* version 5 */
/* Styles for the pages generated by tools/genera_pagine.py
   (blog.html, blog/*.html, exhibitions.html, artworks/*.html).
   Bump the version number above when you change this file, then rerun the script. */

.gp-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}

.gp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.gp-breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--text-muted); }
.gp-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.gp-breadcrumb a:hover { color: var(--accent-gold); }
.gp-breadcrumb [aria-current] { color: var(--accent-gold); }

.gp-main h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0.6rem 0 1.2rem;
  color: var(--text-primary);
}
.gp-lead { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.8rem; }
.gp-muted { color: var(--text-muted); font-size: 0.92rem; }
.gp-page-header { max-width: 780px; margin-bottom: 3.5rem; }
.gp-page-header-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Artwork page */
.gp-artwork {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.gp-artwork-media { min-width: 0; }
.gp-viewer { display: flex; flex-direction: column; align-items: center; }
.gp-viewer-wrap {
  max-height: none;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  background: #000;
}
.gp-artwork-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 64vh;
  object-fit: contain;
}
.gp-viewer-caption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; text-align: center; min-height: 1.3em; }
.gp-thumbs { justify-content: center; flex-wrap: wrap; overflow: visible; margin-top: 0.6rem; }
.gp-thumbs .dialog-thumb-btn { width: 76px; height: 76px; }
.gp-artwork-info { position: sticky; top: 7rem; }
.gp-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.4rem;
  padding: 1.5rem 0;
  margin: 0 0 1.8rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}
.gp-specs dt { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.15rem; }
.gp-specs dd { color: var(--text-primary); margin: 0; }
.gp-specs a, .gp-post-body a, .gp-byline a, .gp-muted a { color: var(--accent-gold); }
.gp-cta { display: block; text-align: center; }

.gp-prevnext { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; font-size: 0.95rem; }
.gp-prevnext a { color: var(--text-secondary); text-decoration: none; }
.gp-prevnext a:hover { color: var(--accent-gold); }
.gp-next { margin-left: auto; text-align: right; }

.gp-related { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--border-subtle); }
.gp-related h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1.5rem; }
.gp-related-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.gp-related-grid a { display: block; color: var(--text-secondary); text-decoration: none; }
.gp-related-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 0.6rem; }
.gp-related-grid a:hover span { color: var(--accent-gold); }

/* Journal */
.gp-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.gp-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.gp-card:hover { border-color: var(--border-active); transform: translateY(-6px); }
.gp-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #000; border-bottom: 1px solid var(--border-subtle); }
.gp-card-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gp-card:hover .gp-card-img { transform: scale(1.04); }
.gp-card-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-heading);
  font-size: 9rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.55;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.16), rgba(0, 0, 0, 0) 62%), #07070a;
}
.gp-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.8rem 2rem 2.2rem; }
.gp-card h2 { font-family: var(--font-heading); font-size: 1.45rem; line-height: 1.3; margin: 0.6rem 0 0.9rem; }
.gp-card h2 a { color: var(--text-primary); text-decoration: none; }
.gp-card h2 a:hover { color: var(--accent-gold); }
.gp-card p { color: var(--text-secondary); line-height: 1.7; flex-grow: 1; margin-bottom: 1.6rem; }
.gp-card-btn { align-self: flex-start; }

.gp-post { max-width: 760px; margin: 0 auto; }
.gp-post-header { margin-bottom: 2rem; }
.gp-byline { color: var(--text-muted); }
.gp-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
}
.gp-post-body { font-size: 1.1rem; line-height: 1.9; color: var(--text-secondary); }
.gp-post-body p { margin-bottom: 1.4rem; }
.gp-post-body h2, .gp-post-body h3 { font-family: var(--font-heading); color: var(--text-primary); margin: 2.2rem 0 1rem; }
.gp-post-body strong { color: var(--text-primary); }
.gp-post-body img, .gp-post-body video, .gp-post-body iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.gp-video { margin: 1rem 0 2rem; }

/* Exhibitions */
.gp-exhibitions { display: grid; gap: 3.5rem; }
.gp-exhibition { padding-bottom: 3.5rem; border-bottom: 1px solid var(--border-subtle); scroll-margin-top: 7rem; }
.gp-exhibition h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.4rem 0; color: var(--text-primary); }
.gp-date { color: var(--accent-gold); font-family: var(--font-mono); font-size: 0.88rem; margin-bottom: 1rem; }
.gp-exhibition > p { color: var(--text-secondary); line-height: 1.75; max-width: 820px; margin-bottom: 1.2rem; }
.gp-exh-gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gp-exh-gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); }

@media (max-width: 860px) {
  .gp-main { padding-top: 6.5rem; }
  .gp-artwork { grid-template-columns: 1fr; gap: 2rem; }
  .gp-artwork-info { position: static; }
}

/* Italian pages (/it/) */
.nav-lang .nav-link { font-family: var(--font-mono); letter-spacing: 0.12em; color: var(--accent-gold); }
.gp-it-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.gp-it-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.gp-it-section { margin: 4rem 0; max-width: 860px; }
.gp-it-section h2, .gp-it-collection h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0.4rem 0 1.2rem; color: var(--text-primary); }
.gp-it-section p, .gp-it-collection p { color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.1rem; font-size: 1.05rem; }
.gp-it-section strong { color: var(--text-primary); }
.gp-it-sub { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--accent-gold); margin-bottom: 1.4rem; }
.gp-it-quote { border-left: 3px solid var(--accent-gold); background: rgba(212, 175, 55, 0.06); padding: 1rem 1.4rem; margin: 0 0 1.6rem; font-style: italic; color: var(--text-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.gp-it-distances { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.gp-it-distance { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.8rem; }
.gp-it-distance h3, .gp-it-faq h3 { font-family: var(--font-heading); font-size: 1.35rem; color: var(--accent-gold); margin: 0.6rem 0; }
.gp-it-block { padding: 2.5rem 0; border-bottom: 1px solid var(--border-subtle); }
.gp-it-faq h3 { margin-top: 2rem; }
.gp-it-faq a, .gp-it-section a:not(.btn-secondary):not(.btn-primary), .gp-post-body a { color: var(--accent-gold); }
.gp-it-sign { text-align: center; font-family: var(--font-heading); font-size: 1.6rem; color: var(--text-primary); padding: 3rem 0; border-top: 1px solid var(--border-subtle); }
.gp-it-sign span { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); }
.gp-it-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 2rem 0; }
.gp-it-links a { color: var(--accent-gold); text-decoration: none; }
.gp-two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gp-it-collection { padding: 4rem 0; border-top: 1px solid var(--border-subtle); scroll-margin-top: 6rem; max-width: 1180px; }
.gp-it-collection > p { max-width: 860px; }
.gp-it-collection h3 { font-family: var(--font-heading); font-size: 1.3rem; margin: 2.2rem 0 1.2rem; color: var(--text-primary); }
.gp-it-works small { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 0.2rem; }
.gp-statement .gp-post-body blockquote { font-family: var(--font-heading); font-style: italic; font-size: 1.5rem; color: var(--accent-gold); margin: 2rem 0; }
.gp-statement-big { font-family: var(--font-heading); font-size: 1.6rem; color: var(--text-primary); line-height: 1.4; }
@media (max-width: 760px) { .gp-it-distances { grid-template-columns: 1fr; } }

/* Collection pages (collections/<id>.html) */
.gp-collection-text { margin-top: 2.5rem; max-width: 820px; }
.gp-quote { margin: 0.5rem 0 1.2rem; padding-left: 1rem; border-left: 2px solid var(--accent-gold); color: var(--text-primary); font-style: italic; }
.gp-collection-links { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gp-collection-links a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; }
.gp-collection-links a:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
