/* RennLogics: stessi colori e caratteri dell'app, dei manuali e del server. */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --grafite: #1C1D20;
  --grafite-2: #2A2C31;
  --grafite-3: #34363C;
  --arancio: #F25C05;
  --arancio-scuro: #E0530A;
  --onda: #8A8D93;
  --carta: #F2F2F0;
  --bianco: #FFFFFF;
  --testo: #26272B;
  --testo-2: #5C5F66;
  --linea: #DEDDD8;
  --chiaro-2: #C9CACD;
  --max: 1120px;
  --r: 14px;
  --titoli: "Manrope", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans CJK JP", sans-serif;
  --corpo: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK JP", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--corpo);
  font-size: 17px;
  line-height: 1.6;
  color: var(--testo);
  background: var(--carta);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--arancio-scuro); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--arancio); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--titoli); color: var(--grafite); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.kicker { font-family: var(--titoli); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--arancio); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--testo-2); max-width: 40em; }

/* Testata */
.top { position: sticky; top: 0; z-index: 10; background: rgba(28, 29, 32, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--chiaro-2); font-family: var(--titoli); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bianco); text-decoration: none; }

/* Scelta della lingua */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--chiaro-2); font-family: var(--titoli); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--bianco); border-color: rgba(255,255,255,.3); }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--grafite-2); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; min-width: 190px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--chiaro-2); font-size: .95rem; }
.lang li a:hover { background: var(--grafite-3); color: var(--bianco); text-decoration: none; }
.lang li a[aria-current="true"] { color: var(--arancio); }

/* Apertura scura con l'onda */
.hero { background: var(--grafite); color: var(--carta); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 200px; }
.hero h1 { color: var(--bianco); max-width: 14em; }
.hero .lead { color: var(--chiaro-2); }
.hero .wave { position: absolute; left: 0; right: 0; bottom: 18px; height: 130px; width: 100%; opacity: .9; }
.hero.product .wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.app-icon { width: 168px; height: 168px; border-radius: 38px; background: #1C1D20; box-shadow: 0 24px 60px rgba(0,0,0,.55); }

/* Pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titoli); font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--arancio); color: var(--bianco); }
.btn.primary:hover { background: var(--arancio-scuro); }
.btn.ghost { border-color: rgba(255,255,255,.22); color: var(--carta); }
.btn.ghost:hover { border-color: rgba(255,255,255,.5); }
.btn.soon { background: var(--grafite-2); color: var(--chiaro-2); cursor: default; }
.btn.light { border-color: var(--linea); color: var(--grafite); background: var(--bianco); }
.btn.light:hover { border-color: var(--grafite); }

/* Sezioni */
.section { padding: 96px 0; }
.section.alt { background: var(--bianco); }
.section.dark { background: var(--grafite); color: var(--chiaro-2); }
.section.dark h2, .section.dark h3 { color: var(--bianco); }
.section.dark .lead { color: var(--chiaro-2); }
.section-head { margin-bottom: 48px; }

/* Prodotti in home */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card { background: var(--bianco); border: 1px solid var(--linea); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28,29,32,.08); }
.product-card .icon { width: 72px; height: 72px; border-radius: 17px; background: #1C1D20; }
.product-card .icon.placeholder { background: var(--grafite); display: grid; place-items: center; }
.product-card .icon.placeholder svg { width: 40px; }
.product-card p { color: var(--testo-2); flex: 1; }
.product-card .platforms { font-size: .85rem; color: var(--testo-2); font-family: var(--titoli); font-weight: 600; letter-spacing: .04em; }
.badge { display: inline-block; font-family: var(--titoli); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--arancio-scuro); background: #FDEEE5; padding: 4px 10px; border-radius: 999px; align-self: flex-start; }

/* Compatibilità: i server che Linestage comanda */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { font-family: var(--titoli); font-weight: 700; font-size: .85rem; color: var(--bianco); background: var(--grafite-2); border: 1px solid rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; }
.chips li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--arancio); margin-right: 8px; vertical-align: 1px; }
.servers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.server-card { position: relative; background: var(--bianco); border: 1px solid var(--linea); border-radius: 22px; padding: 32px; }
.server-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.server-card .sub { color: var(--testo-2); font-family: var(--titoli); font-weight: 600; font-size: .9rem; margin-bottom: 20px; }
.server-card ul { list-style: none; margin: 0; padding: 0; }
.server-card li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--testo); font-size: .98rem; }
.server-card li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--arancio); border-bottom: 2.5px solid var(--arancio); transform: rotate(-45deg); }
.server-card.best { border: 2px solid var(--arancio); }
.server-card.best .badge { position: absolute; top: -13px; left: 28px; background: var(--arancio); color: var(--bianco); }

/* Funzioni */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--carta); border-radius: var(--r); padding: 28px; }
.section.alt .feature { background: var(--carta); }
.section.dark .feature { background: var(--grafite-2); }
.feature .glyph { width: 40px; height: 40px; border-radius: 11px; background: var(--grafite); display: grid; place-items: center; margin-bottom: 16px; }
.section.dark .feature .glyph { background: var(--grafite-3); }
.feature .glyph svg { width: 22px; height: 22px; stroke: var(--arancio); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--testo-2); margin: 0; font-size: .98rem; }
.section.dark .feature p { color: var(--chiaro-2); }

/* Striscia */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.strip div { border-top: 2px solid var(--arancio); padding-top: 16px; }
.strip strong { display: block; font-family: var(--titoli); color: var(--grafite); font-size: 1.05rem; margin-bottom: 4px; }
.section.dark .strip strong { color: var(--bianco); }
.strip span { color: var(--testo-2); font-size: .96rem; }
.section.dark .strip span { color: var(--chiaro-2); }

/* Tabella requisiti */
table.req { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .96rem; }
table.req th { text-align: left; font-family: var(--titoli); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--onda); padding: 0 16px 12px 0; border-bottom: 1px solid var(--grafite-3); }
table.req td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--grafite-3); vertical-align: top; }
table.req td:first-child { font-family: var(--titoli); font-weight: 700; color: var(--bianco); white-space: nowrap; }

/* Pagine di testo (assistenza, privacy) */
.page-head { background: var(--grafite); }
.page-head .wrap { padding-top: 72px; padding-bottom: 64px; }
.page-head h1 { color: var(--bianco); font-size: clamp(2rem, 4vw, 3rem); }
.page-head .lead { color: var(--chiaro-2); }
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--arancio); }
.prose .updated { color: var(--testo-2); font-size: .9rem; }
.contact { display: flex; align-items: center; gap: 20px; background: var(--bianco); border: 1px solid var(--linea); border-radius: 18px; padding: 26px 28px; margin-bottom: 48px; }
.contact .glyph { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--grafite); display: grid; place-items: center; }
.contact .glyph svg { width: 24px; height: 24px; stroke: var(--arancio); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact strong { display: block; font-family: var(--titoli); color: var(--grafite); }
details.faq { border-bottom: 1px solid var(--linea); padding: 18px 0; }
details.faq summary { cursor: pointer; font-family: var(--titoli); font-weight: 700; color: var(--grafite); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--arancio); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--testo-2); }

/* Piede */
.foot { background: var(--grafite); color: var(--onda); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 40px; padding-bottom: 40px; }
.foot img { height: 22px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot a { color: var(--chiaro-2); }
.foot .copy { width: 100%; font-size: .82rem; color: var(--onda); }

@media (max-width: 880px) {
  .products, .features, .strip, .servers { grid-template-columns: 1fr; }
  .servers { gap: 30px; }
  .hero.product .wrap { grid-template-columns: 1fr; }
  .hero.product .app-icon { order: -1; width: 112px; height: 112px; border-radius: 26px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 170px; }
  .hero .wave { height: 100px; }
  .section { padding: 72px 0; }
  .nav .hide-sm { display: none; }
  table.req td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Giapponese: a capo tra le parole, non dentro. */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

/* Galleria degli screenshot: schede fatte con pulsanti radio, senza JavaScript. */
.shots { padding-bottom: 72px; }
.gallery { position: relative; }
.gallery > input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 32px; background: var(--bianco); border: 1px solid var(--linea); border-radius: 999px; flex-wrap: wrap; }
.seg label { font-family: var(--titoli); font-weight: 700; font-size: .95rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--grafite); }
.seg label:hover { background: var(--carta); }
#dev-mac:checked ~ .seg label[for="dev-mac"], #dev-ipad:checked ~ .seg label[for="dev-ipad"],
#dev-iphone:checked ~ .seg label[for="dev-iphone"], #dev-duo:checked ~ .seg label[for="dev-duo"] { background: var(--grafite); color: var(--bianco); }
#dev-mac:focus-visible ~ .seg label[for="dev-mac"], #dev-ipad:focus-visible ~ .seg label[for="dev-ipad"],
#dev-iphone:focus-visible ~ .seg label[for="dev-iphone"], #dev-duo:focus-visible ~ .seg label[for="dev-duo"] { outline: 2px solid var(--arancio); outline-offset: 2px; }
.shot-panel { display: none; gap: 28px; align-items: start; justify-content: center; }
#dev-mac:checked ~ .p-mac, #dev-ipad:checked ~ .p-ipad, #dev-iphone:checked ~ .p-iphone, #dev-duo:checked ~ .p-duo { display: grid; }
.shot-panel picture, .duo picture { display: block; min-width: 0; }
.shot-panel img { width: 100%; height: auto; display: block; }
.p-mac { grid-template-columns: 1fr 1fr; }
.p-mac img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.28)); }
.p-ipad { grid-template-columns: repeat(2, minmax(0, 380px)); }
.p-ipad img { border-radius: 22px; border: 8px solid var(--grafite); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.p-iphone { grid-template-columns: repeat(2, minmax(0, 250px)); }
.p-iphone img { border-radius: 34px; border: 7px solid var(--grafite); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.p-duo { grid-template-columns: 1fr 1fr; }
.p-duo img { border-radius: 24px; border: 7px solid var(--grafite); box-shadow: 0 18px 40px rgba(0,0,0,.18); }

/* iPhone Duo in evidenza */
.duo { background: var(--bianco); border-top: 1px solid var(--linea); }
.duo .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.duo-shot { width: 100%; height: auto; border-radius: 26px; border: 8px solid var(--grafite); box-shadow: 0 24px 50px rgba(0,0,0,.2); }

@media (max-width: 760px) {
  .p-mac, .p-duo { grid-template-columns: 1fr; }
  .p-ipad { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .p-iphone { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .p-ipad img, .p-iphone img, .p-duo img { border-width: 5px; border-radius: 18px; }
  .duo .wrap { grid-template-columns: 1fr; gap: 32px; }
  .seg label { padding: 8px 13px; font-size: .9rem; }
}
