/* tv/tv-home.css — Stile del pulsante di lancio TV e della pagina TV
 * nell'app principale. Coerente con la palette oscura/oro della sezione. */

.tv-home-launch {
  position: relative;
  z-index: 5;
  margin: 4px 4vw 0;
}

.tv-launch-card {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  border: 1px solid rgba(232, 194, 106, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(232, 194, 106, 0.16) 0%, rgba(232, 194, 106, 0) 42%),
    linear-gradient(120deg, #1b1922 0%, #211d2b 60%, #191722 100%);
  color: #f6efe2;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tv-launch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 194, 106, 0.66);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 194, 106, 0.18);
}

.tv-launch-icon {
  display: grid;
  flex: 0 0 auto;
  width: clamp(48px, 6vw, 68px);
  height: clamp(48px, 6vw, 68px);
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2cf7e, #c99a3f);
  color: #1c1a1f;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(232, 194, 106, 0.3);
}

.tv-launch-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tv-launch-kicker {
  color: #e8c26a;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tv-launch-copy strong {
  color: #f6efe2;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 950;
  letter-spacing: -0.01em;
}

.tv-launch-sub {
  color: rgba(246, 239, 226, 0.72);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  line-height: 1.4;
  max-width: 62ch;
}

.tv-launch-go {
  margin-left: auto;
  color: #e8c26a;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 900;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}

.tv-launch-card:hover .tv-launch-go {
  transform: translate(3px, -3px);
}

@media (max-width: 640px) {
  .tv-home-launch { margin: 4px 2vw 0; }
  .tv-launch-card { flex-direction: row; }
  .tv-launch-sub { display: none; }
}

/* ---- Pagina TV (shell) ---- */
.tv-page {
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% 0%, #1c1a24 0%, #0f0f12 55%, #0a0a0e 100%);
  color: #f6efe2;
  padding: clamp(20px, 3vw, 40px) clamp(14px, 3vw, 48px) clamp(40px, 5vw, 72px);
}

.tv-page-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.tv-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.tv-page-head .eyebrow-small {
  color: #e8c26a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tv-page-head h1 {
  margin: 6px 0 8px;
  color: #f6efe2;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.tv-page-head p {
  margin: 0;
  max-width: 64ch;
  color: rgba(246, 239, 226, 0.72);
  line-height: 1.5;
}

.tv-page-note {
  margin: 22px auto 0;
  max-width: 72ch;
  color: rgba(246, 239, 226, 0.6);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 720px) {
  .tv-page-head { flex-direction: column; }
}

/* ---- Modalità "schermo intero" quando la TV è aperta nell'app ---- */
html.is-tv-open,
html.is-tv-open body {
  height: 100%;
  overflow: hidden;
}
html.is-tv-open .tv-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2vw, 28px) clamp(12px, 2.5vw, 36px) clamp(12px, 2vw, 28px);
}
html.is-tv-open .tv-page-shell {
  width: 100%;
  max-width: 1680px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
html.is-tv-open .tv-page-head {
  flex: 0 0 auto;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 194, 106, 0.18);
}
html.is-tv-open .tv-page-head h1 {
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
}
html.is-tv-open .tv-page-head p {
  display: none;
}
html.is-tv-open .tv-page-note {
  display: none;
}
html.is-tv-open [data-tv-embed] {
  flex: 1;
  min-height: 0;
}
html.is-tv-open .tv-root {
  min-height: 0;
  height: 100%;
}
html.is-tv-open .tv-frame {
  width: min(100%, calc((100vh - 180px) * 16 / 9), calc((100dvh - 180px) * 16 / 9));
  max-height: 100%;
}
html.is-tv-open .tv-stage {
  max-height: 100%;
}
