/*
Theme Name:   Bella Vita
Theme URI:    https://www.bella-vita.si/
Description:  Podrejena tema (child theme) za Center Bella Vita. Osnova je Hello Elementor, vsebina in oblikovanje se urejata v Elementorju (Nastavitve strani → Globalne barve in pisave).
Author:       AF web
Template:     hello-elementor
Version:      1.3.1
Requires PHP: 8.1
Text Domain:  bella-vita
*/

/* ---------------------------------------------------------------
   Barve teme = globalne barve Elementorja (Elementor → Nastavitve
   strani → Globalne barve). Spremembo tam upošteva tudi ta datoteka.
   --------------------------------------------------------------- */
body {
	--bv-green: var(--e-global-color-secondary, #00843F);
	--bv-dark: var(--e-global-color-e8a3a0e, #053D24);
	--bv-heading: var(--e-global-color-primary, #0B4229);
	--bv-text: var(--e-global-color-text, #4F5A55);
	--bv-accent: var(--e-global-color-accent, #F4FBF6);
	--bv-sage: var(--e-global-color-4d4e3d9, #D3F3DF);
	--bv-light: var(--e-global-color-fb8b271, #F2FAF5);
	--bv-light2: var(--e-global-color-3b6f28e, #F7FCF9);
}

/* Glava lebdi nad prvo sekcijo vsake strani (prosojna čez sliko), ne glede na višino logotipa. */
.ehf-header #masthead {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 50;
}

/* Vidnejši fokus za uporabo s tipkovnico (dostopnost). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.elementor-button:focus-visible {
	outline: 2px solid var(--bv-green);
	outline-offset: 3px;
}

/* Dolge slovenske besede v velikih naslovih ne smejo prelomiti postavitve. */
.elementor-heading-title {
	overflow-wrap: break-word;
	hyphens: manual;
}

/* Kartice, ki so v celoti povezava: brez podčrtaja, rahel dvig ob prehodu. */
a.e-con.bv-card {
	color: inherit;
	text-decoration: none;
	transition: transform .35s ease, box-shadow .35s ease;
}
a.e-con.bv-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -24px rgba(5, 61, 36, .45);
}

/* Trak s povezavami pod naslovom strani. */
.bv-strip .elementor-heading-title a {
	color: inherit;
	transition: color .25s ease;
}
.bv-strip .elementor-heading-title a:hover {
	color: var(--bv-dark);
}

/* E-poštni naslovi ostanejo z malimi črkami, tudi kjer so naslovi v velikih. */
.bv-lowercase .elementor-heading-title,
.bv-lowercase .elementor-icon-list-text {
	text-transform: none !important;
}

/* ---------------------------------------------------------------
   Gumbi v lastnih HTML blokih (zemljevid, članki)
   --------------------------------------------------------------- */
html body .bv-btn {
	display: inline-block;
	padding: 14px 28px;
	border: 1px solid var(--bv-green);
	background: var(--bv-green);
	color: #fff;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
	text-decoration: none;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
html body .bv-btn:hover,
html body .bv-btn:focus-visible {
	background: var(--bv-dark);
	border-color: var(--bv-dark);
	color: #fff;
}
html body .bv-btn--ghost {
	background: transparent;
	color: var(--bv-green);
}

/* ---------------------------------------------------------------
   Pasica za soglasje s piškotki (spodaj levo, na telefonu čez celo širino)
   --------------------------------------------------------------- */
.bv-cookies {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9999;
	max-width: 420px;
	padding: 24px;
	background: var(--bv-light2);
	border-top: 2px solid var(--bv-green);
	box-shadow: 0 18px 50px -20px rgba(5, 61, 36, .45);
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--bv-text);
}
.bv-cookies[hidden] { display: none; }
.bv-cookies__title {
	margin: 0 0 6px;
	font-family: "Ysabeau Infant", sans-serif;
	font-size: 1.3em;
	text-transform: uppercase;
	color: var(--bv-heading);
}
.bv-cookies__text { margin: 0 0 16px; }
.bv-cookies__text a { color: var(--bv-green); text-decoration: underline; }
.bv-cookies__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
html body .bv-cookies .bv-btn {
	flex: 1 1 140px;
	padding: 12px 18px;
	text-align: center;
}
@media (max-width: 767px) {
	.bv-cookies {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
		padding: 20px;
	}
}

/* ---------------------------------------------------------------
   Zemljevid na strani Kontakt: naloži se šele ob kliku
   (brez Googlovih piškotkov ob obisku).
   --------------------------------------------------------------- */
.bv-map {
	position: relative;
	min-height: 1040px; /* obrazec (desno) z robom -920 px prekriva zemljevid – višina mora pokriti obrazec */
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: var(--bv-sage) center / cover no-repeat;
	text-align: left;
	padding: 60px max(20px, calc((100vw - 1300px) / 2));
}
.bv-map__inner {
	max-width: min(460px, 40vw);
	background: rgba(247, 252, 249, .96);
	padding: 32px 28px;
}
.bv-map__title {
	font-family: "Ysabeau Infant", sans-serif;
	text-transform: uppercase;
	font-size: 1.4em;
	color: var(--bv-heading);
	margin: 0 0 8px;
}
.bv-map__text {
	color: var(--bv-text);
	font-size: .95em;
	margin: 0 0 18px;
}
.bv-map__actions {
	display: flex;
	gap: 12px;
	justify-content: flex-start;
	flex-wrap: wrap;
}
.bv-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 767px) {
	.bv-map {
		min-height: 420px;
		justify-content: center;
		text-align: center;
		padding: 40px 16px;
	}
	.bv-map__inner { max-width: 100%; }
	.bv-map__actions { justify-content: center; }
}

/* ---------------------------------------------------------------
   Kontaktni obrazec (MetForm)
   --------------------------------------------------------------- */
/* Potrditveno polje v barvah strani, brez pisave Font Awesome. */
.mf-checkbox-option input[type=checkbox] + span::before,
.mf-radio-option input[type=radio] + span::before {
	content: "" !important;
	font-family: inherit !important;
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 10px;
	vertical-align: -4px;
	border: 1px solid var(--bv-sage) !important;
	background: #fff;
	transition: background-color .2s ease;
}
.mf-radio-option input[type=radio] + span::before {
	border-radius: 50%;
}
.mf-checkbox-option input[type=checkbox]:checked + span::before {
	background: var(--bv-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.mf-radio-option input[type=radio]:checked + span::before {
	background: radial-gradient(circle, var(--bv-dark) 45%, #fff 50%);
}
.mf-checkbox-option input:focus-visible + span::before,
.mf-radio-option input:focus-visible + span::before {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
/* Soglasje (GDPR) – enak slog kot ostala polja na temnem ozadju. */
.metform-form-content .elementor-widget-mf-gdpr-consent .mf-input-label {
	color: #fff !important;
	font-family: Roboto, sans-serif;
	font-weight: 400;
	font-size: 15px;
}
.elementor-widget-mf-gdpr-consent .mf-checkbox-option span {
	color: var(--bv-light2);
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}
.elementor-widget-mf-gdpr-consent .mf-checkbox-option a {
	color: #fff;
	text-decoration: underline;
}
/* Sporočilo po oddaji obrazca. */
.metform-form-content .mf-response-msg {
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--bv-light2) !important;
	box-shadow: none !important;
	padding: 18px 22px !important;
}
.metform-form-content .mf-response-msg p {
	color: var(--bv-dark) !important;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	margin: 0;
}
.metform-form-content .mf-error-res .mf-response-msg p {
	color: #8a2d20 !important;
}
.metform-form-content .mf-alert-icon {
	display: none !important; /* ikona je iz pisave Font Awesome, ki se ne nalaga */
}

/* ---------------------------------------------------------------
   Puščice podmenijev v glavi brez pisave Font Awesome.
   --------------------------------------------------------------- */
.hfe-nav-menu .parent-has-child .sub-arrow i.fa::before {
	content: "" !important;
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	font-family: inherit !important;
	transition: transform .25s ease;
}
.hfe-nav-menu__layout-horizontal .menu-item-has-children ul a .sub-arrow i.fa::before {
	transform: rotate(-45deg);
}
.hfe-nav-menu .parent-has-child .sub-menu-active > a .sub-arrow i.fa::before,
.hfe-nav-menu .parent-has-child .menu-active > a .sub-arrow i.fa::before {
	transform: translateY(1px) rotate(-135deg);
}

/* Pravna besedila (politika zasebnosti): zmernejši naslovi. */
html body .bv-legal h2 {
	font-size: 1.45em;
	line-height: 1.25;
	margin: 1.8em 0 .5em;
}
html body .bv-legal h2:first-child {
	margin-top: 0;
}
.bv-legal ul {
	padding-left: 1.2em;
}
.bv-legal li::marker {
	color: var(--bv-green);
}

/* Stran 404 (Elementor predloga v 404.php) – polna širina kot ostale strani. */
body.error404 .site-main.bv-404 {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* ---------------------------------------------------------------
   Posamezni članek (Nasveti) – predloga template-parts/single.php
   --------------------------------------------------------------- */
/* Hello tema omeji .site-main na 1140 px – članek je polnoširinski kot ostale strani. */
body.single-post .site-main.bv-post {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}
.bv-post__hero {
	position: relative;
	isolation: isolate;
	background: var(--bv-dark) center / cover no-repeat;
	padding: 230px 20px 120px;
	text-align: center;
	color: #fff;
}
.bv-post__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(5, 61, 36, .68) 0%, rgba(5, 61, 36, .42) 65%, rgba(5, 61, 36, .55) 100%);
}
.bv-post__hero-inner {
	max-width: 980px;
	margin: 0 auto;
}
.bv-post__eyebrow {
	font-family: Roboto, sans-serif;
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 22px;
	color: var(--bv-sage);
}
.bv-post__eyebrow a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .45);
}
.bv-post__eyebrow span {
	margin: 0 10px;
}
html body .bv-post h1.bv-post__title {
	font-family: "Ysabeau Infant", sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	font-size: clamp(2rem, 4.4vw, 3.8rem);
	line-height: 1.08;
	color: #fff;
	margin: 0 auto;
	max-width: 900px;
	text-wrap: balance;
}
.bv-post__body {
	background: var(--bv-light2);
	padding: 90px 20px 110px;
}
.bv-post__content,
.bv-post__cta,
.bv-post__back {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.bv-post__content {
	font-family: Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.78;
	color: var(--bv-text);
}
.bv-post__content > p:first-child {
	font-size: 1.15em;
	color: var(--bv-heading);
}
html body .bv-post__content h2,
html body .bv-post__content h3 {
	font-family: "Ysabeau Infant", sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--bv-heading);
	line-height: 1.2;
	margin: 2.1em 0 .55em;
}
html body .bv-post__content h2 { font-size: 1.75em; }
html body .bv-post__content h3 { font-size: 1.3em; }
.bv-post__content a { color: var(--bv-green); }
.bv-post__content ul { padding-left: 1.2em; }
.bv-post__content li { margin: .35em 0; }
.bv-post__content li::marker { color: var(--bv-green); }
.bv-post__content img { height: auto; }
.bv-post__content blockquote {
	margin: 2em 0;
	padding: 6px 0 6px 26px;
	border-left: 2px solid var(--bv-green);
	font-style: italic;
	color: var(--bv-heading);
}
.bv-post__cta {
	margin-top: 64px;
	padding: 40px 32px;
	background: var(--bv-light);
	border-top: 2px solid var(--bv-green);
	text-align: center;
}
.bv-post__cta-title {
	font-family: "Ysabeau Infant", sans-serif;
	text-transform: uppercase;
	font-size: 1.55em;
	color: var(--bv-heading);
	margin: 0 0 8px;
}
.bv-post__cta p {
	color: var(--bv-text);
}
.bv-post__cta-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 20px 0 0;
}
.bv-post__back {
	margin-top: 40px;
	font-family: Roboto, sans-serif;
}
.bv-post__back a {
	color: var(--bv-green);
	text-decoration: none;
}
@media (max-width: 767px) {
	.bv-post__hero { padding: 170px 16px 72px; }
	.bv-post__body { padding: 56px 16px 72px; }
	.bv-post__content { font-size: 16px; }
}

/* ---------------------------------------------------------------
   Telefon: berljivost daljših besedil in števcev
   --------------------------------------------------------------- */
@media (max-width: 767px) {
	.bv-longtext,
	.bv-longtext p,
	.bv-legal {
		text-align: left !important;
	}
	.elementor-widget-counter .elementor-counter-title {
		text-align: center;
		justify-content: center;
	}
	.elementor-widget-counter .elementor-counter-number-wrapper {
		justify-content: center;
	}
	/* Harmonika (pogosta vprašanja): večja površina za dotik. */
	.elementskit-accordion .elementskit-btn-link {
		padding-top: 14px !important;
		padding-bottom: 14px !important;
	}
}

/* Spoštuj uporabnikovo nastavitev za zmanjšano gibanje. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Seznam člankov: če je člankov manj kot stolpcev (npr. 2 od 3), naj bodo na sredini. */
.ekit-wid-con .post-items.ekit-row {
	justify-content: center;
}

/* Povezave v besedilu noge (npr. »AF web«): živahna zelena je na temnem ozadju pretemna → svetla mint. */
footer .elementor-widget-text-editor a {
	color: var(--bv-sage);
}
footer .elementor-widget-text-editor a:hover,
footer .elementor-widget-text-editor a:focus-visible {
	color: #fff;
}

/* Hero naslovnice na telefonu: besedilo je na sredini čez celo širino, zato namesto vodoravnega
   preliva (računalnik) enakomeren navpičen smaragdni preliv. */
@media (max-width: 767px) {
	.bv-hero.e-con::before,
	.bv-hero.e-con > .elementor-background-overlay {
		background-image: linear-gradient(180deg, rgba(0, 74, 38, .62) 0%, rgba(0, 74, 38, .48) 55%, rgba(0, 74, 38, .7) 100%) !important;
		opacity: 1 !important;
	}
}

/* Datum na kartici članka (mint ozadje): temno zelen zaradi kontrasta. */
.elementskit-post-body .post-meta-list .meta-date,
.elementskit-post-body .post-meta-list .meta-date svg {
	color: var(--bv-heading) !important;
	fill: var(--bv-heading) !important;
}

/* Obrazec na temnem ozadju: oznaka obveznega polja v svetli mint namesto rdeče (kontrast). */
.mf-input-required-indicator {
	color: var(--bv-sage) !important;
}
