/*
Theme Name: Domina Luce
Theme URI: https://sviluppo.dominanostra.it/
Author: Radio Domina Nostra
Description: Tema editoriale, moderno e responsive per la webradio cattolica Domina Nostra.
Version: 1.0.0
Text Domain: domina-luce
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
  --ivory: #f3eee4;
  --paper: #fffcf7;
  --ink: #1c1915;
  --muted: #5e584e;
  --navy: #16233b;
  --navy-2: #243656;
  --gold: #8d6840;
  --gold-soft: #e7d3a4;
  --line: #e3d9c8;
  --shadow: 0 18px 40px rgba(22, 35, 59, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  padding: .4rem .8rem;
}
.skip:focus { top: 1rem; }

.sviluppo {
  background: var(--navy);
  color: var(--gold-soft);
  text-align: center;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .45rem 1rem;
}
.sviluppo a { color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 252, 247, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cross {
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  flex: none;
}
.cross::before, .cross::after {
  content: "";
  position: absolute;
  background: var(--gold);
}
.cross::before { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.cross::after { height: 2px; width: 100%; top: 38%; }
.ascolta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: .7rem 1.1rem;
  font-size: .92rem;
  letter-spacing: .02em;
}
.ascolta:hover, .button:hover { background: var(--navy-2); color: white; }
.button.light { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: .55rem .9rem;
}
.nav { border-top: 1px solid var(--line); }
.nav ul {
  max-width: 1180px;
  margin: 0 auto;
  padding: .7rem 1.2rem 1rem;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem 1rem;
  overflow-x: auto;
}
.nav li { margin: 0; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  white-space: nowrap;
}
.nav a:hover, .nav .current-menu-item > a { color: var(--ink); }

.hero {
  max-width: 1180px;
  margin: 1.4rem auto 0;
  padding: 0 1.2rem;
}
.hero-inner {
  background: var(--navy);
  color: #f7f2e8;
  border-radius: 28px;
  padding: 3.2rem 2.4rem;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 2rem;
  align-items: end;
  box-shadow: var(--shadow);
}
.kicker {
  color: var(--gold-soft);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  margin: 0 0 .8rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: .95;
  margin: 0 0 1rem;
}
.hero p { margin: 0; max-width: 38rem; color: #ddd4c4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero .button { background: var(--gold-soft); color: var(--navy); }
.hero .button.light { color: white; border-color: rgba(255,255,255,.4); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.2rem 0 1rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}
.section-head a { color: var(--gold); text-decoration: none; }

.lead {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 1.2rem;
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lead img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.lead-text { padding: 1.6rem 1.6rem 1.6rem 0; }
.lead h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin: .4rem 0 .8rem; }
.lead h2 a, .card h3 a { color: inherit; text-decoration: none; }
.meta, .cat {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.excerpt { color: var(--muted); }

.grid, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .thumb { aspect-ratio: 16/10; background: #e7e0d4; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1rem 1rem 1.2rem; }
.card h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; margin: .35rem 0 .5rem; font-weight: 500; }

.archive-title, .entry-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 .6rem;
}
.entry {
  max-width: 74ch;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 24px;
  padding: 2rem 1.5rem 2.4rem;
  box-shadow: var(--shadow);
}
.entry-content { font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }
.entry-content audio, .entry-content video, .entry-content iframe { width: 100%; margin: 1rem 0; }
.entry-content iframe { aspect-ratio: 16/9; border: 0; }
.nav-posts { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.nav-posts a { text-decoration: none; }

.pager { margin-top: 1.5rem; }
.pager .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-block;
  min-width: 2.2rem;
  text-align: center;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.2rem 5.5rem;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--navy); }
.ascolta-mobile { display: none; }

@media (max-width: 900px) {
  .hero-inner, .lead, .grid, .cards { grid-template-columns: 1fr; }
  .lead-text { padding: 0 1.2rem 1.4rem; }
  .nav-toggle { display: inline-flex; }
  .ascolta { display: none; }
  .nav { display: none; }
  body.nav-open .nav { display: block; }
  body.nav-open .nav ul { flex-wrap: wrap; }
  .ascolta-mobile {
    display: block;
    position: fixed;
    left: .8rem;
    right: .8rem;
    bottom: .8rem;
    z-index: 30;
  }
  .ascolta-mobile a {
    display: block;
    text-align: center;
    background: var(--navy);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    padding: .9rem;
    box-shadow: var(--shadow);
  }
}
