/* ==========================================================================
   POP PIZZA CONTEMPORANEA - RESPONSIVE
   ========================================================================== */

@media (max-width: 1120px) {
  .container {
    width: min(calc(100% - 64px), var(--container-max));
  }

  .contact-page-grid {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 78px;
  }

  .container {
    width: min(calc(100% - 48px), var(--container-max));
  }

  .header {
    height: var(--header-height);
  }

  .header.scrolled {
    height: 74px;
  }

  .logo {
    width: clamp(76px, 20vw, 80px);
  }

  .header.scrolled .logo {
    width: clamp(70px, 18vw, 74px);
  }

  .header .header-container {
    width: 100%;
    padding-inline: 22px;
  }

  .hamburger {
    display: block;
  }

  .btn-desktop {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    background: rgba(12, 46, 33, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
  }

  .site-nav:has(.nav-menu.active) {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(86vw, 380px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 96px 36px 48px;
    background: rgba(246, 241, 232, 0.99);
    box-shadow: -20px 0 50px rgba(24, 26, 23, 0.14);
    transform: translateX(105%);
    transition: transform var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    padding: 10px 0;
    color: var(--color-green-dark);
    font-size: 1.35rem;
  }

  .nav-link::after {
    bottom: 4px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .contact-page-grid,
  .whatsapp-card {
    grid-template-columns: 1fr;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 460px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 72px 0;
  }

  .section-title {
    font-size: clamp(2rem, 7vw, 2.55rem);
  }

  body.home-page {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .home-page .mobile-sticky-cta {
    display: grid;
  }

  .social-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 40px);
  }

  .page-main {
    padding-top: var(--header-height);
  }

  .page-hero {
    padding: 58px 0 52px;
  }

  .page-title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .section-padding {
    padding: 64px 0;
  }

  .section-title-wrapper {
    margin-bottom: 36px;
  }

  .menu-shell-header,
  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-page-actions {
    display: grid;
  }

  .menu-page-actions .btn,
  .whatsapp-card .btn,
  .form-submit-row .btn {
    width: 100%;
  }

  .booking-card {
    padding: 26px 18px;
  }

  .form-grid,
  .social-contact-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .contact-hours li {
    gap: 14px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 400px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

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

@media (max-width: 360px) {
  .container {
    width: calc(100% - 32px);
  }

  .header .header-container {
    padding-inline: 18px;
  }

  .nav-menu {
    padding-inline: 28px;
  }
}

@media (max-width: 340px) and (max-height: 620px) {
  :root {
    --header-height: 72px;
  }

  .header.scrolled {
    height: 70px;
  }

  .logo {
    width: 72px;
  }

  .header.scrolled .logo {
    width: 68px;
  }
}

@media (max-width: 600px) {
  .location-map-card {
    height: 280px;
    border-radius: 22px;
  }

  .location-info-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .location-info-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .location-map-overlay-btn {
    bottom: 12px;
    left: 12px;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .location-btn {
    min-height: 50px;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .location-map-card {
    height: 240px;
  }

  .location-info-card {
    padding: 22px 16px;
  }

  .location-info-title {
    font-size: 1.45rem;
  }
}

@media (min-width: 901px) {
  .location-container {
    max-width: 1180px;
  }

  .location-card-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    align-items: stretch;
    gap: 28px;
  }

  .location-map-card {
    height: 100%;
    min-height: 420px;
  }
}

.location-map {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .location-map,
  .location-map iframe {
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
