/* Pagina di accesso con la nuova grafica (21/10/2026), dal prototipo pwa2/accesso.html (smartphone) e
   pwa2/computer-accesso.html (computer). Una sola pagina: sotto i 992px marchio in alto e modulo come foglio in basso,
   da 992px in su due colonne (marchio a sinistra, modulo su fondo blu a destra). */
@font-face { font-family: 'Panton'; src: url('fonts/Panton-Regular.woff2') format('woff2'), url('fonts/Panton-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Panton'; src: url('fonts/Panton-Bold.woff2') format('woff2'), url('fonts/Panton-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

body.login { margin: 0; padding: 0 !important; background: #F5EFE6 !important; }
body.login > .footer { display: none; }   /* vecchio piede del login */

.lg2 { --blu: #172235; --rosa: #D6336C; --oro: #E3A13A; --crema: #F5EFE6; --chiaro: #FFFCF7;
  min-height: 100vh; min-height: 100dvh; box-sizing: border-box; background: var(--crema); color: var(--blu);
  font-family: 'Panton', 'Helvetica Neue', Arial, sans-serif; display: flex; flex-direction: column; overflow: visible; }
/* smartphone: la pagina deve poter scorrere fino ad Accedi (il foglio di stile generale blocca html/body) */
html, body.login { height: auto !important; min-height: 100%; }
body.login { overflow-x: hidden !important; overflow-y: auto !important; position: static !important; touch-action: pan-y; }
/* il nastro inclinato esce dai lati: lo taglia il contenitore del marchio, senza creare una zona di scorrimento interna */
.lg2-brand { overflow: hidden; }
.lg2 *, .lg2 *::before, .lg2 *::after { box-sizing: border-box; }

/* ---- marchio ---- */
.lg2-brand { position: relative; padding: 20px 24px 80px; display: flex; flex-direction: column; align-items: flex-start; }
.lg2-logo { width: 110px; height: 110px; display: block; margin: 0 auto 4px; }
.lg2-titolo { display: flex; flex-direction: column; margin-top: 4px; }
.lg2-titolo > span { overflow: hidden; display: block; }
.lg2-titolo .ln { display: block; }
.lg2-titolo .k { font-size: 13px; font-weight: 700; letter-spacing: .26em; }
.lg2-titolo .big { font-size: 46px; line-height: 1.02; letter-spacing: -.02em; font-weight: 400; }
.lg2-titolo .rosa { color: var(--rosa); }
.lg2-nastro { position: absolute; left: -40px; right: -40px; bottom: 26px; transform: rotate(-7deg); background: var(--oro); color: var(--blu); padding: 8px 0; overflow: hidden; }
.lg2-nastro .tape { display: flex; gap: 22px; width: max-content; font-size: 17px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }

/* ---- modulo ---- */
.lg2-panel { margin-top: 10px; flex: 1 0 auto; align-items: flex-start; position: relative; z-index: 1; background: var(--blu); color: var(--chiaro); border-radius: 32px 32px 0 0; padding: 26px 20px 28px; display: flex; justify-content: center; }
.lg2-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.lg2-form h2 { display: none; margin: 0 0 10px; font-weight: 400; font-size: 46px; line-height: 1; color: var(--chiaro); }
.lg2-field { display: flex; flex-direction: column; gap: 2px; padding: 10px 18px; border-radius: 18px; border: 1.5px solid #3A4860; background: #1E2B42; margin: 0; cursor: text; transition: border-color .2s, box-shadow .2s; }
.lg2-field:focus-within { border-color: var(--chiaro); box-shadow: 0 0 0 4px rgba(214, 51, 108, .35); }
.lg2-field span { font-size: 12px; font-weight: 700; color: #B8BFCC; }
.lg2-field input { border: 0 !important; outline: 0; background: transparent !important; font-family: inherit; font-size: 19px; color: var(--chiaro) !important; padding: 2px 0 !important; margin: 0 !important; height: auto !important; width: 100%; text-indent: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.lg2-field input:-webkit-autofill { -webkit-text-fill-color: var(--chiaro); -webkit-box-shadow: 0 0 0 1000px #1E2B42 inset; transition: background-color 9999s; }
.lg2-go { margin-top: 4px; min-height: 62px; border: 0; border-radius: 999px; background: var(--rosa); color: var(--chiaro); display: flex; align-items: center; justify-content: space-between; padding: 0 7px 0 26px; font-family: inherit; font-size: 20px; font-weight: 700; cursor: pointer; position: relative; overflow: hidden; transition: transform .15s; width: 100%; }
.lg2-go:active { transform: scale(.96); }
.lg2-go .freccia { width: 48px; height: 48px; border-radius: 50%; background: var(--chiaro); display: flex; align-items: center; justify-content: center; flex: 0 0 48px; }
.lg2-go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 252, 247, .35) 50%, transparent 70%); transform: translateX(-100%); animation: lg2sh 3s 1.2s ease-in-out infinite; }
.lg2-dim { align-self: center; min-height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--chiaro) !important; text-decoration: underline; text-underline-offset: 3px; }
.lg2-dim:hover { color: #F3A9C3 !important; }
.lg2-manut { background: #fff3cd; border: 1px solid #f3d27a; color: #6b4e00; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }

/* ---- computer ---- */
@media (min-width: 992px) {
  .lg2 { flex-direction: row; flex-wrap: wrap; min-height: 100vh; }
  .lg2-brand { flex: 1 1 560px; min-width: 0; min-height: 560px; justify-content: center; padding: 48px clamp(24px, 5vw, 80px) 140px; }
  .lg2-logo { width: 200px; height: 200px; margin: 0; }
  .lg2-titolo { margin-top: 20px; }
  .lg2-titolo .k { font-size: 14px; letter-spacing: .28em; }
  .lg2-titolo .big { font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -.03em; }
  .lg2-nastro { bottom: 50px; transform: rotate(-3deg); padding: 10px 0; }
  .lg2-nastro .tape { gap: 28px; font-size: 20px; letter-spacing: .14em; }
  .lg2-panel { flex: 1 1 420px; margin-top: 0; border-radius: 0; align-items: center; padding: 48px 24px; }
  .lg2-form { gap: 14px; }
  .lg2-form h2 { display: block; }
  .lg2-dim { align-self: flex-start; }
}

/* ---- animazioni ---- */
.lg2 .pt { opacity: 0; animation: lg2pt .6s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.lg2 .q1 { --from: translate(-34px, -26px) rotate(-120deg); animation-delay: 0s; }
.lg2 .q2 { --from: translate(36px, -20px) rotate(140deg); animation-delay: .08s; }
.lg2 .q3 { --from: translate(-30px, 34px) rotate(160deg); animation-delay: .16s; }
@keyframes lg2pt { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
.lg2 .dd { opacity: 0; animation: lg2dd .5s .3s cubic-bezier(.2, 1.4, .4, 1) forwards, lg2pulse 2.2s 1s ease-in-out infinite; }
/* la D grande pulsa dopo l'entrata */
@keyframes lg2pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes lg2dd { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.lg2 .ln { opacity: 0; animation: lg2ln .5s cubic-bezier(.16, 1, .3, 1) forwards; }
.lg2 .l1 { animation-delay: .3s; } .lg2 .l2 { animation-delay: .38s; } .lg2 .l3 { animation-delay: .46s; }
@keyframes lg2ln { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
.lg2 .tape { animation: lg2tape 18s linear infinite; }
@keyframes lg2tape { to { transform: translateX(-50%); } }
.lg2-panel { animation: lg2sheet .55s .15s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes lg2sheet { from { transform: translateY(110%); } to { transform: none; } }
@media (min-width: 992px) {
  .lg2-panel { animation-name: lg2side; animation-delay: .1s; }
  @keyframes lg2side { from { transform: translateX(100%); } to { transform: none; } }
}
@keyframes lg2sh { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .lg2 .pt, .lg2 .dd, .lg2 .ln { animation: none !important; opacity: 1; }
  .lg2-panel, .lg2 .tape, .lg2-go::after { animation: none; }
}
.lg2-logo { overflow: visible; }
.lg2-intro { margin: -4px 0 4px; font-size: 15px; line-height: 1.45; color: #B8BFCC; }
@media (max-width: 991px) { .lg2-form h2 { display: none; } .recovery .lg2-form h2 { display: block; font-size: 28px; margin: 0; } }
