/* MyOnePage · livello smartphone (si somma a style.css, non tocca il desktop) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.m1-bar { display: none; }

@media (max-width: 640px) {
  html, body { overflow-x: clip; }
  input, select, textarea { font-size: 16px !important; }

  /* Testata: il pulsante "Richiedi una consulenza" passa nella barra in basso. */
  header .header-cta { display: none !important; }

  /* Aree di attività: una fila di schede da scorrere col dito invece di sei schede in colonna. */
  .areas { border: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px; padding: 0 22px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .areas::-webkit-scrollbar { display: none; }
  .areas > .area { flex: 0 0 84%; scroll-snap-align: center; border: 1px solid #c4a35a55; background: #fff; }
  .area { padding: 22px 22px 20px; }
  .area h3 { font-size: 24px; }
  .area p { font-size: 14px; line-height: 1.65; }
  .area-top { margin-bottom: 12px; }

  /* Professionisti: foto meno alte. */
  .team img { height: 330px; }

  /* Recapiti: righe alte e comode da toccare. */
  .topbar a, footer a { display: inline-block; padding: 7px 0; }
  .review-controls button { width: 46px; height: 46px; }

  /* Barra contatti fissa in basso. */
  .m1-bar { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px; background: #0d1b2af2; border: 1px solid #c4a35a40; border-radius: 4px; box-shadow: 0 16px 34px -12px #0009; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(calc(100% + 20px)); opacity: 0; transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .3s; }
  .m1-bar[data-show="true"] { transform: none; opacity: 1; }
  .m1-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 2px; color: #f6f3ed; font: 600 13px/1 Inter, Arial, sans-serif; border: 1px solid #ffffff22; }
  .m1-bar a.m1-bar__main { background: #c4a35a; color: #0d1b2a; border-color: #c4a35a; }
  .m1-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .m1-has-bar footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .m1-bar { transition: none; } }
