/*
Theme Name: TCI Social Club
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

:root {
	--tci-red: #c83e32;
	--tci-red-dark: #c63527;
	--tci-dark: #3a4149;
	--tci-grey: #7b838b;
	--tci-light: #f7f7f7;
	--tci-line: #ededed;
	--tci-font: Barlow, Arial, Helvetica, sans-serif;
	--tci-font-cond: "Barlow Condensed", Barlow, Arial, sans-serif;
	--tci-width: 1170px;
}

body {
	font-family: var(--tci-font);
	color: var(--tci-grey);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tci-font-cond);
	font-weight: 700;
	color: var(--tci-dark);
}

/* Avada title elements use the "Headings" typography set: uppercase, -1px letter spacing, no margins (element values override) */
.wp-block-heading[class*="tci-t"] {
	text-transform: uppercase;
	letter-spacing: -1px;
	margin-top: 0;
	margin-bottom: 31px;
}

@media (max-width: 800px) {
	.wp-block-heading[class*="tci-t"] {
		margin-bottom: 20px;
	}
}

/* Title letter spacing from the heading typography where it sets one (h1 4px, h4 1.5px, h5/h6 2px) */
h1.wp-block-heading[class*="tci-t"] {
	letter-spacing: 4px;
}

h4.wp-block-heading[class*="tci-t"] {
	letter-spacing: 1.5px;
}

:is(h5, h6).wp-block-heading[class*="tci-t"] {
	letter-spacing: 2px;
}

.site-header .header-navigation .menu > li > a {
	font-family: var(--tci-font);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--tci-dark);
	padding-top: 6px;
	padding-bottom: 6px;
}

.site-header .header-navigation .menu > li.current-menu-item > a,
.site-header .header-navigation .menu > li > a:hover {
	color: var(--tci-red);
}

#masthead .site-main-header-wrap {
	border-bottom: 1px solid rgba(58, 65, 73, 0.08);
}

/* Logo SVG has a large empty canvas: visible mark = x 27.8%..66.5%, y 25.8%..63.4% of the viewBox. Margins crop it. */
.site-branding a.brand img.custom-logo {
	width: 225px;
	max-width: none;
	max-height: none;
	height: auto;
	margin: -41px 0 -58px -62px;
}

.kadence-sticky-header.item-is-fixed.item-is-stuck .site-branding a.brand img.custom-logo {
	width: 172px;
	margin: -31px 0 -45px -48px;
}

.site-header .header-navigation .menu {
	flex-wrap: nowrap;
}

.site-header .header-navigation .menu > li > a {
	white-space: nowrap;
}

@media (max-width: 1280px) {
	.site-header .header-navigation .menu > li > a {
		font-size: 14px;
		letter-spacing: 0.6px;
		padding-left: 0.45em;
		padding-right: 0.45em;
	}
}

@media (max-width: 1024px) {
	.site-branding a.brand img.custom-logo,
	.site-mobile-header-wrap .site-branding a.brand img.custom-logo {
		width: 172px;
		margin: -31px 0 -45px -48px;
	}
}

:root {
	--awb-color1: #ffffff;
	--awb-color2: #f7f7f7;
	--awb-color3: #ededed;
	--awb-color4: #c83e32;
	--awb-color5: #c83e32;
	--awb-color6: #7b838b;
	--awb-color7: #c63527;
	--awb-color8: #3a4149;
	--awb-typography1-font-family: var(--tci-font-cond);
	--awb-typography2-font-family: var(--tci-font);
	--awb-typography3-font-family: var(--tci-font);
	--awb-typography4-font-family: var(--tci-font);
}

:where(.entry-content, .tci-footer) > :where(.tci-section),
:where(.tci-section) > :where(.wp-block-group),
:where(.tci-section) :where(.wp-block-columns) {
	margin-top: 0;
	margin-bottom: 0;
}

/* Avada: containers keep 30px side padding (hundredp_padding); a container's own padding overrides it */
/* Side gutter: Avada's default page template (and product pages) keep 30px at the sides; the 100%-width template does not */
.entry-content > .tci-section.tci-gutter,
.entry-content > .tci-booking-head,
.entry-content > .tci-booking-form,
.tci-footer .tci-section:not(.tci-section--full) {
	padding-left: 30px;
	padding-right: 30px;
}

/* Avada global column spacing is 0%: columns share the row width with no gap */
.tci-section .wp-block-columns {
	column-gap: 0;
	row-gap: 0;
}

.site-footer .site-middle-footer-inner-wrap {
	padding-top: 0;
	padding-bottom: 0;
}

.wp-block-heading {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.tci-footer .tci-section:last-child,
.tci-footer .tci-section:last-child a {
	color: #ffffff;
	text-decoration: none;
}

.tci-footer .wp-block-social-links .wp-social-link {
	background: none;
	color: var(--tci-red);
}

.tci-footer .wp-block-social-links .wp-social-link svg {
	fill: var(--tci-red);
}

/* Avada columns are flex containers, so margins inside a text element or column never collapse into their neighbours */
.tci-text {
	display: flow-root;
}

/* Avada columns lay their elements out as a flex column: margins of neighbouring elements add up, never merge */
.wp-block-column[class*="tci-col"],
.wp-block-group[class*="tci-col"] > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
}

/* Avada keeps the 20px under a text element's last paragraph, except in the footer */
.tci-footer .tci-text > :last-child {
	margin-bottom: 0;
}

.tci-squares {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0;
}

.tci-squares span {
	width: 10px;
	height: 10px;
	background: var(--tci-red);
}

/* Avada's 47px "ellipsis" icon as on live: bright red dots starting at the centre line */
.tci-ellipsis {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 5px;
	height: 47px;
	padding-left: 50%;
}

.tci-ellipsis span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ff0000;
}

ul.tci-checklist.tci-checklist {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

/* Avada checklist items have 7px above (except the first) and below */
.tci-checklist li + li {
	padding-top: 0.35em;
}

/* Avada checklist items: the last paragraph of an item has no bottom margin */
.tci-checklist li > :last-child {
	margin-bottom: 0;
}

/* Avada checklist metrics scale with the list's font size: line 1.7em, icon box 1.7em + 0.7em gap, 0.35em item padding */
.tci-checklist li {
	position: relative;
	padding: 0 0 0.35em 2.4em;
	margin: 0;
	line-height: 1.7em;
	letter-spacing: 1.1px;
}

.tci-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 1em;
	height: 0.8em;
	background: var(--tci-red);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6l4.5 4.5L15 1' stroke='%23000' stroke-width='3.4' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6l4.5 4.5L15 1' stroke='%23000' stroke-width='3.4' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tci-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

@media (max-width: 1000px) {
	.tci-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.tci-grid {
		grid-template-columns: 1fr;
	}
}

.tci-grid__item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: opacity 0.2s;
}

.tci-grid__item {
	position: relative;
	display: block;
	overflow: hidden;
}

/* Rollover as on live: red overlay with the facility name */
.tci-grid__title {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 25%;
	background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), rgba(200, 62, 50, 0.88);
	color: #ffffff;
	font-family: var(--tci-font-cond);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s;
}

.tci-grid__item:hover .tci-grid__title,
.tci-grid__item:focus-visible .tci-grid__title {
	opacity: 1;
}

/* Home slider as on live: half as tall as it is wide (200px minimum, 902px maximum), slides fade in turn */
.tci-slider {
	position: relative;
	height: clamp(200px, 50vw, 902px);
	overflow: hidden;
	background: #3a4149;
}

.tci-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.tci-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease;
}

.tci-slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content .tci-slide__title {
	position: relative;
	margin: 0;
	padding: 0 20px;
	font-family: var(--tci-font-cond);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
}

.entry-content .tci-slide__title a {
	color: #ffffff;
	text-decoration: none;
}

/* scroll-down indicator, 25px above the bottom */
.tci-slider__down {
	position: absolute;
	left: 50%;
	bottom: 25px;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-left: -20px;
}

.tci-slider__down::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 2px;
	width: 22px;
	height: 22px;
	border-right: 3px solid #ffffff;
	border-bottom: 3px solid #ffffff;
	transform: rotate(45deg);
}

/* live hides the indicator on phones */
@media (max-width: 640px) {
	.tci-slider__down {
		display: none;
	}
}

/* on narrow screens live's slide heading sits below the centre line (about 25px at 360px wide, none from 800px) */
@media (max-width: 800px) {
	.entry-content .tci-slide__title {
		transform: translateY(clamp(0px, calc(25px - (100vw - 360px) * 0.0568), 25px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.tci-slide,
	.tci-slide.is-active {
		transition: none;
	}
}

.tci-hero {
	margin-top: 0;
	margin-bottom: 0;
}

.tci-hero .tci-hero__title,
.tci-hero .tci-hero__title a {
	text-transform: none;
	color: #ffffff;
	font-size: 80px;
	letter-spacing: 4px;
	text-decoration: none;
	margin: 0;
}

@media (max-width: 1600px) {
	.tci-hero .tci-hero__title,
	.tci-hero .tci-hero__title a {
		font-size: calc(80px - (1600px - 100vw) * 0.022742);
	}
}

@media (max-width: 1000px) {
	.tci-hero .tci-hero__title,
	.tci-hero .tci-hero__title a {
		font-size: calc(80px - (1000px - 100vw) * 0.044063);
	}
}

@media (max-width: 800px) {
	.tci-hero:not(.tci-hero--home) {
		min-height: 240px !important;
	}
}

.wp-block-button__link {
	background-color: var(--tci-red);
	color: #ffffff;
	border-radius: 3px;
	font-family: var(--tci-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 17px;
	text-transform: uppercase;
	padding: 13px 29px;
}

.wp-block-button__link:hover {
	background-color: var(--tci-dark);
	color: #ffffff;
}

/* Avada tabs element: 50px below */
.tci-tabs {
	margin-bottom: 50px;
}

.tci-tabs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 40px;
}

.tci-tabs__list [role="tab"] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 262px;
	min-height: 131px;
	padding: 0 30px;
	font-family: var(--tci-font-cond);
	font-size: 30px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border: 0;
	border-radius: 0;
	background: #ededed;
	color: var(--tci-dark);
	cursor: pointer;
}

.tci-tabs.different-color-boxes .tci-tabs__list [role="tab"]:nth-child(odd) {
	background: #f7f7f7;
}

.tci-tabs .tci-tabs__list [role="tab"][aria-selected="true"],
.tci-tabs.different-color-boxes .tci-tabs__list [role="tab"][aria-selected="true"] {
	background: var(--tci-red);
	color: #ffffff;
}

/* At 1000px and below Avada shows tabs as full-width bars, each followed by its content (site.js sets the order) */
@media (max-width: 1000px) {
	.tci-tabs {
		display: flex;
		flex-direction: column;
		padding-top: 20px;
	}

	.tci-tabs__list {
		display: contents;
	}

	.tci-tabs__list [role="tab"],
	.tci-tabs.different-color-boxes .tci-tabs__list [role="tab"]:nth-child(odd) {
		width: 100%;
		min-height: 66px;
		margin: 0 0 10px;
		padding: 14px 45px;
		background: #f7f7f7;
	}

	.tci-tabs__list [role="tab"][aria-selected="true"],
	.tci-tabs.different-color-boxes .tci-tabs__list [role="tab"][aria-selected="true"] {
		background: var(--tci-red);
	}

	.tci-tabs__panel {
		margin: 20px 0;
		padding: 0;
	}

	/* Evenimente: Avada "clean" tabs keep 80px above, 100px below and 20px at the sides */
	.tci-tabs.tci-evenimente {
		padding: 80px 20px 100px;
	}
}

.tci-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	margin: 0;
	background: rgba(28, 32, 36, 0.78);
}

.tci-popup.is-open {
	display: flex;
}

.tci-popup__box {
	position: relative;
	width: 620px;
	max-width: 92vw;
	max-height: 92vh;
	overflow: auto;
	background: #3a4149;
}

.tci-popup__box .alignfull,
.tci-popup__box .wp-block-group {
	width: auto;
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0;
	padding-right: 0;
}

.tci-popup__close {
	position: absolute;
	top: 14px;
	right: 18px;
	z-index: 2;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: #ffffff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.tci-popup__close:hover,
.tci-popup__close:focus {
	color: var(--tci-red);
	background: none;
}

.tci-table {
	overflow-x: auto;
}

.tci-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 18px;
}

.tci-table th,
.tci-table td {
	border: 0;
	border-bottom: 1px solid #dddddd;
	padding: 10px 20px;
	text-align: center;
	vertical-align: middle;
	white-space: pre-line;
	color: var(--tci-dark);
}

.tci-table th {
	padding: 20px;
	letter-spacing: 1.5px;
	font-family: var(--tci-font-cond);
	font-weight: 700;
	text-transform: uppercase;
	border-bottom-width: 2px;
}

.tci-map iframe {
	display: block;
	width: 100%;
}

/* Avada alert box as rendered on live (global alert colours, uppercase, centred, icon inline before the text) */
.tci-alert__icon {
	display: inline-block;
	width: 28px;
	height: 28px;
	margin-right: 10px;
	vertical-align: -6px;
	border-radius: 50%;
	background: #ffffff;
	color: #9a4037;
}

.tci-alert__icon svg {
	width: 28px;
	height: 28px;
}

.tci-alert__icon circle {
	display: none;
}

.tci-alert {
	display: block;
	padding: 25px;
	border: 1px solid #ffffff;
	background: #9a4037;
	color: #ffffff;
	font-size: 22px;
	text-transform: uppercase;
	text-align: center;
}

/* Paragraph spacing as Avada: 0 above, 20px below */
.entry-content p {
	margin-top: 0;
	margin-bottom: 20px;
}

/* Rezervări: tile menu (raw HTML kept from Avada, class reservations-tabs) */
.reservations-tabs {
	margin: 19px 0 30px;
}

@media (max-width: 767px) {
	.reservations-tabs {
		margin-top: 0;
	}
}

.reservations-tabs .nav-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 4px;
	list-style: none;
	margin: 0 auto;
	padding: 0 20px;
	max-width: 1380px;
}

.reservations-tabs .nav-tabs > li {
	flex: 0 0 261px;
	margin: 0;
	padding: 0;
}

.reservations-tabs .nav-tabs > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 131px;
	padding: 10px 20px;
	background: #f7f7f7;
	text-decoration: none;
	text-align: center;
}

.reservations-tabs .nav-tabs > li:nth-child(even) > a {
	background: #ededed;
}

.reservations-tabs .nav-tabs > li > a:hover .fusion-tab-heading {
	color: var(--tci-red);
}

.reservations-tabs .fusion-tab-heading {
	margin: 0;
	font-family: var(--tci-font-cond);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1.5px;
	color: var(--tci-dark);
	word-break: normal;
	overflow-wrap: normal;
}

@media (max-width: 767px) {
	.reservations-tabs .nav-tabs {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		padding: 0;
		gap: 10px;
	}

	.reservations-tabs .nav-tabs > li {
		flex: 1 1 100%;
	}

	.reservations-tabs .nav-tabs > li > a {
		min-height: 92px;
	}
}

/* Wrapper groups kept from Avada markup: their own CSS (e.g. .fussion-button-rezervari flex) must reach the children */
.tci-wrap > .wp-block-group__inner-container {
	display: contents;
}

/* Footer links are raw HTML; the widget adds a <p> around them that Avada did not have */
.tci-footer .wp-block-column > p {
	margin-top: 0;
	margin-bottom: 0;
}

/* Booking pages: title as on the live product page (43px, normal case, left, 90px under the header) */
.tci-booking-head {
	padding-top: 90px;
}

.tci-booking-head h1.wp-block-heading {
	margin: 0;
	padding: 0 30px;
	font-size: 43px;
	line-height: 33px;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
}

.tci-booking-form {
	padding-top: 81px;
}

.tci-booking-head:has(.tci-booking-desc) + .tci-booking-form {
	padding-top: 20px;
}

@media (max-width: 767px) {
	.tci-booking-form {
		padding-top: 64px;
		padding-bottom: 54px;
	}
}

@media (max-width: 767px) {
	.tci-booking-head h1.wp-block-heading {
		padding: 0;
		font-size: 37.7px;
		line-height: 1.1;
	}

	body .tci-booking-head .tci-booking-desc.tci-booking-desc {
		margin-top: 75px;
		padding: 0;
	}

	.entry-content > .tci-booking-head {
		padding-top: 110px;
	}

	.bookacti-calendar .fc-event .bookacti-availability-container {
		font-size: 12px;
	}
}

.tci-booking-head .tci-booking-desc.tci-booking-desc {
	margin-top: 81px;
	padding: 0 30px;
}

.tci-booking-desc p {
	margin: 0 0 20px;
}



/* Booking form ending as on live: one left-aligned red "REZERVĂ" button */
.tci-booking-form .bookacti-form-field-type-submit {
	text-align: left;
}

.tci-booking-form .bookacti-form-field-type-submit input[type="submit"],
.tci-booking-form .bookacti-form-field-type-submit button,
.tci-booking-form input.bookacti-submit-form-button {
	background: var(--tci-red);
	color: #ffffff;
	border: 0;
	border-radius: 3px;
	padding: 15px 29px 13px;
	font-family: var(--tci-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 17px;
	cursor: pointer;
}

.tci-booking-form .bookacti-form-field-type-submit input[type="submit"]:hover,
.tci-booking-form input.bookacti-submit-form-button:hover {
	background: var(--tci-dark);
}

/* Calendar events: availability badge and text sizes as on live; no mid-word breaks */
.bookacti-calendar .fc-event .bookacti-availability-container {
	font-size: 15px;
}

.bookacti-calendar .fc-event,
.bookacti-calendar .fc-event * {
	word-break: normal;
	overflow-wrap: normal;
}

.bookacti-calendar .fc-event .fc-event-main,
.bookacti-calendar .fc-event .fc-event-title {
	overflow: hidden;
}

/* Sections and banners sit flush, as in Avada (Kadence adds a block gap to every top-level block) */
.entry-content > :is(.tci-section, .tci-hero, .wp-block-spacer),
.tci-section .wp-block-columns {
	margin-top: 0;
	margin-bottom: 0;
}

/* Links in content: Avada link colour is the dark text colour, no underline, red on hover */
:where(.entry-content) a:where(:not(.wp-block-button__link):not(.tab-link)) {
	color: var(--tci-dark);
	text-decoration: none;
}

:where(.entry-content) a:where(:not(.wp-block-button__link):not(.tab-link)):hover {
	color: var(--tci-red);
}

/* Sections opened by an anchor (home tiles) stay clear of the sticky header */
.tci-section[id] {
	scroll-margin-top: 90px;
}

/* Avada responsive typography for the default headings (same ranges as tools/convert_avada.py fluid_values()) */
@media (max-width: 1600px) {
	.entry-content h1 { font-size: calc(80px - (1600px - 100vw) * 0.022742); }
	.entry-content h2 { font-size: calc(67px - (1600px - 100vw) * 0.016452); }
	.entry-content h3 { font-size: calc(67px - (1600px - 100vw) * 0.016452); }
}

@media (max-width: 1000px) {
	.entry-content h1 { font-size: calc(80px - (1000px - 100vw) * 0.044063); }
	.entry-content h2 { font-size: calc(67px - (1000px - 100vw) * 0.031875); }
	.entry-content h3 { font-size: calc(67px - (1000px - 100vw) * 0.031875); }
}

.wp-block-columns.tci-row--wrap {
	flex-wrap: wrap !important;
}

.wp-block-columns.tci-row--wrap > .wp-block-column:not([style*="flex-basis"]) {
	flex-basis: 100% !important;
}

/* Tables on small screens as Avada renders them: 16px/20px, no cell padding, edge to edge */
@media (max-width: 800px) {
	.tci-table {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: 0;
	}

	.tci-table table {
		width: 100%;
		table-layout: auto;
	}

	.tci-table table th,
	.tci-table table td {
		width: auto !important;
		font-size: 16px;
		line-height: 20px;
		padding: 0 2px;
	}
}

@media (max-width: 800px) {
	.tci-section .wp-block-group[class*="tci-col"] {
		width: auto !important;
	}
}

/* Evenimente tabs: Avada "clean" tab content spacing (Tarife overrides it on live) */
@media (min-width: 1001px) {
	.tci-tabs.tci-evenimente .tci-tabs__panel {
		margin: 80px 120px 100px;
		padding: 0 20px;
	}
}

/* A link inside text given its own colour (e.g. red e-mail/phone) takes that colour, as on live */
.entry-content [style*="color"] > a {
	color: inherit;
}

/* Menu flipbook (PDF pages as images) as the live flipbook: grey panel, "1 / 9" pill top left, chevrons at the sides */
.tci-flipbook {
	position: relative;
	width: 100%;
	max-width: 1168px;
	margin: 0 auto;
	padding: 20px 0;
	background: #53565a;
	text-align: center;
}

.tci-flipbook__page {
	margin: 0;
}

.tci-flipbook__page img {
	display: block;
	max-width: 100%;
	max-height: 786px;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.tci-flipbook__nav {
	position: static;
}

.tci-flipbook__count {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 14px 18px;
	border-radius: 24px;
	background: rgba(0, 0, 0, 0.45);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-size: 14px;
	line-height: 1.4;
}

.tci-flipbook__nav button {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 80px;
	margin-top: -40px;
	padding: 0;
	border: 0;
	background: none;
	color: #ffffff;
	font-size: 64px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
}

.tci-flipbook__prev {
	left: 30px;
}

.tci-flipbook__next {
	right: 30px;
}

.tci-flipbook__nav button:hover {
	opacity: 1;
	color: var(--tci-red);
}

@media (max-width: 767px) {
	.tci-flipbook {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		padding: 7px 0;
	}

	.tci-flipbook__page img {
		max-height: 262px;
	}

	.tci-flipbook__nav button {
		font-size: 44px;
	}

	.tci-flipbook__prev {
		left: 8px;
	}

	.tci-flipbook__next {
		right: 8px;
	}
}

/* Footer social icons as on live: 18px glyphs, 20px apart; Facebook as a plain "f" */
.tci-footer .wp-block-social-links {
	gap: 20px;
}

.tci-footer .wp-block-social-links .wp-social-link a {
	padding: 0;
}

.tci-footer .wp-block-social-links .wp-social-link,
.tci-footer .wp-block-social-links .wp-social-link a {
	font-size: 18px;
}

.tci-footer .wp-block-social-links .wp-social-link svg {
	width: 18px;
	height: 18px;
}

.tci-footer .wp-block-social-links .wp-social-link-facebook svg {
	visibility: hidden;
}

.tci-footer .wp-block-social-links .wp-social-link-facebook a {
	position: relative;
}

.tci-footer .wp-block-social-links .wp-social-link-facebook a::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tci-red);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.1 288l14.2-92.7h-88.9v-60.1c0-25.4 12.4-50.1 52.2-50.1h40.4V6.3S260.4 0 225.4 0c-73.2 0-121.1 44.4-121.1 124.7v70.6H22.9V288h81.4v224h100.2V288z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.1 288l14.2-92.7h-88.9v-60.1c0-25.4 12.4-50.1 52.2-50.1h40.4V6.3S260.4 0 225.4 0c-73.2 0-121.1 44.4-121.1 124.7v70.6H22.9V288h81.4v224h100.2V288z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Footer bottom bar: each link centred in its cell, multi-line text left-aligned (as Avada's row columns) */
.tci-footer .tci-section:last-child .wp-block-column {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: left;
}

/* Nested lists use hollow circles, as on live */
.entry-content ul ul {
	list-style-type: circle;
}

/* Lists in text elements keep the browser spacing Avada uses: 1em above and below, 40px indent; nested lists no margin */
.entry-content :is(ul, ol):not([class]) {
	margin: 1em 0;
	padding-left: 40px;
}

.entry-content :is(ul, ol) :is(ul, ol):not([class]) {
	margin: 0;
}

/* Avada tables have no margin of their own */
.entry-content .tci-table table {
	margin: 0;
}

/* Avada image frames have no outer margin (WordPress gives image blocks a bottom margin) */
.entry-content .wp-block-image[class*="tci-i"] {
	margin-top: 0;
	margin-bottom: 0;
}

/* Avada buttons keep their label on one line */
.entry-content .wp-block-button__link {
	white-space: nowrap;
}

/* Avada never breaks a word that is too long for its line (Kadence does) */
.entry-content {
	word-break: normal;
}

/* Avada heading margins inside text elements (h5 0.65em, h6 0.8em above and below) */
.entry-content .tci-text h5 {
	margin: 0.65em 0;
}

.entry-content .tci-text h6 {
	margin: 0.8em 0;
}

/* An empty <pre> left in the live content keeps its 1em margins (e.g. above the Tarife price tables) */
.entry-content pre.tci-pre-empty {
	margin: 22px 0;
	padding: 0;
	border: 0;
	background: none;
}

/* In the mobile tab bars the empty <pre>'s top margin merges with the panel's own margin on live */
@media (max-width: 1000px) {
	.tci-tabs__panel > pre.tci-pre-empty:first-child {
		margin-top: 0;
	}
}

/* A title's paragraph (kept for the site's custom CSS) adds no spacing */
.wp-block-heading[class*="tci-t"] > p {
	margin: 0;
}

/* Avada sets no H4 line height: it inherits the surrounding text's (e.g. 40px in a text element) */
.entry-content h4 {
	line-height: inherit;
}
