/*
Theme Name: Italia in Onda Live
Description: Tema per Radio Italia in Onda, con diretta Citrus3, palinsesto e novità.
Version: 1.3.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: italia-in-onda-live
*/
:root {
  color-scheme: light;
  --ink: #141512;
  --paper: #f6f6f3;
  --muted: #53584f;
  --line: #d9dbd1;
  --lime: #d4fb62;
  --olive: #546c24;
  --dark: #171815;
  --red: #d8524b;
  --player-h: clamp(105px, 10.3vw, 212px);
  --gutter: clamp(25px, 2.35vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--player-h) + 14px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1968px); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid #6c8927; outline-offset: 4px; }
.skip { position: absolute; top: 6px; left: 8px; z-index: 10; padding: 10px; background: var(--lime); transform: translateY(-150%); }
.skip:focus { transform: none; }
.live-dot { width: .72em; height: .72em; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 .31em #d8524b2b; }

.top { background: #fafaf9; }
.header { display: flex; align-items: center; gap: clamp(15px, 1.65vw, 34px); min-height: clamp(83px, 8vw, 166px); }
.brand { display: inline-flex; align-items: center; gap: clamp(9px, 1.45vw, 30px); white-space: nowrap; }
.brand img { width: clamp(52px, 5.8vw, 120px); height: auto; border-radius: 50%; }
.brand strong { display: block; font-size: clamp(17px, 1.65vw, 34px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.brand b { color: var(--olive); }
.brand small { display: block; margin-top: .6em; font-size: clamp(8px, .84vw, 17px); font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.header nav { display: flex; align-items: center; gap: clamp(12px, 1.45vw, 30px); margin-left: auto; font-size: clamp(13px, 1.12vw, 23px); font-weight: 750; white-space: nowrap; }
.header nav a:first-child, .header nav a:hover { color: var(--olive); }
.top-live, .button { display: inline-flex; align-items: center; justify-content: center; gap: .65em; border-radius: 100vmax; text-transform: uppercase; white-space: nowrap; font-size: clamp(12px, 1.12vw, 23px); font-weight: 800; letter-spacing: .035em; }
.top-live { background: #11120f; color: white; min-height: clamp(42px, 4.2vw, 88px); padding-inline: clamp(14px, 1.85vw, 39px); border: 1px solid transparent; }
.top-live:hover { background: #33352e; }

.player { position: sticky; z-index: 5; top: 0; background: var(--dark); color: #fff; box-shadow: 0 12px 34px #15181221; color-scheme: dark; }
.player-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(12px, 1.65vw, 35px); min-height: var(--player-h); }
.player-disc { display: grid; place-items: center; width: clamp(73px, 8.25vw, 170px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #050605 0 5px, #272922 6px 8px); box-shadow: 0 0 0 4px #080908; }
.player-disc img { width: 81%; height: auto; border: 2px solid #111; border-radius: 50%; animation: spin 18s linear infinite paused; }
.playing .player-disc img { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-copy { min-width: 0; }
.player-kicker { display: flex; align-items: center; gap: .9em; margin-bottom: .65em; color: var(--lime); font-size: clamp(10px, 1vw, 21px); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.player-copy strong { display: block; font-size: clamp(17px, 2vw, 42px); line-height: 1.08; letter-spacing: -.035em; text-transform: uppercase; }
.player-copy p { margin: .55em 0 0; color: #c4c6bc; font-size: clamp(11px, 1.16vw, 24px); text-transform: uppercase; }
.playing .player-copy p { color: var(--lime); }
.player-toggle { display: grid; place-items: center; width: clamp(53px, 5.8vw, 120px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); }
.player-toggle .icon { width: 44%; height: 44%; }
.player-toggle:hover, .primary:hover { background: #e3ff8c; }
.player-controls { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 31px); }
.player-controls button { display: grid; place-items: center; width: clamp(38px, 4vw, 82px); aspect-ratio: 1; padding: 0; border: none; border-radius: 50%; background: transparent; color: white; }
.player-controls button:hover { background: #ffffff1a; }
.player-controls button .icon { width: clamp(19px, 1.65vw, 34px); height: auto; aspect-ratio: 1; }
.player-controls input { width: clamp(66px, 8.5vw, 175px); accent-color: var(--lime); margin: 0; }
.player-controls input[hidden] { display: none; }
.player-controls a { display: flex; align-items: center; gap: .4em; padding: .95em 0 .95em clamp(12px, 1.8vw, 38px); border-left: 1px solid #474942; color: var(--lime); font-size: clamp(11px, 1vw, 21px); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.player-controls a:hover { color: #fff; }
.player-controls a .icon { width: 1.1em; height: 1.1em; }
.player :focus-visible { outline-color: var(--lime); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: clamp(580px, 59.5vw, 1230px); }
.hero-copy { position: relative; z-index: 2; padding-block: 45px; }
.hero-kicker { display: flex; align-items: center; gap: 1.15em; margin-bottom: clamp(28px, 3vw, 63px); font-size: clamp(11px, 1.13vw, 23px); font-weight: 800; letter-spacing: .17em; line-height: 1.45; text-transform: uppercase; }
h1 { margin-bottom: clamp(20px, 2.8vw, 57px); font-size: clamp(45px, 5.8vw, 120px); font-weight: 900; letter-spacing: -.065em; line-height: 1.01; text-transform: uppercase; }
.intro { max-width: 47ch; margin-bottom: clamp(24px, 3vw, 62px); color: var(--muted); font-size: clamp(16px, 1.68vw, 35px); font-weight: 600; letter-spacing: -.025em; line-height: 1.58; }
.hero-actions { display: flex; align-items: center; gap: clamp(10px, 1.25vw, 26px); flex-wrap: wrap; }
.button { min-height: clamp(49px, 5.25vw, 108px); padding: .65em clamp(13px, 2.35vw, 49px); border: 1px solid transparent; color: var(--ink); }
.button .icon { width: 1.12em; height: 1.12em; }
.primary { background: var(--lime); }
.outline { border-color: #a5a99c; }
.outline:hover { border-color: var(--ink); background: #fff; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: .35em; margin: clamp(25px, 4.15vw, 85px) 0 0; color: var(--muted); font-size: clamp(10px, .95vw, 20px); letter-spacing: .105em; text-transform: uppercase; }
.hero-note::before { content: ""; flex: none; width: 1.8em; height: 1.8em; margin-right: .7em; border-radius: 50%; border: 1px solid #829e3c; background: radial-gradient(circle, #829e3c 49%, transparent 53%); }
.visual { position: relative; align-self: stretch; display: flex; align-items: end; margin-right: calc(-1 * var(--gutter)); }
.visual::before { content: ""; position: absolute; width: 118%; aspect-ratio: 1; right: -24%; bottom: -34%; border-radius: 50%; background: radial-gradient(circle at 43% 44%, #ddfa81, #d5fa62 65%, #d2fa59); z-index: -1; }
.visual img { width: 113%; max-width: none; height: auto; flex: none; mix-blend-mode: multiply; }
.hero-badge { position: absolute; top: 9%; right: var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: center; width: clamp(92px, 9.7vw, 200px); aspect-ratio: 1; border-radius: 50%; background: #141512; color: white; text-align: center; transform: rotate(10deg); }
.hero-badge strong { color: var(--lime); font-size: clamp(30px, 3.1vw, 64px); line-height: 1; }
.hero-badge span { margin-top: .65em; font-size: clamp(8px, .9vw, 19px); font-weight: 800; line-height: 1.08; letter-spacing: .1em; text-transform: uppercase; }

.signature { background: var(--lime); }
.signature-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: clamp(54px, 5.65vw, 116px); padding-block: 10px; font-size: clamp(10px, 1.1vw, 23px); font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.signature-content b { display: grid; place-items: center; width: 1.75em; height: 1.75em; flex: none; border-radius: .35em; background: #406d2d; color: #fff; font-size: 1.1em; }
.live-strip { background: #eaf5d4; border-bottom: 1px solid #d5dfc3; }
.strip-content { min-height: 58px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 17px; }
.strip-label { display: flex; align-items: center; gap: 8px; padding-right: 17px; border-right: 1px solid #aebc93; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.strip-content strong { font-size: 17px; }
#current-time { font-size: 13px; font-variant-numeric: tabular-nums; }
.live-strip a { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #a3b487; border-radius: 50%; }

.section { padding-block: clamp(38px, 5vw, 86px); }
.eyebrow { margin: 0 0 12px; color: var(--olive); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 23px; }
.section-heading>p { margin: 0; text-align: right; color: var(--muted); font-size: 15px; line-height: 1.5; }
.section h2 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: .98; letter-spacing: -.064em; }
.section h2 span { color: var(--olive); }
.schedule-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; list-style: none; }
.schedule-grid li { min-height: 126px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.schedule-grid li.active { border-color: #819a42; background: #edf7d9; }
.slot-time { display: inline-flex; align-items: center; gap: 7px; color: #40473a; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slot-time::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }
.schedule-grid h3 { margin: 10px 0 5px; font-size: 18px; letter-spacing: -.02em; }
.schedule-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.slot-badge { display: inline-block; margin-left: 7px; color: var(--olive); font-size: 10px; font-weight: 850; }
.host { border-top: 1px solid var(--line); }
.host-copy>p:not(.eyebrow) { max-width: 61ch; margin: 16px 0 9px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.host-copy strong { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 800; }
.text-link:hover, .footer a:hover { text-decoration: underline; }
.text-link .icon { width: 17px; height: 17px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 106px; font-size: 14px; }
.footer .brand { gap: 10px; font-size: 12px; font-weight: 850; line-height: 1.1; }
.footer .brand img { width: 46px; }
.footer p { margin: 0; }

@media (max-width: 1000px) {
  .schedule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  :root { --player-h: 87px; --gutter: 19px; }
  .header { justify-content: space-between; flex-wrap: wrap; gap: 9px 12px; min-height: 0; padding-block: 12px 9px; }
  .header nav { order: 3; justify-content: space-between; width: 100%; margin: 0; padding-top: 9px; border-top: 1px solid var(--line); }
  .player-disc { width: 58px; }
  .player-grid { gap: 10px; }
  .player-controls { gap: 4px; }
  .player-controls a { padding: 8px 3px 8px 8px; }
  .player-controls a span { display: none; }
  .player-controls a .icon { width: 18px; height: 18px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 44px 25px; }
  h1 { font-size: clamp(36px, 8.65vw, 69px); }
  .hero-kicker { margin-bottom: 18px; }
  .visual { justify-content: center; width: min(100% + var(--gutter) * 2, 620px); margin-inline: auto; max-width: none; }
  .visual img { width: 100%; }
  .visual::before { right: -14%; bottom: -35%; }
  .hero-badge { top: 5%; right: 0; width: clamp(65px, 16vw, 125px); }
  .hero-badge strong { font-size: clamp(23px, 5vw, 42px); }
  .hero-note { margin-top: 22px; }
}
@media (max-width: 530px) {
  :root { --player-h: 76px; --gutter: 16px; }
  .header nav { gap: 8px; font-size: 12px; }
  .brand { gap: 7px; }
  .brand img { width: 43px; }
  .brand strong { font-size: clamp(13px, 4.1vw, 19px); }
  .brand small { font-size: 7px; letter-spacing: .12em; }
  .top-live { padding-inline: 9px; min-height: 37px; font-size: 10px; }
  .player-grid { gap: 6px; }
  .player-disc { width: 39px; }
  .player-toggle { width: 40px; }
  .player-copy strong { font-size: 13px; }
  .player-copy p { font-size: 9px; }
  .player-kicker { font-size: 8px; letter-spacing: .08em; }
  .player-controls button { width: 28px; }
  .player-controls input { width: clamp(33px, 10vw, 53px); }
  .player-controls a { padding-left: 4px; }
  .player-controls a .icon { width: 14px; height: 14px; }
  .hero-copy { padding-top: 34px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { min-height: 42px; padding-inline: 10px; font-size: 10px; }
  .signature-content { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .signature-content b { display: none; }
  .signature-content span:nth-of-type(even) { text-align: right; }
  .strip-content { grid-template-columns: 1fr auto auto; gap: 6px 10px; padding-block: 8px; }
  .strip-label { grid-column: 1/-1; border: 0; }
  .strip-label .icon { width: 16px; height: 16px; }
  .strip-content strong { font-size: 15px; }
  .live-strip a { width: 26px; height: 26px; }
  .live-strip a .icon { width: 16px; height: 16px; }
  .section-heading { flex-direction: column; align-items: start; gap: 8px; }
  .section-heading>p { text-align: left; }
  .section-heading>p br { display: none; }
  .schedule-grid { gap: 7px; }
  .schedule-grid li { padding: 10px; min-height: 108px; }
  .schedule-grid h3 { font-size: 15px; }
  .footer { flex-wrap: wrap; justify-content: start; padding-block: 17px; gap: 15px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .player-disc img { animation: none; }
}

.header nav ul { display: flex; gap: inherit; align-items: center; margin: 0; padding: 0; list-style: none; }
.header nav li a { color: var(--ink); }
.header nav li a:hover, .header nav .current-menu-item>a { color: var(--olive); }
.header nav .news-link { color: var(--olive); }
.header nav { flex-wrap: wrap; }
.header-search { display: flex; justify-content: flex-end; padding-top: 12px; }
.site-search {
  display: flex;
  width: min(100%, 400px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.site-search:focus-within { outline: 2px solid var(--olive); outline-offset: 2px; }
.site-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
}
.site-search input:focus { outline: none; }
.site-search button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  cursor: pointer;
}
.site-search button:hover { background: var(--dark); color: #fff; }
.site-search button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.content-page { max-width: 850px; min-height: 45vh; padding-block: clamp(34px, 6vw, 85px); }
.content-page article { padding-block: 20px; }
.content-page article+article { border-top: 1px solid var(--line); }
.content-page h1 { margin-bottom: 20px; font-size: clamp(31px, 4.5vw, 56px); text-transform: none; overflow-wrap: anywhere; }
.content-page h2 { margin-bottom: 9px; letter-spacing: -.04em; }
.content-page .entry-meta { color: var(--muted); font-size: 14px; }
.content-page .entry-content { line-height: 1.65; overflow-wrap: anywhere; }
.content-page .entry-content a { color: var(--olive); text-decoration: underline; }
.content-page .entry-content img { height: auto; }
.content-page .entry-content .wp-block-gallery { margin-inline: 0; }
.content-page .entry-content :is(.wp-block-audio, .wp-block-video) { margin-inline: 0; }
.content-page .entry-content .wp-block-audio audio { display: block; width: 100%; }
.content-page .entry-content .wp-block-video video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #161616;
}
.content-page .entry-image { width: 100%; height: auto; margin: 0 0 24px; border-radius: 10px; }
.content-page .wp-caption { max-width: 100%; }
.content-page input, .content-page textarea { max-width: 100%; }
.content-page .nav-links { display: flex; flex-wrap: wrap; gap: 15px; }
@media (max-width: 800px) {
  .site-search { width: 100%; }
  .header nav ul { width: 100%; justify-content: space-between; flex-wrap: wrap; }
}
@media (min-width: 783px) {
  .admin-bar .player { top: 32px; }
  html:has(body.admin-bar) { scroll-padding-top: calc(var(--player-h) + 46px); }
}
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .player { top: 46px; }
  html:has(body.admin-bar) { scroll-padding-top: calc(var(--player-h) + 60px); }
}

.navigation-error { padding-block: 12px; font-size: 14px; }
.navigation-error p { margin: 0 0 6px; }
.navigation-error button, .navigation-error a { color: var(--olive); font-weight: 800; }
.navigation-error button { margin-right: 12px; }
