/* Food · «Tutto ciò che serve»: schede grandi in fila, che si aprono (schede.js). Sullo stile delle schede di apple.com:
   la schermata vera in alto, sotto il titolo in nero e la descrizione in grigio, un «+» per aprire. */
.fx-sez { background: #04060a; color: #c9d1dc; overflow: hidden; }
.fx-sez .pp-head h2 { color: #f5f5f7; }
.fx-sez .pp-head p { color: #86868b; }
.fx-sez .pp-kicker { color: #86a4ff; }
.fx-rail { display: flex; gap: clamp(16px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter, 24px), (100vw - 1240px) / 2) 12px; scroll-padding-inline: max(var(--gutter, 24px), (100vw - 1240px) / 2); }
.fx-rail::-webkit-scrollbar { display: none; }
.fx-card { flex: 0 0 auto; width: min(560px, 82vw); scroll-snap-align: start; cursor: pointer; outline: none; }
.fx-vis { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; background: #000; container-type: inline-size;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.fx-card:hover .fx-vis, .fx-card:focus-visible .fx-vis { transform: scale(1.012); box-shadow: 0 30px 60px -30px rgba(94, 135, 252, .45); }
.fx-card:focus-visible .fx-vis { outline: 3px solid #5e87fc; outline-offset: 4px; }
/* tutte le schede dello stesso colore, anche quelle con le schermate chiare del gestionale */
/* il dispositivo nella scheda: fermo, non si tocca (si tocca nella scheda aperta) */
.fx-vis .tz-dev { position: absolute; left: 50%; top: 9%; opacity: 1; transform: translateX(-50%); pointer-events: none; }
.fx-vis .tz-tab { width: 86cqw; }
.fx-vis .tz-phone { width: 40cqw; top: 8%; }
.fx-piu { position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: rgba(255, 255, 255, .92); color: #04060a; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .3s; }
.fx-card:hover .fx-piu { transform: scale(1.08); }
.fx-cap { margin: 18px 22px 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; color: #86868b; max-width: 30em; }
.fx-cap b { color: #f5f5f7; font-weight: 600; }
.fx-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.fx-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #1d1d1f; color: #f5f5f7; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s, opacity .2s; }
.fx-nav button:hover { background: #2c2c2e; }
.fx-nav button:disabled { opacity: .35; cursor: default; }

/* la scheda aperta */
.fx-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(0, 0, 0, 0); transition: background .4s; }
.fx-modal.on { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fx-panel { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 30px; background: #111214; color: #c9d1dc;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); transform-origin: top left; }
.fx-big { position: relative; background: #000; container-type: inline-size; min-height: 360px; display: grid; place-items: center; padding: clamp(18px, 3vw, 40px); }
.fx-big .tz-dev { position: relative; left: auto; top: auto; transform: none; opacity: 1; }
.fx-big .tz-tab { width: 100%; }
.fx-big .tz-phone { width: min(300px, 46cqw); }
.fx-testo { padding: clamp(24px, 3vw, 44px); display: grid; align-content: center; gap: 16px; }
.fx-testo .fx-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #86a4ff; }
.fx-testo h3 { margin: 0; color: #f5f5f7; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.035em; line-height: 1.05; }
.fx-testo p { margin: 0; font-size: 18px; line-height: 1.5; color: #a1a1a6; }
.fx-testo ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.fx-testo li { display: flex; gap: 12px; align-items: baseline; color: #e8e8ed; font-size: 16.5px; }
.fx-testo li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #5e87fc; transform: translateY(-2px); }
.fx-frecce { display: flex; gap: 10px; margin-top: 10px; }
.fx-frecce button, .fx-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #2c2c2e; color: #f5f5f7; font-size: 22px; line-height: 1; cursor: pointer; }
.fx-frecce button:hover, .fx-x:hover { background: #3a3a3c; }
.fx-x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.fx-panel .fx-cambia { animation: fx-in .4s ease both; }
@keyframes fx-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 900px) {
  .fx-panel { grid-template-columns: 1fr; max-height: calc(100vh - 24px); border-radius: 24px; }
  .fx-big { min-height: 0; }
  .fx-testo h3 { font-size: 28px; }
  .fx-testo p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .fx-vis, .fx-modal, .fx-panel .fx-cambia { transition: none; animation: none; } }
/* telefono: il tablet della pagina sta in verticale (teaser.css), quindi la scheda si allunga */
@media (max-width: 600px) {
  .fx-vis { aspect-ratio: 4 / 5; }
  .fx-vis .tz-tab { width: 74cqw; top: 7%; }
  .fx-vis .tz-phone { width: 58cqw; }
  .fx-big .tz-tab { width: min(100%, 420px); }
}
@media (max-width: 900px) { .fx-big { padding-top: 64px; } .fx-x { top: 12px; right: 12px; } }
