/* Mobile — correções de layout */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

main {
  width: 100%;
  overflow-x: hidden;
}

/* Header mobile */
@media (max-width: 1024px) {
  .site-header {
    margin-bottom: 0 !important;
    padding: calc(8px + var(--safe-top)) 12px 8px;
    background-color: var(--header-sticky);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 48px;
    width: 100%;
  }

  .site-header__nav--left,
  .site-header__nav--right,
  .site-header__ingressos {
    display: none !important;
  }

  .site-header__burger {
    display: flex;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .site-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .site-header__logo img {
    width: 100px;
    max-height: 44px;
    object-fit: contain;
  }

  .site-header__actions {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }
}

/* Hero mobile */
@media (max-width: 767px) {
  :root {
    --hero-height-mobile: 460px;
  }

  .hero {
    width: 100%;
    overflow: hidden;
  }

  .hero__swiper {
    height: var(--hero-height-mobile);
  }

  .hero__slide {
    min-height: var(--hero-height-mobile);
    align-items: flex-end;
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero__content {
    width: 100%;
    padding: 24px 16px 48px;
    text-align: center;
  }

  .hero__content h1 {
    width: 100%;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    letter-spacing: 0.5px;
    line-height: 1.12;
    color: #fff;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(21, 47, 76, 0.15) 0%,
      rgba(21, 47, 76, 0.6) 45%,
      rgba(28, 59, 48, 0.88) 100%
    );
  }

  .hero__swiper .swiper-button-prev,
  .hero__swiper .swiper-button-next {
    display: none !important;
  }
}

/* Shop & tickets */
@media (max-width: 767px) {
  .container {
    width: calc(100% - 24px);
    max-width: 100%;
    margin-inline: auto;
  }

  .shop-grid {
    padding: 24px 0 20px;
  }

  .shop-grid__welcome {
    margin-bottom: 16px;
  }

  .shop-grid__welcome-small {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .shop-grid__welcome-brand {
    font-size: 20px;
  }

  .shop-grid__cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .shop-grid__card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
  }

  .shop-grid__card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .tickets {
    padding: 28px 0 20px;
  }

  .ticket-card {
    border-radius: 20px;
  }

  .ticket-card__body h3 {
    font-size: 1.35rem;
  }

  .ticket-card__body .btn-comprar {
    width: 100%;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .shop-grid__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .shop-grid__card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Attractions */
.attractions__carousel-wrap {
  overflow: hidden;
  width: 100%;
}

@media (max-width: 1099px) {
  .attractions__swiper .swiper-slide {
    transform: none !important;
    opacity: 1 !important;
  }

  .attractions__swiper .swiper-button-prev,
  .attractions__swiper .swiper-button-next {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .attractions {
    padding: 28px 0 40px;
  }

  .attractions__tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
  }

  .attractions__tags::-webkit-scrollbar {
    display: none;
  }

  .attractions__tag {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  .attractions__swiper {
    overflow: hidden !important;
    padding-bottom: 32px;
  }

  .attraction-detail {
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
  }
}

/* Ingressos */
@media (max-width: 767px) {
  .ingressos-page__breadcrumb {
    padding: 8px 0 4px;
  }
}

/* Footer & cookies */
@media (max-width: 767px) {
  .site-footer__newsletter-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: var(--radius-btn);
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    font-size: 0.82rem;
  }

  .cookie-banner button {
    width: 100%;
  }

  .faq-teaser {
    padding: 28px 0 40px;
  }
}
