/* Villa Fiore — predložak (Joomla 5) */
:root {
	--vf-kamen: #f7f3ec;
	--vf-papir: #fffdf9;
	--vf-tinta: #2b2a26;
	--vf-siva: #6b675e;
	--vf-maslina: #3f4a2a;
	--vf-maslina-svijetla: #6b7a3a;
	--vf-terakota: #b5583a;
	--vf-linija: #e4ddd0;
	--vf-sirina: 72rem;
	--vf-tekst: 44rem;
	--vf-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--vf-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--vf-radijus: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--vf-kamen);
	color: var(--vf-tinta);
	font: 400 1.0625rem/1.7 var(--vf-sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vf-maslina); text-underline-offset: .18em; }
a:hover { color: var(--vf-terakota); }
h1, h2, h3, h4 { font-family: var(--vf-serif); font-weight: 400; line-height: 1.2; color: var(--vf-maslina); margin: 2.2rem 0 .8rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.45rem; }
p, ul, ol { margin: 0 0 1.1rem; }
.visually-hidden, .vf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vf-preskoci { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.vf-preskoci:focus { left: 1rem; }

/* zaglavlje */
.vf-zaglavlje { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; }
.vf:not(.vf-ima-hero) .vf-zaglavlje { position: relative; background: var(--vf-maslina); }
.vf-zaglavlje__unutra { max-width: var(--vf-sirina); margin: 0 auto; padding: 1rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.vf-logo img { width: 150px; height: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.vf-nav { display: flex; align-items: center; gap: 1.5rem; }
.vf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.vf-nav a { color: #fff; text-decoration: none; font-size: .95rem; letter-spacing: .04em; padding: .5rem .75rem; border-radius: var(--vf-radijus); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.vf-nav a:hover, .vf-nav .current > a, .vf-nav .active > a { background: rgba(255,255,255,.16); color: #fff; }
.vf-nav .mod-languages ul { gap: 0; }
.vf-nav .mod-languages a { font-size: .8rem; text-transform: uppercase; padding: .35rem .5rem; opacity: .8; }
.vf-nav .mod-languages .lang-active a { opacity: 1; font-weight: 600; background: rgba(255,255,255,.16); }
.vf-nav .mod-languages img { display: none; }
.vf-izbornik-gumb { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.vf-izbornik-gumb span:not(.vf-sr) { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* hero */
.vf-hero-omot { position: relative; height: 82vh; min-height: 420px; max-height: 900px; overflow: hidden; background: #26261f; color: #fff; }
.vf:not(.vf-naslovna) .vf-hero-omot { height: 56vh; min-height: 340px; }
.vf-hero { position: absolute; inset: 0; }
.vf-hero picture, .vf-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-hero picture { opacity: 0; transition: opacity 1.6s ease; }
.vf-hero picture.vf-aktivna, .vf-hero picture:only-child { opacity: 1; }
.vf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.vf-hero-tekst { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: var(--vf-sirina); margin: 0 auto; padding: 0 1rem 2.5rem; }
.vf-hero-ime { font: 400 clamp(2.6rem, 7vw, 5rem)/1 var(--vf-serif); margin: 0 0 .4rem; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.vf-hero-moto { margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .06em; opacity: .95; }
.vf:not(.vf-naslovna) .vf-hero-ime { font-size: clamp(2rem, 5vw, 3.2rem); }

/* sadržaj */
.vf-glavno { max-width: var(--vf-sirina); margin: 0 auto; padding: 3.5rem 1rem 2.5rem; }
.vf-glavno .com-content-article, .vf-glavno .contact, .vf-glavno > .alert { max-width: var(--vf-tekst); margin-left: auto; margin-right: auto; }
.vf-glavno .page-header h1, .vf-glavno .page-header h2 { margin-top: 0; }
.vf-uvod { font: 400 1.35rem/1.55 var(--vf-serif); color: var(--vf-maslina); }
.vf-slike2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.vf-slike3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.vf-slike2 img, .vf-slike3 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--vf-radijus); }
.vf-kartice { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.vf-kartica { background: var(--vf-papir); border: 1px solid var(--vf-linija); border-radius: var(--vf-radijus); padding: 1.25rem 1.4rem; }
.vf-kartica h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.vf-kartica ul { margin: 0; padding-left: 1.1rem; }
.vf-kartica li { margin-bottom: .3rem; }
.vf-cinjenice { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.vf-cinjenice li { background: var(--vf-papir); border: 1px solid var(--vf-linija); border-radius: 999px; padding: .35rem .9rem; font-size: .92rem; }
.vf-napomena { font-size: .95rem; color: var(--vf-siva); border-left: 3px solid var(--vf-terakota); padding-left: 1rem; }
.vf-gumb, .vf .btn-primary { display: inline-block; background: var(--vf-terakota); color: #fff; border: 0; border-radius: var(--vf-radijus); padding: .8rem 1.5rem; font: 600 1rem/1.2 var(--vf-sans); text-decoration: none; cursor: pointer; }
.vf-gumb:hover, .vf .btn-primary:hover { background: #984529; color: #fff; }
.vf-poziv { text-align: center; margin: 3rem 0 1rem; }
.vf-panorama { margin: 2rem calc(50% - 50vw); }
.vf-panorama img { width: 100vw; max-width: none; height: clamp(180px, 28vw, 420px); object-fit: cover; }
.vf-udaljenosti { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .5rem 1.5rem; }
.vf-udaljenosti li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--vf-linija); padding: .4rem 0; }
.vf-udaljenosti b { font-weight: 600; white-space: nowrap; }
.vf-karta { margin: 2rem 0; border-radius: var(--vf-radijus); overflow: hidden; border: 1px solid var(--vf-linija); background: #e9e4da; }
.vf-karta iframe { display: block; width: 100%; height: 420px; border: 0; }
.vf-karta p { margin: 0; padding: .6rem 1rem; font-size: .9rem; background: var(--vf-papir); }

/* galerija */
.vf-galerija { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; margin: 2rem 0; }
.vf-galerija a { display: block; overflow: hidden; border-radius: var(--vf-radijus); }
.vf-galerija img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.vf-galerija a:hover img { transform: scale(1.04); }
.vf-svjetlo { position: fixed; inset: 0; z-index: 200; background: rgba(15,15,12,.94); display: flex; align-items: center; justify-content: center; }
.vf-svjetlo[hidden] { display: none; }
.vf-svjetlo img { max-width: 94vw; max-height: 88vh; width: auto; border-radius: 2px; }
.vf-svjetlo button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.vf-svjetlo button:hover { background: rgba(255,255,255,.25); }
.vf-svjetlo .vf-zatvori { top: 1rem; right: 1rem; }
.vf-svjetlo .vf-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.vf-svjetlo .vf-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* video */
.vf-poslije { max-width: var(--vf-sirina); margin: 0 auto 3rem; padding: 0 1rem; }
.vf-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--vf-radijus); overflow: hidden; background: #000; }
.vf-video button { all: unset; cursor: pointer; position: absolute; inset: 0; }
.vf-video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vf-video button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(181,88,58,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 40px no-repeat; }
.vf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vf-video-napomena { font-size: .85rem; color: var(--vf-siva); margin-top: .5rem; }

/* kontakt obrazac */
.vf .contact .page-header, .vf .contact-category { display: none; }
.vf .contact-form legend { font: 400 1.6rem/1.2 var(--vf-serif); color: var(--vf-maslina); margin-bottom: 1rem; }
.vf .contact-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.vf .contact-form .control-group { margin-bottom: 1rem; }
.vf .contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.vf .contact-form input[type=text], .vf .contact-form input[type=email], .vf .contact-form input[type=number], .vf .contact-form input[type=date], .vf .contact-form textarea, .vf .contact-form select {
	width: 100%; padding: .7rem .8rem; font: inherit; border: 1px solid #cfc6b6; border-radius: var(--vf-radijus); background: #fff;
}
.vf .contact-form textarea { min-height: 9rem; }
.vf .contact-form input:focus, .vf .contact-form textarea:focus { outline: 2px solid var(--vf-maslina-svijetla); outline-offset: 1px; }
.vf .contact-form .form-check { display: flex; gap: .5rem; align-items: flex-start; }
.vf .contact-form .form-check label { font-weight: 400; }
.vf .contact-form .star { color: var(--vf-terakota); }
.vf .contact-form label.required, .vf .contact-form label { color: var(--vf-tinta); }
.vf .contact-address, .vf .com-contact__container dl { display: none; }
.vf .vf-kontakt-podaci { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.vf .alert { padding: 1rem 1.2rem; border-radius: var(--vf-radijus); background: #edf3e3; border: 1px solid #c8d7ad; margin-bottom: 1.5rem; }
.vf .alert-danger, .vf .alert-error, .vf .alert-warning { background: #fbece6; border-color: #e7b9a8; }
.vf joomla-alert { display: block; }

/* podnožje */
.vf-podnozje { background: var(--vf-maslina); color: #e8e6dc; }
.vf-podnozje__unutra { max-width: var(--vf-sirina); margin: 0 auto; padding: 2.5rem 1rem 2rem; }
.vf-podnozje a { color: #fff; }
.vf-podnozje .vf-kontakt { display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; margin: 0 0 1.2rem; }
.vf-copy { font-size: .85rem; opacity: .7; margin: 0; }

/* greška */
.vf-greska__okvir { text-align: center; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vf-greska__okvir img { width: 180px; margin-bottom: 1.5rem; }

@media (max-width: 820px) {
	.vf-izbornik-gumb { display: block; position: relative; z-index: 31; }
	.vf-nav { position: fixed; inset: 0; z-index: 30; background: rgba(43,48,30,.97); flex-direction: column; justify-content: center; gap: 2rem; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
	.vf-nav ul { flex-direction: column; align-items: center; }
	.vf-nav a { font-size: 1.3rem; text-shadow: none; }
	.vf-nav .mod-languages ul { flex-direction: row; }
	.vf-otvoren .vf-nav { opacity: 1; visibility: visible; }
	.vf-otvoren .vf-izbornik-gumb span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.vf-otvoren .vf-izbornik-gumb span:nth-child(2) { opacity: 0; }
	.vf-otvoren .vf-izbornik-gumb span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.vf-logo img { width: 120px; }
	.vf-slike3 { grid-template-columns: 1fr 1fr; }
	.vf-glavno { padding-top: 2.5rem; }
}
@media (max-width: 520px) {
	.vf-slike2, .vf-slike3 { grid-template-columns: 1fr; }
	.vf-karta iframe { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
	.vf-hero picture, .vf-galerija img { transition: none; }
	html { scroll-behavior: auto; }
}

/* jezici: bez natpisa modula, aktivni jezik čitljiv */
.vf-nav .mod-languages .pretext, .vf-nav .mod-languages p { display: none; }
.vf-nav .mod-languages .lang-active { background: none; }
.vf-nav .mod-languages .lang-active a { color: #fff; background: rgba(255,255,255,.22); }
.vf-nav .mod-languages a:hover { background: rgba(255,255,255,.16); }
.vf .article-info { display: none; }

/* obrazac: dodatna polja bez naslova "Polja", kalendar u istom redu */
.vf .contact-form fieldset + fieldset > legend { display: none; }
.vf .contact-form .field-calendar { display: flex; gap: .5rem; }
.vf .contact-form .field-calendar input { flex: 1; min-width: 0; }
.vf .contact-form .field-calendar button.hidden { display: none; }
.vf .contact-form .field-calendar button { background: var(--vf-papir); color: var(--vf-maslina); border: 1px solid #cfc6b6; border-radius: var(--vf-radijus); padding: 0 .9rem; font: 600 .9rem/1 var(--vf-sans); cursor: pointer; }
.vf .contact-form .field-calendar button:hover { background: #efe8da; }
.vf .contact-form select { appearance: auto; color: var(--vf-tinta); background: #fff; }
@media (min-width: 640px) {
	.vf .contact-form fieldset + fieldset { display: grid; grid-template-columns: 1fr 1fr 10rem; gap: 0 1rem; }
}
