/* DajeTV – sito. Colori e forme come l'app: neri neutri, giallo #FFC20E, angoli a 90° (niente arrotondamenti). */
:root {
  --bg: #0b0b0b;
  --bg-2: #111111;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --line: #2a2a2a;
  --text: #f3f3f3;
  --muted: #a6a6a6;
  --brand: #ffc20e;
  --brand-ink: #111111;
  --ok: #4caf50;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--brand); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; font-weight: 700; font-size: 16px; border: 2px solid var(--brand); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #ffd24a; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: rgba(255, 194, 14, .1); }
.btn svg { width: 20px; height: 20px; }

/* Testata */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.logo b { color: var(--brand); font-weight: 900; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .nav-account { display: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); min-width: 160px; z-index: 60; }
.lang li a { display: block; padding: 8px 16px; color: var(--text); }
.lang li a[aria-current] { color: var(--brand); font-weight: 700; }
.lang li a:hover { background: var(--surface-2); text-decoration: none; }
.account { font-size: 14px; padding: 9px 14px; min-height: 40px; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 40px; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

/* Apertura */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(ellipse at 70% 10%, rgba(255, 194, 14, .16), transparent 55%), radial-gradient(ellipse at 10% 60%, rgba(255, 194, 14, .06), transparent 50%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.badge { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 900; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--brand); }
.hero .sub { font-size: clamp(17px, 1.6vw, 19px); color: #cfcfcf; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.note { color: var(--muted); font-size: 14px; }
.tv { position: relative; background: #050505; border: 1px solid #2c2c2c; padding: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 26%; height: 10px; transform: translateX(-50%); background: #151515; border: 1px solid #262626; }
.hero .tv { transform: perspective(1600px) rotateY(-6deg); }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); margin-top: 48px; }
.strip ul { list-style: none; margin: 0 auto; padding: 18px var(--pad); max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.strip li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #dcdcdc; font-size: 15px; }
.strip li::before { content: ""; width: 8px; height: 8px; background: var(--brand); }

/* Sezioni */
section { scroll-margin-top: 80px; }
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--surface); padding: 28px; position: relative; }
.card::before { content: ""; position: absolute; left: 28px; top: 0; width: 28px; height: 3px; background: var(--brand); }
.card .ico { width: 44px; height: 44px; color: var(--brand); margin: 8px 0 18px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.spot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.spot:first-child { border-top: 0; }
.spot.rev .spot-img { order: 2; }
.spot p { color: #cfcfcf; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* Galleria */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gal figure { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.gal button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: opacity .15s; }
.gal button:hover img { opacity: .85; }
.gal figcaption { padding: 10px 12px 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.lb { width: min(96vw, 1600px); max-width: none; padding: 0; border: 1px solid #333; background: #050505; color: var(--text); }
.lb::backdrop { background: rgba(0, 0, 0, .88); }
.lb img { width: 100%; height: auto; max-height: calc(100vh - 90px); object-fit: contain; background: #050505; }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid #222; }
.lb-bar p { margin: 0 auto 0 4px; color: #d0d0d0; font-size: 15px; }
.lb-bar button { background: transparent; color: var(--text); border: 1px solid #333; min-width: 44px; height: 40px; cursor: pointer; font-size: 18px; }
.lb-bar button:hover { border-color: var(--brand); color: var(--brand); }

.byo { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.byo .ico { width: 48px; height: 48px; color: var(--brand); }
.byo h2 { font-size: clamp(22px, 2.6vw, 30px); }
.byo p { margin: 0; color: #cfcfcf; }

/* Prezzi */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border: 2px solid var(--brand); background: linear-gradient(180deg, rgba(255, 194, 14, .07), var(--surface) 40%); }
.plan .tag { position: absolute; top: -14px; left: 26px; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 800; padding: 4px 10px; text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .dev { color: var(--brand); font-weight: 700; margin-bottom: 18px; }
.price { font-size: 46px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.per { color: var(--muted); font-size: 15px; margin: 6px 0 18px; }
.plan p { color: var(--muted); font-size: 16px; flex: 1; }
.incl { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.incl strong { margin-right: 6px; }
.incl span { display: inline-flex; align-items: center; gap: 8px; color: #d6d6d6; }
.incl span::before { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg) translateY(-2px); }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Scarica */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.store { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.store .ico { width: 36px; height: 36px; color: var(--muted); flex: none; }
.store b { display: block; font-size: 18px; }
.store small { color: var(--muted); font-size: 14px; }
.soon { margin-left: auto; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); border: 1px solid var(--brand); padding: 3px 8px; white-space: nowrap; }
.dl2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; margin-top: 20px; }
.box { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.box h3 { display: flex; align-items: center; gap: 12px; }
.box h3 svg { width: 26px; height: 26px; color: var(--brand); }
.box p { color: var(--muted); }
.steps { margin: 0 0 20px; padding-left: 22px; color: #d6d6d6; }
.steps li { margin: 8px 0; }
.code { display: flex; flex-wrap: wrap; gap: 14px; }
.code div { background: #0d0d0d; border: 1px solid var(--line); padding: 12px 16px; flex: 1 1 200px; }
.code small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.code b { font-size: 26px; letter-spacing: .04em; color: var(--brand); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; word-break: break-all; }

/* Domande */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: #cfcfcf; padding-bottom: 20px; margin: 0; }

/* Piede */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot a { color: #dcdcdc; }
.foot a:hover { color: var(--brand); }
.foot address { font-style: normal; color: var(--muted); line-height: 1.7; }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #7d7d7d; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf b { display: block; font-size: 120px; font-weight: 900; color: var(--brand); line-height: 1; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 20px; gap: 6px; }
  .nav.open a { padding: 10px 0; font-size: 18px; }
  .nav.open .nav-account { display: block; color: var(--brand); }
  .burger { display: inline-grid; place-items: center; margin-left: auto; }
  .top-actions { margin-left: 0; }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero .wrap, .spot, .dl2 { grid-template-columns: 1fr; }
  .hero .tv { transform: none; }
  .spot.rev .spot-img { order: 0; }
  .grid3, .plans, .dl { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .strip ul { justify-content: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .account { display: none; }
  .gal { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .byo { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
