/* =========================================
   MOBILE — ottimizzazioni cross-page
   Caricato per ultimo, prevale sui CSS specifici.
   ========================================= */

@media (max-width: 768px) {

  /* Breadcrumb: lascia spazio al trigger del menu in alto a destra */
  .breadcrumb {
    padding: 0.9rem 4vw;
    padding-right: calc(88px + 1rem);
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  /* Filter bar: scroll orizzontale invece di andare a capo a casaccio */
  .filters-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .filter-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .filter-group::-webkit-scrollbar { display: none; }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .filter-label {
    white-space: nowrap;
  }

  /* Page header: padding ridotto + leggibilità */
  .page-header {
    padding: 4rem 5vw 2.5rem;
  }

  .page-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.05;
  }

  .page-desc {
    font-size: 14px !important;
  }

  .header-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  /* Hero progetto: triangolo categoria leggibile */
  .hero {
    height: 50vh;
    min-height: 320px;
  }

  .hero-category {
    top: 1rem;
    left: 5vw;
    font-size: 10px;
    padding: 5px 10px;
  }

  /* Meta-bar: 1 colonna su phone */
  .meta-bar {
    grid-template-columns: 1fr !important;
  }

  .meta-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .meta-item:last-child { border-bottom: none; }

  /* Body progetto: padding a sinistra ridotto */
  .main-content {
    padding: 2.5rem 0 !important;
  }

  .sidebar {
    padding: 0 0 2.5rem 0 !important;
  }

  .project-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  /* Lead text */
  .lead-text {
    font-size: 15px !important;
  }

  /* CTA band: stack pulito */
  .cta-band {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1.5rem;
    padding: 2.5rem 5vw;
  }

  .cta-band-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-band-actions .btn {
    text-align: center;
  }

  /* Sezioni catalogo (rivendite) */
  .section-block {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  /* Brand cards on home: padding più stretto */
  .brand-strip { padding: 3rem 5vw 2rem; }

  .brand-cat {
    padding: 1.2rem 1rem;
  }

  /* Home hero claim: spacing */
  .home-hero__left {
    padding: 2rem 7vw 2rem !important;
    gap: 1.2rem !important;
  }

  .home-hero__logo-mark {
    width: 140px !important;
  }

  .home-hero__claim {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
  }

  .home-hero__intro p {
    font-size: 0.92rem !important;
  }

  .home-hero__right {
    height: 36vh !important;
    min-height: 240px;
  }

  /* CTA home */
  .home-cta {
    padding: 3rem 5vw !important;
  }

  /* Riduce bottoni doppi/troppo larghi */
  .btn, .cta-btn {
    width: 100%;
  }

  /* Static pages: hero più compatto */
  .static-hero {
    padding: 4rem 5vw 2.5rem;
  }

  .static-section {
    padding: 3rem 5vw;
  }

  /* Form contatti: full-width */
  .contact-form button {
    width: 100%;
    justify-self: stretch;
  }
}

/* Phone piccolo */
@media (max-width: 420px) {
  .breadcrumb {
    padding-right: calc(72px + 0.75rem);
    font-size: 11px;
  }

  .header-stats { grid-template-columns: 1fr; }

  .static-hero__title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .ig-stats { gap: 0.75rem; }
  .ig-stats div { font-size: 0.7rem; }
  .ig-stats strong { font-size: 0.85rem; }
}
