/* AroundWeb.app · pagina prodotto (giochi e app). Tema chiaro; i colori del prodotto arrivano da site.json */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #111827;
  --ink-2: #4b5563;
  --line: #e5e8ef;
  --radius: 22px;
  --hub: #1a73f0;
  --hub-2: #0a56d6;
  --navy: #0a1530;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .08);
  --shadow-lg: 0 2px 6px rgba(17, 24, 39, .08), 0 24px 60px rgba(17, 24, 39, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Outfit, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
section { padding: 72px 0; }
section > .wrap > h2 { text-align: center; margin-bottom: 36px; }
.band { background: var(--bg-soft); }

/* AroundWeb.app bar */
.hub-bar { background: var(--navy); color: #c9d4ec; font-size: 14px; }
.hub-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.hub-brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.hub-brand img { width: auto; }
.hub-badge { direction: ltr; unicode-bidi: isolate; padding: 1px 7px 3px; font-size: 12px; font-weight: 700; line-height: 1.2; color: #fff; background: linear-gradient(135deg, #2f8bff, var(--hub-2)); border-radius: 99px; }
.hub-link { color: #fff; font-weight: 600; text-decoration: none; opacity: .85; }
.hub-link:hover { opacity: 1; }
[dir="rtl"] .hub-link span { display: inline-block; transform: scaleX(-1); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 10px; }
.brand span { font-size: 19px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; padding: 7px 14px; border-radius: 99px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--accent); background: var(--accent-soft); }
.nav { gap: 4px; }
.lang-pick select { font: inherit; font-size: 14px; padding: 7px 30px 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234b5563' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; cursor: pointer; color: var(--ink); }
[dir="rtl"] .lang-pick select { background-position: left 11px center; padding: 7px 12px 7px 30px; }

/* hero */
.hero { padding: 56px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%), #fff; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.logo { width: min(360px, 80%); height: auto; margin-bottom: 18px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .15)); }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.play-badge img { height: 64px; width: auto; transition: transform .15s; }
.play-badge:hover img { transform: translateY(-2px); }
.play-soon { display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 22px; border-radius: 14px; background: #111827; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.01em; box-shadow: 0 8px 20px rgba(17, 24, 39, .18); }
.play-soon svg { color: var(--accent-2); flex: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: 0 4px 14px rgba(20, 60, 140, .08); transition: border-color .15s, box-shadow .15s, transform .15s; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.btn-ghost.small { padding: 8px 14px; font-size: 14px; margin-inline-start: auto; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.facts li { font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.facts li::before { content: "✓"; color: var(--accent); margin-inline-end: 6px; }
.device { border-radius: 26px; padding: 12px; background: #0f172a; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.device img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* trailer */
.trailer-note { display: table; margin: -18px auto 26px; padding: 8px 18px; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 99px; box-shadow: 0 4px 14px rgba(20, 60, 140, .08); }
.video { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; }

/* screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(470px, 82%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.shot { all: unset; cursor: zoom-in; scroll-snap-align: center; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.shot:hover { transform: translateY(-3px); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(20, 60, 140, .08); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(20, 60, 140, .13); }
.card-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 27px; background: var(--accent-soft); margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* story */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.story-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-pics img { border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }
.story-pics img:first-child { grid-column: span 2; }
.story-text p { color: var(--ink-2); font-size: 18px; }

/* languages */
.chips { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips a { display: block; padding: 8px 18px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* finale */
.final { padding: 56px 0; }
.final-in { display: flex; align-items: center; gap: 28px; padding: 32px; border-radius: 24px; background: linear-gradient(135deg, var(--accent-soft), #fff 70%); border: 1px solid var(--line); }
.final-in > img { border-radius: 22px; box-shadow: var(--shadow); flex: none; }
.final-in h2 { margin-bottom: .2em; font-size: clamp(22px, 2.6vw, 30px); }
.final-in p { margin: 0; color: var(--ink-2); }
.final-in .play-badge { margin-inline-start: auto; flex: none; }

/* footer */
.foot { padding: 40px 0 0; font-size: 15px; color: #a9b6d3; background: radial-gradient(circle at 85% 0%, rgba(47, 139, 255, .22), transparent 45%), var(--navy); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.foot-brand { display: grid; gap: 8px; }
.foot-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: .65; }
.foot .hub-badge { font-size: 14px; padding: 2px 9px 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot-links a { color: #fff; font-weight: 500; opacity: .85; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.foot-bottom a:hover { color: #fff; }
.legal { font-size: 12px; color: #7f8db0; margin: 0; }

/* privacy */
.doc { max-width: 780px; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.doc h2 { font-size: 21px; margin-top: 1.8em; }
.doc p { color: #374151; }
.muted { color: var(--ink-2); font-size: 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 22, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 34px; color: #fff; background: none; border: 0; cursor: pointer; }

/* vertical phone screenshots (apps) */
.portrait .hero-media { display: flex; justify-content: center; }
.portrait .device { width: min(330px, 78%); padding: 10px; border-radius: 42px; transform: rotate(2deg); }
.portrait .device img { aspect-ratio: 6 / 11; object-position: top; border-radius: 32px; }
.portrait .shots { grid-auto-columns: min(250px, 62%); }
.portrait .shot { border-radius: 24px; }
.portrait .shot img { aspect-ratio: 6 / 11; object-position: top; }
.portrait .grid { grid-template-columns: repeat(3, 1fr); }
/* square app logo instead of a wide game logo */
.square-logo .logo { width: min(150px, 40%); border-radius: 28px; margin-bottom: 22px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hub-in { font-size: 13px; }
  .lang-pick { margin-inline-start: auto; }
  .hero-in, .story { grid-template-columns: 1fr; gap: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .device { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding-top: 32px; }
  .grid { grid-template-columns: 1fr; }
  .final-in { flex-direction: column; text-align: center; }
  .final-in .play-badge { margin-inline-start: 0; }
  .play-badge img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
