/*
Theme Name: Orizzonte
Theme URI: https://example.com/orizzonte
Author: Orizzonte
Description: Tema broadcast territoriale per news, video, canali locali, palinsesto e segnalazioni.
Version: 1.0.6
License: GPL-2.0-or-later
Text Domain: orizzonte
*/

:root {
  --navy: #010e2e;
  --navy-2: #071944;
  --orange: #ff7a14;
  --blue: #1268c7;
  --green: #49993a;
  --paper: #f4f6f9;
  --white: #ffffff;
  --muted: #7b8798;
  --dark-line: #dce3ec;
  --shadow: 0 28px 90px rgba(1, 14, 46, 0.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  height: 96px;
  overflow: hidden;
  padding: 10px clamp(18px, 4vw, 60px);
  background: linear-gradient(90deg, rgba(1, 14, 46, 0.98), rgba(7, 25, 68, 0.92) 55%, rgba(1, 14, 46, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(1, 14, 46, 0.24);
}
.topbar::after {
  content: "";
  position: absolute;
  left: clamp(18px, 4vw, 60px);
  right: clamp(18px, 4vw, 60px);
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--green));
}
.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 46vw;
  height: 68px;
  color: white;
}

.brand-mark {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 22px;
  border-radius: 60px 60px 0 0;
  background: linear-gradient(180deg, #ff7a14, #f6a21a);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 25px;
  height: 8px;
  border-top: 4px solid white;
  border-radius: 50% 50% 0 0;
  transform: rotate(-2deg);
}

.brand-word {
  display: grid;
  gap: 1px;
}

.brand-word strong {
  color: white;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-word span {
  color: #c9d7ee;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.header-live {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.header-live span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8182f;
  box-shadow: 0 0 0 6px rgba(232, 24, 47, 0.2);
}
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav li { list-style: none; }
.nav a {
  border-radius: 6px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); color: white; }
.nav-action {
  border: 1px solid rgba(255, 122, 20, 0.45);
  background: rgba(255, 122, 20, 0.18);
  color: #ffd7b8 !important;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy);
}
.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { object-fit: cover; opacity: 0.72; }
.hero-shade {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 122, 20, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(1, 14, 46, 0.98), rgba(1, 14, 46, 0.82) 45%, rgba(1, 14, 46, 0.38)),
    linear-gradient(0deg, rgba(1, 14, 46, 0.82), transparent 48%);
}
.ticker {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #010e2e;
}
.ticker strong {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 116px;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ticker-window { min-width: 0; overflow: hidden; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  padding: 10px 34px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 112px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.96;
}
.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 900;
}
.button.primary { background: var(--orange); color: var(--navy); }
.button.ghost { background: rgba(255, 255, 255, 0.12); color: white; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.player-frame {
  position: relative;
  min-height: 468px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(1, 14, 46, 0.22), rgba(255, 122, 20, 0.7)), var(--navy-2);
  box-shadow: var(--shadow);
}
.player-frame.blue { background: linear-gradient(135deg, rgba(1, 14, 46, 0.3), rgba(18, 104, 199, 0.72)), var(--navy-2); }
.player-frame.green { background: linear-gradient(135deg, rgba(1, 14, 46, 0.3), rgba(73, 153, 58, 0.72)), var(--navy-2); }
.player-frame.has-image {
  background-position: center;
  background-size: cover;
}
.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.live-pill { border-radius: 999px; padding: 6px 10px; background: #e8182f; color: white; }
.play-button {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%);
}
.play-button::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 25px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--navy);
}
.player-lower {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}
.player-lower h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 46px); line-height: 1; }
.player-lower p { color: rgba(255, 255, 255, 0.82); }

.network-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--navy);
  color: white;
}
.network-strip article { min-height: 128px; padding: 24px clamp(18px, 4vw, 40px); border-right: 1px solid rgba(255,255,255,.14); }
.network-strip span { display: block; color: var(--orange); font-size: 32px; font-weight: 900; }
.network-strip p { margin: 6px 0 0; color: rgba(255,255,255,.7); font-weight: 800; }

.section { padding: 82px clamp(18px, 5vw, 72px); }
.section-head { max-width: 880px; margin-bottom: 30px; }
.section-head h2,
.report-intro h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
.row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 24px; }
.section-note { max-width: 360px; margin: 0; color: var(--muted); font-weight: 800; }

.channel-grid,
.video-rail,
.news-list,
.schedule-list { display: grid; gap: 16px; }
.channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.channel-card,
.video-card,
.news-item,
.schedule-item,
.report-form,
.lead-story {
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(1, 14, 46, 0.07);
}
.channel-card { min-height: 260px; padding: 26px; border-top: 5px solid var(--orange); }
.channel-card.blue { border-top-color: var(--blue); }
.channel-card.green { border-top-color: var(--green); }
.channel-card h3 { margin: 28px 0 10px; font-size: 29px; line-height: 1; }
.channel-card p,
.video-card p,
.news-item p,
.schedule-item p,
.report-intro p { color: var(--muted); }

.video-hub,
.schedule { background: #e9eef5; }
.video-rail {
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 24vw);
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.video-card { overflow: hidden; scroll-snap-align: start; }
.thumb { position: relative; min-height: 180px; background: linear-gradient(135deg, var(--navy), var(--orange)); }
.thumb.blue { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.thumb.green { background: linear-gradient(135deg, var(--navy), var(--green)); }
.thumb.has-image {
  background-position: center;
  background-size: cover;
}
.thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid white;
  transform: translate(-35%, -50%);
}
.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 6px;
  padding: 4px 8px;
  background: rgba(1, 14, 46, 0.86);
  color: white;
  font-size: 12px;
  font-weight: 900;
}
.video-body { padding: 18px; }
.meta { margin: 0 0 10px; color: var(--blue) !important; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.video-card h3,
.news-item h3,
.lead-story h3 { margin: 0 0 8px; line-height: 1.15; }

.news-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 18px; }
.lead-story {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
  background: linear-gradient(180deg, rgba(1,14,46,.05), rgba(1,14,46,.86)), url("assets/territorio-hero.png") center / cover;
  color: white;
}
.lead-story h3 { max-width: 660px; font-size: clamp(28px, 4vw, 48px); }
.lead-story p { max-width: 620px; color: rgba(255,255,255,.76); }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px; }
.news-date,
.schedule-time { color: var(--blue); font-weight: 900; }

.schedule-list { border-top: 1px solid #cbd6e2; }
.schedule-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 0;
  border-bottom: 1px solid #cbd6e2;
  box-shadow: none;
}
.schedule-item span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2f6;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.schedule-item.live span { background: #e8182f; color: white; }

.reports {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--navy);
  color: white;
}
.report-intro { position: sticky; top: 112px; }
.report-intro p { color: rgba(255,255,255,.74); }
.report-form { display: grid; gap: 16px; padding: clamp(18px, 3vw, 32px); color: var(--navy); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 900; }
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd8e2;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
  color: var(--navy);
}
textarea { resize: vertical; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px clamp(18px, 5vw, 72px);
  background: white;
  border-top: 1px solid var(--dark-line);
}
.footer img { width: 210px; }
.footer p { margin: 0; color: var(--muted); }

@media (max-width: 1120px) {
  .header-live { display: none; }
  .hero-grid,
  .news-layout,
  .reports,
  .row { display: block; }
  .featured-player,
  .section-note { margin-top: 22px; }
  .channel-grid { grid-template-columns: 1fr; }
  .report-intro { position: static; margin-bottom: 28px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .network-strip { grid-template-columns: 1fr 1fr; }
  .video-rail { grid-auto-columns: minmax(280px, 82vw); }
  .schedule-item { grid-template-columns: 88px 1fr; }
  .schedule-item span { grid-column: 2; justify-self: start; }
}
@media (max-width: 620px) {
  .topbar { min-height: 68px; height: 68px; padding: 9px 16px; }
  .brand { height: 48px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-word strong { font-size: 20px; }
  .brand-word span { font-size: 8px; letter-spacing: 1.7px; }
  .ticker { top: 68px; }
  .hero { min-height: 920px; }
  .hero-grid { width: calc(100% - 32px); padding-top: 136px; }
  .hero h1 { font-size: 42px; }
  .player-frame { min-height: 420px; }
  .network-strip { grid-template-columns: 1fr; }
  .section { padding: 58px 16px; }
  .field-pair,
  .news-item { grid-template-columns: 1fr; }
}
