/* PGD01 – predloga za prostovoljna gasilska društva.
   Barve in pisave so zbrane spodaj (:root): zamenjate jih na enem mestu. */
:root {
  --red: #c81e2b;
  --red-dark: #9e1420;
  --gold: #f4a51c;
  --ink: #14171c;
  --ink-2: #1f242c;
  --text: #22262e;
  --muted: #646b78;
  --line: #e6e2dc;
  --sand: #f7f4f0;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 23, 28, .10);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(200, 30, 43, .35); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--red); color: var(--red); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── emergency bar + header ── */
.bar112 { background: var(--ink); color: #d8dbe0; font-size: .82rem; }
.bar112 .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; }
.bar112 strong { color: #fff; }
.bar112 a { color: #fff; text-decoration: none; }
.bar112 .em { display: inline-flex; align-items: center; gap: 8px; }
.bar112 .em b { background: var(--red); color: #fff; border-radius: 4px; padding: 1px 7px; font-size: .8rem; animation: pulse112 2.4s infinite; }
@keyframes pulse112 { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 30, 43, .6); } 50% { box-shadow: 0 0 0 6px rgba(200, 30, 43, 0); } }
.bar112 .contacts { display: flex; gap: 18px; }

.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.head.scrolled { box-shadow: 0 6px 24px rgba(20, 23, 28, .08); border-color: var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 87px; transition: height .25s; }
.head.scrolled .wrap { height: 87px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex-shrink: 0; }
.brand img { width: auto; height: 75px; flex-shrink: 0; margin-left: 0; display: block; }
.head .brand { margin-left: 0; padding-left: 0; }
.brand strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.brand span { display: block; font-size: .75rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a, .nav button.sub-toggle { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: .95rem; line-height: 1.5; margin: 0; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav > ul > li { display: flex; align-items: center; }
.nav .has-sub.current > button { position: relative; }
.nav .has-sub.current > button::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; }
.nav a:hover, .nav a[aria-current="page"], .nav .has-sub:hover > button, .nav .has-sub.open > button { color: var(--red); }
.nav a[aria-current="page"] { position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-weight: 500; }
.sub a:hover { background: var(--sand); }
.sub a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: .5; }
.nav .btn { margin-left: 10px; padding: 11px 20px; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--sand); border-radius: 10px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: .25s; }
.burger span { top: 22px; }
.burger span::before { top: -6px; left: 0; }
.burger span::after { top: 6px; left: 0; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ── hero ── */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: center/cover no-repeat; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14, 16, 20, .88) 0%, rgba(14, 16, 20, .62) 45%, rgba(14, 16, 20, .15) 100%); }
.hero .wrap { padding: 90px 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .kicker { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; color: #e6e8ec; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

.page-hero { position: relative; color: #fff; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: -60px 0; z-index: -2; background: center/cover no-repeat; will-change: transform; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 16, 20, .86), rgba(14, 16, 20, .45)); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.crumbs { font-size: .85rem; color: #d0d4da; margin-bottom: 10px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ── sections ── */
.sec { padding: clamp(64px, 9vw, 110px) 0; }
.sec-sand { background: var(--sand); }
.sec-dark { background: var(--ink); color: #c9ced6; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* about collage + checklist */
.collage { position: relative; padding: 0 0 60px 0; }
.collage img { border-radius: var(--radius); box-shadow: var(--shadow); }
.collage .main { aspect-ratio: 4 / 3.3; object-fit: cover; width: 86%; }
.collage .small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border: 6px solid #fff; }
.collage .badge { position: absolute; left: -10px; bottom: 24px; background: var(--red); color: #fff; padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage .badge b { display: block; font-size: 2rem; line-height: 1; }
.collage .badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.check { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check li::before { content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* counters */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink); padding: 34px 24px; text-align: center; }
.stat b { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b small { color: var(--red); font-size: .6em; }
.stat span { display: block; margin-top: 8px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #a8afba; }

/* activity cards */
.cards-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.act { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; color: #fff; text-decoration: none; isolation: isolate; }
.act img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.act::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(14, 16, 20, .9)); transition: background .3s; }
.act:hover img { transform: scale(1.08); }
.act:hover::before { background: linear-gradient(180deg, rgba(200, 30, 43, .25) 10%, rgba(14, 16, 20, .92)); }
.act .in { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.act h3 { color: #fff; margin-bottom: 4px; }
.act p { margin: 0; font-size: .9rem; color: #dfe2e7; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s; }
.act:hover p, .act:focus-visible p { max-height: 80px; opacity: 1; }
.act .go { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(4px); display: grid; place-items: center; transition: background .25s, transform .25s; }
.act:hover .go { background: var(--red); transform: rotate(-45deg); }

/* banner slider */
.slider { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; color: #fff; min-height: 440px; background: var(--ink); }
.slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; transition: opacity .9s ease; isolation: isolate; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 7s ease; }
.slide.on img { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 16, 20, .9), rgba(14, 16, 20, .2)); }
.slide .in { padding: 50px clamp(26px, 6vw, 70px); max-width: 640px; transform: translateY(16px); opacity: 0; transition: .7s .3s; }
.slide.on .in { transform: none; opacity: 1; }
.slide h2 { color: #fff; }
.slide p { color: #dde0e5; }
.slide .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.slider-nav { position: absolute; right: 22px; bottom: 22px; z-index: 3; display: flex; gap: 10px; align-items: center; }
.slider-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(14, 16, 20, .4); color: #fff;
  cursor: pointer; font-size: 1.1rem; transition: background .2s; }
.slider-nav button:hover { background: var(--red); border-color: var(--red); }
.dots { display: flex; gap: 8px; margin-right: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .4); transition: width .3s, background .3s; }
.dots button.on { width: 28px; background: var(--gold); }

/* three link cards */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tile .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .pic img { transform: scale(1.06); }
.tile .body { padding: 22px; }
.tile .body span.k { color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.play { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(200, 30, 43, .5); animation: ring 2s infinite; }
.play svg { width: 26px; height: 26px; margin-left: 4px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(200, 30, 43, .55); } 100% { box-shadow: 0 0 0 22px rgba(200, 30, 43, 0); } }

/* why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why article { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.why article:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.why .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(200, 30, 43, .1); color: var(--red); margin-bottom: 18px; }
.why .ic svg { width: 28px; height: 28px; }
.why p { color: var(--muted); font-size: .95rem; margin: 0; }

/* news / events cards */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .pic img { transform: scale(1.05); }
.post .date { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 8px; text-align: center; padding: 6px 10px; line-height: 1.1; box-shadow: var(--shadow); }
.post .date b { display: block; font-size: 1.3rem; color: var(--red); }
.post .date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.post .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post .cat { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.post h3 { font-size: 1.15rem; }
.post p { color: var(--muted); font-size: .93rem; flex: 1; }
.post button.link-arrow { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; align-self: flex-start; }
.post.upcoming .pic::after { content: "Prihaja"; position: absolute; right: 14px; top: 14px; background: var(--gold); color: var(--ink); font-size: .72rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }

/* filters + search (Dogodki) */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink); }
.chips button:hover { border-color: var(--red); color: var(--red); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; }
.search input { border: 1px solid var(--line); border-radius: 99px; padding: 11px 16px 11px 42px; font: inherit; min-width: 260px; }
.search input:focus { outline: 2px solid var(--red); border-color: transparent; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* next event countdown */
.next-ev { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(110deg, var(--red), var(--red-dark));
  color: #fff; border-radius: calc(var(--radius) + 4px); padding: 30px clamp(24px, 4vw, 44px); box-shadow: 0 16px 40px rgba(200, 30, 43, .3); }
.next-ev h3 { color: #fff; font-size: 1.4rem; margin: 4px 0; }
.next-ev .k { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: #ffd9a0; }
.cd { display: flex; gap: 10px; }
.cd div { background: rgba(0, 0, 0, .18); border-radius: 10px; padding: 10px 12px; min-width: 70px; text-align: center; }
.cd b { display: block; font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

/* join CTA */
.join { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); padding: clamp(40px, 6vw, 70px); color: #fff; isolation: isolate;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.join img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(158, 20, 32, .95), rgba(14, 16, 20, .75)); }
.join h2 { color: #fff; }
.join p { color: #f2e2e3; }
.join .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { text-align: center; }
.member .ph { aspect-ratio: 1; border-radius: 50%; margin: 0 auto 14px; width: 150px; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--red), var(--ink)); box-shadow: var(--shadow); }
.member b { display: block; color: var(--ink); }
.member span { color: var(--muted); font-size: .9rem; }

/* timeline (O nas) */
.timeline { position: relative; display: grid; gap: 26px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { list-style: none; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline b { color: var(--red); display: block; font-size: 1.1rem; }
.year-link { color: var(--red); font-weight: 700; font-size: 1.5rem; text-decoration: none; display: inline-block; }
.year-link:hover, .year-link:focus { text-decoration: underline; }
button.year-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
button.year-link[aria-pressed="true"] { color: var(--ink); text-decoration: underline; }
.article-grid.hist-grid { grid-template-columns: max-content minmax(0, 1fr); }
.year-link small { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); }
.hist-years { position: sticky; top: 100px; }
.hist-title { font-size: 1.2rem; margin: 0 0 18px; white-space: nowrap; }
.hist-years .timeline { padding-left: 0; }
.hist-years .timeline::before { left: 87px; top: 18px; bottom: 18px; }
.hist-years .timeline li { display: flex; align-items: center; min-height: 36px; }
.hist-years .timeline li::before { left: 80px; top: 50%; transform: translateY(-50%); z-index: 1; }
/* Odebeljena linija od začetka do izbrane letnice */
.hist-years .timeline li:not(:first-child)::after { content: ""; position: absolute; left: 87px; bottom: 50%; width: 2px; height: calc(100% + 26px); background: var(--red); border-radius: 1px; opacity: 0; transition: opacity .2s; }
.hist-years .timeline li.is-active:not(:first-child)::after, .hist-years .timeline li.is-past:not(:first-child)::after, .hist-years .timeline li:not(:first-child):has(~ li.is-active)::after { opacity: 1; }
.hist-years .timeline li:has(.year-link[aria-pressed="true"])::before, .hist-years .timeline li.is-active::before { background: var(--red); }
.hist-years .year-link { display: grid; grid-template-columns: 66px auto; column-gap: 40px; align-items: center; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.2; }
/* Naslov letnice desno od krogca, v eni vrstici */
.hist-years .year-link small { text-align: left; white-space: nowrap; }
@media (max-width: 420px) { .hist-years .year-link small { white-space: normal; } }
.hist-text h2 { margin-top: 0; }
/* Skenirana fotografija: prikaži le del s fotografijo, brez belega roba */
.hist-photo { overflow: hidden; aspect-ratio: 495 / 307; border-radius: var(--radius); margin: 10px 0 26px; }
.hist-photo[hidden] { display: none; }
.prose .hist-photo img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
[hidden] { display: none !important; }
@media (max-width: 960px) { .article-grid.hist-grid { grid-template-columns: 1fr; } .hist-years { position: static; } }
/* Zgodovina: preklop med podstranema in seznam vodstvenih funkcij */
.prose .hist-switch .btn { text-decoration: none; }
.hist-tabs { border-bottom: 1px solid var(--line); background: #fff; }
.hist-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.hist-tabs a { display: block; padding: 18px 22px 16px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.hist-tabs a:hover { color: var(--red); }
.hist-tabs a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.hist-tabs + .sec { padding-top: clamp(36px, 5vw, 60px); }
@media (max-width: 560px) { .hist-tabs ul { gap: 0; } .hist-tabs a { padding: 14px 12px 12px; font-size: .92rem; } }
.leaders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.leaders { background: var(--sand); border-radius: var(--radius); padding: 22px 24px; }
.prose .leaders h2 { margin: 0 0 14px; font-size: 1.35rem; color: var(--red); }
.prose .leaders ul { list-style: none; margin: 0; padding: 0; }
.prose .leaders li { display: flex; gap: 14px; padding: 7px 0; margin: 0; border-bottom: 1px solid var(--line); }
.prose .leaders li:last-child { border-bottom: 0; }
.leaders li span { flex: 0 0 5.5em; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .leaders-grid { grid-template-columns: 1fr; } }

/* gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--sand); }
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery button:hover img { transform: scale(1.06); filter: brightness(1.05); }
/* albums (Galerija): one cover photo → grid of all photos (--cols per row) → lightbox with previous/next */
.album { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.album-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.album-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.album-cover:hover img, .album-cover:focus-visible img { transform: scale(1.05); filter: brightness(1.05); }
.album-count { position: absolute; left: 12px; bottom: 12px; background: rgba(14, 16, 20, .78); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.album h3 { margin: 16px 20px 6px; font-size: 1.2rem; }
.album > p { margin: 0 20px 20px; color: var(--muted); font-size: .92rem; }
/* preview card on other pages that leads to an album on Galerija */
.album-link { display: block; max-width: 400px; margin: 20px 0; color: inherit; text-decoration: none; }
.album-link:hover img, .album-link:focus-visible img { transform: scale(1.05); filter: brightness(1.05); }
.album-link:hover h3 { color: var(--red); }
.album-link > p { margin: 0 20px 20px; color: var(--muted); font-size: .92rem; }
.album-view { position: fixed; inset: 0; z-index: 85; background: #fff; overflow-y: auto; padding: 0 clamp(14px, 3vw, 40px) 40px; opacity: 0; transition: opacity .25s; }
.album-view.on { opacity: 1; }
.album-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; margin-bottom: 20px; background: #fff; border-bottom: 1px solid var(--line); }
.album-top p { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.album-top .x { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.album-top .x:hover { background: var(--red); color: #fff; }
.album-grid { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
.album-grid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--sand); }
.album-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.album-grid button:hover img { transform: scale(1.06); filter: brightness(1.05); }
@media (max-width: 900px) { .album-grid { --cols: 3; } }
@media (max-width: 600px) { .album-grid { --cols: 2; } }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10, 11, 14, .92); display: grid; place-items: center; padding: 30px; opacity: 0; visibility: hidden; transition: .25s; }
.lb.on { opacity: 1; visibility: visible; }
.lb img, .lb iframe { max-width: min(1200px, 100%); max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb iframe { width: min(1100px, 100%); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.lb .x, .lb .prev, .lb .next { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb .x { top: 20px; right: 20px; }
.lb .prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb .x:hover, .lb .prev:hover, .lb .next:hover { background: var(--red); }
.lb .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c9ced6; font-size: .9rem; }
/* album lightbox: strip of all photos at the bottom (timeline with the current photo marked) */
.lb .strip { display: none; }
.lb.has-thumbs { padding-bottom: 130px; }
.lb.has-thumbs img { max-height: calc(100vh - 190px); }
.lb.has-thumbs .strip { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 0 14px; background: rgba(0, 0, 0, .35); }
.lb .count { margin: 0 0 8px; text-align: center; color: #c9ced6; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb .thumbs { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 4px 20px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.lb .thumbs button { flex: 0 0 auto; width: 80px; height: 60px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: #222; opacity: .5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.lb .thumbs button:first-child { margin-left: auto; }
.lb .thumbs button:last-child { margin-right: auto; }
.lb .thumbs button:hover, .lb .thumbs button:focus-visible { opacity: .85; }
.lb .thumbs button.on { opacity: 1; outline-color: var(--red); }
.lb .thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; max-height: none; border-radius: 0; box-shadow: none; }
@media (max-width: 600px) {
  .lb.has-thumbs { padding: 20px 10px 110px; }
  .lb.has-thumbs img { max-height: calc(100vh - 170px); }
  .lb .thumbs button { width: 60px; height: 45px; }
  .lb.has-thumbs .prev, .lb.has-thumbs .next { top: calc(50% - 50px); }
}

/* modal (article) */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 11, 14, .7); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: .25s; }
.modal.on { opacity: 1; visibility: visible; }
.modal article { background: #fff; border-radius: 14px; max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; transform: translateY(20px); transition: transform .3s; }
.modal.on article { transform: none; }
.modal article img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.modal .in { padding: 28px clamp(22px, 4vw, 40px) 34px; }
.modal .x { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: var(--shadow); cursor: pointer; font-size: 1.3rem; z-index: 2; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

/* contact */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 50px; }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.info .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.info .ic svg { width: 24px; height: 24px; }
.info p { margin: 0; color: var(--muted); }
.info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info a:hover { color: var(--red); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours tr.today td { color: var(--red); font-weight: 800; }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 12px; font-size: .9rem; }
.open-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa1ab; }
.open-now.yes { color: #1f8a3b; }
.open-now.yes::before { background: #2fb350; box-shadow: 0 0 0 4px rgba(47, 179, 80, .18); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fff; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.form .err { color: var(--red); font-size: .82rem; font-weight: 500; display: none; }
.form .bad .err { display: block; }
.form .bad input, .form .bad textarea, .form .bad select { border-color: var(--red); }
.note { border-radius: 10px; padding: 14px 16px; display: none; }
.note.on { display: block; }
.note.ok { background: #e8f6ec; color: #1d6b33; }
.note.no { background: #fdeaec; color: var(--red-dark); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--ink) center/cover no-repeat; display: grid; place-items: center; isolation: isolate; }
.map::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 16, 20, .55); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .load { text-align: center; color: #fff; }
.map .load p { color: #dfe2e7; font-size: .85rem; max-width: 420px; margin: 10px auto 0; }

/* donations */
.iban { display: flex; align-items: center; gap: 12px; background: var(--sand); border-radius: 10px; padding: 14px 16px; margin: 10px 0; flex-wrap: wrap; }
.iban code { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: .03em; flex: 1; }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; }
.copy.done { background: #1f8a3b; border-color: #1f8a3b; color: #fff; }
.goal { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.goal .bar { height: 14px; background: var(--sand); border-radius: 99px; overflow: hidden; margin: 16px 0 10px; }
.goal .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 99px; transition: width 1.8s cubic-bezier(.22, 1, .36, 1); }
.goal .nums { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* activity page */
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside .box { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.aside .box.dark { background: var(--ink); color: #c9ced6; }
.aside .box.dark h3 { color: #fff; }
.aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside ul a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.aside ul a:hover, .aside ul a[aria-current="page"] { background: #fff; color: var(--red); }
.prose img { border-radius: var(--radius); margin: 10px 0 26px; }
.prose figure { margin: 10px 0 26px; }
.prose figure img { display: block; width: 100%; height: auto; margin: 0; }
.prose figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted, #5b6472); text-align: center; font-style: italic; }
.prose h2 { font-size: 1.7rem; margin-top: 1.2em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.facts div { background: var(--sand); border-radius: 10px; padding: 18px; }
.facts b { display: block; font-size: 1.6rem; color: var(--red); }

/* footer */
.foot { background: var(--ink); color: #a8afba; padding: 70px 0 0; font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.foot h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #d2d6dc; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .brand span { color: #8f96a1; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .2s; }
.social a:hover { background: var(--red); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.foot .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* back to top (with scroll progress) */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: #fff;
  box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: .3s; color: var(--ink); }
.totop.on { opacity: 1; transform: none; }
.totop svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.totop:hover { color: var(--red); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }

/* responsive */
@media (max-width: 1060px) {
  .why, .team, .info-cards { grid-template-columns: repeat(2, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; flex-direction: column; align-items: stretch; padding: 90px 22px 30px;
    gap: 6px; transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 60px rgba(0, 0, 0, .2); overflow-y: auto; z-index: 60; }
  .menu-open .nav { transform: none; }
  .nav > ul { flex-direction: column; }
  .nav a, .nav button.sub-toggle { padding: 13px 14px; font-size: 1.05rem; width: 100%; text-align: left; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 10px; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .burger { z-index: 70; flex-shrink: 0; }
  /* open menu: close button stays in the panel's top corner (never over the first link), closed panel is not focusable / does not widen the page */
  .menu-open .burger { position: fixed; top: 16px; right: 16px; }
  .nav { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .menu-open .nav { visibility: visible; transition: transform .3s ease; }  /* mobile menu: full-height panel (blur on the header would trap it inside the header), dimmed page behind, no page scroll */
  .head { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { height: 100vh; height: 100dvh; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .nav > ul > li { display: block; }
  .nav a[aria-current="page"]::after, .nav .has-sub.current > button::before { right: auto; width: 28px; }
  .sub a { padding: 11px 12px; font-size: 1rem; }
  .has-sub.open > button::after { transform: rotate(-135deg) translateY(-3px); }
  .menu-open { overflow: hidden; }
  .menu-open .head::before { content: ""; position: fixed; inset: 0; background: rgba(14, 16, 20, .5); z-index: 55; }
  .brand { min-width: 0; }
  .bar112 .contacts { display: none; }
  .grid-2, .join { grid-template-columns: 1fr; }
  .join .actions { justify-content: flex-start; }
  .cards-6, .news, .trio { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .next-ev { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-6, .news, .trio, .why, .team, .info-cards, .facts { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr; }
  .search input { min-width: 0; width: 100%; }
  .search { width: 100%; }
  .cd div { min-width: 0; flex: 1; padding: 8px 6px; }
  .collage .badge { left: 10px; }
  .head .wrap, .head.scrolled .wrap { height: 72px; }
  .brand img { height: 58px; }
  .nav { padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* small helpers */
.sec-tight { padding-top: 0; }
.grid-top { align-items: start; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; flex-wrap: wrap; }
.sec-head-row h2 { margin: 0; }
.kicker-light { color: #ffd9a0; }
.btn-small { padding: 10px 20px; font-size: .9rem; }
.next-ev .ev-date { margin: 0 0 16px; opacity: .9; }
.goal-gap { margin-top: 22px; }
.small { font-size: .85rem; }
.lead-dark { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.nav .has-sub.current > button { color: var(--red); }
.foot strong { color: #fff; }
.lb .soon { color: #fff; text-align: center; max-width: 520px; }
.lb .soon img { margin: 0 auto 16px; max-height: 50vh; }
