/* home sullo schema di guns.lol: barra a pillola, apertura centrata con le
   anteprime in prospettiva, numeri, prova dal vivo, domande, riquadro finale */

.home-g { background: #0b0810; }

/* ---- barra a pillola */
.nav-pillola { position: fixed; z-index: 40; top: 18px; left: 50%; transform: translateX(-50%); width: min(1280px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 22px; border-radius: 999px;
  background: rgba(20, 15, 28, .82); border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transition: background .25s; }
.nav-pillola.scesa { background: rgba(16, 12, 22, .96); }
.nav-pillola nav { display: flex; align-items: center; gap: 4px; }
.nav-pillola nav a { text-decoration: none; color: #d9d0e6; padding: 9px 14px; border-radius: 999px; font-size: 15.5px; }
.nav-pillola nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-pillola nav a.pulsante { color: #fff; border-radius: 999px; padding: 10px 18px; background: rgba(255, 79, 139, .22); border: 1px solid rgba(255, 79, 139, .55); }
.nav-pillola nav a.pulsante:hover { background: rgba(255, 79, 139, .35); }

/* ---- motivo di sfondo con le "L" sparse */
.motivo-sfondo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.motivo-sfondo span { position: absolute; width: 70px; height: 70px; color: #ff4f8b; opacity: .07; }
.motivo-sfondo span svg { width: 100%; height: 100%; display: block; }

/* ---- apertura */
.apertura-g { position: relative; overflow: hidden; padding: 190px 16px 0; text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, #351a3e 0%, #1a1022 55%, #0b0810 100%); }
.apertura-g h1 { position: relative; font-family: var(--titolo); font-weight: 700; font-size: clamp(34px, 5vw, 68px); letter-spacing: -.04em; line-height: 1.05; margin: 0 auto 18px; max-width: 18ch; }
.sotto-g { position: relative; color: #c9bed8; font-size: clamp(16px, 1.5vw, 20px); max-width: 62ch; margin: 0 auto; }
.azioni-g { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 64px; }
.pulsante-g { padding: 14px 24px; font-size: 17px; border-radius: 999px; }
.pulsante-g:not(.fantasma) { background: rgba(255, 79, 139, .25); border: 1px solid rgba(255, 79, 139, .6); box-shadow: 0 0 30px rgba(255, 79, 139, .25); }
.pulsante-g:not(.fantasma):hover { background: rgba(255, 79, 139, .4); }
.pulsante-g.fantasma { background: rgba(255, 255, 255, .04); }

/* vetrina in prospettiva: l'editor a sinistra, tre telefoni a ventaglio a destra */
.vetrina-3d { position: relative; height: clamp(300px, 36vw, 520px); max-width: 1380px; margin: 0 auto; perspective: 1600px; }
.vetrina-3d img { position: absolute; border-radius: 22px; border: 2px solid rgba(255, 79, 139, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #000; }
.vetrina-editor { left: 2%; top: 4%; width: 46%; height: auto; transform: rotateY(16deg) rotateX(6deg) rotateZ(-3deg); transform-origin: left center; }
.vetrina-tel { width: 17%; height: auto; transform-origin: bottom center; }
.vetrina-tel.t1 { left: 55%; top: 10%; transform: rotateY(-18deg) rotateZ(-4deg); }
.vetrina-tel.t2 { left: 67%; top: 5%; transform: rotateY(-18deg) rotateZ(-2deg); z-index: 2; }
.vetrina-tel.t3 { left: 79%; top: 0; transform: rotateY(-18deg); z-index: 3; }
.apertura-g::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to bottom, transparent, #0b0810); pointer-events: none; z-index: 4; }

/* ---- numeri (come nella foto di riferimento) */
.numeri-g { padding: 100px clamp(16px, 5vw, 80px) 90px; text-align: center; max-width: 1380px; margin: 0 auto; }
.numeri-g h2 { font-family: var(--corpo); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.02em; margin: 0 0 12px; }
.evidenza { color: #ff7aa8; }
.riquadri-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0 60px; text-align: left; }
.riquadro-g { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 26px 28px; border-radius: 18px; background: #151019; border: 1px solid rgba(255, 255, 255, .05); }
.riquadro-g strong { display: block; font-family: var(--corpo); font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.riquadro-g span { color: #a99cbd; font-size: 16px; }
.ico-g { color: #ff7aa8 !important; }
.ico-g .ico { width: 26px; height: 26px; }
.invito-g { font-size: 19px; margin: 0 0 16px; }
.prendi-g { margin: 0 auto; max-width: 440px; border-radius: 14px; }
.numeri-g .prendi-esito { text-align: center; }

/* ---- prova dal vivo */
.prova-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.prova-schermo { position: relative; aspect-ratio: 4 / 4.2; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 100px -40px rgba(255, 79, 139, .4); }
.prova-schermo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prova-g .riga-chip { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; margin-bottom: 12px; }
.prova-g .riga-chip .nome-riga { padding-top: 7px; width: auto; }
.prova-g .chip-gruppo { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- podio della classifica */
.podio-g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.podio-g li a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 14px; border-radius: 18px; background: #151019; border: 1px solid rgba(255, 255, 255, .05); text-decoration: none; color: inherit; text-align: center; transition: transform .2s, border-color .2s; }
.podio-g li a:hover { transform: translateY(-3px); border-color: rgba(255, 79, 139, .45); }
.podio-g .posto { font-family: var(--titolo); font-size: 14px; color: #a99cbd; }
.podio-g li:nth-child(1) .posto { color: #ffd166; } .podio-g li:nth-child(2) .posto { color: #c9d3e0; } .podio-g li:nth-child(3) .posto { color: #d0905e; }
.podio-g img, .podio-g .iniziale { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: rgba(255, 79, 139, .2); display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.podio-g strong { font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podio-g small { color: #a99cbd; font-size: 13.5px; }
.podio-vuoto { color: #a99cbd; }

/* ---- domande */
.domande-g h2 { text-align: center; margin-left: auto; margin-right: auto; }
.elenco-domande { max-width: 1060px; margin: 30px auto 0; display: grid; gap: 12px; }
.elenco-domande details { border-radius: 14px; background: #151019; border: 1px solid rgba(255, 255, 255, .05); }
.elenco-domande summary { list-style: none; cursor: pointer; padding: 22px 24px; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.elenco-domande summary::-webkit-details-marker { display: none; }
.elenco-domande summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid #d9d0e6; border-bottom: 2px solid #d9d0e6; transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
.elenco-domande details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.elenco-domande details p { margin: 0; padding: 0 24px 22px; color: #b8acc8; max-width: 80ch; }

/* ---- riquadro finale */
.finale-g { padding: 40px clamp(16px, 5vw, 80px) 90px; }
.finale-card { position: relative; overflow: hidden; max-width: 1280px; margin: 0 auto; padding: clamp(36px, 5vw, 70px); border-radius: 28px; background: linear-gradient(135deg, #3a1a3f, #241329); }
.finale-card h2 { position: relative; font-family: var(--corpo); font-weight: 600; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.03em; margin: 0 0 14px; }
.finale-card p { position: relative; color: #d6c9e2; font-size: 19px; max-width: 34ch; margin: 0 0 30px; }
.finale-card .prendi-g { position: relative; margin: 0; }

@media (max-width: 1000px) {
  .riquadri-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podio-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prova-g { grid-template-columns: 1fr; }
  .nav-pillola nav a:not(.pulsante):not(#link-accedi) { display: none; }
}
@media (max-width: 640px) {
  .apertura-g { padding-top: 140px; }
  .vetrina-editor { width: 70%; left: 0; }
  .vetrina-tel { width: 30%; }
  .vetrina-tel.t1 { display: none; }
  .vetrina-tel.t2 { left: 52%; } .vetrina-tel.t3 { left: 68%; }
  .riquadri-g { grid-template-columns: 1fr; }
  .podio-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-pillola { padding-left: 16px; }
  .nav-pillola nav a#link-accedi { display: none; }
}
