/* BOAWEB · mobile-ux.css · 25/11/2026
   Correzioni solo per smartphone, caricate dopo gli altri stili.
   1) niente scroll orizzontale  2) demo e realizzazioni in carosello  3) testi minimi 14px */

/* 1 · Nessuna pagina deve scorrere di lato */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }

@media (max-width: 760px) {
  /* prezzi.html: lo sfondo decorativo dell'intestazione usciva di 8vw dal margine */
  .hero::before, .hero:before { left: -14px; right: -14px; }

  /* 2 · Carosello orizzontale: demo (index) e realizzazioni (index) */
  .demo-grid.mux-carousel,
  .v14-showcase.mux-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(50% - 50vw);
    padding: 6px calc(50vw - 50%) 18px;
    scroll-padding-inline: calc(50vw - 50%);
  }
  .mux-carousel::-webkit-scrollbar { display: none; }
  .demo-grid.mux-carousel > *,
  .v14-showcase.mux-carousel > * {
    flex: 0 0 86%;
    max-width: 420px;
    scroll-snap-align: start;
  }
  .mux-carousel .reveal { opacity: 1 !important; transform: none !important; }
  .mux-carousel .demo-card:hover, .mux-carousel .v14-project:hover { transform: none; }

  .mux-controls {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 4px 0 8px;
  }
  .mux-controls button {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12); background: #fff; color: #1d1d1f;
    font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer;
    display: inline-grid; place-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
  }
  .mux-controls button:disabled { opacity: .35; cursor: default; }
  .mux-controls button:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
  .mux-count { min-width: 64px; text-align: center; font-size: 15px; font-weight: 600; color: #4a4a50; font-variant-numeric: tabular-nums; }
  .mux-hint { margin: 0 0 6px; font-size: 14px; color: #6e6e73; text-align: center; }

  /* 3 · Testi minimi 14px su smartphone (index + prezzi + menu condiviso) */
  .boa-nav-service-footer a, span > small,
  .kicker, .portrait-badge span, .milestone b, .insight .mini, .orb-label,
  .v12-eyebrow, .v12-section article > span, .v12-radar-grid div > b,
  .boa-radar-kicker, .boa-radar-toggle span, .boa-radar-steps li, .boa-radar-steps li span, .boa-radar-caption small,
  .demo-chip, .demo-type, .demo-disclaimer,
  .offer-premium-badge, .offer-list-price, .offer-list-price strong, .offer-label, .offer-benefit, .prompt-action small,
  .digital-level .num, .digital-level .tags span, .level-note,
  .prototype-stage .eyebrow, .prototype-benefit span, .profit-kicker, .profit-list div, .profit-list i, .profit-copy p,
  .project-cover-category, .v14-preview-label, .v14-art-top, .v14-wedding-line, .v16-global-tagline, .v14-footnote,
  .dc-kicker, .dc-tags span, .dc-help, .dc-options label, .dc-disclaimer,
  .contact-box .eyebrow, .boa-social-link span, .v12-tools small,
  footer span, footer a, .legal-links button,
  /* prezzi.html */
  .hero-copy .kicker, .card .tag, .benefit, .benefit strong, .card .meta, p.meta, .price-chip span,
  .ai-flow-step p, .step span, .smallprint, .profit-cta p, .ai-answer p {
    font-size: 14px !important;
    line-height: 1.45;
  }
  /* etichette dentro le grafiche animate: minimo leggibile senza rompere il disegno */
  .boa-radar-target-label, .boa-radar-bearing,
  .visual-core small, .step-card i, .step-card span, .step-card b,
  .ai-overline, .ai-step-number, .answer-label, .answer-sources span, .ai-graphic-foot span {
    font-size: 12px !important;
  }
}

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