:root {
  --bg: #f7f1ea;
  --txt: #1b1b1b;
  --prim: #d96632;
  --sec: #a84524;
  --acc: #f0d7c4;
  --white: #ffffff;
  --input-bg: #f3e6dd;
  --orange: #e47f49;
  --orange-hover: #cf6835;
  --text-dark: #3a2d2d;
  --text-bold: #1d1d1d;
  --font: 'Montserrat', Arial, sans-serif;
}

/* Rahlo manjše privzeto merilo brez lomljenja 100vw/100vh elementov. */
html {
  font-size: 90%;
}

/* === OSNOVNI SLOG === */
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  padding-top: 0;
}

/* Ena pisava na vseh straneh, tudi v naslovih, menijih in obrazcih. */
body :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, button, input, textarea, select, option, blockquote) {
  font-family: var(--font) !important;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--acc);
}

/* === HEADER & NAVIGACIJA === */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid rgba(217, 102, 50, 0.2);
  background-image: none;
  min-height: 7.25rem;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  gap: 2rem;
}
.logo {
  position: static;
  margin: 0;
  flex: 0 0 auto;
}
.logo img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  background-color: transparent;
  padding: 0;
  font-family: var(--font);
  list-style: none;
  align-items: center;
}
.main-nav {
  flex: 1 1 auto;
}
.main-nav li {
  position: relative;
  list-style: none;
}
.main-nav a {
  color: var(--txt);
  text-decoration: none;
  padding: 0.75rem 0.9rem;
  display: inline-block;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.main-nav a.active {
  color: var(--prim);
  text-decoration: none;
  background-color: var(--white);
  border-bottom-color: var(--prim);
}
.main-nav a:hover {
  color: var(--prim);
  background-color: #fff7f1;
  border-radius: 0;
}

.main-nav a:focus-visible,
.header-contact a:focus-visible,
a.btn:focus-visible,
.slider-arrow:focus-visible,
.carousel-prev:focus-visible,
.carousel-next:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.main-nav a:visited,
.main-nav a:focus,
.main-nav a:active {
  color: inherit;
  text-decoration: none;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-contact a {
  color: var(--text-dark);
}

.header-contact i {
  color: var(--prim);
  margin-right: 0.35rem;
}

/* === DROPDOWN MENU === */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--white);
  box-shadow: 0 18px 45px rgba(40, 26, 18, 0.16);
  border-radius: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
}
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--txt);
  font-family: var(--font);
  border-bottom: 0;
}
.dropdown-menu a:hover {
  background-color: var(--acc);
  color: var(--txt);
}

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 7.25rem);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-color: #211b17;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* === Slide Content === */
.slide-content {
  position: absolute;
  bottom: 5rem;
  left: clamp(1.5rem, 6vw, 6rem);
  color: white;
  max-width: min(620px, 70vw);
  z-index: 2;
  background: none;
  padding: 0;
  text-align: left;
  line-height: 1.4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.slide-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.slide-content .eyebrow {
  color: var(--acc);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.slide-content .btn {
  background-color: var(--orange);
  color: white;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.slide-content .btn:hover {
  background-color: var(--orange-hover);
  color: white;
}

/* === Navigation Arrows === */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 3;
}

.slider-arrow.prev {
  left: 1rem;
}

.slider-arrow.next {
  right: 1rem;
}

/* === AKTIVNOSTI === */
.aktivnosti-section {
  background-image: none;
  background-repeat: repeat, no-repeat;
  background-size: 160px auto, cover;
  background-position: center, center;
  position: relative;
  z-index: 0;
  padding: 5rem 1rem 5rem;
  padding-bottom: 4rem;
  text-align: center;
  width: 100%;
}
/* Update aktivnosti-section heading style */
.aktivnosti-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  margin-top: 0rem;
}
.aktivnosti-section .subtitle {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}
.aktivnosti-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
}

.aktivnosti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-height: 400px;
}

.aktivnosti-card {
  background-color: var(--white);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  padding: 0;
}
.aktivnosti-card:hover {
  transform: translateY(-6px);
}
.aktivnosti-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.aktivnosti-card p {
  margin: 0;
  background-color: var(--white);
  padding: 1rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-bold);
  text-align: center;
  line-height: 1.2;
  display: block;
  border-top: 4px solid var(--prim);
  border-radius: 0;
}

/* === KONTAKT === */
.kontakt-wrapper {
  background-color: var(--bg);
  padding: 0.5rem 0.25rem;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-left: 1rem; /* added line to align with the "aktivnosti" section */
}

.kontakt-wrapper > div {
  display: flex;
  max-width: 550px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  background-color: transparent;
}

.kontakt-levo {
  flex: 1;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kontakt-levo h2 {
  font-size: 2.2rem;
  color: var(--prim);
  margin-bottom: 0.5rem;
}

.kontakt-levo .subtitle {
  font-weight: bold;
  color: var(--text-bold);
  margin-bottom: 2rem;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font);
  background-color: var(--input-bg);
  border: none;
  border-radius: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.kontakt-form textarea {
  height: 160px;
  resize: none;
}

.kontakt-form button {
  background-color: var(--orange);
  color: var(--text-bold);
  padding: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.kontakt-form button:hover {
  background-color: var(--orange-hover);
  color: white;
}

.kontakt-desno {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-desno img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #efe5dc;
}

/* Responsivnost */
@media (max-width: 900px) {
  .kontakt-wrapper > div {
    flex-direction: column;
  }

  .kontakt-desno {
    order: -1;
    height: 250px;
  }
}
/* === FOOTER === */
.footer-banner {
  background-color: var(--prim);
  color: white;
  padding: 3rem 1rem 2.25rem;
  margin-top: 0;
  background-image: none;
}
.footer-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-col a {
  color: white;
  font-size: 0.95rem;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.footer-col li {
  list-style-type: none;
}

.footer-col p {
  margin: 0 0 0.35rem;
}

.footer-col.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-col.social a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.14);
  border-color: white;
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body {
    padding-top: 0;
  }
  .site-header {
    position: static;
  }
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }
  .header-contact {
    align-items: center;
    white-space: normal;
  }
  .hero-slider {
    min-height: 74vh;
  }
  .slide-content {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 2rem;
    max-width: none;
  }
  .slide-content h1 {
    font-size: 2.4rem;
  }
  .aktivnosti-grid {
    grid-template-columns: 1fr;
  }
  .kontakt-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
.aktivnosti-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('fotografije/ozadje-kosir.png') center center / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

/* Reset za celoten dokument */
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.dogodki-section {
  background-color: var(--prim);
  color: white;
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
}

.dogodki-custom-layout {
  display: grid;
  grid-template-columns: 30% 40% 30%;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  align-items: center;
  position: relative;
}

/* Added styles for left-dogodki */
.left-dogodki {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1rem;
}

.left-dogodki h2 {
  font-size: 3rem;
  font-weight: 800;
  opacity: 1;
  margin-bottom: 0.25rem;
  margin-top: 0;
  color: white;
}

.left-dogodki .subtitle {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0;
  color: white;
  margin-bottom: 2rem;
}

.dogodki-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../fotografije/pattern.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0;
  height: 100%;
  min-height: 700px;
}

.middle-dogodki {
  display: flex;
  justify-content: center;
  align-items: center;
}
.middle-dogodki .carousel-image {
  margin-right: 0;
  margin-left: 0;
}

.middle-dogodki .carousel-image img {
  width: 90%;
  max-width: 90%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  aspect-ratio: 4 / 3;
  display: block;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.12);
}

.right-dogodki .carousel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}

.right-dogodki .carousel-text .datum {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.right-dogodki .carousel-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.right-dogodki .carousel-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Replaced .right-dogodki .carousel-text .btn with shared a.btn style */
a.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  background-color: #f3956b;
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
  width: fit-content;
  font-family: var(--font);
}

a.btn:hover {
  background-color: #e07a4b;
  color: black;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

@media (max-width: 1024px) {
  .dogodki-custom-layout {
    grid-template-columns: 1fr;
  }

  .left-dogodki,
  .right-dogodki {
    padding: 0;
  }

  .middle-dogodki .carousel-image img {
    width: min(100%, 620px);
  }
}

@media (max-width: 768px) {
  .dogodki-custom-layout {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    position: relative;
  }

  .carousel-image img {
    max-width: 100%;
  }

  .carousel-prev,
  .carousel-next {
    top: unset;
    bottom: -3rem;
    transform: none;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }
}

/* === Končna stanja navigacije === */
.main-nav a,
.main-nav a:visited,
.main-nav a:focus,
.main-nav a:active {
  color: var(--txt) !important;
  text-decoration: none !important;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--prim) !important;
}

.main-nav > ul > li > a.active {
  background-color: var(--white);
  border-bottom-color: var(--prim);
}

/* === POSEBEN DOGODEK === */
.poseben-dogodek {
  background-color: #b54c2c;
  color: white;
  padding: 2rem;
  border-radius: 8px;
  font-family: var(--font);
}

.poseben-dogodek .datum {
  font-weight: 800;
  color: white;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.poseben-dogodek h3 {
  color: #dc8462;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.poseben-dogodek p {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.poseben-dogodek .btn {
  background-color: #f3956b;
  color: black;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1rem;
}

.poseben-dogodek .btn:hover {
  background-color: #e07a4b;
}

/* Added styles for .dogodek-kosir */
.dogodek-kosir {
  max-width: 800px;
  margin: 4rem auto 4rem;
  padding: 3rem 2rem;
  background-color: #f4e9dc;
  border: 1px solid #d4bfa9;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: 'Playfair Display', serif;
  line-height: 1.8;
  color: #3a2d2d;
}

.dogodek-kosir h1 {
  font-size: 1.8rem;
  text-align: center;
  color: #1d1d1d;
  margin-bottom: 1.5rem;
}

.dogodek-kosir h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #8c6d5a;
}

.dogodek-kosir p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.dogodek-kosir strong {
  font-weight: bold;
}

.dogodek-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.image-content {
  float: right;
  max-width: 280px;
  margin: 0 0 1.5rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .image-content {
    float: none;
    display: block;
    margin: 1.5rem auto;
  }
}
.header-contact span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9rem;
  gap: 0.3rem;
  color: var(--text-dark);
}

.header-contact a,
.header-contact a:visited,
.header-contact a:hover,
.header-contact a:focus,
.header-contact a:active {
  color: var(--text-dark) !important;
  text-decoration: none;
}

/* === UREDNIŠKA PRENOVA ===
   Zračna postavitev, močni kontrasti in tipografska hierarhija,
   navdihnjeni s sodobnimi predstavitvami kulturne dediščine. */
:root {
  --paper: #f5f1e8;
  --paper-light: #fffdf8;
  --navy: #162334;
  --navy-soft: #25364a;
  --coral: #b84d25;
  --coral-dark: #913a1d;
  --ink: #24211f;
  --muted: #6c655f;
  --line: rgba(22, 35, 52, 0.16);
  --font-display: 'Playfair Display', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 95%;
  scroll-behavior: smooth;
}

body {
  background: var(--paper) !important;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

body :where(h1, h2, h3) {
  font-family: var(--font-display) !important;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

body :where(h4, h5, h6, p, a, span, li, label, button, input, textarea, select, option, blockquote) {
  font-family: var(--font) !important;
}

body :where(p) {
  text-wrap: pretty;
}

/* Glava ostane bela; izbrana tema je označena brez barvne ploskve. */
.site-header {
  min-height: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(22, 35, 52, 0.04);
}

.header-container {
  max-width: 1280px;
  min-height: 104px;
  padding: 0.75rem 2rem;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.logo img {
  width: 82px;
  height: 82px;
}

.logo {
  padding-right: clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
}

.logo a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a::after {
  content: '';
  position: absolute;
  right: 17%;
  bottom: -0.3rem;
  left: 17%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0.42);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo img {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.logo a:hover::after,
.logo a:focus-visible::after {
  transform: scaleX(1);
}

.logo a:hover img,
.logo a:focus-visible img {
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.main-nav ul {
  margin: 0;
  gap: 0.3rem;
}

.main-nav a {
  position: relative;
  padding: 0.85rem 0.9rem 0.7rem;
  color: var(--navy) !important;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  border-bottom-width: 2px;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  right: 0.9rem;
  bottom: 0.25rem;
  left: 0.9rem;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after,
.main-nav > ul > li:focus-within > a::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.main-nav > ul > li.dropdown > a {
  padding-right: 1.7rem;
}

.main-nav > ul > li.dropdown > a::before {
  content: '';
  position: absolute;
  top: 44%;
  right: 0.7rem;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease;
}

.main-nav > ul > li.dropdown:hover > a::before,
.main-nav > ul > li.dropdown:focus-within > a::before {
  transform: translateY(0) rotate(225deg);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--coral) !important;
  background: var(--white);
}

.main-nav > ul > li > a.active {
  background: var(--white);
  border-bottom-color: transparent;
}

.dropdown-menu {
  min-width: 250px;
  padding: 0.75rem 0;
  background: #ffffff !important;
  opacity: 1;
  isolation: isolate;
  z-index: 5000;
  border-right: 1px solid rgba(22, 35, 52, 0.12);
  border-bottom: 1px solid rgba(22, 35, 52, 0.12);
  border-left: 1px solid rgba(22, 35, 52, 0.12);
  border-top: 3px solid var(--coral);
  box-shadow: 0 24px 55px rgba(22, 35, 52, 0.24);
  transform: translateY(6px);
  transition: transform 0.2s ease, visibility 0.2s;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  background: #ffffff;
}

.dropdown-menu a {
  padding: 0.8rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(22, 35, 52, 0.08);
  font-size: 0.78rem;
  line-height: 1.45;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.25s ease, box-shadow 0.2s ease;
}

.dropdown-menu li:last-child a {
  border-bottom: 0;
}

.dropdown-menu a:hover {
  color: var(--navy) !important;
  background: var(--paper);
  padding-left: 1.5rem;
  box-shadow: inset 3px 0 0 var(--coral);
}

.header-contact {
  gap: 0.3rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.header-contact-link {
  display: grid;
  grid-template-columns: 1.65rem auto;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.1rem 0.45rem 0.1rem 0.1rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.header-contact-link span {
  display: block;
}

.header-contact-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  border: 1px solid rgba(184, 77, 37, 0.24);
  border-radius: 50%;
  color: var(--coral);
  font-size: 0.62rem;
}

.header-contact a,
.header-contact a:visited,
.header-contact a:hover,
.header-contact a:focus,
.header-contact a:active {
  color: var(--muted) !important;
}

.header-contact .header-contact-link:hover,
.header-contact .header-contact-link:focus-visible {
  color: var(--navy) !important;
  background: var(--paper);
  transform: translateX(-2px);
}

/* Naslovna fotografija */
.hero-slider {
  min-height: clamp(560px, 72vh, 760px);
  background: var(--navy);
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 19, 31, 0.78) 0%, rgba(9, 19, 31, 0.28) 52%, rgba(9, 19, 31, 0.08) 100%);
  pointer-events: none;
}

.slide-content {
  left: max(2rem, calc((100vw - 1240px) / 2));
  bottom: clamp(3.5rem, 8vh, 6rem);
  max-width: min(700px, calc(100vw - 4rem));
  text-shadow: none;
}

.slide-content h1 {
  margin: 0 0 1.25rem;
  color: white;
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  font-style: italic;
  letter-spacing: -0.025em;
}

.slide-content p {
  max-width: 580px;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
}

.slide-content .eyebrow {
  margin-bottom: 0.85rem;
  color: #f3a27b;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}

a.btn,
.slide-content .btn {
  padding: 0.8rem 1.35rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: var(--coral);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a.btn:hover,
.slide-content .btn:hover {
  color: white;
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

.slider-arrow {
  top: auto;
  bottom: 2rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  transform: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(13, 27, 43, 0.42);
  color: white;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.slider-arrow:hover {
  border-color: white;
  background: var(--coral);
}

.slider-arrow.prev {
  right: max(5.75rem, calc((100vw - 1240px) / 2 + 3.75rem));
  left: auto;
}

.slider-arrow.next {
  right: max(2rem, calc((100vw - 1240px) / 2));
}

/* Uvodni uredniški blok, ki se rahlo prekriva z naslovno fotografijo. */
.uvod-section {
  position: relative;
  z-index: 4;
  width: min(1120px, calc(100% - 3rem));
  margin: -2.75rem auto 0;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 8vw, 7.5rem);
  background: var(--paper-light);
  text-align: center;
  box-shadow: 0 18px 60px rgba(22, 35, 52, 0.10);
}

.uvod-section .section-kicker,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.uvod-section h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-style: italic;
}

.section-rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: 1.75rem auto;
  background: var(--coral);
}

.uvod-section > p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: #433e3a;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.95;
}

/* V ospredju: močan barvni pas in čista predstavitev brez okvirjev. */
.dogodki-section {
  padding: clamp(5rem, 9vw, 8rem) 2rem;
  background: var(--coral);
}

.dogodki-custom-layout {
  max-width: 1240px;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr) minmax(280px, 1fr);
  gap: clamp(2.5rem, 4vw, 4.5rem);
}

.left-dogodki {
  padding: 0;
}

.left-dogodki h2,
.dogodki-section > .container > h2 {
  margin: 0 0 0.8rem;
  color: white;
  font-size: clamp(2.8rem, 4.4vw, 4.2rem);
  font-style: italic;
  font-weight: 700;
}

.left-dogodki .subtitle,
.dogodki-section > .container > .subtitle {
  margin: 0;
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
}

.dogodki-pattern {
  display: none;
}

.middle-dogodki,
.middle-dogodki .carousel-slides,
.middle-dogodki .carousel-image {
  min-width: 0;
  width: 100%;
}

.middle-dogodki .carousel-slide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.99);
  transition:
    opacity 1.05s ease,
    visibility 1.05s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.middle-dogodki .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dogodki-description {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dogodki-description.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.middle-dogodki .carousel-image img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.right-dogodki .carousel-text {
  padding: 0;
}

.right-dogodki .carousel-text h3,
.dogodki-description h3 {
  margin: 0 0 1.5rem;
  color: white;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

.right-dogodki .carousel-text p,
.dogodki-description p {
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.85;
}

.dogodki-description a.btn {
  border-color: white;
  background: transparent;
}

.dogodki-description a.btn:hover {
  border-color: var(--navy);
  background: var(--navy);
}

/* Dogodki na samostojni strani. */
.dogodki-section > .container:not(.dogodki-custom-layout) {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dogodki-section > .container:not(.dogodki-custom-layout) > h2,
.dogodki-section > .container:not(.dogodki-custom-layout) > .subtitle {
  text-align: center;
}

.dogodki-section > .container:not(.dogodki-custom-layout) > .subtitle {
  margin-bottom: 4rem;
}

.dogodki-section > .container:not(.dogodki-custom-layout) .carousel-slide {
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  background: transparent;
}

.dogodki-section > .container:not(.dogodki-custom-layout) .carousel-image,
.dogodki-section > .container:not(.dogodki-custom-layout) .carousel-text {
  flex: 1 1 0;
}

.dogodki-section > .container:not(.dogodki-custom-layout) .carousel-image img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.dogodki-section > .container:not(.dogodki-custom-layout) .carousel-text h3 {
  color: white;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.dogodki-section > .container:not(.dogodki-custom-layout) .carousel-text p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.85;
}

/* Vsebinske kartice */
.aktivnosti-section {
  padding: clamp(6rem, 10vw, 9rem) 2rem !important;
  background: var(--paper) !important;
}

.aktivnosti-section::before {
  background: none !important;
  opacity: 0 !important;
}

.aktivnosti-section > .container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

.aktivnosti-section h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-style: italic;
}

.aktivnosti-section .subtitle {
  margin: 0 0 clamp(3rem, 6vw, 5.5rem);
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aktivnosti-grid {
  max-width: none;
  min-height: 0;
  gap: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.75rem);
}

.aktivnosti-card {
  border: 1px solid var(--line);
  background: var(--paper-light);
  overflow: hidden;
  transform: none;
}

.aktivnosti-card:hover {
  transform: none;
}

.aktivnosti-card img {
  height: clamp(230px, 24vw, 340px);
  transition: transform 0.55s ease;
}

.aktivnosti-card:hover img {
  transform: scale(1.025);
}

.aktivnosti-card p {
  position: relative;
  padding: 1.5rem 1.25rem 1.6rem;
  border-top: 0;
  background: var(--paper-light);
  color: var(--navy);
  font-family: var(--font-display) !important;
  font-size: 1.45rem;
  line-height: 1.2;
}

.aktivnosti-card p::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--coral);
}

/* Dolge vsebinske podstrani imajo enotno širino in veliko belega prostora. */
.section-zgodovina,
.section-utrinki,
.section-pasjon,
.zgodovina-text,
.utrinki-text,
.dogodek-kosir {
  width: min(100%, 1080px);
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}

.section-zgodovina .zgodovina-text,
.section-utrinki .utrinki-text,
.section-pasjon .container {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.zgodovina-text h1,
.utrinki-text h1,
.section-pasjon h1,
.dogodek-kosir h1 {
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem) !important;
  color: var(--navy) !important;
  font-size: clamp(2.8rem, 5vw, 4.8rem) !important;
  font-style: italic;
  text-align: center !important;
}

.zgodovina-text h2,
.utrinki-text h2,
.section-pasjon h2,
.dogodek-kosir h2 {
  margin: 3.5rem 0 1.5rem;
  color: var(--navy) !important;
  font-size: clamp(1.7rem, 3vw, 2.5rem) !important;
}

.zgodovina-text p,
.utrinki-text p,
.section-pasjon p,
.dogodek-kosir p {
  margin-bottom: 1.65rem;
  color: var(--ink) !important;
  font-size: clamp(1rem, 1.3vw, 1.08rem) !important;
  line-height: 1.9 !important;
  text-align: left !important;
}

.zgodovina-text a,
.utrinki-text a,
.section-pasjon a,
.dogodek-kosir a {
  color: var(--coral-dark) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.zgodovina-img,
.utrinki-img,
.pasjon-image img,
.dogodek-img,
.image-content {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.zgodovina-img,
.utrinki-img,
.pasjon-image img,
.dogodek-img {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.image-content {
  margin: 0.4rem 0 2rem 3rem !important;
}

/* Noga ostane iste barve kot V ospredju, a dobi več zraka. */
.footer-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6rem) 2rem;
  background: var(--coral);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1240px, calc(100% - 4rem));
  height: 4px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}

.footer-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr;
  max-width: 1240px;
  gap: 0;
}

.footer-col {
  min-width: 190px;
  padding-right: clamp(2rem, 5vw, 5rem);
}

.footer-col + .footer-col {
  padding-right: clamp(2rem, 5vw, 5rem);
  padding-left: clamp(2rem, 5vw, 5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-col h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-col h4::after {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.footer-col li,
.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-visit li {
  color: rgba(255, 255, 255, 0.84);
}

.footer-contact-link {
  display: inline-block;
}

.footer-credit {
  text-align: right;
}

.footer-credit h4 {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display) !important;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: none;
}

.footer-credit h4::after {
  display: none;
}

.footer-credit p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-col.social a {
  width: 2.75rem;
  height: 2.75rem;
  border-color: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.footer-col.social a:hover {
  border-color: white;
  background: transparent;
  opacity: 0.82;
  transform: translateY(-2px);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .header-container {
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
  }

  .main-nav ul {
    margin-top: -0.35rem;
  }

  .dogodki-custom-layout {
    grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1fr);
  }

  .right-dogodki {
    grid-column: 1 / -1;
    max-width: 720px;
  }

  .aktivnosti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }

  .header-container {
    min-height: 0;
    padding: 0.85rem 1rem 1rem;
    gap: 0.6rem;
  }

  .logo img {
    width: 66px;
    height: 66px;
  }

  .logo {
    padding-right: 0;
    border-right: 0;
  }

  .header-contact {
    display: none;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }

  .main-nav > ul > li {
    flex: 1 1 20%;
    text-align: center;
  }

  .main-nav a {
    padding: 0.55rem 0.15rem 0.45rem;
    font-size: clamp(0.58rem, 2.5vw, 0.7rem);
  }

  .main-nav > ul > li.dropdown > a {
    padding-right: 0.75rem;
    padding-left: 0.1rem;
  }

  .main-nav > ul > li.dropdown > a::before {
    right: 0.15rem;
    width: 4px;
    height: 4px;
  }

  .main-nav > ul > li > a::after {
    right: 0.15rem;
    left: 0.15rem;
  }

  .dropdown-menu {
    left: 50%;
    min-width: min(260px, 88vw);
    transform: translateX(-50%);
  }

  .hero-slider {
    min-height: 68vh;
  }

  .slide::after {
    background: linear-gradient(0deg, rgba(9, 19, 31, 0.82) 0%, rgba(9, 19, 31, 0.2) 72%);
  }

  .slide-content {
    right: 1.25rem;
    bottom: 5.5rem;
    left: 1.25rem;
    max-width: none;
  }

  .slide-content h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 11vw, 3.6rem);
  }

  .slider-arrow {
    bottom: 1.25rem;
  }

  .slider-arrow.prev {
    right: 4.75rem;
  }

  .slider-arrow.next {
    right: 1.25rem;
  }

  .uvod-section {
    width: calc(100% - 1.5rem);
    margin-top: -1.5rem;
  }

  .dogodki-section {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .dogodki-custom-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .right-dogodki {
    grid-column: auto;
  }

  .middle-dogodki .carousel-image img {
    max-height: 480px;
  }

  .dogodki-section > .container:not(.dogodki-custom-layout) .carousel-slide {
    flex-direction: column;
  }

  .aktivnosti-grid {
    grid-template-columns: 1fr;
  }

  .aktivnosti-card img {
    height: min(72vw, 360px);
  }

  .image-content,
  .zgodovina-img {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2.5rem 0 !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-col,
  .footer-col + .footer-col,
  .footer-col:last-child {
    padding: 0;
    border-left: 0;
  }

  .footer-col + .footer-col {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .footer-credit {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* === CELOVITA MOBILNA PRILAGODITEV === */
.mobile-menu-toggle {
  display: none;
}

.submenu-toggle {
  display: none;
}

@media (max-width: 768px) {
  html {
    font-size: 100%;
    scroll-padding-top: 88px;
  }

  body {
    min-width: 0;
    font-size: 1rem;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  button,
  a.btn {
    min-height: 44px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 82px;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }

  .logo {
    grid-column: 1;
  }

  .logo img {
    width: 62px;
    height: 62px;
  }

  .mobile-menu-toggle {
    grid-column: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 2.5px 0;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    width: calc(100% + 2rem);
    max-height: calc(100svh - 82px);
    margin: 0 -1rem -0.5rem;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--white);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 1rem 1rem;
  }

  .main-nav > ul > li {
    flex: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }

  .main-nav > ul > li.dropdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: start;
  }

  .main-nav > ul > li > a,
  .main-nav > ul > li.dropdown > a {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 2rem 0.8rem 0.4rem;
    font-size: 0.82rem;
  }

  .main-nav > ul > li.dropdown > a::before {
    display: none;
  }

  .main-nav > ul > li > a::after {
    right: auto;
    left: 0.4rem;
    width: 42px;
  }

  .main-nav .dropdown-menu {
    grid-column: 1 / -1;
    position: static;
    display: none !important;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0 0 0.55rem 0.75rem;
    border: 0;
    border-left: 2px solid rgba(184, 77, 37, 0.35);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav .dropdown.submenu-open > .dropdown-menu {
    display: flex !important;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
  }

  .submenu-toggle span {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .submenu-toggle[aria-expanded="true"] span {
    transform: translateY(2px) rotate(225deg);
  }

  .main-nav .dropdown-menu a {
    min-height: 44px;
    padding: 0.7rem 0.75rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-slider {
    width: 100%;
    min-height: calc(100svh - 82px);
  }

  .slide-content {
    right: 1.1rem;
    bottom: 5.25rem;
    left: 1.1rem;
  }

  .slide-content h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    line-height: 1.02;
  }

  .slide-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .uvod-section {
    width: calc(100% - 1rem);
    margin-top: -1.25rem;
    padding: 2.75rem 1.15rem;
  }

  .uvod-section h2,
  .aktivnosti-section h2,
  .left-dogodki h2,
  .dogodki-section > .container > h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .dogodki-section,
  .aktivnosti-section {
    padding: 4rem 1rem !important;
  }

  .dogodki-custom-layout {
    gap: 2rem;
  }

  .middle-dogodki .carousel-image img,
  .dogodki-section .carousel-image img {
    width: 100%;
    height: auto;
    max-height: 70svh;
  }

  .right-dogodki .carousel-text,
  .dogodki-section .carousel-text {
    padding: 0 !important;
  }

  .aktivnosti-grid {
    gap: 1.25rem;
  }

  .aktivnosti-card img {
    height: min(68vw, 320px);
  }

  .kontakt-wrapper {
    margin-right: 0;
    margin-left: 0;
    padding: 1rem;
  }

  .section-zgodovina,
  .section-utrinki,
  .section-pasjon,
  .zgodovina-text,
  .utrinki-text,
  .dogodek-kosir {
    width: 100%;
    padding: 3.5rem 1.1rem !important;
    overflow-wrap: anywhere;
  }

  .zgodovina-text h1,
  .utrinki-text h1,
  .section-pasjon h1,
  .dogodek-kosir h1 {
    margin-bottom: 2.25rem !important;
    font-size: clamp(2.25rem, 11vw, 3.2rem) !important;
  }

  .zgodovina-text p,
  .utrinki-text p,
  .section-pasjon p,
  .dogodek-kosir p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  .editorial-masthead {
    min-height: 360px;
    padding: 4rem 1.1rem;
  }

  .editorial-masthead h1 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .editorial-chapter {
    padding: 3.75rem 1rem;
  }

  .editorial-chapter-inner {
    gap: 2rem;
  }

  .editorial-number {
    font-size: 6rem;
  }

  .editorial-events .carousel-image {
    height: min(112vw, 520px);
  }

  .editorial-events .carousel-text {
    padding: 1.5rem !important;
  }

  .editorial-events .carousel-track,
  .editorial-events .carousel-slide,
  .editorial-events .carousel-image,
  .editorial-events .carousel-text {
    width: 100% !important;
    min-width: 0 !important;
  }

  .footer-banner {
    padding: 3.5rem 1.1rem 2.5rem;
  }
}

@media (max-width: 420px) {
  .slide-content .eyebrow,
  .section-kicker {
    letter-spacing: 0.12em;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
  }

  .slider-arrow.prev {
    right: 4.35rem;
  }

  .slider-arrow.next {
    right: 1rem;
  }

  .story-experience {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .story-card-content {
    padding: 1.15rem;
  }

  .story-floating-next {
    right: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }
}

/* === UMETNIŠKA POSTAVITEV CELOTNIH VSEBIN === */
.has-editorial-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.editorial-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--paper);
}

.editorial-masthead {
  position: relative;
  display: grid;
  align-content: center;
  min-height: clamp(440px, 62vh, 720px);
  padding: clamp(6rem, 11vw, 10rem) max(2rem, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(184, 77, 37, 0.12), transparent 27%),
    linear-gradient(135deg, var(--paper-light), var(--paper));
}

.editorial-masthead::before {
  content: '';
  position: absolute;
  top: 50%;
  right: max(2rem, calc((100vw - 1240px) / 2));
  width: clamp(230px, 31vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 35, 52, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 45px rgba(22, 35, 52, 0.025),
    0 0 0 90px rgba(22, 35, 52, 0.018);
}

.editorial-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem !important;
  color: var(--coral) !important;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.editorial-masthead h1 {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 !important;
  color: var(--navy) !important;
  font-size: clamp(3.8rem, 7vw, 7.5rem) !important;
  font-style: italic;
  letter-spacing: -0.035em;
  text-align: left !important;
}

.editorial-line {
  position: relative;
  z-index: 1;
  display: block;
  width: 90px;
  height: 2px;
  margin-top: 2.25rem;
  background: var(--coral);
}

.editorial-chapter {
  position: relative;
  min-height: 620px;
  padding: clamp(5.5rem, 10vw, 9rem) 2rem;
  overflow: hidden;
  background: var(--paper-light);
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-chapter:nth-of-type(even) {
  background: var(--navy);
  color: white;
}

.editorial-chapter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.editorial-chapter-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: min(1240px, 100%);
  min-height: 380px;
  margin: 0 auto;
}

.editorial-visual {
  position: relative;
  grid-column: 1 / span 6;
  min-width: 0;
}

.editorial-copy {
  grid-column: 7 / -1;
  min-width: 0;
  text-align: left;
}

.editorial-chapter.is-reversed .editorial-visual {
  grid-column: 7 / -1;
  order: 2;
}

.editorial-chapter.is-reversed .editorial-copy {
  grid-column: 1 / span 6;
  order: 1;
}

.editorial-chapter.is-textual .editorial-copy {
  grid-column: 3 / 11;
}

.editorial-number {
  position: absolute;
  top: clamp(1rem, 3vw, 2.5rem);
  right: max(1.5rem, calc((100vw - 1240px) / 2));
  z-index: 1;
  color: rgba(22, 35, 52, 0.07);
  font-family: var(--font-display) !important;
  font-size: clamp(7rem, 15vw, 14rem);
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}

.editorial-chapter:nth-of-type(even) .editorial-number {
  right: auto;
  left: max(1.5rem, calc((100vw - 1240px) / 2));
  color: rgba(255, 255, 255, 0.06);
}

.editorial-visual::before {
  content: '';
  position: absolute;
  top: -1.2rem;
  right: -1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: -1;
  border: 1px solid var(--coral);
}

.editorial-chapter.is-reversed .editorial-visual::before {
  right: 1.2rem;
  left: -1.2rem;
}

.editorial-visual img,
.editorial-visual .pasjon-image img {
  display: block;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(360px, 48vw, 650px) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(22, 35, 52, 0.17) !important;
}

.editorial-visual .pasjon-image {
  margin: 0 !important;
}

.editorial-copy .text-block {
  display: contents;
}

.editorial-copy h2,
.editorial-copy h3 {
  margin: 0 0 1.75rem !important;
  color: var(--navy) !important;
  font-size: clamp(2.2rem, 4vw, 4rem) !important;
  font-style: italic;
  line-height: 1.08;
  text-align: left !important;
}

.editorial-chapter:nth-of-type(even) .editorial-copy h2,
.editorial-chapter:nth-of-type(even) .editorial-copy h3 {
  color: white !important;
}

.editorial-copy p,
.editorial-copy blockquote {
  max-width: 720px;
  margin: 0 0 1.5rem !important;
  color: #403a36 !important;
  font-size: clamp(1rem, 1.3vw, 1.1rem) !important;
  line-height: 1.9 !important;
  text-align: left !important;
}

.editorial-chapter:nth-of-type(even) .editorial-copy p,
.editorial-chapter:nth-of-type(even) .editorial-copy blockquote {
  color: rgba(255, 255, 255, 0.84) !important;
}

.editorial-copy blockquote {
  padding: 1.25rem 0 1.25rem 1.75rem;
  border-left: 2px solid var(--coral);
  font-family: var(--font-display) !important;
  font-size: clamp(1.25rem, 2vw, 1.7rem) !important;
  font-style: italic;
}

.editorial-copy > a {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--coral-dark) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.editorial-chapter:nth-of-type(even) .editorial-copy > a {
  color: #f3a27b !important;
}

.editorial-content:not(.editorial-event-detail) .editorial-chapter:first-of-type .editorial-copy > p:first-of-type::first-letter,
.editorial-content:not(.editorial-event-detail) .editorial-chapter:first-of-type .text-block > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 4.8em;
  font-style: italic;
  line-height: 0.72;
}

.editorial-event-detail .editorial-visual img {
  object-fit: contain;
  background: var(--paper);
}

/* Pregled vseh dogodkov kot odprta revijalna postavitev. */
.editorial-events .dogodki-section {
  padding: clamp(6rem, 10vw, 10rem) 2rem;
  background: var(--paper) !important;
  color: var(--ink);
}

.editorial-events .dogodki-section > .container {
  width: min(1240px, 100%);
  max-width: 1240px;
}

.editorial-events .dogodki-section > .container > h2 {
  margin-bottom: 0.75rem;
  color: var(--navy) !important;
  font-size: clamp(4rem, 7vw, 7rem);
  text-align: left;
}

.editorial-events .dogodki-section > .container > .subtitle {
  margin-bottom: clamp(4rem, 8vw, 7rem);
  color: var(--coral-dark) !important;
  text-align: left;
}

.editorial-events .carousel-track {
  display: grid;
  gap: clamp(5rem, 10vw, 9rem);
}

.editorial-events .carousel-slide {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-light) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: 0 30px 75px rgba(22, 35, 52, 0.10);
}

.editorial-events .carousel-slide:nth-child(even) .carousel-image {
  order: 2;
}

.editorial-events .carousel-slide:nth-child(even) .carousel-text {
  order: 1;
}

.editorial-events .carousel-slide::before {
  content: counter(event-item, decimal-leading-zero);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 3;
  color: rgba(22, 35, 52, 0.08);
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 9rem);
  font-style: italic;
  line-height: 1;
}

.editorial-events .carousel-track {
  counter-reset: event-item;
}

.editorial-events .carousel-slide {
  counter-increment: event-item;
}

.editorial-events .carousel-image {
  min-height: 650px;
  margin: 0 !important;
  background: var(--navy);
}

.editorial-events .carousel-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 720px;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: contain;
  box-shadow: none !important;
}

.editorial-events .carousel-text {
  align-self: center;
  padding: clamp(3rem, 6vw, 6rem) !important;
}

.editorial-events .carousel-text h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 2rem;
  color: var(--navy) !important;
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  font-style: italic;
  line-height: 1.08;
}

.editorial-events .carousel-text p {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  color: #403a36 !important;
  font-size: 1rem;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .editorial-masthead {
    min-height: 430px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .editorial-masthead::before {
    right: -25%;
    opacity: 0.7;
  }

  .editorial-chapter {
    min-height: 0;
    padding: 5.5rem 1.25rem;
  }

  .editorial-chapter-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .editorial-visual,
  .editorial-copy,
  .editorial-chapter.is-reversed .editorial-visual,
  .editorial-chapter.is-reversed .editorial-copy,
  .editorial-chapter.is-textual .editorial-copy {
    grid-column: 1;
    order: initial;
  }

  .editorial-visual img,
  .editorial-visual .pasjon-image img {
    height: min(115vw, 620px) !important;
  }

  .editorial-chapter.is-reversed .editorial-visual::before {
    right: -1rem;
    left: 1rem;
  }

  .editorial-number {
    font-size: 8rem;
  }

  .editorial-events .carousel-slide {
    grid-template-columns: 1fr;
  }

  .editorial-events .carousel-slide:nth-child(even) .carousel-image,
  .editorial-events .carousel-slide:nth-child(even) .carousel-text {
    order: initial;
  }

  .editorial-events .carousel-image {
    min-height: 0;
    height: min(125vw, 680px);
  }

  .editorial-events .carousel-text {
    padding: 2.25rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-chapter {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === INTERAKTIVNE ZGODBE PODSTRANI === */
.story-full-content[hidden],
.story-deck[hidden],
.story-card[hidden],
.story-floating-next[hidden] {
  display: none !important;
}

.story-experience {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 104px);
  padding: clamp(5.5rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem) clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(184, 77, 37, 0.34), transparent 32%),
    radial-gradient(circle at 88% 80%, rgba(255, 255, 255, 0.08), transparent 25%),
    var(--navy);
  color: white;
}

.story-experience::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 84%);
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.story-atmosphere span {
  position: absolute;
  z-index: -1;
  width: clamp(220px, 34vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: storyOrbit 18s linear infinite;
}

.story-atmosphere span:nth-child(1) {
  top: -18%;
  right: -9%;
}

.story-atmosphere span:nth-child(2) {
  bottom: -28%;
  left: -8%;
  animation-duration: 24s;
  animation-direction: reverse;
}

.story-atmosphere span:nth-child(3) {
  top: 33%;
  left: 43%;
  width: 130px;
  opacity: 0.45;
  animation-duration: 12s;
}

.story-topbar {
  position: absolute;
  top: 1.5rem;
  right: clamp(1rem, 4vw, 4rem);
  left: clamp(1rem, 4vw, 4rem);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.story-brand {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-skip {
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.story-skip:hover {
  border-color: white;
  color: white;
}

.story-cover {
  display: grid;
  align-content: center;
  width: min(950px, 100%);
  min-height: calc(100svh - 230px);
  margin: 0 auto;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.story-kicker {
  margin: 0 0 1.25rem;
  color: #ef9a70;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: storyTextUp 0.8s 0.08s both;
}

.story-cover h1 {
  max-width: 900px;
  margin: 0 auto;
  color: white;
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-style: italic;
  letter-spacing: -0.03em;
  animation: storyTextUp 0.9s 0.16s both;
}

.story-cover-copy {
  max-width: 600px;
  margin: 1.75rem auto 2.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  animation: storyTextUp 0.9s 0.24s both;
}

.story-start,
.story-next {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 220px;
  padding: 0.95rem 1.2rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.story-start {
  justify-self: center;
  color: white;
  animation: storyTextUp 0.9s 0.32s both;
}

.story-start:hover {
  border-color: var(--coral);
  background: var(--coral);
}

.story-start span:last-child,
.story-next span:last-child {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.story-start:hover span:last-child,
.story-next:hover span:last-child {
  transform: translateX(5px);
}

.story-experience.is-started .story-cover {
  position: absolute;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(14px);
  pointer-events: none;
}

.story-deck {
  position: relative;
  width: min(1180px, 100%);
  min-height: clamp(570px, 66vh, 720px);
  margin: 0 auto;
}

.story-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateX(11%) rotateY(-4deg) scale(0.96);
  transform-origin: right center;
  cursor: pointer;
  transition:
    opacity 0.55s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.story-card:hover {
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.42);
}

.story-card:focus {
  outline: none;
}

.story-card:focus-visible {
  outline: 3px solid #ef9a70;
  outline-offset: 4px;
}

.story-card.is-active {
  opacity: 1;
  transform: translateX(0) rotateY(0) scale(1);
}

.story-card.is-leaving {
  opacity: 0;
  transform: translateX(-12%) rotateY(4deg) scale(0.96);
  transform-origin: left center;
}

.story-card.is-reversed .story-card-visual {
  order: 2;
}

.story-card.is-reversed .story-card-content {
  order: 1;
}

.story-card-visual {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--navy-soft);
  clip-path: inset(0 100% 0 0);
}

.story-card.is-reversed .story-card-visual {
  clip-path: inset(0 0 0 100%);
}

.story-card.is-active .story-card-visual {
  animation: storyImageReveal 0.9s 0.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.story-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 35, 52, 0.05), rgba(22, 35, 52, 0.36));
  pointer-events: none;
}

.story-card-visual img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-card.is-active .story-card-visual img {
  transform: scale(1);
}

.story-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(2.5rem, 5vw, 5rem);
}

.story-card-step {
  margin: 0 0 1.1rem;
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.story-card h2 {
  margin: 0 0 1.5rem;
  color: var(--navy);
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  font-style: italic;
}

.story-card-copy {
  max-height: 270px;
  padding-right: 0.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--coral) transparent;
}

.story-card-copy p,
.story-card-copy blockquote {
  margin: 0 0 1rem;
  color: #433e3a;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.78;
}

.story-card-copy blockquote {
  padding-left: 1.25rem;
  border-left: 2px solid var(--coral);
  font-style: italic;
}

.story-next {
  align-self: flex-start;
  margin-top: 1.5rem;
  border-color: var(--navy);
  color: var(--navy);
}

.story-next:hover {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.story-card-mark {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--coral);
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-display) !important;
  font-size: clamp(8rem, 22vw, 19rem);
  font-style: italic;
  line-height: 1;
}

.story-card-mark::before,
.story-card-mark::after {
  content: '';
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.story-card-mark::after {
  width: 42%;
}

.story-card.is-entering .story-card-content > *,
.story-card.is-entering .story-card-copy > * {
  opacity: 0;
  transform: translateY(24px);
}

.story-card.is-active .story-card-content > * {
  animation: storyTextUp 0.65s 0.3s both;
}

.story-card.is-active .story-card-content > :nth-child(2) {
  animation-delay: 0.38s;
}

.story-card.is-active .story-card-content > :nth-child(3) {
  animation-delay: 0.46s;
}

.story-card.is-active .story-card-content > :nth-child(4) {
  animation-delay: 0.54s;
}

.story-progress {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 1.5rem;
  left: clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.story-progress-label {
  min-width: 56px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-progress-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.story-progress-dot {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
  transition: width 0.35s ease, background-color 0.35s ease;
}

.story-progress-dot.is-past {
  background: rgba(255, 255, 255, 0.62);
}

.story-progress-dot.is-current {
  width: 52px;
  background: #ef9a70;
}

.story-floating-next {
  position: fixed;
  right: clamp(1rem, 4vw, 4rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--coral);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 14px 38px rgba(8, 17, 28, 0.35);
  cursor: pointer;
  max-width: calc(100vw - 2rem);
}

.story-floating-next span:last-child {
  font-size: 1.1rem;
}

.story-card .story-next {
  display: none;
}

.story-experience.is-completing {
  animation: storyStageFinish 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: none;
}

.story-full-content.is-revealing:not(.is-revealed) {
  opacity: 0;
  transform: translateY(50px);
}

.story-full-content.is-revealed {
  animation: storyFullReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes storyTextUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes storyImageReveal {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes storyOrbit {
  to { transform: rotate(360deg) scale(1.08); }
}

@keyframes storyStageFinish {
  0% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(48% 0 48% 0); }
}

@keyframes storyFullReveal {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .story-experience {
    min-height: calc(100svh - 143px);
    padding-top: 5.5rem;
  }

  .story-cover {
    min-height: calc(100svh - 285px);
  }

  .story-deck {
    min-height: min(790px, calc(100svh - 150px));
  }

  .story-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 38vh) 1fr;
  }

  .story-card.is-reversed .story-card-visual,
  .story-card.is-reversed .story-card-content {
    order: initial;
  }

  .story-card-visual img {
    min-height: 0;
  }

  .story-card-content {
    justify-content: flex-start;
    padding: clamp(1.5rem, 5vw, 2.5rem);
  }

  .story-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .story-card-copy {
    max-height: 180px;
  }

  .story-card-mark {
    min-height: 240px;
    font-size: 9rem;
  }

  .story-card .story-next {
    display: none;
  }

  .story-floating-next {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    max-width: calc(100vw - 2rem);
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .story-card .story-next {
    display: none;
  }

  .story-floating-next {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .story-topbar {
    top: 1rem;
  }

  .story-brand {
    display: none;
  }

  .story-skip {
    margin-left: auto;
    font-size: 0.62rem;
  }

  .story-cover h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .story-cover-copy {
    margin-top: 1.25rem;
  }

  .story-deck {
    min-height: 720px;
  }

  .story-card {
    grid-template-rows: 220px 1fr;
  }

  .story-card-content {
    padding: 1.4rem;
  }

  .story-card-step {
    margin-bottom: 0.6rem;
  }

  .story-card h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .story-card-copy {
    max-height: 190px;
  }

  .story-next {
    min-width: 0;
    width: 100%;
    margin-top: 1rem;
  }

  .story-progress {
    bottom: 1rem;
  }

  .story-progress-dot {
    width: 18px;
  }

  .story-progress-dot.is-current {
    width: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-atmosphere span {
    animation: none !important;
  }

  .story-card,
  .story-card-visual,
  .story-card-content > *,
  .story-full-content,
  .story-experience {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Končne mobilne preglasitve za uredniške in interaktivne podstrani. */
@media (max-width: 768px) {
  .editorial-masthead {
    min-height: 360px;
    padding: 4rem 1.1rem;
  }

  .editorial-chapter {
    padding: 3.75rem 1rem;
  }

  .editorial-chapter-inner {
    gap: 2rem;
  }

  .editorial-number {
    font-size: 6rem;
  }

  .editorial-events .carousel-image {
    height: min(112vw, 520px);
  }

  .editorial-events .carousel-text {
    padding: 1.5rem !important;
  }

  .story-experience {
    min-height: calc(100svh - 82px);
  }

  .story-cover {
    min-height: calc(100svh - 220px);
  }
}
