/*
Theme Name: Colangelo
Theme URI: https://colangelotattoo.it
Author: Colangelo Tattoo
Description: Tema di Colangelo Tattoo: apertura animata, angeli, corpi 3D e racconto "Il tuo angelo".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: colangelo
*/
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; }
a { color: inherit; }
/* ============================================================
 * Colangelo maison layer (brand book tokens)
 * ============================================================ */
:root {
  --ct-ink-bg: #141210;
  --ct-surface: #1C1916;
  --ct-ivory: #EDE6DA;
  --ct-paper: #9A9086;
  --ct-paper-soft: #B5AA9D;
  --ct-red: #9E3426;
  --ct-red-text: #C9594A;
  --ct-thread: #3A332D;
  --ct-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --ct-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ct-gutter: clamp(1.25rem, 5vw, 5rem);
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; background: var(--ct-ink-bg); }
.ct-body {
  margin: 0;
  background: var(--ct-ink-bg);
  color: var(--ct-ivory);
  font-family: var(--ct-sans);
  -webkit-font-smoothing: antialiased;
}
.ct-body ::selection { background: var(--ct-red); color: var(--ct-ivory); }
.ct-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* labels and type */
.ct-label {
  margin: 0;
  font-family: var(--ct-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ct-paper);
}
.ct-label--red { color: var(--ct-red-text); display: inline-flex; align-items: center; gap: 0.8rem; }
.ct-label--red::before { content: ""; width: 1.6rem; height: 1px; background: var(--ct-red); }
.ct-h2 {
  margin: 1.2rem 0 0;
  font-family: var(--ct-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ct-h2 em, .ct-h3 em { font-style: italic; color: var(--ct-paper-soft); }
.ct-h3 { margin: 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(2rem, 3.5vw, 3rem); }
.ct-lead {
  margin: 1.6rem 0 0;
  max-width: 34rem;
  font-family: var(--ct-serif);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--ct-ivory);
}
.ct-body-text { margin: 1.2rem 0 0; max-width: 32rem; font-size: 0.95rem; line-height: 1.75; color: var(--ct-paper-soft); }

/* links: hairline that draws */
.ct-link-under {
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--ct-ivory);
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.ct-link-under::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ct-paper); transform-origin: right; transition: transform 0.6s var(--ct-ease), background 0.3s;
}
.ct-link-under:hover::after { transform: scaleX(0); transform-origin: right; }
.ct-link-under:hover { color: var(--ct-paper-soft); }
.ct-link-under:focus-visible { outline: 1px solid var(--ct-red); outline-offset: 6px; }

/* header */
.ct-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--ct-gutter);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ct-ink-bg) 92%, transparent), transparent);
  animation: ct-drop-in 1.1s var(--ct-ease) both;
}
.ct-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ct-ivory); text-decoration: none; }
.ct-brand__mark { width: 40px; height: 40px; }
.ct-brand__word { font-family: var(--ct-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; }
.ct-nav { display: flex; align-items: center; gap: clamp(0.8rem, 2.4vw, 2.2rem); }
.ct-nav__link {
  color: var(--ct-paper-soft); text-decoration: none; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.3s;
}
.ct-nav__link:hover { color: var(--ct-ivory); }
.ct-nav__book {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ct-ivory); text-decoration: none; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.ct-nav__drop {
  width: 0.55rem; height: 0.75rem; border: 1px solid var(--ct-red);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(to top, var(--ct-red) 0%, var(--ct-red) 0%, transparent 0%);
  transition: background 0.5s var(--ct-ease);
}
.ct-nav__book:hover .ct-nav__drop { background: var(--ct-red); }
@media (max-width: 860px) {
  .ct-nav__link { display: none; }
  .ct-brand__word { font-size: 1.05rem; letter-spacing: 0.26em; }
}
@keyframes ct-drop-in { from { transform: translateY(-110%); } to { transform: translateY(0); } }

/* scroll film overrides: brand typography, no chapter buttons (site nav covers it) */
.scroll-scrub__route { display: none; }
.scroll-scrub__kicker { font-family: var(--ct-sans); font-weight: 500; letter-spacing: 0.26em; font-size: 0.72rem; color: var(--ct-red-text); }
.scroll-scrub__title {
  font-family: var(--ct-serif) !important; font-weight: 500 !important; letter-spacing: -0.01em !important;
  line-height: 0.98 !important; font-size: clamp(2.8rem, 6.4vw, 6.6rem) !important;
}
.scroll-scrub__chapter:first-child .scroll-scrub__title { font-style: italic; }
.scroll-scrub__body { font-family: var(--ct-serif); font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: var(--ct-paper-soft); }
.scroll-scrub__tags li { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; border-color: var(--ct-thread); color: var(--ct-paper-soft); }
.ct-cta-draw {
  position: relative; display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0;
  color: var(--ct-ivory); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.ct-cta-draw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ct-red);
  transform: scaleX(0.35); transform-origin: left; transition: transform 0.7s var(--ct-ease);
}
.ct-cta-draw:hover::after, .ct-cta-draw:focus-visible::after { transform: scaleX(1); }
.ct-cta-draw__arrow { transition: transform 0.5s var(--ct-ease); }
.ct-cta-draw:hover .ct-cta-draw__arrow { transform: translateX(0.5rem); }

/* maison split */
.ct-main { background: var(--ct-ink-bg); }
.ct-maison {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 6rem);
  align-items: center; padding: clamp(6rem, 12vw, 11rem) var(--ct-gutter) clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--ct-thread);
}
.ct-maison__figure, .ct-artist__figure, .ct-book__figure { margin: 0; overflow: hidden; }
.ct-maison__figure img, .ct-artist__figure img, .ct-book__figure img { display: block; width: 100%; height: auto; }
.ct-maison__figure { clip-path: inset(0 0 0 12%); }
@media (max-width: 860px) {
  .ct-maison { grid-template-columns: 1fr; }
  .ct-maison__figure { clip-path: none; }
}

/* pillars: museum index */
.ct-pillars { padding: 0 var(--ct-gutter) clamp(5rem, 10vw, 9rem); }
.ct-pillars__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--ct-thread);
}
.ct-pillar { padding: 2.2rem 1.6rem 0 0; border-right: 1px solid var(--ct-thread); }
.ct-pillar + .ct-pillar { padding-left: 1.6rem; }
.ct-pillar:last-child { border-right: 0; }
.ct-pillar__n { font-family: var(--ct-serif); font-style: italic; font-size: 1.1rem; color: var(--ct-red-text); }
.ct-pillar__title { margin: 0.9rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: 1.65rem; line-height: 1.1; }
.ct-pillar__text { margin: 0.9rem 0 0; font-size: 0.88rem; line-height: 1.7; color: var(--ct-paper-soft); }
@media (max-width: 960px) {
  .ct-pillars__list { grid-template-columns: 1fr 1fr; }
  .ct-pillar, .ct-pillar + .ct-pillar { padding: 2rem 1rem 2rem 0; border-right: 0; border-bottom: 1px solid var(--ct-thread); }
}
@media (max-width: 560px) { .ct-pillars__list { grid-template-columns: 1fr; } }

/* artist room */
.ct-artist {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 7rem); align-items: end;
  padding: clamp(5rem, 10vw, 9rem) var(--ct-gutter); background: var(--ct-surface);
}
.ct-artist__figure { aspect-ratio: 4 / 5; }
.ct-artist__figure img { height: 100%; object-fit: cover; }
.ct-artist__role { margin: 0.6rem 0 0; font-family: var(--ct-serif); font-style: italic; font-size: 1.3rem; color: var(--ct-paper); }
@media (max-width: 860px) { .ct-artist { grid-template-columns: 1fr; } }

/* standard: labels over still life */
.ct-standard { position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 10rem) var(--ct-gutter); }
.ct-standard__bg { position: absolute; inset: 0; z-index: 0; }
.ct-standard__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: 0.55; }
.ct-standard__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ct-ink-bg) 25%, color-mix(in srgb, var(--ct-ink-bg) 60%, transparent) 70%, transparent); }
.ct-standard__inner { position: relative; z-index: 1; max-width: 62rem; }
.ct-standard__lead { color: var(--ct-paper-soft); }
.ct-standard__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin: 3.5rem 0 0; }
.ct-rule { padding: 1.3rem 0; border-top: 1px solid var(--ct-thread); }
.ct-rule dt { display: flex; gap: 1rem; align-items: baseline; font-family: var(--ct-serif); font-size: 1.4rem; font-weight: 500; }
.ct-rule__n { font-family: var(--ct-sans); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--ct-red-text); }
.ct-rule dd { margin: 0.45rem 0 0 2.2rem; font-size: 0.88rem; line-height: 1.65; color: var(--ct-paper-soft); }
@media (max-width: 760px) { .ct-standard__grid { grid-template-columns: 1fr; } }

/* research plates */
.ct-research { padding: clamp(6rem, 12vw, 10rem) var(--ct-gutter); border-top: 1px solid var(--ct-thread); }
.ct-research__head { max-width: 46rem; }
.ct-research__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 3rem); margin: 4rem 0 0; padding: 0; list-style: none; }
.ct-research__list li:nth-child(2) { margin-top: 4rem; }
.ct-plate { display: block; color: var(--ct-ivory); text-decoration: none; }
.ct-plate__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ct-surface); }
.ct-plate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ct-ease); }
.ct-plate:hover .ct-plate__img img { transform: scale(1.04); }
.ct-plate__meta { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1.3rem; }
.ct-plate__title { font-family: var(--ct-serif); font-size: 1.7rem; line-height: 1.1; font-weight: 500; transition: color 0.4s; }
.ct-plate:hover .ct-plate__title { font-style: italic; }
.ct-plate__dek { font-size: 0.88rem; line-height: 1.6; color: var(--ct-paper-soft); }
.ct-plate:focus-visible { outline: 1px solid var(--ct-red); outline-offset: 8px; }
@media (max-width: 860px) {
  .ct-research__list { grid-template-columns: 1fr; }
  .ct-research__list li:nth-child(2) { margin-top: 0; }
}

/* booking */
.ct-book {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(6rem, 12vw, 10rem) var(--ct-gutter); background: var(--ct-surface);
}
.ct-book__figure { margin-top: 3rem; }
@media (max-width: 860px) { .ct-book { grid-template-columns: 1fr; } }
.ct-form { display: flex; flex-direction: column; gap: 1.6rem; }
.ct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 520px) { .ct-form__row { grid-template-columns: 1fr; } }
.ct-field { display: flex; flex-direction: column; gap: 0.6rem; }
.ct-field input, .ct-field textarea, .ct-field select {
  width: 100%; padding: 0.8rem 0; border: 0; border-bottom: 1px solid var(--ct-thread); border-radius: 0;
  background: transparent; color: var(--ct-ivory); font-family: var(--ct-serif); font-size: 1.25rem;
  transition: border-color 0.3s;
}
.ct-field select option { background: var(--ct-surface); color: var(--ct-ivory); }
.ct-field textarea { resize: vertical; line-height: 1.5; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--ct-paper); font-style: italic; }
.ct-field input:focus, .ct-field textarea:focus, .ct-field select:focus { outline: none; border-bottom-color: var(--ct-red); }
.ct-seal {
  display: inline-flex; align-items: center; gap: 1rem; align-self: flex-start; margin-top: 0.8rem; padding: 0;
  border: 0; background: none; color: var(--ct-ivory); cursor: pointer;
  font-family: var(--ct-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.ct-seal__disc {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ct-red-text), var(--ct-red) 55%, color-mix(in srgb, var(--ct-red) 70%, black));
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--ct-red) 80%, black), 0 6px 18px color-mix(in srgb, var(--ct-red) 30%, transparent);
  transition: transform 0.25s var(--ct-ease);
}
.ct-seal:hover .ct-seal__disc { transform: rotate(-12deg) scale(1.05); }
.ct-seal:active .ct-seal__disc { transform: scale(0.92); }
.ct-seal:focus-visible { outline: 1px solid var(--ct-red); outline-offset: 6px; }
.ct-letter { margin-top: 2.5rem; padding: 2rem; border: 1px solid var(--ct-thread); background: var(--ct-ink-bg); }
.ct-letter__text { margin: 1rem 0 0; white-space: pre-wrap; font-family: var(--ct-serif); font-size: 1.1rem; line-height: 1.6; color: var(--ct-ivory); }
.ct-letter__note { margin: 1.2rem 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--ct-paper-soft); }

/* faq */
.ct-faq { padding: clamp(5rem, 10vw, 8rem) var(--ct-gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
@media (max-width: 860px) { .ct-faq { grid-template-columns: 1fr; } }
.ct-faq__item { border-top: 1px solid var(--ct-thread); }
.ct-faq__item:last-child { border-bottom: 1px solid var(--ct-thread); }
.ct-faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; cursor: pointer; list-style: none;
  font-family: var(--ct-serif); font-size: 1.45rem;
}
.ct-faq__item summary::-webkit-details-marker { display: none; }
.ct-faq__plus { position: relative; flex: 0 0 auto; width: 1rem; height: 1rem; transition: transform 0.4s var(--ct-ease); }
.ct-faq__plus::before, .ct-faq__plus::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--ct-paper-soft); }
.ct-faq__plus::after { transform: rotate(90deg); }
.ct-faq__item[open] .ct-faq__plus { transform: rotate(45deg); }
.ct-faq__item p { margin: 0 0 1.6rem; max-width: 40rem; font-size: 0.95rem; line-height: 1.75; color: var(--ct-paper-soft); }

/* footer */
.ct-footer {
  display: grid; grid-template-columns: auto 1fr auto; gap: 3rem; align-items: end;
  padding: 5rem var(--ct-gutter) 3rem; border-top: 1px solid var(--ct-thread);
}
.ct-footer__brand { text-align: center; }
.ct-footer__brand img { display: block; margin: 0 auto; }
.ct-footer__word { margin: 0.6rem 0 0; font-family: var(--ct-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.36em; text-transform: uppercase; }
.ct-footer__line { margin: 0.4rem 0 0; font-size: 0.7rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--ct-paper); }
.ct-footer__line::before { content: ""; display: block; width: 1.4rem; height: 1px; margin: 0 auto 0.5rem; background: var(--ct-red); }
.ct-footer__motto { margin: 0; font-family: var(--ct-serif); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ct-paper-soft); text-align: center; }
.ct-footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; font-size: 0.8rem; color: var(--ct-paper-soft); }
.ct-footer__meta p { margin: 0; }
.ct-footer__meta .ct-link-under { margin-top: 0.4rem; }
.ct-footer__small { margin-top: 1rem !important; font-size: 0.7rem; color: var(--ct-paper); }
@media (max-width: 860px) {
  .ct-footer { grid-template-columns: 1fr; text-align: center; }
  .ct-footer__meta { align-items: center; }
}

/* article page */
.ct-article { padding: 8rem var(--ct-gutter) 5rem; max-width: 64rem; margin: 0 auto; }
.ct-back { color: var(--ct-paper-soft); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.ct-back:hover { color: var(--ct-ivory); }
.ct-article__head { margin-top: 3rem; animation: ct-rise 1s var(--ct-ease) both; }
.ct-article__title { margin: 1.2rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; text-wrap: balance; }
.ct-article__dek { margin: 1.4rem 0 0; max-width: 40rem; font-family: var(--ct-serif); font-style: italic; font-size: 1.45rem; color: var(--ct-paper-soft); }
.ct-article__figure { margin: 3.5rem 0 0; max-width: 34rem; }
.ct-article__figure img { display: block; width: 100%; height: auto; }
.ct-article__body { margin-top: 3.5rem; max-width: 40rem; }
.ct-article__body p { margin: 0 0 1.5rem; font-family: var(--ct-serif); font-size: 1.3rem; line-height: 1.7; }
.ct-article__body p:first-child::first-letter { float: left; margin: 0.35rem 0.6rem 0 0; font-size: 4.4rem; line-height: 0.8; color: var(--ct-red-text); }
.ct-signature { margin-top: 3rem !important; font-family: var(--ct-sans) !important; font-size: 0.72rem !important; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-paper); }
.ct-article__more { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--ct-thread); }
.ct-article__more ul { margin: 0; padding: 0; list-style: none; }
.ct-article__more .ct-link-under { margin-top: 1.2rem; text-transform: none; letter-spacing: 0; font-family: var(--ct-serif); font-size: 1.4rem; }
@keyframes ct-rise { from { transform: translateY(1.5rem); } to { transform: translateY(0); } }

/* error */
.ct-error { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; background: var(--ct-ink-bg); }
.ct-error__mark { width: 120px; height: 120px; }
.ct-error__title { margin: 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.4rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ct-header, .ct-article__head { animation: none; }
  .ct-body *, .ct-body *::before, .ct-body *::after { transition: none !important; }
}

/* three generations: museum timeline */
.ct-lineage { padding: clamp(5rem, 10vw, 9rem) var(--ct-gutter); border-top: 1px solid var(--ct-thread); }
.ct-lineage__head { max-width: 48rem; }
.ct-lineage__line {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem);
  margin: 4.5rem 0 0; padding: 0; list-style: none;
}
.ct-lineage__line::before {
  content: ""; position: absolute; top: 0.45rem; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--ct-thread), var(--ct-paper) 70%, var(--ct-red));
}
.ct-gen { position: relative; padding-top: 2.4rem; }
.ct-gen__node {
  position: absolute; top: 0; left: 0; width: 0.95rem; height: 0.95rem; border-radius: 50%;
  border: 1px solid var(--ct-paper); background: var(--ct-ink-bg);
}
.ct-gen[data-current="true"] .ct-gen__node { border-color: var(--ct-red); background: var(--ct-red); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ct-red) 18%, transparent); }
.ct-gen__n { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-red-text); }
.ct-gen__name { margin: 0.9rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.ct-gen__role { margin: 0.4rem 0 0; font-family: var(--ct-serif); font-style: italic; font-size: 1.2rem; color: var(--ct-paper); }
.ct-gen__text { margin: 1rem 0 0; max-width: 22rem; font-size: 0.9rem; line-height: 1.7; color: var(--ct-paper-soft); }
@media (max-width: 760px) {
  .ct-lineage__line { grid-template-columns: 1fr; gap: 0; padding-left: 1.8rem; }
  .ct-lineage__line::before { top: 0; bottom: 0; left: 0.45rem; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--ct-thread), var(--ct-paper) 70%, var(--ct-red)); }
  .ct-gen { padding: 0 0 2.6rem; }
  .ct-gen__node { left: -1.8rem; top: 0.2rem; }
}

.ct-gen__link { margin-top: 1rem; font-size: 0.7rem; }
.ct-gen[data-current="true"] .ct-gen__name { color: var(--ct-ivory); }
.ct-gen:not([data-current="true"]) .ct-gen__name { color: var(--ct-paper-soft); }
.ct-path { margin: 2.2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ct-thread); max-width: 34rem; }
.ct-path li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--ct-thread); }
.ct-path__place { font-family: var(--ct-serif); font-size: 1.2rem; }
.ct-path li:last-child .ct-path__place { color: var(--ct-red-text); font-style: italic; }
.ct-path__text { font-size: 0.86rem; line-height: 1.6; color: var(--ct-paper-soft); align-self: center; }
@media (max-width: 520px) { .ct-path li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* research: four plates */
@media (min-width: 1100px) {
  .ct-research__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ct-research__list li:nth-child(2) { margin-top: 4rem; }
  .ct-research__list li:nth-child(4) { margin-top: 4rem; }
}
@media (min-width: 861px) and (max-width: 1099px) {
  .ct-research__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-research__list li:nth-child(2) { margin-top: 0; }
}

/* angels: atlas + oracle */
.ct-angels { padding: clamp(6rem, 12vw, 10rem) 0; border-top: 1px solid var(--ct-thread); overflow: hidden; }
.ct-angels__head { max-width: 50rem; padding: 0 var(--ct-gutter); }
.ct-atlas {
  display: flex; gap: clamp(1rem, 2.4vw, 2rem); margin-top: 4rem; padding: 0 var(--ct-gutter) 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ct-thread) transparent;
}
.ct-atlas__card { flex: 0 0 clamp(15rem, 24vw, 19rem); scroll-snap-align: start; }
.ct-atlas__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ct-surface); }
.ct-atlas__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transition: transform 1.2s var(--ct-ease); }
.ct-atlas__card:hover .ct-atlas__img img { transform: scale(1.04); }
.ct-atlas__n { margin: 1.1rem 0 0; font-family: var(--ct-serif); font-style: italic; color: var(--ct-red-text); }
.ct-atlas__name { margin: 0.2rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.ct-atlas__where { margin: 0.35rem 0 0; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ct-paper); }
.ct-atlas__text { margin: 0.8rem 0 0; font-size: 0.88rem; line-height: 1.65; color: var(--ct-paper-soft); }

.ct-oracle {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  margin: clamp(4rem, 8vw, 6rem) var(--ct-gutter) 0; padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--ct-thread); background: var(--ct-surface);
}
@media (max-width: 860px) { .ct-oracle { grid-template-columns: 1fr; } }
.ct-oracle__q { margin: 1rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; }
.ct-oracle__choices { display: flex; flex-direction: column; margin-top: 1.8rem; border-top: 1px solid var(--ct-thread); }
.ct-feather {
  display: flex; align-items: center; gap: 1rem; padding: 0.95rem 0; border: 0; border-bottom: 1px solid var(--ct-thread);
  background: none; color: var(--ct-paper-soft); text-align: left; cursor: pointer;
  font-family: var(--ct-serif); font-size: 1.3rem; transition: color 0.3s, padding-left 0.5s var(--ct-ease);
}
.ct-feather:hover { color: var(--ct-ivory); padding-left: 0.4rem; }
.ct-feather__mark {
  flex: 0 0 auto; width: 0.7rem; height: 0.7rem; border: 1px solid var(--ct-paper); border-radius: 50%; transition: background 0.3s, border-color 0.3s;
}
.ct-feather[aria-checked="true"] { color: var(--ct-ivory); }
.ct-feather[aria-checked="true"] .ct-feather__mark { background: var(--ct-red); border-color: var(--ct-red); }
.ct-feather:focus-visible { outline: 1px solid var(--ct-red); outline-offset: 4px; }
.ct-oracle__answer { display: flex; align-items: center; min-height: 18rem; }
.ct-oracle__empty { margin: 0; font-family: var(--ct-serif); font-style: italic; font-size: 1.4rem; color: var(--ct-paper); }
.ct-oracle__card { animation: ct-rise 0.8s var(--ct-ease) both; }
.ct-oracle__name { margin: 0.8rem 0 0; font-family: var(--ct-serif); font-style: italic; font-weight: 500; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; }
.ct-oracle__story { margin: 1.2rem 0 0; max-width: 32rem; font-family: var(--ct-serif); font-size: 1.25rem; line-height: 1.55; }
.ct-oracle__ideas { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.4rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--ct-paper-soft); }
.ct-oracle__cta { margin-top: 1.8rem; border: 0; background: none; cursor: pointer; font-family: var(--ct-sans); }
.ct-angels__close {
  margin: clamp(4rem, 8vw, 6rem) 0 0; padding: 0 var(--ct-gutter); text-align: center;
  font-family: var(--ct-serif); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1;
}
.ct-angels__close em { color: var(--ct-paper-soft); }
@media (prefers-reduced-motion: reduce) { .ct-oracle__card { animation: none; } }

/* wings: from the fly to the dragon */
.ct-wings { padding: clamp(6rem, 12vw, 10rem) 0; border-top: 1px solid var(--ct-thread); background: var(--ct-surface); overflow: hidden; }
.ct-wings__head { max-width: 50rem; padding: 0 var(--ct-gutter); }
.ct-wings__scale {
  display: flex; align-items: flex-end; gap: clamp(1rem, 2vw, 1.6rem); margin: 4rem 0 0; padding: 0 var(--ct-gutter) 1.5rem;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ct-thread) transparent;
}
.ct-wing { scroll-snap-align: start; flex: 0 0 auto; }
.ct-wing:nth-child(1) { width: clamp(9rem, 12vw, 11rem); }
.ct-wing:nth-child(2) { width: clamp(10rem, 13.5vw, 12.5rem); }
.ct-wing:nth-child(3) { width: clamp(11rem, 15vw, 14rem); }
.ct-wing:nth-child(4) { width: clamp(12rem, 16.5vw, 15.5rem); }
.ct-wing:nth-child(5) { width: clamp(13rem, 18vw, 17rem); }
.ct-wing:nth-child(6) { width: clamp(14rem, 19.5vw, 18.5rem); }
.ct-wing:nth-child(7) { width: clamp(16rem, 22vw, 21rem); }
.ct-wing__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ct-ink-bg); }
.ct-wing__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ct-ease); }
.ct-wing:hover .ct-wing__img img { transform: scale(1.05); }
.ct-wing[data-last="true"] .ct-wing__img { outline: 1px solid var(--ct-red); outline-offset: 6px; }
.ct-wing__name { margin: 1rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: 1.45rem; }
.ct-wing[data-last="true"] .ct-wing__name { font-style: italic; color: var(--ct-red-text); }
.ct-wing__text { margin: 0.5rem 0 0; font-size: 0.84rem; line-height: 1.6; color: var(--ct-paper-soft); }
.ct-leonardo {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  margin: clamp(4rem, 8vw, 7rem) var(--ct-gutter) 0;
}
.ct-leonardo__figure { margin: 0; overflow: hidden; }
.ct-leonardo__figure img { display: block; width: 100%; height: auto; }
.ct-leonardo__title { margin: 1rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; }
.ct-leonardo__title em { color: var(--ct-paper-soft); }
@media (max-width: 860px) { .ct-leonardo { grid-template-columns: 1fr; } }

/* per grazia ricevuta: the main CTA */
.ct-grace { position: relative; overflow: hidden; padding: clamp(7rem, 14vw, 12rem) var(--ct-gutter); border-top: 1px solid var(--ct-thread); }
.ct-grace__bg { position: absolute; inset: 0; z-index: 0; }
.ct-grace__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
.ct-grace__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ct-ink-bg) 30%, color-mix(in srgb, var(--ct-ink-bg) 55%, transparent) 65%, transparent); }
.ct-grace__inner { position: relative; z-index: 1; max-width: 44rem; }
.ct-grace__cta {
  display: inline-flex; align-items: center; gap: 1.1rem; margin-top: 2.6rem; color: var(--ct-ivory); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.ct-grace__cta .ct-seal__disc { width: 4rem; height: 4rem; transition: transform 0.4s var(--ct-ease); }
.ct-grace__cta:hover .ct-seal__disc { transform: rotate(-14deg) scale(1.06); }
.ct-grace__cta:focus-visible { outline: 1px solid var(--ct-red); outline-offset: 8px; }
@media (max-width: 760px) { .ct-grace__bg img { opacity: 0.45; } }

/* the journey */
.ct-journey { min-height: 100dvh; padding: 7rem var(--ct-gutter) 5rem; background: radial-gradient(ellipse at 70% 0%, var(--ct-surface), var(--ct-ink-bg) 60%); }
.ct-journey__intro, .ct-journey__end { max-width: 46rem; margin: 0 auto; padding-top: clamp(1rem, 5vh, 4rem); animation: ct-rise 1s var(--ct-ease) both; }
.ct-journey__title, .ct-journey__end-title { margin: 1.2rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; text-wrap: balance; }
.ct-journey__title em, .ct-journey__end-title em { color: var(--ct-paper-soft); }
.ct-journey__promise { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.5rem 0 0; padding: 1.4rem 0 0; list-style: none; border-top: 1px solid var(--ct-thread); font-size: 0.85rem; color: var(--ct-paper-soft); }
.ct-journey__promise span { display: block; font-family: var(--ct-serif); font-size: 2.2rem; color: var(--ct-ivory); }
.ct-journey__start { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-top: 2.6rem; }
.ct-journey__start .ct-link-under { margin-top: 0; }
.ct-journey__stage { max-width: 50rem; margin: 0 auto; }
.ct-journey__progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 2px; background: var(--ct-thread); }
.ct-journey__progress span { display: block; height: 100%; background: var(--ct-red); transform-origin: left; transition: transform 0.6s var(--ct-ease); }
.ct-journey__chapters { display: flex; gap: 1.2rem; margin: 0 0 3rem; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ct-journey__chapters li { display: flex; align-items: baseline; gap: 0.45rem; flex: 0 0 auto; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-thread); }
.ct-journey__chapters li span { font-family: var(--ct-serif); font-size: 1rem; letter-spacing: 0; }
.ct-journey__chapters li em { font-style: normal; }
.ct-journey__chapters li[data-state="done"] { color: var(--ct-paper); }
.ct-journey__chapters li[data-state="now"] { color: var(--ct-ivory); }
.ct-journey__chapters li[data-state="now"] span { color: var(--ct-red-text); }
@media (max-width: 760px) { .ct-journey__chapters li:not([data-state="now"]) em { display: none; } }
.ct-journey__panel { outline: none; animation: ct-rise 0.7s var(--ct-ease) both; }
.ct-journey__note { margin: 1.4rem 0 0; padding-left: 1.2rem; border-left: 1px solid var(--ct-red); max-width: 40rem; font-family: var(--ct-serif); font-style: italic; font-size: 1.2rem; line-height: 1.55; color: var(--ct-paper-soft); }
.ct-journey__q { margin: 1.6rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; text-wrap: balance; }
.ct-journey__req { color: var(--ct-red-text); }
.ct-journey__help { margin: 1rem 0 0; max-width: 38rem; font-size: 0.95rem; line-height: 1.7; color: var(--ct-paper-soft); }
.ct-journey__prompts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ct-journey__prompts li { font-family: var(--ct-serif); font-style: italic; font-size: 1.05rem; color: var(--ct-paper); }
.ct-journey__prompts li::before { content: "· "; color: var(--ct-red-text); }
.ct-journey__input, .ct-journey__area {
  width: 100%; margin-top: 2rem; padding: 0.8rem 0; border: 0; border-bottom: 1px solid var(--ct-paper); border-radius: 0; background: transparent;
  color: var(--ct-ivory); font-family: var(--ct-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); outline: none;
}
.ct-journey__input--small { font-size: 1.3rem; margin-top: 1.6rem; }
.ct-journey__area { padding: 1rem 1.2rem; border: 1px solid var(--ct-thread); background: color-mix(in srgb, var(--ct-ink-bg) 70%, transparent); font-size: 1.3rem; line-height: 1.6; resize: vertical; }
.ct-journey__input:focus, .ct-journey__area:focus { border-color: var(--ct-red); }
.ct-journey__input::placeholder, .ct-journey__area::placeholder { color: var(--ct-thread); font-style: italic; }
.ct-journey__count { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--ct-paper); }
.ct-journey__options { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.ct-field .ct-journey__options { margin-top: 0.2rem; }
.ct-chip {
  padding: 0.75rem 1.15rem; border: 1px solid var(--ct-thread); border-radius: 999px; background: transparent; color: var(--ct-paper-soft);
  font-family: var(--ct-serif); font-size: 1.15rem; cursor: pointer; transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.ct-chip:hover { border-color: var(--ct-paper); color: var(--ct-ivory); }
.ct-chip[aria-checked="true"] { border-color: var(--ct-red); background: color-mix(in srgb, var(--ct-red) 22%, transparent); color: var(--ct-ivory); }
.ct-chip:focus-visible { outline: 1px solid var(--ct-red); outline-offset: 3px; }
.ct-journey__words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 600px) { .ct-journey__words { grid-template-columns: 1fr; gap: 0; } }
.ct-journey__photos { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.ct-journey__drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  width: 10rem; aspect-ratio: 4 / 5; border: 1px dashed var(--ct-paper); color: var(--ct-paper-soft); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; cursor: pointer;
}
.ct-journey__drop:hover { border-color: var(--ct-red); color: var(--ct-ivory); }
.ct-journey__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ct-journey__drop-plus { position: relative; width: 1.4rem; height: 1.4rem; }
.ct-journey__drop-plus::before, .ct-journey__drop-plus::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: currentColor; }
.ct-journey__drop-plus::after { transform: rotate(90deg); }
.ct-journey__thumb { position: relative; width: 10rem; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; }
.ct-journey__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-journey__thumb button { position: absolute; top: 0.4rem; right: 0.4rem; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%; background: var(--ct-ink-bg); color: var(--ct-ivory); cursor: pointer; }
.ct-journey__contact, .ct-journey__consents { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2rem; }
.ct-honey { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ct-check { display: grid; grid-template-columns: 1.4rem 1fr; gap: 1rem; align-items: start; font-size: 0.95rem; line-height: 1.6; color: var(--ct-paper-soft); cursor: pointer; }
.ct-check input { position: absolute; opacity: 0; }
.ct-check__box { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; border: 1px solid var(--ct-paper); transition: background 0.3s, border-color 0.3s; }
.ct-check input:checked + .ct-check__box { background: var(--ct-red); border-color: var(--ct-red); }
.ct-check input:focus-visible + .ct-check__box { outline: 1px solid var(--ct-ivory); outline-offset: 3px; }
.ct-journey__consents .ct-link-under { margin-top: 0; align-self: flex-start; }
.ct-journey__error { margin: 1.4rem 0 0; color: var(--ct-red-text); font-size: 0.95rem; }
.ct-journey__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--ct-thread); }
.ct-journey__forward { display: flex; align-items: center; gap: 2rem; }
.ct-journey__back, .ct-journey__skip { border: 0; background: none; color: var(--ct-paper); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.ct-journey__back:hover, .ct-journey__skip:hover { color: var(--ct-ivory); }
.ct-journey__next { border: 0; background: none; cursor: pointer; font-family: var(--ct-sans); }
.ct-seal:disabled { opacity: 0.6; cursor: wait; }
.ct-journey__mark { width: 110px; height: 110px; }
.ct-exvoto { margin: 2rem 0 0; padding: 1.6rem 2rem; border: 1px solid var(--ct-thread); font-family: var(--ct-serif); font-style: italic; font-size: 1.5rem; line-height: 1.45; color: var(--ct-ivory); }

/* legal page */
.ct-legal .ct-article__body h2 { margin: 2.4rem 0 0.6rem; font-family: var(--ct-serif); font-weight: 500; font-size: 1.6rem; }
.ct-legal .ct-article__body p { font-size: 1.1rem; }
.ct-legal .ct-article__body p:first-child::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; }

/* reserved archive */
.ct-admin { min-height: 100dvh; padding: 5rem var(--ct-gutter); background: var(--ct-ink-bg); }
.ct-admin--login { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; text-align: center; }
.ct-admin__login { display: flex; flex-direction: column; gap: 1.2rem; width: min(22rem, 100%); text-align: left; }
.ct-admin__login .ct-cta-draw { border: 0; background: none; cursor: pointer; font-family: var(--ct-sans); align-self: flex-start; }
.ct-admin__counts { margin: 1rem 0 0; color: var(--ct-paper-soft); font-size: 0.9rem; }
.ct-admin__list { margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ct-thread); }
.ct-admin__item { border-bottom: 1px solid var(--ct-thread); }
.ct-admin__row { display: grid; grid-template-columns: 1.2fr 2fr 1fr 0.8fr; gap: 1rem; align-items: baseline; width: 100%; padding: 1.2rem 0; border: 0; background: none; color: var(--ct-ivory); text-align: left; cursor: pointer; }
.ct-admin__name { font-family: var(--ct-serif); font-size: 1.4rem; }
.ct-admin__kind, .ct-admin__date { font-size: 0.85rem; color: var(--ct-paper-soft); }
.ct-admin__status { justify-self: end; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ct-paper); }
.ct-admin__item[data-status="nuova"] .ct-admin__status { color: var(--ct-red-text); }
@media (max-width: 760px) { .ct-admin__row { grid-template-columns: 1fr auto; } .ct-admin__kind, .ct-admin__date { grid-column: 1 / -1; } }
.ct-admin__detail { padding: 0 0 2rem; }
.ct-admin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.ct-admin__actions .ct-link-under { margin-top: 0; }
.ct-admin__actions select { padding: 0.5rem 0.8rem; border: 1px solid var(--ct-thread); background: var(--ct-surface); color: var(--ct-ivory); font-family: var(--ct-sans); }
.ct-admin__meta { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ct-paper); }
.ct-admin__answers { display: grid; gap: 1.1rem; margin: 1.6rem 0 0; max-width: 52rem; }
.ct-admin__answers dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-paper); }
.ct-admin__answers dd { margin: 0.3rem 0 0; font-family: var(--ct-serif); font-size: 1.2rem; line-height: 1.55; white-space: pre-wrap; }
.ct-admin__photos { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0; }
.ct-admin__photos img { width: 9rem; height: 11rem; object-fit: cover; }

/* journey as a deck of cards (schede) */
.ct-journey__stage { max-width: 72rem; }
.ct-deck { display: flex; gap: 0.35rem; margin: 0 0 1.6rem; overflow-x: auto; scrollbar-width: none; }
.ct-deck__tab {
  flex: 0 0 auto; width: 2.6rem; height: 3.3rem; border: 1px solid var(--ct-thread); background: var(--ct-ink-bg);
  color: var(--ct-thread); font-family: var(--ct-serif); font-size: 1rem; cursor: pointer; transition: transform 0.4s var(--ct-ease), border-color 0.3s, color 0.3s;
}
.ct-deck__tab[data-state="seen"] { color: var(--ct-paper-soft); border-color: var(--ct-paper); }
.ct-deck__tab[data-state="now"] { color: var(--ct-ivory); border-color: var(--ct-red); transform: translateY(-0.35rem); }
.ct-deck__tab:disabled { cursor: default; }
.ct-deck__tab:focus-visible { outline: 1px solid var(--ct-red); outline-offset: 3px; }
.ct-scheda {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); min-height: 34rem; outline: none;
  border: 1px solid var(--ct-thread); background: var(--ct-surface); box-shadow: 0 30px 80px color-mix(in srgb, black 45%, transparent);
  animation: ct-card-in 0.7s var(--ct-ease) both;
}
.ct-scheda[data-wide="true"] { grid-template-columns: 1fr; }
@keyframes ct-card-in { from { transform: translateY(1.4rem) rotate(-0.6deg); } to { transform: none; } }
.ct-scheda__art { position: relative; margin: 0; overflow: hidden; border-right: 1px solid var(--ct-thread); }
.ct-scheda__art img { width: 100%; height: 100%; object-fit: cover; }
.ct-scheda__art figcaption {
  position: absolute; left: 1.4rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ct-paper-soft);
}
.ct-scheda__art figcaption span { font-family: var(--ct-serif); font-size: 3rem; letter-spacing: 0; line-height: 1; color: var(--ct-ivory); }
.ct-scheda__body { padding: clamp(1.6rem, 4vw, 3.2rem); }
.ct-q + .ct-q { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px dashed var(--ct-thread); }
.ct-journey__q--sub { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.ct-scheda .ct-journey__q { margin-top: 1rem; }
.ct-journey__chosen { margin: 1.2rem 0 0; font-family: var(--ct-serif); font-style: italic; font-size: 1.3rem; color: var(--ct-red-text); }
.ct-journey__deck-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.4rem 1.4rem; margin: 2.4rem 0 0; padding: 1.4rem 0 0; list-style: none; border-top: 1px solid var(--ct-thread); font-family: var(--ct-serif); font-size: 1.1rem; color: var(--ct-paper-soft); }
.ct-journey__deck-preview span { margin-right: 0.6rem; font-family: var(--ct-sans); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--ct-red-text); }
@media (max-width: 860px) {
  .ct-scheda { grid-template-columns: 1fr; min-height: 0; }
  .ct-scheda__art { height: 11rem; border-right: 0; border-bottom: 1px solid var(--ct-thread); }
  .ct-scheda__art figcaption span { font-size: 2rem; }
}

/* body explorer */
.ct-bodymap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.4rem, 3vw, 3rem); margin-top: 1.8rem; }
@media (max-width: 900px) { .ct-bodymap { grid-template-columns: 1fr; } }
.ct-bodymap__viewer { position: relative; display: flex; flex-direction: column; gap: 0.8rem; }
.ct-bodymap__toggle { display: flex; gap: 0.5rem; }
.ct-bodymap__canvas {
  position: relative; height: clamp(26rem, 62vh, 40rem); overflow: hidden; touch-action: pan-y;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--ct-ivory) 6%, transparent), transparent 65%), var(--ct-ink-bg);
  border: 1px solid var(--ct-thread); cursor: grab;
}
.ct-bodymap__canvas canvas { display: block; }
.ct-bodymap__hint { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--ct-serif); font-style: italic; color: var(--ct-paper); }
.ct-bodymap__turn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ct-paper); }
.ct-bodymap__turn button { width: 2.6rem; height: 2.6rem; border: 1px solid var(--ct-thread); border-radius: 50%; background: none; color: var(--ct-ivory); font-size: 1.1rem; cursor: pointer; }
.ct-bodymap__turn button:hover { border-color: var(--ct-red); }
.ct-bodymap__info { display: flex; flex-direction: column; gap: 1.4rem; }
.ct-bodymap__card { padding: 1.6rem; border: 1px solid var(--ct-thread); background: var(--ct-ink-bg); animation: ct-rise 0.6s var(--ct-ease) both; }
.ct-bodymap__name { margin: 0.7rem 0 0; font-family: var(--ct-serif); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; }
.ct-bodymap__name em { color: var(--ct-paper-soft); }
.ct-bodymap__meters { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0 0; }
.ct-bodymap__meters p { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.ct-dots { display: inline-flex; gap: 0.35rem; }
.ct-dots span { width: 0.85rem; height: 0.85rem; border: 1px solid var(--ct-paper); border-radius: 50%; }
.ct-dots span[data-on="true"] { background: var(--ct-red); border-color: var(--ct-red); }
.ct-bodymap__facts { display: grid; gap: 0.9rem; margin: 1.4rem 0 1.4rem; }
.ct-bodymap__facts dt { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-paper); }
.ct-bodymap__facts dd { margin: 0.25rem 0 0; font-family: var(--ct-serif); font-size: 1.15rem; line-height: 1.45; }
.ct-bodymap__note { margin: 1rem 0 0; font-size: 0.75rem; color: var(--ct-paper); }
.ct-bodymap__list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ct-bodymap__item { padding: 0.45rem 0.8rem; border: 1px solid var(--ct-thread); border-radius: 999px; background: none; color: var(--ct-paper-soft); font-size: 0.78rem; cursor: pointer; }
.ct-bodymap__item[aria-pressed="true"], .ct-bodymap__item:hover { border-color: var(--ct-red); color: var(--ct-ivory); }

/* places on the home page */
.ct-places { padding: clamp(6rem, 12vw, 10rem) var(--ct-gutter); border-top: 1px solid var(--ct-thread); }
.ct-places__head { max-width: 50rem; margin-bottom: 1.5rem; }

/* WordPress additions */
.ct-wp-page { padding: 8rem var(--ct-gutter) 5rem; max-width: 64rem; margin: 0 auto; }
.ct-wp-page .ct-article__body h2 { margin: 2.4rem 0 0.6rem; font-family: var(--ct-serif); font-weight: 500; font-size: 1.7rem; }
.ct-wp-page .ct-article__body a { color: var(--ct-red-text); }
.ct-article__body img { display: block; max-width: 34rem; height: auto; margin: 2rem 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-bar .ct-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ct-header { top: 46px; } }
