/* ===== MOBILE IMPROVEMENTS — giessehomesanvito ===== */

/* 1. Rimuovi linea sotto il logo in modalità mobile */
@media (max-width: 1024px) {
  .nav-logo {
    border-bottom: none !important;
  }
}

/* 2. Mobile menu: fade-in animation when opening */
.mobile-menu.open {
  animation: mobileMenuIn 0.25s ease forwards;
}
@keyframes mobileMenuIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 3. Hamburger → X animation */
.menu-toggle span {
  transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease !important;
}
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 4. Hero: centrato con spazio per il navbar su mobile */
@media (max-width: 768px) {
  .hero,
  .prop-hero,
  .page-hero {
    min-height: 33vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 64px !important;
    padding-bottom: 1.2rem !important;
  }
  .hero-content,
  .prop-hero-content,
  .page-hero-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: center !important;
    width: 100%;
  }
  .hero-buttons {
    gap: 0.8rem;
  }
}
@media (max-width: 480px) {
  .hero,
  .prop-hero,
  .page-hero {
    min-height: 33vh !important;
    padding-top: 60px !important;
    padding-bottom: 1rem !important;
  }
}

/* 5. location-highlights: riga unica scrollabile su mobile */
@media (max-width: 768px) {
  .location-highlights {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.75rem !important;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    touch-action: pan-x !important;
  }
  .location-highlights::-webkit-scrollbar { display: none; }
  .highlight-item {
    flex: 0 0 72vw !important;
    max-width: 260px !important;
    scroll-snap-align: start;
    padding: 1rem !important;
    gap: 0.6rem;
    touch-action: pan-x !important;
  }
}

/* 6. Fix: exp-right cards visibili su mobile */
@media (max-width: 768px) {
  .exp-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .exp-card {
    padding: 1.2rem 1rem;
  }
  .exp-card p {
    display: none;
  }
}

/* 7. Icona Home nel menu mobile */
.mobile-home {
  display: flex !important;
  width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: background 0.25s, border-color 0.25s;
  padding: 0 !important;
  font-size: 0 !important; /* nasconde eventuale testo */
}
.mobile-home:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.mobile-home svg {
  stroke: white;
}

/* 8. Touch target minimi */
@media (max-width: 768px) {
  .btn-primary,
  .btn-outline,
  .btn-prenota,
  .btn-dark,
  .btn-transfer {
    min-height: 48px;
  }
  .booking-search-btn,
  .prop-btn,
  .sr-card-book {
    min-height: 44px;
  }
  .mobile-menu a:not(.nav-cta):not(.mobile-lang):not(.mobile-home) {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 9. Footer mobile: layout più leggibile */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1.2rem 1rem;
  }

  /* Brand block: testo più leggibile */
  .footer-brand-block {
    padding-bottom: 1.4rem !important;
  }
  .footer-brand {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }
  .footer-brand-sub {
    font-size: 0.75rem !important;
    line-height: 1.7;
  }

  /* Griglia link: 2 colonne centrate */
  .footer-links-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.6rem 1.2rem !important;
    padding-top: 1.4rem;
  }
  .footer-col {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col h4 {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
  }
  .footer-col a {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.35rem;
  }

  /* Footer bottom: stacked compatto */
  .footer-bottom {
    padding-top: 1.2rem;
    gap: 1rem;
  }
  .footer-bottom-logo {
    height: 36px !important;
  }
  .footer-bottom-left > div {
    font-size: 0.64rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.35);
  }

  /* Socials: bottoni più grandi */
  .footer-socials {
    gap: 0.8rem;
  }
  .footer-socials a {
    width: 38px;
    height: 38px;
  }
  .footer-socials a svg {
    width: 18px;
    height: 18px;
  }

  /* Numero di telefono: tocco facile */
  .footer-phone-row a {
    font-size: 0.82rem !important;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.8rem 1rem 0.8rem;
  }
  .footer-links-grid {
    gap: 1.2rem 0.8rem !important;
  }
  .booking-search-btn {
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
  }
}
