/* =========================================================
   MOBILE FIRST — AJUSTES
========================================================= */

@media (max-width: 768px) {
  :root {
    --pad: 20px;
  }

  .section {
    padding: 76px 0;
  }

  .section-title {
    font-size: clamp(48px, 15vw, 72px);
  }

  /* HEADER */

  .header-container {
    min-height: 70px;
  }

  .header-logo img {
    width: 135px;
  }

  .header-nav {
    position: fixed;
    inset: 70px 0 0;
    height: calc(100svh - 70px);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    margin: 0;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

  .header-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .header-nav a {
    font-family: var(--title);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

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

  /* HERO */

  .hero {
    min-height: auto;
  }

  .hero-container {
    padding-top: 110px;
    padding-bottom: 70px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-logo {
    width: min(76vw, 320px);
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: clamp(48px, 14vw, 76px);
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-video {
    max-width: 92%;
    margin: 42px auto 0;
  }

  .hero-postit {
    position: relative;
    top: auto;
    right: auto;
    width: 165px;
    margin: -10px 0 20px auto;
    transform: rotate(4deg);
  }

  /* FOTOS */

  .photos-header {
    margin-bottom: 30px;
  }

  .photos-credit {
    font-size: 17px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-empty {
    padding: 55px 20px;
  }

  /* REGISTROS */

  .records-grid {
    gap: 16px;
  }

  .record-card {
    min-height: 220px;
    padding: 26px;
  }

  .record-card h3 {
    font-size: 36px;
  }

  /* DJS */

  .djs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 14px;
  }

  .dj-card:first-child {
    grid-column: 1 / -1;
    max-width: 72%;
    margin-inline: auto;
  }

  .dj-info {
    width: 90%;
    padding: 14px;
  }

  .dj-info h3 {
    font-size: 25px;
  }

  .dj-info span {
    font-size: 11px;
  }

  /* EQUIPE */

  .team-grid {
    gap: 14px;
  }

  .team-card {
    padding: 22px;
  }

  .team-card h3 {
    font-size: 27px;
  }

  /* PARCEIROS */

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .partner-card {
    padding: 18px;
  }

  .partner-card strong {
    font-size: 23px;
  }

  .partner-card span {
    font-size: 11px;
  }

  /* SOCIAL */

  .social-community {
    display: block;
  }

  .pitty-social,
  .comunidade {
    width: 100%;
    padding: 62px 0;
  }

  .social-divider {
    display: none;
  }

  /* FOOTER */

  .footer {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 45px 30px;
    text-align: center;
  }

  .footer::before {
    left: 30px;
    right: 30px;
  }

  .footer-logo img {
    width: 140px;
    margin-inline: auto;
  }

  .footer-info,
  .footer-dev {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .djs-grid {
    grid-template-columns: 1fr;
  }

  .dj-card:first-child {
    grid-column: auto;
    max-width: none;
  }

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

  .hero-video {
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  /* GALERIA */

  .official-photos .section-heading {
    margin-bottom: 30px;
  }

  .official-photos h2 {
    font-size: clamp(46px, 14vw, 72px);
  }

  .official-photos .section-heading p {
    font-size: 17px;
  }

  .photo-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: calc((100vw - 58px) / 4);
    gap: 6px;
  }

  /* No mobile, o mosaico continua: peças maiores aparecem sem aumentar demais o scroll. */
  .photo-gallery-item:nth-child(8n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .photo-gallery-item:nth-child(8n + 5) {
    grid-column: span 2;
  }

  .photo-gallery-item:nth-child(8n + 7) {
    grid-row: span 2;
  }

  .gallery-loading,
  .gallery-empty {
    min-height: 180px;
    padding: 32px 20px;
  }

  .photo-lightbox {
    padding: 18px;
  }

  .photo-lightbox img {
    max-width: 94vw;
    max-height: 84vh;
  }

  .photo-lightbox-close {
    top: 12px;
    right: 12px;
  }

}


@media (max-width: 768px) {
  .photo-lightbox {
    padding: 18px 58px;
  }

  .photo-lightbox-image {
    max-width: 88vw;
    max-height: 82vh;
  }

  .photo-lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .photo-lightbox-prev {
    left: 8px;
  }

  .photo-lightbox-next {
    right: 8px;
  }

  .photo-lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .photo-lightbox-counter {
    bottom: 12px;
  }
}
