/*
Theme Name: Luca Fiore
Theme URI: https://luca-fiore.com
Author: Luca Fiore
Version: 1.1
*/

/* ============================================================
   VARIABILI
   ============================================================ */
:root {
  --blu:    #6A5C4E;
  --nero:   #000000;
  --bianco: #ffffff;
  --testo:  #1A1A1A;
  --muted:  #999999;
  --bordo:  #000000;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bianco);
  color: var(--nero);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.site {
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1.5px solid var(--bordo);
  border-right: 1.5px solid var(--bordo);
  min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  border-bottom: 1.5px solid var(--bordo);
}

.site-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.site-brand {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--blu);
  text-align: justify;
  text-align-last: justify;
  width: 100%;
}

.site-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: #333;
  letter-spacing: .01em;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: stretch;
}

.site-nav a {
  font-size: 12px;
  letter-spacing: .05em;
  font-weight: 400;
  padding: 7px 16px;
  border-left: 1px solid var(--bordo);
  color: var(--nero);
  transition: background .15s, color .15s;
}

.site-nav a:hover,
.site-nav a.current {
  background: var(--nero);
  color: var(--bianco);
}

.site-nav a.newsletter {
  background: var(--blu);
  color: var(--bianco);
  border-left-color: var(--blu);
}

.site-nav a.newsletter:hover { background: var(--nero); }

/* ============================================================
   HOMEPAGE — FEATURED
   ============================================================ */
.featured-head {
  padding: 28px 36px 24px;
  border-bottom: 1.5px solid var(--bordo);
}

.f-meta {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
  margin-bottom: 14px;
}

.f-meta a { color: var(--blu); }

.f-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--nero);
  max-width: 860px;
}

.f-title a { color: var(--nero); }
.f-title a:hover { opacity: .7; }

.featured-img {
  position: relative;
  border-bottom: 1.5px solid var(--bordo);
}

.featured-img img { width: 100%; height: auto; display: block; }

.featured-img .no-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #0A0A0A;
}

.featured-img-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
}

.f-credit {
  font-size: 9px;
  color: rgba(255,255,255,.3);
  letter-spacing: .07em;
  font-weight: 300;
}

.featured-below {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--bordo);
}

.f-cta {
  font-family: 'Source Serif 4', serif;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0;
}

.f-cta:hover { color: var(--nero); }

/* ============================================================
   HOMEPAGE — GRIGLIA 3 ARTICOLI
   ============================================================ */
.articles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1.5px solid var(--bordo);
}

.art-item { border-right: 1.5px solid var(--bordo); }
.art-item:last-child { border-right: none; }

.art-item a {
  display: block;
  padding: 20px 24px 26px;
  height: 100%;
}

.art-item:hover { background: #faf8f6; }

.art-num {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #e0e0e0;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.art-cat {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.art-outlet {
  font-family: 'Source Serif 4', serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.art-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--nero);
}

.art-date {
  font-family: 'Source Serif 4', serif;
  font-size: 10px;
  font-style: italic;
  color: #bbb;
  font-weight: 400;
  margin-top: 10px;
}

.all-writing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 36px;
  border-bottom: 1.5px solid var(--bordo);
}

.all-writing-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

.all-writing-link {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blu);
  border-bottom: 1px solid var(--blu);
  padding-bottom: 1px;
}

.all-writing-link:hover { opacity: .7; }

/* ============================================================
   HOMEPAGE — ABOUT + NEWSLETTER
   ============================================================ */
.home-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--bordo);
}

.about-col {
  padding: 36px;
  border-right: 1.5px solid var(--bordo);
}

.col-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
  margin-bottom: 16px;
  display: block;
}

.about-text {
  font-size: 13px;
  line-height: 1.72;
  color: #333;
  font-weight: 300;
  margin-bottom: 20px;
}

.about-link {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
  border-bottom: 1px solid var(--blu);
  padding-bottom: 1px;
}

.nl-col {
  background: #E8E0D5;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nl-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 48px;
  font-weight: 400;
  line-height: .88;
  color: #6A5C4E;
  display: block;
  margin-bottom: 16px;
}

.nl-sub {
  font-size: 12px;
  color: #7A6B5A;
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 24px;
  display: block;
}

.nl-url {
  font-size: 10px;
  color: #9A8B7C;
  letter-spacing: .06em;
  margin-bottom: 10px;
  display: block;
}

.nl-btn {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #E8E0D5;
  background: #6A5C4E;
  padding: 14px 0;
  width: 100%;
  display: block;
  text-align: center;
}

.nl-btn:hover { background: #5A4C3E; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1.5px solid var(--bordo);
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--nero);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

.footer-links a:hover { color: var(--nero); }

/* ============================================================
   SECTION BAR — usata in home, about, video, 404
   ============================================================ */
.section-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1.5px solid var(--bordo);
}

.section-tag {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 11px 36px;
  border-right: 1.5px solid var(--bordo);
  color: var(--blu);
}

/* ============================================================
   WRITING ARCHIVE — griglia post (home.php)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.post-card {
  border-right: 1.5px solid var(--bordo);
  border-bottom: 1.5px solid var(--bordo);
}

.post-card:nth-child(3n) { border-right: none; }
.post-card:nth-last-child(-n+3) { border-bottom: none; }
.post-card a { display: block; }

.post-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #0A0A0A;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.post-card-image .no-image { width: 100%; height: 100%; background: #111; }

.post-card-body {
  padding: 14px 18px 20px;
  border-top: 1.5px solid var(--bordo);
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}

.post-card-category {
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
}

.post-card-date {
  font-size: 10px;
  color: #bbb;
  font-weight: 300;
}

.post-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--nero);
  transition: opacity .15s;
}

.post-card:hover .post-card-title { opacity: .6; }

/* ============================================================
.archive-filters {
  display: flex;
  align-items: stretch;
  border-bottom: 1.5px solid var(--bordo);
  overflow-x: auto;
}

.filter-link {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 11px 20px;
  border-right: 1px solid var(--bordo);
  color: var(--nero);
  white-space: nowrap;
}

.filter-link:hover,
.filter-link.active {
  background: var(--nero);
  color: var(--bianco);
}

.list-item {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  align-items: center;
  padding: 14px 36px;
  border-bottom: 1px solid #e8e8e8;
  transition: background .12s;
}

.list-item:hover { background: #f9f9f9; }

.list-date {
  font-size: 11px;
  color: #bbb;
  font-weight: 300;
  letter-spacing: .03em;
}

.list-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nero);
  padding-right: 24px;
}

.list-category {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blu);
  font-weight: 500;
  text-align: right;
}

.archive-pagination {
  border-top: 1.5px solid var(--bordo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
}

.page-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

.pagination { display: flex; }

.pagination a,
.pagination span {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 7px 14px;
  border: 1px solid var(--bordo);
  border-left: none;
  color: var(--nero);
}

.pagination a:first-child,
.pagination span:first-child { border-left: 1px solid var(--bordo); }

.pagination .current,
.pagination a:hover {
  background: var(--blu);
  color: var(--bianco);
  border-color: var(--blu);
}

/* ============================================================
   SINGOLO ARTICOLO — HEADER
   ============================================================ */
.article-head {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 36px 36px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.article-category {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
}

.article-meta-sep {
  width: 1px;
  height: 12px;
  background: #ccc;
}

.article-date,
.article-readtime {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.article-published-in {
  font-family: 'Source Serif 4', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}

.article-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--nero);
  margin-bottom: 18px;
}

/* ============================================================
   SINGOLO ARTICOLO — IMMAGINE HERO
   ============================================================ */
.article-hero {
  border-top: 1.5px solid var(--bordo);
  border-bottom: 1.5px solid var(--bordo);
}

.article-hero img { width: 100%; height: auto; display: block; }

.article-hero-credit {
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
  padding: 8px 36px;
  border-bottom: 1px solid #eee;
}

/* ============================================================
   SINGOLO ARTICOLO — CORPO TESTO
   ============================================================ */
.article-two-col {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0 56px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}

.article-main-col { min-width: 0; }

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 44px 36px 48px;
}

.article-body p {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--testo);
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--nero);
  margin: 48px 0 20px;
}

.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nero);
  margin: 36px 0 16px;
}

.article-body blockquote {
  border-left: 3px solid var(--blu);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
}

.article-body blockquote p {
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
  color: var(--nero);
  margin: 0;
}

.article-body blockquote p::first-letter { all: unset; }

.article-body blockquote cite {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  font-weight: 300;
  margin-top: 10px;
  font-family: 'Syne', sans-serif;
}

.article-body figure { margin: 48px -36px; }
.article-body figure img { width: 100%; height: auto; }

.article-body figcaption {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  padding: 10px 36px 0;
  font-family: 'Source Serif 4', serif;
  line-height: 1.5;
}

.article-body em { font-style: italic; }
.article-body strong { font-weight: 700; }

/* Drop cap */
.drop-cap {
  font-family: 'Syne', sans-serif;
  font-size: 62px;
  font-weight: 800;
  line-height: .82;
  float: left;
  margin-right: 8px;
  margin-top: 6px;
  color: var(--blu);
}

/* ============================================================
   SINGOLO ARTICOLO — SIDEBAR
   ============================================================ */
.article-sidebar {
  position: sticky;
  top: 80px;
  padding-top: 4px;
}

.sidebar-label {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
  font-family: 'Syne', sans-serif;
}

.sidebar-item {
  display: block;
  border-top: 0.5px solid var(--bordo);
  padding: 12px 0;
  color: inherit;
}

.sidebar-item:hover .sidebar-item-title { opacity: 0.6; }

.sidebar-item-cat {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  margin-bottom: 4px;
}

.sidebar-item-title {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nero);
  margin-bottom: 4px;
  transition: opacity .2s;
}

.sidebar-item-date {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
  font-family: 'Source Serif 4', serif;
}

/* ============================================================
   SINGOLO ARTICOLO — TAG E NAVIGAZIONE
   ============================================================ */
.article-tags {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 36px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
  border: 1px solid var(--blu);
  padding: 5px 12px;
}

.article-tag:hover {
  background: var(--blu);
  color: var(--bianco);
}

.article-nav {
  border-top: 1.5px solid var(--bordo);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.nav-prev,
.nav-next { padding: 24px 36px; }

.nav-prev { border-right: 1.5px solid var(--bordo); }
.nav-next { text-align: right; }

.nav-label {
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 8px;
  display: block;
}

.nav-arrow { color: var(--blu); }

.nav-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nero);
  transition: opacity .15s;
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title { opacity: .6; }

/* ============================================================
   PAGINA ABOUT
   ============================================================ */
.about-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-bottom: 1.5px solid var(--bordo);
  min-height: 320px;
}

.about-portrait {
  position: relative;
  overflow: hidden;
  background: #1a1612;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait-credit-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-bottom: 1.5px solid var(--bordo);
}

.portrait-credit {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  padding: 8px 0;
  text-align: right;
}

.about-intro {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-left: 1.5px solid var(--bordo);
}

.about-role {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
}

.about-bio p {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--testo);
  margin-bottom: 16px;
}

.about-bio p:last-child { margin-bottom: 0; }

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--bordo);
}

.about-cols .about-col {
  padding: 32px 36px;
  border-right: 1.5px solid var(--bordo);
}

.about-cols .about-col:last-child { border-right: none; }

.about-cols .col-label {
  font-size: 9px;
  letter-spacing: .24em;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}

.sec-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f2f2f2;
}

.sec-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nero);
  margin-bottom: 3px;
}

.sec-sub {
  font-size: 12px;
  color: #666;
  font-weight: 300;
  line-height: 1.5;
}

.sec-sub a { color: var(--blu); font-style: italic; }

.about-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 36px;
  border-bottom: 1.5px solid var(--bordo);
}

.contact-label {
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
}

.contact-links { display: flex; }

.contact-link {
  font-size: 11.5px;
  padding: 7px 18px;
  border-left: 1px solid var(--bordo);
  color: var(--nero);
  transition: background .12s, color .12s;
}

.contact-link:first-child { border-left: none; }
.contact-link:hover { background: var(--nero); color: var(--bianco); }

.about-curatorial {
  padding: 32px 36px;
  border-bottom: 1.5px solid var(--bordo);
}

.about-curatorial .col-label { margin-bottom: 20px; }

.curatorial-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.curatorial-list li {
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--nero);
  letter-spacing: -.01em;
}

.curatorial-list li:last-child { border-bottom: none; }

.curatorial-list a {
  color: var(--nero);
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
}

.curatorial-list a:hover { border-bottom-color: var(--blu); color: var(--blu); }

.cur-venue {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #444;
  text-align: right;
  letter-spacing: .02em;
}

.cur-note {
  grid-column: 1 / -1;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: #888;
  font-style: italic;
  margin-top: -8px;
  padding-bottom: 4px;
}

/* ============================================================
   PAGINA VIDEO
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--bordo);
}

.video-item {
  border-right: 1.5px solid var(--bordo);
  border-bottom: 1.5px solid var(--bordo);
}

.video-item:nth-child(2n) { border-right: none; }
.video-item:nth-last-child(-n+2) { border-bottom: none; }

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

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

.video-body {
  padding: 16px 22px 20px;
  border-top: 1.5px solid var(--bordo);
}

.video-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--nero);
  margin-bottom: 6px;
}

.video-title em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
}

.video-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: .03em;
}

/* ============================================================
   PAGINA 404
   ============================================================ */
.not-found {
  padding: 80px 36px 100px;
  max-width: 600px;
}

.not-found-number {
  font-family: 'Syne', sans-serif;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: #e8e8e8;
  margin-bottom: 8px;
}

.not-found-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--nero);
  margin-bottom: 16px;
}

.not-found-text {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
}

.not-found-links { display: flex; }

.not-found-link {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blu);
  padding: 10px 20px;
  border: 1px solid var(--blu);
  border-left: none;
}

.not-found-link:first-child { border-left: 1px solid var(--blu); }
.not-found-link:hover { background: var(--blu); color: var(--bianco); }

/* ============================================================
   UTILITY
   ============================================================ */

/* Scroll reveal */
.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.will-reveal.revealed { opacity: 1; transform: translateY(0); }

/* Featured fallback se JS non gira */
@keyframes featuredFallback { to { opacity: 1; } }
.featured-loading { animation: featuredFallback 0s 0.8s forwards; }

/* Nasconde byline automatici di WordPress/Jetpack */
.entry-meta, .byline, .author-name, p.by-author { display: none !important; }
.sharedaddy, .sd-sharing-enabled, .sd-like-enabled,
.jp-relatedposts-headline, .wpcnt, .sd-block.sd-like,
[class*="share-"], .post-shares { display: none !important; }

/* Elementi solo-stampa: nascosti su schermo */
.print-author, .print-name { display: none !important; }

/* ============================================================
   PROGRESS BAR E STICKY HEADER
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--blu);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

#sticky-article-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bianco);
  border-bottom: 1px solid var(--bordo);
  padding: 11px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

#sticky-article-header.sticky-visible { transform: translateY(0); opacity: 1; }

.sticky-article-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nero);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.sticky-article-back {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blu);
  white-space: nowrap;
}

.sticky-article-back:hover { opacity: .7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .articles-row { grid-template-columns: repeat(2, 1fr); }
  .art-item:nth-child(2n) { border-right: none; }
  .art-item:nth-child(1),
  .art-item:nth-child(2) { border-bottom: 1.5px solid var(--bordo); }
  .home-bottom { grid-template-columns: 1fr; }
  .about-col { border-right: none; border-bottom: 1.5px solid var(--bordo); }
  .list-item { grid-template-columns: 80px 1fr; }
  .list-category { display: none; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card:nth-child(3n) { border-right: 1.5px solid var(--bordo); }
  .post-card:nth-child(2n) { border-right: none; }
  .post-card:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--bordo); }
  .post-card:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 800px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-portrait { min-height: 260px; }
  .about-intro { border-left: none; border-top: 1.5px solid var(--bordo); padding: 28px 20px; }
  .about-cols { grid-template-columns: 1fr; }
  .about-cols .about-col { border-right: none; border-bottom: 1.5px solid var(--bordo); }
  .about-contact { flex-direction: column; gap: 14px; align-items: flex-start; padding: 20px; }
  .contact-link:first-child { border-left: 1px solid var(--bordo); }
  .contact-links { flex-wrap: wrap; }
  .video-grid { grid-template-columns: 1fr; }
  .video-item { border-right: none; }
  .video-item:nth-last-child(-n+2) { border-bottom: 1.5px solid var(--bordo); }
  .video-item:last-child { border-bottom: none; }
}

@media (max-width: 680px) {
  .site-tagline { display: none; }
  .site-header { padding: 12px 16px; align-items: center; }
  .site-brand { font-size: 18px; }
  .site-nav a { padding: 5px 10px; font-size: 10px; }
  .article-two-col { grid-template-columns: 1fr; }
  .article-sidebar { position: static; border-top: 1px solid var(--bordo); padding-top: 24px; margin-top: 8px; }
}

@media (max-width: 600px) {
  .featured-head { padding: 20px 16px; }
  .all-writing-bar { padding: 13px 16px; }
  .articles-row { grid-template-columns: 1fr; }
  .art-item { border-right: none; border-bottom: 1.5px solid var(--bordo); }
  .art-item:last-child { border-bottom: none; }
  .hero-body { padding: 20px 16px 24px; }
  .article-head { padding: 28px 16px 24px; }
  .article-body { padding: 32px 16px 40px; }
  .article-body figure { margin: 32px -16px; }
  .article-body figcaption { padding: 8px 16px 0; }
  .article-tags { padding: 8px 16px 32px; }
  .article-nav { grid-template-columns: 1fr; }
  .nav-prev { border-right: none; border-bottom: 1.5px solid var(--bordo); }
  .nav-next { text-align: left; }
  .drop-cap { font-size: 42px; margin-right: 5px; margin-top: 4px; }
  .curatorial-list li { grid-template-columns: 1fr; gap: 4px; }
  .cur-venue { text-align: left; }
  .list-item { grid-template-columns: 70px 1fr; padding: 12px 16px; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; padding: 16px; }
}

/* ============================================================
   STAMPA
   ============================================================ */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site { border: none; max-width: 100%; margin: 0; padding: 0; }
  .will-reveal { opacity: 1 !important; transform: none !important; }

  /* Elementi nascosti in stampa */
  .site-header, .site-nav, #sticky-article-header, #reading-progress,
  .article-nav, .home-bottom, .site-footer, .article-tags,
  .all-writing-bar, .articles-row, .archive-pagination,
  .nl-col, .article-sidebar, .article-nl-cta,
  .featured-below, .featured-img-bar { display: none !important; }

  /* Layout articolo */
  .article-two-col { display: block; padding: 0; }
  .article-main-col { width: 100%; }
  .print-author { display: block !important; font-size: 11pt; font-weight: 400; color: #444; margin-bottom: 16pt; font-style: italic; }
  .article-head { max-width: 100%; padding: 0 0 14pt; }
  .article-meta { font-size: 9pt; margin-bottom: 10pt; }
  .article-title { font-size: 22pt; line-height: 1.1; margin-bottom: 10pt; }
  .article-hero { border: none; }
  .article-hero img { width: 100%; max-width: 100%; height: auto; }
  .article-hero-credit { font-size: 8pt; color: #666; padding: 4pt 0; border: none; }
  .article-body { max-width: 100%; padding: 16pt 0; }
  .article-body p { font-size: 11pt; line-height: 1.65; margin-bottom: 12pt; orphans: 3; widows: 3; }
  .article-body blockquote { border-left: 2pt solid #000; padding-left: 14pt; margin: 16pt 0; }
  .article-body blockquote p { font-size: 12pt; font-style: italic; }
  .article-body figure { display: none; }
  .drop-cap { float: none; font-size: inherit; font-weight: 700; color: #000; line-height: inherit; margin: 0; }
  .article-footer-strip::after { content: "luca-fiore.com"; display: block; font-size: 8pt; color: #999; margin-top: 8pt; }

  /* Layout about */
  .print-name { display: block !important; font-size: 26pt; font-weight: 800; color: #6A5C4E; padding-bottom: 10pt; margin-bottom: 14pt; border-bottom: 1pt solid #000; }
  .about-hero { display: grid !important; grid-template-columns: 130pt 1fr; min-height: auto; border: none; margin-bottom: 16pt; }
  .about-portrait { background: none !important; display: block; }
  .about-portrait img { width: 100%; height: auto; max-height: 200pt; object-fit: contain; object-position: top; display: block; }
  .about-intro { padding: 0 0 0 16pt; border: none; display: block; }
  .about-role { font-size: 8pt; letter-spacing: .15em; margin-bottom: 8pt; display: block; }
  .about-bio p { font-size: 10pt; line-height: 1.55; margin-bottom: 8pt; }
  .about-cols { display: grid !important; grid-template-columns: 1fr 1fr; border: none; gap: 0 24pt; margin-bottom: 14pt; }
  .about-cols .about-col { padding: 0; border: none; display: block; }
  .col-label { font-size: 8pt; letter-spacing: .2em; border-bottom: 0.5pt solid #ccc; padding-bottom: 5pt; margin-bottom: 10pt; display: block; }
  .sec-item { border-bottom: 0.3pt solid #eee; padding-bottom: 7pt; margin-bottom: 7pt; display: block; }
  .sec-title { font-size: 10pt; font-weight: 700; margin-bottom: 2pt; display: block; }
  .sec-sub { font-size: 9pt; color: #555; display: block; }
  .about-curatorial { padding: 0; border: none; margin-bottom: 14pt; display: block; }
  .curatorial-list li { font-size: 10pt; padding: 5pt 0; border-bottom: 0.3pt solid #eee; display: grid; grid-template-columns: 1fr 120pt; }
  .cur-venue { font-size: 9pt; color: #555; text-align: right; }
  .cur-note { font-size: 8.5pt; color: #777; font-style: italic; grid-column: 1 / -1; }
  .about-contact { border: none; padding: 10pt 0 0; flex-wrap: wrap; }
  .contact-label { font-size: 8pt; letter-spacing: .2em; margin-right: 8pt; display: block; width: 100%; }
  .contact-link { font-size: 10pt; padding: 0; border: none; display: inline; }
  .contact-link::after { content: "   "; white-space: pre; }
  .about-contact::after { content: "luca-fiore.com"; display: block; font-size: 9pt; color: #999; margin-top: 6pt; width: 100%; }
}

/* ============================================================
   PAGINA CURATORIAL
   ============================================================ */
.cur-page-intro {
  padding: 32px 36px 0;
  border-bottom: 1.5px solid var(--bordo);
}

.cur-page-lead {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  padding-bottom: 24px;
}

.cur-page-list {
  border-bottom: 1.5px solid var(--bordo);
}

.cur-page-item {
  padding: 40px 36px;
  border-bottom: 1.5px solid var(--bordo);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 48px;
  align-items: start;
}

.cur-page-item:last-child { border-bottom: none; }

.cur-page-meta {
  padding-top: 6px;
}

.cur-page-year {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #e8e8e8;
  letter-spacing: -.02em;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.cur-page-venue {
  font-family: 'Source Serif 4', serif;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

.cur-page-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--nero);
  margin-bottom: 14px;
}

.cur-page-title a { color: var(--nero); }
.cur-page-title a:hover { opacity: .7; }

.cur-page-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--testo);
  margin-bottom: 16px;
}

.cur-page-desc em { font-style: italic; }

.cur-page-links { display: flex; gap: 16px; }

.cur-page-link {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--blu);
  border-bottom: 1px solid var(--blu);
  padding-bottom: 1px;
}

.cur-page-link:hover { opacity: .7; }

@media (max-width: 700px) {
  .cur-page-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 16px;
  }
  .cur-page-year { font-size: 20px; }
}

/* ============================================================
   PAGINA CURATORIAL — gallerie
   ============================================================ */
.cur-intro {
  padding: 24px 36px;
  border-bottom: 1.5px solid var(--bordo);
}

.cur-lead {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.cur-item {
  border-bottom: 1.5px solid var(--bordo);
}

.cur-item:last-child { border-bottom: none; }

.cur-item-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 48px;
  padding: 36px 36px 28px;
}

.cur-item-meta { padding-top: 4px; }

.cur-item-year {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #e8e8e8;
  letter-spacing: -.02em;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.cur-item-venue {
  font-family: 'Source Serif 4', serif;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

.cur-item-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--nero);
  margin-bottom: 14px;
}

.cur-item-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--testo);
  margin-bottom: 14px;
}

.cur-item-desc em { font-style: italic; }

.cur-item-link {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--blu);
  border-bottom: 1px solid var(--blu);
  padding-bottom: 1px;
}

.cur-item-link:hover { opacity: .7; }

/* Gallerie foto */
.cur-gallery {
  display: grid;
  border-top: 1.5px solid var(--bordo);
}

.cur-gallery-1 { grid-template-columns: 1fr; }
.cur-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.cur-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.cur-gallery-4 { grid-template-columns: repeat(4, 1fr); }

.cur-photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: #0A0A0A;
  overflow: hidden;
  border-right: 1.5px solid var(--bordo);
  cursor: zoom-in;
}

.cur-photo:last-child { border-right: none; }

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

.cur-gallery-empty {
  height: 0;
}

/* Responsive */
@media (max-width: 800px) {
  .cur-item-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 20px 20px;
  }
  .cur-item-year { font-size: 24px; }
  .cur-gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .cur-gallery-4 .cur-photo:nth-child(2) { border-right: none; }
  .cur-gallery-4 .cur-photo:nth-child(1),
  .cur-gallery-4 .cur-photo:nth-child(2) { border-bottom: 1.5px solid var(--bordo); }
}

@media (max-width: 500px) {
  .cur-gallery-3,
  .cur-gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .cur-gallery-2 { grid-template-columns: 1fr; }
  .cur-photo { border-right: none; border-bottom: 1.5px solid var(--bordo); }
  .cur-photo:last-child { border-bottom: none; }
}
