/* CiaoLoft — pagina ufficiale. Separata dal tema del sito: colori e caratteri sono quelli dell'app.
   Niente stili scritti nella pagina (la CSP permette solo questo file). */
@font-face { font-family: Outfit; src: url(fonts/outfit-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Fredoka; src: url(fonts/fredoka-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url(fonts/fredoka-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0d0820; --bg2: #1c1447; --panel: rgba(255,255,255,.06); --panel-2: rgba(255,255,255,.1); --line: rgba(255,255,255,.13);
  --text: #f6f3ff; --muted: #c4bbe8; --accent: #ff4fa3; --accent-2: #1fc8ff; --code: #ffd23f; --ok: #3ddc97;
  --hot: linear-gradient(135deg,#ff4fa3 0%,#ff7a45 55%,#ffd23f 100%); --on-hot: #241634;
  --radius: 22px; --radius-s: 14px; --wrap: 1100px;
  --font: Outfit, "Segoe UI", system-ui, -apple-system, sans-serif; --head: Fredoka, Outfit, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
  background: radial-gradient(50% 40% at 8% 0%, #ff4fa333, transparent 70%), radial-gradient(50% 40% at 100% 20%, #1fc8ff26, transparent 70%), linear-gradient(180deg, #140c35 0%, var(--bg) 40%, #0a0618 100%);
  background-color: var(--bg); min-height: 100vh; cursor: url(img/cursor-arrow.svg) 4 3, auto; }
/* puntatori come nell'app (tema predefinito): freccia, mano, barra del testo */
a, button, summary, label, [role=button] { cursor: url(img/cursor-hand.svg) 11 3, pointer; }
input, textarea, code.hash { cursor: url(img/cursor-text.svg) 13 13, text; }
img, video { max-width: 100%; height: auto; display: block; }
/* 30/11, sera: tutti i link nel rosa dell'accento (lo stesso di "Also on your phone") */
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ff8cc4; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .2px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.small { font-size: 14px; color: var(--muted); }

/* barra in alto */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(13,8,32,.78); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; } /* 72 px, come la barra del sito principale (la riga sotto e' un'ombra: non cambia l'altezza) */
/* 0.1: stessa larghezza della barra del sito principale (.shell: 78rem, margini 1-1,5rem), così passando da una pagina all'altra logo e voci non saltano */
.bar .bar__in { width: min(100% - 2 * clamp(1rem, 4vw, 1.5rem), 78rem); }
/* 30/11, sera: logo e scritta identici al sito principale (.brand): logo alto 38 px, "LL Pixel" a 31 px, 12 px di spazio;
   cosi' passando dalla pagina dei giochi a CiaoLoft il logo resta fermo nello stesso punto */
.bar__home { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; font-family: "LL Pixel", "Courier New", monospace; font-weight: 700; font-size: 31px; line-height: 1; letter-spacing: .01em; }
.bar__home img { width: auto; height: 38px; flex: none; }
@media (max-width: 760px) { .bar__home { font-size: 30px; } }
@media (max-width: 520px) { .bar__home { gap: .5rem; font-size: 24px; } .bar__home img { height: 30px; } }
.bar__nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.bar__nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.bar__nav a:hover { color: var(--text); }
.bar__nav .bar__cta { color: var(--on-hot); background: var(--hot); padding: 9px 18px; border-radius: 999px; }
@media (max-width: 720px) { .bar__nav > a:not(.bar__cta) { display: none; } }

/* pulsanti, pillole, etichette */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font); }
.btn small { font-weight: 600; opacity: .8; font-size: 13px; }
.btn--hot { background: var(--hot); color: var(--on-hot); box-shadow: 0 12px 30px -10px #ff4fa399; }
.btn--hot:hover { color: var(--on-hot); filter: brightness(1.06); }
.btn--ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--text); background: rgba(255,255,255,.16); }
.btn--big { min-height: 60px; font-size: 19px; padding: 12px 28px; flex-wrap: wrap; }
.linkbtn:hover { color: #ff8cc4; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.pill { display: inline-block; font-family: var(--font); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.pill--exp { background: #ffd23f; color: #2a1a00; }
.pill--soon { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); font-size: 15px; padding: 6px 16px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* i tag occupano esattamente la larghezza dei due pulsanti sopra: non allargano il blocco (width 0) e lo riempiono riga per riga */
.hero__act { width: fit-content; max-width: 100%; }
.hero__act .chips { width: 0; min-width: 100%; }
.hero__act .chip { flex: 1 1 auto; justify-content: center; }
@media (max-width: 560px) { .hero__act { width: auto; } .hero__cta .btn { flex: 1 1 auto; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; color: #10142a; }
.chip .i { width: 15px; height: 15px; }
.c1 { background: #3ddc97; } .c2 { background: #ff7ac8; } .c3 { background: #ffb347; } .c4 { background: #6fa1ff; } .c5 { background: #c9a4ff; } .c6 { background: #7fe0ff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.btn .i { width: 20px; height: 20px; }
.grad { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.grad--word { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* testata */
.hero { padding: 48px 0 24px; }
.hero__in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero__in { grid-template-columns: 1fr; } }
.hero__brand { display: flex; align-items: center; gap: 14px; font-family: var(--head); font-weight: 700; font-size: 30px; margin-bottom: 14px; }
.hero__brand img { width: 64px; height: 64px; filter: drop-shadow(0 10px 24px #ff4fa366); }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.05; }
.hero__from { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--text); }
.hero__from .i { width: 26px; height: 26px; color: var(--accent); }
.hero__lede { font-size: 20px; color: var(--muted); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__shot { margin: 0; }
.demo { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: 0 30px 80px #000a, 0 0 0 1px var(--line), 0 0 60px #ff4fa333; background: #120a2e; }
.hero__shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* nota sperimentale */
.notice { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #ffd23f1f, #ff7a4514); border: 1px solid #ffd23f55; display: flex; gap: 18px; align-items: flex-start; }
.notice__i { width: 34px; height: 34px; color: #ffd23f; flex: none; margin-top: 2px; }
.notice h2 { font-size: 21px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: .35em; }
.notice p { margin: 0; color: #f3ecd2; }
.notice a { color: var(--accent); }

/* sezioni e schede */
.section { padding: 64px 0 8px; }
.section__lede { color: var(--muted); font-size: 19px; max-width: 62ch; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.group { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 30px 0 14px; }
.group .i { width: 26px; height: 26px; color: var(--accent); }

/* tessere con icona: titolo e una riga */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .tiles, .tiles--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles, .tiles--4 { grid-template-columns: 1fr; } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.24); background: var(--panel-2); }
.tile h3 { font-size: 18px; margin: 12px 0 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile__i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ff4fa3, #ff7a45); box-shadow: 0 10px 24px -10px #ff4fa3aa; }
.tiles li:nth-child(6n+2) .tile__i { background: linear-gradient(135deg, #1fc8ff, #6f7bff); box-shadow: 0 10px 24px -10px #1fc8ffaa; }
.tiles li:nth-child(6n+3) .tile__i { background: linear-gradient(135deg, #3ddc97, #1fb5a8); box-shadow: 0 10px 24px -10px #3ddc97aa; }
.tiles li:nth-child(6n+4) .tile__i { background: linear-gradient(135deg, #ffb347, #ff7a45); box-shadow: 0 10px 24px -10px #ffb347aa; }
.tiles li:nth-child(6n+5) .tile__i { background: linear-gradient(135deg, #c9a4ff, #8a6bff); box-shadow: 0 10px 24px -10px #c9a4ffaa; }
.tiles li:nth-child(6n+6) .tile__i { background: linear-gradient(135deg, #ff7ac8, #c75bff); box-shadow: 0 10px 24px -10px #ff7ac8aa; }
/* privacy: toni calmi, verde e azzurro */
.tile--calm .tile__i, .tiles--calm li:nth-child(n) .tile__i { background: rgba(61,220,151,.14); color: var(--ok); box-shadow: none; border: 1px solid rgba(61,220,151,.35); }
.tiles--calm li:nth-child(even) .tile__i { background: rgba(31,200,255,.13); color: var(--accent-2); border-color: rgba(31,200,255,.35); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* riquadri che si aprono (FAQ, dettagli): freccia staccata dal bordo, apertura animata da ciaoloft.js */
.more { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); margin-top: 18px; overflow: hidden; transition: border-color .2s ease, background-color .2s ease; }
.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-weight: 700; font-size: 17px; }
.more summary::-webkit-details-marker { display: none; }
/* 30/11, sera: in hover si accende il bordo del riquadro e la freccia, non un fondo sotto il titolo che arrivava a ridosso del testo */
.more:hover { border-color: rgba(255,79,163,.5); background: rgba(255,255,255,.075); }
.more:hover .more__arrow { color: var(--accent); background: rgba(255,79,163,.14); }
.more summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-s); }
.more__arrow { width: 30px; height: 30px; padding: 6px; flex: none; border-radius: 50%; background: var(--panel-2); color: var(--accent-2); transition: transform .3s ease, color .2s ease, background-color .2s ease; }
.more[open] > summary .more__arrow { transform: rotate(90deg); }
.more__body { padding: 0 22px 18px 64px; }
.more__body p { color: var(--muted); margin: 0 0 .6em; }
.more__body p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .more__body { padding-left: 20px; } }
@media (prefers-reduced-motion: reduce) { .more__arrow { transition: none; } }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts dt { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.facts dt .i { width: 18px; height: 18px; color: var(--ok); flex: none; }
.facts dd { margin: 4px 0 0 26px; color: var(--muted); font-size: 15.5px; }

/* fascia UE e IA */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; } }
.band__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.band__item h3 { font-size: 19px; margin-bottom: .25em; }
.band__item p { margin: 0; color: var(--muted); font-size: 15.5px; }
.band__i { width: 40px; height: 40px; flex: none; color: var(--accent-2); }
.band__i--eu { color: #ffd23f; }

/* galleria */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot img { border-radius: var(--radius-s); border: 1px solid var(--line); box-shadow: 0 18px 50px -18px #000c; width: 100%; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.shot__zoom { display: block; border-radius: var(--radius-s); cursor: url(img/cursor-hand.svg) 11 3, zoom-in; }
.shot__zoom:hover img, .shot__zoom:focus-visible img { transform: translateY(-3px); border-color: rgba(255,255,255,.24); box-shadow: 0 26px 60px -18px #000e; }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot__zoom:hover img, .shot__zoom:focus-visible img { transform: none; } }
/* ingrandimento delle immagini (creato da ciaoloft.js) */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1440px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8,4,22,.86); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lbIn .22s cubic-bezier(.2,.7,.2,1); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox img { max-width: min(96vw, 1440px); max-height: calc(94vh - 40px); width: auto; border-radius: var(--radius-s); box-shadow: 0 30px 90px #000c, 0 0 0 1px var(--line); cursor: url(img/cursor-hand.svg) 11 3, zoom-out; }
.lightbox p { margin: 16px 0 0; text-align: center; color: var(--text); font-size: 15px; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #241a4f; color: var(--text); font-size: 22px; line-height: 1; font-family: var(--font); }
.lightbox__close:hover { background: #33276a; }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }
.shot figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); text-align: center; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
/* app Android: tre telefoni affiancati; sul telefono scorrono di lato dentro il riquadro (la pagina non scorre) */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 28px; margin-top: 18px; }
.phone img { border-radius: 26px; border: 6px solid #241a4f; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -18px #000d; }
.phone .shot__zoom { border-radius: 26px; }
@media (max-width: 700px) { .phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .phone { scroll-snap-align: center; } }

/* download */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; margin-top: 20px; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }
.dl__os { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 22px; }
.dl__os .i { width: 26px; height: 26px; color: var(--accent-2); }
.dl__card .btn { width: 100%; }
.dl__req { margin-top: 12px; color: var(--muted); font-size: 15px; }
.steps { padding-left: 22px; color: var(--muted); display: grid; gap: 8px; margin-bottom: 0; }
.steps b { color: var(--text); }
.hash { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--code); word-break: break-all; background: rgba(0,0,0,.3); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; user-select: all; }
.dl__note { margin-top: 16px; }
.dl__note .i { width: 18px; height: 18px; color: var(--ok); margin: -3px 6px 0 0; }

/* domande */
.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq .more { margin-top: 0; }

/* coming soon */
.soon { min-height: calc(100vh - 220px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.soon__in { max-width: 640px; }
.soon__icon { width: 128px; height: 128px; margin: 0 auto 12px; filter: drop-shadow(0 14px 34px #ff4fa366); }
.soon h1 { font-size: clamp(42px, 7vw, 64px); margin-bottom: .1em; }
.soon__tag { font-family: var(--head); font-size: 26px; }
.soon__tag b { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon__lede { color: var(--muted); font-size: 18px; }

/* anteprima privata */
.preview-note { background: #ffd23f; color: #2a1a00; text-align: center; font-weight: 700; padding: 8px 16px; font-size: 14px; }

/* termini */
.legal { padding: 40px 0; }
.legal__box { max-width: 800px; margin: 0 auto; }
.legal__box h2 { font-size: 21px; margin-top: 1.3em; }
.legal__box p { color: var(--muted); }

/* piede */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); padding: 28px 0 36px; }
.foot__in { display: grid; gap: 10px; }
.foot__brand { margin: 0; font-weight: 600; }
.foot__brand img { display: inline-block; width: 14px; height: auto; vertical-align: -3px; margin-right: 6px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.foot__small { font-size: 13px; color: var(--muted); margin: 0; }

/* 0.1: selezione del testo nei colori di CiaoLoft (rosa dell'accento, testo bianco) */
::selection { background: #ff4fa3; color: #fff; }

/* =============================================================================
   Vetrina (30/11, scelta del titolare): stesso contenuto, stile "a capitoli".
   Fondo scuro pieno, titoli grandi e corti con la seconda meta' sfumata, una
   sezione per idea, immagini grandi. I pezzi .sc-reveal entrano scorrendo
   (ciaoloft.js); senza JavaScript o con "riduci animazioni" sono gia' visibili.
   ========================================================================== */
body:has(.sc) { background: #05030d; }
.sc h1, .sc h2 { letter-spacing: -.02em; line-height: 1.04; }
.sc-grad { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sc-eyebrow { color: var(--accent); font-family: var(--head); font-weight: 700; font-size: clamp(16px, 2vw, 21px); margin: 0 0 10px; }
.sc-lede { color: var(--muted); font-size: clamp(18px, 2.1vw, 23px); line-height: 1.45; max-width: 40ch; margin: 18px auto 0; }
.sc-link { color: var(--accent); font-weight: 600; font-size: 18px; text-decoration: none; }
.sc-link:hover { text-decoration: underline; }

.sc-hero { text-align: center; padding: clamp(56px, 9vw, 110px) 16px 0; }
.sc-hero__icon { display: block; width: clamp(80px, 9vw, 112px); height: auto; margin: 0 auto 18px; border-radius: 26%; box-shadow: 0 20px 60px rgba(255,79,163,.35); }
.sc-hero h1 { font-size: clamp(76px, 15vw, 180px); margin: 0; }
.sc-hero h1 .sc-grad { display: block; }
.sc-hero__sub { display: block; font-size: clamp(30px, 5vw, 58px); color: var(--text); margin-top: 8px; }
.sc-hero__lede { color: var(--muted); font-size: clamp(18px, 2.1vw, 23px); max-width: 36ch; margin: 22px auto 0; line-height: 1.45; }
.sc-hero__from { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 19px; margin: 18px 0 0; }
.sc-hero__from .i { width: 26px; height: 26px; color: var(--accent); }
.sc-hero__cta { display: flex; gap: 14px 26px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 28px 0 0; }
.sc-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 28px auto 0; max-width: 760px; }
.sc-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.sc-pills .i { width: 17px; height: 17px; color: var(--accent-2); }
.sc-devices { position: relative; max-width: 1080px; margin: clamp(46px, 7vw, 80px) auto 0; padding: 0 clamp(0px, 3vw, 40px); }
.sc-devices__pc.demo { width: 100%; border-radius: 18px; box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08), 0 0 80px #ff4fa322; }
.sc-devices figcaption { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* largo quanto il suo testo (niente vuoto a destra), centrato */
.sc-notice { margin: clamp(60px, 8vw, 100px) auto 0; padding: 22px 28px; border-radius: var(--radius); background: linear-gradient(135deg, #ffd23f1a, #ff7a4512); border: 1px solid #ffd23f44; display: flex; gap: 18px; align-items: flex-start; width: fit-content; max-width: min(760px, 100% - 32px); }
.sc-notice p { max-width: 58ch; }
.sc-notice h2 { font-size: 21px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: .35em; letter-spacing: 0; }
.sc-notice p { margin: 0; color: #f3ecd2; }
.sc-notice a { color: var(--accent); }

.sc-chapter { text-align: center; width: min(1180px, 100% - 32px); margin: 0 auto; padding: clamp(90px, 12vw, 160px) 0 0; }
.sc-chapter h2 { font-size: clamp(40px, 6.6vw, 84px); margin: 0; }
.sc-group { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; margin: clamp(40px, 6vw, 64px) 0 18px; }
.sc-group .i { width: 26px; height: 26px; color: var(--accent); }
.sc-tiles { text-align: left; }
.sc-tiles .tile { background: rgba(255,255,255,.045); border-radius: 22px; padding: 24px 22px 22px; }
/* alone centrato e che svanisce prima dei bordi: in cima alla sezione (sotto i telefoni) non resta nessuna riga */
.sc-chapter--glow { background: radial-gradient(ellipse 60% 38% at 50% 48%, rgba(61,220,151,.09), transparent 72%); }
.sc-chapter--glow .sc-tiles { margin-top: 44px; }
.sc-more { text-align: left; }
.sc-after { margin: 22px 0 0; }

.sc-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: min(1080px, 100% - 32px); margin: clamp(90px, 12vw, 150px) auto 0; text-align: center; }
.sc-numbers b { display: block; font-family: var(--head); font-size: clamp(64px, 10vw, 130px); line-height: 1; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-numbers span { color: var(--muted); font-size: clamp(15px, 1.8vw, 19px); }
/* 0.1: asterisco onesto sullo "0": i punti d'incontro e il relay cifrato esistono, ma non sono server di CiaoLoft */
.sc-star { font-size: .38em; vertical-align: super; margin-left: .06em; color: #fff; -webkit-text-fill-color: #fff; text-decoration: none; opacity: .8; }
.sc-star:hover, .sc-star:focus-visible { opacity: 1; }
.sc-numbers__note { grid-column: 1 / -1; max-width: 70ch; margin: 8px auto 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.sc-gallery { margin-top: clamp(40px, 6vw, 64px); gap: 28px; }
.sc-gallery .shot img, .sc-gallery .shot__zoom { border-radius: 18px; }
.sc-gallery .shot img { box-shadow: 0 40px 100px -30px #000, 0 0 0 1px rgba(255,255,255,.08); border: 0; }
.sc-phones { margin-top: clamp(40px, 6vw, 64px); }
.sc-band { margin-top: clamp(90px, 12vw, 150px); }
.sc-chapter.download .dl { text-align: left; margin-top: clamp(36px, 5vw, 56px); }
.sc-chapter.download .dl__note { text-align: center; }
.sc-chapter--faq .faq { text-align: left; max-width: 860px; margin: clamp(36px, 5vw, 56px) auto 0; }

/* entrata scorrendo: solo con JavaScript (classe sc-js su <html>) e senza "riduci animazioni" */
.sc-js .sc-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.sc-js .sc-reveal.is-in { opacity: 1; transform: none; }
.sc-js .tile.sc-reveal.is-in:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .sc-js .sc-reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 760px) {
  .sc-numbers { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sc-notice { flex-direction: column; gap: 10px; }
}

/* piede centrato (30/11) */
.foot__in { justify-items: center; text-align: center; }
.foot__links { justify-content: center; }

/* =============================================================================
   30/11, sera
   ========================================================================== */
@font-face { font-family: "LL Pixel"; src: url(/main-assets/fonts/pixel/jersey-10.woff2) format('woff2'); font-display: swap; size-adjust: 104%; }

/* A capo eleganti. I titoli "in due frasi" (.sc-two) vanno a capo tra le due frasi solo se in una riga
   non ci stanno (lo decide ciaoloft.js con la classe is-split); ogni frase resta intera e, se deve andare
   a capo da sola, si divide in righe di lunghezza simile (balance). I paragrafi evitano la parola orfana. */
.sc h1, .sc h2, .sc h3, .soon h1 { text-wrap: balance; }
.sc p, .more__body p, .tile p, .soon p { text-wrap: pretty; }
.sc-two .sc-line { text-wrap: balance; }
.sc-two.is-split .sc-line { display: block; }

/* Entrata della testata al caricamento: prima "Ciao!", un attimo dopo "Come up to my loft.", poi il resto.
   In tutto poco piu' di un secondo; con "riduci animazioni" e' tutto subito visibile. */
@keyframes scIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sc-in { animation: scIn .6s cubic-bezier(.2,.7,.2,1) both; }
.sc-hero__icon.sc-in { animation-delay: 0ms; }
.sc-hero h1 .sc-grad.sc-in { animation-delay: 60ms; }
.sc-hero__sub.sc-in { animation-delay: 360ms; }
.sc-hero__lede.sc-in { animation-delay: 600ms; }
.sc-hero__from.sc-in { animation-delay: 660ms; }
.sc-hero__cta.sc-in { animation-delay: 720ms; }
.sc-pills.sc-in { animation-delay: 780ms; }
.sc-devices.sc-in { animation-delay: 860ms; }
@media (prefers-reduced-motion: reduce) { .sc-in { animation: none; } }

/* Demo: PC e telefono affiancati, con aria tra i due */
.sc-devices__row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 21%, 230px); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.sc-phone { position: relative; aspect-ratio: 390 / 844; padding: 7px; border-radius: 34px; background: linear-gradient(160deg, #2b2257, #15102a 45%); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 34px 90px rgba(0,0,0,.75), 0 0 60px #1fc8ff1a; }
/* tasti laterali */
.sc-phone::before { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #2b2257; }
.sc-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 27px; background: #120c2c; }
/* fotocamera frontale "a punto", al centro in alto */
.sc-phone__screen::after { content: ""; position: absolute; z-index: 2; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a3f6b 0 18%, #07060f 30%); box-shadow: 0 0 0 1.5px #1d1838; }
/* le quattro schermate, una dopo l'altra come se si toccassero le schede in basso */
.sc-phone__tab { position: absolute; left: 0; top: 26px; width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; opacity: 0; }
.sc-phone__tab--1 { opacity: 1; }
@keyframes scTab { 0% { opacity: 0; transform: translateX(14px); } 3% { opacity: 1; transform: none; } 25% { opacity: 1; transform: none; } 28% { opacity: 0; transform: translateX(-14px); } 100% { opacity: 0; transform: translateX(-14px); } }
.sc-phone__tab { animation: scTab 12s cubic-bezier(.3,.7,.3,1) infinite both; }
.sc-phone__tab--1 { animation-delay: 0s; }
.sc-phone__tab--2 { animation-delay: 3s; }
.sc-phone__tab--3 { animation-delay: 6s; }
.sc-phone__tab--4 { animation-delay: 9s; }
@media (prefers-reduced-motion: reduce) { .sc-phone__tab { animation: none; } }
@media (max-width: 760px) {
  .sc-devices__row { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 32px; }
  .sc-phone { width: min(220px, 60%); }
}

/* Niente da installare: tre passi */
.sc-steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; }
.sc-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 22px 26px; border-radius: 22px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.sc-steps__n { position: absolute; top: 14px; left: 18px; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--muted); }
.sc-steps__i { width: 56px; height: 56px; padding: 13px; margin-bottom: 8px; border-radius: 18px; color: var(--on-hot); background: var(--hot); box-shadow: 0 14px 30px -12px #ff4fa3aa; }
.sc-steps b { font-family: var(--head); font-size: 22px; font-weight: 700; }
.sc-steps li > span:last-child { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .sc-steps { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* scelta della lingua: nella barra (menu) e nel piede (elenco) */
.langpick { position: relative; }
.langpick summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 15px; padding: 7px 10px; border-radius: 999px; border: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary:hover, .langpick[open] summary { color: var(--text); border-color: var(--line); }
.langpick summary .i { width: 18px; height: 18px; }
.langpick__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 6; list-style: none; margin: 0; padding: 8px; min-width: 180px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #17103a; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.langpick__list a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.langpick__list a:hover { background: rgba(255,255,255,.08); color: var(--text); }
.langpick__list a[aria-current] { color: var(--accent); }
@media (max-width: 520px) { .langpick summary span { display: none; } .langpick summary { padding: 7px; } }
.foot__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 14px; }
.foot__langs a { color: var(--muted); text-decoration: none; }
.foot__langs a:hover { color: var(--accent); }
.foot__langs a[aria-current] { color: var(--text); font-weight: 700; }
@media (max-width: 520px) { .sc-hero__cta .btn { flex-direction: column; gap: 0; line-height: 1.2; padding: 10px 26px; } .sc-hero__cta .btn .i { display: none; } }
:lang(ja) .sc h1, :lang(ja) .sc h2, :lang(ja) .sc p, :lang(ja) .sc h3 { word-break: auto-phrase; }
