:root {
  --bmwz-bg: #ffffff;
  --bmwz-text: #0f0f0f;
  --bmwz-muted: #6b7280;
  --bmwz-primary: #2d5bda;
  --bmwz-dark: #0a0a0a;
  --bmwz-border: rgba(255, 255, 255, 0.3);
  --bmwz-radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bmwz-text);
  background-color: var(--bmwz-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.bmwz-container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.bmwz-site-header .bmwz-container {
  width: min(1440px, 100%);
  padding: 0 1rem;
}

.bmwz-hero .bmwz-container {
  width: min(1440px, 100%);
  padding: 0 1rem;
}

.bmwz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: var(--bmwz-primary);
  color: #fff;
  box-shadow: 0 15px 35px rgba(45, 91, 218, 0.25);
}

.bmwz-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(45, 91, 218, 0.25);
}

.bmwz-button--outline {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  box-shadow: none;
}

.bmwz-nav-cta .bmwz-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  min-height: 36px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  letter-spacing: normal;
}

.bmwz-nav-cta .bmwz-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
}

.bmwz-site-header {
  position: relative;
  z-index: 10;
}

.bmwz-nav-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.bmwz-nav-wrapper.is-scrolled {
  position: fixed !important;
  background-color: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  z-index: 1000;
  border-bottom: none !important;
}

/* Header sticky bianco per pagine con header bianco */
body.post-type-archive-guida .bmwz-nav-wrapper.is-scrolled,
body.single-gallery .bmwz-nav-wrapper.is-scrolled,
body.post-type-archive-gallery .bmwz-nav-wrapper.is-scrolled,
body.post-type-archive-risorsa .bmwz-nav-wrapper.is-scrolled,
body.post-type-archive-convenzione .bmwz-nav-wrapper.is-scrolled,
body.single-convenzione .bmwz-nav-wrapper.is-scrolled,
body.page-template-template-contatti .bmwz-nav-wrapper.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.bmwz-nav-wrapper.is-scrolled .bmwz-nav-divider {
  display: none;
}

.bmwz-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.bmwz-logo img {
  height: 60px;
  width: auto;
}

.bmwz-nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.bmwz-nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
}

/* Nasconde toggle sottomenu su desktop */
.bmwz-submenu-toggle {
  display: none;
}

.bmwz-primary-nav {
  justify-self: center;
}

.bmwz-primary-nav__list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.bmwz-primary-nav__list > li {
  position: relative;
}

.bmwz-primary-nav__list a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.bmwz-primary-nav__list a:hover {
  opacity: 0.8;
}

.bmwz-nav-divider {
  height: 2px;
  width: 100%;
  margin: 0.75rem 0 0;
  background: rgba(255, 255, 255, 0.3);
}

.bmwz-primary-nav {
  margin-left: 1.5rem;
  margin-right: auto;
}

body:not(.home) .bmwz-nav-wrapper {
  position: relative;
  background: #0f0f0f;
  padding: 1rem 0;
}

body:not(.home) .bmwz-nav-divider {
  display: none;
}

/* Header bianco per archivio guida */
body.post-type-archive-guida .bmwz-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.post-type-archive-guida .bmwz-nav {
  color: var(--bmwz-text);
}

body.post-type-archive-guida .bmwz-primary-nav__list > li > a {
  color: var(--bmwz-text);
}

body.post-type-archive-guida .bmwz-primary-nav__list > li > a:hover {
  opacity: 0.7;
}

/* Mantieni il testo bianco nel sottomenu dropdown */
body.post-type-archive-guida .bmwz-primary-nav__list .sub-menu a {
  color: rgba(255, 255, 255, 0.85);
}

body.post-type-archive-guida .bmwz-primary-nav__list .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

body.post-type-archive-guida .bmwz-nav-cta .bmwz-button {
  border-color: var(--bmwz-text);
  color: var(--bmwz-text);
}

body.post-type-archive-guida .bmwz-nav-cta .bmwz-button:hover {
  background: var(--bmwz-text);
  color: #fff;
}

body.post-type-archive-guida .bmwz-nav-toggle__bar {
  background: var(--bmwz-text);
}

/* Header bianco per gallery singola */
body.single-gallery .bmwz-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.single-gallery .bmwz-nav {
  color: var(--bmwz-text);
}

body.single-gallery .bmwz-primary-nav__list > li > a {
  color: var(--bmwz-text);
}

body.single-gallery .bmwz-primary-nav__list > li > a:hover {
  opacity: 0.7;
}

body.single-gallery .bmwz-primary-nav__list .sub-menu a {
  color: rgba(255, 255, 255, 0.85);
}

body.single-gallery .bmwz-primary-nav__list .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

body.single-gallery .bmwz-nav-cta .bmwz-button {
  border-color: var(--bmwz-text);
  color: var(--bmwz-text);
}

body.single-gallery .bmwz-nav-cta .bmwz-button:hover {
  background: var(--bmwz-text);
  color: #fff;
}

body.single-gallery .bmwz-nav-toggle__bar {
  background: var(--bmwz-text);
}

/* Header bianco per archivio gallery */
body.post-type-archive-gallery .bmwz-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.post-type-archive-gallery .bmwz-nav {
  color: var(--bmwz-text);
}

body.post-type-archive-gallery .bmwz-primary-nav__list > li > a {
  color: var(--bmwz-text);
}

body.post-type-archive-gallery .bmwz-primary-nav__list > li > a:hover {
  opacity: 0.7;
}

body.post-type-archive-gallery .bmwz-primary-nav__list .sub-menu a {
  color: rgba(255, 255, 255, 0.85);
}

body.post-type-archive-gallery .bmwz-primary-nav__list .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

body.post-type-archive-gallery .bmwz-nav-cta .bmwz-button {
  border-color: var(--bmwz-text);
  color: var(--bmwz-text);
}

body.post-type-archive-gallery .bmwz-nav-cta .bmwz-button:hover {
  background: var(--bmwz-text);
  color: #fff;
}

body.post-type-archive-gallery .bmwz-nav-toggle__bar {
  background: var(--bmwz-text);
}

/* Header trasparente per singola guida (come homepage) */
body.single-guida .bmwz-nav-wrapper {
  position: absolute;
  background: transparent;
  padding-top: 1rem;
}

body.single-guida .bmwz-nav-divider {
  display: block;
}

/* Pagina Il Club: header come homepage */
body.page-template-template-il-club .bmwz-nav-wrapper,
body.page-template-template-il-club-php .bmwz-nav-wrapper {
  position: absolute;
  background: transparent;
  padding-top: 1rem;
}

body.page-template-template-il-club .bmwz-nav-divider,
body.page-template-template-il-club-php .bmwz-nav-divider {
  display: block;
}

/* Assicura che la hero della pagina Il Club si estenda dall'inizio */
body.page-template-template-il-club .bmwz-club-hero,
body.page-template-template-il-club-php .bmwz-club-hero {
  margin-top: 0;
  padding-top: 0;
}

.bmwz-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

.bmwz-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.bmwz-hero__content {
  position: relative;
  max-width: 640px;
  padding: 6rem 0 4rem;
}

.bmwz-hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.bmwz-hero__content p {
  font-size: 1.25rem;
  margin: 0;
}

.bmwz-section {
  padding: 6rem 0;
}

.bmwz-section--light {
  background: #f5f7fb;
}

body.home .bmwz-section--light,
body.home .bmwz-section--gallery,
body.home .bmwz-section--quote {
  background: #fff;
}

.bmwz-section--quote {
  background: #f8fafc;
}

.bmwz-section--quote blockquote {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  text-align: center;
  color: var(--bmwz-muted);
  margin: 0;
}

.bmwz-section--gallery {
  background: #f5f7fb;
}

.bmwz-section--gallery .bmwz-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.bmwz-gallery {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
}

.bmwz-section--raduni {
  background: #111;
  color: #fff;
  padding-bottom: 7rem;
}

.bmwz-features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .bmwz-features-grid {
    grid-template-columns: 1fr;
  }
}

.bmwz-feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: transparent;
  border-radius: var(--bmwz-radius);
}

.bmwz-feature-card__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
}

.bmwz-feature-card h3 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.bmwz-feature-card .bmwz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(45, 91, 218);
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-family: "Mulish", "Mulish Fallback", sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  line-height: 20px;
  padding: 10px 24px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition-duration: 0.15s;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  -webkit-font-smoothing: antialiased;
}

.bmwz-feature-card .bmwz-button:hover {
  transform: none;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  background-color: rgb(35, 72, 184);
}

/* Sezione Content-Image - Immagine a destra che tocca il bordo */
.bmwz-section--content-image {
  overflow: hidden;
}

.bmwz-section--content-image .bmwz-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.bmwz-content-image {
  display: grid;
  gap: 0;
  grid-template-columns: 50% 50%;
  align-items: stretch;
}

.bmwz-content-image__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  max-width: 640px;
  margin-left: auto;
  padding-left: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
}

.bmwz-content-image__copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.bmwz-content-image__copy p {
  font-size: 1.1rem;
  color: var(--bmwz-muted);
}

.bmwz-content-image__media {
  position: relative;
  width: 100%;
  height: 100%;
}

.bmwz-content-image__media img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  /* Border-radius solo a sinistra */
  border-radius: var(--bmwz-radius) 0 0 var(--bmwz-radius);
}

/* Responsive per content-image */
@media (max-width: 900px) {
  .bmwz-content-image {
    grid-template-columns: 1fr;
  }

  .bmwz-content-image__copy {
    order: 2;
    padding: 2rem 1.25rem;
    max-width: none;
    margin: 0;
  }

  .bmwz-content-image__media {
    order: 1;
  }

  .bmwz-content-image__media img {
    min-height: 280px;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .bmwz-content-image__copy {
    padding: 1.5rem 1.25rem;
  }

  .bmwz-content-image__media img {
    min-height: 250px;
  }
}

.bmwz-gallery {
  position: relative;
}

.bmwz-gallery-shell {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 0;
  cursor: grab;
}

.bmwz-gallery-shell.is-dragging {
  cursor: grabbing;
}

.bmwz-gallery-stage {
  display: flex;
  height: 100%;
  gap: 2%;
  will-change: transform;
  transition: transform 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.bmwz-gallery-slide {
  flex: 0 0 50%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease;
}

.bmwz-gallery-slide.is-active,
.bmwz-gallery-slide.is-prev,
.bmwz-gallery-slide.is-next {
  visibility: visible;
}

.bmwz-gallery-slide.is-prev,
.bmwz-gallery-slide.is-next {
  opacity: 0.5;
}

.bmwz-gallery-slide.is-prev {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
}

.bmwz-gallery-slide.is-next {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
}

.bmwz-gallery-slide.is-hidden {
  border-radius: 28px;
}

.bmwz-gallery-slide.is-active {
  opacity: 1;
  border-radius: 28px;
}

.bmwz-gallery-slide.is-hidden {
  opacity: 0;
  visibility: hidden;
  border-radius: 28px;
}

.bmwz-gallery-slide__media,
.bmwz-gallery-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.bmwz-gallery-slide__caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

[data-gallery-prev],
[data-gallery-next] {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

[data-gallery-prev]:hover,
[data-gallery-next]:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

[data-gallery-prev] span,
[data-gallery-next] span {
  line-height: 1;
  margin-top: -2px;
}

[data-gallery-prev] {
  left: 2rem;
}

[data-gallery-next] {
  right: 2rem;
}

.bmwz-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bmwz-carousel-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  color: #111;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-carousel-button:hover {
  background: #111;
  color: #fff;
}

.bmwz-section--raduni .bmwz-carousel-button {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.bmwz-section--raduni .bmwz-carousel-button:hover {
  background: #fff;
  color: #111;
}

.bmwz-raduni-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .bmwz-raduni-grid {
    grid-template-columns: 1fr;
  }
}

.bmwz-raduno-card {
  background: #1f1f1f;
  border-radius: var(--bmwz-radius);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmwz-raduno-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.bmwz-raduno-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.bmwz-raduno-card__media {
  position: relative;
  height: 420px;
}

.bmwz-raduno-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmwz-raduno-card__date {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-align: center;
  min-width: 60px;
}

.bmwz-raduno-card__day {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.bmwz-raduno-card__month {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.bmwz-raduno-card__description {
  padding: 1.25rem 1.5rem 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.bmwz-raduno-card__location {
  padding: 0 1.5rem 1.75rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.bmwz-site-footer {
  background: #fff;
  color: var(--bmwz-text);
  margin-top: 4rem;
}

.bmwz-footer-divider {
  border: none;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
  margin: 0;
}

.bmwz-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.bmwz-footer-logo img {
  width: auto;
  height: 80px;
  margin-bottom: 1rem;
}

.bmwz-footer-column h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bmwz-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bmwz-footer-menu a {
  text-decoration: none;
  color: var(--bmwz-muted);
  font-size: 0.95rem;
}

.bmwz-footer-menu a:hover {
  color: var(--bmwz-primary);
}

.bmwz-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bmwz-newsletter input[type="email"] {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-size: 1rem;
}

.bmwz-newsletter-privacy {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--bmwz-muted);
}

.bmwz-newsletter-privacy input {
  margin-top: 0.35rem;
}

.bmwz-newsletter-button {
  background-color: rgb(45, 91, 218);
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-family: "Mulish", "Mulish Fallback", sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  line-height: 20px;
  padding: 10px 24px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition-duration: 0.15s;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

.bmwz-newsletter-button:hover {
  transform: none;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  background-color: rgb(35, 72, 184);
}

.bmwz-toast {
  background: #111;
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
  pointer-events: none;
}

.bmwz-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bmwz-footer-bar {
  padding: 1.5rem 0;
  text-align: center;
}

.bmwz-footer-bar p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--bmwz-muted);
}

.bmwz-footer-bar a {
  color: var(--bmwz-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bmwz-footer-bar a:hover {
  color: var(--bmwz-primary);
}

.bmwz-default-loop {
  padding: 4rem 0;
}

.bmwz-article {
  margin-bottom: 3rem;
}

.bmwz-article__title {
  margin-bottom: 0.5rem;
}

.bmwz-article__meta {
  color: var(--bmwz-muted);
  margin: 0;
}

.bmwz-gallery-archive,
.bmwz-raduno-archive {
  display: grid;
  gap: 2rem;
}

.bmwz-gallery-archive__item,
.bmwz-raduno-archive__item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--bmwz-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.bmwz-gallery-archive__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bmwz-gallery-archive__thumb img,
.bmwz-raduno-archive__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.bmwz-gallery-archive__item h2,
.bmwz-raduno-archive__item h2 {
  margin: 1.25rem 1.5rem 0.75rem;
}

.bmwz-gallery-archive__item p,
.bmwz-raduno-archive__item .bmwz-raduno-archive__excerpt {
  margin: 0 1.5rem 1.5rem;
  color: var(--bmwz-muted);
}

.bmwz-raduno-archive__item {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 0;
}

.bmwz-raduno-archive__thumb {
  display: block;
}

.bmwz-raduno-archive__content {
  padding: 1.25rem 1.5rem;
}

.bmwz-raduno-archive__content h2 {
  margin: 0 0 0.5rem;
}

.bmwz-raduno-archive__content h2 a {
  text-decoration: none;
  color: inherit;
}

.bmwz-raduno-archive__meta {
  font-size: 0.9rem;
  color: var(--bmwz-muted);
  margin: 0 0 0.75rem;
}

@media (max-width: 768px) {
  .bmwz-raduno-archive__item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .bmwz-nav {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  /* CTA nella nav bar - ridotto su mobile */
  .bmwz-nav-cta {
    order: 2;
    margin-left: auto;
    margin-right: 0.75rem;
  }

  .bmwz-nav-cta .bmwz-button {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
  }

  .bmwz-nav-toggle {
    display: flex;
    order: 3;
    position: relative;
    z-index: 1001;
    width: 40px;
    height: 40px;
    margin-left: 0;
  }

  .bmwz-nav-toggle__bar {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
  }

  .bmwz-nav-toggle__bar:nth-child(1) {
    top: 12px;
  }

  .bmwz-nav-toggle__bar:nth-child(2) {
    top: 19px;
  }

  .bmwz-nav-toggle__bar:nth-child(3) {
    top: 26px;
  }

  /* Hamburger → X animation */
  .bmwz-nav-toggle[aria-expanded="true"] .bmwz-nav-toggle__bar:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
  }

  .bmwz-nav-toggle[aria-expanded="true"] .bmwz-nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .bmwz-nav-toggle[aria-expanded="true"] .bmwz-nav-toggle__bar:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
  }

  /* Fullscreen mobile menu */
  .bmwz-primary-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 !important;
    margin: 0 !important;
    z-index: 999;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .bmwz-primary-nav--open {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .bmwz-primary-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    align-items: center;
  }

  .bmwz-primary-nav__list > li {
    width: auto;
    max-width: 100%;
    border-bottom: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bmwz-primary-nav--open .bmwz-primary-nav__list > li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered animation for menu items */
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(1) { transition-delay: 0.1s; }
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(2) { transition-delay: 0.15s; }
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(3) { transition-delay: 0.2s; }
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(4) { transition-delay: 0.25s; }
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(5) { transition-delay: 0.3s; }
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(6) { transition-delay: 0.35s; }
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(7) { transition-delay: 0.4s; }
  .bmwz-primary-nav--open .bmwz-primary-nav__list > li:nth-child(8) { transition-delay: 0.45s; }

  .bmwz-primary-nav__list > li > a,
  .bmwz-primary-nav__list > li > .bmwz-menu-no-click {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .bmwz-primary-nav__list > li > a:hover {
    opacity: 0.7;
  }

  /* Nasconde CTA nel menu mobile (già visibile nella navbar) */
  .bmwz-mobile-cta {
    display: none;
  }

  /* Sottomenu accordion mobile */
  .bmwz-primary-nav__list .sub-menu {
    display: none;
    overflow: hidden;
  }

  .bmwz-primary-nav__list li.submenu-open > .sub-menu {
    display: block;
  }

  /* Toggle arrow per voci con sottomenu - visibile solo su mobile */
  .bmwz-submenu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    vertical-align: middle;
    opacity: 0.5;
  }

  .bmwz-submenu-toggle svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    transition: transform 0.3s ease;
  }

  .bmwz-submenu-toggle:hover {
    opacity: 0.8;
  }

  li.submenu-open > a .bmwz-submenu-toggle,
  li.submenu-open > .bmwz-menu-no-click .bmwz-submenu-toggle {
    opacity: 0.8;
  }

  li.submenu-open > a .bmwz-submenu-toggle svg,
  li.submenu-open > .bmwz-menu-no-click .bmwz-submenu-toggle svg {
    transform: rotate(180deg);
  }

  /* Forza testo bianco nel menu mobile per tutte le pagine (anche quelle con header bianco) */
  .bmwz-primary-nav .bmwz-primary-nav__list > li > a,
  .bmwz-primary-nav .bmwz-primary-nav__list .sub-menu a,
  .bmwz-primary-nav .bmwz-primary-nav__list a {
    color: #fff !important;
  }

  .bmwz-primary-nav .bmwz-primary-nav__list .sub-menu a {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .bmwz-primary-nav .bmwz-primary-nav__list .sub-menu a:hover {
    color: #fff !important;
  }

  /* Blocca scroll del body quando menu aperto */
  body.bmwz-menu-open {
    overflow: hidden;
  }

  .bmwz-gallery-shell {
    height: 420px;
  }

  .bmwz-gallery-stage {
    gap: 1.5rem;
  }

  .bmwz-gallery-slide {
    flex: 0 0 70%;
    border-radius: 22px;
  }

  .bmwz-raduno-card {
    flex-basis: 80%;
  }

  .bmwz-raduno-card__media {
    height: 320px;
  }

  [data-gallery-prev],
  [data-gallery-next] {
    display: flex;
  }

  [data-gallery-prev] {
    left: 1rem;
  }

  [data-gallery-next] {
    right: 1rem;
  }
}

@media (max-width: 640px) {
  .bmwz-nav-wrapper {
    padding-top: 0.5rem;
  }

  .bmwz-hero__content {
    padding-top: 4rem;
  }

  .bmwz-hero__content h1 {
    font-size: 2.5rem;
  }

  .bmwz-section {
    padding: 3rem 0;
  }

  .bmwz-gallery-shell {
    height: auto;
    overflow: visible;
    cursor: default;
  }

  .bmwz-gallery-stage {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
    transform: none !important;
    transition: none;
  }

  .bmwz-gallery-stage::-webkit-scrollbar {
    display: none;
  }

  .bmwz-gallery-slide {
    flex: 0 0 85%;
    min-width: 85%;
    height: 320px;
    border-radius: 18px;
    scroll-snap-align: center;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .bmwz-gallery-slide.is-prev,
  .bmwz-gallery-slide.is-next,
  .bmwz-gallery-slide.is-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 18px !important;
  }

  .bmwz-gallery-slide__media,
  .bmwz-gallery-slide__media img {
    border-radius: 18px;
  }

  /* Nascondi i controlli su mobile */
  [data-gallery-prev],
  [data-gallery-next] {
    display: none !important;
  }

  .bmwz-raduni-carousel {
    padding: 0;
  }

  .bmwz-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .bmwz-footer-logo img {
    margin-left: auto;
    margin-right: auto;
    height: 60px; /* Logo più piccolo su mobile */
  }

  .bmwz-footer-menu {
    align-items: center;
  }

  .bmwz-newsletter-privacy {
    justify-content: center;
    text-align: left;
  }

}

/* ==========================================================================
   PAGINA IL CLUB - STILI
   ========================================================================== */

/* Hero della pagina Il Club */
.bmwz-club-hero {
  min-height: 70vh;
}

/* Sezione Chi siamo / Quote */
.bmwz-club-quote {
  background: #fff;
  text-align: center;
  padding: 5rem 0;
}

.bmwz-club-quote__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 3rem 0 1rem;
  font-weight: 600;
}

.bmwz-club-quote__description {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--bmwz-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.bmwz-club-quote__description p {
  margin: 0 0 1rem;
}

.bmwz-club-quote__description p:last-child {
  margin-bottom: 0;
}

.bmwz-club-divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #000;
}

.bmwz-club-divider--top {
  margin-top: 0;
  margin-bottom: 0;
}


.bmwz-club-divider--bottom {
  margin-top: 3rem;
  margin-bottom: 0;
}

/* Sezioni contenuto con immagine - Effetto griglia */
.bmwz-club-content {
  background: #fff;
  padding: 0; /* Nessun padding tra le sezioni */
  overflow: hidden;
}

/* Margine sopra la prima sezione */
.bmwz-club-quote + .bmwz-club-content {
  margin-top: 4rem;
}

/* Margine sotto l'ultima sezione */
.bmwz-club-content--last {
  margin-bottom: 4rem;
}

.bmwz-club-content .bmwz-container {
  max-width: none; /* Full width per l'effetto griglia */
  padding: 0;
}

.bmwz-club-content__grid {
  display: grid;
  grid-template-columns: 50% 50%; /* Esattamente 50% ciascuna */
  gap: 0; /* Nessun gap */
  align-items: stretch; /* Le colonne si estendono in altezza */
}

.bmwz-club-content__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  max-width: 640px; /* Limita la larghezza del testo */
}

/* Testo a sinistra: allineato a destra della sua cella */
.bmwz-club-content__grid:not(.bmwz-club-content__grid--reverse) .bmwz-club-content__copy {
  margin-left: auto;
  padding-left: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
}

/* Testo a destra: allineato a sinistra della sua cella */
.bmwz-club-content__grid--reverse .bmwz-club-content__copy {
  margin-right: auto;
  padding-right: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
}

.bmwz-club-content__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1.5rem;
  font-weight: 600;
}

.bmwz-club-content__text {
  color: var(--bmwz-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.bmwz-club-content__text p {
  margin: 0 0 1rem;
}

.bmwz-club-content__text p:last-child {
  margin-bottom: 0;
}

.bmwz-club-content__media {
  position: relative;
  overflow: hidden;
  width: 100%; /* Occupa esattamente il 50% (la sua cella) */
}

.bmwz-club-content__media img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

/* CTA principale con sfondo */
.bmwz-club-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bmwz-dark);
  color: #fff;
  padding: 5rem 0;
}

.bmwz-club-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.bmwz-club-cta__content {
  position: relative;
  max-width: 600px;
}

.bmwz-club-cta__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
  font-weight: 600;
}

.bmwz-club-cta__content p {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.bmwz-club-cta .bmwz-button {
  background: var(--bmwz-primary);
  color: #fff;
  border-radius: 8px;
}

/* Sezione PayPal / Rinnovo */
.bmwz-club-paypal {
  background: #fff;
  padding: 5rem 0;
  overflow: hidden;
}

.bmwz-club-paypal .bmwz-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.bmwz-club-paypal__grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  align-items: stretch;
}

.bmwz-club-paypal__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  max-width: 640px;
  margin-left: auto; /* Allineato a destra della cella */
  padding-left: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
}

.bmwz-club-paypal__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1.5rem;
  font-weight: 600;
}

.bmwz-club-paypal__text {
  color: var(--bmwz-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.bmwz-club-paypal__text p {
  margin: 0 0 1rem;
}

.bmwz-club-paypal__text ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.bmwz-club-paypal__text li {
  margin-bottom: 0.5rem;
}

.bmwz-club-paypal__button {
  margin-top: 2rem;
}

.bmwz-club-paypal__button img {
  height: 40px;
  width: auto;
}

.bmwz-paypal-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.bmwz-paypal-link:hover {
  opacity: 0.8;
}

.bmwz-club-paypal__media {
  position: relative;
  overflow: visible; /* Permette all'immagine di uscire se necessario */
  width: 100%;
  height: 100%;
}

.bmwz-club-paypal__media img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  /* Border-radius solo a sinistra */
  border-radius: var(--bmwz-radius) 0 0 var(--bmwz-radius);
  box-shadow: none;
}

/* Responsive per pagina Il Club */
@media (max-width: 900px) {
  .bmwz-club-content__grid,
  .bmwz-club-paypal__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Margini ridotti su tablet/mobile */
  .bmwz-club-quote + .bmwz-club-content {
    margin-top: 2.5rem;
  }

  .bmwz-club-content--last {
    margin-bottom: 2.5rem;
  }

  .bmwz-club-content__copy {
    order: 2; /* Testo sempre dopo l'immagine su mobile */
    padding: 2rem 1.25rem;
    max-width: none;
    margin: 0;
  }

  /* Reset padding specifici per mobile */
  .bmwz-club-content__grid:not(.bmwz-club-content__grid--reverse) .bmwz-club-content__copy,
  .bmwz-club-content__grid--reverse .bmwz-club-content__copy {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }

  .bmwz-club-content__media {
    order: 1; /* Immagine sempre prima su mobile */
    width: 100%;
  }

  .bmwz-club-content__media img {
    min-height: 280px;
  }

  .bmwz-club-hero {
    min-height: 60vh;
  }

  /* Sezione PayPal responsive */
  .bmwz-club-paypal__copy {
    padding: 2rem 1.25rem;
    max-width: none;
    margin: 0;
  }

  .bmwz-club-paypal__media img {
    min-height: 280px;
    border-radius: 0; /* Nessun border-radius su mobile */
  }
}

@media (max-width: 640px) {
  .bmwz-club-quote {
    padding: 2.5rem 0;
  }

  /* Margini ridotti su mobile */
  .bmwz-club-quote + .bmwz-club-content {
    margin-top: 2rem;
  }

  .bmwz-club-content--last {
    margin-bottom: 2rem;
  }

  .bmwz-club-content__copy {
    padding: 1.5rem 1.25rem;
  }

  .bmwz-club-content__media img {
    min-height: 250px;
  }

  .bmwz-club-cta {
    padding: 3rem 0;
  }

  .bmwz-club-paypal {
    padding: 3rem 0;
  }

  .bmwz-club-hero {
    min-height: 50vh;
  }
}

/* ==========================================================================
   LE ZETA - ARCHIVIO
   ========================================================================== */

.bmwz-zeta-archive-page .bmwz-archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bmwz-zeta-archive-page .bmwz-archive-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 700;
}

.bmwz-archive-description {
  color: var(--bmwz-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.bmwz-zeta-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.bmwz-zeta-archive__item {
  background: #fff;
  border-radius: var(--bmwz-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bmwz-zeta-archive__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
}

.bmwz-zeta-archive__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bmwz-zeta-archive__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.bmwz-zeta-archive__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bmwz-zeta-archive__item:hover .bmwz-zeta-archive__thumb img {
  transform: scale(1.05);
}

.bmwz-zeta-archive__content {
  padding: 1.5rem;
}

.bmwz-zeta-archive__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--bmwz-text);
}

.bmwz-zeta-archive__excerpt {
  color: var(--bmwz-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.bmwz-zeta-archive__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bmwz-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}

.bmwz-zeta-archive__item:hover .bmwz-zeta-archive__cta {
  gap: 0.75rem;
}

.bmwz-zeta-archive__cta svg {
  transition: transform 0.2s ease;
}

.bmwz-zeta-archive__item:hover .bmwz-zeta-archive__cta svg {
  transform: translateX(3px);
}

/* ==========================================================================
   LE ZETA - SINGOLA
   ========================================================================== */

/* Header overlay per singola zeta */
body.single-zeta .bmwz-nav-wrapper {
  position: absolute;
  background: transparent;
  padding-top: 1rem;
}

body.single-zeta .bmwz-nav-divider {
  display: block;
}

/* Hero Zeta */
.bmwz-zeta-hero {
  min-height: 60vh;
}

.bmwz-zeta-hero .bmwz-hero__content {
  max-width: 500px;
}

.bmwz-zeta-hero .bmwz-hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.bmwz-zeta-hero .bmwz-hero__content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Tabs Navigation */
.bmwz-zeta-tabs {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.bmwz-zeta-tabs .bmwz-container {
  display: flex;
  justify-content: center;
}

.bmwz-zeta-tabs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid #1B6AD3;
}

.bmwz-zeta-tabs__list::-webkit-scrollbar {
  display: none;
}

.bmwz-zeta-tabs__list li {
  flex-shrink: 0;
}

.bmwz-zeta-tabs__link {
  display: block;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--bmwz-muted);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bmwz-zeta-tabs__link:hover {
  color: var(--bmwz-text);
}

.bmwz-zeta-tabs__link.is-active {
  color: var(--bmwz-text);
  border-bottom-color: #1B6AD3;
}

/* Sezioni Contenuto */
.bmwz-zeta-sections {
  padding: 4rem 0;
  background: #fff;
}

.bmwz-zeta-sections .bmwz-container {
  max-width: 1100px;
  margin: 0 auto;
}

.bmwz-zeta-section {
  display: none;
  text-align: center;
}

.bmwz-zeta-section.is-active {
  display: block;
}

.bmwz-zeta-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 2rem;
  color: var(--bmwz-text);
}

.bmwz-zeta-section__content {
  color: var(--bmwz-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.bmwz-zeta-section__content p {
  margin: 0 0 1.5rem;
}

.bmwz-zeta-section__content p:last-child {
  margin-bottom: 0;
}

.bmwz-zeta-section__content ul,
.bmwz-zeta-section__content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.bmwz-zeta-section__content li {
  margin-bottom: 0.5rem;
}

.bmwz-zeta-section__content h3,
.bmwz-zeta-section__content h4 {
  color: var(--bmwz-text);
  margin: 2rem 0 1rem;
}

.bmwz-zeta-section__content h3:first-child,
.bmwz-zeta-section__content h4:first-child {
  margin-top: 0;
}

/* Featured Image */
.bmwz-zeta-featured {
  padding: 0 0 4rem;
  background: #fff;
}

.bmwz-zeta-featured__image {
  max-width: 1000px;
  margin: 0 auto;
}

.bmwz-zeta-featured__image img {
  width: 100%;
  height: auto;
  border-radius: var(--bmwz-radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

/* Navigazione Prev/Next */
.bmwz-zeta-nav {
  background: #f8fafc;
  padding: 3rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-zeta-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.bmwz-zeta-nav__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--bmwz-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bmwz-zeta-nav__link:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.bmwz-zeta-nav__link--prev {
  justify-content: flex-start;
}

.bmwz-zeta-nav__link--next {
  justify-content: flex-end;
  text-align: right;
}

.bmwz-zeta-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--bmwz-text);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-zeta-nav__link:hover .bmwz-zeta-nav__arrow {
  background: var(--bmwz-primary);
  color: #fff;
}

.bmwz-zeta-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bmwz-zeta-nav__label {
  font-size: 0.85rem;
  color: var(--bmwz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bmwz-zeta-nav__title {
  font-weight: 600;
  color: var(--bmwz-text);
  font-size: 1.1rem;
}

.bmwz-zeta-nav__placeholder {
  /* Placeholder vuoto per mantenere il layout */
}

/* Responsive Le Zeta */
@media (max-width: 900px) {
  .bmwz-zeta-archive {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bmwz-zeta-tabs .bmwz-container {
    padding: 0;
  }

  .bmwz-zeta-tabs__list {
    justify-content: flex-start;
    padding: 0 1rem;
    scroll-snap-type: x mandatory;
  }

  .bmwz-zeta-tabs__list li {
    scroll-snap-align: start;
  }

  .bmwz-zeta-tabs__link {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }

  .bmwz-zeta-nav__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bmwz-zeta-nav__link--next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
}

@media (max-width: 640px) {
  .bmwz-zeta-hero {
    min-height: 50vh;
  }

  .bmwz-zeta-sections {
    padding: 2.5rem 0;
  }

  .bmwz-zeta-featured {
    padding: 0 0 2.5rem;
  }

  .bmwz-zeta-nav {
    padding: 2rem 0;
  }

  .bmwz-zeta-nav__link {
    padding: 1rem;
  }

  .bmwz-zeta-nav__arrow {
    width: 36px;
    height: 36px;
  }

  .bmwz-zeta-nav__title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   MENU DINAMICO LE ZETA - DROPDOWN
   ========================================================================== */

/* Voce padre Le Zeta */
.bmwz-menu-zeta-parent {
  position: relative;
}

/* Link non cliccabile */
.bmwz-menu-no-click {
  cursor: default;
  pointer-events: none;
}

/* Riabilita pointer-events per hover sul li */
.bmwz-menu-zeta-parent:hover > .bmwz-menu-no-click {
  pointer-events: auto;
}

/* Freccia dropdown per voci con sottomenu (primo livello) - escludi menu Zeta che ha freccia manuale */
.bmwz-primary-nav__list > li.menu-item-has-children:not(.bmwz-menu-zeta-parent) > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.bmwz-primary-nav__list > li.menu-item-has-children:not(.bmwz-menu-zeta-parent):hover > a::after {
  transform: rotate(180deg);
}

/* Freccia per menu Zeta (aggiunta manualmente) */
.bmwz-menu-arrow {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.bmwz-menu-zeta-parent:hover .bmwz-menu-arrow {
  transform: rotate(180deg);
}

/* Sottomenu principale (lista delle Zeta) */
.bmwz-primary-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.5rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  list-style: none;
  margin: 0;
}

.bmwz-primary-nav__list > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Voci del sottomenu */
.bmwz-primary-nav__list .sub-menu li {
  position: relative;
}

.bmwz-primary-nav__list .sub-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.bmwz-primary-nav__list .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sottomenu secondo livello (sezioni della Zeta) */
.bmwz-primary-nav__list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0;
  border-radius: 8px;
}

/* Indicatore per voci con sotto-menu */
.bmwz-primary-nav__list .sub-menu .menu-item-has-children > a::after {
  content: "›";
  position: absolute;
  right: 1rem;
  font-size: 1.1em;
  opacity: 0.6;
}

/* Mostra sottomenu secondo livello al hover */
.bmwz-primary-nav__list .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive menu dropdown */
@media (max-width: 900px) {
  /* Su mobile, il sottomenu è inline con il parent */
  .bmwz-primary-nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0.5rem 0;
    margin: 0;
    min-width: auto;
  }

  .bmwz-primary-nav__list .sub-menu .sub-menu {
    position: static;
    margin-left: 0;
    padding-left: 0;
    background: transparent;
  }

  .bmwz-primary-nav__list .sub-menu li {
    opacity: 1;
    transform: none;
  }

  .bmwz-primary-nav__list .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: none;
  }

  .bmwz-primary-nav__list .sub-menu a:hover {
    color: #fff;
  }

  .bmwz-primary-nav__list .sub-menu .sub-menu a {
    padding-left: 1.5rem;
    font-size: 0.9rem;
  }

  .bmwz-menu-no-click {
    pointer-events: auto;
    cursor: pointer;
  }

  .bmwz-primary-nav__list .sub-menu .menu-item-has-children > a::after {
    display: none;
  }

  .bmwz-primary-nav__list > li.menu-item-has-children:not(.bmwz-menu-zeta-parent) > a::after {
    display: none;
  }

  .bmwz-menu-arrow {
    display: none;
  }
}

/* ==========================================================================
   LE GUIDE - ARCHIVIO
   ========================================================================== */

.bmwz-guide-archive-page .bmwz-archive-header {
  text-align: center;
  margin-bottom: 2rem;
}

.bmwz-guide-archive-page .bmwz-archive-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 700;
}

/* Guida in evidenza */
.bmwz-guide-featured {
  margin-bottom: 3rem;
}

.bmwz-guide-featured__link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bmwz-guide-featured__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.bmwz-guide-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 1.25rem;
}

.bmwz-guide-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease;
}

.bmwz-guide-featured__link:hover .bmwz-guide-featured__media img {
  transform: scale(1.03);
}

.bmwz-guide-featured__badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: var(--bmwz-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bmwz-guide-featured__badge--riservata {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  top: auto;
  bottom: 2rem;
  left: 2rem;
}

.bmwz-guide-featured__content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bmwz-guide-featured__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.bmwz-guide-featured__excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.bmwz-guide-featured__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.bmwz-guide-featured__modello {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  color: #fff;
}

/* Filtri */
.bmwz-guide-filters {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.bmwz-guide-filters__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.bmwz-guide-filters__search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.bmwz-guide-filters__search input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}

.bmwz-guide-filters__search input:focus {
  outline: none;
  border-color: var(--bmwz-primary);
}

.bmwz-guide-filters__search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bmwz-muted);
  transition: color 0.2s ease;
}

.bmwz-guide-filters__search-btn:hover {
  color: var(--bmwz-primary);
}

.bmwz-guide-filters__selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.bmwz-guide-filters__selects select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 1rem center;
  appearance: none;
  cursor: pointer;
  min-width: 140px;
}

.bmwz-guide-filters__selects select:focus {
  outline: none;
  border-color: var(--bmwz-primary);
}

.bmwz-guide-filters__submit {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

.bmwz-guide-empty .bmwz-button {
  border-radius: 8px;
}

.bmwz-guide-filters__reset {
  color: var(--bmwz-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.bmwz-guide-filters__reset:hover {
  color: var(--bmwz-primary);
}

/* Griglia Guide */
.bmwz-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.bmwz-guide-card {
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bmwz-guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.bmwz-guide-card__link {
  display: block;
  text-decoration: none;
  color: #fff;
}

.bmwz-guide-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1a1a;
}

.bmwz-guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bmwz-guide-card:hover .bmwz-guide-card__media img {
  transform: scale(1.03);
}

.bmwz-guide-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

.bmwz-guide-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bmwz-guide-card__content {
  padding: 1.25rem;
}

.bmwz-guide-card__title {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.bmwz-guide-card__excerpt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.bmwz-guide-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.bmwz-guide-card__modello {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-weight: 500;
  color: #fff;
}

/* Paginazione */
.bmwz-guide-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.bmwz-guide-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  background: #fff;
  color: var(--bmwz-text);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(15, 23, 42, 0.1);
  transition: all 0.2s ease;
}

.bmwz-guide-pagination .page-numbers:hover {
  background: #f1f5f9;
  border-color: var(--bmwz-primary);
}

.bmwz-guide-pagination .page-numbers.current {
  background: var(--bmwz-primary);
  color: #fff;
  border-color: var(--bmwz-primary);
}

/* Stato vuoto */
.bmwz-guide-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border-radius: 8px;
}

.bmwz-guide-empty svg {
  color: var(--bmwz-muted);
  margin-bottom: 1.5rem;
}

.bmwz-guide-empty p {
  color: var(--bmwz-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

/* ==========================================================================
   LE GUIDE - SINGOLA
   ========================================================================== */

/* Hero */
.bmwz-guide-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.bmwz-guide-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bmwz-guide-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmwz-guide-hero__media--fallback {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.bmwz-guide-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.bmwz-guide-hero .bmwz-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.bmwz-guide-hero__content {
  max-width: 800px;
  padding: 4rem 0;
}

.bmwz-guide-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.bmwz-guide-hero__content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.bmwz-guide-hero__excerpt {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.bmwz-guide-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.bmwz-guide-hero__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bmwz-guide-hero__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.bmwz-guide-hero__author span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bmwz-guide-hero__author strong {
  font-weight: 600;
}

.bmwz-guide-hero__author time {
  font-size: 0.85rem;
  opacity: 0.7;
}

.bmwz-guide-hero__modelli {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bmwz-guide-hero__modello-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.bmwz-guide-hero__modello-tag:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Contenuto articolo */
.bmwz-guide-content {
  padding: 4rem 0;
  background: #fff;
}

.bmwz-guide-content__body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--bmwz-text);
}

.bmwz-guide-content__body p {
  margin: 0 0 1.5rem;
}

.bmwz-guide-content__body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}

.bmwz-guide-content__body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.bmwz-guide-content__body ul,
.bmwz-guide-content__body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.bmwz-guide-content__body li {
  margin-bottom: 0.5rem;
}

.bmwz-guide-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.bmwz-guide-content__body blockquote {
  border-left: 4px solid var(--bmwz-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--bmwz-muted);
}

.bmwz-guide-content__body a {
  color: var(--bmwz-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bmwz-guide-content__body a:hover {
  text-decoration: none;
}

/* Blocco riservato */
.bmwz-guide-restricted {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border-radius: 8px;
}

.bmwz-guide-restricted__icon {
  color: var(--bmwz-muted);
  margin-bottom: 1.5rem;
}

.bmwz-guide-restricted h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.bmwz-guide-restricted p {
  color: var(--bmwz-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.bmwz-guide-restricted__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bmwz-guide-restricted .bmwz-button--outline {
  background: transparent;
  color: var(--bmwz-text);
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.bmwz-guide-restricted .bmwz-button--outline:hover {
  background: var(--bmwz-text);
  color: #fff;
  border-color: var(--bmwz-text);
}

.bmwz-guide-restricted__error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid #fecaca;
}

.bmwz-guide-restricted__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
  margin: 0 auto 1.5rem;
}

.bmwz-guide-restricted__field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.bmwz-guide-restricted__field input:focus {
  outline: none;
  border-color: var(--bmwz-primary);
  box-shadow: 0 0 0 3px rgba(45, 91, 218, 0.1);
}

.bmwz-guide-restricted__form .bmwz-button {
  width: 100%;
  border-radius: 8px;
}

.bmwz-guide-restricted__help {
  font-size: 0.9rem;
  color: var(--bmwz-muted);
  margin: 0;
}

.bmwz-guide-restricted__help a {
  color: var(--bmwz-primary);
  text-decoration: none;
  font-weight: 500;
}

.bmwz-guide-restricted__help a:hover {
  text-decoration: underline;
}

/* Navigazione Prev/Next */
.bmwz-guide-nav {
  background: #f8fafc;
  padding: 3rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-guide-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.bmwz-guide-nav__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bmwz-guide-nav__link:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.bmwz-guide-nav__link--prev {
  justify-content: flex-start;
}

.bmwz-guide-nav__link--next {
  justify-content: flex-end;
  text-align: right;
}

.bmwz-guide-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--bmwz-text);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-guide-nav__link:hover .bmwz-guide-nav__arrow {
  background: var(--bmwz-primary);
  color: #fff;
}

.bmwz-guide-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bmwz-guide-nav__label {
  font-size: 0.85rem;
  color: var(--bmwz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bmwz-guide-nav__title {
  font-weight: 600;
  color: var(--bmwz-text);
  font-size: 1.1rem;
}

.bmwz-guide-nav__placeholder {
  /* Placeholder vuoto per mantenere il layout */
}

/* Torna all'archivio */
.bmwz-guide-back {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-guide-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bmwz-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bmwz-guide-back__link:hover {
  color: var(--bmwz-primary);
}

/* Responsive Guide */
@media (max-width: 900px) {
  .bmwz-guide-featured__link {
    grid-template-columns: 1fr;
  }

  .bmwz-guide-featured__media {
    padding: 1rem;
  }

  .bmwz-guide-featured__badge {
    top: 1.5rem;
    left: 1.5rem;
  }

  .bmwz-guide-featured__badge--riservata {
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .bmwz-guide-featured__content {
    padding: 1.5rem;
  }

  .bmwz-guide-filters__form {
    flex-direction: column;
    align-items: stretch;
  }

  .bmwz-guide-filters__search {
    max-width: none;
  }

  .bmwz-guide-filters__selects {
    flex-wrap: wrap;
  }

  .bmwz-guide-filters__selects select {
    flex: 1;
    min-width: 120px;
  }

  .bmwz-guide-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bmwz-guide-nav__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bmwz-guide-nav__link--next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
}

@media (max-width: 640px) {
  .bmwz-guide-hero {
    min-height: 40vh;
  }

  .bmwz-guide-hero__content {
    padding: 3rem 0;
  }

  .bmwz-guide-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .bmwz-guide-content {
    padding: 2.5rem 0;
  }

  .bmwz-guide-restricted {
    padding: 2.5rem 1.5rem;
  }

  .bmwz-guide-nav {
    padding: 2rem 0;
  }

  .bmwz-guide-nav__link {
    padding: 1rem;
  }

  .bmwz-guide-nav__arrow {
    width: 36px;
    height: 36px;
  }

  .bmwz-guide-nav__title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   LE RISORSE - ARCHIVIO
   ========================================================================== */

/* Header bianco per archivio risorse */
body.post-type-archive-risorsa .bmwz-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.post-type-archive-risorsa .bmwz-nav {
  color: var(--bmwz-text);
}

body.post-type-archive-risorsa .bmwz-primary-nav__list > li > a {
  color: var(--bmwz-text);
}

body.post-type-archive-risorsa .bmwz-primary-nav__list > li > a:hover {
  opacity: 0.7;
}

body.post-type-archive-risorsa .bmwz-primary-nav__list .sub-menu a {
  color: rgba(255, 255, 255, 0.85);
}

body.post-type-archive-risorsa .bmwz-primary-nav__list .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

body.post-type-archive-risorsa .bmwz-nav-cta .bmwz-button {
  border-color: var(--bmwz-text);
  color: var(--bmwz-text);
}

body.post-type-archive-risorsa .bmwz-nav-cta .bmwz-button:hover {
  background: var(--bmwz-text);
  color: #fff;
}

body.post-type-archive-risorsa .bmwz-nav-toggle__bar {
  background: var(--bmwz-text);
}

/* Filtri Risorse */
.bmwz-risorsa-filters {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.bmwz-risorsa-filters__form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bmwz-risorsa-filters__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bmwz-risorsa-filters__search {
  position: relative;
  min-width: 140px;
}

.bmwz-risorsa-filters__search input {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.3);
  font-size: 0.95rem;
  background: transparent;
  color: var(--bmwz-text);
}

.bmwz-risorsa-filters__search input::placeholder {
  color: var(--bmwz-muted);
}

.bmwz-risorsa-filters__search input:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

.bmwz-risorsa-filters__select select {
  padding: 0.5rem 2rem 0.5rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.3);
  font-size: 0.95rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right center;
  appearance: none;
  cursor: pointer;
  color: var(--bmwz-muted);
  min-width: 120px;
}

.bmwz-risorsa-filters__select select:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

.bmwz-risorsa-filters__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bmwz-risorsa-filters__tab {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--bmwz-text);
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.bmwz-risorsa-filters__tab:hover {
  color: var(--bmwz-primary);
}

.bmwz-risorsa-filters__tab.is-active {
  color: var(--bmwz-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bmwz-risorsa-filters__tab--muted {
  color: var(--bmwz-muted);
}

.bmwz-risorsa-filters__tab--muted.is-active {
  color: var(--bmwz-text);
}

.bmwz-risorsa-filters__divider {
  color: rgba(15, 23, 42, 0.2);
}

.bmwz-risorsa-filters__reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--bmwz-muted);
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.bmwz-risorsa-filters__reset:hover {
  opacity: 1;
  color: var(--bmwz-primary);
}

/* Lista Risorse */
.bmwz-risorsa-list {
  display: flex;
  flex-direction: column;
}

.bmwz-risorsa-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  gap: 2rem;
}

.bmwz-risorsa-item:first-child {
  padding-top: 1rem;
}

.bmwz-risorsa-item__content {
  flex: 1;
  min-width: 0;
}

.bmwz-risorsa-item__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--bmwz-text);
  line-height: 1.4;
}

.bmwz-risorsa-item__description {
  font-size: 0.95rem;
  color: var(--bmwz-muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.bmwz-risorsa-item__badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--bmwz-muted);
  font-style: italic;
}

.bmwz-risorsa-item__action {
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.bmwz-risorsa-item__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background-color: var(--bmwz-primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.bmwz-risorsa-item__button:hover {
  background-color: rgb(35, 72, 184);
  transform: translateY(-1px);
}

.bmwz-risorsa-item__button--disabled {
  background-color: rgba(15, 23, 42, 0.1);
  color: var(--bmwz-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.bmwz-risorsa-item__button--disabled:hover {
  transform: none;
}

/* Paginazione Risorse */
.bmwz-risorsa-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.bmwz-risorsa-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  background: #fff;
  color: var(--bmwz-text);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(15, 23, 42, 0.1);
  transition: all 0.2s ease;
}

.bmwz-risorsa-pagination .page-numbers:hover {
  background: #f1f5f9;
  border-color: var(--bmwz-primary);
}

.bmwz-risorsa-pagination .page-numbers.current {
  background: var(--bmwz-primary);
  color: #fff;
  border-color: var(--bmwz-primary);
}

/* Stato vuoto Risorse */
.bmwz-risorsa-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border-radius: 8px;
}

.bmwz-risorsa-empty svg {
  color: var(--bmwz-muted);
  margin-bottom: 1.5rem;
}

.bmwz-risorsa-empty p {
  color: var(--bmwz-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.bmwz-risorsa-empty .bmwz-button {
  border-radius: 8px;
}

/* Responsive Risorse */
@media (max-width: 900px) {
  .bmwz-risorsa-filters__form {
    flex-direction: column;
    align-items: stretch;
  }

  .bmwz-risorsa-filters__left {
    flex-wrap: wrap;
  }

  .bmwz-risorsa-filters__right {
    justify-content: flex-start;
    padding-top: 0.5rem;
  }

  .bmwz-risorsa-item {
    flex-direction: column;
    gap: 1rem;
  }

  .bmwz-risorsa-item__action {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .bmwz-risorsa-filters__left {
    flex-direction: column;
    align-items: stretch;
  }

  .bmwz-risorsa-filters__search,
  .bmwz-risorsa-filters__select {
    width: 100%;
  }

  .bmwz-risorsa-filters__select select {
    width: 100%;
    min-width: auto;
  }

  .bmwz-risorsa-item__title {
    font-size: 1.05rem;
  }

  .bmwz-risorsa-item {
    padding: 1.5rem 0;
  }
}

/* Bottone locked (risorsa riservata) */
.bmwz-risorsa-item__button--locked {
  background-color: var(--bmwz-primary);
  border: none;
  cursor: pointer;
}

.bmwz-risorsa-item__button--locked:hover {
  background-color: rgb(35, 72, 184);
}

/* ==========================================================================
   MODAL PASSWORD SOCI - RISORSE
   ========================================================================== */

.bmwz-risorsa-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bmwz-risorsa-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.bmwz-risorsa-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.bmwz-risorsa-modal__container {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.bmwz-risorsa-modal.is-open .bmwz-risorsa-modal__container {
  transform: translateY(0);
}

.bmwz-risorsa-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bmwz-muted);
  transition: color 0.2s ease;
  border-radius: 50%;
}

.bmwz-risorsa-modal__close:hover {
  color: var(--bmwz-text);
  background: #f1f5f9;
}

.bmwz-risorsa-modal__icon {
  color: var(--bmwz-muted);
  margin-bottom: 1rem;
}

.bmwz-risorsa-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--bmwz-text);
}

.bmwz-risorsa-modal__description {
  color: var(--bmwz-muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.bmwz-risorsa-modal__risorsa-name {
  font-weight: 600;
  color: var(--bmwz-text);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.bmwz-risorsa-modal__error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}

.bmwz-risorsa-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bmwz-risorsa-modal__field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.bmwz-risorsa-modal__field input:focus {
  outline: none;
  border-color: var(--bmwz-primary);
  box-shadow: 0 0 0 3px rgba(45, 91, 218, 0.1);
}

.bmwz-risorsa-modal__submit {
  width: 100%;
  border-radius: 8px;
}

.bmwz-risorsa-modal__help {
  font-size: 0.9rem;
  color: var(--bmwz-muted);
  margin: 1.5rem 0 0;
}

.bmwz-risorsa-modal__help a {
  color: var(--bmwz-primary);
  text-decoration: none;
  font-weight: 500;
}

.bmwz-risorsa-modal__help a:hover {
  text-decoration: underline;
}

/* Responsive Modal */
@media (max-width: 640px) {
  .bmwz-risorsa-modal__container {
    padding: 2rem 1.5rem;
  }

  .bmwz-risorsa-modal__title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   LE CONVENZIONI - ARCHIVIO E SINGOLA
   ========================================================================== */

/* Header bianco per archivio convenzioni */
body.post-type-archive-convenzione .bmwz-nav-wrapper,
body.single-convenzione .bmwz-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.post-type-archive-convenzione .bmwz-nav,
body.single-convenzione .bmwz-nav {
  color: var(--bmwz-text);
}

body.post-type-archive-convenzione .bmwz-primary-nav__list > li > a,
body.single-convenzione .bmwz-primary-nav__list > li > a {
  color: var(--bmwz-text);
}

body.post-type-archive-convenzione .bmwz-primary-nav__list > li > a:hover,
body.single-convenzione .bmwz-primary-nav__list > li > a:hover {
  opacity: 0.7;
}

body.post-type-archive-convenzione .bmwz-primary-nav__list .sub-menu a,
body.single-convenzione .bmwz-primary-nav__list .sub-menu a {
  color: rgba(255, 255, 255, 0.85);
}

body.post-type-archive-convenzione .bmwz-primary-nav__list .sub-menu a:hover,
body.single-convenzione .bmwz-primary-nav__list .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

body.post-type-archive-convenzione .bmwz-nav-cta .bmwz-button,
body.single-convenzione .bmwz-nav-cta .bmwz-button {
  border-color: var(--bmwz-text);
  color: var(--bmwz-text);
}

body.post-type-archive-convenzione .bmwz-nav-cta .bmwz-button:hover,
body.single-convenzione .bmwz-nav-cta .bmwz-button:hover {
  background: var(--bmwz-text);
  color: #fff;
}

body.post-type-archive-convenzione .bmwz-nav-toggle__bar,
body.single-convenzione .bmwz-nav-toggle__bar {
  background: var(--bmwz-text);
}

/* Archivio Convenzioni */
.bmwz-convenzione-archive-page {
  padding: 4rem 0;
  min-height: 60vh;
}

/* Header Archivio Convenzioni */
.bmwz-convenzione-archive-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.bmwz-convenzione-archive-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bmwz-text);
  margin: 0;
}

/* Lista Convenzioni */
.bmwz-convenzione-list {
  margin-top: 2rem;
}

/* Item Convenzione */
.bmwz-convenzione-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}

.bmwz-convenzione-item__content {
  min-width: 0;
}

.bmwz-convenzione-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bmwz-text);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.bmwz-convenzione-item__description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--bmwz-text);
}

.bmwz-convenzione-item__description p {
  margin: 0 0 1rem;
}

.bmwz-convenzione-item__description p:last-child {
  margin-bottom: 0;
}

.bmwz-convenzione-item__description ul,
.bmwz-convenzione-item__description ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.bmwz-convenzione-item__description li {
  margin-bottom: 0.35rem;
}

.bmwz-convenzione-item__description a {
  color: var(--bmwz-primary);
  text-decoration: none;
}

.bmwz-convenzione-item__description a:hover {
  text-decoration: underline;
}

/* Media/Immagine Convenzione */
.bmwz-convenzione-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmwz-convenzione-item__media img {
  max-width: 250px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.bmwz-convenzione-item__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  background: #f8fafc;
  border-radius: 8px;
  color: var(--bmwz-muted);
}

/* Separatore Convenzioni */
.bmwz-convenzione-separator {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  margin: 0;
}

/* Paginazione Convenzioni */
.bmwz-convenzione-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-convenzione-pagination a,
.bmwz-convenzione-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: var(--bmwz-text);
  background: #f8fafc;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-convenzione-pagination a:hover {
  background: var(--bmwz-text);
  color: #fff;
}

.bmwz-convenzione-pagination .current {
  background: var(--bmwz-primary);
  color: #fff;
}

/* Empty State Convenzioni */
.bmwz-convenzione-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border-radius: 12px;
}

.bmwz-convenzione-empty svg {
  color: var(--bmwz-muted);
  margin-bottom: 1.5rem;
}

.bmwz-convenzione-empty p {
  color: var(--bmwz-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

/* Singola Convenzione */
.bmwz-convenzione-single {
  padding-top: 2rem;
}

.bmwz-convenzione-article {
  padding: 2rem 0 4rem;
}

.bmwz-convenzione-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-convenzione-header__media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.bmwz-convenzione-header__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: #fff;
}

.bmwz-convenzione-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bmwz-text);
  margin: 0;
  line-height: 1.2;
}

/* Contenuto Convenzione */
.bmwz-convenzione-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--bmwz-text);
}

.bmwz-convenzione-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.bmwz-convenzione-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.bmwz-convenzione-body p {
  margin: 0 0 1.25rem;
}

.bmwz-convenzione-body ul,
.bmwz-convenzione-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.bmwz-convenzione-body li {
  margin-bottom: 0.5rem;
}

.bmwz-convenzione-body a {
  color: var(--bmwz-primary);
  text-decoration: none;
}

.bmwz-convenzione-body a:hover {
  text-decoration: underline;
}

/* Navigazione Prev/Next Convenzione */
.bmwz-convenzione-nav {
  background: #f8fafc;
  padding: 3rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-convenzione-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.bmwz-convenzione-nav__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bmwz-convenzione-nav__link:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.bmwz-convenzione-nav__link--prev {
  justify-content: flex-start;
}

.bmwz-convenzione-nav__link--next {
  justify-content: flex-end;
  text-align: right;
}

.bmwz-convenzione-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--bmwz-text);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-convenzione-nav__link:hover .bmwz-convenzione-nav__arrow {
  background: var(--bmwz-primary);
  color: #fff;
}

.bmwz-convenzione-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bmwz-convenzione-nav__label {
  font-size: 0.85rem;
  color: var(--bmwz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bmwz-convenzione-nav__title {
  font-weight: 600;
  color: var(--bmwz-text);
  font-size: 1.1rem;
}

.bmwz-convenzione-nav__placeholder {
  /* Placeholder vuoto per mantenere il layout */
}

/* Torna all'archivio Convenzioni */
.bmwz-convenzione-back {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-convenzione-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bmwz-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bmwz-convenzione-back__link:hover {
  color: var(--bmwz-primary);
}

/* Responsive Convenzioni */
@media (max-width: 900px) {
  .bmwz-convenzione-archive-header h1 {
    font-size: 2rem;
  }

  .bmwz-convenzione-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bmwz-convenzione-item__media {
    order: -1;
    justify-content: flex-start;
  }

  .bmwz-convenzione-item__media img {
    max-height: 180px;
  }

  .bmwz-convenzione-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bmwz-convenzione-header__media {
    max-width: 300px;
    margin: 0 auto;
  }

  .bmwz-convenzione-header__title {
    font-size: 2rem;
    text-align: center;
  }

  .bmwz-convenzione-nav__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bmwz-convenzione-nav__link--next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
}

@media (max-width: 640px) {
  .bmwz-convenzione-archive-page {
    padding: 2.5rem 0;
  }

  .bmwz-convenzione-archive-header h1 {
    font-size: 1.75rem;
  }

  .bmwz-convenzione-item {
    padding: 1.5rem 0;
  }

  .bmwz-convenzione-item__title {
    font-size: 1.25rem;
  }

  .bmwz-convenzione-header__title {
    font-size: 1.75rem;
  }

  .bmwz-convenzione-body {
    font-size: 1rem;
  }

  .bmwz-convenzione-nav {
    padding: 2rem 0;
  }

  .bmwz-convenzione-nav__link {
    padding: 1rem;
  }

  .bmwz-convenzione-nav__arrow {
    width: 36px;
    height: 36px;
  }

  .bmwz-convenzione-nav__title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   ARCHIVIO RADUNI
   ========================================================================== */

/* Assicura che la hero si estenda dall'inizio (sotto header absolute) */
body.post-type-archive-raduno .bmwz-raduni-hero {
  margin-top: 0;
  padding-top: 0;
}

/* Hero Raduni - simile al Club */
.bmwz-raduni-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.bmwz-raduni-hero .bmwz-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.bmwz-raduni-hero .bmwz-hero__content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  color: #fff;
}

.bmwz-raduni-hero .bmwz-hero__content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.bmwz-raduni-hero .bmwz-hero__content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Bottone outline per hero raduni - stondato come quello nell'header */
.bmwz-raduni-hero .bmwz-button--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bmwz-raduni-hero .bmwz-button--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Pagina Raduni Archivio: header trasparente sopra l'immagine */
body.post-type-archive-raduno .bmwz-nav-wrapper {
  position: absolute;
  background: transparent;
  padding-top: 1rem;
}

body.post-type-archive-raduno .bmwz-nav-divider {
  display: block;
}

body.post-type-archive-raduno .bmwz-nav-cta .bmwz-button {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

body.post-type-archive-raduno .bmwz-nav-cta .bmwz-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.post-type-archive-raduno .bmwz-nav-toggle__bar {
  background: #fff;
}

/* Filtri Raduni - stile risorse */
.bmwz-raduni-filters {
  margin: 3rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.bmwz-raduni-filters__form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bmwz-raduni-filters__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bmwz-raduni-filters__search {
  position: relative;
  min-width: 140px;
}

.bmwz-raduni-filters__search input {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.3);
  font-size: 0.95rem;
  background: transparent;
  color: var(--bmwz-text);
}

.bmwz-raduni-filters__search input::placeholder {
  color: var(--bmwz-muted);
}

.bmwz-raduni-filters__search input:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

.bmwz-raduni-filters__select select {
  padding: 0.5rem 2rem 0.5rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.3);
  font-size: 0.95rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right center;
  appearance: none;
  cursor: pointer;
  color: var(--bmwz-muted);
  min-width: 120px;
}

.bmwz-raduni-filters__select select:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

.bmwz-raduni-filters__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bmwz-raduni-filters__reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--bmwz-muted);
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.bmwz-raduni-filters__reset:hover {
  opacity: 1;
  color: var(--bmwz-primary);
}

/* Griglia Raduni Archivio */
.bmwz-raduni-grid--archive {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

/* Card Raduno versione light per archivio */
.bmwz-raduno-card--light {
  background: #fff;
  border-radius: var(--bmwz-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmwz-raduno-card--light:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
}

.bmwz-raduno-card--light .bmwz-raduno-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.bmwz-raduno-card--light .bmwz-raduno-card__media {
  position: relative;
  height: 280px;
}

.bmwz-raduno-card--light .bmwz-raduno-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmwz-raduno-card--light .bmwz-raduno-card__date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  min-width: 55px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bmwz-raduno-card--light .bmwz-raduno-card__day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.bmwz-raduno-card--light .bmwz-raduno-card__month {
  display: block;
  text-transform: lowercase;
  font-weight: 500;
  font-size: 0.85rem;
  color: #666;
}

.bmwz-raduno-card--light .bmwz-raduno-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bmwz-raduno-card--light .bmwz-raduno-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bmwz-text);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.bmwz-raduno-card--light .bmwz-raduno-card__excerpt {
  font-size: 0.9rem;
  color: var(--bmwz-muted);
  margin: 0;
  line-height: 1.5;
}

/* Paginazione Raduni */
.bmwz-raduni-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-raduni-pagination a,
.bmwz-raduni-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: var(--bmwz-text);
  background: #f8fafc;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-raduni-pagination a:hover {
  background: var(--bmwz-text);
  color: #fff;
}

.bmwz-raduni-pagination .current {
  background: var(--bmwz-primary);
  color: #fff;
}

/* Empty State Raduni */
.bmwz-raduni-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border-radius: 12px;
  margin-top: 2rem;
}

.bmwz-raduni-empty svg {
  color: var(--bmwz-muted);
  margin-bottom: 1.5rem;
}

.bmwz-raduni-empty p {
  color: var(--bmwz-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

/* Responsive Raduni Archivio */
@media (max-width: 1024px) {
  .bmwz-raduni-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .bmwz-raduni-hero .bmwz-hero__content h1 {
    font-size: 2.5rem;
  }

  .bmwz-raduni-filters__form {
    flex-direction: column;
    align-items: stretch;
  }

  .bmwz-raduni-filters__left {
    order: 2;
  }

  .bmwz-raduni-filters__right {
    order: 1;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  .bmwz-raduni-hero {
    min-height: 450px;
  }

  .bmwz-raduni-hero .bmwz-hero__content h1 {
    font-size: 2rem;
  }

  .bmwz-raduni-hero .bmwz-hero__content p {
    font-size: 1rem;
  }

  .bmwz-raduni-grid--archive {
    grid-template-columns: 1fr;
  }

  .bmwz-raduni-filters__left {
    flex-direction: column;
    align-items: stretch;
  }

  .bmwz-raduni-filters__search,
  .bmwz-raduni-filters__select {
    width: 100%;
  }

  .bmwz-raduni-filters__select select {
    width: 100%;
  }

  .bmwz-raduno-card--light .bmwz-raduno-card__media {
    height: 220px;
  }
}

/* ==========================================================================
   ARCHIVIO + SINGOLA GALLERY
   ========================================================================== */

.bmwz-gallery-archive-header {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.bmwz-gallery-archive-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
}

.bmwz-gallery-archive-header p {
  margin: 0.75rem auto 0;
  max-width: 720px;
  color: var(--bmwz-muted);
}

.bmwz-gallery-filters {
  margin: 2.5rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.bmwz-gallery-filters__form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bmwz-gallery-filters__left,
.bmwz-gallery-filters__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bmwz-gallery-filters__search {
  min-width: 180px;
}

.bmwz-gallery-filters__search input {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.3);
  font-size: 0.95rem;
  background: transparent;
  color: var(--bmwz-text);
}

.bmwz-gallery-filters__search input::placeholder {
  color: var(--bmwz-muted);
}

.bmwz-gallery-filters__search input:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

.bmwz-gallery-filters__select select {
  padding: 0.5rem 2rem 0.5rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.3);
  font-size: 0.95rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right center;
  appearance: none;
  cursor: pointer;
  color: var(--bmwz-muted);
  min-width: 140px;
}

.bmwz-gallery-filters__select select:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

.bmwz-gallery-filters__reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--bmwz-muted);
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.bmwz-gallery-filters__reset:hover {
  opacity: 1;
  color: var(--bmwz-primary);
}

.bmwz-gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--bmwz-muted);
}

.bmwz-gallery-empty svg {
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.bmwz-gallery-empty p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.bmwz-gallery-grid {
  display: grid;
  gap: 1.75rem;
}

.bmwz-gallery-grid--columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmwz-gallery-grid--columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bmwz-gallery-grid--columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bmwz-gallery-grid--columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bmwz-gallery-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmwz-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.bmwz-gallery-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bmwz-gallery-card__media {
  aspect-ratio: 4 / 3;
  background: #0f0f0f;
}

.bmwz-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmwz-gallery-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 10, 0.7) 55%, rgba(10, 10, 10, 0.9) 100%);
}

.bmwz-gallery-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.bmwz-gallery-card__date {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.bmwz-gallery-card__cta {
  align-self: flex-end;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.bmwz-gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-gallery-pagination a,
.bmwz-gallery-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: var(--bmwz-text);
  background: #f8fafc;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-gallery-pagination a:hover {
  background: var(--bmwz-text);
  color: #fff;
}

.bmwz-gallery-pagination .current {
  background: var(--bmwz-primary);
  color: #fff;
}

.bmwz-gallery-single {
  padding: 3rem 0 4rem;
}

.bmwz-gallery-single__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.bmwz-gallery-single__header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.bmwz-gallery-single__description {
  max-width: 720px;
  margin: 0.75rem auto 0;
  color: var(--bmwz-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bmwz-gallery-single__description p {
  margin: 0;
}

.bmwz-gallery-single__meta {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: var(--bmwz-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.bmwz-gallery-single__raduno-link {
  display: inline-flex;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--bmwz-primary);
  text-decoration: none;
}

.bmwz-gallery-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 571 / 445;
}

.bmwz-gallery-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bmwz-gallery-photo__button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.bmwz-gallery-photo__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.bmwz-gallery-photo__link:hover {
  opacity: 0.85;
}

.bmwz-gallery-photo__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 40%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.bmwz-gallery-photo__link:hover::after {
  opacity: 1;
}

/* lightGallery customizations */
.lg-backdrop {
  background-color: rgba(10, 10, 10, 0.95);
}

.lg-toolbar,
.lg-actions .lg-prev,
.lg-actions .lg-next {
  background-color: transparent;
}

.lg-toolbar .lg-icon {
  color: #fff;
}

.lg-toolbar .lg-icon:hover {
  color: #0066b1;
}

.lg-actions .lg-prev,
.lg-actions .lg-next {
  color: #fff;
  font-size: 32px;
}

.lg-actions .lg-prev:hover,
.lg-actions .lg-next:hover {
  color: #0066b1;
}

.lg-outer .lg-thumb-outer {
  background-color: rgba(10, 10, 10, 0.8);
}

.lg-outer .lg-thumb-item {
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
  border-color: #0066b1;
}

.lg-counter {
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
}

.lg-sub-html {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 1rem 1.5rem;
}

.lg-outer .lg-image {
  border-radius: 4px;
}

.lg-zoom-in,
.lg-zoom-out,
.lg-actual-size {
  color: #fff;
}

.lg-zoom-in:hover,
.lg-zoom-out:hover,
.lg-actual-size:hover {
  color: #0066b1;
}

.bmwz-gallery-photo__credit {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}


.bmwz-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.bmwz-lightbox.is-visible {
  display: flex;
}

.bmwz-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
}

.bmwz-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  background: #0b0b0b;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.bmwz-lightbox__content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.bmwz-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bmwz-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.bmwz-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.bmwz-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.bmwz-lightbox__nav--prev {
  left: -60px;
}

.bmwz-lightbox__nav--next {
  right: -60px;
}

.bmwz-lightbox__counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 1200px) {
  .bmwz-lightbox__nav--prev {
    left: 0.75rem;
  }

  .bmwz-lightbox__nav--next {
    right: 0.75rem;
  }

  .bmwz-lightbox__nav {
    background: rgba(0, 0, 0, 0.5);
  }

  .bmwz-lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.7);
  }
}

body.bmwz-lightbox-open {
  overflow: hidden;
}

.bmwz-raduno-gallery {
  padding: 3.5rem 0;
  background: #f8fafc;
}

.bmwz-raduno-gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.bmwz-raduno-gallery__header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.bmwz-raduno-gallery__link {
  color: var(--bmwz-primary);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .bmwz-gallery-grid--columns-4,
  .bmwz-gallery-grid--columns-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bmwz-gallery-filters__form {
    flex-direction: column;
    align-items: stretch;
  }

  .bmwz-gallery-filters__right {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .bmwz-gallery-grid--columns-3,
  .bmwz-gallery-grid--columns-4,
  .bmwz-gallery-grid--columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmwz-raduno-gallery__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .bmwz-gallery-grid--columns-2,
  .bmwz-gallery-grid--columns-3,
  .bmwz-gallery-grid--columns-4,
  .bmwz-gallery-grid--columns-5 {
    grid-template-columns: 1fr;
  }

  .bmwz-gallery-filters__left,
  .bmwz-gallery-filters__right {
    width: 100%;
  }

  .bmwz-gallery-filters__search,
  .bmwz-gallery-filters__select {
    width: 100%;
  }

  .bmwz-gallery-filters__select select {
    width: 100%;
  }
}

/* ==========================================================================
   SINGOLA PAGINA RADUNO
   ========================================================================== */

/* Hero con immagine di sfondo */
.bmwz-raduno-single-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  margin-top: -80px;
  padding: 80px 0 3rem;
}

.bmwz-raduno-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.bmwz-raduno-single-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.bmwz-raduno-single-hero__date {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.bmwz-raduno-single-hero__day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.bmwz-raduno-single-hero__month {
  font-size: 1.1rem;
  text-transform: capitalize;
}

.bmwz-raduno-single-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.bmwz-raduno-single-hero__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.bmwz-raduno-single-hero__location svg {
  opacity: 0.8;
}

/* Header senza immagine */
.bmwz-raduno-single-header {
  padding: 3rem 0 2rem;
  background: #f8fafc;
}

.bmwz-raduno-single-header__date {
  color: var(--bmwz-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.bmwz-raduno-single-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--bmwz-text);
}

.bmwz-raduno-single-header__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--bmwz-muted);
}

/* Contenuto */
.bmwz-raduno-single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Meta info */
.bmwz-raduno-single-meta {
  margin-bottom: 2rem;
}

.bmwz-raduno-single-meta__categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bmwz-raduno-single-meta__tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--bmwz-text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.bmwz-raduno-single-meta__tag:hover {
  background: #e2e8f0;
}

/* Corpo articolo */
.bmwz-raduno-single-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--bmwz-text);
}

.bmwz-raduno-single-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.bmwz-raduno-single-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.bmwz-raduno-single-body p {
  margin: 0 0 1.25rem;
}

.bmwz-raduno-single-body ul,
.bmwz-raduno-single-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.bmwz-raduno-single-body li {
  margin-bottom: 0.5rem;
}

.bmwz-raduno-single-body a {
  color: var(--bmwz-primary);
  text-decoration: none;
}

.bmwz-raduno-single-body a:hover {
  text-decoration: underline;
}

.bmwz-raduno-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Navigazione Prev/Next Raduno */
.bmwz-raduno-nav {
  background: #f8fafc;
  padding: 3rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-raduno-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.bmwz-raduno-nav__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bmwz-raduno-nav__link:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.bmwz-raduno-nav__link--prev {
  justify-content: flex-start;
}

.bmwz-raduno-nav__link--next {
  justify-content: flex-end;
  text-align: right;
}

.bmwz-raduno-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--bmwz-text);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.bmwz-raduno-nav__link:hover .bmwz-raduno-nav__arrow {
  background: var(--bmwz-primary);
  color: #fff;
}

.bmwz-raduno-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bmwz-raduno-nav__label {
  font-size: 0.85rem;
  color: var(--bmwz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bmwz-raduno-nav__title {
  font-weight: 600;
  color: var(--bmwz-text);
  font-size: 1.1rem;
}

.bmwz-raduno-nav__placeholder {
  /* Placeholder vuoto per mantenere il layout */
}

/* Torna all'archivio Raduni */
.bmwz-raduno-back {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bmwz-raduno-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bmwz-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bmwz-raduno-back__link:hover {
  color: var(--bmwz-primary);
}

/* Pagina Singola Raduno: header trasparente sopra l'immagine */
body.single-raduno .bmwz-nav-wrapper {
  position: absolute;
  background: transparent;
  padding-top: 1rem;
}

body.single-raduno .bmwz-nav-divider {
  display: block;
}

body.single-raduno .bmwz-nav-cta .bmwz-button {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

body.single-raduno .bmwz-nav-cta .bmwz-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.single-raduno .bmwz-nav-toggle__bar {
  background: #fff;
}

/* Responsive Singolo Raduno */
@media (max-width: 900px) {
  .bmwz-raduno-single-hero__title {
    font-size: 2rem;
  }

  .bmwz-raduno-nav__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bmwz-raduno-nav__link--next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
}

@media (max-width: 640px) {
  .bmwz-raduno-single-hero {
    min-height: 380px;
  }

  .bmwz-raduno-single-hero__title {
    font-size: 1.75rem;
  }

  .bmwz-raduno-single-hero__date {
    padding: 0.4rem 0.75rem;
  }

  .bmwz-raduno-single-hero__day {
    font-size: 1.5rem;
  }

  .bmwz-raduno-single-header__title {
    font-size: 1.75rem;
  }

  .bmwz-raduno-single-body {
    font-size: 1rem;
  }

  .bmwz-raduno-nav {
    padding: 2rem 0;
  }

  .bmwz-raduno-nav__link {
    padding: 1rem;
  }

  .bmwz-raduno-nav__arrow {
    width: 36px;
    height: 36px;
  }

  .bmwz-raduno-nav__title {
    font-size: 1rem;
  }
}

/* ============================================
   PAGINA CONTATTI
   ============================================ */

.bmwz-contatti-page {
  padding-top: 2rem;
}

.bmwz-contatti {
  padding: 4rem 0 6rem;
}

.bmwz-contatti__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Colonna sinistra - Info */
.bmwz-contatti__info {
  padding-right: 2rem;
}

.bmwz-contatti__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--bmwz-text);
}

.bmwz-contatti__description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--bmwz-muted);
}

.bmwz-contatti__description p {
  margin: 0 0 1rem;
}

.bmwz-contatti__description p:last-child {
  margin-bottom: 0;
}

/* Colonna destra - Form */
.bmwz-contatti__form {
  background: #fff;
  padding: 0;
}

.bmwz-contatti__form-placeholder {
  padding: 3rem 2rem;
  background: #f8fafc;
  border: 2px dashed rgba(15, 23, 42, 0.15);
  border-radius: var(--bmwz-radius);
  text-align: center;
  color: var(--bmwz-muted);
}

/* Stili Gravity Forms */
.bmwz-contatti__form .gform_wrapper {
  margin: 0;
  padding: 0;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gform_fields {
  grid-row-gap: 1.5rem;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield {
  margin-bottom: 0;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_label {
  display: none;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="text"],
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="email"],
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="tel"],
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="url"],
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="number"],
.bmwz-contatti__form .gform_wrapper.gravity-theme select,
.bmwz-contatti__form .gform_wrapper.gravity-theme textarea {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bmwz-text);
  background: transparent;
  transition: border-color 0.2s ease;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="text"]::placeholder,
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="email"]::placeholder,
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="tel"]::placeholder,
.bmwz-contatti__form .gform_wrapper.gravity-theme textarea::placeholder {
  color: var(--bmwz-muted);
}

.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="text"]:focus,
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="email"]:focus,
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="tel"]:focus,
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="url"]:focus,
.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="number"]:focus,
.bmwz-contatti__form .gform_wrapper.gravity-theme select:focus,
.bmwz-contatti__form .gform_wrapper.gravity-theme textarea:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

.bmwz-contatti__form .gform_wrapper.gravity-theme textarea {
  min-height: 100px;
  resize: vertical;
}

/* Checkbox stile custom */
.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_checkbox,
.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_consent {
  padding-top: 1.5rem;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gchoice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_checkbox input[type="checkbox"],
.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_consent input[type="checkbox"],
.bmwz-contatti__form .gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--bmwz-primary);
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_checkbox label,
.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_consent_label {
  font-size: 0.875rem;
  color: var(--bmwz-muted);
  line-height: 1.5;
  cursor: pointer;
}

/* Bottone submit */
.bmwz-contatti__form .gform_wrapper.gravity-theme .gform_footer,
.bmwz-contatti__form .gform_wrapper.gravity-theme .gform_page_footer {
  padding-top: 2rem;
  margin-top: 0;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="submit"],
.bmwz-contatti__form .gform_wrapper.gravity-theme button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: var(--bmwz-primary);
  color: #fff;
  box-shadow: 0 15px 35px rgba(45, 91, 218, 0.25);
}

.bmwz-contatti__form .gform_wrapper.gravity-theme input[type="submit"]:hover,
.bmwz-contatti__form .gform_wrapper.gravity-theme button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(45, 91, 218, 0.25);
}

/* Messaggi validazione */
.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_error input,
.bmwz-contatti__form .gform_wrapper.gravity-theme .gfield_error textarea {
  border-bottom-color: #dc2626;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .validation_message {
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.5rem;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gform_validation_errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--bmwz-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.bmwz-contatti__form .gform_wrapper.gravity-theme .gform_submission_error {
  color: #dc2626;
  font-weight: 600;
}

/* Messaggio conferma */
.bmwz-contatti__form .gform_confirmation_message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--bmwz-radius);
  padding: 2rem;
  text-align: center;
  color: #166534;
  font-weight: 500;
}

/* Header bianco per pagina contatti */
body.page-template-template-contatti .bmwz-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.page-template-template-contatti .bmwz-nav {
  color: var(--bmwz-text);
}

body.page-template-template-contatti .bmwz-primary-nav__list > li > a {
  color: var(--bmwz-text);
}

body.page-template-template-contatti .bmwz-primary-nav__list > li > a:hover {
  opacity: 0.7;
}

body.page-template-template-contatti .bmwz-primary-nav__list .sub-menu a {
  color: rgba(255, 255, 255, 0.85);
}

body.page-template-template-contatti .bmwz-primary-nav__list .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

body.page-template-template-contatti .bmwz-nav-cta .bmwz-button {
  border-color: var(--bmwz-text);
  color: var(--bmwz-text);
}

body.page-template-template-contatti .bmwz-nav-cta .bmwz-button:hover {
  background: var(--bmwz-text);
  color: #fff;
}

body.page-template-template-contatti .bmwz-nav-toggle__bar {
  background: var(--bmwz-text);
}

/* Responsive Contatti */
@media (max-width: 900px) {
  .bmwz-contatti__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bmwz-contatti__info {
    padding-right: 0;
  }

  .bmwz-contatti__title {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  .bmwz-contatti {
    padding: 2rem 0 4rem;
  }

  .bmwz-contatti__grid {
    gap: 2rem;
  }

  .bmwz-contatti__title {
    font-size: 1.875rem;
  }

  .bmwz-contatti__description {
    font-size: 1rem;
  }
}

/* ============================================
   PAGINA DIVENTA SOCIO
   ============================================ */

/* Header trasparente sovrapposto all'hero */
body.page-template-template-diventa-socio .bmwz-nav-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding-top: 1rem;
}

body.page-template-template-diventa-socio .bmwz-nav-divider {
  display: block;
}

.bmwz-diventa-socio-page {
  /* Reset per permettere all'hero di andare sotto l'header */
}

/* Hero Diventa Socio */
.bmwz-diventa-socio-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0;
  padding-top: 120px; /* Spazio per l'header sovrapposto */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bmwz-diventa-socio-hero .bmwz-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
}

.bmwz-diventa-socio-hero .bmwz-hero__content {
  position: relative;
  z-index: 1;
  max-width: 550px;
}

.bmwz-diventa-socio-hero .bmwz-hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
}

.bmwz-diventa-socio-hero .bmwz-hero__content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Sezione Contenuto con Divider */
.bmwz-diventa-socio-content {
  padding: 4rem 0;
}

.bmwz-diventa-socio-divider {
  border: none;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
  margin: 0;
}

.bmwz-diventa-socio-divider--top {
  margin-bottom: 3rem;
}

.bmwz-diventa-socio-divider--bottom {
  margin-top: 3rem;
}

.bmwz-diventa-socio-content__body {
  max-width: 900px;
}

.bmwz-diventa-socio-content__body h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--bmwz-text);
}

.bmwz-diventa-socio-content__body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
  color: var(--bmwz-text);
}

.bmwz-diventa-socio-content__body p:last-child {
  margin-bottom: 0;
}

.bmwz-diventa-socio-content__body ul,
.bmwz-diventa-socio-content__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.bmwz-diventa-socio-content__body li {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--bmwz-text);
}

/* Sezione Form Iscrizione */
.bmwz-diventa-socio-form-section {
  padding: 0 0 5rem;
}

.bmwz-diventa-socio-form__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 2rem;
  color: var(--bmwz-text);
}

.bmwz-diventa-socio-form__placeholder {
  padding: 3rem 2rem;
  background: #f8fafc;
  border: 2px dashed rgba(15, 23, 42, 0.15);
  border-radius: var(--bmwz-radius);
  text-align: center;
  color: var(--bmwz-muted);
}

/* Stili Gravity Forms per Diventa Socio */
.bmwz-diventa-socio-form .gform_wrapper {
  margin: 0;
  padding: 0;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_fields {
  grid-row-gap: 1.5rem;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield {
  margin-bottom: 0;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_label {
  display: none;
}

/* Grid per campi inline (5 colonne) */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_fields {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1.5rem;
}

/* Campi full width */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield--width-full {
  grid-column: 1 / -1;
}

/* Input fields */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input[type="text"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input[type="email"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input[type="tel"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input[type="url"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input[type="number"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme select,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme textarea {
  width: 100%;
  padding: 0.875rem 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--bmwz-text);
  background: transparent;
  transition: border-color 0.2s ease;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input::placeholder,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme textarea::placeholder {
  color: var(--bmwz-muted);
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input:focus,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme select:focus,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme textarea:focus {
  outline: none;
  border-bottom-color: var(--bmwz-primary);
}

/* Select dropdown */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
  cursor: pointer;
}

/* File upload */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield--type-fileupload {
  grid-column: 1 / -1;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield--type-fileupload .ginput_container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield--type-fileupload input[type="file"] {
  border: none;
  padding: 0;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_description {
  font-size: 0.8125rem;
  color: var(--bmwz-muted);
  margin-top: 0.5rem;
}

/* Sezione Prima Zeta */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gsection {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding: 0;
  border: none;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gsection_title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bmwz-text);
}

/* HTML field per note */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield--type-html {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--bmwz-muted);
  line-height: 1.6;
}

/* Checkbox e Consent */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_checkbox,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_consent {
  grid-column: 1 / -1;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gchoice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_checkbox input[type="checkbox"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_consent input[type="checkbox"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--bmwz-primary);
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_checkbox label,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_consent_label {
  font-size: 0.875rem;
  color: var(--bmwz-muted);
  line-height: 1.5;
  cursor: pointer;
}

/* Bottone submit */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_footer,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_page_footer {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 0;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input[type="submit"],
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: var(--bmwz-primary);
  color: #fff;
  box-shadow: 0 15px 35px rgba(45, 91, 218, 0.25);
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme input[type="submit"]:hover,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(45, 91, 218, 0.25);
}

/* Messaggi validazione */
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_error input,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_error textarea,
.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gfield_error select {
  border-bottom-color: #dc2626;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .validation_message {
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.5rem;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_validation_errors {
  grid-column: 1 / -1;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--bmwz-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_submission_error {
  color: #dc2626;
  font-weight: 600;
}

/* Messaggio conferma */
.bmwz-diventa-socio-form .gform_confirmation_message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--bmwz-radius);
  padding: 2rem;
  text-align: center;
  color: #166534;
  font-weight: 500;
}

/* Responsive Diventa Socio */
@media (max-width: 1100px) {
  .bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_fields {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .bmwz-diventa-socio-hero {
    min-height: 400px;
  }

  .bmwz-diventa-socio-hero .bmwz-hero__content h1 {
    font-size: 2rem;
  }

  .bmwz-diventa-socio-content {
    padding: 3rem 0;
  }

  .bmwz-diventa-socio-divider--top {
    margin-bottom: 2rem;
  }

  .bmwz-diventa-socio-divider--bottom {
    margin-top: 2rem;
  }

  .bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bmwz-diventa-socio-hero {
    min-height: 350px;
    padding: 3rem 0;
  }

  .bmwz-diventa-socio-hero .bmwz-hero__content h1 {
    font-size: 1.75rem;
  }

  .bmwz-diventa-socio-hero .bmwz-hero__content p {
    font-size: 1rem;
  }

  .bmwz-diventa-socio-content {
    padding: 2rem 0;
  }

  .bmwz-diventa-socio-form-section {
    padding-bottom: 3rem;
  }

  .bmwz-diventa-socio-form .gform_wrapper.gravity-theme .gform_fields {
    grid-template-columns: 1fr;
  }
}

/* Tablet fixes */
@media (max-width: 1300px) {
  /* Margini laterali per tutto il contenuto su tablet */
  .bmwz-default-loop {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
