:root {
	--ana-green: #346b4a;
	--ana-green-dark: #2a563c;
	--ana-green-light: #3f7d58;
	--ana-text: #111111;
	--ana-muted: #5c5c5c;
	--ana-border: #e6e6e6;
	--ana-white: #ffffff;
	--ana-topbar-h: 32px;
	--ana-nav-h: 54px;
	--bs-primary: #346b4a;
	--bs-primary-rgb: 52, 107, 74;
	--bs-link-color: #346b4a;
	--bs-link-hover-color: #2a563c;
}

html,
body {
	font-family: Roboto, "Open Sans", Arial, sans-serif;
	color: var(--ana-text);
	background: var(--ana-white);
}

a {
	color: var(--ana-green);
}

a:hover {
	color: var(--ana-green-dark);
}

.btn-primary,
.wp-block-button__link {
	background-color: var(--ana-green);
	border-color: var(--ana-green);
	color: #fff;
}

.btn-primary:hover,
.wp-block-button__link:hover {
	background-color: var(--ana-green-dark);
	border-color: var(--ana-green-dark);
	color: #fff;
}

#wrapper {
	overflow-x: clip;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* -------------------------------------------------------------------------
   Sticky header
   ------------------------------------------------------------------------- */

.ana-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	flex-shrink: 0;
	background: var(--ana-white);
	box-shadow: 0 1px 0 var(--ana-border), 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 783px) {
	.admin-bar .ana-header {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

/* -------------------------------------------------------------------------
   Top bar (ana.it)
   ------------------------------------------------------------------------- */

.ana-topbar {
	background: var(--ana-green);
	color: #fff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 11px;
	letter-spacing: 0.04em;
	min-height: var(--ana-topbar-h);
}

.ana-topbar a {
	color: #fff;
}

.ana-topbar a:hover {
	color: #fff;
	opacity: 0.8;
}

.ana-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--ana-topbar-h);
}

.ana-topbar__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	white-space: nowrap;
	text-transform: lowercase;
}

.ana-topbar__location {
	font-weight: 700;
	text-transform: uppercase;
}

.ana-topbar__date {
	opacity: 0.95;
}

.ana-top-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.15rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ana-top-menu a {
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.ana-social {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.ana-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

/* -------------------------------------------------------------------------
   Main navigation (white bar)
   ------------------------------------------------------------------------- */

.ana-mainnav {
	background: #fff;
	//border-bottom: 1px solid var(--ana-border);
	min-height: var(--ana-nav-h);
	padding-top: 0;
	padding-bottom: 0;
}

.ana-mainnav.navbar {
	--bs-navbar-padding-y: 0;
}

.ana-mainnav__inner {
	position: relative;
	min-height: var(--ana-nav-h);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.ana-brand {
	order: 1;
	font-weight: 700;
	font-size: 1rem;
	color: var(--ana-text) !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-right: 1rem;
}

.ana-nav-tools {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	margin-left: auto;
	position: relative;
	z-index: 3;
	order: 2;
	flex-shrink: 0;
}

.ana-mainnav .navbar-toggler {
	order: 3;
}

.ana-mainnav .navbar-collapse {
	order: 4;
}

@media (min-width: 992px) {
	.ana-mainnav .navbar-collapse {
		order: 2;
		flex-grow: 1;
	}

	.ana-nav-tools {
		order: 3;
		margin-left: 0;
	}
}

.ana-logo-img {
	height: 42px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

.home .ana-brand {
	position: absolute;
	left: 12px;
}

@media (min-width: 992px) {
	/*.home:has(.ana-hero) .ana-brand {
		visibility: hidden;
		pointer-events: none;
	}*/
}

.ana-nav {
	font-family: Roboto, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ana-nav .nav-link {
	color: #111 !important;
	padding: 0.9rem 0.85rem !important;
}

.ana-nav .nav-link:hover,
.ana-nav .nav-link:focus,
.ana-nav .current-menu-item > .nav-link,
.ana-nav .nav-link[aria-current="page"] {
	color: var(--ana-green) !important;
}

.ana-nav .dropdown-menu {
	border: 1px solid var(--ana-border);
	border-radius: 0;
	padding: 0.35rem 0;
	font-size: 13px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}

.ana-nav .dropdown-item:hover,
.ana-nav .dropdown-item:focus {
	background: var(--ana-green);
	color: #fff;
}

.navbar-toggler {
	border: 0;
	padding: 0.35rem;
}

.ana-search {
	position: relative;
}

.ana-search__toggle {
	background: none;
	border: 0;
	padding: 0.5rem;
	color: #111;
	line-height: 1;
}

.ana-search__toggle:hover {
	color: var(--ana-green);
}

.ana-search__form {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% - 4px);
	z-index: 20;
	min-width: 240px;
	background: #fff;
	padding: 0.5rem;
	border: 1px solid var(--ana-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ana-search.is-open .ana-search__form {
	display: block;
}

.ana-cart-toggle {
	position: relative;
	background: none;
	border: 0;
	padding: 0.5rem;
	color: #111;
	line-height: 1;
	cursor: pointer;
}

.ana-cart-toggle:hover,
.ana-cart-toggle:focus {
	color: var(--ana-green);
}

.ana-cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 99px;
	background: var(--ana-green);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.ana-cart-count.is-empty {
	display: none;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

#main {
	margin-top: 0;
	padding-top: 0;
	padding-bottom: 0;
	flex: 1 0 auto;
}

.ana-main--full {
	padding-top: 0;
	padding-bottom: 0;
}

.ana-home-body {
	padding-top: 2rem;
	//padding-bottom: 3rem;
}

.ana-page-featured {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 2.5rem;
}

.ana-page-featured img,
.ana-page-featured .wp-post-image {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}

.ana-page-featured + .entry-title {
	margin-top: 0;
}

.entry-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.entry-content {
	line-height: 1.7;
}

/* -------------------------------------------------------------------------
   Sidebar / widgets
   ------------------------------------------------------------------------- */

#sidebar {
	padding-top: 0.25rem;
}

.widget {
	margin-bottom: 1.75rem;
}

.widget-title {
	background: var(--ana-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.85rem;
	padding: 0.55rem 0.75rem;
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
	border-bottom: 1px solid var(--ana-border);
	padding: 0.45rem 0;
}

.widget li:last-child {
	border-bottom: 0;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.ana-footer {
	margin-top: auto;
}

.ana-footer__widgets {
	background: #1f1f1f;
	color: #ddd;
	padding: 2.5rem 0 1.5rem;
}

.ana-footer__col {
	margin-bottom: 1.5rem;
}

.ana-footer__col .widget:last-child {
	margin-bottom: 0;
}

.ana-footer__widgets .widget-title {
	background: transparent;
	padding: 0 0 0.5rem;
	border-bottom: 2px solid var(--ana-green);
	display: inline-block;
	margin-bottom: 1rem;
}

.ana-footer__widgets a {
	color: #fff;
}

.ana-footer__widgets a:hover {
	color: var(--ana-green);
}

.ana-footer__widgets .widget li {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ana-footer__widgets .textwidget p:last-child {
	margin-bottom: 0;
}

.ana-subfooter {
	background: var(--ana-green);
	color: #fff;
	font-size: 12px;
	padding: 0.7rem 0;
}

.ana-subfooter a {
	color: #fff;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.ana-subfooter a:hover {
	opacity: 0.8;
	color: #fff;
}

.ana-footer-nav .nav {
	gap: 1rem;
}

/* -------------------------------------------------------------------------
   Fullscreen hero gallery
   ------------------------------------------------------------------------- */

.ana-hero {
	position: relative;
	width: 100%;
	height: var(--ana-hero-height, 100vh);
	min-height: 420px;
	overflow: hidden;
	background: #111;
}

.container .ana-hero,
.ana-main--full .container .ana-hero,
.wpb_column .ana-hero,
.vc_column_container .ana-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.ana-hero__carousel,
.ana-hero .carousel-inner,
.ana-hero .carousel-item {
	height: 100%;
}

.ana-hero__media {
	position: relative;
	height: 100%;
}

.ana-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ana-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, calc(var(--ana-hero-overlay, 0.35) + 0.25)) 0%,
		rgba(0, 0, 0, calc(var(--ana-hero-overlay, 0.35) * 0.35)) 45%,
		rgba(0, 0, 0, 0.08) 100%
	);
	pointer-events: none;
}

.ana-hero__logo {
	position: absolute;
	top: 1.5rem;
	right: 1.75rem;
	z-index: 5;
}

.ana-hero__logo a {
	display: block;
}

.ana-hero__logo img {
	display: block;
	max-height: 160px;
	width: auto;
	max-width: min(240px, 46vw);
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.ana-hero__caption {
	position: absolute;
	left: clamp(1.25rem, 5vw, 4.5rem);
	bottom: clamp(2rem, 8vh, 5rem);
	z-index: 4;
	max-width: min(640px, 90%);
	color: #fff;
	text-align: left;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.ana-hero__title {
	font-size: clamp(1.6rem, 3.2vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: #fff;
}

.ana-hero__text,
.ana-hero__html {
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	margin: 0 0 1rem;
	color: #fff;
}

.ana-hero__btn {
	display: inline-block;
	background: var(--ana-green);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.7rem 1.35rem;
	border: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ana-hero__btn:hover {
	background: var(--ana-green-dark);
	color: #fff !important;
}

.ana-hero .carousel-control-prev,
.ana-hero .carousel-control-next {
	width: 6%;
	opacity: 0.85;
}

.ana-hero .carousel-control-prev-icon,
.ana-hero .carousel-control-next-icon {
	width: 1.6rem;
	height: 1.6rem;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.ana-hero .carousel-indicators {
	margin-bottom: 1rem;
}

.ana-hero .carousel-indicators [data-bs-target] {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #fff;
}

/* -------------------------------------------------------------------------
   Eventi
   ------------------------------------------------------------------------- */

.ana-event__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
	margin: 0 0 1.25rem;
	color: var(--ana-muted);
	font-size: 0.9rem;
}

.ana-event__cats a {
	text-decoration: none;
}

.ana-event__gallery {
	margin-top: 2.5rem;
}

.ana-event__map {
	margin-top: 2.5rem;
}

.ana-event__map-title,
.ana-event__gallery-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.ana-event__map-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--ana-border);
}

.ana-event__map-embed iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ana-event-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.ana-event-gallery__item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ana-border);
}

.ana-event-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.ana-event-gallery__item:hover img {
	transform: scale(1.04);
}

.ana-event-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.25rem;
	margin: 0 0 1.75rem;
}

.ana-event-filters__item {
	color: var(--ana-green);
	font-size: 0.95rem;
	font-weight: 400;
	text-decoration: none;
	line-height: 1.4;
}

.ana-event-filters__item:hover {
	color: var(--ana-green-dark);
	text-decoration: underline;
}

.ana-event-filters__item.is-active {
	color: var(--ana-text);
	font-weight: 700;
	text-decoration: none;
}

.ana-event-filters__item.is-active:hover {
	color: var(--ana-text);
	text-decoration: none;
}

.ana-event-archive {
	--bs-gutter-y: 0;
}

.ana-event-card {
	height: 100%;
	margin-bottom: 1.5rem;
	border: 1px solid var(--ana-border);
	background: #fff;
}

.ana-event-card__media {
	display: block;
	aspect-ratio: 8 / 5;
	overflow: hidden;
	background: #eef3ef;
}

.ana-event-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ana-event-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eef3ef, #d7e4db);
}

.ana-event-card__body {
	padding: 1.1rem 1.15rem 1.25rem;
}

.ana-event-card__cats {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ana-event-card__cats a {
	text-decoration: none;
}

.ana-event-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.ana-event-card__title a {
	color: var(--ana-text);
	text-decoration: none;
}

.ana-event-card__title a:hover {
	color: var(--ana-green);
}

.ana-event-card__date {
	display: block;
	margin-bottom: 0.65rem;
	color: var(--ana-muted);
	font-size: 0.85rem;
}

.ana-event-card__excerpt p:last-child {
	margin-bottom: 0;
}

.ana-event-slider {
	position: relative;
}

.ana-event-slider__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
}


.ana-event-slider .splide {
	padding-bottom: 3.25rem;
}

.ana-event-slider .splide__slide {
	height: auto;
}

.ana-event-slider .splide__slide .ana-event-card {
	height: 100%;
	margin-bottom: 0;
}

.ana-event-slider .splide__arrows {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	gap: 0.35rem;
	z-index: 1;
}

.ana-event-slider .splide__arrow {
	position: static;
	transform: none;
	width: 2.25rem;
	height: 2.25rem;
	opacity: 1;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: var(--ana-green);
}

.ana-event-slider .splide__arrow svg {
	fill: #fff;
	width: 1rem;
	height: 1rem;
}

.ana-event-slider .splide__arrow:hover:not(:disabled) {
	background: var(--ana-green-dark);
}

.ana-event-slider .splide__arrow:hover:not(:disabled) svg {
	fill: #fff;
}

.ana-event-slider .splide__arrow:disabled {
	opacity: 0.35;
}

.ana-event-slider .splide__arrow--prev,
.ana-event-slider .splide__arrow--next {
	left: auto;
	right: auto;
	top: auto;
}

.ana-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	padding: 2rem;
}

.ana-lightbox.is-open {
	display: flex;
}

.ana-lightbox__img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
}

.ana-lightbox__close,
.ana-lightbox__prev,
.ana-lightbox__next {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.35rem 0.6rem;
}

.ana-lightbox__close {
	top: 0.75rem;
	right: 1rem;
}

.ana-lightbox__prev {
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
}

.ana-lightbox__next {
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
}

.ana-lightbox__close:hover,
.ana-lightbox__prev:hover,
.ana-lightbox__next:hover {
	opacity: 0.7;
}

/* -------------------------------------------------------------------------
   Posts
   ------------------------------------------------------------------------- */

.card {
	border-radius: 0;
	border-color: var(--ana-border);
}

.card-title a {
	color: var(--ana-text);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--ana-green);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
	.ana-topbar__nav {
		display: none;
	}

	.home .ana-brand {
		position: static;
	}

	.ana-nav {
		padding: 0.75rem 0 1rem;
	}

	.ana-nav .nav-link {
		padding: 0.45rem 0 !important;
	}

	.ana-hero__logo {
		top: 1rem;
		right: 1rem;
	}

	.ana-hero__logo img {
		max-height: 88px;
	}
}

@media (max-width: 575.98px) {
	.ana-topbar__location {
		display: none;
	}

	.ana-hero {
		min-height: 360px;
	}

	.ana-event-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
