/* ============================================
   HOME - restyling della sola home page (body.home)
   Uno spazio scuro continuo: l'hamburger di particelle (js/burger-fx.js)
   attraversa tutte le sezioni, i pannelli in vetro lo lasciano intravedere.
   Caricare dopo style.css.
   ============================================ */

.home .container {
  max-width: 1280px;
}

.home .section {
  padding: 120px 0;
}

/* --- HERO --- */
.home .hero {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 24px) 0 72px;
}

.home .hero__bg {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 76%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 76%);
}

.home .hero__overlay {
  background: linear-gradient(180deg, rgba(26, 28, 27, 0.5) 0%, rgba(26, 28, 27, 0.1) 40%, var(--color-darker) 100%);
}

.home .hero__grid {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.home.has-burger-fx .hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home .hero .fx-stage {
  height: min(64vh, 620px);
}

.home .hero__content {
  text-align: left;
  padding: 0;
}

.home .hero__logo {
  width: 200px;
  margin: 0 0 28px;
}

.home .hero__subtitle {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2.3rem, 5.2vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.5px;
  color: var(--color-white);
  max-width: 11em;
  margin-bottom: 36px;
  padding: 0;
  text-wrap: balance;
}

.home .hero__cta {
  justify-content: flex-start;
}

/* --- CHI SIAMO: foto, testo, vista esplosa --- */
.home.has-burger-fx .about {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

.home .about .fx-stage {
  height: 540px;
}

.home .about__image img {
  height: 440px;
}

/* Etichette degli strati, posizionate da burger-fx.js */
.fx-labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.fx-label {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--color-cream);
  white-space: nowrap;
  will-change: transform;
}

.fx-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--color-warm);
}

/* --- Pannelli in vetro: le particelle si intravedono dietro --- */
.home .review-card,
.home .hours,
.home .order-badge {
  background: rgba(44, 47, 45, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.home .category-card,
.home .order-gallery__item,
.home .map-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Tablet --- */
@media (max-width: 1100px) {
  .home.has-burger-fx .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .home .about .fx-stage {
    grid-column: 1 / -1;
    height: 480px;
  }
}

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

  .home .section__header {
    margin-bottom: 32px;
  }

  .home .hero {
    padding: calc(var(--nav-height) + 16px) 0 56px;
  }

  .home.has-burger-fx .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .home .hero .fx-stage {
    height: 40vh;
    height: 40svh;
  }

  .home .hero__bg {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
  }

  /* Il logo e' gia' nella navbar, subito sopra */
  .home .hero__logo {
    display: none;
  }

  .home .hero__subtitle {
    margin-bottom: 24px;
  }

  .home .hero__cta {
    display: flex;
    align-items: stretch;
  }

  .home .hero__cta .btn {
    justify-content: center;
  }

  .home.has-burger-fx .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home .about__image img {
    height: 280px;
  }

  .home .about .fx-stage {
    height: 440px;
  }

  .fx-label {
    font-size: 0.9rem;
  }

  /* Specialita: scorrimento orizzontale invece di tre card impilate */
  .home .categories {
    display: flex;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }

  .home .categories::-webkit-scrollbar {
    display: none;
  }

  .home .category-card {
    flex: 0 0 80%;
    height: 340px;
    scroll-snap-align: start;
  }
}
