.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0 1.5rem;
  height: 79px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 2.3rem;
  width: auto;
  display: block;
  filter: brightness(0);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  color: rgba(10, 22, 40, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0a1628;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #0a1628;
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link:active {
  transform: scale(0.95);
}

.nav-dropdown-trigger {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-dropdown-trigger.open .dropdown-arrow,
.nav-dropdown-trigger:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.97);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.07),
    0 16px 48px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Ponteiro superior */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-right: none;
  border-bottom: none;
}

.nav-dropdown-trigger.open .dropdown-menu,
.nav-dropdown-trigger:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Animação escalonada dos itens — apenas no desktop */
.nav .nav-dropdown-trigger.open .dropdown-item,
.nav .nav-dropdown-trigger:hover .dropdown-item {
  animation: dropItemIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav .nav-dropdown-trigger.open .dropdown-item:nth-child(1) { animation-delay: 0.03s; }
.nav .nav-dropdown-trigger.open .dropdown-item:nth-child(2) { animation-delay: 0.07s; }
.nav .nav-dropdown-trigger.open .dropdown-item:nth-child(3) { animation-delay: 0.11s; }
.nav .nav-dropdown-trigger.open .dropdown-item:nth-child(4) { animation-delay: 0.15s; }
.nav .nav-dropdown-trigger.open .dropdown-item:nth-child(5) { animation-delay: 0.19s; }

@keyframes dropItemIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Label de grupo */
.dropdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #bbb;
  padding: 0.5rem 0.9rem 0.25rem;
  display: block;
}

.dropdown-sep {
  height: 1px;
  background: #f0f0f0;
  margin: 0.3rem 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.9rem;
  color: rgba(15, 20, 35, 0.65);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
  position: relative;
  letter-spacing: 0.01em;
}

/* Reset button styles when used as dropdown-item */
button.dropdown-item {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  width: 100%;
  text-align: left;
  color: rgba(15, 20, 35, 0.65);
}

/* Ícone SVG pequeno por item */
.dropdown-item__icon {
  width: 14px;
  height: 14px;
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
  color: #333;
}

.dropdown-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 55%;
  background: #333;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0;
}

.dropdown-item:hover {
  background: #f4f4f6;
  color: #0a0f1e;
  padding-left: 1.1rem;
}

.dropdown-item:hover .dropdown-item__icon {
  opacity: 0.7;
}

.dropdown-item:hover::after {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nav-link:hover .nav-icon {
  transform: translateY(-1px);
}

.btn-livro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: #0d2b4e;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 18px rgba(13, 43, 78, 0.35);
  transition: background 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-livro:hover {
  background: #153a63;
  box-shadow: 0 0 28px rgba(13, 43, 78, 0.55);
}

.btn-livro:active {
  transform: scale(0.95);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-mobile-group {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0a1628;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-link,
.mobile-menu .nav-dropdown-trigger {
  color: rgba(10, 22, 40, 0.75);
}

.mobile-menu .btn-livro {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.footer {
  background: linear-gradient(180deg, #060e20 0%, #030812 50%, #010408 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
}

.footer-grid::after {
  content: '';
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col:not(:last-child) {
  position: relative;
}

@media (min-width: 769px) {
  .footer-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  }
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  position: relative;
  padding-bottom: 0.5rem;
  line-height: 1;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.footer-logo {
  height: 44px;
  width: auto;
  align-self: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 4px;
}

.footer-logo:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.footer-credit {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1;
}

.footer-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.5;
  margin: 0;
}

.footer-partner-logo {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.footer-partner-name {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* ══ Parceria Modal ══ */
.parceria-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.parceria-overlay.parceria-visible {
  opacity: 1;
  visibility: visible;
}

.parceria-overlay.parceria-visible .parceria-modal {
  transform: scale(1) translateY(0);
}

.parceria-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem 2rem 1.6rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.parceria-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.parceria-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #222;
}

.parceria-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.parceria-logo-wrap {
  background: #f5f5f5;
  border-radius: 14px;
  padding: 0.6rem;
  animation: parceriaLogoPop 0.6s ease;
}

.parceria-logo {
  height: 36px;
  width: auto;
  display: block;
}

@keyframes parceriaLogoPop {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.parceria-plus {
  color: #ccc;
  flex-shrink: 0;
  animation: parceriaPulse 2s ease-in-out infinite;
}

@keyframes parceriaPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.parceria-label-top {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #aaa;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.parceria-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin: 0 0 0.35rem;
}

.parceria-desc strong {
  color: #333;
  font-weight: 600;
}

.parceria-desc-sub {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  margin: 0 0 1rem;
}

.parceria-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #b87333;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s;
  margin-bottom: 1rem;
}

.parceria-contact:hover {
  color: #a0642a;
}

.parceria-btn {
  display: block;
  margin: 0 auto;
  padding: 0.5rem 1.4rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: transparent;
  color: #888;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.parceria-btn:hover {
  background: #f5f5f5;
  color: #555;
  border-color: #bbb;
}

.parceria-btn:active {
  transform: scale(0.97);
}

html.dark-mode .parceria-modal {
  background: #1e1e1e;
}

html.dark-mode .parceria-close {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

html.dark-mode .parceria-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

html.dark-mode .parceria-logo-wrap {
  background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .parceria-plus {
  color: rgba(255, 255, 255, 0.2);
}

html.dark-mode .parceria-label-top {
  color: rgba(255, 255, 255, 0.3);
}

html.dark-mode .parceria-desc {
  color: rgba(255, 255, 255, 0.5);
}

html.dark-mode .parceria-desc strong {
  color: #eee;
}

html.dark-mode .parceria-desc-sub {
  color: rgba(255, 255, 255, 0.3);
}

html.dark-mode .parceria-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
}

html.dark-mode .parceria-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ══ Em Desenvolvimento Modal ══ */
.soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.soon-overlay.soon-visible {
  opacity: 1;
  visibility: visible;
}

.soon-overlay.soon-visible .soon-modal {
  transform: scale(1) translateY(0);
}

/* ══ Dev FAB + Modal ══ */

.dev-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #d4875e;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(212, 135, 94, 0.45);
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
}

.dev-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(212, 135, 94, 0.6);
  background: #c9774e;
}

.dev-fab:active {
  transform: scale(0.93);
}

.dev-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dev-overlay.dev-visible {
  opacity: 1;
  visibility: visible;
}

.dev-overlay.dev-visible .dev-modal {
  transform: scale(1) translateY(0);
}

.dev-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem 2rem 1.8rem;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dev-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.dev-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #222;
}

.dev-icon {
  margin-bottom: 0.9rem;
  color: #d4875e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}

.dev-body {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  text-align: left;
}

.dev-body p {
  margin: 0 0 0.6rem;
}

.dev-body p:last-child {
  margin-bottom: 0;
}

.dev-thanks {
  font-weight: 600;
  color: #333;
  margin-top: 0.8rem;
}

.dev-follow {
  font-weight: 600;
  color: #444;
  margin: 0.8rem 0 0.6rem;
}

.dev-social {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.dev-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b87333;
  text-decoration: none;
  transition: color 0.2s;
  width: fit-content;
}

.dev-social-link:hover {
  color: #a0642a;
}

html.dark-mode .dev-modal {
  background: #1e1e1e;
}

html.dark-mode .dev-close {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

html.dark-mode .dev-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

html.dark-mode .dev-icon {
  color: #d4875e;
}

html.dark-mode .dev-title {
  color: #f0f0f0;
}

html.dark-mode .dev-body {
  color: rgba(255, 255, 255, 0.55);
}

html.dark-mode .dev-thanks {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .dev-fab {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .dev-fab svg {
    width: 20px;
    height: 20px;
  }
}

.soon-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.soon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.soon-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #222;
}

.soon-icon {
  margin-bottom: 1rem;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.soon-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  margin: 0 0 0.15rem;
  font-family: 'Inter', sans-serif;
}

.soon-desc-sub {
  font-size: 0.82rem;
  color: #aaa;
  line-height: 1.5;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

html.dark-mode .soon-modal {
  background: #1e1e1e;
}

html.dark-mode .soon-close {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

html.dark-mode .soon-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

html.dark-mode .soon-icon {
  color: rgba(255, 255, 255, 0.15);
}

html.dark-mode .soon-title {
  color: #f0f0f0;
}

html.dark-mode .soon-desc {
  color: rgba(255, 255, 255, 0.45);
}

html.dark-mode .soon-desc-sub {
  color: rgba(255, 255, 255, 0.3);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-link {
  position: relative;
  padding: 0.15rem 0;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.25s ease, padding-left 0.25s ease;
  width: fit-content;
  display: inline-block;
  line-height: 1.4;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.footer-link:hover {
  color: #fff;
  background: none;
  padding-left: 14px;
}

.footer-link:hover::before {
  width: 8px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.25s ease;
  width: fit-content;
  padding: 0.15rem 0;
}

.footer-contact:hover {
  color: #fff;
}

.contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-contact:hover .contact-icon {
  opacity: 1;
  transform: scale(1.1);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.12);
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.04em;
  padding-top: 0.5rem;
}
@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  .header-inner {
    height: 64px;
    gap: 0;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav {
    display: none;
  }

  .header-inner .btn-livro {
    display: none;
  }

  .header-mobile-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-nav-text, #ffffff);
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease;
    padding: 6px 2px;
  }

  .header-page-title:active {
    opacity: 0.6;
  }

  .hamburger {
    display: flex;
  }

  .menu-open .mobile-menu {
    display: flex;
  }

  .footer-inner {
    padding: 2rem 1.2rem 1rem;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }

  .footer-grid::after {
    display: none;
  }

  .footer-col {
    align-items: center;
  }

  .footer-col:not(:last-child)::after {
    display: none;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    align-self: center;
    height: 36px;
  }

  .footer-link {
    font-size: 0.78rem;
    padding: 0.2rem 0;
    width: auto;
  }

  .footer-link::before {
    display: none;
  }

  .footer-link:hover {
    padding-left: 0;
  }

  .footer-contact {
    width: auto;
  }

  .footer-copy {
    font-size: 0.65rem;
  }

  .mobile-menu .dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0.2rem 0 0;
    min-width: unset;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
  }

  .mobile-menu .dropdown-menu::before {
    display: none;
  }

  .mobile-menu .nav-dropdown-trigger.open .dropdown-menu {
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-menu .nav-dropdown-trigger:hover .dropdown-menu {
    display: none;
  }

  .mobile-menu .nav-dropdown-trigger.open:hover .dropdown-menu {
    display: flex;
  }

  .mobile-menu .dropdown-item {
    padding: 0.65rem 1rem 0.65rem 1.75rem;
    font-size: 0.9rem;
    color: rgba(15, 20, 35, 0.5);
    border-left: none;
    border-radius: 0;
    margin: 0;
    letter-spacing: 0;
    background: none;
    transition: color 0.2s ease;
  }

  .mobile-menu .dropdown-item::after {
    display: none;
  }

  .mobile-menu .dropdown-item:hover {
    background: none;
    color: rgba(15, 20, 35, 0.85);
    padding-left: 1.75rem;
    border-left: none;
  }

  .mobile-menu .dropdown-label {
    display: none;
  }

  .mobile-menu .dropdown-sep {
    display: none;
  }

  .mobile-menu .dropdown-item__icon {
    display: none;
  }
}

/* ══ Gallery Lightbox ══ */

 /* ══ Lightbox ══ */

.galeria-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10003;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(12px) saturate(0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  padding: 3.5rem 1rem 0;
  touch-action: none;
  overscroll-behavior: none;
}

.galeria-lightbox.lb-open {
  opacity: 1;
  visibility: visible;
}

/* Close */
.galeria-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.galeria-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* Nav prev/next */
.galeria-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, opacity 0.18s;
  z-index: 2;
  backdrop-filter: blur(4px);
  margin-top: -2rem;
}

.galeria-lightbox__nav--prev { left: 16px; }
.galeria-lightbox__nav--next { right: 16px; }

.galeria-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.galeria-lightbox__nav:disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* Stage */
.galeria-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  overflow: hidden;
  cursor: default;
  min-height: 0;
  touch-action: none;
}

/* Image */
.galeria-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: opacity 0.22s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.galeria-lightbox__img.lb-img-entering {
  animation: lbImgIn 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes lbImgIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Bottom bar */
.galeria-lightbox__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  flex-shrink: 0;
  gap: 1.5rem;
}

.galeria-lightbox__counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.galeria-lightbox__caption {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
  flex: 1;
}

.galeria-lightbox__hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .galeria-lightbox__bar {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 1rem 1rem;
  }
  .galeria-lightbox__hint {
    display: none;
  }
  .galeria-lightbox__nav {
    top: auto;
    bottom: 85px;
    transform: none;
    margin-top: 0;
  }
  .galeria-lightbox__nav--prev {
    left: 20px;
  }
  .galeria-lightbox__nav--next {
    right: 20px;
  }
  .galeria-lightbox__nav:hover {
    transform: scale(1.08);
  }
}

@media (max-width: 480px) {
  .galeria-lightbox__nav--prev { left: 15px; }
  .galeria-lightbox__nav--next { right: 15px; }
}

/* ══ Gallery Page ══ */

.galeria-page {
  position: relative;
  padding-top: 80px;
  min-height: 100vh;
  background: #0d0d0d;
}

.galeria-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.galeria-bg__slide {
  width: 110%;
  height: 110%;
  position: absolute;
  top: -5%;
  left: -5%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3) saturate(0.8);
  opacity: 0;
  transition: opacity 2s ease;
  animation: galeriaDrift 30s ease-in-out infinite alternate;
}

@keyframes galeriaDrift {
  0% { transform: translate(0%, 0%) scale(1); }
  100% { transform: translate(-3%, -3%) scale(1.05); }
}

.galeria-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
}

.galeria-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria-hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: galeriaFadeUp 0.7s ease 0.1s forwards;
}

.galeria-hero__eyebrow::before,
.galeria-hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.galeria-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 32px rgba(0,0,0,0.35);
  opacity: 0;
  animation: galeriaFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.galeria-hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 16px rgba(0,0,0,0.25);
  max-width: 520px;
  opacity: 0;
  animation: galeriaFadeUp 0.7s ease 0.5s forwards;
}

@keyframes galeriaFadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
  padding: 0 1.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.galeria-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  background: #1a1a1a;
  transition: box-shadow 0.4s ease;
  aspect-ratio: 1 / 1;
}

.galeria-item__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: galeriaShimmer 1.5s ease-in-out infinite;
  z-index: 0;
}

@keyframes galeriaShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.galeria-item:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.galeria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  position: relative;
  z-index: 1;
}

.galeria-item:hover .galeria-img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.1);
}

.galeria-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 2;
}

.galeria-item:hover .galeria-item__overlay {
  opacity: 1;
}

.galeria-item__overlay svg {
  opacity: 0.8;
}

/* ── Tap hint (mobile) ── */
.galeria-tap-hint {
  display: none;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1rem 0;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.galeria-tap-hint svg {
  opacity: 0.55;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .galeria-tap-hint {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  .galeria-hero {
    padding: 4rem 1.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0 1rem 3rem;
  }
  .galeria-hero {
    padding: 3rem 1rem 1rem;
    overflow: hidden;
  }
  .galeria-hero__eyebrow::before,
  .galeria-hero__eyebrow::after {
    display: none;
  }
  .galeria-hero__eyebrow {
    letter-spacing: 0.22em;
  }
  .galeria-hero__title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
}

@media (max-width: 400px) {
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
}

html.lb-open-state,
body.lb-open-state {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
  position: fixed !important;
}