/* =====================================================================
   Hello Aston – recreates the former Divi look of astontuzvedelem.hu
   Fonts: Lora (Google Fonts) · Primary colour: #00246c
   ===================================================================== */
:root {
	--ast-primary: #00246c;
	--ast-secondary: #002fa8;
	--ast-dark: #262d33;
	--ast-text: #000;
	--ast-header-h: 80px;
	--kit-widget-spacing: 27px;
}

/* ---------------------------------------------------------- base type */
html { scroll-padding-top: 90px; }
body {
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.7em;
	color: var(--ast-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.ast-has-fixed-header { padding-top: var(--ast-header-h); }
a { color: var(--ast-primary); text-decoration: none; }
a:hover, a:active { color: var(--ast-primary); text-decoration: none; }
b, strong { font-weight: 700; }
img { max-width: 100%; height: auto; }

.ast-page h1, .ast-page h2, .ast-page h3, .ast-page h4, .ast-page h5, .ast-page h6,
.ast-site-footer h4 {
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
	color: var(--ast-primary);
	font-weight: 500;
	line-height: 1em;
	margin: 0;
	padding-bottom: 10px;
}
.ast-page h1 { font-size: 36px; }
.ast-page h2 { font-size: 30px; }
.ast-page h3 { font-size: 26px; }
.ast-page h4 { font-size: 21px; }
.ast-page h5 { font-size: 19px; }
.ast-page h6 { font-size: 16px; }
.ast-page h1 a, .ast-page h2 a, .ast-page h3 a, .ast-page h4 a, .ast-page h5 a, .ast-page h6 a { color: inherit; }

/* Divi text-module rhythm */
.ast-text .elementor-widget-container,
.elementor-widget-text-editor.ast-text { font-size: inherit; line-height: 30.6px; color: var(--ast-text); }
.ast-text p { margin: 0; padding-bottom: 1em; }
.ast-text p:last-of-type { padding-bottom: 0; }
.ast-text ul { list-style-type: disc; margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
.ast-text ol { list-style-type: decimal; list-style-position: inside; margin: 0; padding: 0 0 23px; line-height: 26px; }
.ast-text ul li ul, .ast-text ol li ol { padding: 2px 0 2px 20px; }
.ast-text blockquote { margin: 20px 0 30px; padding-left: 20px; border-left: 5px solid var(--ast-primary); font-style: normal; }
.ast-text img { display: inline-block; }
.ast-text .alignleft { float: left; margin: 0 15px 15px 0; }
.ast-text .alignright { float: right; margin: 0 0 15px 15px; }
.ast-text .aligncenter { display: block; margin: 0 auto 15px; }

/* Divi: smaller headings inside narrow columns (1/3, 1/4, 1/5, 2/5) */
.ast-col-narrow h1 { font-size: 26px !important; }
.ast-col-narrow h2 { font-size: 23px !important; }
.ast-col-narrow h3 { font-size: 20px !important; }
.ast-col-narrow h4 { font-size: 18px !important; }
.ast-col-narrow h5 { font-size: 16px !important; }
.ast-col-narrow h6 { font-size: 15px !important; }
.ast-section .elementor-widget.ast-tight { margin-bottom: 0 !important; margin-block-end: 0 !important; }

/* dark-background text modules (Divi "dark" layout) */
.ast-dark, .ast-dark .elementor-widget-container,
.ast-dark h1, .ast-dark h2, .ast-dark h3, .ast-dark h4, .ast-dark h5, .ast-dark h6 { color: #fff !important; }

/* Elementor spacing = Divi module spacing */
.ast-section .elementor-widget:not(:last-child) { margin-bottom: 27px; margin-block-end: 27px; }
.ast-section .elementor-column-gap-no > .elementor-column > .elementor-element-populated { padding: 0; }
/* Divi gutters are horizontal only: keep Elementor's 30px side padding, drop top/bottom */
.ast-section .elementor-column-gap-wider > .elementor-column > .elementor-element-populated { padding-top: 0; padding-bottom: 0; }
.ast-section .elementor-widget-wrap { align-content: flex-start; }

/* ---------------------------------------------------------- buttons */
.ast-btn .elementor-button,
.ast-slide-button,
.ast-cf7 .wpcf7-submit {
	position: relative;
	display: inline-block;
	font-family: 'Lora', Georgia, serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7em !important;
	padding: .3em 1em;
	border: 2px solid var(--ast-primary);
	border-radius: 0;
	transition: all .3s ease;
}
.ast-btn .elementor-button::after,
.ast-slide-button::after,
.ast-cf7 .wpcf7-submit-wrap::after {
	content: '\2192';
	position: absolute;
	margin-left: -1em;
	opacity: 0;
	transition: all .2s;
	font-size: 1.1em;
	line-height: inherit;
}
.ast-btn .elementor-button:hover,
.ast-slide-button:hover {
	padding: .3em 2em .3em .7em;
	border-radius: 15px;
	background-color: var(--ast-primary) !important;
	border-color: var(--ast-primary) !important;
	color: rgba(255, 255, 255, .8) !important;
}
.ast-btn .elementor-button:hover::after,
.ast-slide-button:hover::after { opacity: 1; margin-left: .3em; }

/* ---------------------------------------------------------- images / blurbs */
.ast-image img { vertical-align: bottom; }
.ast-blurb .elementor-image-box-img { margin-left: auto !important; margin-right: auto !important; }
.ast-blurb .elementor-image-box-img { line-height: 0; display: block !important; }
.ast-blurb .elementor-image-box-img img { width: auto; max-width: 100%; display: inline-block; vertical-align: bottom; }
.ast-blurb .elementor-image-box-title a { color: inherit; }
.ast-blurb .elementor-image-box-content { max-width: 550px; margin: 0 auto; }

/* ---------------------------------------------------------- breadcrumbs (sub-page header bar) */
.breadcrumb-container ol { list-style: none !important; margin: 0; padding: 0 0 16px !important; font-size: 16px; line-height: 26px; }
.breadcrumb-container li { display: inline-block; color: #fff; }
.breadcrumb-container li a { display: inline-block; color: #fff; padding: 5px 10px; margin: 0 5px; line-height: 16px; }
.breadcrumb-container li:first-child a { margin-left: 0; }
.breadcrumb-container .separator { color: #fff; }
.breadcrumb-container li:last-child .separator { display: none; }

/* ---------------------------------------------------------- slider (home hero) */
.ast-slider { position: relative; overflow: hidden; height: var(--ast-slider-h, 400px); box-shadow: inset 0 0 10px rgba(0,0,0,.1); background: #fff; }
.ast-slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center; background-color: #fff;
	display: flex; align-items: flex-start; justify-content: center; text-align: center;
	opacity: 0; transition: opacity .7s ease; z-index: 1;
}
.ast-slide.is-active { opacity: 1; z-index: 2; }
.ast-slide-overlay::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.ast-slide-inner { position: relative; width: 100%; padding: 14.8vw 7% 0; color: #fff; box-sizing: border-box; }
.ast-slider .ast-slide-title { font-size: 55px; font-weight: 300; line-height: 1em; color: #fff; padding-bottom: 10px; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ast-slider .ast-slide-title a { color: #fff; }
.ast-slide-content { font-size: 26px; font-weight: 400; line-height: 30.6px; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ast-slide-btn { margin-top: 20px; }
.ast-slider .ast-slide-button { background: var(--ast-primary); color: #fff; border-color: #fff; }
.ast-slider-arrow {
	position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
	background: none; border: 0; color: #fff; font-size: 64px; line-height: 1; padding: 0 12px; cursor: pointer;
	opacity: 0; transition: all .3s; font-family: Arial, sans-serif;
}
.ast-slider:hover .ast-slider-arrow { opacity: 1; }
.ast-prev { left: -30px; } .ast-slider:hover .ast-prev { left: 12px; }
.ast-next { right: -30px; } .ast-slider:hover .ast-next { right: 12px; }
.ast-slider-arrow:hover, .ast-slider-arrow:focus { background: none; color: #fff; }
.ast-slider-dots { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5; text-align: center; line-height: 0; }
.ast-slider-dots button {
	display: inline-block; width: 7px; height: 7px; margin: 0 5px; padding: 0; border: 0; border-radius: 7px;
	background: rgba(255, 255, 255, .5); cursor: pointer; text-indent: -9999px; overflow: hidden;
}
.ast-slider-dots button.is-active { background: #fff; }

/* ---------------------------------------------------------- logo carousel (Referenciák) */
.ast-logos .swiper-slide { height: 150px; display: flex; align-items: center; justify-content: center; }
.ast-logos .swiper-slide figure, .ast-logos .swiper-slide a { display: flex; align-items: center; justify-content: center; height: 150px; margin: 0; }
.ast-logos .swiper-slide-image { max-width: 200px; max-height: 150px; width: auto; object-fit: contain; }

/* ---------------------------------------------------------- sidebar search widget */
.ast-sidebar-search form { display: flex; margin: 0; }
.ast-sidebar-search .screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.ast-sidebar-search input[type=text], .ast-sidebar-search input[type=search] {
	flex: 1; min-width: 0; height: 40px; margin: 0; padding: .7em; border: 1px solid #ddd !important; border-right: 0 !important; border-radius: 0;
	font: 400 14px 'Lora', Georgia, serif; color: #666; background: #fff;
}
.ast-sidebar-search input[type=submit] {
	height: 40px; margin: 0; padding: .7em; border: 1px solid #ddd !important; border-radius: 0; background: #ddd; color: #666;
	font: 400 14px 'Lora', Georgia, serif; cursor: pointer;
}
.ast-sidebar-search input[type=submit]:hover { background: #ccc; color: #666; }
.ast-page-title { margin-bottom: 20px !important; }

/* ---------------------------------------------------------- social icon (Kapcsolat) */
.ast-social .elementor-social-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; padding: 0; }
.ast-social .elementor-social-icon i { font-size: 14px; }
.ast-social .elementor-social-icon svg { width: 14px; height: 14px; fill: #fff; }

/* ---------------------------------------------------------- Contact Form 7 (Divi form look) */
.ast-contact-title { padding-bottom: 16px !important; }
.ast-cf7 .wpcf7 form p { margin: 0; padding: 0; }
.ast-cf7 .ast-cf-row { display: flex; gap: 3%; margin-bottom: 21px; }
.ast-cf7 .ast-cf-row > * { flex: 1; }
.ast-cf7 .wpcf7-form-control-wrap { display: block; }
.ast-cf7 input[type=text], .ast-cf7 input[type=email], .ast-cf7 textarea, .ast-cf7 .wpcf7-quiz {
	width: 100%; padding: 16px; border: 0; border-radius: 0; background: #eee; color: #999;
	font: 400 14px 'Lora', Georgia, serif; box-sizing: border-box;
}
.ast-cf7 input:focus, .ast-cf7 textarea:focus { color: #3e3e3e; background: #eee; outline: none; }
.ast-cf7 textarea { height: 150px; resize: vertical; display: block; }
.ast-cf7 .ast-cf-bottom { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 12px; }
.ast-cf7 .ast-cf-quiz { display: flex; align-items: center; gap: 8px; }
.ast-cf7 .wpcf7-quiz-label { font-size: 18px; color: #000; }
.ast-cf7 .wpcf7-quiz { width: 50px !important; height: 50px; padding: 16px 5px; }
.ast-cf7 .wpcf7-submit { background: transparent !important; color: var(--ast-primary) !important; cursor: pointer; height: 50px; }
.ast-cf7 .wpcf7-submit:hover { background: var(--ast-primary) !important; color: rgba(255,255,255,.8) !important; border-radius: 15px; }
.ast-cf7 .wpcf7-spinner { position: absolute; }
.ast-cf7 .wpcf7-response-output { margin: 1em 0 0 !important; font-size: 15px; }

/* ---------------------------------------------------------- header */
.ast-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
	background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
	font-family: 'Lora', Georgia, serif;
	transition: all .4s ease-in-out;
}
body.admin-bar .ast-header { top: 32px; }
.ast-header-inner { display: flex; align-items: center; width: 95%; margin: 0 auto; height: var(--ast-header-h); transition: height .4s ease-in-out; }
.ast-logo { display: flex; align-items: center; height: 100%; flex: 0 0 auto; }
.ast-logo img { height: 43px; width: auto; max-height: 54%; transition: all .4s ease-in-out; }
.ast-nav { margin-left: auto; height: 100%; }
.ast-menu, .ast-menu ul { list-style: none; margin: 0; padding: 0; }
.ast-menu { display: flex; height: 100%; align-items: stretch; }
.ast-menu > li { position: relative; display: flex; align-items: center; padding-right: 22px; }
.ast-menu > li:last-child { padding-right: 0; }
.ast-menu a { color: var(--ast-primary); font-size: 16px; font-weight: 600; line-height: 1.2; transition: opacity .3s; display: block; }
.ast-menu a:hover { opacity: .7; color: var(--ast-primary); }
.ast-menu > li > a { padding-top: 31px; padding-bottom: 31px; }
.ast-menu > li.current-menu-item > a, .ast-menu > li.current-menu-ancestor > a, .ast-menu > li.current_page_item > a { color: rgba(0, 36, 108, .74); }
.ast-menu > li.menu-item-has-children > a, .ast-menu > li.page_item_has_children > a { padding-right: 20px; }
.ast-menu > li.menu-item-has-children > a::after, .ast-menu > li.page_item_has_children > a::after {
	content: ''; position: absolute; right: 22px; top: 50%; margin-top: -4px;
	width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.ast-menu > li:last-child.menu-item-has-children > a::after { right: 0; }
.ast-menu .sub-menu, .ast-menu .children {
	position: absolute; top: 100%; left: 0; z-index: 9999;
	width: 240px; padding: 20px 0; background: #fff;
	border-top: 3px solid var(--ast-primary); box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
	visibility: hidden; opacity: 0; transition: all .2s ease-in-out;
}
.ast-menu li:hover > .sub-menu, .ast-menu li:hover > .children, .ast-menu li.is-open > .sub-menu, .ast-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.ast-menu .sub-menu li, .ast-menu .children li { position: relative; padding: 0 20px; }
.ast-menu .sub-menu a, .ast-menu .children a { width: 200px; padding: 6px 20px; line-height: 1.75em; font-size: 16px; }
.ast-menu .sub-menu a:hover { background: rgba(0, 0, 0, .03); opacity: .7; }
.ast-menu .sub-menu .sub-menu, .ast-menu .children .children { top: -23px; left: 240px; }
.ast-menu .sub-menu .menu-item-has-children > a::after {
	content: ''; position: absolute; right: 20px; top: 50%; margin-top: -4px;
	width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.ast-search-toggle, .ast-burger { background: none !important; border: 0 !important; padding: 0; margin: 0 0 0 22px; color: var(--ast-primary) !important; cursor: pointer; line-height: 0; border-radius: 0; }
.ast-search-toggle:hover { opacity: .7; }
.ast-burger { display: none; width: 32px; height: 24px; position: relative; }
.ast-burger span { position: absolute; left: 3px; right: 3px; height: 3px; background: var(--ast-primary); transition: all .2s; }
.ast-burger span:nth-child(1) { top: 3px; } .ast-burger span:nth-child(2) { top: 11px; } .ast-burger span:nth-child(3) { top: 19px; }
.ast-burger[aria-expanded=true] span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.ast-burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.ast-burger[aria-expanded=true] span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.ast-search { position: absolute; inset: 0; background: #fff; display: flex; align-items: center; }
.ast-search[hidden] { display: none; }
.ast-search form { width: 90%; max-width: 1080px; margin: 0 auto; display: flex; align-items: center; }
.ast-search input { flex: 1; border: 0 !important; font: 500 20px 'Lora', Georgia, serif; color: var(--ast-primary); background: transparent; padding: 10px 0; outline: none; box-shadow: none !important; }
.ast-search-close { background: none !important; border: 0 !important; font-size: 32px; color: var(--ast-primary) !important; cursor: pointer; padding: 0 5px; }

/* shrink on scroll like Divi's fixed header */
.ast-header.is-scrolled { box-shadow: 0 0 7px rgba(0, 0, 0, .1); }
.ast-header.is-scrolled .ast-header-inner { height: 54px; }
.ast-header.is-scrolled .ast-menu > li > a { padding-top: 18px; padding-bottom: 18px; }
.ast-header.is-scrolled .ast-logo img { height: 30px; }

@media (max-width: 980px) {
	:root { --ast-header-h: 80px; }
	.ast-header-inner { width: 90%; flex-wrap: wrap; }
	.ast-search-toggle { margin-left: auto; }
	.ast-burger { display: block; }
	.ast-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: auto; margin: 0;
		background: #fff; border-top: 3px solid var(--ast-primary); box-shadow: 0 2px 5px rgba(0,0,0,.1);
		padding: 5%; display: none; max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.ast-nav.is-open { display: block; }
	.ast-menu { display: block; height: auto; }
	.ast-menu > li { display: block; padding: 0; }
	.ast-menu a, .ast-menu > li > a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); font-size: 16px; }
	.ast-menu > li.menu-item-has-children > a::after, .ast-menu .sub-menu .menu-item-has-children > a::after { display: none; }
	.ast-menu .sub-menu, .ast-menu .children { position: static; visibility: visible; opacity: 1; width: auto; padding: 0 0 0 20px; border: 0; box-shadow: none; }
	.ast-menu .sub-menu li { padding: 0; }
	.ast-menu .sub-menu a { width: auto; }
	.ast-header.is-scrolled .ast-header-inner { height: var(--ast-header-h); }
	.ast-header.is-scrolled .ast-menu > li > a { padding: 10px 5%; }
	.ast-header.is-scrolled .ast-logo img { height: 43px; }
	.ast-slider .ast-slide-title { font-size: 34px; }
}
@media (min-width: 1440px) { .ast-slide-inner { padding-top: 213px; } }
@media (max-width: 980px) { .ast-slide { align-items: center; } .ast-slide-inner { padding: 0 6%; } }
/* Divi tablet/mobile: rows are 80% wide, stacked columns get 30px spacing */
@media (max-width: 980px) {
	.ast-section .ast-row.elementor-section > .elementor-container { max-width: 80% !important; }
	.ast-section .ast-row.elementor-section .elementor-column-gap-wider > .elementor-column > .elementor-element-populated { padding-left: 0; padding-right: 0; }
	.ast-section .ast-row .elementor-container > .elementor-column:not(:last-child) { margin-bottom: 30px; }
}
@media (max-width: 767px) {
	.ast-slider { height: 400px; }
	.ast-slider .ast-slide-title { font-size: 20px; }
	.ast-slide-content { font-size: 26px; line-height: 30.6px; }
	.ast-cf7 .ast-cf-row { display: block; }
	.ast-cf7 .ast-cf-row > * { margin-bottom: 3%; }
	body.admin-bar .ast-header { top: 46px; }
}

/* ---------------------------------------------------------- footer */
.ast-site-footer { font-family: 'Lora', Georgia, serif; }
.ast-footer, .ast-footer-static { color: #fff; }
.ast-footer-static { background: var(--ast-primary) url(/wp-content/uploads/2017/06/spinkler-allo.jpg) top left / cover no-repeat; padding: 65px 0 0; }
.ast-footer-static .ast-footer-cols { width: 80%; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; padding-bottom: 20px; }
.ast-footer-static .ast-footer-credit { width: 80%; max-width: 1080px; margin: 0 auto; padding: 15px 0 5px; }
.ast-footer-widget, .ast-footer-widget .elementor-widget-container, .ast-footer-widget p, .ast-footer-widget a { color: #fff !important; }
.ast-site-footer .ast-footer-widget h4 { color: #fff !important; font-size: 22px; padding-bottom: 10px; }
.ast-footer-list { list-style: none !important; padding: 0 !important; margin: 0; line-height: 30.6px !important; }
.ast-footer-list li { position: relative; padding-left: 14px; margin-bottom: 9px; color: #fff; }
.ast-footer-list li::before { content: ''; position: absolute; top: 12.3px; left: 0; border: 3px solid #fff; border-radius: 3px; }
.ast-footer-widget p { padding-bottom: 1em; margin: 0; }
.ast-footer-credit, .ast-footer-credit p, .ast-footer-credit .elementor-widget-container { color: #fff !important; font-size: 14px; padding-bottom: 10px; }
.ast-footer-credit a { color: #fff !important; font-weight: 700; }
@media (max-width: 980px) {
	.ast-footer-static .ast-footer-cols { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- popup (home page) */
.ast-popup { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .35s; }
.ast-popup[hidden] { display: none; }
.ast-popup.is-visible { opacity: 1; }
.ast-popup-box { position: relative; width: 640px; max-width: 100%; }
.ast-popup-box img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; }
.ast-popup-close {
	position: absolute; top: -12px; right: -12px; width: 26px; height: 26px; padding: 0; border-radius: 26px;
	background: #fff; color: #fff; border: 0; font-size: 20px; line-height: 26px; cursor: pointer; box-shadow: 0 0 15px 1px rgba(2,2,2,.75);
	color: #000;
}
