/* Navigazione compatta e skeleton della griglia Home. */
.mobile-bottom-nav {
  position: fixed;
  z-index: 1200;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  right: 50%;
  bottom: 7px;
  grid-template-columns: repeat(5, minmax(68px, 1fr));
  width: min(500px, calc(100vw - 40px));
  min-height: 48px;
  padding: 2px;
  border: 1px solid rgba(54, 43, 36, .16);
  border-radius: 13px;
  background: rgba(255, 251, 246, .96);
  box-shadow: 0 14px 34px rgba(38, 27, 19, .18);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}

.mobile-bottom-nav button {
  display: grid;
  min-width: 0;
  min-height: 44px;
  place-items: center;
  gap: 0;
  padding: 1px 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #665b53;
  cursor: pointer;
  font: inherit;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .01em;
  line-height: 1;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.mobile-bottom-nav button:hover,
.mobile-bottom-nav button:focus-visible {
  background: #f1e6d8;
  color: #9c3a2e;
  outline: none;
}

.mobile-bottom-nav button:active {
  transform: scale(.96);
}

.mobile-bottom-nav button[aria-current="page"] {
  background: #9c3a2e;
  color: #fff9f1;
}

.mobile-bottom-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card-skeleton {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(49, 39, 32, .1);
  border-radius: 22px;
  background: #f1ece5;
  box-shadow: 0 12px 26px rgba(54, 42, 32, .08);
}

.home-card-skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, .64) 48%, transparent 78%);
  animation: home-skeleton-shimmer 1.35s ease-in-out infinite;
}

.home-card-skeleton-media { height: 178px; background: #ddd4ca; }
.home-card-skeleton-copy { display: grid; gap: 11px; padding: 18px; }
.home-card-skeleton-line { display: block; height: 13px; border-radius: 999px; background: #d9cfc4; }
.home-card-skeleton-line.is-title { width: 68%; height: 20px; }
.home-card-skeleton-line.is-short { width: 42%; }
.home-card-skeleton-line.is-long { width: 88%; }

@keyframes home-skeleton-shimmer {
  100% { transform: translateX(100%); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

  .mobile-bottom-nav {
    right: 10px;
    bottom: max(7px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    transform: none;
  }

  .mobile-bottom-nav button { padding: 1px; font-size: .54rem; }
  .content-section { padding-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-card-skeleton::after { animation: none; }
  .mobile-bottom-nav button { transition: none; }
}
