/* ===== Responsivo ===== */

@media (max-width: 1024px) {
  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-overlay {
    display: block;
  }

  .header__inner {
    padding: 0 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .header__logo-img {
    height: 36px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 86vw);
    height: 100%;
    height: 100dvh;
    z-index: 1001;
    background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
    flex-direction: column;
    align-items: stretch;
    padding:
      calc(var(--header-height) + env(safe-area-inset-top, 0px) + 0.75rem)
      max(1.25rem, env(safe-area-inset-right))
      calc(1.25rem + env(safe-area-inset-bottom, 0px))
      max(1.25rem, env(safe-area-inset-left));
    gap: 0;
    transform: translate3d(105%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(201, 169, 98, 0.15);
  }

  .nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    text-align: center;
  }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .nav__link:active,
  .nav__link.active {
    background: rgba(201, 169, 98, 0.12);
    border-color: rgba(201, 169, 98, 0.25);
    color: var(--color-accent);
  }

  .nav__link::after {
    display: none;
  }

  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: none;
    padding: 0.35rem 0;
    margin: 0.25rem 0 0.5rem;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .nav__dropdown-toggle {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
    position: relative;
  }

  .nav__dropdown-toggle svg {
    display: none;
  }

  .nav__dropdown.open .nav__dropdown-toggle {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-muted);
  }

  .nav__dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav__dropdown-item:last-child {
    border-bottom: none;
  }

  .nav__dropdown-item:active,
  .nav__dropdown-item.active {
    background: rgba(201, 169, 98, 0.12);
    color: var(--color-accent);
  }

  .highlights__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .albums-grid {
    grid-template-columns: 1fr;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__nav--prev {
    left: 0.5rem;
  }

  .lightbox__nav--next {
    right: 0.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 500px;
  }

  .photos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
  }
}
