/* ==========================================================================
   RODRIGO ZAGO FOTOGRAFIA & FILME — DESIGN SYSTEM & ESTILO VISUAL
   Paleta e tipografia alinhadas à identidade visual da marca Rodrigo Zago
   ========================================================================== */

/* 1. VARIÁVEIS DE DESIGN & PALETA DE CORES */
:root {
  /* Cores Principais */
  /* Paleta da marca Rodrigo Zago: oliva #524F3D · grafite #2F2D2E · creme #EAE6DC · terracota #865E45 */
  --bg-canvas: #F6F3EC;          /* Creme claro (derivado do creme da marca) */
  --bg-surface: #EAE6DC;         /* Creme da marca para seções alternadas */
  --bg-surface-dark: #2F2D2E;    /* Grafite da marca para botões sólidos */
  --border-subtle: #D8D2C4;      /* Linhas divisórias ultrafinas */
  --border-active: #524F3D;      /* Oliva da marca (foco) */
  
  /* Tipografia */
  --text-primary: #2F2D2E;       /* Títulos e textos de alto contraste */
  --text-secondary: #57544B;     /* Leitura suave para corpo de texto */
  --text-muted: #8E8880;         /* Legendas e metadados */
  --accent-olive: #524F3D;       /* Verde oliva desbotado / tags */
  --accent-terracotta: #865E45;  /* Terracota suave */

  /* Famílias Tipográficas */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: 'Tenor Sans', sans-serif;

  /* Easing & Transições */
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;

  /* Espaçamentos & Layout */
  --container-max: 1280px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  overflow-x: hidden;
  position: relative;
}

/* Acessibilidade: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--text-primary);
  color: var(--bg-canvas);
  padding: 12px 20px;
  z-index: 9999;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
}

/* Foco visível acessível */
:focus-visible {
  outline: 2px solid var(--accent-olive);
  outline-offset: 4px;
}

/* Imagens responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links & Botões */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--transition-smooth);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 3. LAYOUT & CONTAINERS */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
}

.section-tagline {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-olive);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
}

/* 4. BOTÕES & INTERAÇÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: all var(--duration-normal) var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary-sm {
  white-space: nowrap;
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  padding: 10px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}
.btn-primary-sm:hover {
  background-color: var(--accent-olive);
  color: #FFFFFF;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  border: 1px solid var(--text-primary);
}
.btn-primary:hover {
  background-color: var(--accent-olive);
  border-color: var(--accent-olive);
}

/* Texto interno do botão sólido (ex.: "Enviar Nossa História") precisa contrastar com o fundo escuro */
.btn-primary .btn-text {
  color: var(--bg-canvas);
  padding: 0;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--text-primary);
  color: var(--bg-canvas);
}

.btn-text {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  padding: 16px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-text .arrow {
  transition: transform 0.3s ease;
}
.btn-text:hover .arrow {
  transform: translateX(6px);
}

.btn-block {
  width: 100%;
}

/* 5. HEADER & NAVEGAÇÃO */
/* Estado inicial: transparente sobre a foto do hero; ganha fundo creme ao rolar (.is-solid) ou com o menu mobile aberto */
.site-header.is-solid {
  background-color: rgba(246, 243, 236, 0.96);
  box-shadow: 0 4px 20px -8px rgba(47, 45, 46, 0.06);
  border-bottom-color: rgba(216, 210, 196, 0.8);
}
.site-header:not(.is-solid):not(:has(.mobile-toggle[aria-expanded="true"])) {
  background-color: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header:not(.is-solid):not(:has(.mobile-toggle[aria-expanded="true"])) .nav-link {
  color: var(--bg-surface);
}
.site-header:not(.is-solid):not(:has(.mobile-toggle[aria-expanded="true"])) .nav-link::after {
  background-color: var(--bg-surface);
}
.site-header:not(.is-solid):not(:has(.mobile-toggle[aria-expanded="true"])) .btn-primary-sm {
  background-color: transparent;
  border: 1px solid rgba(234, 230, 220, 0.7);
  color: var(--bg-surface);
}
.site-header:not(.is-solid):not(:has(.mobile-toggle[aria-expanded="true"])) .hamburger-line {
  background-color: var(--bg-surface);
}
.site-header:not(.is-solid):not(:has(.mobile-toggle[aria-expanded="true"])) .brand-logo {
  opacity: 0;
  pointer-events: none;
}
.brand-logo {
  transition: opacity 0.4s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 210, 196, 0.5);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  height: var(--header-height);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}

.nav-desktop {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: clamp(1.4rem, 2vw, 2.2rem);
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.brand-logo {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wordmark {
  display: block;
  height: 44px;
  width: auto;
  aspect-ratio: 3.8608 / 1;
  color: var(--accent-olive);
}

.nav-action-group {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: clamp(1.4rem, 2vw, 2.2rem);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.hamburger-line {
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2rem 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s var(--transition-smooth);
  z-index: 999;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--text-primary);
}
.mobile-nav-link.highlight {
  font-style: italic;
  color: var(--accent-terracotta);
}

.mobile-drawer-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.drawer-socials {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

/* 6. HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 0 6rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--bg-surface);
}

/* Fundo em tela cheia */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #1d1c17;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(29, 28, 23, 0.55) 0%, rgba(29, 28, 23, 0.38) 45%, rgba(29, 28, 23, 0.7) 100%);
}

.hero-cover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Animação suave de entrada editorial para os elementos do Hero */
@keyframes editorialFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-heading {
  margin: 0 0 2.2rem;
  line-height: 0;
  animation: editorialFadeUp 0.95s var(--transition-smooth) 0.1s both;
}
.hero-logo {
  width: clamp(260px, 46vw, 600px);
  height: auto;
  color: var(--bg-surface);
}

.hero-manifesto {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--bg-surface);
  max-width: 760px;
  margin-bottom: 1.4rem;
  animation: editorialFadeUp 1.05s var(--transition-smooth) 0.25s both;
}

.hero-subtext {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.8;
  color: rgba(234, 230, 220, 0.82);
  max-width: 540px;
  margin-bottom: 2.4rem;
  animation: editorialFadeUp 1.05s var(--transition-smooth) 0.4s both;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  animation: editorialFadeUp 1.05s var(--transition-smooth) 0.55s both;
}

.hero-section .btn-outline {
  color: var(--bg-surface);
  border-color: rgba(234, 230, 220, 0.7);
}
.hero-section .btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--bg-surface);
  color: var(--text-primary);
}
.hero-section .btn-text {
  color: var(--bg-surface);
}

/* Indicador de Scroll */
.scroll-invitation {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  text-align: center;
}

.scroll-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(234, 230, 220, 0.75);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(234, 230, 220, 0.2), var(--bg-surface));
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0.4); transform-origin: bottom; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 7. SEÇÃO SOBRE (ACOLHIMENTO HUMANO) */
.about-section {
  padding: clamp(5rem, 8vw, 9rem) 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.portrait-container {
  position: relative;
  padding: 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px -15px rgba(47, 45, 46, 0.05);
}

.portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.portrait-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
}
.portrait-caption .sub {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.editorial-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.highlight-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  border-left: 2px solid var(--accent-terracotta);
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.about-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
}

.personal-sign {
  display: flex;
  flex-direction: column;
}

.sign-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--text-primary);
}

.sign-city {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-olive);
}

/* 8. GALERIA EDITORIAL (MASONRY GRID) */
.gallery-section {
  padding: clamp(5rem, 8vw, 9rem) 0;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tab-btn {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 18px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.tab-btn.active {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background-color: var(--bg-surface);
}

/* Grid Editorial */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-card.hide {
  display: none;
}

/* Variações de Ritmo Editorial */
.item-tall {
  grid-column: span 4;
}
.item-standard {
  grid-column: span 4;
}
.item-wide {
  grid-column: span 8;
}

.gallery-btn {
  width: 100%;
  height: 100%;
  display: block;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--transition-smooth);
}

.item-tall .gallery-btn { aspect-ratio: 3 / 4.2; }
.item-standard .gallery-btn { aspect-ratio: 1 / 1; }
.item-wide .gallery-btn { aspect-ratio: 16 / 9; }

/* Overlay de Hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 45, 46, 0.75) 0%, rgba(47, 45, 46, 0.1) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: opacity 0.4s var(--transition-smooth);
  color: #FFFFFF;
}

.gallery-btn:hover img {
  transform: scale(1.04);
}
.gallery-btn:hover .card-overlay {
  opacity: 1;
}

.card-category {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #DFD7CB;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 4px 0;
}

.card-location {
  font-size: 0.85rem;
  color: #DFD7CB;
  font-weight: 300;
}

.view-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #FFFFFF;
  line-height: 1;
}

.gallery-cta {
  text-align: center;
  margin-top: 5rem;
}

.gallery-invitation {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* 9. SEÇÃO DEPOIMENTOS (ECOS DE AFETO) */
.testimonial-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.testimonial-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--border-subtle);
  margin-bottom: -1rem;
}

.testimonials-slider {
  position: relative;
  min-height: 220px;
}

.testimonial-item {
  display: none;
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth);
}

.testimonial-item.active {
  display: block;
  opacity: 1;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.author-name {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-style: normal;
  display: block;
}

.author-event {
  font-size: 0.85rem;
  color: var(--accent-olive);
  margin-top: 4px;
  display: block;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--text-primary);
  background-color: transparent;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--text-primary);
  transform: scale(1.2);
}

/* 10. A EXPERIÊNCIA (PASSOS) */
.experience-section {
  padding: clamp(5rem, 8vw, 9rem) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 4rem;
}

.step-card {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--border-subtle);
  display: block;
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* 11. DIÁRIO & CRÔNICAS */
.journal-section {
  padding: clamp(5rem, 8vw, 9rem) 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.journal-carousel-wrapper {
  position: relative;
  width: 100%;
}

.journal-carousel-controls {
  display: none;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.journal-card-link {
  display: block;
}

.journal-img-wrapper {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.5rem;
}

.journal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--transition-smooth);
}

.journal-card:hover .journal-img-wrapper img {
  transform: scale(1.03);
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.journal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.journal-excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.read-more {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
}

/* 12. CONTATO HUMANIZADO */
.contact-section {
  padding: clamp(5rem, 8vw, 9rem) 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}

.contact-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-direct-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-direct-info a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Formulário */
.intimate-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease, background-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--text-primary);
  background-color: #FFFFFF;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #B5AFA6;
  font-style: italic;
  font-weight: 300;
}

.form-select {
  cursor: pointer;
}

.field-error {
  font-size: 0.78rem;
  color: #A33B32;
  margin-top: 4px;
  min-height: 16px;
}

.form-success-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3rem 2.5rem;
  text-align: center;
}

.success-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.success-sign {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-terracotta);
}

/* 13. RODAPÉ MINIMALISTA */
.site-footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.footer-brand {
  margin-bottom: 1.25rem;
  line-height: 0;
}

.logo-monogram {
  display: block;
  height: 54px;
  width: 54px;
  color: var(--accent-terracotta);
}

.logo-wordmark--footer {
  height: 58px;
}

.footer-philosophy {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 380px;
  margin-bottom: 2rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-title {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-back-to-top {
  margin-top: 2rem;
}

.back-link {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.back-link:hover {
  color: var(--text-primary);
}

/* 14. LIGHTBOX DIALOG (MODERN WEB GUIDANCE) */
.lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
  overflow: visible;
}

.lightbox-dialog::backdrop {
  background: rgba(26, 24, 23, 0.88);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.dialog-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, color 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.dialog-close-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.15);
}

.dialog-close-btn:focus {
  outline: none;
}

.dialog-close-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.dialog-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  display: block;
  pointer-events: none;
  transition: stroke 0.2s ease;
}

.dialog-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.dialog-image-wrapper {
  max-height: 75vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.dialog-active-img {
  max-height: 75vh;
  max-width: 80vw;
  object-fit: contain;
  display: block;
}

.dialog-nav-btn {
  color: #FFFFFF;
  font-size: 3rem;
  line-height: 1;
  padding: 0 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.dialog-nav-btn:hover {
  transform: scale(1.15);
}

.dialog-details {
  text-align: center;
  color: #FBF9F5;
  margin-top: 1.5rem;
}

.dialog-category {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--border-subtle);
}

.dialog-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 4px 0;
}

.dialog-location {
  font-size: 0.85rem;
  color: #DFD7CB;
}

/* 15. RESPONSIVIDADE (MEDIA QUERIES) */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .portrait-container {
    max-width: 480px;
    margin: 0 auto;
  }
  .masonry-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .item-tall,
  .item-standard {
    grid-column: span 3;
  }
  .item-wide {
    grid-column: span 6;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .btn-primary-sm {
    padding: 9px 14px;
    font-size: 0.66rem;
  }
  .logo-monogram {
    height: 46px;
    width: 46px;
  }
  .nav-desktop,
  .desktop-only {
    display: none;
  }
  .brand-logo {
    grid-column: auto;
    justify-self: auto;
  }
  .nav-action-group {
    grid-column: auto;
    justify-self: auto;
    gap: 12px;
  }
  .mobile-toggle {
    display: flex;
  }
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .item-tall,
  .item-standard,
  .item-wide {
    grid-column: span 1;
  }
  .item-tall .gallery-btn,
  .item-standard .gallery-btn,
  .item-wide .gallery-btn {
    aspect-ratio: 4 / 5;
  }
  .journal-carousel-wrapper {
    position: relative;
    width: 100% !important;
    overflow: hidden;
  }

  .journal-grid {
    display: flex !important;
    width: 100% !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 1.25rem;
    margin: 0 !important;
    padding: 0 0 1rem 0 !important;
    scrollbar-width: none;
  }

  .journal-grid::-webkit-scrollbar {
    display: none;
  }

  .journal-grid .journal-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }

  .journal-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .dialog-nav-btn {
    display: none;
  }
}

/* Suporte para usuários com sensibilidade a movimentos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   16. DESTAQUES NA HOME & GALERIA POR LINHA DO TEMPO (galeria.html)
   ========================================================================== */
.highlights-carousel-wrapper {
  position: relative;
  width: 100%;
}

/* No desktop / PC: 6 fotos dispostas em 3 colunas x 2 linhas */
.highlights-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.highlights-grid .gallery-card,
.highlights-grid .item-tall,
.highlights-grid .item-standard,
.highlights-grid .item-wide {
  grid-column: span 1 !important;
  width: 100%;
}

.highlights-grid .gallery-btn {
  aspect-ratio: 3 / 4.2 !important;
  width: 100%;
  height: auto;
}

/* No tablet (769px a 992px): 2 colunas x 3 linhas */
@media (max-width: 992px) and (min-width: 769px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
}

/* Controles do carrossel ocultos por padrão no PC e Tablet */
.highlights-carousel-controls {
  display: none;
}

/* No celular / mobile (<= 768px): carrossel imersivo preenchendo a largura total */
@media (max-width: 768px) {
  .highlights-carousel-wrapper {
    position: relative;
    width: 100% !important;
    margin-top: 2rem;
    overflow: hidden;
  }

  .highlights-grid {
    display: flex !important;
    width: 100% !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 1.25rem;
    margin: 0 !important;
    padding: 0 !important;
    scrollbar-width: none; /* Firefox */
  }

  .highlights-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }

  .highlights-grid .gallery-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }

  .highlights-grid .gallery-btn {
    width: 100% !important;
    height: clamp(440px, 68vh, 600px) !important;
    aspect-ratio: unset !important;
    display: block !important;
  }

  .highlights-grid .gallery-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Exibe controles de navegação no mobile */
  .highlights-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
  }

  .carousel-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 12px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-nav-btn:active {
    transform: scale(0.9);
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--text-primary);
    background-color: transparent;
    transition: all 0.3s var(--transition-smooth);
    padding: 0;
    cursor: pointer;
  }

  .carousel-dot.active {
    background-color: var(--text-primary);
    transform: scale(1.3);
  }
}

.gallery-page-hero {
  padding: clamp(7rem, 12vw, 9.5rem) 0 3.5rem;
  text-align: center;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-page-hero .section-heading {
  margin: 0.5rem 0 1rem;
}

.gallery-timeline-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.timeline-nav-btn {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-nav-btn:hover,
.timeline-nav-btn.active {
  color: var(--bg-canvas);
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}

.gallery-section-block {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 5rem;
}

.gallery-section-block:last-of-type {
  border-bottom: none;
}

.timeline-header {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 0.6rem;
}

.timeline-date-badge::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: var(--accent-terracotta);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0.25rem 0 0.5rem;
}

.timeline-meta {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 300;
}



/* ==========================================================================
   CARDS DE DEPOIMENTO EDITORIAL NA GALERIA (PREENCHIMENTO DE ESPAÇOS EM BRANCO)
   ========================================================================== */
.gallery-quote-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: var(--border-radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-quote-card.item-tall {
  grid-column: span 4;
  aspect-ratio: 3 / 4.2;
  padding: 2.25rem 1.85rem;
}

.gallery-quote-card.item-wide {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
  padding: 2.75rem 3.5rem;
}

/* Variante Clara (Papiro Editorial) */
.gallery-quote-card.quote-light {
  background: #F4F1EA;
  border: 1px solid rgba(47, 45, 46, 0.12);
  color: #2F2D2E;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.gallery-quote-card.quote-light .quote-symbol {
  color: rgba(82, 79, 61, 0.22);
}

.gallery-quote-card.quote-light .quote-text {
  color: #2F2D2E;
}

.gallery-quote-card.quote-light .quote-divider {
  background: rgba(140, 83, 62, 0.35);
}

.gallery-quote-card.quote-light .quote-author {
  color: #2F2D2E;
}

.gallery-quote-card.quote-light .quote-meta {
  color: #736E65;
}

/* Variante Escura (Grafite Nobre Editorial) */
.gallery-quote-card.quote-dark {
  background: #252422;
  border: 1px solid rgba(234, 230, 220, 0.12);
  color: #FAF8F5;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-quote-card.quote-dark .quote-symbol {
  color: rgba(234, 230, 220, 0.25);
}

.gallery-quote-card.quote-dark .quote-text {
  color: #FAF8F5;
}

.gallery-quote-card.quote-dark .quote-divider {
  background: rgba(234, 230, 220, 0.3);
}

.gallery-quote-card.quote-dark .quote-author {
  color: #FAF8F5;
}

.gallery-quote-card.quote-dark .quote-meta {
  color: #B5B1A5;
}

/* Elementos Internos */
.quote-content-wrap {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-symbol {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.8;
  margin-bottom: 0.75rem;
  user-select: none;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.65;
  font-style: italic;
  margin: 0;
  font-weight: 400;
}

.gallery-quote-card.item-wide .quote-text {
  font-size: 1.35rem;
  max-width: 620px;
}

.quote-divider {
  width: 32px;
  height: 1px;
  margin: 1.25rem 0 1.1rem 0;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
  display: block;
}

.quote-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  display: block;
}

.gallery-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
  .gallery-quote-card.item-tall {
    grid-column: span 3;
    aspect-ratio: 3 / 4.2;
    padding: 1.75rem 1.25rem;
  }
  .gallery-quote-card.item-wide {
    grid-column: span 6;
    padding: 2.25rem 2rem;
  }
  .quote-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .gallery-quote-card.item-tall,
  .gallery-quote-card.item-wide {
    grid-column: span 1;
    aspect-ratio: auto;
    min-height: 270px;
    padding: 2.25rem 1.5rem;
  }
  .quote-text {
    font-size: 1.05rem;
  }
  .gallery-quote-card.item-wide .quote-text {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   17. SEÇÃO CINEMA & FILMES DE CASAMENTO (O CINEMA DO INVISÍVEL)
   ========================================================================== */
.cinema-section {
  padding: clamp(5rem, 8vw, 9rem) 0;
  background-color: var(--bg-canvas);
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.cinema-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
  margin-bottom: 0.5rem;
}

.cinema-tabs {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-surface);
  padding: 5px;
  border-radius: 40px;
  border: 1px solid var(--border-subtle);
}

.cinema-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.cinema-tab-btn:hover {
  color: var(--text-primary);
}

.cinema-tab-btn.active {
  background: var(--text-primary);
  color: #FFFFFF;
}

.cinema-carousel-wrapper {
  position: relative;
  width: 100%;
}

.cinema-carousel-controls {
  display: none;
}

.cinema-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.75rem;
  margin-top: 3rem;
}

.cinema-card {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cinema-card.hide {
  display: none !important;
}

.cinema-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: #121212;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.cinema-card:hover .cinema-media-wrapper {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.cinema-hover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition-smooth);
  pointer-events: none;
}

.cinema-card:hover .cinema-hover-video {
  transform: scale(1.03);
}

.cinema-audio-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FAF8F5;
  padding: 5px 11px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.cinema-card:hover .cinema-audio-badge,
.cinema-media-wrapper.playing .cinema-audio-badge {
  opacity: 1;
  transform: translateY(0);
}

.audio-badge-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-terracotta);
  flex-shrink: 0;
}

.cinema-info {
  margin-top: 1.5rem;
  text-align: left;
}

.cinema-category {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  display: block;
  margin-bottom: 0.35rem;
}

.cinema-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  color: var(--text-primary);
  font-weight: 400;
  margin: 0 0 0.4rem;
}

.cinema-caption {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

.cinema-cta {
  text-align: center;
  margin-top: 4rem;
}

.cinema-invitation {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* No tablet (769px a 900px): 1 coluna vertical com espaçamento elegante */
@media (max-width: 900px) and (min-width: 769px) {
  .cinema-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* No celular / mobile (<= 768px): carrossel horizontal imersivo com scroll-snap */
@media (max-width: 768px) {
  .cinema-carousel-wrapper {
    position: relative;
    width: 100% !important;
    margin-top: 2rem;
    overflow: hidden;
  }

  .cinema-grid {
    display: flex !important;
    width: 100% !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 1.25rem;
    margin: 0 !important;
    padding: 0.5rem 0 1rem 0 !important;
    scrollbar-width: none;
  }

  .cinema-grid::-webkit-scrollbar {
    display: none;
  }

  .cinema-grid .cinema-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }

  .cinema-grid .cinema-card.hide {
    display: none !important;
  }

  .cinema-grid .cinema-media-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }

  .cinema-grid .cinema-info {
    margin-top: 1.25rem;
    padding: 0 0.25rem;
  }

  .cinema-grid .cinema-title {
    font-size: 1.6rem;
  }

  .cinema-grid .cinema-caption {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* Exibe controles de navegação do carrossel no celular */
  .cinema-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
  }
}

/* Botão de Filme na Galeria */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-header-main {
  flex: 1 1 320px;
}

.inline-film-btn {
  padding: 10px 22px;
  background: #FFFFFF;
  border: 1px solid rgba(47, 45, 46, 0.15);
  color: #2F2D2E;
  font-size: 0.72rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.inline-film-btn:hover {
  background: #2F2D2E;
  color: #FFFFFF;
  border-color: #2F2D2E;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.inline-film-btn .play-icon {
  width: 28px;
  height: 28px;
}

.inline-film-btn--secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(47, 45, 46, 0.1);
  color: var(--text-secondary);
}

.inline-film-btn--secondary:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--accent-terracotta);
}

.inline-film-btn--secondary:hover .play-icon {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

/* ==========================================================================
   VIDEO DIALOG LIGHTBOX
   ========================================================================== */
.video-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 99999;
}

.video-dialog:not([open]) {
  display: none !important;
}

.video-dialog[open] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.video-dialog::backdrop {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInBackdrop 0.4s ease forwards;
}

.video-dialog-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
}

.video-close-btn {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.5rem);
  right: clamp(1.25rem, 3vw, 2.5rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, color 0.25s ease;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.video-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.video-close-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.15);
}

.video-close-btn:focus {
  outline: none;
}

.video-close-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.video-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  display: block;
  pointer-events: none;
  transition: stroke 0.2s ease;
}

.video-player-container {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.cinema-active-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-dialog-details {
  margin-top: 1.25rem;
  text-align: center;
  color: #FAF8F5;
}

.video-dialog-category {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  display: block;
  margin-bottom: 0.25rem;
}

.video-dialog-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
  margin: 0 0 0.25rem;
}

.video-dialog-subtitle {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #B5B1A5;
  font-weight: 300;
  margin: 0;
}

/* ==========================================================================
   MODAL DE LEITURA EDITORIAL DE CRÔNICAS
   ========================================================================== */
.journal-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 860px;
  width: 94%;
  max-height: 92vh;
  margin: auto;
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 99999;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.journal-modal:not([open]) {
  display: none !important;
}

.journal-modal[open] {
  display: flex !important;
  flex-direction: column;
}

.journal-modal::backdrop {
  background: rgba(18, 17, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInBackdrop 0.4s ease forwards;
}

.journal-modal-inner {
  position: relative;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  width: 100%;
  height: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  -webkit-overflow-scrolling: touch;
}

.journal-modal-close-btn {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -0.5rem;
  margin-right: -0.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.journal-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  transform: scale(1.08) rotate(90deg);
}

.journal-modal-close-btn:focus {
  outline: none;
}

.journal-modal-close-btn:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
}

.journal-modal-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  display: block;
  pointer-events: none;
}

.journal-modal-article {
  max-width: 700px;
  margin: 0 auto;
}

.journal-modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 1.25rem;
}

.journal-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.25;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.journal-modal-lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--accent-terracotta);
  padding-left: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.journal-modal-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin: 2rem 0 2.5rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

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

.journal-modal-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-weight: 300;
}

.journal-modal-body p.article-paragraph {
  margin-bottom: 1.6rem;
}

.journal-modal-body h3.article-subheading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  color: var(--text-primary);
  margin: 2.75rem 0 1rem;
  font-weight: 400;
}

.journal-modal-body blockquote.article-quote {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-terracotta);
  padding: 1.5rem 2rem;
  margin: 2.25rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* Timeline do Briefing dentro da Crônica */
.article-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}

.timeline-step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
}

.timeline-step .step-time {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent-terracotta);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}

.timeline-step .step-content strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.timeline-step .step-content p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.article-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-terracotta);
  font-size: 1.5rem;
  line-height: 1;
  top: -2px;
}

.journal-modal-footer {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.journal-modal-author .journal-author-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.journal-modal-author .journal-author-role {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin: 0;
}

/* ==========================================================================
   SISTEMA DE ANIMAÇÕES AO ROLAR A PÁGINA (SCROLL REVEAL EDITORIAL)
   ========================================================================== */

/* Ativado via JavaScript (apenas se o navegador suportar IntersectionObserver) */
html.has-scroll-reveal .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--transition-smooth),
              transform 0.85s var(--transition-smooth);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

/* Estado quando o elemento entra no campo visual ao rolar a página */
html.has-scroll-reveal .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Variação: Suave aproximação de escala (ideal para retratos e cards especiais) */
html.has-scroll-reveal .reveal.reveal-scale {
  transform: scale(0.96) translateY(24px);
  transition: opacity 0.95s var(--transition-smooth),
              transform 0.95s var(--transition-smooth);
}
html.has-scroll-reveal .reveal.reveal-scale.is-revealed {
  transform: scale(1) translateY(0);
}

/* Variação: Entrada lateral suave da esquerda (colunas de texto/intro) */
html.has-scroll-reveal .reveal.reveal-from-left {
  transform: translateX(-36px);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}
html.has-scroll-reveal .reveal.reveal-from-left.is-revealed {
  transform: translateX(0);
}

/* Variação: Entrada lateral suave da direita (colunas de formulário/texto) */
html.has-scroll-reveal .reveal.reveal-from-right {
  transform: translateX(36px);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}
html.has-scroll-reveal .reveal.reveal-from-right.is-revealed {
  transform: translateX(0);
}

/* Variação: Dissolução pura sem deslocamento (fade) */
html.has-scroll-reveal .reveal.reveal-fade {
  transform: none !important;
  transition: opacity 1.1s var(--transition-smooth);
}
html.has-scroll-reveal .reveal.reveal-fade.is-revealed {
  opacity: 1;
}

/* Ajustes para telas menores / celulares */
@media (max-width: 768px) {
  /* No celular, transforma deslocamentos laterais em suaves elevações verticais */
  html.has-scroll-reveal .reveal.reveal-from-left,
  html.has-scroll-reveal .reveal.reveal-from-right {
    transform: translateY(24px);
  }
  html.has-scroll-reveal .reveal.reveal-from-left.is-revealed,
  html.has-scroll-reveal .reveal.reveal-from-right.is-revealed {
    transform: translateY(0);
  }

  /* Garante que os cards dentro de carrosséis horizontais fiquem perfeitamente prontos para touch swipe */
  .highlights-carousel-wrapper.is-revealed .gallery-card,
  .cinema-carousel-wrapper.is-revealed .cinema-card,
  .journal-carousel-wrapper.is-revealed .journal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Acessibilidade: respeita preferências de redução de movimento do sistema operacional */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-heading,
  .hero-manifesto,
  .hero-subtext,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html.has-scroll-reveal .reveal,
  html.has-scroll-reveal .reveal.reveal-scale,
  html.has-scroll-reveal .reveal.reveal-from-left,
  html.has-scroll-reveal .reveal.reveal-from-right,
  html.has-scroll-reveal .reveal.reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


