/*
Theme Name: Cenacolo Sound
Theme URI: https://cenacolosound.it
Author: Cenacolo Sound
Description: Tema su misura di Cenacolo Sound, la casa condivisa della musica cristiana in Italia.
Version: 1.0.0
Text Domain: cenacolo-sound
*/
/* Cenacolo Sound — stile del sito
   Colori e caratteri dal brand kit: navy, crema, blu acqua, rosso sangue.
   Marcellus per i titoli, Montserrat per il testo. */

:root {
  --navy: #16294D;
  --navy-2: #1d3563;
  --cream: #F6F4EE;
  --cream-2: #ece8dd;
  --blue: #2F8FCB;
  --blue-l: #4FB3E8;
  --red: #9E1B22;
  --red-l: #D8434B;
  --red-xl: #EE7077;
  --ink: #16294D;
  --muted: #4d5b7a;
  --line: rgba(22, 41, 77, .14);
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 720px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .75rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1rem; display: block;
}
.on-dark .eyebrow { color: var(--red-xl); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.on-dark .lead { color: rgba(246, 244, 238, .82); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.logo img { width: 46px; height: 46px; }
.logo .divider { width: 2px; height: 38px; background: var(--red); border-radius: 2px; }
.logo .words { display: flex; flex-direction: column; line-height: 1; }
.logo .w1 { font-family: var(--serif); font-size: 1.65rem; letter-spacing: .04em; }
.logo .w2 { font-family: var(--sans); font-weight: 600; font-size: .52rem; letter-spacing: .7em; color: var(--red); margin-top: 5px; }
.on-dark .logo { color: var(--cream); }
.on-dark .logo .w2 { color: var(--red-xl); }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--navy); font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: rgba(22, 41, 77, .07); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--navy); color: var(--cream); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 46px; height: 46px; cursor: pointer; color: var(--navy);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; content: "";
}
.menu-btn span::before { position: absolute; top: -6px; left: 0; }
.menu-btn span::after { position: absolute; top: 6px; left: 0; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .logo .w1 { font-size: 1.4rem; }
  .logo img { width: 40px; height: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  padding: 14px 26px; border-radius: 999px; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #82151b; color: #fff; }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: clamp(48px, 9vw, 110px); }
.hero h1 { color: var(--cream); }
.hero-art { width: 100%; max-width: 480px; margin-inline: auto; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.bar { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
@media (prefers-reduced-motion: reduce) { .bar { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 300px; order: -1; }
}

.page-hero { background: var(--navy); color: var(--cream); padding-block: clamp(44px, 7vw, 84px); }
.page-hero h1 { color: var(--cream); margin-bottom: .35em; }

/* ---------- Sections ---------- */
section { padding-block: clamp(52px, 8vw, 96px); }
.alt { background: var(--cream-2); }
.dark { background: var(--navy); color: var(--cream); }
.dark h2, .dark h3 { color: var(--cream); }
.section-head { max-width: 40em; margin-bottom: 2.4rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22, 41, 77, .12); color: var(--ink); }
.card .num { font-family: var(--serif); font-size: 2.4rem; color: var(--blue); line-height: 1; margin-bottom: 18px; }
.card:nth-child(2) .num { color: var(--red); }
.card p { color: var(--muted); flex: 1; }
.card .more { font-weight: 600; color: var(--red); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.verse {
  font-family: var(--serif); font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.4;
  max-width: 28em; margin: 0 auto; text-align: center;
}
.verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-xl); margin-top: 1.4rem; }

.steps { counter-reset: s; display: grid; gap: 18px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(s); font-family: var(--serif); font-size: 1.5rem; width: 52px; height: 52px;
  border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cream);
}
.steps strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.steps span { color: var(--muted); }

/* ---------- Player ---------- */
.player { background: var(--navy); color: var(--cream); border-radius: 20px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 20px 50px rgba(22, 41, 77, .22); }
.player .now { display: flex; align-items: center; gap: 18px; }
.play-btn {
  flex: none; width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red-l); color: #fff; display: grid; place-items: center; transition: transform .15s, background .15s;
}
.play-btn:hover { transform: scale(1.06); background: var(--red-xl); }
.play-btn svg { width: 28px; height: 28px; fill: currentColor; }
.play-btn .i-pause { display: none; }
.player.playing .play-btn .i-play { display: none; }
.player.playing .play-btn .i-pause { display: block; }
.meta .t { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.meta .a { color: rgba(246, 244, 238, .7); font-size: .95rem; }
.progress { margin-top: 22px; display: flex; align-items: center; gap: 14px; font-size: .82rem; font-variant-numeric: tabular-nums; color: rgba(246, 244, 238, .75); }
.progress input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--blue-l) var(--p, 0%), rgba(246, 244, 238, .22) var(--p, 0%)); cursor: pointer; }
.progress input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 0; }
.progress input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 0; }
.tracklist { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid rgba(246, 244, 238, .16); }
.tracklist button {
  width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 6px; border-bottom: 1px solid rgba(246, 244, 238, .1);
}
.tracklist button:hover, .tracklist button[aria-current="true"] { background: rgba(246, 244, 238, .07); }
.tracklist .tt { font-weight: 600; }
.tracklist .ta { color: rgba(246, 244, 238, .65); font-size: .9rem; }

/* ---------- Artists ---------- */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.artist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.artist .photo { aspect-ratio: 4/3; background: var(--navy); display: grid; place-items: center; }
.artist .photo img { width: 38%; opacity: .9; }
.artist .body { padding: 22px; }
.artist .city { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.artist p { color: var(--muted); font-size: .98rem; margin-bottom: .6em; }
.artist.empty { border-style: dashed; background: transparent; display: grid; place-items: center; text-align: center; padding: 30px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: 7px; }
.form input[type=text], .form input[type=email], .form input[type=url], .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 143, 203, .2); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.consent { display: flex !important; grid-template-columns: none; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(246, 244, 238, .8); padding-block: 56px 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-xl); margin: 0 0 14px; font-weight: 600; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--blue-l); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-bottom { border-top: 1px solid rgba(246, 244, 238, .16); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.draft-note { background: #fff7d6; border: 1px dashed #c9a400; border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: #5b4a00; }

/* WordPress: barra di amministrazione e contenuto delle pagine */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
main > .wp-block-html, main > p { margin: 0; }
