/* «SOPHIX. Su ogni schermo.» (17/10/2026, richiesta di Edo): computer protagonista, tablet sovrapposto a destra,
   smartphone in primo piano a sinistra, con schermate vere del gestionale (dati dimostrativi).
   I dispositivi sono disegnati solo con CSS: cornici antracite sottili, nessun marchio o scritta.
   Tutte le misure sono in «cqw» (centesimi della larghezza della composizione), così la composizione si rimpicciolisce
   intera senza deformarsi; le schermate mantengono le proporzioni originali (16:10, 1180:820, 600:1299). */
.ovunque--dispositivi { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 52px); }

.dispositivi { --antracite: #1C1E23; --antracite-chiaro: #2E3138;
               --pc-x: 8cqw; --pc-y: 2cqw; --pc-l: 80cqw;
               --tab-x: 0cqw; --tab-y: 35cqw; --tab-l: 42cqw;
               --tel-x: 5cqw; --tel-y: 36cqw; --tel-l: 15cqw;
               position: relative; container-type: inline-size; aspect-ratio: 100 / 69; }
.dispositivi > * { position: absolute; }

/* Schermi: l'immagine riempie lo schermo con le sue proporzioni, un riflesso appena percettibile */
.schermo { position: relative; overflow: hidden; background: #FFFFFF; }
.schermo img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.schermo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                  background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 38%); }

/* Computer portatile */
.pc { left: var(--pc-x); top: var(--pc-y); width: var(--pc-l); z-index: 1; }
.pc__cornice { position: relative; width: 86%; margin: 0 auto; padding: 1.75% 1.75% 2.4%; border-radius: 2.6cqw 2.6cqw .6cqw .6cqw;
               background: var(--antracite); }
.pc__cornice::before { content: ""; position: absolute; left: 50%; top: .55%; width: .7cqw; height: .7cqw; border-radius: 50%; translate: -50% 0;
                       background: radial-gradient(circle at 40% 40%, #3A4150, #0E0F12 70%); }   /* fotocamera */
.schermo--pc { aspect-ratio: 16 / 10; border-radius: .5cqw; }
.pc__base { position: relative; height: 2.3cqw; border-radius: 0 0 1.4cqw 1.4cqw / 0 0 1.6cqw 1.6cqw;
            background: linear-gradient(180deg, #5A5E68 0%, #3A3D45 22%, #2A2C32 70%, #1B1C20 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.pc__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 42%; translate: -50% 0; border-radius: 0 0 .8cqw .8cqw;
                    background: linear-gradient(180deg, #1E2025, #34373F); }   /* incavo per aprire lo schermo */
/* Ombra a terra, morbida e larga */
.pc::after { content: ""; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: -2.4cqw; height: 4cqw; border-radius: 50%;
             background: radial-gradient(closest-side, rgba(90, 60, 0, .32), rgba(90, 60, 0, 0)); }
.pc__cornice { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 0 0 1px #111216, 0 3cqw 6cqw -2cqw rgba(90, 60, 0, .30); }

/* Tablet (orizzontale) */
.tablet { right: var(--tab-x); top: var(--tab-y); width: var(--tab-l); z-index: 2; padding: 1.5cqw; border-radius: 2.4cqw; background: var(--antracite);
          box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px #111216, 0 2.4cqw 5cqw -1.2cqw rgba(90, 60, 0, .38), 0 .5cqw 1.2cqw rgba(22, 27, 46, .16); }
.schermo--tablet { aspect-ratio: 1180 / 820; border-radius: 1cqw; }

/* Smartphone (in primo piano) */
.smartphone { left: var(--tel-x); top: var(--tel-y); width: var(--tel-l); z-index: 3; padding: .75cqw; border-radius: 2.7cqw; background: var(--antracite);
              box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1px #0F1013, 0 2.6cqw 4.6cqw -1cqw rgba(90, 60, 0, .42), 0 .6cqw 1.2cqw rgba(22, 27, 46, .2); }
.smartphone::after { content: ""; position: absolute; right: -.25cqw; top: 22%; width: .25cqw; height: 12%; border-radius: 0 .2cqw .2cqw 0; background: var(--antracite-chiaro); }   /* tasto laterale */
.schermo--smartphone { aspect-ratio: 600 / 1299; border-radius: 2cqw; }

/* Ingresso: i tre dispositivi arrivano uno dopo l'altro (solo trasparenza e posizione) */
.rivela .dispositivi[data-rivela] { opacity: 1; transform: none; }
.rivela .dispositivi:not(.visibile) > * { opacity: 0; }
.rivela .dispositivi > * { transition: opacity 1s var(--curva), transform 1.2s var(--curva); }
.rivela .dispositivi:not(.visibile) > .pc { transform: translateY(3cqw); }
.rivela .dispositivi:not(.visibile) > .tablet { transform: translate(4cqw, 2cqw); }
.rivela .dispositivi > .tablet { transition-delay: .25s; }
.rivela .dispositivi:not(.visibile) > .smartphone { transform: translate(-3cqw, 4cqw); }
.rivela .dispositivi > .smartphone { transition-delay: .5s; }


@media (max-width: 960px) {
  .ovunque--dispositivi { grid-template-columns: minmax(0, 1fr); }
  /* Foglia piccola nell'angolo, senza accenti rosa, lontana dal titolo */
  .ovunque.come-benvenuto::before { left: auto; right: -70px; top: -70px; width: 240px; height: 180px; opacity: .5; background-image: url("foglia.svg"); }
}

/* Telefono: la composizione occupa tutta la larghezza; tablet e smartphone più grandi rispetto al computer */
@media (max-width: 700px) {
  .dispositivi { --pc-x: 0cqw; --pc-y: 0cqw; --pc-l: 94cqw; --tab-x: 0cqw; --tab-y: 45cqw; --tab-l: 54cqw; --tel-x: 3cqw; --tel-y: 38cqw; --tel-l: 23cqw;
                 aspect-ratio: 100 / 90; margin-top: 6px; }
  .smartphone { padding: 1.1cqw; border-radius: 4cqw; }
  .schermo--smartphone { border-radius: 3cqw; }
}
@media (prefers-reduced-motion: reduce) { .rivela .dispositivi > * { opacity: 1; transform: none; transition: none; } }
