/* EFESTO TECH — pagine interne (stessa grafica, niente parallax) — v2 */

/* ── greca statica v2: tessera con margine interno, spessore uniforme ── */
.meander {
  height: 19px;
  margin: 3rem auto;
  width: min(1100px, 88vw);
  opacity: .9;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='19' viewBox='0 0 20 19'><path d='M0,17 L0,2 L15,2 L15,12 L5,12 L5,7 L10,7 L10,17 L20,17 L20,2' fill='none' stroke='%23800F11' stroke-width='2'/></svg>") repeat-x;
  background-size: 20px 19px;
}

.meander.gray {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='19' viewBox='0 0 20 19'><path d='M0,17 L0,2 L15,2 L15,12 L5,12 L5,7 L10,7 L10,17 L20,17 L20,2' fill='none' stroke='%2352514A' stroke-width='2'/></svg>");
}

/* ── testata di pagina ── */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 11rem 6vw 4rem;
  text-align: center;
}

.ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
  font-family: var(--greek);
  font-size: clamp(5rem, 19vw, 15rem);
  letter-spacing: .08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(161, 158, 152, .4);
  opacity: .3;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.page-head > *:not(.ghost) {
  animation: rise .8s var(--ease) both;
}

.page-head > *:nth-child(3) { animation-delay: .12s; }
.page-head > *:nth-child(4) { animation-delay: .22s; }

.page-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: .02em;
}

.meta {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.lead {
  max-width: 52ch;
  margin: 1.2rem auto 0;
  color: var(--fumo);
}

/* ── prosa ── */
.prose {
  max-width: 70ch;
  margin: 0 auto;
  padding: 1rem 6vw 5rem;
  color: var(--testo);
}

.prose > * + * {
  margin-top: 1.2rem;
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--calce);
  margin-top: 2.8rem;
  border-left: 3px solid var(--brace);
  padding-left: .9rem;
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--calce);
  margin-top: 2rem;
}

.prose ul, .prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-top: .5rem;
}

.prose li::marker {
  color: var(--brace);
}

.prose blockquote {
  border-left: 2px solid var(--ossido);
  padding: .4rem 0 .4rem 1.4rem;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--calce);
}

.prose figure {
  margin: 2.6rem 0;
}

.prose figure img {
  width: 100%;
  border: 1px solid var(--ferro);
}

.prose figcaption {
  margin-top: .6rem;
}

.prose pre {
  background: var(--ferro);
  border: 1px solid var(--acciaio);
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-size: .83rem;
  line-height: 1.6;
  color: var(--scintilla);
  overflow: auto;
}

.scheda {
  border: 1px solid var(--acciaio);
  background: var(--grafite);
  padding: 1.4rem 1.6rem;
  margin: 2.4rem 0;
}

.scheda h3 {
  margin: 0 0 1rem;
}

.scheda dl {
  display: grid;
  gap: .6rem;
}

.scheda dl div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px dashed rgba(128, 126, 119, .35);
  padding-bottom: .5rem;
}

.scheda dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fumo);
  padding-top: .15rem;
}

.scheda dd {
  color: var(--calce);
  text-align: right;
}

/* ── navigazione tra articoli ── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ferro);
  border-block: 1px solid var(--ferro);
  margin-bottom: 5rem;
}

.post-nav a {
  background: var(--carbone);
  border: 0;
  padding: 1.6rem 2rem;
  display: grid;
  gap: .4rem;
  transition: background .3s;
}

.post-nav a:hover {
  background: var(--grafite);
}

.post-nav a span {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--calce);
}

.post-nav .next {
  text-align: right;
}

@media(max-width:700px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}

/* ── archivio lavori: filtri, griglia, paginazione ── */
.filters {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.2rem 0 3rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}

.chips li, .chips a {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--calce);
  border: 1px solid var(--acciaio);
  padding: .5rem .9rem;
  transition: .3s;
}

.chips a {
  border: 0;
  display: block;
}

.chips li:hover, .chips li.on {
  border-color: var(--brace);
  color: var(--scintilla);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.card {
  background: var(--ferro);
  border: 1px solid rgba(236, 236, 236, .08);
  display: grid;
  transition: transform .35s var(--ease), border-color .35s;
  animation: rise .7s var(--ease) both;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--brace);
}

.card img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  filter: saturate(.8) contrast(1.08);
}

.card-body {
  padding: 1.2rem 1.2rem 1.4rem;
  display: grid;
  gap: .5rem;
  justify-items: start;
}

.card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.card h3 a {
  border: 0;
}

.card p {
  color: var(--fumo);
  font-size: .92rem;
}

.card .arrow {
  color: var(--brace);
  border: 0;
}

.grid .card:nth-child(2) { animation-delay: .08s; }
.grid .card:nth-child(3) { animation-delay: .16s; }
.grid .card:nth-child(4) { animation-delay: .24s; }
.grid .card:nth-child(5) { animation-delay: .32s; }
.grid .card:nth-child(6) { animation-delay: .4s; }

.pager {
  display: flex;
  gap: .8rem;
  justify-content: center;
  margin: 0 0 6rem;
}

.pager a, .pager span {
  font-family: var(--mono);
  font-size: .75rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acciaio);
  color: var(--fumo);
}

.pager .on {
  border-color: var(--brace);
  color: var(--calce);
  background: rgba(212, 80, 42, .12);
}

/* ── archivio blog: evidenza + righe editoriali ── */
.pill {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--scintilla);
  border: 1px solid var(--brace);
  padding: .35rem .7rem;
  display: inline-block;
}

.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ferro);
  border: 1px solid rgba(236, 236, 236, .08);
  margin: 2.5rem 0 4rem;
  animation: rise .8s var(--ease) both;
}

.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
  filter: saturate(.8) contrast(1.08);
}

.featured .fb {
  padding: 2rem 2.2rem 2.2rem;
  display: grid;
  gap: .9rem;
  justify-items: start;
  align-content: start;
}

.featured h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  line-height: 1.15;
}

.featured h2 a {
  border: 0;
}

.featured h2 a:hover {
  color: var(--scintilla);
}

.featured p {
  color: var(--fumo);
}

.blog-list {
  border-top: 1px solid var(--ferro);
  margin-bottom: 4rem;
}

.post-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--ferro);
  transition: .35s var(--ease);
  animation: rise .7s var(--ease) both;
}

.post-row:hover {
  border-color: var(--brace);
  background: var(--grafite);
  padding-left: 1.6rem;
}

.post-row:nth-child(2) { animation-delay: .08s; }
.post-row:nth-child(3) { animation-delay: .16s; }
.post-row:nth-child(4) { animation-delay: .24s; }
.post-row:nth-child(5) { animation-delay: .32s; }

.post-date {
  display: grid;
  gap: .3rem;
  justify-items: start;
  padding-top: .3rem;
}

.post-date b {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--calce);
}

.post-body {
  display: grid;
  gap: .6rem;
  justify-items: start;
}

.post-body h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.post-body h3 a {
  border: 0;
}

.post-body h3 a:hover {
  color: var(--scintilla);
}

.post-body p {
  color: var(--fumo);
  font-size: .95rem;
  max-width: 60ch;
}

@media(max-width:860px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .post-row {
    grid-template-columns: 70px 1fr;
    gap: 1.2rem;
  }
  .post-date b {
    font-size: 1.6rem;
  }
}

/* ── 404 forgiata ── */
.err {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.4rem;
  padding: 8rem 6vw 4rem;
}

.err::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 36%;
  width: min(72vw, 640px);
  height: min(72vw, 640px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(212, 80, 42, .3), transparent 65%);
  animation: forge 3s ease-in-out infinite alternate;
}

#errFx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.err > * {
  position: relative;
  z-index: 1;
}

.err .num {
  font-family: var(--display);
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 1;
  color: var(--ossido);
  -webkit-text-stroke: 1.5px var(--brace);
  animation: numglow 2.6s ease-in-out infinite alternate;
}

@keyframes numglow {
  from { filter: drop-shadow(0 0 12px rgba(212, 80, 42, .35)); }
  to { filter: drop-shadow(0 0 36px rgba(212, 80, 42, .8)); }
}

.err p {
  color: var(--fumo);
  max-width: 44ch;
  margin-inline: auto;
}
