/*
Theme Name: Musica Pannonica
Theme URI: https://musicapannonica.com
Author: Teo Kupčinovac
Description: Tema za Osijek International Guitar Festival – Musica Pannonica. Tipografski dizajn bez slika, dvojezično (hr/en), sa sadržajem koji se uređuje kroz Koncerte, Žiri, Profesore, Prijave i postavke Festivala.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: musicapannonica
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1b3a5c;
  --navy-dark: #122840;
  --orange: #ef5228;
  --cream: #f5f1ea;
  --charcoal: #2a2a2a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}

/* ══ HERO ══ */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4rem 2rem 7rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-circle:nth-child(1) { width: 560px; height: 560px; border: 1px solid rgba(239,82,40,0.07); }
.hero-circle:nth-child(2) { width: 760px; height: 760px; border: 1px solid rgba(239,82,40,0.04); }
.hero-circle:nth-child(3) { width: 400px; height: 400px; border: 1px solid rgba(239,82,40,0.05); }
.hero-glow {
  position: absolute;
  width: 500px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(239,82,40,0.11) 0%, transparent 70%);
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.logo-wrap { margin-bottom: 3rem; opacity: 0; animation: fadeUp 1s 0.1s ease forwards; }
.logo-wrap svg { width: 320px; height: auto; }

/* Na desktopu je hero logo dvostruko veci (320 → 640). */
@media (min-width: 900px) {
  .logo-wrap svg { width: 640px; }
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s ease forwards;
}
.badge-line { flex: 1; max-width: 90px; height: 1px; background: rgba(239,82,40,0.45); }
.badge {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}

.hero-city {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  opacity: 0;
  animation: fadeUp 1s 0.45s ease forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 6.2rem);
  line-height: 0.93;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: fadeUp 1s 0.55s ease forwards;
}
.hero h1 span {
  display: block;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  color: rgba(255,255,255,0.62);
}

.hero-festival {
  font-family: 'Barlow', sans-serif;
  font-weight: 200;
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  letter-spacing: 0.58em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-top: 0.9rem;
  margin-bottom: 3.8rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s ease forwards;
}

.date-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.6rem 3rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  opacity: 0;
  animation: fadeUp 1s 0.85s ease forwards;
}
.date-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
}
.date-main strong { color: var(--orange); font-weight: 600; }
.date-sub {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s 1.3s ease forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.5;
  animation: blink 2.2s 2s infinite;
}

/* ══ PROGRAM ══ */
.program-section {
  background: #fff;
  border-top: 4px solid var(--orange);
  padding: 5.5rem 2rem 6rem;
}
.program-inner { max-width: 1080px; margin: 0 auto; }
.program-head { text-align: center; margin-bottom: 4.5rem; }
.program-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.program-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.03;
  color: var(--navy);
}
.program-head .head-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: rgba(27,58,92,0.5);
  margin-top: 0.5rem;
}

.program-block { margin-bottom: 5rem; }
.program-block:last-child { margin-bottom: 0; }
.block-head {
  display: flex;
  align-items: baseline;
  gap: 1.3rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.9rem;
  margin-bottom: 2.2rem;
}
.block-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--orange);
}
.block-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  line-height: 1;
}
.block-en {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(27,58,92,0.42);
  margin-left: auto;
}

.concert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.concert-card {
  background: var(--cream);
  border: 1px solid rgba(27,58,92,0.13);
  padding: 2.2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.c-day {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.c-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.c-date-en {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42,42,42,0.45);
  margin-bottom: 1.5rem;
}
.c-event { border-top: 1px solid rgba(27,58,92,0.13); padding: 1.05rem 0; }
.c-time {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 0.3rem;
}
.c-artist {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--charcoal);
  line-height: 1.15;
}
.c-note { font-size: 0.86rem; font-weight: 300; color: rgba(42,42,42,0.6); margin-top: 0.2rem; }
.c-venue {
  margin-top: auto;
  border-top: 1px solid rgba(27,58,92,0.13);
  padding-top: 1.1rem;
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(42,42,42,0.62);
}
.c-venue strong { font-weight: 500; color: var(--navy); }
.c-venue .en { display: block; font-size: 0.9em; opacity: 0.6; font-style: italic; }

.comp-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.3rem; align-items: stretch; }
.comp-main {
  background: var(--cream);
  border: 1px solid rgba(27,58,92,0.13);
  padding: 2.4rem 2.3rem;
}
.comp-meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.comp-main h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.comp-main .h4-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(27,58,92,0.5);
  margin-bottom: 1.4rem;
}
.comp-main p { font-size: 0.95rem; font-weight: 300; line-height: 1.75; color: #444; }
.comp-main p.en { font-size: 0.85rem; color: rgba(68,68,68,0.6); font-style: italic; margin-top: 0.5rem; }

.finale { margin-top: 1.8rem; border-left: 3px solid var(--orange); padding: 0.9rem 0 0.9rem 1.4rem; }
.finale h5 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.finale-row { display: flex; gap: 1rem; padding: 0.3rem 0; }
.finale-row .t {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--orange);
  min-width: 52px;
  letter-spacing: 0.05em;
}
.finale-row .d { font-size: 0.92rem; font-weight: 300; color: #444; line-height: 1.5; }
.finale-row .d .en { display: block; font-size: 0.88em; opacity: 0.55; font-style: italic; }
.finale-venue { margin-top: 0.7rem; font-size: 0.83rem; font-weight: 300; color: rgba(42,42,42,0.62); }
.finale-venue strong { font-weight: 500; color: var(--navy); }

.jury-box { background: var(--navy-dark); padding: 2.4rem 2.3rem; display: flex; flex-direction: column; }
.jury-box h4 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.35rem;
}
.jury-box .jury-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.6rem;
}
.jury-box ul { list-style: none; }
.jury-box li { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.jury-box li:last-child { border-bottom: none; }
.jury-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.1;
}
.jury-role {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.28rem;
}
.jury-country {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-top: 0.15rem;
}

.mc-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.mc-meta div { font-size: 0.9rem; font-weight: 300; color: #444; }
.mc-meta span {
  display: block;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}
.mc-meta strong { font-weight: 500; color: var(--navy); font-size: 1.02rem; }

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border: 1px solid rgba(27,58,92,0.13);
  border-right: none;
  border-bottom: none;
}
.teacher {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid rgba(27,58,92,0.13);
  border-bottom: 1px solid rgba(27,58,92,0.13);
  background: var(--cream);
}
.teacher .t-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--charcoal);
  line-height: 1.1;
}
.teacher .t-country {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42,42,42,0.5);
  margin-top: 0.25rem;
}

/* Profesor kao poveznica na prijavu radionice */
.teacher.is-link {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.25s, transform 0.25s;
}
.teacher.is-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.teacher.is-link:hover { background: #fff; }
.teacher.is-link:hover::before { transform: scaleY(1); }
.teacher.is-link:hover .t-name { color: var(--navy); }

.teacher .t-cta {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.teacher.is-link:hover .t-cta,
.teacher.is-link:focus-visible .t-cta {
  opacity: 1;
  transform: translateY(0);
}
.teacher.is-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

/* Na dodir nema hovera - CTA je uvijek vidljiv */
@media (hover: none) {
  .teacher .t-cta { opacity: 1; transform: none; }
  .teacher.is-link::before { transform: scaleY(1); }
}

/* ── CTA gumbi ── */
.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.cta {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 2.2rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* Natpis nikad ne lomi u dva reda - "Prijavi" / "se" izgleda kao greška. */
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cta span {
  font-weight: 300;
  font-size: 0.82em;
  opacity: 0.7;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Na užim ekranima gumbi dijele red na jednake dijelove, a hrvatski i
   engleski natpis idu jedan ispod drugoga da stanu bez lomljenja. */
@media (max-width: 720px) {
  .cta-row { flex-wrap: nowrap; gap: 0.6rem; }
  .cta {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.95rem 0.8rem;
    letter-spacing: 0.12em;
  }
  .cta span { letter-spacing: 0.08em; }
}

@media (max-width: 380px) {
  .cta { font-size: 0.74rem; padding: 0.9rem 0.5rem; letter-spacing: 0.06em; }
}
.cta-primary { background: var(--orange); color: #fff; border: 1px solid var(--orange); }
.cta-primary:hover { background: #d64420; border-color: #d64420; }
.cta-ghost { background: transparent; color: var(--navy); border: 1px solid rgba(27,58,92,0.28); }
.cta-ghost:hover { border-color: var(--orange); color: var(--orange); }

.lecture {
  margin-top: 1.3rem;
  background: var(--navy-dark);
  padding: 1.7rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.lecture-tag {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}
.lecture-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}
.lecture-body em { color: rgba(255,255,255,0.55); font-weight: 300; }
.lecture-detail {
  margin-left: auto;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ══ INFO ══ */
.info-section {
  background: var(--cream);
  padding: 5.5rem 2rem;
  border-top: 1px solid rgba(27,58,92,0.1);
}
.info-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid rgba(27,58,92,0.13);
}
.info-card { padding: 2.8rem 2.2rem; border-right: 1px solid rgba(27,58,92,0.13); }
.info-card:last-child { border-right: none; }
.info-card-icon { width: 30px; height: 2px; background: var(--orange); margin-bottom: 1.3rem; }
.info-card h3 {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.info-card p, .info-card a {
  font-size: 0.97rem;
  font-weight: 300;
  color: #444;
  line-height: 1.75;
  text-decoration: none;
}
.info-card a:hover { color: var(--orange); }
.info-card strong { font-weight: 500; }
.info-card .muted { opacity: 0.55; font-size: 0.88em; }

/* ══ LJEPLJIVO ZAGLAVLJE ══ */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 2rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
}
.site-head.is-solid,
.site-head.is-stuck {
  background: rgba(18,40,64,0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(239,82,40,0.35);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
body.admin-bar .site-head { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-head { top: 46px; }
}

.site-head-logo svg {
  width: 128px;
  height: auto;
  display: block;
  transition: width 0.3s;
}
.site-head.is-stuck .site-head-logo svg,
.site-head.is-solid .site-head-logo svg { width: 108px; }

/* Na desktopu je logo u traci 25% veci. Namjerno ne 50%: traka je fiksna i
   svaki dodatni piksel visine trajno jede vrh sadrzaja. */
@media (min-width: 900px) {
  .site-head-logo svg { width: 160px; }
  .site-head.is-stuck .site-head-logo svg,
  .site-head.is-solid .site-head-logo svg { width: 135px; }
}

.site-head-menu {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
}
.site-head-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-head-menu a:hover,
.site-head-menu .current-menu-item > a {
  color: #fff;
  border-bottom-color: var(--orange);
}

/* ── Podizbornik ── */
/* Chevron postoji samo na mobitelu; media query ga niže uključuje. */
.sub-toggle { display: none; }

.site-head-menu .menu-item-has-children { position: relative; }
.site-head-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}
.site-head-menu .sub-menu {
  position: absolute;
  top: 100%;
  /* Poravnato desno: "Prijava" je zadnja stavka pa bi lijevo poravnanje
     izguralo podizbornik izvan ekrana. */
  right: 0;
  left: auto;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: rgba(18,40,64,0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(239,82,40,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 10;
}
.site-head-menu .menu-item-has-children:hover > .sub-menu,
.site-head-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-head-menu .menu-item-has-children:hover > a::after,
.site-head-menu .menu-item-has-children:focus-within > a::after {
  transform: translateY(0) rotate(225deg);
}
.site-head-menu .sub-menu a {
  padding: 0.7rem 1.2rem;
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 0.82rem;
  border-bottom: none;
  white-space: nowrap;
}
.site-head-menu .sub-menu a:hover { color: #fff; background: rgba(239,82,40,0.12); }

/* Hamburger — skriven na desktopu */
.site-head-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
}
.site-head-toggle span {
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.8);
  transition: transform 0.25s, opacity 0.25s;
}
.site-head-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-head-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-head-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-head { padding: 0.9rem 1.2rem; }
  .site-head-toggle { display: flex; }
  .site-head-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18,40,64,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(239,82,40,0.35);
    display: none;
  }
  .site-head-nav.is-open { display: block; }
  .site-head-menu { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .site-head-menu a {
    padding: 0.95rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .site-head-menu a:hover { border-bottom-color: rgba(255,255,255,0.06); }

  /* Na mobitelu se podizbornik otvara klikom na chevron. */
  .site-head-menu .menu-item-has-children { display: flex; flex-wrap: wrap; }
  .site-head-menu .menu-item-has-children > a { flex: 1; }
  .site-head-menu .menu-item-has-children > a::after { display: none; }

  .sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
  }
  .sub-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s;
  }
  .sub-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
  .sub-toggle[aria-expanded="true"] { color: var(--orange); }

  .site-head-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: rgba(0,0,0,0.18);
    padding: 0;
    min-width: 0;
    width: 100%;
    display: none;
  }
  .site-head-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
  .site-head-menu .sub-menu a { padding-left: 3rem; font-size: 0.78rem; }
}

/* Odmak da sidra ne zavrse ispod ljepljive trake */
#program, #koncerti, #natjecanje, #radionice, #info, #prijavnica {
  scroll-margin-top: 90px;
}

/* ══ UNUTARNJE STRANICE ══ */
.page-main { background: #fff; min-height: 60vh; padding-top: 84px; }
.page-head {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 0;
}
.page-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--navy);
  line-height: 1.05;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1rem;
}
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
}
.page-content h2, .page-content h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
  margin: 2rem 0 0.8rem;
}
.page-content p { margin-bottom: 1.1rem; }
.page-content ul, .page-content ol { margin: 0 0 1.1rem 1.3rem; }
.page-content a { color: var(--orange); }

/* Prijavnica sama nosi punu sirinu */
.page-content:has(.mp-form-wrap) { max-width: none; padding: 0; }

/* ══ PRAVILNIK ══ */
.page-content h2.wp-block-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: var(--navy);
  line-height: 1.15;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--navy);
}
.page-content h2.wp-block-heading:first-child { margin-top: 0; }
.page-content h3.wp-block-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  font-family: 'Barlow', sans-serif;
  margin: 1.8rem 0 0.6rem;
}

.mp-rules-lead {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: rgba(239,82,40,0.07);
  border-left: 3px solid var(--orange);
  padding: 0.9rem 1.2rem;
}

/* Podaci za uplatu */
.mp-rules-pay {
  background: var(--navy-dark);
  padding: 1.6rem 1.9rem;
  margin: 1.2rem 0 2rem;
}
.mp-rules-pay p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 0.35rem;
  word-break: break-word;
}
.mp-rules-pay p:last-child { margin-bottom: 0; }

/* Kartica kategorije */
.mp-rules-cat {
  background: var(--cream);
  border: 1px solid rgba(27,58,92,0.13);
  border-left: 3px solid var(--orange);
  padding: 1.3rem 1.6rem;
  margin-bottom: 0.8rem;
}
.mp-rules-cat h3.wp-block-heading {
  margin: 0 0 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--navy);
}
.mp-rules-cat p { margin: 0; font-size: 0.95rem; }

/* Nagrade */
.mp-rules-prize {
  display: inline-block;
  background: var(--navy-dark);
  padding: 1rem 1.6rem;
  margin: 0 0.6rem 0.6rem 0;
  min-width: 210px;
}
.mp-rules-prize h3.wp-block-heading,
.mp-rules-prize p:first-child {
  margin: 0;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.mp-rules-prize p:last-child {
  margin: 0.3rem 0 0;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
}

/* Klase koje koriste block patterns */
.page-content .mp-p-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.page-content .mp-p-en {
  font-style: italic;
  color: rgba(42,42,42,0.6);
  font-size: 0.92em;
}
.page-content .mp-p-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.5rem 0; }
.page-content .mp-p-btn .wp-block-button__link {
  background: var(--orange);
  color: #fff;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  transition: background 0.2s;
}
.page-content .mp-p-btn .wp-block-button__link:hover { background: #d64420; }
.page-content .mp-p-btn.is-ghost .wp-block-button__link {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(27,58,92,0.28);
}
.page-content .mp-p-btn.is-ghost .wp-block-button__link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Prekidac jezika na stranici */
.page-lang {
  display: flex;
  justify-content: flex-end;
  gap: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}
.page-lang span, .page-lang a {
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(27,58,92,0.18);
  color: rgba(27,58,92,0.55);
  text-decoration: none;
  transition: all 0.2s;
}
.page-lang .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-lang a:hover { border-color: var(--orange); color: var(--orange); }


/* ══ FOOTER ══ */
.site-footer { background: var(--navy-dark); padding: 4.5rem 2rem 3rem; }
.footer-logo { display: flex; justify-content: center; margin-bottom: 2.8rem; }
.footer-logo svg { width: 200px; height: auto; opacity: 0.65; }

/* Na desktopu je logo u podnozju dvostruko veci (200 → 400). */
@media (min-width: 900px) {
  .footer-logo svg { width: 400px; }
}
.social-label {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.3rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  transition: all 0.25s;
}
.social-links a:hover { border-color: var(--orange); color: #fff; background: rgba(239,82,40,0.07); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.22);
  line-height: 1.9;
}
.footer-bottom a { color: rgba(255,255,255,0.32); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-wrap, .badge-row, .hero-city, .hero h1, .hero-festival, .date-pill, .scroll-hint {
    animation: none;
    opacity: 1;
  }
  .scroll-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ══ RESPONSIVE ══ */
@media (max-width: 880px) {
  .concert-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .block-en { margin-left: 0; width: 100%; }
  .lecture-detail { margin-left: 0; text-align: left; white-space: normal; }
}
@media (max-width: 640px) {
  .logo-wrap svg { width: 220px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { border-right: none; border-bottom: 1px solid rgba(27,58,92,0.13); }
  .info-card:last-child { border-bottom: none; }
  .social-links { flex-direction: column; align-items: center; }
  .social-links a { width: 280px; justify-content: center; }
}

/* ══ WP admin bar korekcija ══ */
body.admin-bar .hero { min-height: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .hero { min-height: calc(100vh - 46px); }
}
