/**
 * Olobuilder - Frontend Styles
 * UIkit 3 handles most layout/component styling.
 * This file provides custom overrides and Olobuilder-specific classes.
 */

/* ========================================
   Mesh / Aurora background (bg.type = 'mesh')
   Drift animation for the multi-blob gradient.
   Built inline by Olo_CSS_Builder::build_mesh_css().
   ======================================== */
@keyframes olo-mesh-drift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%; }
  50%  { background-position: 30% 20%, 70% 10%, 40% 80%; }
  100% { background-position: 10% 30%, 90% 40%, 60% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  [style*="olo-mesh-drift"] { animation: none !important; }
}

/* CRT flicker — barra luminosa che spazza dall'alto in basso. Anima SOLO
   background-position del PRIMO layer (la barra); gli altri restano fermi
   (centrati). Content-safe. Inline da getCrtCSS()/build_crt_css().
   La lista a 5 posizioni copre il max dei layer (barra+2 scanline+curvatura+vignetta);
   con meno layer le posizioni in eccesso sono ignorate. */
@keyframes olo-crt-flicker {
  from { background-position: 0 -25%, center, center, center, center; }
  to   { background-position: 0 125%, center, center, center, center; }
}
@media (prefers-reduced-motion: reduce) {
  [style*="olo-crt-flicker"] { animation: none !important; }
}

/* ========================================
   Glow / "Bagliori" — animazioni dello sfondo (bg.type = 'glow', glow_anim).
   Animano SOLO background-size / background-position: gli aloni respirano,
   derivano o sfarfallano SENZA muovere testo o immagini sopra. Costruite inline
   da getGlowCSS()/build_glow_css() (a riposo: background-size:140% 140%).
   ======================================== */
/* Pulse — respiro d'intensità: gli aloni si gonfiano e sgonfiano.
   L'ampiezza è controllata da --olo-glow-bs-min/max (slider "Intensità respiro");
   i fallback 120%/175% mantengono invariati i template che non li impostano. */
@keyframes olo-glow-pulse {
  0%,100% { background-size: var(--olo-glow-bs-min, 120%) var(--olo-glow-bs-min, 120%); }
  50%     { background-size: var(--olo-glow-bs-max, 175%) var(--olo-glow-bs-max, 175%); }
}
/* Drift — deriva lenta della posizione, dimensione costante */
@keyframes olo-glow-drift {
  0%   { background-position: 50% 50%; }
  25%  { background-position: 38% 42%; }
  50%  { background-position: 60% 58%; }
  75%  { background-position: 45% 62%; }
  100% { background-position: 50% 50%; }
}
/* Wander — respiro + deriva combinati (più organico) */
@keyframes olo-glow-wander {
  0%   { background-size: 130% 130%; background-position: 42% 46%; }
  50%  { background-size: 170% 170%; background-position: 60% 56%; }
  100% { background-size: 130% 130%; background-position: 42% 46%; }
}
/* Flicker — micro-sfarfallio irregolare, tipo neon vivo (steps) */
@keyframes olo-glow-flicker {
  0%,100% { background-size: 150% 150%; }
  20%     { background-size: 158% 158%; }
  35%     { background-size: 142% 142%; }
  55%     { background-size: 168% 168%; }
  70%     { background-size: 146% 146%; }
  85%     { background-size: 160% 160%; }
}
/* Scroll — stessa progressione del wander ma legata allo scroll (vedi sotto) */
@keyframes olo-glow-scroll {
  0%   { background-size: 120% 120%; background-position: 50% 30%; }
  100% { background-size: 185% 185%; background-position: 50% 75%; }
}
/* ── Preset COMBINATI: due animazioni atomiche (una su size, una su position)
   montate su durate diverse → moto composito che non si ripete mai uguale.
   Gli inline-style applicano `animation: <size-kf> Xs, <pos-kf> Ys`. ── */
/* atomiche — solo background-size (ampiezza via --olo-glow-bs-min/max, fallback 125/180) */
@keyframes olo-glow-size-breathe {
  0%,100% { background-size: var(--olo-glow-bs-min, 125%) var(--olo-glow-bs-min, 125%); }
  50%     { background-size: var(--olo-glow-bs-max, 180%) var(--olo-glow-bs-max, 180%); }
}
@keyframes olo-glow-size-throb   { 0%,100% { background-size: 150% 150%; } 18% { background-size: 162% 162%; } 37% { background-size: 140% 140%; } 60% { background-size: 172% 172%; } 80% { background-size: 146% 146%; } }
/* atomiche — solo background-position */
@keyframes olo-glow-pos-orbit {
  0%   { background-position: 38% 42%; }
  25%  { background-position: 62% 38%; }
  50%  { background-position: 64% 62%; }
  75%  { background-position: 40% 60%; }
  100% { background-position: 38% 42%; }
}
@keyframes olo-glow-pos-sway {
  0%,100% { background-position: 44% 50%; }
  50%     { background-position: 58% 52%; }
}
/* Scroll-driven dove supportato (Chrome/Edge): la timeline segue l'ingresso/uscita
   dell'elemento dal viewport. Dove non supportato, resta il loop temporale inline. */
@supports (animation-timeline: view()) {
  [style*="olo-glow-scroll"] {
    animation-timeline: view() !important;
    animation-iteration-count: 1 !important;
    animation-duration: auto !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  [style*="olo-glow-"] { animation: none !important; }
}

/*
 * Grain / Noise overlay (site-wide theme option) is emitted dynamically by
 * Olo_Style_System::generate_css() targeting `.olo-template::after` when
 * olo_styles.grain.enabled is true — no static rule here so it never shows
 * unless the user turns it on.
 */

/* ========================================
   Live dot — pallino "Stato live" pulsante (tile Badge)
   Registrato UNA volta qui (frontend) + in iframe-builder.css (canvas).
   Colore dal ruolo globale: success (default) o primario (.is-brand).
   ======================================== */
.olo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olo-color-success, #22c55e);
  position: relative;
  flex: none;
  display: inline-block;
}
.olo-live-dot.is-brand { background: var(--olo-color-primary, #e1474f); }
.olo-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--olo-color-success, #22c55e);
  opacity: .6;
  animation: olo-pulse 1.8s ease-out infinite;
}
.olo-live-dot.is-brand::after { color: var(--olo-color-primary, #e1474f); }
@keyframes olo-pulse {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(2);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .olo-live-dot::after { animation: none; }
}

/* ========================================
   Animazioni LOOP continue (infinite_animation) — keyframes globali nominati.
   Usati dal path "advanced" (build_inline_animation_css); il path "settings"
   genera invece keyframe per-id parametrici. "Galleggiamento" = olo-anim-float.
   ======================================== */
@keyframes olo-anim-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes olo-anim-float-rot { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-12px) rotate(-4deg)} }
@keyframes olo-anim-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes olo-anim-spin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
@keyframes olo-anim-wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-5deg)} 75%{transform:rotate(5deg)} }
@keyframes olo-anim-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
@keyframes olo-anim-swing { 0%,100%{transform:rotate(0)} 25%{transform:rotate(10deg)} 75%{transform:rotate(-10deg)} }
@keyframes olo-anim-breathe { 0%,100%{opacity:1} 50%{opacity:0.6} }
@media (prefers-reduced-motion: reduce) {
  [style*="olo-anim-"] { animation: none !important; }
}

/* ========================================
   Template wrapper – full-width breakout
   ======================================== */
/*
 * WordPress block themes nest content in multiple
 * is-layout-constrained / has-global-padding wrappers.
 * We break out to full viewport width with the classic
 * left-50%/translateX(-50%) trick and clip overflow so
 * the scrollbar doesn't cause an asymmetric shift.
 */
body:has(.olo-template) {
  overflow-x: clip;
}
body:has(.olo-template) .wp-site-blocks {
  overflow-x: clip;
}
.olo-template {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: none !important;
  container-type: inline-size;
  container-name: olo-tpl;
}

/* Grid wrapper (used at template level) */
.olo-frontend-grid {
  position: relative;
  z-index: 2;
  display: flow-root; /* BFC: prevents child margin collapsing through parent */
  background: inherit; /* Inherit template background so section margins show correctly */
}

/* Element base */
.olo-frontend-tile {
  min-width: 0;
}

/* Larghezza adattata al contenuto (Avanzate → Posizionamento → Larghezza
   elemento): la tile è larga quanto il contenuto e più tile "adattate"
   consecutive si affiancano sulla stessa riga (pattern Elementor Inline auto). */
.olo-tile-inline {
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  vertical-align: top;
}

/* ========================================
   Container width overrides (use global CSS variable)
   ======================================== */
.olo-template .uk-container {
  max-width: var(--olo-container-max-width, 1200px);
}
.olo-template .uk-container-small {
  max-width: calc(var(--olo-container-max-width, 1200px) * 0.75);
}
.olo-template .uk-container-large {
  max-width: calc(var(--olo-container-max-width, 1200px) * 1.167);
}
.olo-template .uk-container-xlarge {
  max-width: calc(var(--olo-container-max-width, 1200px) * 1.333);
}
.olo-template .uk-container-expand {
  max-width: none;
}

/* ========================================
   Section full-bleed (edge to edge)
   ======================================== */
.olo-section-fullbleed {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ========================================
   bg_scope='container': bg layers must align with content-box
   (uk-position-cover stretches to padding-box; we offset by container padding
   so bg width matches the actual content/uk-grid width).
   ======================================== */
.olo-bg-in-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  right: 15px;
  pointer-events: none;
  z-index: 0;
}
.olo-bg-in-container > * { pointer-events: auto; }
@media (min-width: 640px) {
  .olo-bg-in-container { left: 30px; right: 30px; }
}
@media (min-width: 960px) {
  .olo-bg-in-container { left: 40px; right: 40px; }
}

/* ========================================
   Element full-width (fills its column)
   ======================================== */
.olo-tile-fullwidth {
  width: 100%;
  box-sizing: border-box;
}

/* ========================================
   Page background layers (page-level .olo-tile-bg / .olo-tile-overlay)
   Il renderer li emette come primi figli di .olo-template (div immagine,
   video, overlay). Senza queste regole il div immagine resta in flusso con
   altezza 0 → sfondo pagina invisibile sul frontend. position:relative su
   .olo-template serve anche all'overlay quando il bg è solid/pattern
   (in quel caso il wrapper non riceve position inline).
   ======================================== */
.olo-template { position: relative; }
.olo-template > .olo-tile-bg,
.olo-template > .olo-tile-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* .olo-frontend-grid ha `background: inherit` (sotto): col layer immagine/video
   il bg opaco ereditato dal template coprirebbe il layer — torna trasparente. */
.olo-template:has(> .olo-tile-bg) > .olo-frontend-grid {
  background: transparent;
}

/* ========================================
   Visibility helpers — 5 breakpoints
   Desktop ≥ 1200, Tablet L 960-1199, Tablet P 640-959, Mobile L 480-639, Mobile < 480
   ======================================== */
@media (min-width: 1200px) {
  .olo-hidden-desktop { display: none !important; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .olo-hidden-tablet-landscape { display: none !important; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .olo-hidden-tablet { display: none !important; }
}
@media (min-width: 480px) and (max-width: 639px) {
  .olo-hidden-mobile-landscape { display: none !important; }
}
@media (max-width: 479px) {
  .olo-hidden-mobile { display: none !important; }
}

/* ========================================
   Rich text content styles
   ======================================== */
.olo-frontend-tile h1,
.olo-frontend-tile h2,
.olo-frontend-tile h3,
.olo-frontend-tile h4 {
  font-weight: 600;
}
.olo-frontend-tile blockquote {
  border-left: 3px solid currentColor;
  padding-left: 0.75em;
  opacity: 0.85;
}

/* ========================================
   UIkit overrides for Olobuilder elements
   ======================================== */

/* Ensure uk-section inside Olobuilder template uses correct box-sizing */
.olo-template .uk-section {
  box-sizing: border-box;
}

/* UIkit icons — ensure color cascades into injected SVG */
.olo-template [uk-icon] > svg {
  fill: currentColor;
}
.olo-template [uk-icon] > svg [stroke="#000"] {
  stroke: currentColor;
}

/* Accordion custom styling hooks */
.olo-template .uk-accordion-title {
  font-size: 1em;
}

/* Progress bar custom colors (UIkit progress doesn't support custom colors natively) */
.olo-template .uk-progress::-webkit-progress-value {
  transition: width 0.6s ease;
}
.olo-template .uk-progress::-moz-progress-bar {
  transition: width 0.6s ease;
}

/* Slideshow text overlay readability */
.olo-template .uk-slideshow-items .uk-overlay {
  max-width: 80%;
}

/* Table responsive scroll shadow hint */
.olo-template .uk-overflow-auto {
  -webkit-overflow-scrolling: touch;
}

/* ========================================
   Header Builder
   ======================================== */

/* Header wrapper — force full viewport width regardless of parent constraints */
.olo-site-header {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  box-sizing: border-box;
  z-index: 99999;
}
.olo-site-header .olo-template {
  width: 100%;
  left: 0;
  transform: none;
  margin: 0;
  padding: 0;
}

/* --- Overlay mode: fixed at top, content goes behind the header --- */
.olo-site-header.olo-header-overlay {
  position: fixed;
  top: 0;
  pointer-events: none;
}
/* Re-enable clicks on actual tile content (bar, panels, logo, etc.) */
.olo-site-header.olo-header-overlay .olo-frontend-tile {
  pointer-events: auto;
}

/* --- Classic mode: in document flow, sticky only when JS enables it --- */
.olo-site-header.olo-header-classic {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Prevent child margins from collapsing through the section —
   this forces the section's background to cover the full area */
.olo-site-header.olo-header-classic .uk-section {
  display: flow-root;
}
/* Hide empty sections in header (rows without visible tiles) */
.olo-site-header .uk-section:not(:has(.olo-frontend-tile)) {
  display: none !important;
}
.olo-site-header.olo-header-classic + main,
.olo-site-header.olo-header-classic + .wp-block-group,
.olo-site-header.olo-header-classic ~ main,
.wp-site-blocks > .olo-site-header.olo-header-classic + * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Remove gap between classic header and first page section.
 * Excludes section with an explicit inline padding-top (so the user can
 * override via inspector → Style → Padding), sections with explicit
 * UIkit padding presets (uk-section-large/xlarge/small/remove-vertical),
 * and sections that have any background (color/image/video/gallery): per
 * queste l'utente vuole vedere il riquadro colorato intero, quindi il
 * padding-top deve essere preservato per non tagliare la parte alta. */
.olo-site-header.olo-header-classic ~ main .olo-template > .olo-frontend-grid > section:first-child:not([style*="padding-top"]):not(.uk-section-large):not(.uk-section-xlarge):not(.uk-section-small):not(.uk-padding-remove-vertical):not(.olo-section-has-bg) {
  padding-top: 0 !important;
}

/* Fallback before JS sets the class (flicker prevention) */
.olo-site-header:not(.olo-header-overlay):not(.olo-header-classic) {
  position: fixed;
  top: 0;
  pointer-events: none;
}
.olo-site-header:not(.olo-header-overlay):not(.olo-header-classic) .olo-frontend-tile {
  pointer-events: auto;
}

/* When Olobuilder header is active in overlay mode, hide the TT4 title/hero section */
header.olo-site-header.olo-header-overlay + main > .wp-block-group:first-child {
  display: none !important;
}

/* Site Logo element */
.olo-sitelogo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.olo-sitelogo-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
}
.olo-sitelogo-link:hover {
  opacity: 0.8;
}

/* Nav Menu element — no uk-navbar JS, pure CSS + uk-drop for submenus */
.olo-nav-bar {
  display: flex;
  align-items: center;
}
.olo-navmenu .uk-navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.olo-navmenu .uk-navbar-nav > li {
  position: relative;
}
.olo-navmenu .uk-navbar-nav > li > a {
  display: flex;
  align-items: center;
  padding: 0 15px;
  min-height: 40px;
  text-decoration: none;
  text-transform: none;
  color: inherit;
  transition: color 0.2s;
}
.olo-navmenu .uk-navbar-nav > li > a:hover {
  text-decoration: none;
}

/* Mobile toggle */
.olo-nav-toggle {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

/* Dropdown card styling */
.olo-nav-dropdown {
  min-width: 180px;
}

/* Offcanvas menu z-index above header */
.olo-navmenu .uk-offcanvas {
  z-index: 100000;
}

/* ========================================
   Sticky Header
   ======================================== */
.olo-site-header {
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s, top 0.3s;
  margin-block-start: 0 !important;
}
.olo-header-sticky {
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s, top 0.3s;
}
/* Classic mode + sticky: JS sets position:sticky, CSS adds visual changes */
.olo-site-header.olo-header-classic.olo-header-sticky {
  position: sticky;
  top: 0;
}
/* Offset header below WP admin bar when logged in */
.admin-bar .olo-site-header.olo-header-overlay {
  top: 32px !important;
}
.admin-bar .olo-site-header.olo-header-classic.olo-header-sticky {
  top: 32px !important;
}
@media (max-width: 782px) {
  .admin-bar .olo-site-header.olo-header-overlay {
    top: 46px !important;
  }
  .admin-bar .olo-site-header.olo-header-classic.olo-header-sticky {
    top: 46px !important;
  }
}

/* ========================================
   Mega Menu
   ======================================== */
.olo-mega-drop {
  width: 100%;
  min-width: 500px;
  max-width: 900px;
}
.olo-mega-panel {
  padding: 25px 30px;
}
.olo-mega-panel .uk-nav-header {
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.olo-mega-panel .uk-nav-default > li > a {
  padding: 4px 0;
  font-size: 0.92em;
}
.olo-mega-header-link {
  color: inherit;
  text-decoration: none;
}
.olo-mega-header-link:hover {
  text-decoration: underline;
}

/* ========================================
   Button Items
   ======================================== */
.olo-navmenu .olo-nav-btn-item {
  margin-left: 10px;
  display: flex;
  align-items: center;
}
.olo-navmenu .olo-nav-btn-item > a.uk-button {
  min-height: auto;
  line-height: 1.4;
  white-space: nowrap;
}

/* ========================================
   Footer Builder
   ======================================== */
.olo-site-footer {
  position: relative;
  z-index: 1;
  margin-block-start: 0 !important;
}
.olo-site-footer .olo-template {
  width: 100%;
  left: 0;
  transform: none;
  margin: 0;
  padding: 0;
}

/* Header/Footer: sections inherit template background unless explicitly styled */
.olo-site-header .uk-section-default,
.olo-site-footer .uk-section-default {
  background: transparent;
}
/* Ensure entire header chain is transparent by default */
.olo-site-header .olo-template,
.olo-site-header .olo-frontend-grid,
.olo-site-header .olo-frontend-tile {
  background: transparent;
}

/* ========================================
   Leaflet Locations Map
   ======================================== */

/* Popup */
.olo-map-popup {
  font-family: inherit;
  font-size: 0.9em;
  line-height: 1.5;
  max-width: 260px;
}
.olo-map-popup-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}
.olo-map-popup-title {
  display: block;
  font-size: 1.05em;
  margin-bottom: 2px;
}
.olo-map-popup-address {
  display: block;
  font-size: 0.85em;
  opacity: 0.65;
  margin-bottom: 6px;
}
.olo-map-popup-excerpt {
  margin: 0 0 6px;
  font-size: 0.88em;
  opacity: 0.8;
}
.olo-map-popup-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.olo-map-popup-rating {
  color: #f59e0b;
  font-size: 0.9em;
  letter-spacing: 1px;
}
.olo-map-popup-price {
  font-size: 0.82em;
  font-weight: 600;
  color: #16a34a;
}
.olo-map-popup-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
  font-size: 0.82em;
}
.olo-map-popup-detail strong {
  margin-right: 3px;
}
.olo-map-popup-detail a {
  color: var(--olo-color-primary, #6366F1);
  text-decoration: none;
}
.olo-map-popup-detail a:hover {
  text-decoration: underline;
}
.olo-map-popup-gallery {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  align-items: center;
}
.olo-map-popup-gallery-link {
  display: block;
  flex-shrink: 0;
}
.olo-map-popup-gallery-thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.olo-map-popup-gallery-link:hover .olo-map-popup-gallery-thumb {
  opacity: 0.75;
}
.olo-map-popup-gallery-more {
  font-size: 0.78em;
  color: #64748b;
  font-weight: 600;
  padding-left: 2px;
}
.olo-map-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.olo-map-popup-badge {
  display: inline-block;
  font-size: 0.72em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  white-space: nowrap;
}
.olo-map-popup-rental {
  background: #f8fafc;
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 6px;
}
.olo-map-popup-rental-price {
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  color: #0f172a;
}
.olo-map-popup-rental-price small {
  font-weight: 400;
  font-size: 0.75em;
  color: #64748b;
}
.olo-map-popup-rental-specs {
  display: block;
  font-size: 0.8em;
  color: #475569;
  margin-top: 2px;
}
.olo-map-popup-rental-status {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 3px;
  margin-top: 4px;
}
.olo-map-popup-rental-booked {
  background: #fef2f2;
  color: #dc2626;
}
.olo-map-popup-rental-maintenance {
  background: #fffbeb;
  color: #d97706;
}
.olo-map-popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.olo-map-popup-btn {
  display: inline-block;
  font-size: 0.82em;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--olo-color-primary, #6366F1);
  color: #fff !important;
  text-decoration: none;
}
.olo-map-popup-btn:hover {
  filter: brightness(0.85);
}
.olo-map-popup-link {
  display: inline-block;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  color: var(--olo-color-primary, #6366F1);
}
.olo-map-popup-link:hover {
  text-decoration: underline;
}

/* Filters */
.olo-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}
.olo-map-filter-pill {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.85em;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.olo-map-filter-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}
.olo-map-filter-pill.olo-map-filter-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
}
.olo-map-filter-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.olo-map-filter-pill.olo-map-filter-active .olo-map-filter-dot {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}
/* Minimal filter style for map */
.olo-map-filter-pill--minimal {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.olo-map-filter-pill--minimal:hover {
  background: transparent;
  color: #111;
  border-bottom-color: #aaa;
}
.olo-map-filter-pill--minimal.olo-map-filter-active {
  background: transparent;
  color: var(--olo-color-primary, #6366F1);
  border-bottom-color: var(--olo-color-primary, #6366F1);
}
.olo-map-filters:has(.olo-map-filter-pill--minimal) {
  gap: 16px;
}

.olo-map-filter-select {
  max-width: 250px;
}

/* SVG marker icon — remove leaflet divIcon default styles */
.olo-map-marker {
  background: none !important;
  border: none !important;
}

/* Leaflet container border radius */
.olo-map-canvas {
  z-index: 1;
}
/* Keep Leaflet controls above popups */
.olo-map-canvas .leaflet-control-container {
  z-index: 800;
}

/* Gallery lightbox overlay */
.olo-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.olo-map-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Service popup (baite/accommodation) */
.olo-map-popup-service {
  min-width: 240px;
}
.olo-map-popup-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}
.olo-map-popup-locality {
  font-weight: 500;
}
.olo-map-popup-altitude {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
}
.olo-map-popup-svc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
.olo-map-popup-svc-price-main {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.olo-map-popup-svc-price-main small {
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
}
.olo-map-popup-svc-price-we {
  font-size: 12px;
  color: #6b7280;
}
.olo-map-popup-svc-price-we small {
  font-size: 10px;
}
.olo-map-popup-svc-specs {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
/* Service popup: amenity badges */
.olo-map-popup-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.olo-map-popup-amenity-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72em;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  white-space: nowrap;
}
.olo-map-popup-amenity-emoji {
  font-size: 1.1em;
  line-height: 1;
}
/* Service popup: body wrapper */
.olo-map-popup-svc-body {
  padding: 10px 12px;
}
/* Service popup: image top radius override (handled inline) */
.olo-map-popup-service .olo-map-popup-img {
  margin-bottom: 0;
}

/* ── Service Filters Bar ── */
.olo-map-filters-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.olo-map-svc-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.olo-map-svc-filter-label {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  white-space: nowrap;
  min-width: 70px;
  flex-shrink: 0;
}
.olo-map-svc-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* Amenity pills: smaller chip */
.olo-map-filter-pill--amenity {
  font-size: 0.78em;
  padding: 3px 10px;
  border-color: #d1d5db;
}
.olo-map-filter-pill--amenity.olo-map-filter-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
}
.olo-map-amenity-icon {
  margin-right: 3px;
  font-size: 1.1em;
}
/* Counter */
.olo-map-svc-filter-counter {
  font-size: 0.78em;
  color: #6b7280;
  font-weight: 600;
  text-align: right;
  padding-top: 2px;
  border-top: 1px solid #e5e7eb;
}
/* ── Filter Style: Minimal ── */
.olo-map-filters-bar--minimal {
  background: transparent;
  border: none;
  padding: 0 0 10px;
  gap: 6px;
}
.olo-map-filters-bar--minimal .olo-map-svc-filter-label {
  font-size: 0.68em;
  color: #9ca3af;
}
.olo-map-filters-bar--minimal .olo-map-filter-pill {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 4px 2px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 2px solid transparent;
}
.olo-map-filters-bar--minimal .olo-map-filter-pill:hover {
  background: transparent;
  color: #374151;
  border-bottom-color: #d1d5db;
}
.olo-map-filters-bar--minimal .olo-map-filter-pill.olo-map-filter-active {
  background: transparent;
  color: var(--olo-color-primary, #6366F1);
  border-bottom-color: var(--olo-color-primary, #6366F1);
}
.olo-map-filters-bar--minimal .olo-map-svc-filter-pills {
  gap: 12px;
}
.olo-map-filters-bar--minimal .olo-map-svc-filter-counter {
  border-top: none;
  font-size: 0.72em;
  color: #9ca3af;
}

/* ── Filter Style: Elegant ── */
.olo-map-filters-bar--elegant {
  background: #ffffff;
  border: 1px solid #f0f0f1;
  border-radius: 6px;
  padding: 10px 16px;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.olo-map-filters-bar--elegant .olo-map-svc-filter-label {
  font-size: 0.65em;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #9ca3af;
  min-width: 60px;
}
.olo-map-filters-bar--elegant .olo-map-filter-pill {
  border: 1px solid #f0f0f1;
  border-radius: 4px;
  background: transparent;
  padding: 4px 12px;
  font-size: 0.8em;
  font-weight: 400;
  color: #6b7280;
  transition: all 0.2s ease;
}
.olo-map-filters-bar--elegant .olo-map-filter-pill:hover {
  background: #fafafa;
  border-color: #d1d5db;
  color: #374151;
}
.olo-map-filters-bar--elegant .olo-map-filter-pill.olo-map-filter-active {
  background: transparent;
  border-color: var(--olo-color-primary, #6366F1);
  color: var(--olo-color-primary, #6366F1);
  font-weight: 500;
}
.olo-map-filters-bar--elegant .olo-map-filter-pill--amenity.olo-map-filter-active {
  background: transparent;
  border-color: var(--olo-color-primary, #6366F1);
  color: var(--olo-color-primary, #6366F1);
}
.olo-map-filters-bar--elegant .olo-map-svc-filter-group {
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 6px;
}
.olo-map-filters-bar--elegant .olo-map-svc-filter-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.olo-map-filters-bar--elegant .olo-map-svc-filter-counter {
  border-top: none;
  font-size: 0.72em;
  color: #c0c4cc;
  font-weight: 400;
}

/* ── Filter Style: Modern ── */
.olo-map-filters-bar--modern {
  background: #111827;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  gap: 10px;
}
.olo-map-filters-bar--modern .olo-map-svc-filter-label {
  font-size: 0.7em;
  color: #9ca3af;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
}
.olo-map-filters-bar--modern .olo-map-filter-pill {
  border: 1px solid #374151;
  border-radius: 8px;
  background: #1f2937;
  padding: 5px 14px;
  font-size: 0.82em;
  font-weight: 500;
  color: #d1d5db;
  transition: all 0.15s ease;
}
.olo-map-filters-bar--modern .olo-map-filter-pill:hover {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}
.olo-map-filters-bar--modern .olo-map-filter-pill.olo-map-filter-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}
.olo-map-filters-bar--modern .olo-map-filter-pill--amenity.olo-map-filter-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
}
.olo-map-filters-bar--modern .olo-map-svc-filter-counter {
  border-top: 1px solid #374151;
  color: #6b7280;
  font-size: 0.78em;
}

/* ── Filter Style: Compact (dropdowns) ── */
.olo-map-filters-bar--compact {
  background: transparent;
  border: none;
  padding: 0 0 10px;
  gap: 8px;
}
.olo-map-compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.olo-map-compact-select {
  padding: 7px 32px 7px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") right 10px center no-repeat;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.85em;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 120px;
}
.olo-map-compact-select:hover {
  border-color: #9ca3af;
}
.olo-map-compact-select:focus {
  outline: none;
  border-color: var(--olo-color-primary, #6366F1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.olo-map-compact-select:focus-visible {
  outline: 2px solid var(--olo-color-primary, #6366F1);
  outline-offset: 2px;
}
.olo-map-filters-bar--compact .olo-map-svc-filter-counter {
  border-top: none;
  font-size: 0.78em;
  color: #9ca3af;
}

/* ── Filter position: side layout (left / right) ── */
.olo-map-layout-side {
  display: flex;
  gap: 0;
}
.olo-map-layout-side > .olo-map-filters-bar {
  width: 280px;
  min-width: 280px;
  max-height: 600px;
  overflow-y: auto;
  flex-shrink: 0;
}
.olo-map-layout-right {
  flex-direction: row-reverse;
}
/* Side layout: vertical filter bar adjustments */
.olo-map-layout-side > .olo-map-filters-bar {
  border-radius: 0;
}
.olo-map-layout-left > .olo-map-filters-bar {
  border-radius: 8px 0 0 8px;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.olo-map-layout-right > .olo-map-filters-bar {
  border-radius: 0 8px 8px 0;
  border-left: 1px solid rgba(0,0,0,0.08);
}
/* Side layout: map canvas fills height */
.olo-map-layout-side .olo-map-canvas-wrap .olo-map-canvas {
  height: 100% !important;
  min-height: 400px;
}
/* Side compact: full-width selects */
.olo-map-layout-side > .olo-map-filters-bar--compact .olo-map-compact-select {
  width: 100%;
  max-width: none;
}

/* Mobile: collapse side layout to stacked */
@container olo-tpl (max-width: 767px) {
  .olo-map-layout-side {
    flex-direction: column;
  }
  .olo-map-layout-side > .olo-map-filters-bar {
    width: 100%;
    min-width: 0;
    max-height: none;
    border-radius: 8px 8px 0 0 !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
}

/* Mobile: scroll horizontally */
@container olo-tpl (max-width: 639px) {
  .olo-map-svc-filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .olo-map-svc-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
  }
  .olo-map-filters-bar {
    padding: 8px 10px;
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Post Grid
   ═══════════════════════════════════════════════════════════ */

.olo-postgrid-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
}
.olo-postgrid-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.olo-postgrid-pill {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.85em;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.olo-postgrid-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}
.olo-postgrid-pill.olo-postgrid-pill-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
}
.olo-postgrid-filter-select {
  max-width: 250px;
}
.olo-postgrid-sort {
  max-width: 200px;
  margin-left: auto;
}

/* Card elements */
.olo-postgrid-badge {
  position: absolute;
  padding: 3px 10px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 4px;
  z-index: 1;
}
/* Position modifier — default top-left for back-compat with templates pre v3.11.64 */
.olo-postgrid-badge,
.olo-postgrid-badge--top-left   { top: 10px; left: 10px; }
.olo-postgrid-badge--top-right  { top: 10px; right: 10px; left: auto; }
.olo-postgrid-badge--bottom-left  { bottom: 10px; left: 10px; top: auto; }
.olo-postgrid-badge--bottom-right { bottom: 10px; right: 10px; left: auto; top: auto; }
.olo-postgrid-meta {
  font-size: 0.82em;
  color: #888;
  margin-bottom: 8px;
}
.olo-postgrid-excerpt {
  font-size: 0.92em;
  line-height: 1.5;
  margin-bottom: 10px;
}
.olo-postgrid-price {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--olo-color-primary, #6366F1);
  margin-bottom: 10px;
}
.olo-postgrid-link {
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
}

/* Item transition for filtering */
.olo-postgrid-item {
  transition: opacity 0.3s ease;
}

/* ── PostGrid: Minimal filter style ── */
.olo-postgrid-pill--minimal {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.olo-postgrid-pill--minimal:hover {
  background: transparent;
  color: #111;
  border-bottom-color: #aaa;
}
.olo-postgrid-pill--minimal.olo-postgrid-pill-active {
  background: transparent;
  color: var(--olo-color-primary, #6366F1);
  border-bottom-color: var(--olo-color-primary, #6366F1);
}
.olo-postgrid-filters:has(.olo-postgrid-pill--minimal) {
  gap: 16px;
}

/* ── Grid tile: Minimal filter style ── */
.olo-filter-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
}

/* ── Filter alignment (Grid + PostGrid) ── */
.olo-filter-center { justify-content: center !important; width: 100%; }
.olo-filter-right { justify-content: flex-end !important; width: 100%; }
.olo-filter-minimal__btn {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.olo-filter-minimal__btn:hover {
  color: #111;
  border-bottom-color: #aaa;
}
.olo-filter-minimal__btn.uk-active {
  color: var(--olo-color-primary, #6366F1);
  border-bottom-color: var(--olo-color-primary, #6366F1);
}

/* ── Grid filter: Buttons style ── */
.olo-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}
.olo-filter-btn {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.82em;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.olo-filter-btn:hover {
  border-color: var(--olo-color-primary, #6366F1);
  color: var(--olo-color-primary, #6366F1);
}
.olo-filter-btn.uk-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
}

/* ── Minimal card style (Grid + PostGrid) ── */
.olo-card-minimal {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.olo-card-minimal__media {
  overflow: hidden;
}
.olo-card-minimal__img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.olo-card-minimal__title {
  font-size: 1em;
  font-weight: 700;
  margin: 10px 0 4px;
  line-height: 1.3;
}
.olo-card-minimal__title a {
  color: inherit;
  text-decoration: none;
}
.olo-card-minimal__title a:hover {
  opacity: 0.75;
}
.olo-card-minimal__text {
  font-size: 0.88em;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ── PostGrid: Paginazione ── */
.olo-pg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
/* Dots */
.olo-pg-page-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.olo-pg-page-dot:hover {
  border-color: #9ca3af;
}
.olo-pg-page-dot.olo-pg-page-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
}
/* Numbers */
.olo-pg-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: transparent;
  font-size: 0.85em;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.olo-pg-page-num:hover {
  background: rgba(0,0,0,0.05);
  border-color: #9ca3af;
}
.olo-pg-page-num.olo-pg-page-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
}
/* Arrow buttons */
.olo-pg-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: transparent;
  font-size: 1.2em;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.olo-pg-page-btn:hover:not(:disabled) {
  background: rgba(0,0,0,0.05);
  border-color: #9ca3af;
}
.olo-pg-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.olo-pg-page-info {
  font-size: 0.85em;
  color: #6b7280;
  min-width: 50px;
  text-align: center;
}
/* Load more */
.olo-pg-loadmore {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: transparent;
  font-size: 0.9em;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.olo-pg-loadmore:hover {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
  color: #fff;
}

/* Empty state */
.olo-postgrid-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 0.95em;
}

/* ═══════════════════════════════════════════════════════════
   Hover Media Swap (image swap / video on hover)
   ═══════════════════════════════════════════════════════════ */
.olo-hover-wrap {
  position: relative;
  overflow: hidden;
}
.olo-hover-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
@media (hover: hover) {
  .olo-hover-wrap:hover .olo-hover-media {
    opacity: 1;
    pointer-events: auto;
  }
}
.olo-hover-media img,
.olo-hover-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   Switcher Panel
   ═══════════════════════════════════════════════════════════ */

.olo-switcherpanel {
  position: relative;
}

/* Hero */
.olo-sp-hero {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.olo-sp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.olo-sp-hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #374151, #1f2937);
}

/* Navigation — positioned at bottom of hero */
.olo-sp-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 30px;
  gap: 0;
  z-index: 2;
}
.olo-sp-nav > li > a {
  display: inline-block;
  padding: 12px 18px;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.olo-sp-nav > li > a:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.olo-sp-nav > li.uk-active > a {
  color: #fff;
}

/* Minimal nav style */
.olo-sp-nav--minimal > li > a {
  border-bottom: 2px solid transparent;
}
.olo-sp-nav--minimal > li.uk-active > a {
  border-bottom-color: #fff;
}

/* UIkit subnav overrides inside hero */
.olo-sp-hero .uk-subnav {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0 30px;
  z-index: 2;
}
.olo-sp-hero .uk-subnav > li > a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 18px;
}
.olo-sp-hero .uk-subnav > li.uk-active > a {
  color: #fff;
}
.olo-sp-hero .uk-subnav-pill > li.uk-active > a {
  background: rgba(255, 255, 255, 0.2);
}

/* Panels */
.olo-sp-panels {
  list-style: none;
  margin: 0;
  padding: 0;
}
.olo-sp-panel {
  align-items: center;
}
.olo-sp-panel-body {
  padding: 40px;
}
.olo-sp-panel__title {
  font-weight: 600;
  margin-bottom: 12px;
}
.olo-sp-panel__text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}
.olo-sp-panel__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive */
@container olo-tpl (max-width: 639px) {
  .olo-sp-nav,
  .olo-sp-hero .uk-subnav {
    padding: 0 12px;
  }
  .olo-sp-nav > li > a,
  .olo-sp-hero .uk-subnav > li > a {
    padding: 8px 10px;
    font-size: 0.7em;
  }
  .olo-sp-panel-body {
    padding: 20px;
  }
}

/* ========================================
   Sticky Effect (Cover / Reveal)
   ======================================== */
/*
 * Cover:  section sticks at top; subsequent sections scroll over it.
 * Reveal: section sticks at top; previous section scrolls away revealing it.
 * Both use position:sticky + low z-index. Non-sticky siblings get z-index:1
 * so they appear above the stuck section.
 */
.olo-sticky-cover,
.olo-sticky-reveal {
  position: sticky !important;
  top: 0;
  z-index: 0;
}

/* Non-sticky sections need z-index:1 to scroll over/above sticky ones */
.olo-frontend-grid:has(.olo-sticky-cover, .olo-sticky-reveal) > .uk-section:not(.olo-sticky-cover):not(.olo-sticky-reveal):not(.olo-sticky-cover-h):not(.olo-sticky-reveal-h),
.olo-frontend-grid:has(.olo-sticky-cover-h, .olo-sticky-reveal-h) > .uk-section:not(.olo-sticky-cover):not(.olo-sticky-reveal):not(.olo-sticky-cover-h):not(.olo-sticky-reveal-h),
.olo-frontend-grid:has(.olo-sticky-cover, .olo-sticky-reveal) > .olo-reveal-wrapper,
.olo-frontend-grid:has(.olo-sticky-cover-h, .olo-sticky-reveal-h) > .olo-reveal-wrapper {
  position: relative;
  z-index: 1;
}

/* Horizontal sticky: sections are hidden inside the h-group wrapper */
.olo-sticky-cover-h,
.olo-sticky-reveal-h {
  flex: 0 0 100%;
  width: 100%;
}

/* Horizontal group wrapper */
.olo-h-group {
  position: relative;
}
.olo-h-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  overflow: hidden;
}
.olo-h-track {
  display: flex;
  will-change: transform;
}

/* ========================================
   PostGrid — Service stats, club & opening
   ======================================== */
.olo-pg-service-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.82em;
  color: #555;
}
.olo-pg-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.olo-pg-stat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.olo-pg-service-club {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--olo-color-primary, #6366F1);
  margin-bottom: 8px;
}
.olo-pg-opening {
  position: absolute;
  top: 0;
  right: 14px;
  font-weight: 700;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  border-radius: 0 0 4px 4px;
  z-index: 2;
}

/* =====================================================
   ServiceSearch — Barra di ricerca strutture
   ===================================================== */

.olo-svsearch {
  padding: 16px 20px;
}
.olo-svsearch--horizontal {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.olo-svsearch--vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.olo-svsearch-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}
.olo-svsearch--vertical .olo-svsearch-fields {
  flex-direction: column;
}
.olo-svsearch-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  flex: 1;
}
.olo-svsearch-field--amenities {
  flex-basis: 100%;
}
.olo-svsearch-label {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: 600;
}
.olo-svsearch-select,
.olo-svsearch-input {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9em;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.olo-svsearch-select:focus,
.olo-svsearch-input:focus {
  border-color: var(--olo-color-primary, #6366F1);
}
.olo-svsearch-select:focus-visible,
.olo-svsearch-input:focus-visible {
  outline: 2px solid var(--olo-color-primary, #6366F1);
  outline-offset: 2px;
}
.olo-svsearch-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.olo-svsearch-amenity {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82em;
  cursor: pointer;
}
.olo-svsearch-amenity input[type="checkbox"] {
  accent-color: var(--olo-color-primary, #6366F1);
}
.olo-svsearch-actions {
  flex-shrink: 0;
}
.olo-svsearch-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  background: var(--olo-color-primary, #6366F1);
  color: #fff;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.olo-svsearch-btn:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
  .olo-svsearch--horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  .olo-svsearch-fields {
    flex-direction: column;
  }
  .olo-svsearch-field {
    min-width: 0;
  }
}

/* =====================================================
   ServiceResults — Pagina risultati strutture
   ===================================================== */

/* Filters bar */
.olo-svresults-filters {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}
.olo-svresults-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.olo-svresults-select {
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.88em;
  color: #333;
  background: #fff;
  outline: none;
  min-width: 120px;
  transition: border-color 0.2s;
}
.olo-svresults-select:focus {
  border-color: var(--olo-color-primary, #6366F1);
}
.olo-svresults-select:focus-visible {
  outline: 2px solid var(--olo-color-primary, #6366F1);
  outline-offset: 2px;
}
.olo-svresults-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.olo-svresults-amenity-pill {
  padding: 4px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.82em;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.olo-svresults-amenity-pill:hover {
  background: #f3f4f6;
}
.olo-svresults-amenity-active {
  background: var(--olo-color-primary, #6366F1);
  color: #fff;
  border-color: var(--olo-color-primary, #6366F1);
}
.olo-svresults-counter {
  font-size: 0.82em;
  color: #999;
}

/* Body layout */
.olo-svresults-body {
  display: flex;
  gap: 20px;
}
.olo-svresults--map-right .olo-svresults-body {
  flex-direction: row-reverse;
}
.olo-svresults--map-top .olo-svresults-body {
  flex-direction: column;
}
.olo-svresults--cards-only .olo-svresults-body {
  flex-direction: column;
}

/* Map */
.olo-svresults-map-wrap {
  flex: 0 0 50%;
  min-width: 0;
}
.olo-svresults--map-top .olo-svresults-map-wrap {
  flex: none;
  position: static !important;
}
.olo-svresults-map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
}

/* Cards wrap */
.olo-svresults-cards-wrap {
  flex: 1;
  min-width: 0;
}

/* Grid */
.olo-svresults-grid {
  display: grid;
}

/* Card */
.olo-svresults-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.olo-svresults-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.olo-svresults-card--shadow {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
}
.olo-svresults-card--minimal {
  border: none;
  background: transparent;
}
.olo-svresults-card--highlight {
  box-shadow: 0 0 0 3px var(--olo-color-primary, #6366F1) !important;
  transform: scale(1.01);
}
.olo-svresults-card-media {
  position: relative;
  overflow: hidden;
}
.olo-svresults-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.olo-svresults-card-body {
  padding: 12px 14px;
}
.olo-svresults-card-title {
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}
.olo-svresults-card-title a {
  color: inherit;
  text-decoration: none;
}
.olo-svresults-card-title a:hover {
  color: var(--olo-color-primary, #6366F1);
}
.olo-svresults-card-stats {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 6px;
}
.olo-svresults-card-excerpt {
  font-size: 0.85em;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}
.olo-svresults-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.olo-svresults-card-price {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--olo-color-primary, #6366F1);
}
.olo-svresults-card-link {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--olo-color-primary, #6366F1);
  text-decoration: none;
}
.olo-svresults-card-link:hover {
  text-decoration: underline;
}

/* Empty state */
.olo-svresults-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}
.olo-svresults-empty p {
  margin: 0;
  font-size: 0.95em;
}

/* Pagination */
.olo-svresults-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 0;
}
.olo-svresults-pg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.olo-svresults-pg-dot.olo-svresults-pg-active {
  background: var(--olo-color-primary, #6366F1);
  border-color: var(--olo-color-primary, #6366F1);
}
.olo-svresults-pg-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 0.88em;
  cursor: pointer;
  background: #fff;
  color: #555;
  transition: all 0.2s;
}
.olo-svresults-pg-num.olo-svresults-pg-active {
  background: var(--olo-color-primary, #6366F1);
  color: #fff;
  border-color: var(--olo-color-primary, #6366F1);
}
.olo-svresults-pg-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.olo-svresults-pg-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.olo-svresults-pg-arrow:hover:not(:disabled) {
  background: #f3f4f6;
}
.olo-svresults-pg-info {
  font-size: 0.85em;
  color: #888;
}
.olo-svresults-pg-loadmore {
  padding: 10px 28px;
  border: 1px solid var(--olo-color-primary, #6366F1);
  border-radius: 999px;
  background: transparent;
  color: var(--olo-color-primary, #6366F1);
  font-size: 0.88em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.olo-svresults-pg-loadmore:hover {
  background: var(--olo-color-primary, #6366F1);
  color: #fff;
}

/* Map popup */
.olo-svresults-popup {
  max-width: 240px;
  font-size: 0.88em;
}
.olo-svresults-popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
  display: block;
}
.olo-svresults-popup-body a {
  color: inherit;
  text-decoration: none;
}
.olo-svresults-popup-body a:hover {
  color: var(--olo-color-primary, #6366F1);
}
.olo-svresults-popup-stats {
  font-size: 0.85em;
  color: #888;
  margin-top: 3px;
}
.olo-svresults-popup-price {
  font-weight: 700;
  color: var(--olo-color-primary, #6366F1);
  margin-top: 4px;
}

/* Marker bounce animation */
@keyframes olo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.olo-svresults-marker-bounce {
  animation: olo-bounce 0.5s ease infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .olo-svresults-body {
    flex-direction: column !important;
  }
  .olo-svresults-map-wrap {
    flex: none !important;
    position: static !important;
    height: 300px !important;
  }
  .olo-svresults-filters-row {
    flex-direction: column;
  }
  .olo-svresults-select {
    min-width: 0;
  }
  .olo-svresults-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── HostCard ─── */
.olo-hostcard--card .olo-hostcard-trigger {
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.olo-hostcard--card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.olo-hostcard--card .olo-hostcard-trigger:hover {
  transform: translateY(-1px);
}
.olo-hostcard-header {
  text-align: center;
  margin-bottom: 20px;
}
.olo-hostcard-photo {
  display: block;
  margin: 0 auto 12px;
}
.olo-hostcard-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}
.olo-hostcard-role {
  font-size: 14px;
  color: #6b7280;
}
.olo-hostcard-body {
  font-size: 15px;
  color: #374151;
}
.olo-hostcard-bio {
  line-height: 1.65;
  margin-bottom: 16px;
}
.olo-hostcard-bio p {
  margin: 0 0 10px;
}
.olo-hostcard-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.olo-hostcard-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.olo-hostcard-contact-item:hover {
  color: var(--olo-color-primary, #6366F1);
}
.olo-hostcard-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.olo-hostcard-languages-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}
.olo-hostcard-lang-pill {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.olo-hostcard-services {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.olo-hostcard-services-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}
.olo-hostcard-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.olo-hostcard-services li {
  padding: 4px 0;
}
.olo-hostcard-services a {
  color: var(--olo-color-primary, #6366F1);
  text-decoration: none;
  font-size: 14px;
}
.olo-hostcard-services a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .olo-hostcard-modal {
    padding: 20px !important;
  }
}

/* ─── Accessibility: reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .olo-template *,
  .olo-template *::before,
  .olo-template *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .olo-template [uk-scrollspy],
  .olo-template [data-uk-scrollspy] {
    opacity: 1 !important;
    transform: none !important;
  }
  .olo-template .olo-proslider-kenburns {
    animation: none !important;
  }
  /* Background Gallery: stop Ken Burns zoom + slide movement; il cambio
     immagine resta (gestito da JS) ma senza animazione/transizione. */
  .olo-template .olo-bg-gallery-slide {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .olo-template .olo-hover-wrap .olo-hover-media {
    transition: none !important;
  }
}

/* ── Row stack responsive ── */
@media (max-width: 639px) {
  .olo-row--stack-mobile {
    flex-direction: column !important;
  }
  .olo-row--stack-mobile > .olo-row-col {
    width: 100% !important;
  }
}
@media (max-width: 959px) {
  .olo-row--stack-tablet {
    flex-direction: column !important;
  }
  .olo-row--stack-tablet > .olo-row-col {
    width: 100% !important;
  }
}
/* Legacy compat: old class name */
@media (max-width: 639px) {
  .olo-row--stack {
    flex-direction: column !important;
  }
  .olo-row--stack > .olo-row-col {
    width: 100% !important;
  }
}

/* ── Override WP block theme heading sizes (TT4 etc.) ── */
.olo-template .uk-heading-small { font-size: 2rem !important; }
.olo-template .uk-heading-medium { font-size: 2.8875rem !important; }
.olo-template .uk-heading-large { font-size: 3.4rem !important; }
.olo-template .uk-heading-xlarge { font-size: 4rem !important; }
@media (min-width: 960px) {
  .olo-template .uk-heading-small { font-size: 2.6rem !important; }
  .olo-template .uk-heading-medium { font-size: 3.5rem !important; }
  .olo-template .uk-heading-large { font-size: 4rem !important; }
  .olo-template .uk-heading-xlarge { font-size: 5.5rem !important; }
}

/* ─── Background Gallery Slideshow ─── */
.olo-bg-gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.olo-bg-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: opacity, transform, filter;
}
.olo-bg-gallery[data-transition="fade"] .olo-bg-gallery-slide,
.olo-bg-gallery:not([data-transition]) .olo-bg-gallery-slide {
  transition: opacity var(--olo-gallery-trans-ms, 500ms) ease;
}
.olo-bg-gallery[data-transition="crossfade"] .olo-bg-gallery-slide {
  transition: opacity var(--olo-gallery-trans-ms, 800ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.olo-bg-gallery[data-transition="slide"] .olo-bg-gallery-slide {
  transition: opacity var(--olo-gallery-trans-ms, 600ms) ease, transform var(--olo-gallery-trans-ms, 600ms) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(100%);
}
.olo-bg-gallery[data-transition="slide"] .olo-bg-gallery-slide.olo-bg-gallery--active { transform: translateX(0); }
.olo-bg-gallery[data-transition="slide"] .olo-bg-gallery-slide.olo-bg-gallery--leaving { transform: translateX(-100%); }
.olo-bg-gallery[data-transition="slide-up"] .olo-bg-gallery-slide {
  transition: opacity var(--olo-gallery-trans-ms, 600ms) ease, transform var(--olo-gallery-trans-ms, 600ms) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(100%);
}
.olo-bg-gallery[data-transition="slide-up"] .olo-bg-gallery-slide.olo-bg-gallery--active { transform: translateY(0); }
.olo-bg-gallery[data-transition="slide-up"] .olo-bg-gallery-slide.olo-bg-gallery--leaving { transform: translateY(-100%); }
.olo-bg-gallery[data-transition="zoom"] .olo-bg-gallery-slide {
  transition: opacity var(--olo-gallery-trans-ms, 600ms) ease, transform var(--olo-gallery-trans-ms, 600ms) ease;
  transform: scale(1.3);
}
.olo-bg-gallery[data-transition="zoom"] .olo-bg-gallery-slide.olo-bg-gallery--active { transform: scale(1); }
.olo-bg-gallery[data-transition="blur"] .olo-bg-gallery-slide {
  transition: opacity var(--olo-gallery-trans-ms, 600ms) ease, filter var(--olo-gallery-trans-ms, 600ms) ease;
  filter: blur(20px);
}
.olo-bg-gallery[data-transition="blur"] .olo-bg-gallery-slide.olo-bg-gallery--active { filter: blur(0); }
.olo-bg-gallery[data-transition="flip"] .olo-bg-gallery-slide {
  transition: opacity var(--olo-gallery-trans-ms, 600ms) ease, transform var(--olo-gallery-trans-ms, 600ms) ease;
  transform: rotateY(90deg);
  backface-visibility: hidden;
}
.olo-bg-gallery[data-transition="flip"] .olo-bg-gallery-slide.olo-bg-gallery--active { transform: rotateY(0); }
.olo-bg-gallery[data-transition="none"] .olo-bg-gallery-slide { transition: none; }
.olo-bg-gallery-slide.olo-bg-gallery--active { opacity: 1; }
/* Ken Burns */
.olo-bg-gallery--kb-in .olo-bg-gallery-slide.olo-bg-gallery--active { animation: olo-kb-in var(--olo-kb-dur, 6000ms) ease forwards; }
@keyframes olo-kb-in { from { transform: scale(1); } to { transform: scale(1.15); } }
.olo-bg-gallery--kb-out .olo-bg-gallery-slide.olo-bg-gallery--active { animation: olo-kb-out var(--olo-kb-dur, 6000ms) ease forwards; }
@keyframes olo-kb-out { from { transform: scale(1.15); } to { transform: scale(1); } }
.olo-bg-gallery--kb-alternate .olo-bg-gallery-slide.olo-bg-gallery--active { animation: olo-kb-in var(--olo-kb-dur, 6000ms) ease forwards; }
.olo-bg-gallery--kb-alternate .olo-bg-gallery-slide.olo-bg-gallery--active.olo-bg-gallery--even { animation: olo-kb-out var(--olo-kb-dur, 6000ms) ease forwards; }


/* ================================================================
 * Entrance animations (olo-entrance-*)
 * Customizzazioni via CSS variables impostate inline sul wrapper:
 *   --olo-e-dur    durata animazione (default per effetto)
 *   --olo-e-delay  ritardo iniziale (default 0)
 *   --olo-e-ease   curva (default per effetto)
 *   --olo-e-int    intensità: moltiplicatore su distanze/scala/rotazione (default 1)
 *
 * Le keyframes sono single-line per facilitare la rigenerazione via script.
 * ================================================================ */
.olo-entrance-fade.olo-visible            { animation: olo-fx-fade var(--olo-e-dur, .6s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-slide-up.olo-visible        { animation: olo-fx-slide-up var(--olo-e-dur, .6s) var(--olo-e-ease, cubic-bezier(.4,0,.2,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-slide-down.olo-visible      { animation: olo-fx-slide-down var(--olo-e-dur, .6s) var(--olo-e-ease, cubic-bezier(.4,0,.2,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-slide-left.olo-visible      { animation: olo-fx-slide-left var(--olo-e-dur, .6s) var(--olo-e-ease, cubic-bezier(.4,0,.2,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-slide-right.olo-visible     { animation: olo-fx-slide-right var(--olo-e-dur, .6s) var(--olo-e-ease, cubic-bezier(.4,0,.2,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-zoom-in.olo-visible         { animation: olo-fx-zoom-in var(--olo-e-dur, .6s) var(--olo-e-ease, cubic-bezier(.34,1.56,.64,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-zoom-out.olo-visible        { animation: olo-fx-zoom-out var(--olo-e-dur, .6s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-flip.olo-visible            { animation: olo-fx-flip var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-flip-x.olo-visible          { animation: olo-fx-flip-x var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-flip-y.olo-visible          { animation: olo-fx-flip-y var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-rotate-in.olo-visible       { animation: olo-fx-rotate-in var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-rotate-ccw.olo-visible      { animation: olo-fx-rotate-ccw var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-bounce.olo-visible          { animation: olo-fx-bounce var(--olo-e-dur, .9s) var(--olo-e-ease, cubic-bezier(.68,-.55,.27,1.55)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-bounce-left.olo-visible     { animation: olo-fx-bounce-left var(--olo-e-dur, .9s) var(--olo-e-ease, cubic-bezier(.68,-.55,.27,1.55)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-bounce-right.olo-visible    { animation: olo-fx-bounce-right var(--olo-e-dur, .9s) var(--olo-e-ease, cubic-bezier(.68,-.55,.27,1.55)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-elastic.olo-visible         { animation: olo-fx-elastic var(--olo-e-dur, 1s) var(--olo-e-ease, cubic-bezier(.5,1.5,.5,.8)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-blur-in.olo-visible         { animation: olo-fx-blur-in var(--olo-e-dur, .7s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-blur-zoom.olo-visible       { animation: olo-fx-blur-zoom var(--olo-e-dur, .8s) var(--olo-e-ease, cubic-bezier(.34,1.56,.64,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-swing.olo-visible           { animation: olo-fx-swing var(--olo-e-dur, 1s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; transform-origin: top center; }
.olo-entrance-rubber.olo-visible          { animation: olo-fx-rubber var(--olo-e-dur, 1s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-jello.olo-visible           { animation: olo-fx-jello var(--olo-e-dur, 1s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-back-in-left.olo-visible    { animation: olo-fx-back-in-left var(--olo-e-dur, .8s) var(--olo-e-ease, cubic-bezier(.34,1.56,.64,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-back-in-right.olo-visible   { animation: olo-fx-back-in-right var(--olo-e-dur, .8s) var(--olo-e-ease, cubic-bezier(.34,1.56,.64,1)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-typewriter.olo-visible      { animation: olo-fx-fade var(--olo-e-dur, .6s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-fade-up-big.olo-visible     { animation: olo-fx-fade-up-big var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-fade-down-big.olo-visible   { animation: olo-fx-fade-down-big var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-lightspeed-left.olo-visible { animation: olo-fx-lightspeed-left var(--olo-e-dur, .7s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-lightspeed-right.olo-visible{ animation: olo-fx-lightspeed-right var(--olo-e-dur, .7s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-roll-in.olo-visible         { animation: olo-fx-roll-in var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-jack-in-box.olo-visible     { animation: olo-fx-jack-in-box var(--olo-e-dur, .9s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; transform-origin: center bottom; }
.olo-entrance-hinge.olo-visible           { animation: olo-fx-hinge var(--olo-e-dur, 2s) var(--olo-e-ease, ease-in) var(--olo-e-delay, 0s) forwards; transform-origin: top left; }
.olo-entrance-zoom-in-down.olo-visible    { animation: olo-fx-zoom-in-down var(--olo-e-dur, .8s) var(--olo-e-ease, cubic-bezier(.175,.885,.32,1.275)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-zoom-in-up.olo-visible      { animation: olo-fx-zoom-in-up var(--olo-e-dur, .8s) var(--olo-e-ease, cubic-bezier(.175,.885,.32,1.275)) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-skew-in.olo-visible         { animation: olo-fx-skew-in var(--olo-e-dur, .7s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; }
.olo-entrance-curtain-reveal.olo-visible  { animation: olo-fx-curtain-reveal var(--olo-e-dur, .8s) var(--olo-e-ease, ease) var(--olo-e-delay, 0s) forwards; transform-origin: top; }

@keyframes olo-fx-fade            { from { opacity: 0; } to { opacity: 1; } }
@keyframes olo-fx-slide-up        { from { opacity: 0; transform: translateY(calc(40px * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-slide-down      { from { opacity: 0; transform: translateY(calc(-40px * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-slide-left      { from { opacity: 0; transform: translateX(calc(-60px * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-slide-right     { from { opacity: 0; transform: translateX(calc(60px * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-zoom-in         { from { opacity: 0; transform: scale(calc(1 - 0.3 * var(--olo-e-int, 1))); } to { opacity: 1; transform: scale(1); } }
@keyframes olo-fx-zoom-out        { from { opacity: 0; transform: scale(calc(1 + 0.3 * var(--olo-e-int, 1))); } to { opacity: 1; transform: scale(1); } }
@keyframes olo-fx-flip            { from { opacity: 0; transform: perspective(400px) rotateY(calc(90deg * var(--olo-e-int, 1))); } to { opacity: 1; transform: perspective(400px) rotateY(0); } }
@keyframes olo-fx-flip-x          { from { opacity: 0; transform: perspective(400px) rotateX(calc(90deg * var(--olo-e-int, 1))); } to { opacity: 1; transform: perspective(400px) rotateX(0); } }
@keyframes olo-fx-flip-y          { from { opacity: 0; transform: perspective(400px) rotateY(calc(90deg * var(--olo-e-int, 1))); } to { opacity: 1; transform: perspective(400px) rotateY(0); } }
@keyframes olo-fx-rotate-in       { from { opacity: 0; transform: rotate(calc(-180deg * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-rotate-ccw      { from { opacity: 0; transform: rotate(calc(180deg * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-bounce          { 0% { opacity: 0; transform: scale(calc(1 - 0.7 * var(--olo-e-int, 1))); } 50% { opacity: 1; transform: scale(calc(1 + 0.05 * var(--olo-e-int, 1))); } 100% { transform: scale(1); } }
@keyframes olo-fx-bounce-left     { 0% { opacity: 0; transform: translateX(calc(-100px * var(--olo-e-int, 1))); } 60% { opacity: 1; transform: translateX(calc(20px * var(--olo-e-int, 1))); } 100% { transform: none; } }
@keyframes olo-fx-bounce-right    { 0% { opacity: 0; transform: translateX(calc(100px * var(--olo-e-int, 1))); } 60% { opacity: 1; transform: translateX(calc(-20px * var(--olo-e-int, 1))); } 100% { transform: none; } }
@keyframes olo-fx-elastic         { 0% { opacity: 0; transform: scale(calc(1 - 0.7 * var(--olo-e-int, 1))); } 50% { opacity: 1; transform: scale(calc(1 + 0.15 * var(--olo-e-int, 1))); } 70% { transform: scale(calc(1 - 0.05 * var(--olo-e-int, 1))); } 100% { transform: scale(1); } }
@keyframes olo-fx-blur-in         { from { opacity: 0; filter: blur(calc(12px * var(--olo-e-int, 1))); } to { opacity: 1; filter: blur(0); } }
@keyframes olo-fx-blur-zoom       { from { opacity: 0; filter: blur(calc(12px * var(--olo-e-int, 1))); transform: scale(calc(1 - 0.15 * var(--olo-e-int, 1))); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes olo-fx-swing           { 20% { transform: rotate(calc(15deg * var(--olo-e-int, 1))); } 40% { transform: rotate(calc(-10deg * var(--olo-e-int, 1))); } 60% { transform: rotate(calc(5deg * var(--olo-e-int, 1))); } 80% { transform: rotate(calc(-5deg * var(--olo-e-int, 1))); } 100% { opacity: 1; transform: rotate(0); } }
@keyframes olo-fx-rubber          { 0% { opacity: 0; transform: scale(1); } 30% { opacity: 1; transform: scaleX(calc(1 + 0.25 * var(--olo-e-int, 1))) scaleY(calc(1 - 0.25 * var(--olo-e-int, 1))); } 40% { transform: scaleX(calc(1 - 0.25 * var(--olo-e-int, 1))) scaleY(calc(1 + 0.25 * var(--olo-e-int, 1))); } 50% { transform: scaleX(calc(1 + 0.15 * var(--olo-e-int, 1))) scaleY(calc(1 - 0.15 * var(--olo-e-int, 1))); } 65% { transform: scaleX(calc(1 - 0.05 * var(--olo-e-int, 1))) scaleY(calc(1 + 0.05 * var(--olo-e-int, 1))); } 75% { transform: scaleX(calc(1 + 0.05 * var(--olo-e-int, 1))) scaleY(calc(1 - 0.05 * var(--olo-e-int, 1))); } 100% { transform: none; } }
@keyframes olo-fx-jello           { 0% { opacity: 0; } 11% { opacity: 1; transform: skewX(calc(-12.5deg * var(--olo-e-int, 1))) skewY(calc(-12.5deg * var(--olo-e-int, 1))); } 22% { transform: skewX(calc(6.25deg * var(--olo-e-int, 1))) skewY(calc(6.25deg * var(--olo-e-int, 1))); } 33% { transform: skewX(calc(-3.125deg * var(--olo-e-int, 1))) skewY(calc(-3.125deg * var(--olo-e-int, 1))); } 44% { transform: skewX(calc(1.5625deg * var(--olo-e-int, 1))) skewY(calc(1.5625deg * var(--olo-e-int, 1))); } 100% { transform: none; } }
@keyframes olo-fx-back-in-left    { 0% { opacity: 0; transform: translateX(calc(-200px * var(--olo-e-int, 1))) scale(calc(1 - 0.3 * var(--olo-e-int, 1))); } 80% { opacity: 1; transform: translateX(0) scale(calc(1 - 0.3 * var(--olo-e-int, 1))); } 100% { transform: scale(1); } }
@keyframes olo-fx-back-in-right   { 0% { opacity: 0; transform: translateX(calc(200px * var(--olo-e-int, 1))) scale(calc(1 - 0.3 * var(--olo-e-int, 1))); } 80% { opacity: 1; transform: translateX(0) scale(calc(1 - 0.3 * var(--olo-e-int, 1))); } 100% { transform: scale(1); } }
@keyframes olo-fx-fade-up-big     { from { opacity: 0; transform: translateY(calc(180px * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-fade-down-big   { from { opacity: 0; transform: translateY(calc(-180px * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-lightspeed-left { 0% { opacity: 0; transform: translateX(-100%) skewX(calc(30deg * var(--olo-e-int, 1))); } 60% { opacity: 1; transform: skewX(calc(-15deg * var(--olo-e-int, 1))); } 80% { transform: skewX(calc(5deg * var(--olo-e-int, 1))); } 100% { transform: none; } }
@keyframes olo-fx-lightspeed-right{ 0% { opacity: 0; transform: translateX(100%) skewX(calc(-30deg * var(--olo-e-int, 1))); } 60% { opacity: 1; transform: skewX(calc(15deg * var(--olo-e-int, 1))); } 80% { transform: skewX(calc(-5deg * var(--olo-e-int, 1))); } 100% { transform: none; } }
@keyframes olo-fx-roll-in         { from { opacity: 0; transform: translateX(-100%) rotate(calc(-120deg * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-jack-in-box     { 0% { opacity: 0; transform: scale(calc(1 - 0.9 * var(--olo-e-int, 1))) rotate(calc(30deg * var(--olo-e-int, 1))); } 50% { transform: rotate(calc(-10deg * var(--olo-e-int, 1))); } 70% { transform: rotate(calc(3deg * var(--olo-e-int, 1))); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes olo-fx-hinge           { 0% { opacity: 1; } 20% { transform: rotate(calc(80deg * var(--olo-e-int, 1))); } 40%, 80% { opacity: 1; transform: rotate(calc(60deg * var(--olo-e-int, 1))); } 100% { opacity: 0; transform: translateY(calc(700px * var(--olo-e-int, 1))); } }
@keyframes olo-fx-zoom-in-down    { from { opacity: 0; transform: scale(calc(1 - 0.9 * var(--olo-e-int, 1))) translateY(calc(-1000px * var(--olo-e-int, 1))); } 60% { opacity: 1; transform: scale(calc(1 - 0.525 * var(--olo-e-int, 1))) translateY(calc(60px * var(--olo-e-int, 1))); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes olo-fx-zoom-in-up      { from { opacity: 0; transform: scale(calc(1 - 0.9 * var(--olo-e-int, 1))) translateY(calc(1000px * var(--olo-e-int, 1))); } 60% { opacity: 1; transform: scale(calc(1 - 0.525 * var(--olo-e-int, 1))) translateY(calc(-60px * var(--olo-e-int, 1))); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes olo-fx-skew-in         { from { opacity: 0; transform: skewX(calc(-30deg * var(--olo-e-int, 1))) translateX(calc(-50px * var(--olo-e-int, 1))); } to { opacity: 1; transform: none; } }
@keyframes olo-fx-curtain-reveal  { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  [class*="olo-entrance-"] { opacity: 1 !important; animation: none !important; transform: none !important; filter: none !important; }
}

/* ── Olobuild switcher: fallback display per pre-UIkit-init ────────── */
/* Senza questo, prima che UIkit JS inizializzi `[uk-tab]`, TUTTI i <li>
   del content-area sono visibili (CSS UIkit base non setta display:none).
   Risultato: flash di tutti i tab simultanei. Il PHP renderer aggiunge
   uk-active al primo <li> server-side, e questo CSS nasconde gli altri. */
.olo-switcher ul.uk-switcher > li:not(.uk-active) {
  display: none;
}

/* v3.55.47 — Sticky desktop-only.
   Quando l'utente disattiva "Attivo anche su mobile" nello sticky,
   forziamo position:static sotto i 640px cosi l'elemento scorre normalmente
   su mobile invece di restare fisso. */
@media (max-width: 640px) {
  .olo-sticky-desktop-only {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
 * Preset visivi per tile Hero (v3.57.24)
 *
 * REGOLA PRESET UNIVERSALE OLOBUILD — ogni preset DEVE modificare
 * 5 dimensioni affinché il cambio sia percepito a colpo d'occhio:
 *   1. Tipografia       (font family/weight/transform/letter-spacing)
 *   2. Layout           (padding, allineamenti, min-height, max-width)
 *   3. Colori           (text, title, subtitle, bg, CTA bg/text)
 *   4. Effetti CSS      (questa sezione: glow, blur, shadow, scanlines, parallax)
 *   5. Animazione       (entrance_animation impostata in TILE_PRESETS)
 *
 * Le dimensioni 1-3 + 5 sono gestite da TILE_PRESETS.hero in
 * BuilderInspector.vue. Questa sezione fornisce la "firma visiva"
 * di ciascun preset tramite la classe wrapper .olo-hero-preset-{id}.
 * ═══════════════════════════════════════════════════════════════ */

/* ── Modern Centered — underline decorativo sotto il titolo ── */
.olo-hero-preset-modern-centered .olo-hero-title {
  position: relative;
  padding-bottom: 18px;
}
.olo-hero-preset-modern-centered .olo-hero-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: currentColor;
  opacity: .55;
  border-radius: 2px;
}

/* ── Split Image — content allineato a sinistra, larghezza dimezzata ── */
.olo-hero-preset-split-image .olo-hero-content {
  max-width: 56%;
  margin-left: 6%;
  margin-right: auto;
}
@media (max-width: 768px) {
  .olo-hero-preset-split-image .olo-hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ── Minimal Editorial — line separator + CTA underlined ── */
.olo-hero-preset-minimal-editorial .olo-hero-inner::before {
  content: '';
  display: block;
  width: 52px;
  height: 1px;
  background: currentColor;
  margin: 0 0 28px 0;
  opacity: .45;
}
.olo-hero-preset-minimal-editorial .olo-hero-cta1,
.olo-hero-preset-minimal-editorial .olo-hero-cta2 {
  text-decoration: underline !important;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

/* ── Bold Statement — titolo con outline (text-stroke) ── */
.olo-hero-preset-bold-statement .olo-hero-title {
  -webkit-text-stroke: 1px currentColor;
          text-stroke: 1px currentColor;
}

/* ── Video Cinema — vignette radiale + scaling lento del bg ── */
.olo-hero-preset-video-cinema {
  position: relative;
  overflow: hidden;
}
.olo-hero-preset-video-cinema::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}
.olo-hero-preset-video-cinema .olo-hero-content {
  position: relative;
  z-index: 2;
}

/* ── Glass Overlay — backdrop-filter blur sul content-inner ── */
.olo-hero-preset-glass-overlay .olo-hero-inner {
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Neon Cyberpunk — text-shadow glow pulsante + CTA neon border ── */
.olo-hero-preset-neon-cyberpunk .olo-hero-title {
  text-shadow:
    0 0 8px currentColor,
    0 0 20px currentColor,
    0 0 40px currentColor;
  animation: olo-hero-neon-pulse 2.4s ease-in-out infinite;
}
.olo-hero-preset-neon-cyberpunk .olo-hero-cta1,
.olo-hero-preset-neon-cyberpunk .olo-hero-cta2 {
  border: 2px solid currentColor !important;
  box-shadow: 0 0 14px currentColor, inset 0 0 14px rgba(255,255,255,.08);
}
@keyframes olo-hero-neon-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}

/* ── Brutalist Mega — titolo shadow hard offset + CTA stamp ── */
.olo-hero-preset-brutalist-mega .olo-hero-title {
  text-shadow: 6px 6px 0 #000;
}
.olo-hero-preset-brutalist-mega .olo-hero-cta1 {
  border: 3px solid #000 !important;
  box-shadow: 6px 6px 0 #000;
  transition: transform .15s, box-shadow .15s;
}
.olo-hero-preset-brutalist-mega .olo-hero-cta1:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

/* ── Gradient Aurora — gradient bg animato + titolo gradient text ── */
.olo-hero-preset-gradient-aurora {
  background-size: 200% 200% !important;
  animation: olo-hero-aurora-shift 9s ease-in-out infinite;
}
.olo-hero-preset-gradient-aurora .olo-hero-title {
  background: linear-gradient(135deg, #ffffff 30%, #fce7f3 50%, #ffffff 70%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: olo-hero-aurora-shift 6s ease-in-out infinite;
}
@keyframes olo-hero-aurora-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Sticker Collage — content ruotato + shadow sticker offset ── */
.olo-hero-preset-sticker-collage .olo-hero-inner {
  transform: rotate(-1.2deg);
  background: #ffffff;
  padding: 36px 30px;
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(0,0,0,.18), 0 16px 32px rgba(0,0,0,.12);
}
.olo-hero-preset-sticker-collage .olo-hero-cta1 {
  transform: rotate(1deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,.18);
}

/* ── Retro Poster — scanlines overlay + flicker leggero ── */
.olo-hero-preset-retro-poster {
  position: relative;
  overflow: hidden;
}
.olo-hero-preset-retro-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.18) 0px,
    rgba(0,0,0,.18) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 2;
  animation: olo-hero-scanline-drift 9s linear infinite;
}
.olo-hero-preset-retro-poster .olo-hero-content {
  position: relative;
  z-index: 3;
  animation: olo-hero-retro-flicker 5s steps(2) infinite;
}
@keyframes olo-hero-scanline-drift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(4px); }
}
@keyframes olo-hero-retro-flicker {
  0%, 95%, 100% { opacity: 1; }
  97%           { opacity: .9; }
}

/* ── Tilt Parallax — perspective 3D + scaling al hover ── */
.olo-hero-preset-tilt-parallax {
  perspective: 1200px;
}
.olo-hero-preset-tilt-parallax .olo-hero-content {
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
}
.olo-hero-preset-tilt-parallax:hover .olo-hero-content {
  transform: rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════
 * Preset visivi per tile Gallery (v3.57.25)
 *
 * Le 12 voci di TILE_PRESETS.gallery già modulano effetti reali
 * (layout, columns, gap, hover_zoom, kenburns, vignette, grain, tint).
 * Questa sezione aggiunge la "firma visiva" CSS specifica per ogni
 * preset, completando le 5 dimensioni della Regola Preset.
 *
 * Struttura HTML target (class-gallery-tile.php):
 *   .olo-gallery-preset-{id}  → wrapper container
 *     .olo-gal-item           → singolo thumb (anchor)
 *       img                   → immagine
 *       .olo-gal-tint         → overlay tint opzionale
 *       .olo-gal-grain        → overlay grain opzionale
 *       .olo-gal-more         → "+N" last-visible
 * ═══════════════════════════════════════════════════════════════ */

/* ── Cinema Strip — bordo nero in alto/basso (effetto pellicola) ── */
.olo-gallery-preset-cinema-strip {
  border-top:    8px solid #0a0a0a;
  border-bottom: 8px solid #0a0a0a;
  background: #0a0a0a;
  padding: 4px;
}
.olo-gallery-preset-cinema-strip .olo-gal-item {
  position: relative;
}
.olo-gallery-preset-cinema-strip .olo-gal-item::before,
.olo-gallery-preset-cinema-strip .olo-gal-item::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #0a0a0a 0px, #0a0a0a 8px,
    transparent 8px, transparent 14px
  );
  z-index: 2;
  pointer-events: none;
}
.olo-gallery-preset-cinema-strip .olo-gal-item::before { top: 0; }
.olo-gallery-preset-cinema-strip .olo-gal-item::after  { bottom: 0; }

/* ── Polaroid Album — bordo bianco bottom-padded + shadow + rotazione random ── */
.olo-gallery-preset-polaroid-album .olo-gal-item {
  background: #ffffff;
  padding: 10px 10px 36px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .3s ease;
}
.olo-gallery-preset-polaroid-album .olo-gal-item:nth-child(3n)   { transform: rotate(-1.5deg); }
.olo-gallery-preset-polaroid-album .olo-gal-item:nth-child(3n+1) { transform: rotate(1.2deg); }
.olo-gallery-preset-polaroid-album .olo-gal-item:nth-child(3n+2) { transform: rotate(-.6deg); }
.olo-gallery-preset-polaroid-album .olo-gal-item:hover           { transform: rotate(0) translateY(-4px); z-index: 1; }

/* ── Glass Tiles — backdrop blur sull'overlay del thumb ── */
.olo-gallery-preset-glass-tiles .olo-gal-item {
  position: relative;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.olo-gallery-preset-glass-tiles .olo-gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(255,255,255,.25) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.olo-gallery-preset-glass-tiles .olo-gal-item:hover::after { opacity: 1; }

/* ── Neon Frame — bordo glow neon sui thumb ── */
.olo-gallery-preset-neon-frame .olo-gal-item {
  border: 2px solid #ff6a2a;
  box-shadow:
    0 0 12px rgba(255,106,42,.5),
    inset 0 0 8px rgba(255,106,42,.2);
  transition: box-shadow .3s ease;
}
.olo-gallery-preset-neon-frame .olo-gal-item:hover {
  box-shadow:
    0 0 24px rgba(255,106,42,.9),
    inset 0 0 16px rgba(255,106,42,.35);
}

/* ── Brutalist Grid — bordo nero spesso + offset hover ── */
.olo-gallery-preset-brutalist-grid .olo-gal-item {
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  transition: transform .15s ease, box-shadow .15s ease;
}
.olo-gallery-preset-brutalist-grid .olo-gal-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

/* ── Sticker Fun — thumb ruotati pattern + shadow sticker ── */
.olo-gallery-preset-sticker-fun .olo-gal-item {
  background: #fff;
  padding: 6px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.1);
  transition: transform .25s ease;
}
.olo-gallery-preset-sticker-fun .olo-gal-item:nth-child(5n)   { transform: rotate(-2deg); }
.olo-gallery-preset-sticker-fun .olo-gal-item:nth-child(5n+1) { transform: rotate(1deg); }
.olo-gallery-preset-sticker-fun .olo-gal-item:nth-child(5n+2) { transform: rotate(-1deg); }
.olo-gallery-preset-sticker-fun .olo-gal-item:nth-child(5n+3) { transform: rotate(2deg); }
.olo-gallery-preset-sticker-fun .olo-gal-item:nth-child(5n+4) { transform: rotate(0); }
.olo-gallery-preset-sticker-fun .olo-gal-item:hover           { transform: rotate(0) scale(1.05); z-index: 1; }

/* ── VHS Retro — scanlines overlay + chroma shift al hover ── */
.olo-gallery-preset-vhs-retro .olo-gal-item {
  position: relative;
}
.olo-gallery-preset-vhs-retro .olo-gal-item::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,255,140,.15) 0px,
    rgba(0,255,140,.15) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 2;
  mix-blend-mode: overlay;
}
.olo-gallery-preset-vhs-retro .olo-gal-item:hover img {
  filter: hue-rotate(-10deg) saturate(1.4);
}

/* ── Tilt 3D — perspective container + hover tilt avanzato ── */
.olo-gallery-preset-tilt-3d {
  perspective: 1400px;
}
.olo-gallery-preset-tilt-3d .olo-gal-item {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
}
.olo-gallery-preset-tilt-3d .olo-gal-item:hover {
  transform: rotateY(-6deg) rotateX(4deg) scale(1.04);
  box-shadow: -20px 20px 40px rgba(0,0,0,.2);
}

/* ── Text-block: baseline tipografica ──────────────────────────
 * Default font-size 13px (coerente con UI del builder e leggibile
 * a corpo di pagina). L'inspector lo sovrascrive via style inline. */
.olo-text-block {
  font-size: 13px;
}

/* ── Text-block: liste ricche (bullets / numerazione) ────────────
 * Molti temi WP (TT4/TT5) e Tailwind preflight applicano
 * list-style: none — qui ripristiniamo i marker dentro la tile testo
 * con specificità sufficiente a vincere senza !important. */
.olo-text-block ul {
  list-style: disc outside;
  padding-left: 1.5em;
  margin: 0 0 0.8em;
}
.olo-text-block ol {
  list-style: decimal outside;
  padding-left: 1.5em;
  margin: 0 0 0.8em;
}
.olo-text-block ul ul { list-style: circle outside; }
.olo-text-block ul ul ul { list-style: square outside; }
.olo-text-block ol ol { list-style: lower-alpha outside; }
.olo-text-block ol ol ol { list-style: lower-roman outside; }
.olo-text-block li { margin: 0.2em 0; }

/* Forza eredità tipografica: i temi WP (TT4/TT5) e block editor css
 * spesso applicano font-family/size/line-height diversi su ul/li,
 * facendo apparire le liste con font diverso dai paragrafi della
 * stessa tile testo. Ereditare dal wrapper neutralizza il problema. */
.olo-text-block ul,
.olo-text-block ol,
.olo-text-block li {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* Tiptap StarterKit serializza i list-item come <li><p>...</p></li>;
 * azzeriamo i margini di quei <p> per evitare spacing doppio. */
.olo-text-block li > p {
  margin: 0;
}
.olo-text-block li > p + p {
  margin-top: 0.4em;
}
