/* MTwin — pagina principale e pagine delle app (si aggiunge a style.css, stesso tema di MTPick) */

/* ---------- Apertura «di scena»: MT entra, le strisce della velocità scattano, WIN arriva in corsivo ---------- */
.show {
  position: fixed; inset: 0; z-index: 100; display: none;
  place-items: center; background: #1f2026; color: #ccc; overflow: hidden;
}
.js .show { display: grid; }
.show.done { animation: show-out .55s var(--ease) forwards; }
.show.gone { display: none !important; }
.show::before {               /* lampo di luce che attraversa la scena */
  content: ""; position: absolute; inset: -20% -60%;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  transform: translateX(-60%); animation: show-sweep 1.1s .55s var(--ease) both;
}
.show-logo { display: flex; align-items: center; font: 800 clamp(64px, 15vw, 190px)/1 "DejaVu Sans", var(--sans); letter-spacing: -.02em; }
.show-logo .mt { color: #ccc; animation: show-mt .5s cubic-bezier(.2, 1.4, .3, 1) both; }
.show-logo .stripes { position: relative; width: .62em; height: .72em; margin: 0 .02em 0 .05em; }
.show-logo .stripes i {
  position: absolute; right: 0; height: .045em; border-radius: 1px;
  background: linear-gradient(90deg, rgba(200,64,66,0), #c84042);
  transform-origin: right center; animation: show-stripe .42s var(--ease) both;
}
.show-logo .stripes i:nth-child(1) { top: 6%;  width: 62%; animation-delay: .38s; }
.show-logo .stripes i:nth-child(2) { top: 25%; width: 92%; animation-delay: .32s; }
.show-logo .stripes i:nth-child(3) { top: 45%; width: 100%; animation-delay: .28s; }
.show-logo .stripes i:nth-child(4) { top: 65%; width: 85%; animation-delay: .34s; }
.show-logo .stripes i:nth-child(5) { top: 85%; width: 62%; animation-delay: .4s; }
.show-logo .win {
  color: #c84042; font-size: .77em; font-style: italic; transform: skewX(-12deg);
  animation: show-win .5s .5s cubic-bezier(.15, 1.3, .3, 1) both;
}
.show-apps {
  position: absolute; left: 0; right: 0; bottom: 18%; display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px);
  font: 700 clamp(13px, 1.6vw, 18px)/1 var(--mono); letter-spacing: .3em; color: #8d8f96;
}
.show-apps span { opacity: 0; animation: show-app .4s var(--ease) both; }
.show-apps span:nth-child(1) { animation-delay: .9s; }
.show-apps span:nth-child(2) { animation-delay: 1.02s; }
.show-apps span:nth-child(3) { animation-delay: 1.14s; }
.show-skip {
  position: absolute; right: 20px; bottom: 20px; border: 1px solid #44464e; background: transparent; color: #8d8f96;
  font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
@keyframes show-mt { from { opacity: 0; transform: translateX(-38vw) scale(1.4); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes show-stripe { from { transform: scaleX(0); opacity: 0; } 60% { opacity: 1; } to { transform: scaleX(1); opacity: 1; } }
@keyframes show-win { from { opacity: 0; transform: translateX(30vw) skewX(-30deg); filter: blur(8px); } to { opacity: 1; transform: skewX(-12deg); filter: none; } }
@keyframes show-app { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes show-sweep { to { transform: translateX(60%); } }
@keyframes show-out {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}
@media (prefers-reduced-motion: reduce) { .js .show { display: none; } }
/* mentre c'è la scena la pagina sotto resta ferma */
.showing { overflow: hidden; }

/* ---------- Pagina principale ---------- */
.home-hero { padding-top: 72px; }
/* mentre c'è la scena le comparse aspettano: partono quando la scena si apre */
.showing .m.in { animation-play-state: paused; }
.home-hero .headline { max-width: 900px; }
.apps-sec { padding-top: 56px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
/* scheda staccata in due: la schermata con la sua ombra, sotto la descrizione (5/11/2026) */
.app-card { display: flex; flex-direction: column; gap: 18px; transition: transform .35s var(--ease); }
.app-card:hover { transform: translateY(-6px); }
.app-card .shot {
  display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e6e4dd; border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 22px 44px -22px rgba(40, 30, 20, .45), 0 6px 14px -8px rgba(40, 30, 20, .25);
  transition: box-shadow .35s;
}
.app-card:hover .shot { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 32px 60px -24px rgba(40, 30, 20, .5), 0 8px 18px -8px rgba(40, 30, 20, .28); }
.app-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.app-card:hover .shot img { transform: scale(1.05); }
.app-card .body {
  background: var(--paper); border-radius: var(--radius); padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1;
  box-shadow: 0 0 0 1px var(--line) inset, 0 18px 50px -28px rgba(40, 30, 20, .35);
}
.app-card .body p { margin: 0; color: var(--ink-2); font-size: 16px; flex: 1; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head .ico { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 10px -2px rgba(40,30,20,.25); }
.app-head .logo { height: 30px; width: auto; }
.status { align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.status.free { background: #e3f1e4; color: #2f7a39; }
.status.beta { background: #fbf0dc; color: #9a6514; }
.status.soon { background: var(--soft); color: var(--muted); }
.app-card .btn { align-self: flex-start; }

/* ---------- Pagine delle app ---------- */
.feat-box { margin-top: 110px; padding: 30px 32px; background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line) inset; }
.feat-box h3 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.01em; }
a.studio { text-decoration: none; }
@media (max-width: 720px) { .app-head .logo { height: 22px; } .feat-box { padding: 22px; } }

/* ---------- Vendita (anteprima PayPal) ---------- */
.buy { margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 40px; background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line) inset, 0 30px 70px -40px rgba(40,30,20,.4); }
.buy h2 { margin-bottom: 18px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); font: 600 13px/1 var(--mono); color: var(--ink); }
.buy-card { background: var(--bg); border-radius: 16px; padding: 28px; box-shadow: 0 0 0 1px var(--line) inset; display: flex; flex-direction: column; gap: 12px; }
.price { display: flex; flex-direction: column; margin-bottom: 8px; }
.price .amount { font-size: 46px; font-weight: 700; letter-spacing: -.02em; }
.price .vat { font: 13px/1.4 var(--mono); color: var(--muted); }
.pp { height: 50px; border: 0; border-radius: 999px; font: 600 16px/1 var(--sans); cursor: not-allowed; display: grid; place-items: center; }
.pp-gold { background: #ffc439; }
.pp-word { font: italic 800 22px/1 Verdana, var(--sans); letter-spacing: -.02em; }
.pp-word i { color: #003087; font-style: italic; } .pp-word b { color: #009cde; font-style: italic; }
.pp-card { background: #2c2e2f; color: #fff; }
.pp-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pp-demo { margin: 0; font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--red); text-align: center; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- MTMonitor: «accensione» delle schermate (scelta A) ----------
   Sullo sfondo della pagina compare una riga di luce, poi la finestra si apre dalla riga come un monitor che si accende
   e i colori si assestano. Parte quando la schermata arriva sullo schermo (classe .open messa da sito.js). */
html[data-animazione="accensione"] .reveal .win {
  opacity: 0; transform: none; transition: none;
  clip-path: inset(50% 0 50% 0 round 16px); filter: brightness(2.6) saturate(0);
  box-shadow: none;
}
html[data-animazione="accensione"] .reveal.open .win { animation: acc-on 1.5s cubic-bezier(.2,.8,.2,1) .32s both; }
html[data-animazione="accensione"] .reveal::before {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff 12%, #fff 88%, transparent);
  box-shadow: 0 0 20px 5px rgba(232,153,43,.55), 0 0 1px 1px rgba(28,28,26,.25);
  transform: scaleX(0); opacity: 0; pointer-events: none;
}
html[data-animazione="accensione"] .reveal.open::before { animation: acc-line .75s cubic-bezier(.2,.8,.2,1) both; }
html[data-animazione="accensione"] .reveal.open .win::after { animation-delay: 1.5s; }
@keyframes acc-line {
  0% { transform: scaleX(0); opacity: 1; }
  45% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) scaleY(30); opacity: 0; }
}
@keyframes acc-on {
  0% { opacity: 1; clip-path: inset(50% 0 50% 0 round 16px); filter: brightness(2.6) saturate(0); box-shadow: none; }
  45% { clip-path: inset(0 0 0 0 round 16px); filter: brightness(1.7) saturate(.4); }
  70% { filter: brightness(.92) saturate(1.15); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 16px); filter: none;
         box-shadow: 0 50px 100px -40px rgba(40,30,20,.55), 0 0 0 1px rgba(0,0,0,.07); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-animazione="accensione"] .reveal .win { opacity: 1; clip-path: none; filter: none; animation: none !important; }
  html[data-animazione="accensione"] .reveal::before { display: none; }
}

/* ---------- Capitolo «barra dei menu»: la barra di macOS disegnata, il pannellino scende dall'icona ---------- */
.menubar-demo { position: relative; max-width: 900px; margin: 0 auto; padding-bottom: 20px; }
.mb-bar {
  display: flex; align-items: center; gap: 16px; height: 30px; padding: 0 14px; border-radius: 10px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line) inset, 0 10px 30px -20px rgba(40,30,20,.4);
  font: 500 13px/1 var(--sans); color: #1a1a1a; white-space: nowrap; overflow: hidden;
}
.mb-bar b { font-weight: 700; }
.mb-ico { height: 15px; width: auto; flex: none; }
.mb-sp { flex: 1; }
.mb-app { display: grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 6px; transition: background .2s; }
.menubar-demo.open .mb-app { background: rgba(0,0,0,.12); }
.mb-clock { color: #1a1a1a; }
.mb-pop {
  position: relative; width: min(366px, 70%); margin: 1px 0 0 0;   /* attaccato alla barra; a sinistra lo mette mtwin.js, sotto l'icona */
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(40,30,20,.55), 0 0 0 1px rgba(0,0,0,.06);
  transform-origin: 50% 0; transform: translateY(-14px) scale(.6); opacity: 0;   /* scende dalla freccia, che è al centro */
}
.mb-pop img, .mb-pop video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mb-pop video.anim { position: absolute; inset: 0; }
.menubar-demo.open .mb-pop { animation: mb-drop .55s cubic-bezier(.2,1.3,.35,1) .35s both; }
@keyframes mb-drop { from { transform: translateY(-14px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
/* sul telefono restano le icone di stato a destra dell'app: così l'icona sta abbastanza al centro
   perché il pannellino (con la freccia al centro) le stia sotto senza uscire dalla barra */
@media (max-width: 720px) { .mb-bar { gap: 13px; } .mb-bar > span:not(.mb-app):not(.mb-sp) { display: none; } .mb-pop { width: 82%; } }
@media (prefers-reduced-motion: reduce) { .mb-pop { transform: none; opacity: 1; } .menubar-demo.open .mb-pop { animation: none; } }

/* ---------- Finestra delle impostazioni ---------- */
.settings-shot { display: flex; justify-content: center; }
.settings-shot img { width: min(460px, 100%); height: auto; filter: drop-shadow(0 30px 50px rgba(40,30,20,.28)); }

/* schermate PNG con gli angoli trasparenti: niente fondo grigio dietro gli angoli arrotondati */
.reveal .win { background: transparent; }

/* ---------- Negozio (PayPal) ---------- */
.neg-dati { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.neg-dati label { font-size: 13px; color: var(--ink-2); }
.neg-dati input { font: 15px var(--sans); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.neg-errore { margin: 0; min-height: 1em; color: var(--red); font-size: 14px; }
.neg-ok { background: #e3f1e4; border-radius: 12px; padding: 14px 16px; }
.neg-ok code { display: block; font: 700 20px/1.3 var(--mono); letter-spacing: .06em; margin: 6px 0; }
.neg-ok p { margin: 4px 0; font-size: 14px; }

/* ---------- Home: logo grande al centro e MTPick in evidenza (6/11/2026) ---------- */
.brand-vuoto .name { display: none; }
.home-hero { text-align: center; }
.home-hero .headline, .home-hero .lead { margin-left: auto; margin-right: auto; }
.home-logo { display: block; height: clamp(64px, 10vw, 118px); width: auto; margin: 0 auto 44px; }
.app-card.featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: stretch; margin-bottom: 28px; }
.app-card.featured .shot { aspect-ratio: 1400 / 802; height: 100%; }
.app-card.featured .body { padding: 28px 30px 30px; }
.app-card.featured .body p { flex: none; }
.app-card.featured .body .extra { color: var(--ink); font-size: 16.5px; padding: 14px 16px; border-left: 3px solid var(--red); background: var(--bg); border-radius: 0 10px 10px 0; }
.app-card.featured .btn { margin-top: auto; }
.app-grid.due { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (min-width: 760px) { .app-grid.due { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .app-card.featured { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .app-card.featured .shot { height: auto; }
  .home-logo { margin-bottom: 30px; }
}

/* MTPick = applicazione professionale (scheda scura); MTMonitor e MT2Win = utility (schede chiare, più leggere) */
.app-card.featured .body { background: #1c1c1a; color: #f4f3ef; box-shadow: 0 0 0 1px #000 inset, 0 30px 70px -30px rgba(20, 15, 10, .6); }
.app-card.featured .body p { color: #d9d6cf; }
.app-card.featured .body .extra { color: #f4f3ef; background: rgba(255, 255, 255, .06); }
/* logo di MTPick sul fondo scuro: la versione «-scuro» (MT grigio chiaro, PICK nel rosso di sempre) */
.app-card.featured .btn.light { background: #f4f3ef; color: #1c1c1a; border-color: #f4f3ef; }
.utility-head { margin-top: 92px; }
.app-grid.due .app-card .body { padding: 18px 20px 22px; }
.app-grid.due .app-card .body p { font-size: 15px; }
.app-grid.due .app-head .logo { height: 24px; }

/* Scheda di MTPick: col mouse sulla schermata, la schermata viene avanti (più grande) e il riquadro scuro va dietro,
   quasi trasparente; il testo non resta mai sopra l'immagine (6/11/2026) */
.app-card.featured { position: relative; }
.app-card.featured:hover { transform: none; }
.app-card.featured .shot { position: relative; z-index: 1; transform-origin: 30% 50%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.app-card.featured:hover .shot img { transform: none; }
.app-card.featured .body { position: relative; z-index: 2; transition: opacity .45s var(--ease), filter .45s var(--ease); }
@media (hover: hover) and (min-width: 861px) {
  .app-card.featured .shot:hover { z-index: 3; transform: scale(1.18);
    box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 50px 90px -30px rgba(40, 30, 20, .55); }
  .app-card.featured:has(.shot:hover) .body { z-index: 0; opacity: .12; filter: blur(1px); }
}
/* la schermata resta nella sua colonna: altezza del riquadro, larghezza della colonna (niente proporzioni fisse) */
.app-card.featured .shot { aspect-ratio: auto; height: 100%; min-height: 340px; width: 100%; }
.app-card.featured .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 860px) { .app-card.featured .shot { aspect-ratio: 1400 / 802; height: auto; min-height: 0; } }
.app-card.featured .shot { transform-origin: 0% 50%; }   /* cresce verso destra, sopra il riquadro, senza uscire dalla pagina */
/* Col mouse sopra la schermata intera di MTPick, pannello destro compreso: la schermata prende le sue proporzioni
   vere (più larga della colonna) e passa sopra il riquadro scuro, che sfuma dietro (6/11/2026) */
@media (hover: hover) and (min-width: 861px) {
  .app-card.featured .shot { transition: transform .45s var(--ease), box-shadow .45s var(--ease), width .45s var(--ease); }
  .app-card.featured .shot:hover { width: calc(100% * 2.35 / 1.35 + 22px); transform: none; }
  .app-card.featured .shot:hover img { object-fit: contain; object-position: left top; background: #e6e4dd; }
}
