html {
    height: 100%;
}

body {
    min-height: 100%;
    background-color: rgb(246, 246, 246);
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.wrapper {
    width: min(75%, 1400px);
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

/* HEADER */

.header-top {
    width: 100%;
    height: 3.5rem;
    background-color: rgb(233, 165, 37);
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.telefonska {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.telefonska a {
  color: inherit;
  text-decoration: none;
}

.lang {
    display: flex;
    justify-content: right;
    align-items: center;
    margin-left: auto;
    gap: 0.9rem;
}

.flag {
    height: 1.35rem;
    width: auto;
    display: inline-block;
    margin-left: 0;
}

.flag-current {

    align-items: center;
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}

.lang a {
    color: black;
    text-decoration: none;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease;
}

.instagram-link:hover {
    color: white;
    transform: translateY(-1px);
}


/* NAVIGACIJSKI MENU */

.header-nav {
    background-color: white;
    position: relative;
    z-index: 1000;
}

.navbar-container {
    width: 90%;    
    margin: 0 auto;
    position: relative;
    display:flex;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 0 2rem;
    height: 7rem;
}

.logo {
    height: 7rem;
    width: auto;
    display: block;
}

.nav-toggle{
    display:none;
    font-size:28px;
    background:none;
    border:none;
    cursor:pointer;
}

.navbar{
    display: flex;
    flex: 1;
    margin-left:5rem;
}


.navbar ul {
    display: flex;
    justify-content: space-between;
    flex: 1;
    list-style: none;
    padding: 0px;
    margin: 0px;
    overflow: visible;
    height: 100%;
    align-items: stretch;
}

.navbar ul li {
    display: flex;
    align-items: stretch;
}

.navbar a {
    color: black;
    text-decoration: none;
    padding: 2rem;
    font-size: 20px;
    letter-spacing: 1.3px;
    display: flex;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.navbar a:hover{
    color: rgb(239, 123, 0);
}

/* FOOTER */

.footer-base {
    left: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: black;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.footer-top{
  background-color: rgb(233, 165, 37);
  width: 100%;
}

.footer-top-container{
    padding: 1.5rem clamp(2rem, 6vw, 6rem);
    box-sizing: border-box;

    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: start;
    column-gap: 2rem;
    width: 100%;
    margin: 0 auto;

    position: relative;
}

.footer-kontakt{
  justify-self: start;
}
.footer-kontakt ul{
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-kontakt li{
    margin: .4rem 0;
    color: black;
}

.footer-kontakt a {
    color: inherit;
    text-decoration: none;
}

.footer-kontakt .fa{
  margin-right: .5rem;
}

.footer-navigation {
    justify-self: center;
    display: flex;
    gap: 3rem;
    padding: 0;
    min-width: 0;
}

.footer-navigation ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-navigation li {
    margin: 0.4rem 0;
}

.footer-navigation a {
    color: white;
    text-decoration: none;
}

.footer-social{
  justify-self: end;
  text-align: left;
}

.footer-title{
  margin: 0 0 0.7rem 0;
  color: rgb(0, 0, 0);
  font-weight: 600;
}

.footer-social a{
  display: block;
  margin: 0.4rem 0;
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.footer-social .fa{
  margin-right: 0.45rem;
}

.footer-bottom {
    height: 3.5rem;
    background-color: rgb(181, 118, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer-disclaimer {
    text-align: right;
}

/* INDEX.PHP */

/* HERO */
.home-hero{
  position: relative;
  width: 100%;
  height: clamp(520px, 60vh, 760px);
  overflow: hidden;
}

.home-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.55) 28%,
    rgba(0,0,0,0.20) 55%,
    rgba(0,0,0,0.00) 75%
  );
}

.home-hero-content{
  position: relative;
  height: 100%;
  width: min(75%, 1200px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #fff;
  font-family: 'Inter', sans-serif;
}

.home-hero-dobrodosli{
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin-bottom: 0.4rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.home-hero-title{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 500;
    font-size: clamp(3.2rem, 6vw, 5.6rem);
    line-height: 1.02;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.home-hero-subtitle{
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.35;
    margin: 0 0 1.6rem 0;
    color: rgba(255,255,255,0.92);
    max-width: 28ch;
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.home-hero-subtitle b{
    font-weight: 700;
    color: #fff;
}

.home-hero-actions{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.home-hero-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 120px;
    height: 56px;
    padding: 0 1.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;

    border-radius: 999px;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.home-hero-btn:hover{
    transform: translateY(-2px);
}

.home-hero-btn-primary{
    color: #111;
    background: linear-gradient(
        135deg,
        rgba(243, 161, 26, 0.95),
        rgba(222, 144, 0, 0.92)
    );
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.home-hero-btn-primary:hover{
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

.btn-arrow{
    margin-left: 0.1rem;
    font-size: 1.1rem;
    font-weight: 2px;
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
}

.home-hero-btn:hover .btn-arrow{
    transform: translateX(4px);
}

.home-hero-btn-ghost{
    color: #fff;
    background: rgba(40, 40, 40, 0.366);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.home-hero-btn-ghost:hover{
    background: rgba(40,40,40,0.52);
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

.home-hero{ margin-bottom: 1.5rem; }


.home-hero-content .hero-reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    filter: blur(10px);
    will-change: transform, opacity, filter;
}

body.hero-ready .home-hero-content .hero-reveal {
    animation: heroReveal 2.5s cubic-bezier(.22,.61,.36,1) forwards;
}

body.hero-ready .home-hero-content .hero-reveal-1 {
    animation-delay: 0.25s;
}

body.hero-ready .home-hero-content .hero-reveal-2 {
    animation-delay: 0.5s;
}

body.hero-ready .home-hero-content .hero-reveal-3 {
    animation-delay: 0.82s;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(34px) scale(0.985);
        filter: blur(10px);
    }

    55% {
        opacity: 1;
        transform: translateY(-4px) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

main {
    flex: 1;
}
.home-row {
    display: grid;
    gap: 3.35rem;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    padding: 3.25rem 0;
}

.home-divider {
    position: relative;
    padding: 3.25rem 0;
}

.home-divider::before,
.home-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.08);
}

.home-row:first-of-type::before{
    display:none;
}

.home-row-top {
    grid-template-columns: 1.15fr 0.9fr;
}

.home-row-bottom {
    grid-template-columns: 0.9fr 1.15fr;
    align-items: start;
}

.home-static-title {
    text-align: left;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding: 0;
}

.home-section-slogan {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgb(201, 129, 12);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.home-intro-card {
    padding: 0rem 0.5rem 0rem 0;
}


.home-notifications {
    padding-top: 0.2rem;
}

.home-intro-card h2 {
    margin: 0 0 1rem 0;
    font-size: 2.7rem;
    line-height: 1.15;
    color: rgb(28,22,16);
}

.home-intro-card p {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgb(78,67,53);
    max-width: 40ch;
}

.home-notifications,
.home-galleries-section,
.home-events-section {
    min-width: 0;
}



.home-news-item {
    display: block;
    text-decoration: none;
    color: black;
    background: white;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.home-news-title {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.home-news-meta {
    font-size: 0.95rem;
    color: #666;
}

.home-section-action {
    text-align: center;
    margin-top: 1.25rem;
}

.home-offer-section{
    padding: 0;
    margin: 0;
}

.home-offer-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 3rem;
}

.home-intro-card h2,
.home-offer-title {
    margin: 0 0 1.5rem 0;
    font-size: 2.7rem;
    line-height: 1.15;
    color: rgb(28,22,16);
}

.home-intro-card p,
.home-offer-item {
    font-size: 1.25rem;
    line-height: 1.7;
}

.home-offer-item {
    display: flex;
    align-items: flex-start;
    color: rgb(78,67,53);
}

.home-offer-item::before {
    content: "•";
    color: rgb(239,123,0);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-right: 0.55rem;
    margin-top: 0;
}

.home-offer-item:hover{
    background: rgba(239,123,0,0.06);
    transform: translateX(3px);
}

.home-galleries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.home-galleries:has(.home-gallery-card:only-child) {
    grid-template-columns: 1fr;
    justify-items: center;
}

.home-galleries:has(.home-gallery-card:only-child) .home-gallery-card {
    max-width: 420px;
    width: 100%;
}

.home-gallery-card {
    display:block;
    text-decoration:none;
    color:black;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.07);
    transition:transform .18s ease, box-shadow .18s ease;
}

.home-gallery-card:hover {
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(0,0,0,0.12);
}

.home-gallery-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.home-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-gallery-caption {
    padding:0.9rem 1rem;
    font-weight:600;
    font-size:1rem;
    background:#fff;
}

.home-events-section .home-section-title,
.home-galleries-section .home-section-title {
    margin-bottom: 1rem;
}

.home-events-section .home-event {
    margin-bottom: 1rem;
}

@media (max-width: 1100px) {
    .home-row-top,
    .home-row-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-intro-card {
        padding: 1.6rem 1.35rem;
    }

    .home-intro-card h2 {
        font-size: 2rem;
    }

    .home-intro-card p {
        font-size: 1.05rem;
    }

    .home-static-title {
        font-size: 1.55rem;
        text-align: center;
    }

    .home-galleries {
        grid-template-columns: 1fr;
    }

    .home-section-action {
        margin-top: 1rem;
    }
}

.home-section-title {
    text-align:center;
    font-weight:500;
    font-size:1.3rem;

    padding:0.7rem 0;

    background:transparent;
}

.home-section-title.home-static-title {
    margin: 0 0 1.5rem 0;
}

.home-gallery-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(0,0,0,0.12);
}

.home-event-day{
    font-size:1.4rem;
    font-weight:700;
    line-height:1;
}

.home-event-month{
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 1px;
    margin-top: 0.15rem;
}

.home-news {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-event-content{
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.home-event-title{
    font-size:1.15rem;
    font-weight:600;
    color:black;
    text-decoration:none;
}

.home-event-meta{
    font-size:0.9rem;
    color:#666;
}

.dogodki .home-section-title{
    flex: 1.5;
    margin-bottom: 1rem;
}

.dogodki {
  flex: 2;
  padding-left: 1rem;
}

.home-event{
    display: flex;
    gap: 1rem;
    align-items: center;

    background: #fff;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;

    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);

    text-decoration: none;
    color: inherit;

    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-event:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}


.home-event-datebox{
    width: 64px;
    height: 64px;

    background:linear-gradient(
        135deg,
        rgb(239,123,0),
        rgb(222,144,0)
    );
    color: white;

    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.home-contact-banner {
    position: relative;
    width: 100%;
    height: clamp(260px, 35vh, 380px);
    overflow: hidden;
    margin-top: 3rem;
}

.home-contact-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-contact-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-contact-banner-content {
    text-align: center;
    color: rgb(255, 255, 255);
    font-family: 'Inter', sans-serif;
    padding: 1rem;
}

.home-contact-banner-text {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.home-contact-banner-phone a {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: rgb(255, 255, 255);
    text-decoration: none;
    letter-spacing: 1px;
}

.home-contact-banner-phone a:hover {
    text-decoration: underline;
}



/* SPECIFIČNE ZA STRANI */

.page-hero {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.events .page-hero {
    background-image: url('/images/jedilnica\ shrink.jpg');
}

.past-events .page-hero {
    background-image: url('/images/jedilnica\ shrink.jpg');
}

.opis .page-hero {
    background-image: url('/images/vhod_shrink.jpg');
}

.galerija .page-hero {
    background-image: url('/images/domdanica.jpg');
}

.obvestila .page-hero {
    background-image: url('/images/hodnik.jpg');
}

.page-hero h1 {
    font-size: 6rem;
    color: white;
    margin: 0;

    text-shadow: 0 0 20px rgba(0,0,0,0.7);
    letter-spacing: 2px;
}

/* EVENTS.PHP */

.events-empty {
    text-align: center;
    font-size: 1.15rem;
    margin: 2rem 0 2.5rem 0;
    color: #333;
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.event-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.event-card img {
    width: 400px;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-info {
    display: flex;
    flex-direction: column;
    justify-content: start;
    flex: 1;
    min-width: 0;
}

.event-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 3.5rem;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-clamp: 2;
    overflow: hidden;
}

.event-info a:link {
    text-decoration: none;
    color: black;
}

.event-info a:visited {
    text-decoration: none;
    color: black;
}

.event-excerpt {
    margin: 0.4rem 0 0.6rem 0;
    font-size: 1.5rem;
    color: #555;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    
    line-clamp: 2;
    overflow: hidden;
}

.event-meta {
    font-size: 1.25rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;

    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;

    color: #2a1a00;

    background: rgba(255, 190, 90, 0.18);
    border: 1px solid rgba(222,144,0,0.35);

    border-radius: 8px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 6px 20px rgba(0,0,0,0.15),
        inset 0 0 0 1px rgba(255,255,255,0.25);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.btn:hover {
    background: rgba(255, 190, 90, 0.28);
    border-color: rgba(222,144,0,0.6);

    transform: translateY(-2px);

    box-shadow:
        0 10px 28px rgba(0,0,0,0.22),
        0 0 12px rgba(222,144,0,0.25);
}

.album-back{
  text-align: center;
  margin-top: 2rem;
}

/* EVENT.PHP */

.single-event {
    background: white;
    padding: 2rem;
}

.single-event-title {
    margin: 0 0 0.75rem 0;
    text-align: left;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.single-event-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    flex-wrap: wrap;
}

.single-event-date {
    color: #333;
    font-weight: 600;
}

.single-event-time {
    color: rgb(239, 123, 0);
    font-weight: 700;
}

.single-event-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    align-items: start;
}

.single-event-image-wrap {
    width: 100%;
}

.single-event-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.single-event-content p {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.75;
    color: #333;
    text-align: left;
}

@media (max-width: 1000px) {
    .single-event-layout {
        grid-template-columns: 1fr;
    }

    .single-event-title {
        font-size: 2.2rem;
    }

    .single-event-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .single-event {
        padding: 1.25rem;
    }

    .single-event-title {
        font-size: 1.8rem;
    }

    .single-event-meta {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
}

/* GALERIJA.PHP */
.gallery-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-box {
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.3s ease;
    background: rgba(0,0,0,0.25);
}

.gallery-box:hover {
    transform: scale(1.08);
}

.gallery-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}   

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.gallery-box:hover .gallery-thumb img {
    opacity: 1;
}

.gallery-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center;
    width: 100%;

    padding: 0.5rem 1rem;
    font-size: 2.5rem;
    font-weight: bold;

    color: white;
    text-shadow: 0 0 10px black;
}


/* ALBUM.PHP */
.album-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.gallery-photo{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 1200px) {
    .gallery-grid { column-count: 3; }
}

@media (max-width: 800px) {
    .gallery-grid { column-count: 2; }
}

@media (max-width: 500px) {
    .gallery-grid { column-count: 1; }
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.08);
}

.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.is-open{
    display: flex;
}

.lightbox-img{
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    object-fit: contain;
    display: block;
    z-index: 10000;
}

.lightbox-close{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    z-index: 10002;
}

.lightbox-close:hover{
    background: rgba(255,255,255,0.18);
}

.lightbox-nav{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12%;
    min-width: 64px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 64px;
    cursor: pointer;
    opacity: 0.9;
    z-index: 10001;
}

.lightbox-prev{
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0));
}

.lightbox-next{
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.35), rgba(0,0,0,0));
}

.lightbox-nav:hover{
    opacity: 1;
}

@media (max-width: 520px){
    .lightbox-nav{ width: 18%; font-size: 52px; }
}



/* KONTAKT */
.kontakt-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
}

.kontakt-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: brightness(90%);
    object-fit: cover;
}

.kontakt-hero-content {
    position: relative;
    z-index: 2;

    max-width: 900px;
    margin: 0 auto;

    padding-top: 4rem;
    padding-bottom: 4rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.kontakt-hero-content h1 {
    color: white;
    font-size: 6rem;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    margin-bottom: 2rem;
}

.kontakt-card {
    display: flex;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    background: white;
    font-family: 'Inter', sans-serif;
}

.kontakt-values {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.kontakt-label {
    background: orange;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 35%;

    clip-path: polygon(
        0 0,
        90% 0,
        100% 100%,
        0 100%
    );
}

@media (min-width: 768px) {
    .kontakt-card {
        height: 100px;
    }
}

.kontakt-value {
    background: white;
    color: black;
    font-size: 1.3rem;

    display: flex;
    align-items: center;
    padding-left: 3rem;

}


.kontakt-value a {
    color: black;
    text-decoration: none;
}

.kontakt-info {
    padding: 3rem 0 2rem 0;
}

.kontakt-box {
    position: relative;
    padding: 3rem 3.25rem;
    margin-bottom: 2rem;
    border-radius: 18px;

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.06),
        0 1px 0 rgba(255,255,255,0.65) inset;

    text-align: center;
    overflow: hidden;
}

.kontakt-box h2 {
    margin: 0 0 1rem 0;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.kontakt-box p {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.7;
    color: rgba(20,20,20,0.86);
}


.kontakt-box::before {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    margin: 0 auto 1.4rem auto;
}

.kontakt-box-hours {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.72),
            rgba(255,255,255,0.28)
        ),
        linear-gradient(
            135deg,
            rgba(248, 229, 201, 0.95),
            rgba(241, 209, 162, 0.82)
        );
}

.kontakt-box-hours::before {
    background: linear-gradient(
        90deg,
        rgba(222,144,0,0.95),
        rgba(243,161,26,0.7)
    );
}

.kontakt-box-location {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.78),
            rgba(255,255,255,0.34)
        ),
        linear-gradient(
            135deg,
            rgba(236, 241, 236, 0.95),
            rgba(218, 229, 220, 0.88)
        );
}

.kontakt-box-location::before {
    background: linear-gradient(
        90deg,
        rgba(126, 154, 129, 0.95),
        rgba(167, 188, 170, 0.7)
    );
}

.kontakt-map {
    padding: 0rem 0;
}

.kontakt-map iframe {
    width: 100%;
    height: 850px;
    border: none;
}


/* ADMINISTRATOR */

.footer-login-container {
    position: absolute;
    right: clamp(1rem, 2vw, 2rem);
    bottom: 1rem;
    margin: 0;
    min-width: 0;
    top: auto;
    transform: none;
}

/* Login button */
.footer-login-btn,
.footer-admin-btn {
    padding: 0.4rem 1rem;
    background-color: #444;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Dropdown */
.footer-login-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);

    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    width: min(320px, 90vw);
    max-width: 90vw;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: none;
    z-index: 10000;
}

.footer-login-dropdown form{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-login-dropdown input {
    padding: 0.55rem 0.65rem;
    margin: 0;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.footer-login-dropdown button {
    padding: 0.4rem;
    box-sizing: border-box;
}

/* KOLEDAR */

.calendar-section {
    margin: 3.5rem 0 0 0;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.calendar-container {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 2rem 2rem 2.2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.calendar-header {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    text-transform: capitalize;
}

.calendar-nav-btn {
    height: 38px;
    width: 38px;
    border-radius: 12px;
    background: rgba(222, 144, 0, 0.92);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background .15s ease, transform .15s ease;
}

.calendar-nav-btn:hover {
    background: rgb(239, 123, 0);
    transform: translateY(-1px);
}

#monthPicker {
    margin-bottom: 1.2rem;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    background: rgb(250,250,250);
    font-family: 'Inter', sans-serif;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.calendar-weekdays div {
    font-size: 0.92rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.calendar-empty {
    min-height: 86px;
}

.calendar-day {
    position: relative;
    background: rgb(245,245,245);
    padding: 0.5rem;
    min-height: 86px;
    box-sizing: border-box;
    text-align: center;

    display: grid;
    grid-template-rows: auto 1.4rem;
    align-content: start;
    row-gap: 0.35rem;

    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.calendar-day-number {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 0.15rem;
}

.calendar-event-title {
    font-size: 0.82rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1em;
}

.calendar-day.has-event {
    background: rgba(222, 144, 0, 0.92);
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.calendar-day.has-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.calendar-day.today {
    background: rgb(251, 248, 241);
}

.calendar-day.today::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    height: 4px;
    border-radius: 999px;
    background: rgba(222, 144, 0, 0.92);
}

.calendar-day.today.has-event::before {
    background: rgba(255,255,255,0.95);
}

/* POPUP */

body.modal-open {
    overflow: hidden;
}

.calendar-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.calendar-modal.is-open {
    display: block;
}

.calendar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.calendar-modal-box {
    position: relative;
    width: min(92vw, 520px);
    margin: 10vh auto 0 auto;
    background: white;
    border-radius: 18px;
    padding: 1.6rem 1.4rem 1.2rem 1.4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    z-index: 2;
}

.calendar-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(0,0,0,0.06);
    color: #222;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.calendar-modal-close:hover {
    background: rgba(0,0,0,0.1);
}

.calendar-modal-box h3 {
    margin: 0 2.5rem 1rem 0;
    font-size: 1.65rem;
    text-align: left;
}

.calendar-modal-event {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgb(248,248,248);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 0.95rem 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    overflow: hidden;
}

.calendar-modal-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    background: rgb(251,248,241);
}

.calendar-modal-event-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.calendar-modal-event-meta {
    font-size: 0.95rem;
    color: rgb(239, 123, 0);
    font-weight: 600;
}

@media (max-width: 900px) {
    .calendar-container {
        padding: 1.25rem;
    }

    .calendar-header h2 {
        font-size: 1.5rem;
    }

    .calendar-grid,
    .calendar-weekdays {
        gap: 0.4rem;
    }

    .calendar-day,
    .calendar-empty {
        min-height: 76px;
    }

    .calendar-day {
        padding: 0.35rem;
    }

    .calendar-event-title {
        font-size: 0.72rem;
    }

    .calendar-weekdays div {
        font-size: 0.78rem;
    }

    .calendar-modal-box h3 {
        font-size: 1.35rem;
    }
}


/* OPIS.PHP */

.opis-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.opis-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 5rem 0;
}

.opis-text {
    flex: 1 1 0;
}

.opis-text p {
    font-size: 1.4rem;
    line-height: 1.6;
}

.opis-image {
    flex: 1;
}

.opis-image:not(.opis-carousel) img{
  width: 100%;
  height: auto;
  display: block;
}

.opis-row:nth-child(even) {
    flex-direction: row-reverse;
}

.opis-carousel{
  position: relative;
}

.carousel-stage {
    position: relative;
    width: 100%;
    height: clamp(280px, 35vw, 400px);
    overflow: hidden;
    background: #000;
}

.carousel-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
  display: block;
}

.carousel-img.is-active{
  opacity: 1;
}

.vsi-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  font-size: 1.3rem;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.00) 100%
  );

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;

  z-index: 3;
  pointer-events: none;
}

.vsi-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.carousel-btn{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  z-index: 2;
}

.carousel-btn.prev{ left: 0; }
.carousel-btn.next{ right: 0; }

.carousel-btn.prev{
  background: linear-gradient(to right, rgba(0,0,0,0.45), rgba(0,0,0,0));
}
.carousel-btn.next{
  background: linear-gradient(to left, rgba(0,0,0,0.45), rgba(0,0,0,0));
}   

.carousel-btn::before{
    content: attr(data-arrow);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.9;
}

.carousel-btn.prev::before{ left: 18px; }
.carousel-btn.next::before{ right: 18px; }

.carousel-btn{
  opacity: 0.85;
  transition: opacity 150ms ease;
}
.opis-carousel:hover .carousel-btn{
  opacity: 1;
}

@media (max-width: 900px) {
    .opis-row {
        flex-direction: column;
        text-align: left;
    }

    .opis-row:nth-child(even) {
        flex-direction: column;
    }
}

/* FORME */

.form-wide {
    max-width: 800px;   /* controls overall form width */
}

.form-wide input[type="text"],
.form-wide input[type="date"],
.form-wide input[type="time"],
.form-wide textarea,
.form-wide input[type="file"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-wide textarea {
    min-height: 180px;
    resize: vertical;
}

/* OBVESTILA.PHP */

.single-obvestilo-content p {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.75;
    color: #333;
    text-align: left;
}

@media (max-width: 1000px) {
    .single-obvestilo-content p {
        font-size: 1.2rem;
    }
}

/* MOBILE */

@media (max-width: 1000px) {

    .wrapper{
        max-width:100%;
        padding:0 0.85rem;
    }

    .nav-toggle,
    .navbar a,
    .home-hero-btn,
    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle:focus,
    .nav-toggle:active,
    .nav-toggle:focus-visible {
        outline: none;
        box-shadow: none;
    }

    /* MOBILE NAVBAR */

    .header-top {
        height: 3rem;
    }

    .telefonska {
        font-size: 1rem;
        gap: 0.35rem;
    }

    .flag {
        height: 1rem;
    }

    .header-container {
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .lang {
        gap: 0.7rem;
    }

    .instagram-link {
        font-size: 1.3rem;
    }
    

    .header-nav {
        box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }

    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .logo {
        order:1;
        height: 4.5rem;
    }

    .nav-toggle {
        order: 2;
        display: block;
        margin-left: auto;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.4rem 0.6rem;
        line-height: 1;
        z-index: 1002;
    }

    .navbar {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        margin-left: 0;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: white;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 14px 30px rgba(0,0,0,0.12);

        z-index: 1001;
        height: auto;
    }

    .navbar ul.show {
        display:flex;
    }

    .navbar ul li {
        display: block;
    }

    .navbar a {
        display: block;
        padding: 1.1rem 1.25rem;
        font-size: 1.05rem;
        text-align: left;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* MOBILE HOME */

    .home-hero {
        height: clamp(460px, 65vh, 600px);
        position: relative;
        z-index: 1;
    }

    .home-hero-content {
        width: 100%;
        padding: 2.5rem 1.2rem;
    }

    .home-hero-dobrodosli {
        font-size: 1.1rem;
    }

    .home-hero-title {
        font-size: 2.6rem;
        line-height: 1.05;
    }

    .home-hero-subtitle {
        font-size: 1.05rem;
        max-width: 18ch;
        margin-bottom: 1.25rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .home-hero-btn {
        width: auto;
        justify-content: center;
    }

    .home-row {
        gap: 1.25rem;
        margin-top: 1rem;
        margin-bottom: 1.25rem;
    }

    .home-notifications,
    .home-events-section,
    .home-galleries-section {
        min-width: 0;
    }

    .home-section-slogan {
        text-align: center;
    }

    .home-intro-card,
    .home-notifications {
        text-align: center;
    }

    .home-intro-card p {
        margin-left: auto;
        margin-right: auto;
    }

    .home-intro-card .btn,
    .home-notifications .btn {
        margin-left: auto;
        margin-right: auto;
    }

    .home-news-item {
        text-align: left;
    }

    .home-news-item,
    .home-event,
    .home-gallery-card {
        border-radius: 12px;
    }

    .home-news-item {
        padding: 0.9rem 1rem;
        margin-bottom: 0.75rem;
    }

    .home-news-title {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .home-news-meta {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .home-events-section .home-section-title,
    .home-galleries-section .home-section-title,
    .home-notifications .home-static-title {
        margin-bottom: 0.85rem;
    }

    .home-news-title,
    .home-event-title,
    .home-gallery-caption {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .home-offer-section {
        text-align: center;
    }

    .home-offer-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .home-offer-item {
        justify-content: center;
        text-align: center;
        display: block;
    }

    .home-offer-item::before {
        display: inline;
        margin-right: 0.35rem;
    }

    .home-intro-card h2,
    .home-offer-title {
        font-size: 2rem;
    }

    .home-intro-card p,
    .home-offer-item {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .home-offer-item::before {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .home-event {
        padding: 0.9rem 1rem;
        gap: 0.85rem;
        margin-bottom: 0.75rem;
        align-items: center;
    }

    .home-event-datebox {
        width: 58px;
        height: 58px;
        border-radius: 10px;
    }

    .home-event-day {
        font-size: 1.25rem;
    }

    .home-event-month {
        font-size: 0.72rem;
    }

    .home-event-title {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .home-event-meta {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .home-galleries {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .home-gallery-thumb {
        aspect-ratio: 16 / 9;
        max-height: 220px;
    }

    .home-gallery-caption {
        padding: 0.85rem 0.95rem;
        font-size: 1rem;
        line-height: 1.3;
    }


    .home-section-title {
        font-size: 1.25rem;
        padding: 0.45rem 0;
    }

    .home-section-action {
        margin-top: 0.8rem;
    }

    .home-section-action .btn {
        width: auto;
        min-width: 145px;
        padding: 0.75rem 1.2rem;
        font-size: 0.95rem;
    }

    .home-intro-card {
        padding: 1.2rem 0.1rem 0.4rem 0.1rem;
        border-bottom: none;
    }

    .home-section-slogan {
        font-size: 0.82rem;
        margin-bottom: 0.55rem;
    }

    .home-intro-card h2 {
        font-size: 1.75rem;
        line-height: 1.15;
        margin-bottom: 0.8rem;
    }

    .home-intro-card p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 1.1rem;
    }

    /* MOBILE FOOTER */

    .footer-top-container {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .footer-kontakt,
    .footer-navigation,
    .footer-social,
    .footer-login-container {
        justify-self: center;
    }

    .footer-kontakt ul,
    .footer-navigation ul {
        text-align: center;
    }

    .footer-kontakt li {
        font-size: 0.95rem;
        line-height: 1.45;
        margin: 0.45rem 0;
    }

    .footer-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-navigation li {
        margin: 0.35rem 0;
    }

    .footer-navigation a {
        font-size: 1rem;
    }

    .footer-social {
        text-align: center;
    }

    .footer-login-container {
        position: static;
        right: auto;
        bottom: auto;
        margin-top: 0.5rem;
    }

    .footer-bottom{
        flex-direction: column;
        height: auto;
        padding: 0.7rem 1rem;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.8rem;
    }

    .footer-disclaimer{
        order: -1;
        text-align: center;
    }

    .trademark {
        width: 100%;
        margin: 0 auto;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* MOBILE KONTAKT */

    .kontakt-hero {
        min-height: auto;
    }

    .kontakt-hero-content {
        padding: 2rem 1rem 3rem 1rem;
        gap: 1rem;
    }

    .kontakt-hero-content h1 {
        font-size: 3.3rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .kontakt-card {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0.75rem auto;
        overflow: hidden;
    }

    .kontakt-label {
        width: 100%;
        clip-path: none;
        padding: 0.9rem 1rem;
        font-size: 1.2rem;
    }

    .kontakt-values,
    .kontakt-value {
        width: 100%;
    }

    .kontakt-values {
        gap: 0;
    }

    .kontakt-value {
        padding: 0.9rem 1rem;
        font-size: 1.15rem;
        justify-content: center;
        text-align: center;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .kontakt-value a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .kontakt-info {
        padding: 2rem 0 1rem 0;
    }

    .kontakt-box {
        padding: 2rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .kontakt-box h2 {
        font-size: 1.75rem;
    }

    .kontakt-box p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .kontakt-map iframe {
        height: 420px;
    }

    /* MOBILE OPIS */

    .opis .page-hero {
        height: 220px;
    }

    .opis .page-hero h1 {
        font-size: 2.6rem;
        letter-spacing: 1px;
        text-align: center;
    }

    .opis-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .opis-row {
        flex-direction: column;
        gap: 1.25rem;
        margin: 2rem 0;
        text-align: left;
    }

    .opis-row:nth-child(even) {
        flex-direction: column;
    }

    .opis-text,
    .opis-image {
        width: 100%;
    }

    .opis-text p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin: 0;
    }

    .carousel-stage {
        height: clamp(220px, 56vw, 300px);
        border-radius: 12px;
    }

    .carousel-btn {
        width: 16%;
        min-width: 52px;
    }

    .carousel-btn::before {
        font-size: 34px;
    }

    .carousel-btn.prev::before {
        left: 12px;
    }

    .carousel-btn.next::before {
        right: 12px;
    }

    /* MOBILE GALERIJA */

    .page-hero {
        height: clamp(140px, 22vh, 240px);
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .gallery-list {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .gallery-box {
        border-radius: 12px;
        overflow: hidden;
    }

    .gallery-thumb {
        aspect-ratio: 16 / 9;
    }

    .gallery-title {
        font-size: 1.4rem;
        padding: 0.5rem 0.8rem;
        text-align: center;
        line-height: 1.25;
    }

    .gallery-box:hover {
        transform: none;
    }

    .gallery-box:hover .gallery-thumb img {
        opacity: 0.9;
    }

    .single-event-title {
        font-size: 1.9rem;
    }

    /* MOBILE EVENTS */

    .event-info h3 {
        font-size: 2rem;
    }

    .event-excerpt {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .events .wrapper {
        margin-top: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .events .page-hero h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
        line-height: 1.05;
        letter-spacing: 1px;
        text-align: center;
        max-width: none;
        padding: 0 1rem;
    }

    .event-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .event-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .event-info {
        width: 100%;
    }

    .event-info h3 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin: 0 0 0.5rem 0;
    }

    .event-excerpt {
        font-size: 1rem;
        line-height: 1.55;
        margin: 0.3rem 0 0.6rem 0;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .event-meta {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .events-empty {
        font-size: 1.1rem;
        margin: 2rem 0;
    }

    /* MOBILE KOLEDAR */

 .calendar-section {
        overflow-x: hidden;
    }

    .calendar-container {
        max-width: 100%;
        padding: 1rem;
    }

    .calendar-header {
        grid-template-columns: 36px 1fr 36px;
        gap: 0.5rem;
    }

    .calendar-header h2 {
        font-size: 1.2rem;
        min-width: 0;
    }

    .calendar-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    #monthPicker {
        width: 100%;
        max-width: 220px;
        font-size: 0.95rem;
    }

    .calendar-grid,
    .calendar-weekdays {
        gap: 0.25rem;
    }

    .calendar-weekdays div {
        font-size: 0.7rem;
        letter-spacing: 0.2px;
        min-width: 0;
    }

    .calendar-day,
    .calendar-empty {
        min-height: 64px;
    }

    .calendar-day {
        min-width: 0;
        padding: 0.3rem 0.2rem;
    }

    .calendar-day-number {
        font-size: 0.95rem;
    }

    .calendar-event-title {
        font-size: 0.65rem;
        line-height: 1.1;
        min-width: 0;
    }
}

@media (max-width: 1380px) {
    .header-nav {
        box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }

    .navbar-container {
        width: 100%;
        height: 5rem;
        padding: 0 2rem;
        box-sizing: border-box;
        justify-content: space-between;
    }

    .logo {
        height: 4.5rem;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.4rem 0.6rem;
        line-height: 1;
        z-index: 1002;
    }

    .navbar {
        flex: 0;
        width: 100%;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: white;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 14px 30px rgba(0,0,0,0.12);

        z-index: 1001;
        height: auto;
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar ul li {
        display: block;
    }

    .navbar a {
        display: block;
        padding: 1.1rem 1.25rem;
        font-size: 1.05rem;
        text-align: left;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    
    .home-hero-content {
        align-items: center;
        text-align: center;
    }

    .home-hero-subtitle {
        max-width: 28ch;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }
}


