/* Umbria Fiere */

:root {
  /* Palette UFFICIALE UmbriaFiere */
  --uf-white:        #FFFFFF;
  --uf-mint:         #7EE993;
  --uf-dark-green:   #203A25;
  --uf-black:        #000000;
  --uf-gray-50:      #F5F5F5;
  --uf-gray-100:     #EAEAEA;
  --uf-magenta:      #FF70FE;
  --uf-cyan:         #00E9DA;
  --uf-mint-2:    #5FCC78;
  --uf-magenta-2: #E040DD;
  --uf-cyan-2:    #00B8AC;
  --uf-dark:      #1A1A1A;  /* near-black per body text */
  --uf-gray-200: #d9d9d9;
  --uf-gray-300:  #B8B8B8;  /* border medium */
  --uf-gray-500: #6E6E6E;
  --uf-gray-700:  #2F2F2F;
  --container: 1440px;
  --gutter: 32px;
  --header-h: 80px;

  /* Card marker uniforme (bordo + freccia) */
  --mark-border: 4px;
  --mark-arrow-w: 23px;
  --mark-arrow-h: 13px;

  /* Font display */
  --font-display: "Ratio", "Manrope", "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* No focus rings ovunque */
*:focus,
*:focus-visible { outline: none; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-display);
  color: var(--uf-dark);
  background: var(--uf-gray-50);
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  line-height: normal;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
/* Checkbox universali */
input[type="checkbox"] {
  -webkit-appearance: none; /* niente rendering nativo (radius iOS non azzerabile altrimenti) */
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  border: 1.5px solid var(--uf-gray-300);
  background: var(--uf-white);
  border-radius: 0;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  transition: background .15s var(--ease-out), border-color .15s var(--ease-out);
}
input[type="checkbox"]:checked {
  background: var(--uf-mint);
  border-color: var(--uf-dark);
}
input[type="checkbox"]:checked::after { /* checkmark squadrato */
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--uf-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Controlli form squadrati: azzera il radius di default del browser (iOS e alcuni
   Android arrotondano input/textarea/select/button). Coerente col design squadrato. */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
button {
  border-radius: 0;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  -webkit-appearance: none;
  appearance: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* PAGE-LOAD BLUR OVERLAY */
.uf-page-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* Veil ultra-delicato */
  background: rgb(33 33 33 / 30%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 1;
  pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
body.is-loading {
  overflow: hidden;
}
body:not(.is-loading) .uf-page-overlay {
  opacity: 0;
}

/* REVEAL-ON-SCROLL */
html.js .uf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), box-shadow .3s var(--ease-out);
  will-change: opacity, transform;
}
html.js .uf-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js .uf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* BUTTON SLIDE / SWAP */
.btn-swap,
.btn-slide {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.btn-swap .ba-icon,
.btn-swap .ba-label,
.btn-slide .ba-icon,
.btn-slide .ba-label {
  display: inline-block;
  transition: transform .3s var(--ease-out);
  will-change: transform;
}
.btn-swap .ba-icon,
.btn-slide .ba-icon {
  fill: currentColor;
  flex: none;
  transform: rotate(-90deg);
}
/* Slide-right (CSS puro) */
.btn-slide:hover .ba-icon  { transform: translateX(2rem) rotate(-90deg); }
.btn-slide:hover .ba-label { transform: translateX(2rem); }
/* Swap eyebrow (JS-measured) */
.btn-swap { --icon-shift: 0px; --label-shift: 0px; }
.btn-swap:hover .ba-icon  { transform: translateX(var(--icon-shift)) rotate(-90deg); }
.btn-swap:hover .ba-label { transform: translateX(var(--label-shift)); }

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .3s ease, border-color .3s;
  border-bottom: 2px solid rgb(255 255 255 / 51%);
  color: var(
  --uf-white);
}
.site-header.is-scrolled {
  background: var(--uf-white);
  border-bottom-color: var(--uf-gray-100);
  color: var(--uf-dark);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
}

/* Brand block */
.brand-block {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
  padding-left: 13rem;
  transition: padding-left .45s var(--ease-smooth);
}
/* Logo collapse */
.is-hero-passed .brand-block {
  padding-left: 0;
}
body.header-light .brand-block {
  padding-left: 0;
}
.brand-block .logo-link {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  height: auto;
}
.brand-block .logo-svg {
  width: 110px;
  height: auto;
  fill: currentColor;
  transition: fill ease .3s;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  height: 100%;
}
.nav a,
.nav button.has-caret {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: currentColor;
  height: 100%;
  position: relative;
  padding: 1.5rem 1.25rem;
  transition: all 0.3s ease;
  /* isolation */
  isolation: isolate;
}

.nav a::before,
.nav button.has-caret::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  pointer-events: none;
}
.nav a:hover::before,
.nav button.has-caret:hover::before {
  opacity: 0.04;
}
/* Active nav indicator */
.nav a.is-current::after,
.nav button.has-caret.is-current::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5px;
  height: 3px;
  background: currentColor;

  margin-right: 1.25rem;
  margin-left: 1.25rem;

  transition: margin .2s linear;
}

.nav a.is-current:hover::after,
.nav button.has-caret.is-current:hover::after,
.nav .nav-item:hover a.is-current::after,
.nav .nav-item:focus-within a.is-current::after,
.nav .nav-item:hover button.has-caret.is-current::after,
.nav .nav-item:focus-within button.has-caret.is-current::after,
.nav .nav-item.is-open button.has-caret.is-current::after {
  margin-left: 0;
  margin-right: 0;
}
.nav a .nav-current-arrow,
.nav button.has-caret .nav-current-arrow {
  position: absolute;
  /* Centrato esatto */
  left: 50%;
  bottom: 0px;
  width: 12px;
  height: 7px;
  transform: translateX(50%);
  rotate: 180deg;
  fill: currentColor;
  pointer-events: none;
}
.nav .caret,
.lang-switch .caret {
  width: 11px;
  height: 6px;
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  height: fit-content;
}
.btn-organizza {
  font-family: var(--font-display);
  background: var(--uf-mint);
  color: var(--uf-dark);
  padding: 7px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 140px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .35s var(--ease-out), color .35s var(--ease-out);
}
.btn-organizza:hover {
  background: var(--uf-dark);
  color: var(--uf-white);
}

/* Lang switch dropdown */
.lang-switch-wrap {
  position: relative;
}
.lang-switch {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--uf-white);
  color: var(--uf-dark);
  border: 1.5px solid var(--uf-dark);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  height: auto;
  cursor: pointer;
  transition: background .2s var(--ease-out);
}
.lang-switch:hover {
  background: var(--uf-gray-50);
}
.lang-switch .caret {
  fill: var(--uf-dark);
  transition: rotate .2s var(--ease-out);
}
.lang-switch[aria-expanded="true"] .caret {
  rotate: -180deg; /* caret UP quando aperto */
}

.lang-switch-dropdown {
  position: absolute;
  top: calc(100% + -1px);
  right: 0;
  min-width: 100%;
  background: var(--uf-white);
  border: 1.5px solid var(--uf-dark);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 110;

  display: none;
}
.lang-switch-dropdown.is-open {
  display: block;
}
.lang-switch-dropdown a {
  font-family: var(--font-display);
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--uf-dark);
  white-space: nowrap;
  transition: background .2s var(--ease-out);
}
.lang-switch-dropdown a:hover {
  background: var(--uf-gray-50);
}

/* HERO */
.hero {
  position: relative;
  height: 95vh;
  background: #000;
  color: var(--uf-white);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; touch-action: pan-y; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s var(--ease-smooth);
}
.hero-slide.is-active { opacity: 1; }

.hero[data-mode="simple"] .hero-slide-outer,
.hero[data-mode="simple"] .hero-slide-inner,
.hero[data-mode="simple"] .hero-slide-bg {
  display: contents;
}

/* PLAN A */
html.js .hero[data-mode="curtain"] .hero-slide {
  position: absolute;
  inset: 0;

  visibility: hidden;
  opacity: 0;

  transition: none;
}

/* Senza JS */
.hero[data-mode="curtain"] .hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}
html.js .hero[data-mode="curtain"] .hero-slide.is-active {
  visibility: hidden;
  opacity: 0;
}
/* ECCEZIONE */
html.js .hero[data-mode="curtain"] .hero-slide.is-active:only-child {
  visibility: visible;
  opacity: 1;
}

.hero[data-mode="curtain"] .hero-slide-outer,
.hero[data-mode="curtain"] .hero-slide-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  will-change: transform;
}
.hero[data-mode="curtain"] .hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html.js .hero[data-mode="curtain"] .hero-slide {
    transition: none;
  }
}

.hero-slide-img { position: absolute; inset: 0; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: #00000080;
}
/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  height: 100%;
  padding-left:7rem;
}
.hero-content > .container {
  padding-left: calc(var(--gutter) + 130px);
}

/* Glitch decorativo brand UF */
.uf-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 211px;
  z-index: 2;
  pointer-events: none;
  color: var(--glitch-fill, var(--uf-mint));
}
/* Elementi che devono passare sopra al glitch */
.month-filter,
.news-cat-filter { position: relative; z-index: 3; }
/* Hero: il contenuto sta sopra il glitch (ora incluso dentro l'hero-content, sopra la foto) */
.hero-content > .container { position: relative; z-index: 3; }
/* Glitch nascosto sul dettaglio news */
body.page-media\.news\.show .uf-glitch { display: none; }
.uf-glitch svg {
  width: 100%;
  height: auto;
  display: block;
}

.uf-glitch__tip {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  will-change: transform;
}
.uf-glitch__tip--1,
.uf-glitch__tip--3 {
  animation: ufGlitchTipA 4.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.uf-glitch__tip--2,
.uf-glitch__tip--4 {
  animation: ufGlitchTipB 4.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes ufGlitchTipA {
  0%, 12%   { transform: scaleY(0); }
  44%, 62%  { transform: scaleY(1); }
  94%, 100% { transform: scaleY(0); }
}
@keyframes ufGlitchTipB {
  0%, 12%   { transform: scaleY(1); }
  44%, 62%  { transform: scaleY(0); }
  94%, 100% { transform: scaleY(1); }
}

.is-hero-passed .uf-glitch__tip {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .uf-glitch__tip { animation: none; }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 100px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 0;
  max-width: 1000px;
}
.hero-desc {
  font-size: clamp(20px, 5.45vw, 35px);
  line-height: 1.3;
  font-weight: 400;
  margin: 20px 0;
  max-width: 750px;
}
.hero-desc p{
  margin:0;
}

/* Hero CTA */
.btn-arrow {
  background: var(--uf-mint);
  color: var(--uf-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  min-width: 260px;
  height: 52px;
}
.btn-arrow .ba-icon {width: 14px;height: 15px;}
.hero-content .btn-arrow { margin-top: 20px; }

/* Hero side controls */
.hero-controls {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4;
}
.hero-arrow {
  width: 56px; height: 56px;
  background: var(--uf-mint);
  color: var(--uf-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.hero-arrow:hover { background: var(--uf-mint-2); }
/* Hero arrows */
.hero-arrow svg {
  width: 14px;
  height: 12px;
  fill: currentColor;
  transform: rotate(-90deg);
}
.hero-arrow--prev svg { transform: rotate(90deg);  }

/* LOGO STRIP + PARTNERS MARQUEE */
.logo-strip {
  position: relative;
  background: var(--uf-white);
  padding: 20px 0 34px;
}
.logo-strip__track-wrap,
.partners__track-wrap {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.logo-strip__track img,
.partners__track img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.logo-strip__track,
.partners__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;

  animation: ufScroll 28s linear infinite;
}
.partners__track {
  /* Durata diversa */
  animation-duration: 26s;
}
.logo-strip__track{
  gap: 0px;
}
.logo-strip:hover .logo-strip__track,
.partners:hover .partners__track {
  animation-play-state: paused;
}
.logo-strip__track a,
.partners__track a {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-strip__track img,
.partners__track img {
  flex: none;
  width: 210px;
  height: 84px;
  object-fit: contain;
  opacity: .85;
  filter: grayscale(100%);
  transition: filter .4s var(--ease-out), opacity .4s var(--ease-out);
}
.logo-strip__track a:hover img,
.partners__track a:hover img {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes ufScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* EVENTI */
.events {
  background: var(--uf-gray-50);
  padding: 4rem 0;
  position: relative;
}
.events__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 500;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--uf-gray-500);
  text-underline-offset: 2px;
}
.link-with-arrow {
  padding: 4px 4px;
  min-width: 140px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  /* Niente shift hardcoded */
}
.link-with-arrow .ba-icon {width: 14px;height: 15px;}

.event-card {
  display: grid;
  grid-template-columns: 320px 1fr 440px;
  gap: 3rem;
  background: var(--uf-white);
  padding: 1.5rem 1.5rem 1.5rem 0;
  margin-bottom: 22px;
  position: relative;
  border-left: var(--mark-border) solid var(--uf-dark);
}

.event-card__arrow {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  width: var(--mark-arrow-w);
  height: var(--mark-arrow-h);
  fill: var(--uf-dark);
  pointer-events: none;
}

/* Colonna sinistra */
.event-card__left {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: 0 0 0 36px;
  gap: 15px;
}
.event-card__head {
  align-self: start;
}
.event-card__foot {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 15px;
  color: var(--uf-black);
}
.event-card__subtitle {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--uf-black);
  margin: 0;
}
.event-card__date {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--uf-black);
}
.event-card__loc {
  /* Location block */
  font-size: 18px;
  color: #000;
  margin: 0 0 14px;
  line-height: 1.4;
}
.event-card__loc-name {
  display: block;
  font-style: italic;
  font-weight: 400;
}
.event-card__loc-city {
  display: block;
  font-style: normal;
  font-weight: 400;
}
/* Org card */
.event-card__org-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  border: 1px solid var(--uf-gray-300);
  background: transparent;
  padding: 5px 14px;
  width: 100%;
}
.event-card__org-label {
  font-size: 11px;
  font-weight: 300;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-offset: 2px;
  letter-spacing: 0.05em;
  color: #000;
}
.event-card__org-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--uf-black);
  line-height: 1.2;
}

.event-card__body {
  /* Override Manrope */
  font-family: var(--font-display);
  font-size: 18px;
  line-height: normal;
  color: #000;
  /* padding-left: 2rem; */
  display: flex;
  flex-direction: column;
  font-weight: 400;
}
.event-card__body p { margin: 0 0 14px; }
.event-card__body b, .event-card__body strong { color: var(--uf-dark); }
.event-card__cta-wrap {
  margin-top: auto;
  padding-top: 24px;
}
.event-card__cta-wrap--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.event-card__cta {
  background: var(--uf-mint);
  color: var(--uf-dark);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  min-width: 300px;
  height: 50px;
  transition: background .35s var(--ease-out), color .35s var(--ease-out);
}
.event-card__cta .ba-icon {width: 14px;height: 15px;}
.event-card__cta:hover {
  /* background: var(--uf-mint); */
  color: var(--uf-dark);
}

.event-card__media { overflow: hidden; }
.event-card__img,
.gallery__img,
.news-card__img,
.hero-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-img {
  position: absolute;
  inset: 0;
}

.event-card__media {
  align-self: stretch;
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--uf-gray-300);
}
.event-card__media .image-slot,
.event-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* EVENT CARD MOBILE (collapse) */
.event-card__mobile > * + * { margin-top: 14px; }
.event-card__more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #a1a1a1;
}
.event-card__more-arrow {
  width: 16px;
  height: 9px;
  fill: currentColor;
  transition: transform .3s var(--ease-out);
}
.event-card__more-toggle[aria-expanded="true"] .event-card__more-arrow {
  transform: rotate(180deg);
}
.event-card__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-out);
}
.event-card__more-toggle[aria-expanded="true"] + .event-card__more {
  grid-template-rows: 1fr;
}
.event-card__more-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.event-card__desc {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  color: #000;
}
.event-card__desc p { margin: 0 0 14px; }
.event-card__desc p:last-child { margin-bottom: 0; }

/* QUARTIERE + 3 CARDS */
.quartiere {
  padding: 0 0 4rem 0;
  background: var(--uf-gray-50);
}
.quartiere__eyebrow {
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 14px;
}

.quartiere__eyebrow b { font-weight: 900; }
.quartiere__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 56px;
  /* max-width */
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tag-card {
  position: relative;
  padding: 40px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
  color: var(--uf-dark);
  cursor: pointer;
}
.card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* CARD TOPMARK */
.card-topmark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  border-top: var(--mark-border) solid var(--uf-dark);
  pointer-events: none;
}
.card-topmark__arrow {
  position: absolute;
  /* leggermente a sinistra */
  left: 32px;
  top: -13px;
  width: var(--mark-arrow-w);
  height: var(--mark-arrow-h);
  fill: var(--uf-dark);
  transform: rotate(180deg);
}

/* CARD LEFTMARK */
.card-leftmark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22px;

  border-left: var(--mark-border) solid var(--uf-dark);
  pointer-events: none;
}
.card-leftmark__arrow {
  position: absolute;

  top: 50%;
  left: -8px;
  width: var(--mark-arrow-w);
  height: var(--mark-arrow-h);
  fill: var(--uf-dark);

  transform: translateY(-50%) rotate(-90deg);
}

.tag-card:hover .tag-card__cta .ba-icon  { transform: translateX(2rem) rotate(-90deg); }
.tag-card:hover .tag-card__cta .ba-label { transform: translateX(2rem); }
.tag-card--mint    { background: var(--uf-mint); }
.tag-card--cyan    { background: var(--uf-cyan); }
.tag-card--magenta { background: var(--uf-magenta); }

.tag-card__h {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.tag-card__h span {
  display: block;
  font-weight: 400;
  font-size: 22px;
  margin-top: 4px;
}
.tag-card__body {
  font-size: 17px;
  line-height: 26px;
  flex: 1;
}
.tag-card__body p { margin: 0; }

.tag-card__cta {
  margin: auto -32px 0;
  border-top: 1.5px solid var(--uf-dark);
  padding: 16px 32px 0;
  font-weight: 700;
  font-size: 15px;
}
.tag-card__cta .ba-icon {width: 14px;height: 15px;}

/* === ORGANIZE CARDS === */
.organize-cards-section {
  padding: 3rem 0;
  background: var(--uf-gray-50);
}
.organize-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.organize-cards .tag-card {
  min-height: 230px;
}

/* GALLERY */
.gallery {
  position: relative;
  padding: 1rem 0;
  background: var(--uf-gray-50);
  height: 380px;
}
.gallery__track {
  display: flex;
  gap: 16px;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  /* GSAP smoothing */
  scroll-behavior: auto;

  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  cursor: grab;
  /* Full-bleed */
  padding: 0;
}
.gallery__track::-webkit-scrollbar {
  display: none;
}
.gallery__track.is-dragging {
  cursor: grabbing;
}
.gallery__cell {
  flex: 0 0 auto;
  width: calc((100% - 32px) / 3);
  height: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.gallery__cell .image-slot,
.gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  pointer-events: none;
  -webkit-user-drag: none;
}
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: var(--uf-mint);
  color: var(--uf-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .25s var(--ease-out), opacity .25s var(--ease-out);
}
.gallery__arrow:hover:not(:disabled) {
  background: var(--uf-mint-2);
}
/* Disabled state */
.gallery__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.gallery__arrow svg {
  width: 14px;
  height: 15px;
  fill: currentColor;
  transform: rotate(-90deg);
}
/* Gallery arrows */
.gallery__arrow--prev {
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.gallery__arrow--prev svg { transform: rotate(90deg);  }
.gallery__arrow--next {
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
/* PB gallery (news): frecce a posizione fissa 1rem */
.pb-gallery .gallery__arrow--prev { left: 1rem; }
.pb-gallery .gallery__arrow--next { right: 1rem; }

/* NEWS */
.news {
  padding: 4rem 0;

  background: var(--uf-gray-50);
}
.news__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--uf-dark);
  background: var(--uf-white);
  padding: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0%);
  transition: box-shadow .3s var(--ease-out);
}
.news-card:hover {
  box-shadow: 0px 0px 17px 1px rgb(0 0 0 / 10%);
}
.news-card:hover .news-card__cta .ba-icon  { transform: translateX(2rem) rotate(-90deg); }
.news-card:hover .news-card__cta .ba-label { transform: translateX(2rem); }
.news-card__media {
  aspect-ratio: 5/3;
  overflow: hidden;
  background: var(--uf-gray-100);
  border: 1px solid var(--uf-black);
}
.news-card__media .image-slot,
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 15px;
  color: var(--uf-gray-500);
}
.news-card__cat {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 500;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--uf-gray-500);
  text-underline-offset: 2px;
}
.news-card__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.news-card__cta {
  border-top: 1px solid #000;
  padding-top: 16px;
  margin-top: auto;
  font-weight: 700;
  font-size: 15px;
  height: 40px;
  min-width: 100%;
}
.news-card__cta .ba-icon {width: 14px;height: 15px;}

/* GALLERY CARD */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.gallery-card {
  position: relative;
  z-index: 3;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--uf-black);
  cursor: pointer;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0%);
  transition: box-shadow .3s var(--ease-out);
}
.gallery-card:hover {
  box-shadow: 0px 0px 20px 1px rgb(0 0 0 / 20%);
}
.gallery-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
}
.gallery-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 82%) 0%, rgb(0 0 0 / 50%) 35%, rgb(0 0 0 / 0%) 65%);
  pointer-events: none;
}
.gallery-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: var(--uf-white);
  z-index: 2;
  pointer-events: none;
}
.gallery-card__title {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--uf-white);
}
.gallery-card__cta {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.gallery-card__cta .ba-icon {
  width: 22px;
  height: 11px;
}
/* Hover card: slide 2rem (icon + label), come btn-slide */
.gallery-card:hover .gallery-card__cta .ba-icon  { transform: translateX(2rem) rotate(-90deg); }
.gallery-card:hover .gallery-card__cta .ba-label { transform: translateX(2rem); }

/* GALLERY DETAIL */
.gallery-detail-section {
  background: var(--uf-gray-50);
  padding: 0 0 80px;
}
.gallery-detail-grid--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-detail-grid--grid .gallery-detail-item {
  aspect-ratio: 1;
}
.gallery-detail-grid--masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.gallery-detail-grid--masonry .gallery-detail-item {
  height: 18rem;
}
.gallery-detail-grid--masonry .gallery-detail-item--w25 { width: calc(25% - 1.5rem); }
.gallery-detail-grid--masonry .gallery-detail-item--w50 { width: calc(50% - 1rem); }
.gallery-detail-grid--masonry .gallery-detail-item--w100 { width: 100%; height: 28rem; }
.gallery-detail-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--uf-gray-100);
  border-radius: 0;
  z-index: 3;
}
.gallery-detail-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* LIGHTBOX */
.uf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgb(0 0 0 / 92%);
  opacity: 0;
}
.uf-lightbox[hidden] { display: none; }

/* reCAPTCHA v3 badge sopra ogni overlay (banner cookie incluso) */
.grecaptcha-badge { z-index: 2147483647 !important; }
/* Menu mobile aperto: nascondi i badge flottanti (reCAPTCHA + widget Cookiebot),
   altrimenti coprono i pulsanti del footer del drawer (lingua / Organizza) */
body.mobile-nav-open .grecaptcha-badge,
body.mobile-nav-open #CookiebotWidget { display: none !important; }
.uf-lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 96px;
}
.uf-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.uf-lightbox__close,
.uf-lightbox__prev,
.uf-lightbox__next {
  position: absolute;
  background: var(--uf-mint);
  border: 0;
  appearance: none;
  cursor: pointer;
  color: var(--uf-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease-out);
  z-index: 1;
}
.uf-lightbox__close:hover {
  background: rgb(255 255 255 / 16%);
}
.uf-lightbox__prev:hover,
.uf-lightbox__next:hover {
  background: var(--uf-mint-2);
}
.uf-lightbox__close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
}
.uf-lightbox__close svg { width: 22px; height: 22px; }
.uf-lightbox__prev,
.uf-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.uf-lightbox__prev { left: 20px; }
.uf-lightbox__next { right: 20px; }
.uf-lightbox__prev svg,
.uf-lightbox__next svg {
  width: 14px;
  height: 15px;
  fill: currentColor;
}
.uf-lightbox__prev svg { transform: rotate(90deg); }
.uf-lightbox__next svg { transform: rotate(-90deg); }
.uf-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--uf-white);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.5px;
}
body.uf-lightbox-open { overflow: hidden; }

/* GALLERY ARCHIVE + PAGINATION (mirror .news-pagination) */
.gallery-archive {
  background: var(--uf-gray-50);
  padding: 0 0 80px;
}
.gallery-page-content {
  opacity: 1;
  transition: opacity .3s ease;
}
.gallery-page-content.is-fading { opacity: 0; }
.gallery-empty {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--uf-gray-500);
  padding: 40px 0;
}
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 48px;
  position: relative;
}
.gallery-pagination-pages {
  overflow: hidden;
  max-width: 232px;
}
.gallery-pagination-track {
  display: flex;
  gap: 8px;
  transition: transform .4s var(--ease-smooth);
}
.gallery-pagination-page {
  min-width: 40px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid var(--uf-gray-300);
  background: var(--uf-white);
  color: var(--uf-dark);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.gallery-pagination-page:hover { border-color: var(--uf-dark); }
.gallery-pagination-page.is-active {
  background: var(--uf-mint);
  border-color: var(--uf-dark);
  color: var(--uf-black);
  cursor: default;
}
.gallery-pagination-arrow {
  width: 25px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid var(--uf-gray-300);
  background: var(--uf-white);
  cursor: pointer;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.gallery-pagination-arrow:hover:not(:disabled) {
  border-color: var(--uf-dark);
  background: var(--uf-mint);
}
.gallery-pagination-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.gallery-pagination-arrow svg {
  width: 12px;
  height: 8px;
  fill: var(--uf-dark);
}
.gallery-pagination-prev svg { transform: rotate(90deg); }
.gallery-pagination-next svg { transform: rotate(-90deg); }
.gallery-pagination-label {
  position: absolute;
  right: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--uf-gray-500);
}

/* PARTNERS STRIP */
.partners {
  background: var(--uf-white);
  padding: 38px 0;
  border-top: 1px solid var(--uf-gray-100);
}
/* NB */

/* FOOTER */
.footer {
  background: var(--uf-mint);
  color: var(--uf-dark);
  padding: 80px 0 28px;
  position: relative;
}

.partners-arrow {
  display: flex;
  justify-content: center;
  margin-top: -1rem;
  padding-bottom: 24px;
  background: var(--uf-white);
  position: relative;
  z-index: 3;
}
.partners-arrow svg {
  width: 26px;
  height: 15px;
  fill: var(--uf-mint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 64px;
}
.footer__brand {
  display: block;
  margin-bottom: 24px;
}
.footer__brand svg {
  width: 140px;
  height: auto;
  fill: var(--uf-dark);
}
.footer__info{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer__info p {
  margin: 0 0 0px;
  font-size: 14.5px;
  line-height: 18px;
}
.footer__info h6{
  margin: 0 0 5px;
  font-size: 14.5px;
  line-height: 18px;
  font-weight: 300;
}
.footer__info b { display: block; font-weight: 700; }
.footer__info a { color: inherit; }
.footer-legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a {}
.footer-menu {list-style: none;padding: 0;margin: 0;display: flex;flex-direction: column;gap: 16px;}
.footer-menu li a {
  font-size: 24px;
  font-weight: 500;
  padding: 4px 0;
  min-width: 220px;
  height: 28px;
  color: var(--uf-dark);
}
.footer-menu li a .ba-icon {width: 14px;height: 15px;}
.footer-menu li.is-current a {font-weight: 500;}

.newsletter h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.newsletter input[type="email"],
.newsletter input[type="text"] {
  width: 100%;
  background: var(--uf-white);
  border: 0;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
/* Nome + Cognome: 1 riga (desktop/tablet), stack su mobile */
.newsletter__row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.newsletter__row input {
  flex: 1;
  min-width: 0;
}
.newsletter__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: #b8252b;
}
.newsletter__alert {
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
  background: var(--uf-white);
  border-left: 3px solid var(--uf-mint);
}
/* Consenso a cascata: reveal condiviso (marketing -> profilazione -> interessi), newsletter + form contatti */
.uf-consent-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms ease, opacity 320ms ease;
}
.uf-consent-reveal.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.uf-consent-reveal__inner {
  min-height: 0;
  overflow: hidden;
}
.uf-interests {
  border: 0;
  padding: 0 0 10px;
  margin: 0;
  margin-top: 15px;
}
.uf-interests__legend {
  padding: 0;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--uf-dark);
}
.uf-interests__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
}
.uf-interest {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--uf-dark);
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .uf-consent-reveal { transition: none; }
}
/* Newsletter privacy */
.newsletter__privacy {
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--uf-dark);
  cursor: pointer;
}
.newsletter__privacy:first-of-type {margin-top: 15px;}
.newsletter__privacy:last-of-type {margin-bottom: 0;}
.newsletter__privacy a {font-weight: 700;text-decoration: underline;text-underline-offset: 2px;}
.newsletter__cta {
  background: var(--uf-dark);
  color: var(--uf-white);
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  height: 50px;
  width: 100%;
  margin-top: 15px;
}
.newsletter__cta .ba-icon {width: 14px;height: 15px;}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.social-row a {
  width: 32px; height: 32px;
  background: var(--uf-dark);
  color: var(--uf-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-legal {
  padding-top: 3rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  flex-wrap: wrap;
}
.footer-legal > * + *::before {
  content: '|';
  margin: 0 1.25rem;
  opacity: 0.6;
  display: inline-block;
}

.bars {
  display: flex;
  gap: 7px;
  width: 100%;
  background: #fff;
}
.bars .bar{
  display: block;
  height: 14px;
  width: 50%;
  background-color:  var(--uf-white);
}

.bars .bar.bar--1{
  border-top-right-radius: 15px;
}
.bars .bar.bar--2{
  border-top-left-radius: 15px;
}
.bars.white{
  position: absolute;
  bottom: 0;
  z-index: 2;
  background-color:  transparent!important;
}
.bars.green .bar{
  background-color: var(--uf-mint);
}
.bars.grey .bar{
  background-color: var(--uf-gray-50);
}
.bars.pink .bar{
  background-color: var(--uf-magenta);
}

/* HEADER LIGHT */
body.header-light .site-header {
  background: var(--uf-white);
  border-bottom-color: var(--uf-gray-100);
  color: var(--uf-dark);
}

/* THEME PINK */
body.page-spaces {
  --uf-mint: var(--uf-magenta);
  --uf-mint-2: var(--uf-magenta-2);
}

/* THEME CYAN */
body.page-services {
  --uf-mint: var(--uf-cyan);
  --uf-mint-2: var(--uf-cyan-2);
}

/* SERVIZI CARDS GRID */
.services-grid-section {
  padding: 15px 0 4rem;
  background: var(--uf-gray-50);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  position: relative;
  padding: 2rem;
  min-height: 220px;
  color: var(--uf-dark);
  font-family: var(--font-display);
  z-index: 3;
}
.service-card--white  { background: var(--uf-white); }
.service-card--accent { background: var(--uf-mint); }
.service-card__title {
  font-size: 31px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 20px;
}
.service-card__body {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 23px;
  font-weight: 400;
  color: var(--uf-dark);
  margin: 0;
}

.hero--about {
  position: relative;
  background: var(--uf-gray-50);
  color: var(--uf-dark);
  /* Altezza naturale */
  height: auto;
  min-height: auto;
  padding: calc(var(--header-h) + 60px) 0 40px;
  /* overflow */
  padding-left:7rem;
}

.hero--about__inner {
  position: relative;
  z-index: 2;
  padding-left: calc(var(--gutter) + 130px);
  padding-right: calc(var(--gutter) + 40px);
}
.hero--about .hero-h1 {
  color: var(--uf-black);
  font-size: 90px;
  line-height: 90px;
  max-width: 920px;
  /* Niente margin-top */
  margin: 0 0 18px;
}

.hero--about .breadcrumbs {
  margin-bottom: 28px;
}
.hero--about__intro {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-dark);
  /* max-width */
  margin: 0;
}

/* === HERO MESSAGGIO (404, annulla iscrizione) === */
.hero--about.hero--message {
  min-height: 70vh;
}

.hero--about.hero--message .event-card__cta {
  margin-top: 2rem;
}

/* INFO LIST (come arrivare) */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* max-width: 880px; */
  justify-content: center;
  align-content: center;
}
.info-list__item {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.info-list__icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background-color: var(--uf-mint);
  padding: 5px;
}
.info-list__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.info-list__text {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 26px;
  color: var(--uf-dark);
  margin: 0;
}

/* CONTACT MAP */
.contact-map {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--uf-gray-100);
  margin-top: 2rem;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

/* OSPITALITA HERO */
.ospitalita-hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 48px;
}
.ospitalita-hero-text p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-dark);
  margin: 0;
}
.ospitalita-cta-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--uf-black);
  margin: 0 0 16px;
}
.ospitalita-cta-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 880px;
}
.ospitalita-cta-text p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-dark);
  margin: 0;
}

/* HOSPITALITY SECTION */
.hospitality {
  background: var(--uf-white);
  padding: 80px 0 96px;
}
.hospitality__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--uf-black);
  margin: 0 0 18px;
}
.hospitality__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}
.hospitality__intro p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-dark);
  margin: 0;
}

/* HOSPITALITY CARDS */
.hospitality-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hospitality-card {
  display: flex;
  flex-direction: column;
  background: var(--uf-gray-50);
  padding: 1.5rem;
  transition: box-shadow .3s var(--ease-out);
}
/* .hospitality-card:hover {
  box-shadow: 0 0 17px 1px rgb(0 0 0 / 10%);
} */
.hospitality-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--uf-gray-100);
  border: 1px solid var(--uf-black);
}
.hospitality-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hospitality-card__body {
  display: flex;
  flex-direction: column;
  padding: 18px 0 0;
  flex: 1;
}
.hospitality-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--uf-black);
  margin: 0 0 14px;
}
.hospitality-card__contact {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hospitality-card__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 20px;
  color: var(--uf-dark);
}
.hospitality-card__contact a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}
.hospitality-card__contact a:hover {
  text-decoration: underline;
}
.hospitality-card__icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  object-fit: contain;
  display: block;
}
.hospitality-card__distance {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 18px;
  color: var(--uf-gray-500);
  margin: 0 0 16px;
}
.hospitality-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--uf-black);
  padding-top: 1.5rem;
  min-width: 100%;
  height: 40px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--uf-black);
  text-decoration: none;
}
.hospitality-card__cta .ba-icon {
  width: 14px;
  height: 8px;
  fill: var(--uf-black);
}

.hospitality-card__cta:hover .ba-icon  { transform: translateX(2rem) rotate(-90deg); }
.hospitality-card__cta:hover .ba-label { transform: translateX(2rem); }

/* === AVVISI / AVVISO ESPOSITORI === */
.hero--about.hero--avvisi { padding-bottom: 0; }
.avvisi-body {
  background: var(--uf-gray-50);
  padding: 0 0 96px;
  padding-left: 7rem;
}
.avvisi-body__inner {
  padding-left: calc(var(--gutter) + 130px);
  padding-right: 4.5rem;
}
.avvisi-body__paragraph {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-dark);
  margin: 0 0 20px;
  /* max-width: 880px; */
}
.avvisi-body__paragraph strong { font-weight: 700; }

.avvisi-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--uf-gray-500);
}
.avvisi-card:last-of-type { border-bottom: 0; }
.avvisi-card--espositori {
  margin-top: 16px;
  padding-top: 40px;
  /* border-top: 1px solid var(--uf-gray-200); */
  border-bottom: 0;
}
.avvisi-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--uf-black);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.avvisi-card__desc {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-dark);
  margin: 0 0 24px;
  /* max-width: 880px; */
}
.avvisi-card__desc:last-child { margin-bottom: 0; }
.avvisi-card__desc strong { font-weight: 700; }

.avvisi-card__bando {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--uf-gray-50);
  padding: 16px 20px 16px 0;
}
.avvisi-card__bando-text {
  flex: 1;
  min-width: 0;
}
.avvisi-card__bando-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--uf-black);
  margin: 0;
  line-height: 22px;
}
.avvisi-card__bando-subtitle {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--uf-dark);
  margin: 4px 0 0;
  line-height: 20px;
}
.avvisi-card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  min-width: 220px;
  background: #fff;
  color: var(--uf-black);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.avvisi-card__cta:hover {
  background: var(--uf-mint);
}
.avvisi-card__cta svg {
  width: 14px;
  height: 8px;
  fill: currentColor;
  transform: rotate(-90deg);
  transition: all .2s var(--ease-out);
}
.avvisi-card__cta:hover svg {
  transform: rotate(0deg);
}
.avvisi-card__cta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === PRIVACY POLICY === */
.privacy-h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--uf-black);
  margin: 0 0 32px;
  max-width: 920px;
}
.privacy-h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--uf-black);
  margin: 32px 0 12px;
}
.privacy-h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--uf-dark);
  margin: 20px 0 10px;
}
.privacy-p {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 24px;
  color: var(--uf-dark);
  margin: 0 0 16px;
  max-width: 880px;
}
.privacy-p strong { font-weight: 700; }
.privacy-p a { color: var(--uf-black); text-decoration: underline; }
.privacy-p a:hover { color: var(--uf-mint-2); }
.privacy-list {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 24px;
  color: var(--uf-dark);
  margin: 0 0 16px;
  padding-left: 24px;
  max-width: 880px;
}
.privacy-list li { margin-bottom: 8px; }
.privacy-list ul { margin: 10px 0; padding-left: 24px; }
.privacy-list ul li { margin-bottom: 6px; }

/* === SOCIETA TRASPARENTE === */

/* Hero text */
.trasparente-hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-dark);
}
.trasparente-hero-text p {
  margin: 0;
}

/* Body */
.trasparente-body {
  background: var(--uf-gray-50);
  padding: 00 0 80px;
}

/* Grid */
.trasparente-grid {
  display: grid;
  grid-template-columns: 25rem 1fr;
  gap: 40px;
  align-items: start;
  align-content: start;
}

/* Aside */
.trasparente-aside {
  position: relative;
  display: block;
  /* top: 100px; */
}

/* Menu */
.trasparente-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* .trasparente-select come .month-select (block in fondo) */
.trasparente-menu__item {
  background: var(--uf-gray-100);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.trasparente-menu__item:hover {
  background: var(--uf-gray-200);
}
.trasparente-menu__item.is-active {
  background: var(--uf-mint);
}
.trasparente-menu__item.is-active:hover {
  background: var(--uf-mint);
}
.trasparente-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--uf-black);
  text-decoration: none;
  line-height: 1.3;
}
.trasparente-menu__item.is-active .trasparente-menu__link {
  font-weight: 600;
}
.trasparente-menu__arrow {
  flex-shrink: 0;
  width: 14px;
  height: 8px;
  fill: var(--uf-black);
  transform: rotate(-90deg);
  opacity: 1;
  transition: transform .2s var(--ease-out);
  order: 2;
}
.trasparente-menu__link > span {
  flex: 0 1 auto;
  order: 1;
}
.trasparente-menu__item.is-active .trasparente-menu__link {
  justify-content: flex-start;
}
.trasparente-menu__item.is-active .trasparente-menu__arrow {
  order: 0;
}

/* Content */
.trasparente-content {
  opacity: 1;
  transition: opacity .3s var(--ease-out);
}
.trasparente-content.is-fading {
  opacity: 0;
}
.trasparente-content__title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--uf-black);
  margin: 0 0 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--uf-black);
}
.trasparente-content__body > * + * {
  margin-top: 15px;
}
/* Elementi dentro la sezione PB (wrapper .pb-section): stessa spaziatura */
.trasparente-content__body .pb-section > * + * {
  margin-top: 15px;
}

/* Heading */
.trasparente-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--uf-black);
  margin: 0;
  line-height: 1.2;
}
.trasparente-heading--h1 { font-size: 36px; }
.trasparente-heading--h2 { font-size: 24px; }
.trasparente-heading--h3 { font-size: 20px; }
.trasparente-heading--h4 { font-size: 18px; }
.trasparente-heading--h5 { font-size: 16px; }
.trasparente-heading--h6 { font-size: 14px; }

/* Text */
.trasparente-text {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 26px;
  color: var(--uf-dark);
}
.trasparente-text p {
  margin: 0 0 14px;
}
.trasparente-text p:last-child {
  margin-bottom: 0;
}
.trasparente-text ul,
.trasparente-text ol {
  margin: 0 0 14px;
  padding-left: 20px;
}
.trasparente-text li {
  margin: 0 0 6px;
}
.trasparente-text a {
  color: var(--uf-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.trasparente-text strong, .trasparente-text b {
  font-weight: 700;
  color: var(--uf-black);
}

/* === BUTTONS LIST === */
.trasparente-buttons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.trasparente-buttons-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--uf-gray-200);
}
.trasparente-buttons-list__item:last-child {
  border-bottom: 0;
}
.trasparente-buttons-list__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 60%;
}
.trasparente-buttons-list__subtitle {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--uf-black);
}
.trasparente-buttons-list__label {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.4;
  color: var(--uf-dark);
}
.trasparente-buttons-list__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  min-width: 220px;
  background: #fff;
  color: var(--uf-black);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.trasparente-buttons-list__cta:hover {
  background: var(--uf-mint);
}
.trasparente-buttons-list__cta svg {
  width: 14px;
  height: 8px;
  fill: currentColor;
  transform: rotate(-90deg);
  transition: all .2s var(--ease-out);
}

.trasparente-buttons-list__cta:hover svg{
  transform: rotate(0deg);
}
.trasparente-buttons-list__cta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === OVERFLOW DEFENSE - fix CSS Grid + content variabile === */
.trasparente-grid > .trasparente-content,
.trasparente-content,
.trasparente-content__body,
.trasparente-table-wrap,
.trasparente-buttons-list {
  min-width: 0;
  max-width: 100%;
}
.trasparente-content__title,
.trasparente-heading,
.trasparente-heading--h1,
.trasparente-heading--h2,
.trasparente-heading--h3,
.trasparente-heading--h4,
.trasparente-heading--h5,
.trasparente-heading--h6,
.trasparente-text,
.trasparente-buttons-list__info,
.trasparente-buttons-list__subtitle,
.trasparente-buttons-list__label {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trasparente-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trasparente-text pre,
.trasparente-text code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow-x: auto;
}
.trasparente-text img,
.trasparente-text iframe,
.trasparente-text table {
  max-width: 100%;
  height: auto;
}
.trasparente-text table {
  display: block;
  overflow-x: auto;
}

/* === DATA TABLE === */
.trasparente-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.trasparente-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 14px;
}
.trasparente-table th {
  text-align: left;
  padding: 7px 14px 7px 0;
  font-weight: 700;
  color: var(--uf-black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  border-bottom: 2px solid var(--uf-black);
  background: transparent;
}
.trasparente-table td {
  text-align: left;
  padding: 12px 14px;
  color: var(--uf-dark);
  vertical-align: top;
  line-height: 1.5;
}
.trasparente-table th,
.trasparente-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trasparente-table tbody tr:nth-child(even) {
  background: var(--uf-white);
}
.trasparente-table tbody tr:nth-child(odd) {
  background: var(--uf-gray-100);
}
.trasparente-table td.is-bold {
  font-weight: 700;
  color: var(--uf-black);
}
.trasparente-table td.is-multiline {
  white-space: pre-line;
}
.trasparente-table--cols-2 th:first-child,
.trasparente-table--cols-2 td:first-child {width: 50%;}
.trasparente-table--cols-3 th,
.trasparente-table--cols-3 td { width: 33.333%; }
.trasparente-table--cols-4 th,
.trasparente-table--cols-4 td { width: 25%; }
/* Empty */
.trasparente-empty {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--uf-gray-500);
  padding: 40px 0;
  margin: 0;
  text-align: center;
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: 15px;
  color: var(--uf-gray-300);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
}
.breadcrumbs a {
  color: inherit;
  transition: color .2s var(--ease-out);
}
.breadcrumbs a:hover {color: var(--uf-gray-500);}
.breadcrumbs [aria-current="page"] {color: #000;}
.breadcrumbs__sep { opacity: .5; }

/* LIST ARROW */
.list-arrow {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 8px;
}
.list-arrow li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-weight: 400;
  color: var(--uf-black);
  font-size: 17px;
  line-height: 26px;
}
.list-arrow__bullet {
  flex: none;
  width: 14px;
  height: 15px;
  fill: var(--uf-mint);

  transform: rotate(-90deg);
  align-self: center;
}

/* NUMBERS GRID */
.numbers {
  background: var(--uf-gray-50);
  padding: 70px 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.number-card {
  position: relative;
  background: var(--uf-mint);
  color: var(--uf-black);
  padding: 1.5rem 2.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.number-card__value {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  /* tabular-nums */
  font-variant-numeric: tabular-nums;
  width: 100%;
  margin: 0 -24px;
  padding-bottom: 1rem;
  border-bottom: 2.5px solid var(--uf-dark);
}
.number-card__label {
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 28px;
}

/* SPLIT COLS */
.about-section {
  background: var(--uf-gray-50);
  padding: 80px 0;
}
.split-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.split-cols > * {
  min-width: 0;
  width: 100%;
  height: 100%;
}
.split-cols__image img {
  width: 100%;
  height: auto;
  display: block;
}
/* Foto con caption (es. Maschiella in "La storia") */
.split-cols__image--caption {
  position: relative;
  overflow: hidden;
}
.split-cols__image--caption::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 62%), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.photo-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 26px;
  color: var(--uf-white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}
.photo-caption b { font-weight: 700; }
.split-cols__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--uf-black);
  margin: 0 0 24px;
}
.split-cols__text p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  color: var(--uf-gray-700);
  margin: 0 0 16px;
}
.split-cols__text p:last-of-type { margin-bottom: 0; }
.split-cols--image-right {
  flex-direction: row-reverse;
}

/* EVENT-CARD CTA */
.event-card__cta.event-card__cta--mint,
.event-card__cta.event-card__cta--mint:hover {
  background: var(--uf-mint);
  color: var(--uf-dark);
}

/* Variante WHITE */
.event-card__cta.event-card__cta--white {
  background: var(--uf-white);
  color: var(--uf-dark);
}
.event-card__cta.event-card__cta--white:hover {
  background: var(--uf-mint);
  color: var(--uf-dark);
}

/* Variante FULL */
.event-card__cta.event-card__cta--full {
  width: 100%;
  min-width: 0;
}

/* Variante GREY - bg statico gray-50, no cambio su hover */
.event-card__cta.event-card__cta--grey,
.event-card__cta.event-card__cta--grey:hover {
  background: var(--uf-gray-50);
  color: var(--uf-dark);
}

/* Variante NO-HOVER - freeze bg su hover */
.event-card__cta.event-card__cta--white.event-card__cta--no-hover:hover {
  background: var(--uf-white);
  color: var(--uf-dark);
}

/* CALENDARIO */
.calendar {
  background: var(--uf-gray-50);
  padding: 0 0 80px;
}

/* ---- Filtro mesi ---- */
.month-filter {
  margin-bottom: 40px;
}

/* Tab-bar mesi */
.month-tabs {
  position: relative;
  display: flex;
  background: var(--uf-white);

  border-bottom: 1px solid var(--uf-gray-200);
}
.month-tab {
  flex: 1;
  /* reset button */
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  /* Mesi non attivi */
  color: var(--uf-gray-300);
  padding: 16px 0px;
  text-align: center;
  white-space: nowrap;
  transition: color .25s var(--ease-out);
}
.month-tab:hover {
  color: var(--uf-gray-700);
}
.month-tab.is-active {
  /* Tab attiva */
  color: var(--uf-black);
}

/* Indicatore sliding condiviso */
.month-tabs__indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;            /* settato da JS */
  height: 3.5px;
  background: var(--uf-black);
  transition: left .35s var(--ease-smooth), width .35s var(--ease-smooth);
  pointer-events: none;
}
.month-tabs__indicator svg {
  position: absolute;
  left: 50%;
  top: 0px;
  width: 22px;
  height: 10px;
  transform: translateX(-50%);
  fill: var(--uf-black);
}

/* Select mese */
/* Uniform select styling - .month-select (Calendario+News) e .trasparente-select: bg mint + chevron SVG + padding pill */
.month-select,
.trasparente-select {
  display: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  color: var(--uf-black);
  border: 2px solid #000;
  border-radius: 0;
  padding: 14px 44px 14px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background-image: url("/assets/frontend/svg/uf_arrow.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 8px;
}
.month-select:focus,
.trasparente-select:focus {
  outline: none;
  box-shadow: none;
  /* border: 0; */
}

/* ---- Griglia eventi ---- */
.calendar-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  /* Blur durante il cambio mese */
  transition: filter .22s var(--ease-out), opacity .22s var(--ease-out);
}

.calendar-events.is-filtering {
  filter: blur(8px);
  opacity: 0.55;
  pointer-events: none;
}

/* Card evento */
.calendar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--uf-white);
  border-left: var(--mark-border) solid var(--uf-gray-200);
  padding: 24px 24px 24px 32px;
  min-height: 500px;
  /* overflow visible */
  overflow: visible;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0%);
  transition: all .3s var(--ease-out);
}
.calendar-card:hover {
  box-shadow: 0px 0px 17px 1px rgb(0 0 0 / 10%);
  border-left: var(--mark-border) solid #e5e5e5; 
}
.calendar-card:hover .calendar-card__arrow{
  fill: #e5e5e5; 
}
.calendar-card__arrow {
  position: absolute;
  top: 50%;
  left: -41px;
  transform: translateY(-50%) rotate(-90deg);
  width: var(--mark-arrow-w);
  height: var(--mark-arrow-h);
  fill: var(--uf-gray-200);
  pointer-events: none;
  transition: all .3s var(--ease-out);
}

.calendar-card__logo {
  border: 1px solid var(--uf-gray-300);
  background: var(--uf-white);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.calendar-card__date {
  /* position */
  position: relative;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  color: var(--uf-black);
  margin: 0;
}
.calendar-card__title {
  font-family: var(--font-display);

  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--uf-black);
  margin: 0;
}
.calendar-card__subtitle {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  color: var(--uf-gray-700);
  margin: 0;
  flex: 1;
}

/* Org block */
.calendar-card__org {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--uf-gray-50);
  padding: 10px 14px;
}
.calendar-card__org-label {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--uf-gray-500);
  text-underline-offset: 2px;
}
.calendar-card__org-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--uf-black);
  text-align: right;
}

/* CTA verde mint */
.calendar-card__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--uf-mint);
  color: var(--uf-black);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  margin-top: auto;
}
/* Solo width/height */
.calendar-card__cta .ba-icon {
  width: 16px;
  height: 9px;
}

.calendar-card:hover .calendar-card__cta .ba-icon {
  transform: translateX(2rem) rotate(-90deg);
}
.calendar-card:hover .calendar-card__cta .ba-label {
  transform: translateX(2rem);
}

/* NEWS ARCHIVE */
.news-archive {
  background: var(--uf-gray-50);
  padding: 0 0 80px;
}
.news-cat-filter {
  margin-bottom: 40px;
}
.news-page-content {
  opacity: 1;
  transition: opacity .3s ease;
}
.news-page-content.is-fading {
  opacity: 0;
}
.news-empty {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--uf-gray-500);
  padding: 40px 0;
}

/* NEWS PAGINATION */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 48px;
  position: relative;
}
.news-pagination-pages {
  overflow: hidden;
  max-width: 232px;
}
.news-pagination-track {
  display: flex;
  gap: 8px;
  transition: transform .4s var(--ease-smooth);
}
.news-pagination-page {
  min-width: 40px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  /* border: 1px solid var(--uf-gray-300); */
  background: var(--uf-white);
  color: var(--uf-dark);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.news-pagination-page:hover {
  border-color: var(--uf-dark);
}
.news-pagination-page.is-active {
  background: var(--uf-mint);
  border-color: var(--uf-dark);
  color: var(--uf-black);
  cursor: default;
}
.news-pagination-arrow {
  width: 25px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  /* border: 1px solid var(--uf-gray-300); */
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.news-pagination-arrow:hover:not(:disabled) {
  border-color: var(--uf-dark);
  background: var(--uf-mint);
}
.news-pagination-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.news-pagination-arrow svg {
  width: 12px;
  height: 8px;
  fill: var(--uf-dark);
}
.news-pagination-prev svg { transform: rotate(90deg); }
.news-pagination-next svg { transform: rotate(-90deg); }
.news-pagination-label {
  position: absolute;
  right: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--uf-gray-500);
}

/* HERO NEWS DETAIL */
.hero-news-detail {
  position: relative;
  min-height: 70vh;
  display: flex;
  overflow: hidden;
  color: var(--uf-white);
  padding: 7rem 0 2rem;
}
.hero-news-detail__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-news-detail__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 35%) 0%, rgb(0 0 0 / 70%) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-news-detail__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-news-detail__title {
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 500;
  line-height: 100px;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--uf-white);
}

/* Breadcrumbs light variant (hero scura) */
.breadcrumbs--light,
.breadcrumbs--light a,
.breadcrumbs--light span {
  color: var(--uf-gray-300);
  transition: color .2s var(--ease-out);
}
.breadcrumbs--light [aria-current="page"] {
  color: var(--uf-white);
}
.breadcrumbs--light a:hover {
  color: var(--uf-white);
}

/* NEWS DETAIL BODY */
.news-detail {
  background: var(--uf-gray-50);
  padding: 56px 0 80px;
}
.news-detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
/* Fix Grid + 1fr: min-width: auto sui grid items consente al content (PB) di
   spingere oltre la track 2fr. Forza min-width: 0 per lasciare la track shrink. */
.news-detail__main,
.news-detail__aside {
  min-width: 0;
  max-width: 100%;
}
.news-detail__main {
  background: var(--uf-gray-50);
  padding: 0;
}
.news-detail__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--uf-gray-500);
  margin: 0 0 20px;
}
/* Category card bianca cliccabile - filtra news list */
.news-detail__cat-card {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--uf-white);
  color: var(--uf-black);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  border: 1px solid var(--uf-gray-200);
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.news-detail__cat-card:hover {
  background: var(--uf-mint);
  border-color: var(--uf-mint);
  color: var(--uf-black);
}
.news-detail__date {
  font-size: 14px;
  color: var(--uf-gray-500);
}
.news-detail__lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--uf-dark);
  margin: 0 0 24px;
}
.news-detail__content {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: normal;
  color: var(--uf-gray-700);
}
.news-detail__content p { margin: 0 0 16px; }
.news-detail__content img { max-width: 100%; height: auto; margin: 16px 0; }
.news-detail__pb {
  margin-top: 15px;
}

/* NEWS ASIDE (related + share) */
.news-detail__aside { position: sticky; top: calc(var(--header-h) + 16px); }
.news-aside {
  background: var(--uf-white);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 48px);
}
.news-aside__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--uf-black);
  background: var(--uf-mint);
  margin: 0;
  padding: 16px 24px;
}
.news-aside__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-aside__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 8px;
  align-items: center;
  transition: background .2s var(--ease-out);
}
.news-aside__item:hover { background: var(--uf-gray-50); }
.news-aside__item-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--uf-gray-100);
}
.news-aside__item-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-aside__item-date {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--uf-gray-500);
  margin: 0 0 4px;
}
.news-aside__item-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--uf-dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-aside__empty {
  padding: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--uf-gray-500);
  margin: 0;
}
.news-aside__share {
  border-top: 1px solid var(--uf-gray-100);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.news-aside__share-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--uf-dark);
}
.news-aside__share-links {
  display: flex;
  gap: 10px;
}
.news-aside__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--uf-dark);
  background: var(--uf-gray-50);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.news-aside__share-link:hover {
  background: var(--uf-mint);
}
.news-aside__share-link svg { width: 16px; height: 16px; }

/* PB TEMPLATE PLACEHOLDER */
.pb-element--todo {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--uf-gray-50);
  border: 1px dashed var(--uf-gray-300);
  color: var(--uf-gray-500);
  font-family: var(--font-display);
  font-size: 13px;
}

/* PB BASE + UTILITIES */
.pb-align-left   { text-align: left; }
.pb-align-center { text-align: center; }
.pb-align-right  { text-align: right; }
.is-mobile-only { display: none; }

/* === PB SECTION PADDING (desktop) === */
.pb-section {
  padding-top: var(--pb-sec-pt-d, 0);
  padding-bottom: var(--pb-sec-pb-d, 0);
}
/* === PB ELEMENT PADDING (desktop) === */
.pb-el-pad {
  padding-top: var(--pb-el-pt-d, 0);
  padding-bottom: var(--pb-el-pb-d, 0);
}

/* === PB OVERFLOW DEFENSE === */
.pb-section, .pb-column, .pb-element { min-width: 0; max-width: 100%; }
.pb-heading { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.pb-text, .pb-text__body { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; min-width: 0; }
.pb-text a, .pb-text__body a { overflow-wrap: anywhere; word-break: break-word; }
.pb-text pre, .pb-text code,
.pb-text__body pre, .pb-text__body code { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; overflow-x: auto; }
.pb-text img, .pb-text iframe,
.pb-text__body img, .pb-text__body iframe { max-width: 100%; height: auto; }
.pb-text table, .pb-text__body table { display: block; max-width: 100%; overflow-x: auto; }
.pb-image, .pb-image__img { max-width: 100%; }
.pb-image__img { height: auto; }
.pb-gallery {max-width: 100%;height: auto;}
.pb-gallery__img { max-width: 100%; }
.pb-button-wrap, .pb-button { max-width: 100%; }
.pb-button { overflow-wrap: anywhere; word-break: break-word; }
.pb-video, .pb-video__frame { max-width: 100%; }
.pb-iframe { max-width: 100%; overflow-x: auto; }
.pb-iframe iframe { max-width: 100%; }
.pb-accordion__title, .pb-accordion__body { overflow-wrap: anywhere; word-break: break-word; }

/* PB HEADING */
.pb-heading {
  margin: 0 0 15px;
  font-family: var(--font-display);
  color: var(--uf-black);
}
.pb-heading--h1 { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.pb-heading--h2 { font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.pb-heading--h3 {font-size: 28px;font-weight: 500;line-height: 1.2;letter-spacing: -0.01em;}
.pb-heading--h4 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.pb-heading--h5 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.pb-heading--h6 { font-size: 16px; font-weight: 700; line-height: 1.35; }

/* PB TEXT */
.pb-text__body > *:first-child { margin-top: 0; }
.pb-text__body > *:last-child { margin-bottom: 0; }
.pb-text__body p { margin: 0 0 16px; line-height: 1.65; }
.pb-text__body a { text-decoration: underline; }
.pb-text__body strong { font-weight: 700; }
.pb-text__body em { font-style: italic; }
.pb-text__body ul,
.pb-text__body ol { margin: 0 0 16px; padding-left: 0; }
.pb-text__body ol { padding-left: 1.5rem; }
.pb-text__body ol li { list-style: decimal; }
/* Bullet ul/li = uf_arrow.svg ruotato -90deg (chevron destra), color nero default */
.pb-text__body ul,
.news-detail__content ul { list-style: none; padding-left: 0; }
.news-detail__content ul { margin: 0 0 16px; }
.pb-text__body ul li,
.news-detail__content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
}
.pb-text__body ul li::before,
.news-detail__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 14px;
  height: 15px;
  background-image: url("/assets/frontend/svg/uf_arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(-90deg);
  transform-origin: center;
}
.pb-text__body blockquote {
  margin: 16px 0;
  padding-left: 16px;
  border-left: 3px solid var(--uf-mint);
  color: var(--uf-gray-700);
}
.pb-text__body img { max-width: 100%; height: auto; margin: 16px 0; }

/* PB IMAGE */
.pb-image { margin: 16px 0; }
.pb-image--left   { text-align: left; }
.pb-image--center { text-align: center; }
.pb-image--right  { text-align: right; }
.pb-image--w-narrow .pb-image__img { max-width: 480px; }
.pb-image--w-medium .pb-image__img { max-width: 720px; }
.pb-image--w-wide   .pb-image__img { max-width: 960px; }
.pb-image--w-full   .pb-image__img { max-width: 100%; }
.pb-image__link { display: inline-block; }
.pb-image__img {
  display: inline-block;
  width: 100%;
  height: var(--pb-img-h-d, auto);
  object-fit: var(--pb-img-fit, cover);
  border-radius: var(--pb-img-radius, 0);
}
.pb-image--center .pb-image__img,
.pb-image--center .pb-image__link { margin-left: auto; margin-right: auto; }
.pb-image__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--uf-gray-500);
}

/* PB GALLERY - grid 2/3 (riusa .gallery) */
.pb-gallery--grid-2,
.pb-gallery--grid-3 {
  display: grid;
  gap: var(--pb-gallery-gap, 16px);
  margin: 16px 0;
}
.pb-gallery--grid-2 { grid-template-columns: repeat(2, 1fr); }
.pb-gallery--grid-3 { grid-template-columns: repeat(3, 1fr); }
.pb-gallery--w-narrow { max-width: 480px; }
.pb-gallery--w-medium { max-width: 720px; }
.pb-gallery--w-wide   { max-width: 960px; }
.pb-gallery--w-full   { max-width: 100%; }
.pb-gallery--grid-2,
.pb-gallery--grid-3 { margin-left: auto; margin-right: auto; }
.pb-gallery__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pb-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: var(--pb-img-h-d, auto);
  object-fit: var(--pb-img-fit, cover);
  border-radius: var(--pb-img-radius, 0);
  display: block;
}
.pb-gallery--smooth .gallery__img {
  height: var(--pb-img-h-d, auto);
  object-fit: var(--pb-img-fit, cover);
  border-radius: var(--pb-img-radius, 0);
}

/* PB BUTTON - come .btn-organizza */
.pb-button-wrap { display: flex; margin: 16px 0; }
.pb-button-wrap--left   { justify-content: flex-start; }
.pb-button-wrap--center { justify-content: center; }
.pb-button-wrap--right  { justify-content: flex-end; }
.pb-button {
  font-family: var(--font-display);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 140px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .35s var(--ease-out), color .35s var(--ease-out);
}
.pb-button .ba-icon { width: 14px; height: 15px; }
/* PB button: no slide hover (solo cambio colore) */
.pb-button:hover .ba-icon { transform: rotate(-90deg); }
.pb-button:hover .ba-label { transform: none; }
.pb-button--full { width: 100%; }
.pb-button--chiaro { background: var(--uf-mint); color: var(--uf-dark); }
.pb-button--chiaro:hover { background: var(--uf-dark); color: var(--uf-white); }
.pb-button--scuro { background: var(--uf-dark); color: var(--uf-white); }
.pb-button--scuro:hover { background: var(--uf-mint); color: var(--uf-dark); }

/* PB VIDEO */
.pb-video {
  margin: 16px 0;
}
.pb-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--pb-video-aspect, 16/9);
  background: var(--uf-black);
  overflow: hidden;
  border-radius: var(--pb-video-radius, 0);
}
.pb-video__iframe,
.pb-video__file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* PB IFRAME */
.pb-iframe {
  margin: 16px 0;
  width: 100%;
  border-radius: var(--pb-iframe-radius, 0);
  overflow: hidden;
}
.pb-iframe iframe {
  display: block;
  max-width: 100%;
}

/* PB DIVIDER */
.pb-divider-wrap { display: flex; margin: 16px 0; }
.pb-divider-wrap--left   { justify-content: flex-start; }
.pb-divider-wrap--center { justify-content: center; }
.pb-divider-wrap--right  { justify-content: flex-end; }
.pb-divider { box-sizing: border-box; }

/* PB SPACER */
.pb-element--spacer { width: 100%; }

/* PB ACCORDION */
.pb-accordion { margin: 16px 0; }
.pb-accordion__item { border-bottom: 1px solid var(--uf-gray-100); }
.pb-accordion__item:first-child { border-top: 1px solid var(--uf-gray-100); }
.pb-accordion__heading { margin: 0; }
.pb-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--uf-dark);
  transition: color .2s var(--ease-out);
}
.pb-accordion__trigger:hover { color: var(--uf-mint-2); }
.pb-accordion__title { flex: 1; }
.pb-accordion__icon {
  width: 14px;
  height: 8px;
  flex: none;
  fill: currentColor;
  transition: transform .3s var(--ease-out);
}
.pb-accordion__item.is-open .pb-accordion__icon { transform: rotate(-180deg); }
.pb-accordion__panel { overflow: hidden; }
.pb-accordion__body {
  padding: 0 4px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  color: var(--uf-gray-700);
}
.pb-accordion__body > *:first-child { margin-top: 0; }
.pb-accordion__body > *:last-child { margin-bottom: 0; }
.pb-accordion__body p { margin: 0 0 12px; }
.pb-accordion__body a { text-decoration: underline; }

.pb-gallery__caption {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--uf-gray-500);
}

/* NAV DROPDOWN */
.nav .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

/* Wrap dropdown */
.nav-dropdown-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 235px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0fr;
  transition: grid-template-rows .2s linear;
  pointer-events: none;
}
.nav .nav-item:hover .nav-dropdown-wrap,
.nav .nav-item:focus-within .nav-dropdown-wrap,
.nav .nav-item.is-open .nav-dropdown-wrap {
  grid-template-rows: 1fr;
  pointer-events: auto;
  box-shadow: 2px 10px 20px 1px rgb(0 0 0 / 15%);
}

.nav-dropdown {
  min-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--uf-mint);
}

.nav-dropdown li {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}
/* Linea separatrice TRA gli item */
.nav-dropdown li + li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--uf-dark);

  z-index: 1;
  pointer-events: none;
}

/* Link dentro al dropdown */
.nav .nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: auto;
  padding: 14px 20px;
  color: var(--uf-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s var(--ease-out);
}
.nav .nav-dropdown a::before {
  content: none;
}
.nav .nav-dropdown a:hover {
  background: var(--uf-mint-2);
}
.nav .nav-dropdown a svg {
  width: 11px;
  height: 6px;
  fill: currentColor;
  flex: none;

  transform: rotate(-90deg);
}

/* Caret della nav-item */
.nav .has-caret .caret {
  transition: transform .25s var(--ease-out);
}
.nav .nav-item:hover .has-caret .caret,
.nav .nav-item:focus-within .has-caret .caret,
.nav .nav-item.is-open .has-caret .caret {
  transform: rotate(-180deg);
}

/* ABOUT-SECTION white modifier */
.about-section--white {
  background: var(--uf-white);
}

/* SPAZI SECTION */
.spazi-section {
  padding: 80px 0;
  background: var(--uf-gray-50);
}
.spazi-section--white {
  background: var(--uf-white);
}
.spazi-section__grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 56px;
  align-items: start;
}

.spazi-section__text > p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 22px;
  color: var(--uf-dark);
  margin: 0 0 18px;
}
.spazi-section__text > p:last-of-type {
  margin-bottom: 0;
}

.spazi-section__text > .list-arrow {
  margin: 18px 0 24px;
}

.spazi-section__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spazi-card {
  position: relative;
  background: var(--uf-mint);
  color: var(--uf-dark);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  overflow: visible;
}
.spazi-card__title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--uf-dark);
}
.spazi-card .card-leftmark__arrow {
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  left: -17px;
}
.spazi-card__desc {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.spazi-card__num {
  font-weight: 700;
}

.spazi-section__aside .event-card__cta-wrap {
  margin-top: 6px;
}

/* FORM SECTION */
.form-section {
  padding: 80px 0 80px 0;
  background: var(--uf-gray-50);
}
body.page-contact\.us .form-section {
  padding-top: 0;
}
.form-section__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
.form-section__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--uf-black);
  margin: 0 0 24px;
}
.form-section__intro--card {
  background: var(--uf-mint);
  padding: 2rem;
  position: relative;
  z-index: 2;
}
.form-section__intro p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  color: var(--uf-dark);
  margin: 0;
  font-weight: 500;
}
.form-section__intro--card p {
  font-size: 16px;
  font-weight: 300;
}
.form-section__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

/* CARD RIGHTMARK - mirror di card-leftmark (bordo/arrow a destra) */
.card-rightmark {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 0;
  border-right: var(--mark-border) solid var(--uf-dark);
  pointer-events: none;
}
.card-rightmark__arrow {
  position: absolute;
  top: 50%;
  right: -17px;
  width: var(--mark-arrow-w);
  height: var(--mark-arrow-h);
  fill: var(--uf-dark);
  transform: translateY(-50%) rotate(-90deg);
}
.form-section__info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-section__info-block:not(:last-child) {
  padding-bottom: 2rem;
}
.form-section__info-block:not(:last-child) {
  border-bottom: 2px solid var(--uf-dark);
}
.form-section__info-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--uf-black);
  margin: 0 0 6px;
  position: relative;
  z-index: 3;
}
.form-section__info-line {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  color: var(--uf-dark);
  margin: 0;
}
/* Indirizzo "Dove siamo": righe in grassetto + gap regolabile */
.form-section__address {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.form-section__info-line a {
  color: inherit;
  text-decoration: none;
  /* border-bottom: 1px solid currentColor; */
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
  font-weight: 700;
}
.form-section__info-line a:hover {
  color: var(--uf-gray-500);
  border-color: var(--uf-gray-500);
}
.form-section__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-section__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* === FORM AJAX: blur + overlay === */
.uf-form-wrap {
  position: relative;
}
.uf-form-wrap form.is-busy {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  transition: filter 200ms ease;
}
.uf-form-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  animation: uf-form-overlay-in 200ms ease both;
}
.uf-form-overlay[hidden] {
  display: none;
}
.uf-form-overlay__box {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  padding: 18px 24px;
  background: var(--uf-white);
  border-left: 4px solid var(--uf-mint);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}
.uf-form-overlay__msg {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--uf-dark);
}
.uf-form-overlay.is-error .uf-form-overlay__box {
  border-left-color: #b8252b;
}
.uf-form-overlay__spinner {
  flex: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0, 0, 0, .12);
  border-top-color: var(--uf-dark);
  border-radius: 50%;
  animation: uf-form-spin 700ms linear infinite;
}
.uf-form-overlay:not(.is-loading) .uf-form-overlay__spinner {
  display: none;
}
@keyframes uf-form-spin {
  to { transform: rotate(360deg); }
}
@keyframes uf-form-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === FORM: honeypot / errori / alert === */
.form-section__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-section__error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
  color: #b8252b;
}
/* `display:block` batte il [hidden] dello UA: va ripristinato esplicitamente */
.form-section__error[hidden],
.newsletter__error[hidden] {
  display: none;
}
.form-section__alert {
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.4;
  background: var(--uf-white);
  border-left: 3px solid var(--uf-mint);
}
.form-section__recaptcha-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}
.form-section__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Niente label visibili */
.form-section__field input,
.form-section__field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--uf-white);
  border: 1px solid var(--uf-gray-300);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--uf-dark);
  transition: border-color .2s var(--ease-out);
  resize: vertical;
}
.form-section__field input::placeholder,
.form-section__field textarea::placeholder {
  color: var(--uf-gray-500);
  opacity: 1;
}
.form-section__field input:focus,
.form-section__field textarea:focus {
  outline: none;

  border-color: var(--uf-mint);
}
/* === AUTOFILL === */
.form-section__field input:-webkit-autofill,
.form-section__field input:-webkit-autofill:hover,
.form-section__field input:-webkit-autofill:focus,
.form-section__field textarea:-webkit-autofill,
.form-section__field textarea:-webkit-autofill:hover,
.form-section__field textarea:-webkit-autofill:focus,
.newsletter input[type="email"]:-webkit-autofill,
.newsletter input[type="email"]:-webkit-autofill:hover,
.newsletter input[type="email"]:-webkit-autofill:focus,
.newsletter input[type="text"]:-webkit-autofill,
.newsletter input[type="text"]:-webkit-autofill:hover,
.newsletter input[type="text"]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--uf-white) inset;
  box-shadow: 0 0 0 1000px var(--uf-white) inset;
  -webkit-text-fill-color: var(--uf-dark);
  caret-color: var(--uf-dark);
  transition: border-color .2s var(--ease-out), background-color 9999s ease-in-out 0s;
}
/* === AUTOFILL (standard) === */
.form-section__field input:autofill,
.form-section__field input:autofill:hover,
.form-section__field input:autofill:focus,
.form-section__field textarea:autofill,
.form-section__field textarea:autofill:hover,
.form-section__field textarea:autofill:focus,
.newsletter input[type="email"]:autofill,
.newsletter input[type="email"]:autofill:hover,
.newsletter input[type="email"]:autofill:focus,
.newsletter input[type="text"]:autofill,
.newsletter input[type="text"]:autofill:hover,
.newsletter input[type="text"]:autofill:focus {
  box-shadow: 0 0 0 1000px var(--uf-white) inset;
  -webkit-text-fill-color: var(--uf-dark);
  caret-color: var(--uf-dark);
  transition: border-color .2s var(--ease-out), background-color 9999s ease-in-out 0s;
}
/* Citta + Provincia in una cella: citta elastica, provincia stretta */
.form-section__pair {
  display: flex;
  gap: 8px;
}
.form-section__pair > input:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
/* --- Provincia --- */
.form-section__prov {
  flex: 0 0 96px;
  width: 96px;
  text-align: left;
  text-transform: uppercase;
}
.form-section__prov::placeholder {
  text-transform: none;
}
.form-section__privacy {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--uf-dark);
  cursor: pointer;
  margin: 0;
}

.form-section__privacy a {
  text-decoration: underline;
}

.form-section__form button.event-card__cta {
  align-self: flex-start;
  cursor: pointer;
  margin-top: 8px;
}

/* MOBILE NAV - burger trigger + drawer/accordion. Nascosto su desktop, mostrato via responsive */

/* BURGER trigger */
.mobile-nav-trigger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  appearance: none;
  z-index: 60;
}
.mobile-nav-trigger {
  color: var(--uf-white);
  transition: color .3s ease;
}
.site-header.is-scrolled .mobile-nav-trigger,
body.header-light .mobile-nav-trigger,
body.mobile-nav-open .mobile-nav-trigger {
  color: var(--uf-black);
}

.mobile-nav-trigger__line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3.5px;
  background: currentColor;
  border-radius: 0;
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out), top .35s var(--ease-out), background-color .3s ease;
}
.mobile-nav-trigger__line:nth-child(1) { top: 14px; }
.mobile-nav-trigger__line:nth-child(2) { top: 21px; }
.mobile-nav-trigger__line:nth-child(3) { top: 28px; }

/* Burger morph X */
.mobile-nav-trigger.is-open .mobile-nav-trigger__line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.mobile-nav-trigger.is-open .mobile-nav-trigger__line:nth-child(2) {
  opacity: 0;
}
.mobile-nav-trigger.is-open .mobile-nav-trigger__line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear .35s;
}
.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

/* Backdrop sotto header */
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 50%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

/* Panel - full-width slide-in da destra (sotto header) */
.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--uf-white);
  transform: translateX(100%);
  transition: transform .35s var(--ease-out);
  overflow: hidden;
}
.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

/* Drawer aperto: header opaco bianco, testo dark (burger usa currentColor) */
body.mobile-nav-open .site-header {
  background: var(--uf-white);
  color: var(--uf-dark);
}

/* Body scrollabile */
.mobile-nav__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 24px;
}

/* List voci */
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__item {
  border-bottom: 0;
}

/* Link voci principali */
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--uf-black);
  text-decoration: none;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.mobile-nav__link.is-current {
  color: #000;
  background: rgb(0 0 0 / 8%);
}

/* Accordion trigger caret */
.mobile-nav__link--accordion .mobile-nav__caret {
  width: 14px;
  height: 8px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform .25s var(--ease-out);
}
.mobile-nav__link--accordion[aria-expanded="true"] .mobile-nav__caret {
  transform: rotate(180deg);
}

/* Sub-list nidificati - grid-template-rows 0fr/1fr, transizione fluida da 0 a auto */
.mobile-nav__sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-out);
  background: var(--uf-white);
}
.mobile-nav__link--accordion[aria-expanded="true"] + .mobile-nav__sub-wrap {
  grid-template-rows: 1fr;
}
.mobile-nav__sub-wrap > .mobile-nav__sub {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.mobile-nav__sub-wrap > .mobile-nav__sub li:not(:last-child){border-bottom: 2px solid var(--uf-gray-200);}
.mobile-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__sublink {
  display: block;
  padding: 12px 20px 12px 20px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--uf-dark);
  text-decoration: none;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.mobile-nav__sublink.is-current {
  background: var(--uf-gray-100);
}

/* Footer sticky (CTA Organizza + lang flag) - sempre visibile */
.mobile-nav__footer {
  flex-shrink: 0;
  padding: 20px;
  border-top: 1px solid var(--uf-gray-100);
  background: var(--uf-white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 14px 20px;
  background: var(--uf-mint);
  color: var(--uf-black);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.mobile-nav__cta:hover {
  background: var(--uf-black);
  color: var(--uf-mint);
}
.mobile-nav__cta svg {
  width: 16px;
  height: 9px;
  fill: currentColor;
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.mobile-nav__lang {
  flex: none;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--uf-black);
  background: transparent;
  color: var(--uf-black);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.mobile-nav__lang:hover {
  background: var(--uf-black);
  color: var(--uf-mint);
}

/* Body scroll lock quando drawer aperto */
body.mobile-nav-open {
  overflow: hidden;
}

/* === RESPONSIVE GLOBALS === */
.form-section__info-line a { word-break: break-all; overflow-wrap: anywhere; }
.hospitality-card__contact a { overflow-wrap: anywhere; }
.info-list__icon img { max-width: 100%; max-height: 100%; }

/* ============================================================
   TOUCH DEVICES - disabilita hover effects (no hovering pointer)
   ============================================================ */
@media (hover: none) {
  /* Arrow + label slide su btn-slide / card cta - revert al base */
  .btn-slide:hover .ba-icon,
  .btn-swap:hover .ba-icon,
  .tag-card:hover .tag-card__cta .ba-icon,
  .news-card:hover .news-card__cta .ba-icon,
  .gallery-card:hover .gallery-card__cta .ba-icon,
  .hospitality-card:hover .hospitality-card__cta .ba-icon,
  .hospitality-card__cta:hover .ba-icon,
  .calendar-card:hover .calendar-card__cta .ba-icon { transform: rotate(-90deg); }

  .btn-slide:hover .ba-label,
  .btn-swap:hover .ba-label,
  .tag-card:hover .tag-card__cta .ba-label,
  .news-card:hover .news-card__cta .ba-label,
  .gallery-card:hover .gallery-card__cta .ba-label,
  .hospitality-card:hover .hospitality-card__cta .ba-label,
  .hospitality-card__cta:hover .ba-label,
  .calendar-card:hover .calendar-card__cta .ba-label { transform: none; }

  .calendar-card:hover .calendar-card__arrow { transform: none; }

  /* Box-shadow lift su card - revert */
  .news-card:hover,
  .gallery-card:hover,
  .hospitality-card:hover,
  .calendar-card:hover { box-shadow: none; }

  /* Marquee non si ferma al tocco */
  .logo-strip:hover .logo-strip__track,
  .partners:hover .partners__track { animation-play-state: running; }

  /* Loghi sempre colorati su touch (mostra stato finale) */
  .logo-strip__track img,
  .partners__track img { filter: grayscale(0); opacity: 1; }

  /* btn-swap touch (phone + tablet): label a sinistra, freccia a destra */
  .btn-swap .ba-icon { order: 2; transform: rotate(-90deg); }
  .btn-swap .ba-label { order: 1; transform: none; }

  /* Touch: no hover-bg (mobile nav + lightbox) */
  .mobile-nav__cta:hover { background: var(--uf-mint); color: var(--uf-black); }
  .mobile-nav__lang:hover { background: transparent; color: var(--uf-black); }
  .uf-lightbox__prev:hover,
  .uf-lightbox__next:hover { background: var(--uf-mint); }

  /* Rimosso transform:none su circolari - sticky hover rompeva translateY(-50%) di .hero-arrow/.gallery__arrow */
}

.mobile-only{
  display: none;
}

/* Glitch nascosto sotto 768px di larghezza: copre la finestra del browser ridotta (solo width, niente altezza) */
@media (max-width: 767px) {
  .uf-glitch { display: none; }
}