/* Home visual system: Galeria-acervo clara. See docs/PADRAO_VISUAL_HOME.md. */
.home-redesign {
  --home-ink: #26333a;
  --home-ink-soft: #4d5960;
  --home-paper: #f4ead7;
  --home-paper-light: #fffaf1;
  --home-paper-deep: #ead9bc;
  --home-muted: #68747a;
  --home-blue: #2080b0;
  --home-blue-deep: #145a78;
  --home-red: #f04a2b;
  --home-red-deep: #b93424;
  --home-yellow: #efb329;
  --home-yellow-ink: #765300;
  --home-orange: #ef7424;
  --home-green: #40a052;
  --home-miriti: var(--home-yellow);
  --home-miriti-light: #f5ca61;
  --home-wine: var(--home-red);
  --home-wine-dark: var(--home-red-deep);
  --home-river: var(--home-blue);
  --home-line: rgba(32, 128, 176, .18);
  --home-shadow: 0 24px 64px rgba(64, 45, 31, .14);
  color: var(--home-ink);
  background: var(--home-paper);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.home-redesign .font-serif,
.home-redesign h1,
.home-redesign h2,
.home-redesign h3,
.home-redesign h4 {
  overflow: visible;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

.home-redesign .text-vinho { color: var(--home-red-deep) !important; }
.home-redesign .text-miriti2 { color: var(--home-yellow-ink) !important; }
.home-redesign .home-title .text-miriti2 { color: var(--home-yellow) !important; }

.home-redesign h1,
.home-redesign h2,
.home-redesign h3 {
  padding-block: .06em .1em;
  word-break: normal;
  overflow-wrap: normal;
}

.home-redesign .home-entry-header {
  color: var(--home-ink);
  background: linear-gradient(180deg, rgba(255, 250, 241, .92), rgba(255, 250, 241, .68)) !important;
  border-bottom: 1px solid rgba(32, 128, 176, .14) !important;
  backdrop-filter: blur(14px) saturate(.9) !important;
}

.home-redesign .home-entry-header.is-scrolled {
  color: var(--home-ink);
  background: rgba(255, 250, 241, .96) !important;
  border-color: var(--home-line) !important;
  box-shadow: 0 12px 32px rgba(64, 45, 31, .1) !important;
}

.home-redesign .home-entry-header nav a::after { background: var(--home-blue); }

.home-tour-menu-button,
.home-entry-header.is-scrolled .home-tour-menu-button {
  color: var(--home-ink);
  border-color: var(--home-line);
  background: rgba(255, 250, 241, .76);
}

.home-redesign .home-tour-hero {
  --hero-pointer-x: 68%;
  --hero-pointer-y: 24%;
  min-height: 100svh;
  color: var(--home-ink);
  background: var(--home-paper-deep) !important;
}

.home-redesign .home-tour-hero::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  background: url('../imagens/abaetetuba/hero-abaetetuba-desktop.webp') center / cover no-repeat;
  filter: saturate(.72) contrast(.94) sepia(.08);
  transform: scale(1.025);
  animation: homeHeroDrift 18s ease-in-out infinite alternate;
}

.home-tour-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at var(--hero-pointer-x) var(--hero-pointer-y), rgba(241, 196, 92, .23), transparent 20rem),
    linear-gradient(90deg, rgba(255, 250, 241, .97) 0%, rgba(255, 250, 241, .91) 34%, rgba(244, 234, 215, .72) 61%, rgba(41, 35, 30, .18) 100%),
    linear-gradient(0deg, rgba(244, 234, 215, .92), transparent 56%);
  transition: background .18s linear;
}

.home-tour-hero .home-hero-grid {
  z-index: 2;
  grid-template-columns: minmax(20rem, .66fr) minmax(0, 1.34fr) !important;
  gap: clamp(2rem, 4vw, 4.5rem) !important;
}

.home-tour-copy {
  color: var(--home-ink);
  animation: homeCopyIn .8s .08s cubic-bezier(.2, .75, .2, 1) both;
}

.home-redesign .home-tour-copy .home-title {
  max-width: 8.4ch;
  color: var(--home-ink);
  font-size: clamp(3.7rem, 6.5vw, 6.85rem);
  line-height: .9;
  letter-spacing: -.045em;
}

.home-redesign .home-tour-copy .home-title em {
  color: var(--home-red) !important;
  font-style: italic;
}

.home-redesign .home-tour-copy .home-title--official { max-width: 100%; font-size: clamp(3.2rem, 5.5vw, 6rem); line-height: .95; }
.home-title--official .home-title__name { display: block; max-width: 9ch; }
.home-title--official .home-title__scope { display: block; max-width: 22ch; margin-top: .65em; font-size: .4em; line-height: 1.2; letter-spacing: -.015em; }
@media (max-width: 1023px) {
  .home-portas-page .home-tour-copy .home-title--official > span { display: block !important; }
  .home-title--official .home-title__name { max-width: none; }
  .home-title--official .home-title__scope { max-width: 28ch; margin-top: .45em; font-size: .65em; }
}

.home-tour-copy > p:first-child {
  color: var(--home-blue-deep) !important;
}

.home-tour-copy > p:last-of-type {
  max-width: 36rem;
  color: rgba(41, 35, 30, .78);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}

.home-redesign .home-hero-cta {
  color: var(--home-ink);
  border-color: rgba(41, 35, 30, .28);
  background: rgba(255, 250, 241, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
}

.home-redesign .home-hero-cta--primary {
  color: var(--home-ink);
  border-color: var(--home-miriti);
  background: var(--home-miriti);
  box-shadow: 0 12px 26px rgba(126, 83, 13, .18);
}

.home-redesign .home-hero-cta:hover,
.home-redesign .home-hero-cta:focus-visible {
  color: var(--home-paper-light);
  border-color: var(--home-red-deep);
  background: var(--home-red-deep);
  box-shadow: 0 16px 32px rgba(185, 52, 36, .18);
}

.home-tour-stage {
  position: relative;
  border: 1px solid rgba(32, 128, 176, .22);
  background: rgba(255, 250, 241, .82);
  box-shadow: var(--home-shadow), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(16px) saturate(.8);
  animation: homeStageIn .9s .2s cubic-bezier(.2, .75, .2, 1) both;
}

.home-tour-stage::before {
  content: "";
  position: absolute;
  inset: .45rem .45rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--home-miriti), transparent);
  opacity: .7;
}

.home-tour-stage-kicker { color: var(--home-blue-deep); }
.home-tour-master-top span:last-child { color: var(--room-accent-ink, var(--home-blue-deep)); }

.home-tour-stage-head h2 {
  color: var(--home-ink);
  line-height: 1;
}

.home-tour-stage-head > div > p:last-child,
.home-tour-room-navigation span {
  color: var(--home-muted);
}

.home-tour-room-navigation button,
.home-tour-filters button {
  min-height: 2.75rem;
  color: var(--home-ink-soft);
  border-color: rgba(41, 35, 30, .2);
  background: rgba(255, 250, 241, .68);
}

.home-tour-room-navigation button:not(:disabled):hover,
.home-tour-room-navigation button:not(:disabled):focus-visible,
.home-tour-filters button:hover,
.home-tour-filters button:focus-visible {
  color: var(--home-paper-light);
  border-color: var(--home-blue);
  background: var(--home-blue-deep);
}

.home-tour-filters button.is-active {
  color: var(--home-ink);
  border-color: var(--home-miriti);
  background: var(--home-miriti);
}

.home-tour-master-card,
.home-tour-master-card:nth-child(n) {
  --room-accent: var(--home-yellow);
  --room-accent-ink: #6f4e08;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--room-accent) 38%, transparent);
  border-bottom: .25rem solid var(--room-accent);
  color: var(--home-ink);
  background: rgba(255, 250, 241, .94);
  box-shadow: 0 10px 24px rgba(64, 45, 31, .08);
  transition: transform .35s cubic-bezier(.2, .75, .2, 1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.home-tour-master-card[data-room-tone="artesanato"] { --room-accent: var(--home-orange); --room-accent-ink: #963c0d; }
.home-tour-master-card[data-room-tone="poesia"] { --room-accent: var(--home-green); --room-accent-ink: #216333; }
.home-tour-master-card[data-room-tone="musica"] { --room-accent: var(--home-blue); --room-accent-ink: var(--home-blue-deep); }
.home-tour-master-card[data-room-tone="danca"] { --room-accent: var(--home-red); --room-accent-ink: var(--home-red-deep); }
.home-tour-master-card[data-room-tone="multidisciplinar"] { --room-accent: var(--home-yellow); --room-accent-ink: #6f4e08; }

.home-tour-master-card:hover,
.home-tour-master-card:focus-within {
  z-index: 2;
  transform: translateY(-.45rem);
  border-color: var(--room-accent);
  background: var(--home-paper-light);
  box-shadow: 0 24px 48px rgba(64, 45, 31, .18);
}

.home-tour-room-link {
  position: absolute;
  inset: -1px;
  bottom: -.25rem;
  z-index: 5;
  display: block;
  border-radius: inherit;
}

.home-tour-room-link:focus-visible {
  outline-color: var(--room-accent);
  outline-offset: 4px;
}

.home-tour-master-top {
  color: var(--home-muted);
}

.home-tour-portrait {
  position: relative;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--room-accent) 32%, transparent);
  border-radius: 5rem 5rem .15rem .15rem / 2.6rem 2.6rem .15rem .15rem;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--room-accent) 24%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(255, 250, 241, .68), color-mix(in srgb, var(--room-accent) 14%, var(--home-paper)));
  transition: border-color .35s ease, background .35s ease;
}

.home-tour-portrait::after {
  content: "";
  position: absolute;
  inset: auto 10% 5% 10%;
  z-index: -1;
  height: 12%;
  border-radius: 50%;
  background: rgba(64, 45, 31, .22);
  filter: blur(10px);
  opacity: .5;
  transition: transform .45s ease, opacity .45s ease;
}

.home-tour-portrait img {
  position: relative;
  z-index: 1;
  object-position: center top;
  filter: saturate(.78) sepia(.08) contrast(1.02);
  transform: scale(1.01);
  transition: transform .55s cubic-bezier(.2, .75, .2, 1), filter .55s ease;
}

.home-tour-master-card:hover .home-tour-portrait img,
.home-tour-master-card:focus-within .home-tour-portrait img {
  filter: saturate(.92) sepia(.03) contrast(1.03);
  transform: scale(1.045);
}

.home-tour-master-card:hover .home-tour-portrait::after,
.home-tour-master-card:focus-within .home-tour-portrait::after {
  opacity: .72;
  transform: scaleX(1.12);
}

.home-tour-portrait--transparent {
  overflow: hidden;
  border-color: transparent;
  background: transparent;
}

.home-tour-portrait--transparent::before {
  content: "";
  position: absolute;
  inset: 8% 5% 10%;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--room-accent) 54%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--room-accent) 32%, transparent), rgba(244, 234, 215, .08) 48%, transparent 70%);
  box-shadow: 0 0 0 .55rem color-mix(in srgb, var(--room-accent) 7%, transparent);
  animation: homeNinaHalo 5.5s ease-in-out infinite;
}

.home-tour-portrait--transparent img {
  width: 142%;
  max-width: none;
  height: 112%;
  min-height: 0;
  align-self: end;
  justify-self: center;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 14px rgba(64, 45, 31, .24)) saturate(.9) contrast(1.02);
  animation: homeNinaFloat 5.5s ease-in-out infinite;
}

.home-tour-master-card--nina:hover .home-tour-portrait--transparent img,
.home-tour-master-card--nina:focus-within .home-tour-portrait--transparent img {
  filter: drop-shadow(0 20px 18px rgba(64, 45, 31, .3)) saturate(1) contrast(1.03);
  animation-play-state: paused;
  transform: translateY(-.3rem) scale(1.035);
}

.home-tour-portrait-placeholder {
  color: var(--room-accent-ink);
}

.home-tour-portrait-placeholder small {
  color: var(--home-muted);
}

.home-tour-portrait-placeholder > img {
  filter: none;
  object-position: center;
}

.home-tour-master-copy h3 {
  color: var(--home-ink);
  font-size: clamp(1.3rem, 1.65vw, 1.85rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.home-tour-master-copy p {
  color: var(--home-muted);
  line-height: 1.35;
}

.home-tour-master-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .55rem;
  border-top: 1px solid var(--home-line);
  color: var(--room-accent-ink);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-tour-master-entry i {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--room-accent) 54%, transparent);
  border-radius: 50%;
  font-style: normal;
  transition: color .3s ease, background .3s ease, transform .3s ease;
}

.home-tour-master-card:hover .home-tour-master-entry i,
.home-tour-master-card:focus-within .home-tour-master-entry i {
  color: var(--home-paper-light);
  background: var(--room-accent);
  transform: rotate(45deg);
}

.home-tour-master-card.is-room-entering {
  animation: homeRoomIn .48s calc(var(--room-order, 0) * 65ms) cubic-bezier(.2, .75, .2, 1) both;
}

.home-tour-continue {
  color: var(--home-blue-deep);
}

.home-redesign .home-section--saberes,
.home-redesign .home-section--about,
.home-redesign .home-quiz-section {
  background: var(--home-paper-light) !important;
}

.home-redesign .home-section--saberes h2,
.home-redesign .home-section--about h2,
.home-redesign .home-curatorial-method h2,
.home-redesign .home-quiz-card h2 {
  line-height: .94;
  letter-spacing: -.04em;
}

.home-redesign .home-saber-card,
.home-redesign .home-saber-card:nth-child(n) {
  --path-accent: var(--home-blue);
  --path-ink: var(--home-blue-deep);
  --path-soft: rgba(32, 128, 176, .08);
  border-color: var(--home-line);
  background: linear-gradient(145deg, var(--home-paper-light), var(--home-paper)) !important;
}

.home-redesign .home-saber-card[data-saber-tone="artesanato"],
.home-redesign .saber-dialog--artesanato { --path-accent: var(--home-orange); --path-ink: #963c0d; --path-soft: rgba(239, 116, 36, .1); }
.home-redesign .home-saber-card[data-saber-tone="poesia"],
.home-redesign .saber-dialog--poesia { --path-accent: var(--home-green); --path-ink: #216333; --path-soft: rgba(64, 160, 82, .1); }
.home-redesign .home-saber-card[data-saber-tone="musica"],
.home-redesign .saber-dialog--musica { --path-accent: var(--home-blue); --path-ink: var(--home-blue-deep); --path-soft: rgba(32, 128, 176, .1); }
.home-redesign .home-saber-card[data-saber-tone="danca"],
.home-redesign .saber-dialog--danca { --path-accent: var(--home-red); --path-ink: var(--home-red-deep); --path-soft: rgba(240, 74, 43, .1); }

.home-redesign .home-saber-card > .absolute { background: var(--path-soft) !important; }

.home-redesign .home-saber-card h3,
.home-redesign .home-saber-card__title {
  color: var(--path-ink) !important;
}

.home-redesign .home-saber-card:hover,
.home-redesign .home-saber-card:focus-visible {
  border-color: var(--path-accent);
  box-shadow: var(--home-shadow);
}

.home-redesign .saber-glyph {
  filter: sepia(.22) saturate(.62) contrast(1.02);
}

.home-redesign .saber-master-card-placeholder {
  display: grid;
  min-height: 10.75rem;
  place-items: center;
  align-content: center;
  gap: .45rem;
  border-radius: 1.1rem;
  color: var(--path-ink);
  background: linear-gradient(145deg, var(--home-paper-light), var(--path-soft));
  text-align: center;
}

.home-redesign .saber-master-card-placeholder img { width: 100%; height: 9rem; object-fit: cover; border-radius: .85rem; }

.home-redesign .home-saber-card:hover .saber-glyph,
.home-redesign .home-saber-card:focus-visible .saber-glyph {
  filter: sepia(.12) saturate(.82) contrast(1.04) drop-shadow(0 14px 18px rgba(64, 45, 31, .16));
}

.home-redesign .home-curatorial-method {
  color: var(--home-ink) !important;
  background:
    linear-gradient(90deg, rgba(32, 128, 176, .05) 1px, transparent 1px) 0 0 / 4rem 4rem,
    var(--home-paper-deep) !important;
}

.home-redesign .home-curatorial-method::before {
  background: radial-gradient(circle at 8% 10%, rgba(215, 155, 33, .16), transparent 24rem) !important;
}

.home-redesign .home-curatorial-method::after {
  height: .25rem;
  background: linear-gradient(90deg, var(--home-blue), var(--home-red), var(--home-yellow), var(--home-green), var(--home-orange));
}

.home-redesign .home-curatorial-method h2,
.home-redesign .home-curatorial-method article h3 {
  color: var(--home-ink) !important;
  line-height: .98;
}

.home-redesign .home-curatorial-method > div > div:first-child > p:first-child,
.home-redesign .home-curatorial-method article span {
  color: var(--home-blue-deep) !important;
}

.home-redesign .home-curatorial-method p,
.home-redesign .home-curatorial-method article p {
  color: rgba(41, 35, 30, .72) !important;
  text-shadow: none;
}

.home-redesign .home-curatorial-method article {
  --method-accent: var(--home-blue);
  border-color: color-mix(in srgb, var(--method-accent) 28%, transparent) !important;
  color: var(--home-ink) !important;
  background: rgba(255, 250, 241, .62) !important;
  box-shadow: inset .25rem 0 0 var(--method-accent) !important;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.home-redesign .home-curatorial-method article:nth-child(1) { --method-accent: var(--home-red); }
.home-redesign .home-curatorial-method article:nth-child(2) { --method-accent: var(--home-yellow); }
.home-redesign .home-curatorial-method article:nth-child(3) { --method-accent: var(--home-green); }
.home-redesign .home-curatorial-method article:nth-child(4) { --method-accent: var(--home-blue); }

.home-redesign .home-curatorial-method article:hover {
  transform: translateY(-.25rem);
  background: rgba(255, 250, 241, .92) !important;
  box-shadow: inset .25rem 0 0 var(--method-accent), 0 18px 36px rgba(64, 45, 31, .1) !important;
}

.home-redesign .home-quiz-section {
  background: var(--home-paper) !important;
}

.home-redesign .home-quiz-card,
.home-redesign section[aria-labelledby="quiz-home-title"] > div {
  color: var(--home-ink) !important;
  border: 1px solid var(--home-line);
  border-left: .35rem solid var(--home-blue);
  background: linear-gradient(120deg, var(--home-paper-light), var(--home-paper-deep)) !important;
  box-shadow: var(--home-shadow);
}

.home-redesign .home-quiz-card p:first-child {
  color: var(--home-blue-deep) !important;
}

.home-redesign .home-quiz-card p:last-child {
  color: rgba(41, 35, 30, .72) !important;
}

.home-redesign .home-quiz-card > a {
  color: var(--home-paper-light);
  background: var(--home-red-deep);
}

.home-redesign .home-about-copy .grid article {
  border-color: var(--home-line);
  background: var(--home-paper);
}

.home-redesign .home-about-copy .grid article:hover {
  border-color: rgba(32, 128, 176, .42);
}

.home-redesign .home-about-media {
  box-shadow: var(--home-shadow);
}

.home-redesign footer {
  color: var(--home-muted) !important;
  border-color: var(--home-line) !important;
  background: var(--home-paper-deep) !important;
}

.home-redesign footer strong {
  color: var(--home-ink) !important;
}

.home-redesign footer nav a {
  color: var(--home-paper-light) !important;
  background: var(--home-blue-deep) !important;
}

.home-room-index-item__portrait--transparent,
.saber-master-card--nina {
  background: transparent !important;
}

.home-room-index-item__portrait--transparent img,
.saber-master-card--nina > img {
  object-fit: contain !important;
  filter: drop-shadow(0 8px 8px rgba(64, 45, 31, .2)) saturate(.9);
}

.home-redesign .reveal-item {
  opacity: 0 !important;
  transform: translateY(1.4rem) !important;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1) !important;
}

.home-redesign .reveal-item.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

.home-redesign .home-saber-card.reveal-item.is-visible:hover,
.home-redesign .home-saber-card.reveal-item.is-visible:focus-visible {
  transform: translateY(-.4rem) !important;
}

.home-redesign .saberes-grid .reveal-item:nth-child(2),
.home-redesign .home-curatorial-method article.reveal-item:nth-child(2) { transition-delay: 80ms !important; }
.home-redesign .saberes-grid .reveal-item:nth-child(3),
.home-redesign .home-curatorial-method article.reveal-item:nth-child(3) { transition-delay: 160ms !important; }
.home-redesign .saberes-grid .reveal-item:nth-child(4),
.home-redesign .home-curatorial-method article.reveal-item:nth-child(4) { transition-delay: 240ms !important; }

@keyframes homeCopyIn {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

@keyframes homeStageIn {
  from { opacity: 0; transform: translateY(1.5rem) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes homeHeroDrift {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-.35%, -.25%, 0); }
}

@keyframes homeRoomIn {
  from { opacity: 0; transform: translateY(.8rem); }
  to { opacity: 1; transform: none; }
}

@keyframes homeNinaFloat {
  0%, 100% { transform: translateY(0) scale(1.01); }
  50% { transform: translateY(-.35rem) scale(1.018); }
}

@keyframes homeNinaHalo {
  0%, 100% { opacity: .62; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 1100px) {
  .home-tour-hero .home-hero-grid {
    grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr) !important;
  }
}

@media (max-width: 1023px) {
  .home-tour-hero .home-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .home-tour-copy {
    max-width: 42rem;
  }
}

@media (max-width: 760px) {
  .home-redesign .home-entry-header {
    background: linear-gradient(180deg, rgba(255, 250, 241, .96), rgba(255, 250, 241, .78)) !important;
  }

  .home-redesign .home-tour-hero::before {
    background-image: url('../imagens/abaetetuba/hero-abaetetuba-mobile.webp');
    background-position: center;
  }

  .home-tour-overlay {
    background:
      radial-gradient(circle at var(--hero-pointer-x) var(--hero-pointer-y), rgba(241, 196, 92, .2), transparent 15rem),
      linear-gradient(180deg, rgba(255, 250, 241, .9) 0%, rgba(244, 234, 215, .78) 38%, rgba(244, 234, 215, .9) 100%);
  }

  .home-redesign .home-tour-copy .home-title {
    max-width: 8.5ch;
    font-size: clamp(3rem, 13vw, 4.35rem);
    line-height: .92;
  }

  .home-tour-stage {
    background: rgba(255, 250, 241, .9);
  }

  .home-tour-master-card {
    min-height: 18.5rem;
  }

  .home-tour-master-copy h3 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 1;
  }

  .home-tour-portrait--transparent {
    overflow: hidden;
  }

  .home-tour-continue {
    color: var(--home-blue-deep);
  }

  .home-redesign .home-section--saberes h2,
  .home-redesign .home-section--about h2 {
    line-height: .96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-redesign .home-tour-hero::before,
  .home-tour-copy,
  .home-tour-stage,
  .home-tour-master-card,
  .home-tour-portrait--transparent::before,
  .home-tour-portrait--transparent img {
    animation: none !important;
  }

  .home-redesign .reveal-item,
  .home-redesign .reveal-item.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

html.a11y-reduced-motion .home-redesign .home-tour-hero::before,
html.a11y-reduced-motion .home-tour-copy,
html.a11y-reduced-motion .home-tour-stage,
html.a11y-reduced-motion .home-tour-master-card,
html.a11y-reduced-motion .home-tour-portrait--transparent::before,
html.a11y-reduced-motion .home-tour-portrait--transparent img {
  animation: none !important;
}

/* Passaporte Cultural: same visual language as the public ecosystem. */
.home-passport-scrim {
  background: rgba(38, 51, 58, .36);
  backdrop-filter: blur(5px);
}

.home-passport-aside {
  width: min(30rem, 100%);
  color: var(--home-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(239, 179, 41, .17), transparent 16rem),
    linear-gradient(180deg, var(--home-paper-light), var(--home-paper));
  border-left: 1px solid rgba(32, 128, 176, .2);
  box-shadow: -28px 0 80px rgba(38, 51, 58, .22);
}

.home-passport-aside::before {
  content: "";
  position: fixed;
  inset: 0 0 auto auto;
  z-index: 2;
  width: min(30rem, 100%);
  height: .35rem;
  background: linear-gradient(90deg, var(--home-blue), var(--home-red), var(--home-yellow), var(--home-green), var(--home-orange));
}

.home-passport-aside__head {
  align-items: center;
  padding-top: .4rem;
  border-color: rgba(32, 128, 176, .18);
}

.home-passport-aside__title {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.home-passport-aside__title > span {
  width: 3rem;
  height: 3rem;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid rgba(32, 128, 176, .22);
  border-radius: 50%;
  color: var(--home-blue-deep);
  background: rgba(32, 128, 176, .08);
}

.home-passport-aside__head p {
  color: var(--home-blue-deep);
  letter-spacing: .14em;
}

.home-passport-aside__head h2 {
  padding-block: .04em .1em;
  color: var(--home-ink);
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(2.15rem, 7vw, 2.8rem);
  line-height: 1;
}

.home-passport-aside__head > button {
  border-color: rgba(32, 128, 176, .22);
  color: var(--home-blue-deep);
  background: rgba(255, 250, 241, .72);
}

.home-passport-aside__head > button:hover {
  color: #fff;
  border-color: var(--home-red-deep);
  background: var(--home-red-deep);
  transform: rotate(8deg);
}

.home-passport-summary {
  border: 1px solid rgba(32, 128, 176, .18);
  border-top: .3rem solid var(--home-blue);
  color: var(--home-ink);
  background: linear-gradient(145deg, rgba(255, 250, 241, .96), rgba(234, 217, 188, .78));
  box-shadow: 0 20px 48px rgba(38, 51, 58, .12);
}

.home-passport-summary::after {
  border-color: rgba(239, 179, 41, .3);
  box-shadow: 0 0 0 2rem rgba(239, 179, 41, .07), 0 0 0 4rem rgba(239, 179, 41, .035);
}

.home-passport-summary > p { color: var(--home-blue-deep); }
.home-passport-summary h3 { color: var(--home-ink); line-height: 1; }
.home-passport-progress { background: rgba(32, 128, 176, .13); }
.home-passport-progress span { background: linear-gradient(90deg, var(--home-blue), var(--home-green), var(--home-yellow)); }

.home-passport-metrics {
  gap: .55rem;
}

.home-passport-metrics div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .1rem .45rem;
  border-color: rgba(32, 128, 176, .14);
  background: rgba(255, 250, 241, .64);
}

.home-passport-metrics .gallery-icon {
  grid-row: 1 / span 2;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--home-blue);
}

.home-passport-metrics strong {
  color: var(--home-ink);
  font-family: "Libre Caslon Display", Georgia, serif;
  line-height: 1;
}

.home-passport-metrics span {
  color: var(--home-muted);
}

.home-passport-seal {
  border-color: rgba(32, 128, 176, .22);
  color: var(--home-blue-deep);
  background: var(--home-yellow);
  box-shadow: 0 12px 28px rgba(38, 51, 58, .14), 0 0 0 .55rem rgba(32, 128, 176, .06);
}

.home-passport-guest-copy h3,
.home-passport-form > p {
  color: var(--home-ink);
}

.home-passport-form > p {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--home-blue-deep);
}

.home-passport-form > p::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--home-red);
  box-shadow: .8rem 0 0 var(--home-yellow);
  margin-right: .75rem;
}

.home-passport-form label > span { color: var(--home-blue-deep); }

.home-passport-form input[type="email"],
.home-passport-form input[type="password"],
.home-passport-form input[type="text"] {
  border-color: rgba(32, 128, 176, .2);
  border-radius: .8rem;
  color: var(--home-ink);
  background: rgba(255, 250, 241, .86);
}

.home-passport-checkbox {
  border-color: rgba(32, 128, 176, .16);
  border-radius: .8rem;
  background: rgba(32, 128, 176, .045);
}

.home-passport-checkbox span { color: var(--home-muted) !important; }

.home-passport-submit {
  color: #fff;
  background: var(--home-red-deep);
  box-shadow: 0 12px 24px rgba(185, 52, 36, .16);
}

.home-passport-submit:hover {
  background: var(--home-red-deep);
  transform: translateY(-2px);
}

.home-passport-links a {
  border-color: rgba(32, 128, 176, .2);
  border-radius: 999px;
  color: var(--home-blue-deep);
  background: rgba(255, 250, 241, .68);
}

.home-passport-links a:hover {
  color: #fff;
  border-color: var(--home-blue-deep);
  background: var(--home-blue-deep);
}

.home-passport-register a,
.home-passport-errors,
.home-passport-status.is-error { color: var(--home-red-deep); }

.home-passport-status {
  border-color: var(--home-blue);
  border-radius: .65rem;
  color: var(--home-blue-deep);
  background: rgba(32, 128, 176, .08);
}

/* Passaporte em tres estados: capa, abertura e caderneta aberta. */
.cultural-passport-book {
  position: relative;
  height: 11.5rem;
  margin-top: 1rem;
  perspective: 900px;
}

.cultural-passport-book__spread {
  position: absolute;
  inset: .35rem 0 .35rem .3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(32, 128, 176, .25);
  border-radius: .45rem;
  background: var(--home-paper-light);
  box-shadow: 0 .85rem 1.5rem rgba(38, 51, 58, .14);
  overflow: hidden;
}

.cultural-passport-book__spread::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(38, 51, 58, .28), transparent);
}

.cultural-passport-book__page {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .8rem;
  text-align: center;
}

.cultural-passport-book__page--left {
  color: var(--home-ink);
  background: linear-gradient(130deg, #fffdf7, var(--home-paper));
}

.cultural-passport-book__eyebrow {
  color: var(--home-blue-deep);
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cultural-passport-book__arch {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  margin: .45rem 0;
  place-items: center;
  border: 1px solid rgba(160, 43, 43, .35);
  border-radius: 1.5rem 1.5rem .28rem .28rem;
  color: var(--home-red-deep);
  background: rgba(239, 179, 41, .18);
}

.cultural-passport-book__page strong {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: .95;
}

.cultural-passport-book__page small,
.cultural-passport-book__page em {
  margin-top: .28rem;
  color: var(--home-muted);
  font-size: .54rem;
  font-style: normal;
  line-height: 1.35;
}

.cultural-passport-book__page em { color: var(--home-red-deep); }

.cultural-passport-book__page--right {
  background:
    radial-gradient(circle at 50% 55%, rgba(239, 179, 41, .17), transparent 56%),
    linear-gradient(130deg, var(--home-paper), #fffdf7);
}

.cultural-passport-book__page--right img {
  width: min(100%, 7.5rem);
  height: 4.7rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cultural-passport-book__page--right span {
  max-width: 16ch;
  margin-top: .25rem;
  color: var(--home-blue-deep);
  font-size: .51rem;
  font-weight: 700;
  line-height: 1.3;
}

.cultural-passport-book__cover {
  position: absolute;
  inset: .05rem 0 .05rem 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transform-origin: left center;
  border: 1px solid rgba(21, 16, 12, .38);
  border-radius: .25rem .65rem .65rem .25rem;
  color: var(--home-paper-light);
  background:
    linear-gradient(90deg, rgba(21, 16, 12, .24), transparent 10%),
    var(--home-red-deep);
  box-shadow: .7rem .65rem 1.25rem rgba(38, 51, 58, .22);
  backface-visibility: hidden;
  transition: transform .8s cubic-bezier(.22, .75, .2, 1), box-shadow .8s ease;
}

.cultural-passport-book__cover > span {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border: 1px solid rgba(244, 234, 215, .62);
  border-radius: .35rem;
  color: var(--home-miriti);
}

.cultural-passport-book__cover strong {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: .9;
  text-align: center;
}

.home-passport-aside.is-open .cultural-passport-book__cover {
  box-shadow: -.2rem .65rem 1.1rem rgba(38, 51, 58, .14);
  transform: rotateY(-164deg);
}

.home-passport-aside.is-open .cultural-passport-book__page--left > *,
.home-passport-aside.is-open .cultural-passport-book__page--right > * {
  animation: passportPageAppear .45s .45s both;
}

@keyframes passportPageAppear {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .home-entry-header .mobile-header-row { grid-template-columns: minmax(0, 1fr) 5rem; }
  .home-entry-header .home-tour-menu-button {
    width: 5rem;
    min-width: 5rem;
    max-width: 5rem;
    flex: 0 0 5rem;
    white-space: nowrap;
  }
  .home-passport-metrics { grid-template-columns: repeat(2, 1fr); }
  .home-passport-aside__title > span { width: 2.65rem; height: 2.65rem; }
  .cultural-passport-book { height: 10rem; }
  .cultural-passport-book__page { padding: .55rem; }
  .cultural-passport-book__page--right img { width: 6.2rem; }
  .cultural-passport-book__cover { transform-origin: left center; }
}

@media (prefers-reduced-motion: reduce) {
  .cultural-passport-book__cover { transition: none; }
  .home-passport-aside.is-open .cultural-passport-book__page--left > *,
  .home-passport-aside.is-open .cultural-passport-book__page--right > * { animation: none; }
}
