/* ============================================================
   PROPOSTA 1 – ISTITUZIONALE / AUTOREVOLE
   Design Tokens e Override Bootstrap Italia 2.x
   vigilanzasport.it
   ============================================================ */

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Palette istituzionale */
  --vs-primary:         #003e7e;   /* Blu Savoia */
  --vs-primary-dark:    #002a56;
  --vs-primary-light:   #1a5499;
  --vs-secondary:       #5c6f82;   /* Grigio-blu istituzionale */
  --vs-accent:          #cf222e;   /* Rosso istituzionale (sottolineature/accenti) */
  --vs-surface:         #f8f9fa;
  --vs-surface-alt:     #eef0f2;
  --vs-text:            #1a1a1a;
  --vs-text-muted:      #5c6f82;
  --vs-border:          #d0d9e2;
  --vs-white:           #ffffff;
  --vs-gold:            #b8943f;   /* Oro istituzionale per badge/dettagli */

  /* Tipografia */
  --vs-font-family:     'Titillium Web', sans-serif;
  --vs-font-size-base:  1rem;
  --vs-font-size-xs:    0.75rem;
  --vs-font-size-sm:    0.875rem;
  --vs-font-size-md:    1rem;
  --vs-font-size-lg:    1.25rem;
  --vs-font-size-xl:    1.5rem;
  --vs-font-size-xxl:   2rem;
  --vs-line-height:     1.6;

  /* Spaziature */
  --vs-space-xs:   0.25rem;
  --vs-space-sm:   0.5rem;
  --vs-space-md:   1rem;
  --vs-space-lg:   1.5rem;
  --vs-space-xl:   2.5rem;
  --vs-space-xxl:  4rem;

  /* Border radius – forme squadrate per mood istituzionale */
  --vs-radius:     0px;
  --vs-radius-sm:  2px;

  /* Ombreggiature sottili */
  --vs-shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --vs-shadow-md:  0 2px 8px rgba(0,0,0,0.10);

  /* Transizioni */
  --vs-transition: 0.2s ease;

  /* Override Bootstrap Italia */
  --bs-primary:            #003e7e;
  --bs-primary-rgb:        0,62,126;
  --bs-body-font-family:   'Titillium Web', sans-serif;
  --bs-border-radius:      0;
  --bs-border-radius-sm:   2px;
  --bs-border-radius-lg:   2px;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--vs-font-family);
  font-size: var(--vs-font-size-base);
  line-height: var(--vs-line-height);
  color: var(--vs-text);
  background-color: var(--vs-white);
}

a {
  color: var(--vs-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--vs-transition);
}
a:hover { color: var(--vs-primary-dark); }

img { max-width: 100%; height: auto; }

/* ─── SKIP LINK (accessibilità) ─────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--vs-primary);
  color: var(--vs-white);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── SLIM HEADER (IT-header-slim) ─────────────────────── */
.it-header-slim-wrapper {
  background-color: var(--vs-primary-dark);
  color: var(--vs-white);
  padding: 0.2rem 0;
  font-size: 0.8125rem;
  height: auto !important;
  min-height: 0 !important;
}
.it-header-slim-wrapper a { color: rgba(255,255,255,0.85); text-decoration: none; }
.it-header-slim-wrapper a:hover { color: var(--vs-white); }
.slim-left { display: flex; align-items: center; gap: 1rem; }
.slim-right { display: flex; align-items: center; gap: 1rem; justify-content: flex-end; }
.it-header-slim-wrapper .btn-area-riservata {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}
.lang-selector { display: flex; gap: 0.25rem; }
.lang-selector a {
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: all var(--vs-transition);
}
.lang-selector a.active,
.lang-selector a:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--vs-white);
  border-color: rgba(255,255,255,0.6);
}

/* ─── MAIN HEADER ───────────────────────────────────────── */
.it-header-wrapper {
  background-color: var(--vs-primary);

  box-shadow: var(--vs-shadow-sm);
  position: relative;
  z-index: 1000;
}

/* ─── STICKY HEADER STATES (SCROLL) ──────────────────────── */
.it-header-wrapper.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: headerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Super slim state logo modifications */
.it-header-wrapper.is-sticky .it-header-center-wrapper {
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--vs-primary-dark);
  transition: all 0.2s ease;
}

.it-header-wrapper.is-sticky .it-header-center-wrapper .container {
  width: 100%;
}

.it-header-wrapper.is-sticky .header-logo {
  padding-left: var(--vs-space-md);
  transition: padding-left 0.2s ease;
}

.it-header-wrapper.is-sticky .header-logo-emblem {
  width: 32px;
  height: 32px;
  transition: all 0.2s ease;
}

.it-header-wrapper.is-sticky .header-logo-emblem img {
  width: auto !important;
  height: 32px !important;
  transition: all 0.2s ease;
}

.it-header-wrapper.is-sticky .header-logo-text {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.it-header-wrapper.is-sticky .header-logo-text .logo-text {
  font-size: 0.8rem;}
.it-header-wrapper.is-sticky .header-logo-text .logo-text {
  font-size: 0.8rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.it-header-wrapper.is-sticky .header-logo-text .logo-sottotitolo {
  font-size: 1.05rem;
  line-height: 1;
  transition: all 0.2s ease;
}

/* Hide separator and fullname in sticky mode */
.it-header-wrapper.is-sticky .header-logo-separator,
.it-header-wrapper.is-sticky .header-logo-fullname {
  display: none !important;
}

.it-header-wrapper.is-sticky .btn-search-icon {
  padding: 0.25rem;
  transition: all 0.2s ease;
}

/* Nav menu wrapper when sticky (hidden by default) */
.it-header-wrapper.is-sticky .it-nav-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Nav menu wrapper when sticky and showing menu (scroll up) */
.it-header-wrapper.is-sticky.show-menu .it-nav-wrapper {
  max-height: 60px;
  opacity: 1;
  pointer-events: auto;
}

.it-header-wrapper.is-sticky .it-nav-wrapper .nav-link {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.it-header-center-wrapper {
  background-color: var(--vs-primary);
  background: linear-gradient(135deg, #00152d 0%, var(--vs-primary) 50%, var(--vs-primary-light) 100%);
  padding: 0.75rem 0;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.header-logo-emblem {
  width: 56px;
  height: 60px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-logo-emblem img {
  /* Logo rimane bianco originale */
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  max-width: 550px;
  color: var(--vs-white);
 }


.header-logo-text .logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}
@media (max-width: 992px) {
  .header-logo-text .logo-text {
     font-size: 1rem;
  }
}
@media (max-width: 450px) {
  .header-logo-text .logo-text {
     font-size: 0.8rem;
  }
}
.header-logo-text .logo-sottotitolo {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}
/* Separatore verticale bianco + denominazione estesa */
.header-logo-separator {
  display: none;
  width: 1px;
  align-self: stretch;
  background-color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin: 0 0.25rem;
}
.header-logo-fullname {
  display: none;
  color: var(--vs-white);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 340px;
}
@media (min-width: 768px) {
  .header-logo-separator {
    display: block;
  }
  .header-logo-fullname {
    display: block;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}
.btn-search-icon {
  background: none;
  border: none;
  color: var(--vs-white);
  padding: 0.5rem;
  cursor: pointer;
  transition: color var(--vs-transition);
  display: flex;
  align-items: center;
}
.btn-search-icon:hover { color: var(--vs-gold); }
.btn-area-riservata {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--vs-font-family);
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--vs-transition);
}
.btn-area-riservata:hover {
  background-color: transparent;
  color: var(--vs-white);
  text-decoration: underline;
}
.btn-area-riservata svg {
  transition: transform var(--vs-transition);
}
.btn-area-riservata:hover svg {
  transform: scale(1.1);
}

.it-nav-wrapper { background-color: var(--vs-primary); }
.it-nav-wrapper .navbar { padding: 0; }
.it-nav-wrapper .nav { justify-content: center; }
.it-nav-wrapper .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 2.25rem !important;
  border-bottom: 3px solid transparent;
  transition: all var(--vs-transition);
}
.it-nav-wrapper .nav-link:hover,
.it-nav-wrapper .nav-link.active {
  color: var(--vs-white) !important;
  border-bottom-color: var(--vs-gold);
  background-color: rgba(255,255,255,0.08);
}

/* ─── SEARCH OVERLAY ────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,30,60,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }
.search-overlay-inner { width: 100%; max-width: 700px; padding: 2rem; }
.search-overlay-inner h2 { color: var(--vs-white); margin-bottom: 1.5rem; }
.search-input-group { display: flex; gap: 0; }
.search-input-group input {
  flex: 1;
  border: none;
  border-bottom: 2px solid var(--vs-white);
  background: transparent;
  color: var(--vs-white);
  font-size: 1.5rem;
  font-family: var(--vs-font-family);
  padding: 0.5rem 0;
  outline: none;
}
.search-input-group input::placeholder { color: rgba(255,255,255,0.5); }
.search-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--vs-white);
  font-size: 2rem;
  cursor: pointer;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero-section {
  background-color: #f4f6f9;
  background-image: linear-gradient(180deg, #f8f9fa 0%, #e9edf2 100%);
  color: var(--vs-text);
  padding: var(--vs-space-xxl) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--vs-border);

}
.hero-section::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(0, 62, 126, 0.05);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 62, 126, 0.08);
  border-radius: 50%;
}
.hero-badge {
  display: inline-block;
  background-color: var(--vs-gold);
  color: var(--vs-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #0b1e36;
}
.hero-title span { color: var(--vs-primary); }
.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4b5a6c;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background-color: var(--vs-primary);
  color: var(--vs-white);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--vs-primary);
  transition: all var(--vs-transition);
}
.hero-cta:hover {
  background-color: transparent;
  color: var(--vs-primary);
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: var(--vs-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid rgba(0, 62, 126, 0.3);
  margin-left: 1rem;
  transition: all var(--vs-transition);
}
.hero-cta-secondary:hover {
  border-color: var(--vs-primary);
  color: var(--vs-primary);
  background: rgba(0, 62, 126, 0.05);
}
.hero-stats {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
}
.hero-stats > div {
  position: relative;
}
.hero-stats > div:not(:first-child) {
  padding-left: 2rem;
}
.hero-stats > div:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(0, 62, 126, 0.15);
}
.hero-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--vs-primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: #6c7e93;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ─── HERO FEATURED NEWS (LEFT COLUMN INLINE) ───────────── */
.hero-featured-news-inline {
  position: relative;
  z-index: 10;
}
.featured-news-inline-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  box-shadow: var(--vs-shadow-sm);
  border: 1px solid var(--vs-border);
}
@media (min-width: 768px) {
  .featured-news-inline-img {
    height: 347px; /* Match height of right box */
  }
}
.featured-news-badge {
  display: inline-block;
  background-color: var(--vs-gold);
  color: var(--vs-white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
}
.featured-news-date {
  font-size: 0.75rem;
  color: var(--vs-text-muted);
  font-weight: 600;
}
.featured-news-main-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0b1e36;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.featured-news-subtitle {
  font-size: 0.9375rem;
  color: #4b5a6c;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.hero-cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--vs-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--vs-gold);
  padding-bottom: 2px;
  transition: gap var(--vs-transition), color var(--vs-transition);
}
.hero-cta-inline:hover {
  color: var(--vs-primary-light);
  gap: 0.6rem;
}

/* ─── HERO NEWS WIDGET ───────────────────────────────────── */
.hero-news-widget {
  background-color: var(--vs-white);
  border: 1px solid var(--vs-border);
  box-shadow: var(--vs-shadow-md);
  padding: var(--vs-space-md) var(--vs-space-lg)  ;
  position: relative;
  z-index: 10;
}
.carousel-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vs-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--vs-border);
  padding-bottom: 0.5rem;
}

/*
 * Swiper imposta display:flex + white-space:nowrap sul .swiper-wrapper.
 * Ogni .swiper-slide è un flex-child con larghezza fissa impostata inline da Swiper.
 * Il contenuto DENTRO la slide deve andare a capo normalmente.
 * La chiave: ogni slide deve avere white-space:normal e il suo contenuto
 * deve essere limitato alla larghezza della slide stessa.
 */
.hero-news-widget .swiper-slide {
  white-space: normal;
}
.carousel-news-item {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0 2rem 0;
}
.carousel-news-img-col {
  width: 70px;
  flex: 0 0 70px;
}
.carousel-news-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid var(--vs-border);
  display: block;
}
.carousel-news-text-col {
  flex: 1;
  min-width: 0;
}
.carousel-news-cat {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.15rem;
}
.carousel-news-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.15rem 0;
}
.carousel-news-title a {
  color: #0b1e36;
  text-decoration: none;
  transition: color var(--vs-transition);
}
.carousel-news-title a:hover {
  color: var(--vs-primary);
}
.carousel-news-excerpt {
  font-size: 0.78rem;
  color: var(--vs-text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}
.carousel-news-item time {
  font-size: 0.7rem;
  color: #8898a9;
  display: block;
}

/* Custom Swiper pagination styling for hero widget */
.hero-news-pagination.swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: auto;
  display: flex;
  gap: 0.25rem;
}
.hero-news-pagination .swiper-pagination-bullet {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--vs-border);
  opacity: 1;
  transition: all var(--vs-transition);
  border: none;
}
.hero-news-pagination .swiper-pagination-bullet-active {
  background: var(--vs-primary);
  width: 24px;
}

/* ─── SEZIONI ────────────────────────────────────────────── */
section { }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vs-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--vs-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-title-underline {
  width: 48px;
  height: 3px;
  background-color: var(--vs-gold);
  margin-bottom: 2rem;
}

/* ─── NEWS CAROUSEL ─────────────────────────────────────── */
.news-section { background-color: var(--vs-white); }
.news-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.news-swiper { padding-bottom: 3rem !important; }
.news-card {
  background: var(--vs-white);
  border: 1px solid var(--vs-border);
  box-shadow: var(--vs-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--vs-transition), transform var(--vs-transition);
}
.news-card:hover {
  box-shadow: var(--vs-shadow-md);
  transform: translateY(-2px);
}
.news-card-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--vs-white);
}

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background-color: var(--vs-surface-alt);
}
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card-date {
  font-size: 0.8125rem;
  color: var(--vs-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vs-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}
.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--vs-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--vs-primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--vs-transition);
}
.news-card-link:hover { gap: 0.6rem; color: var(--vs-primary-dark); }
.swiper-pagination-bullet-active { background: var(--vs-primary) !important; }
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 1.25rem !important; color: var(--vs-primary) !important; }

/* ─── BANNER TRIPLO ─────────────────────────────────────── */
.banner-section { 
  background-color: var(--vs-surface);
  padding:var(--vs-space-xxl) 0; }
.banner-card {
  background: var(--vs-white);
  border: 1px solid var(--vs-border);
  border-top: 4px solid var(--vs-primary);
  padding: 2rem;
  height: 100%;
  transition: box-shadow var(--vs-transition);
  display: flex;
  flex-direction: column;
}
.banner-card:hover { box-shadow: var(--vs-shadow-md); }

/* Allineamento orizzontale icona e titolo */
.banner-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.banner-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vs-primary);
  flex-shrink: 0;
  margin-bottom: 0;
}
.banner-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vs-primary);
  margin-bottom: 0;
}

/* Diversificazione del banner Norme - SFONDO SCURO */
.banner-card-norme {
  border-top-color: var(--vs-gold) !important;
  background-color: var(--vs-primary-dark) !important; /* blu scuro istituzionale */
  color: var(--vs-white) !important;
}
.banner-card-norme .banner-card-title {
  color: var(--vs-white) !important;
}
.banner-card-norme .banner-icon {
  color: var(--vs-gold) !important;
}
.banner-card-norme .banner-icon svg {
  fill: var(--vs-gold) !important;
}
.banner-card-norme .text-body {
  color: rgba(255, 255, 255, 0.7) !important; /* "Comunicati ufficiali" */
}
.banner-card-norme .doc-list-item {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.banner-card-norme .doc-list-item svg {
  fill: var(--vs-gold) !important;
  color: var(--vs-gold) !important;
}
.banner-card-norme .doc-item-title {
  color: var(--vs-white) !important;
}
.banner-card-norme .doc-item-title:hover {
  color: var(--vs-gold) !important;
}
.banner-card-norme .doc-item-meta {
  color: rgba(255, 255, 255, 0.5) !important;
}
.banner-card-norme .banner-link {
  color: var(--vs-white) !important;
  border-bottom-color: var(--vs-gold) !important;
}
.banner-card-norme .banner-link:hover {
  color: var(--vs-gold) !important;
  border-bottom-color: var(--vs-gold) !important;
}

/* Slider Norme in Home Page - Tab & Layout styling */
.norme-slider-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.norme-slider-tabs::-webkit-scrollbar {
  display: none; /* Safari/Chrome/Opera */
}
.norme-tab-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all var(--vs-transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.norme-tab-btn:hover {
  color: var(--vs-white);
}
.norme-tab-btn.active {
  color: var(--vs-gold) !important;
}
.norme-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.55rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--vs-gold);
}
.swiper-container-wrapper-norme {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.container-wrapper-inner-norme {
  width: 100%;
  height: auto;
}

.banner-card-text {
  font-size: 0.9375rem;
  color: var(--vs-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--vs-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--vs-gold);
  padding-bottom: 2px;
  transition: gap var(--vs-transition);
  margin-top: auto; /* Allinea in basso la CTA */
}
.banner-link:hover { gap: 0.6rem; }
/* Banner norme - lista documenti */
.doc-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.doc-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--vs-border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.doc-list-item:last-child { border-bottom: none; }
.doc-icon {
  width: 32px;
  height: 32px;
  background-color: var(--vs-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--vs-secondary);
}
.doc-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vs-text);
  line-height: 1.4;
  display: block;
}
.doc-item-meta {
  font-size: 0.75rem;
  color: var(--vs-text-muted);
  margin-top: 0.15rem;
}

/* ─── SECTION STRIP (Reusable Component) ─────────────────── */
.section-strip {
  background-color: var(--vs-primary-dark);
  padding: 3rem 0 !important;
}
.strip-title {
  font-size: var(--vs-font-size-lg);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: var(--vs-space-md) !important;
  text-align: center;
  margin: 0 !important;
}
.strip-subtitle {
  display: block;
  font-size: var(--vs-font-size-md);
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: var(--vs-space-xl) !important;
  text-align: center !important;
  line-height: 1.6;
}
.strip-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  row-gap: var(--vs-space-lg) !important;
  column-gap: var(--vs-space-xl) !important;
  flex-wrap: wrap;
}
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--vs-space-sm) !important;
  text-decoration: none;
  transition: opacity var(--vs-transition);
  opacity: 0.7;
}
.logo-item:hover { opacity: 1; }
.logo-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: calc(var(--vs-font-size-base) * 0.75);
  color: var(--vs-white);
  letter-spacing: 0.03em;
  border: 2px solid rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.2;
  padding: 4px;
}
.logo-badge--img {
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 8px;
}
.logo-badge--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-name {
  font-size: calc(var(--vs-font-size-base) * 0.6875);
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background-color: var(--vs-primary);
  color: rgba(255,255,255,0.85);
  padding: 0 0 3.5rem 0;
}
.footer-logo-area { margin-bottom: 1.5rem;     margin-top: 2rem;}
.footer-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vs-white);
  margin-bottom: 0.25rem;
}
.footer-logo-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 320px;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-links { list-style: none; padding: 0; margin: 0;          line-height: 1.25rem;}
.footer-links li { margin-bottom: 1.2rem; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--vs-transition);
}
.footer-links a:hover { color: var(--vs-white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom-text { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--vs-transition);
}
.footer-legal-links a:hover { color: var(--vs-white); }

/* ─── GOVERNANCE PAGE ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0056b3 0%, #007bf7 100%);
  color: var(--vs-white);
  padding: 3.5rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; color: var(--vs-white); }
.page-hero-subtitle { font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
.breadcrumb-section { background-color: var(--vs-surface); padding: 0.75rem 0; border-bottom: 1px solid var(--vs-border); }
.breadcrumb-section ol { margin: 0; }
.breadcrumb-item a { color: var(--vs-primary); text-decoration: none; font-size: 0.875rem; }
.breadcrumb-item.active { color: var(--vs-text-muted); font-size: 0.875rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; color: var(--vs-text-muted); }

.presidente-card {
  background: linear-gradient(135deg, var(--vs-primary) 0%, var(--vs-primary-light) 100%);
  color: var(--vs-white);
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.presidente-avatar {
  width: 140px;
  height: 140px;
  background-color: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--vs-white);
}
.presidente-ruolo {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vs-gold);
  margin-bottom: 0.5rem;
}
.presidente-nome {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.presidente-bio {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
/* ─── FUNZIONI DELLA COMMISSIONE (GRID) ────────────────── */
.funzione-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
}
.funzione-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}
.funzione-content {
  flex: 1;
}
.funzione-title {
  font-size: var(--vs-font-size-lg);
  font-weight: 600;
  color: #0b1e36;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.funzione-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--vs-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.funzione-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0066cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--vs-transition);
}
.funzione-link svg {
  transition: transform var(--vs-transition);
}
.funzione-link:hover {
  color: var(--vs-primary);
}
.funzione-link:hover svg {
  transform: translateX(3px);
}

.membro-card {
  background: var(--vs-white);
  border: 1px solid var(--vs-border);
  border-left: 4px solid var(--vs-primary);
  padding: 1.5rem;
  height: 100%;
}
.membro-avatar {
  width: 72px;
  height: 72px;
  background-color: var(--vs-surface-alt);
  border: 2px solid var(--vs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vs-primary);
  margin-bottom: 1rem;
}
.membro-ruolo {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vs-secondary);
  margin-bottom: 0.25rem;
}
.membro-nome { font-size: 1.0625rem; font-weight: 700; color: var(--vs-primary); margin-bottom: 0.5rem; }
.membro-desc { font-size: 0.875rem; color: var(--vs-text-muted); line-height: 1.5; }

/* ─── NORME PAGE ─────────────────────────────────────────── */
.search-widget {
  background: #f4f6f8; /* Grigetto di base */
  border: 1px solid var(--vs-border);
  border-top: 4px solid var(--vs-primary);
  padding: 2rem;
  margin-bottom: 2.5rem;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
  position: relative;
  z-index: 100;
}
.search-widget.collapsible-widget {
  padding: 1.5rem 2rem;
}
.search-widget.collapsible-widget:has(.search-widget-toggle[aria-expanded="false"]) {
  padding: 0.65rem 2rem;
  background-color: #eef0f2; /* Grigetto leggermente più scuro quando chiuso */
}
.search-widget-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  cursor: pointer;
}
.search-widget-toggle:focus {
  outline: none;
}
.search-widget-toggle .search-widget-title {
  margin-bottom: 0;
}
.search-widget-toggle .chevron-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--vs-primary);
}
.search-widget-toggle[aria-expanded="false"] .chevron-icon {
  transform: rotate(-90deg);
}
.search-widget-body {
  max-height: 1000px;
  opacity: 1;
  overflow: visible;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 1.5rem;
}
.search-widget-body.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  pointer-events: none;
}
.search-widget-title { font-size: 1.125rem; font-weight: 700; color: var(--vs-primary); margin-bottom: 1.5rem; }
.search-widget .form-label { font-size: 0.8125rem; font-weight: 700; color: var(--vs-text); text-transform: uppercase; letter-spacing: 0.05em; }
.search-widget .form-control,
.search-widget .form-select {
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-sm);
  font-family: var(--vs-font-family);
  font-size: 0.9375rem;
  padding: 0.6rem 0.85rem;
  color: var(--vs-text);
}
.search-widget .form-control:focus,
.search-widget .form-select:focus {
  border-color: var(--vs-primary);
  box-shadow: 0 0 0 3px rgba(0,62,126,0.15);
  outline: none;
}
.btn-search-primary {
  background-color: var(--vs-primary);
  color: var(--vs-white);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.65rem 2rem;
  border: none;
  cursor: pointer;
  font-family: var(--vs-font-family);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color var(--vs-transition);
}
.btn-search-primary:hover { background-color: var(--vs-primary-dark); }
.btn-reset {
  background: transparent;
  border: 1px solid var(--vs-border);
  color: var(--vs-text-muted);
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  font-family: var(--vs-font-family);
  transition: all var(--vs-transition);
}
.btn-reset:hover { border-color: var(--vs-secondary); color: var(--vs-text); }

.norme-table { width: 100%; border-collapse: collapse; }
.norme-table th {
  background-color: var(--vs-primary);
  color: var(--vs-white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.norme-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--vs-border);
  font-size: 0.9rem;
  vertical-align: middle;
}
.norme-table tr:last-child td { border-bottom: none; }
.norme-table tbody tr:nth-child(odd) td {
  background-color: var(--vs-white);
}
.norme-table tbody tr:nth-child(even) td {
  background-color: #f8f9fa; /* Grigio chiaro alternato */
}
.norme-table tbody tr:hover td {
  background-color: var(--vs-surface-alt) !important;
}
.norme-table .tipologia-badge {
  display: inline-block;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none !important;
}
.badge-regolamento  { color: var(--vs-primary) !important; }
.badge-dlgs         { color: var(--vs-accent) !important; }
.badge-parere       { color: var(--vs-gold) !important; }
.badge-delibera     { color: var(--vs-secondary) !important; }
.badge-circolare    { color: var(--vs-gold) !important; }
.badge-comunicato   { color: var(--vs-accent) !important; }

.btn-download-doc {
  color: var(--vs-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--vs-transition), transform var(--vs-transition);
}
.btn-download-doc:hover {
  color: var(--vs-accent) !important;
  transform: translateY(-1px);
}

.pagination-wrapper { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin-top: 2rem; }
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vs-border);
  background: var(--vs-white);
  color: var(--vs-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--vs-font-family);
  text-decoration: none;
  transition: all var(--vs-transition);
}
.page-btn:hover, .page-btn.active {
  background-color: var(--vs-primary);
  color: var(--vs-white);
  border-color: var(--vs-primary);
}

/* ─── SIDEBAR STYLE ──────────────────────────────────────── */
.sidebar-wrapper {
  position: sticky;
  top: 100px;
  padding: 5px 0;
}
.sidebar-title {
  font-size: var(--vs-font-size-lg);
  font-weight: 700;
  color: var(--vs-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vs-border);
  position: relative;
  font-family: var(--vs-font-family);
  display: block;
}
.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--vs-gold);
}
.sidebar-news-title-link {
  color: var(--vs-primary-dark);
  text-decoration: none !important;
  transition: color var(--vs-transition);
}
.sidebar-news-title-link:hover {
  color: var(--vs-gold) !important;
}
.sidebar-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links-list li {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 62, 126, 0.08);
}
.sidebar-links-list li:last-child {
  border-bottom: none;
}
.sidebar-links-list a {
  display: block;
  padding: 0.85rem 0;
  color: var(--vs-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--vs-font-size-sm);
  line-height: 1.4;
  position: relative;
  padding-left: 1.25rem;
  transition: all var(--vs-transition);
}
.sidebar-links-list a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--vs-gold);
  transition: transform var(--vs-transition);
}
.sidebar-links-list a:hover {
  color: var(--vs-primary-dark);
  padding-left: 1.5rem;
}
.sidebar-links-list a:hover::before {
  transform: translateY(-50%) translateX(3px);
}
.sidebar-news-card {
  background: var(--vs-white);
  border: 1px solid var(--vs-border);
  display: flex;
  flex-direction: column;
  transition: all var(--vs-transition);
  position: relative;
}
.sidebar-news-card:hover {
  box-shadow: var(--vs-shadow-md);
  border-color: rgba(0, 62, 126, 0.2);
  transform: translateY(-2px);
}
.news-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 135px;
  overflow: hidden;
  background-color: #000;
}
.news-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.sidebar-news-card:hover .news-card-img-wrapper img {
  transform: scale(1.06);
  opacity: 1;
}
.photo-icon-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vs-primary-dark);
  box-shadow: var(--vs-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background var(--vs-transition), color var(--vs-transition);
}
.sidebar-news-card:hover .photo-icon-overlay {
  background: var(--vs-primary);
  color: var(--vs-white);
}
.news-card-body-custom {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.news-card-meta-custom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0rem;
}
.news-card-tag-custom {
  font-size: var(--vs-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vs-gold);
}
.news-card-date {
  font-size: var(--vs-font-size-xs);
  color: var(--vs-text-muted);
  font-weight: 600;
  display: block;
}
.news-card-title-custom {
  font-size: var(--vs-font-size-sm);
  font-weight: 700;
  line-height: 1.4;
  color: #0b1e36;
  margin: 0.25rem 0 0.5rem 0;
  transition: color var(--vs-transition);
  text-transform: none !important;
}
.news-card-title-custom a {
  color: inherit;
  text-decoration: none !important;
  text-transform: none !important;
}

.sidebar-wrapper h3, .sidebar-wrapper .h3 {
    font-weight: 600;
    margin: 0px;
    font-size: var(--vs-font-size-sm);
    text-transform: none;
    padding: 0;
}
.sidebar-news-card:hover .news-card-title-custom {
  color: var(--vs-primary);

}
.news-card-cta {
  font-size: var(--vs-font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vs-primary);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: color var(--vs-transition);
}
.news-card-cta svg {
  transition: transform var(--vs-transition);
}
.sidebar-news-card:hover .news-card-cta {
  color: var(--vs-gold);
}
.sidebar-news-card:hover .news-card-cta svg {
  transform: translateX(4px);
}

/* ─── MEMBERS CARDS (GOVERNANCE MODERN) ──────────────────── */
.membro-card-modern {
  background-color: var(--vs-white);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-sm);
  padding: 1.25rem;
  box-shadow: var(--vs-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--vs-transition);
}
.membro-card-modern:hover {
  box-shadow: var(--vs-shadow-md);
  border-color: rgba(0, 62, 126, 0.2);
  transform: translateY(-2px);
}
.membro-card-modern-presidente {
  background-color: rgba(0, 62, 126, 0.03);
  border-color: rgba(0, 62, 126, 0.15);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.membro-card-modern-presidente:hover {
  background-color: rgba(0, 62, 126, 0.05);
  border-color: rgba(0, 62, 126, 0.25);
}
.membro-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 62, 126, 0.06);
}
.membro-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.membro-role-badge {
  font-size: var(--vs-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vs-text-muted);
}
.membro-card-modern-presidente .membro-role-badge {
  color: var(--vs-gold);
}
.membro-info-block {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.membro-card-modern-presidente .membro-info-block {
  background-color: rgba(0, 62, 126, 0.05);
  padding: 1rem;
  border-radius: var(--vs-radius-sm);
}
.membro-name {
  font-size: var(--vs-font-size-lg);
  font-weight: 700;
  color: var(--vs-primary-dark);
  margin: 0 0 0.4rem 0;
}
.membro-name-sm {
  font-size: var(--vs-font-size-lg);
  font-weight: 700;
  color: var(--vs-primary-dark);
  margin: 0 0 0.25rem 0;
}
.membro-info {
  font-size: var(--vs-font-size-xs);
  color: var(--vs-gold);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.membro-cv {
  font-size: var(--vs-font-size-xs);
  color: var(--vs-text-muted);
  line-height: 1.5;
  margin: 0;
}
.membro-photo-wrapper {
  width: 110px;
  height: 145px;
  border-radius: var(--vs-radius-sm);
  overflow: hidden;
  border: 1px solid var(--vs-border);
  background-color: var(--vs-surface-alt);
  margin-left: auto;
}
.membro-card-modern-presidente .membro-photo-wrapper {
  width: 100%;
  height: 100%;
  min-height: 180px;
}
.membro-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 767.98px) {
  .membro-card-modern-presidente .membro-photo-wrapper {
    margin: 1rem 0 0 0;
    height: 220px;
  }
}
.membro-link-scheda {
  font-size: var(--vs-font-size-xs);
  color: var(--vs-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  transition: color var(--vs-transition);
}
.membro-link-scheda:hover {
  color: var(--vs-gold);
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.text-primary-vs  { color: var(--vs-primary) !important; }
.bg-primary-vs    { background-color: var(--vs-primary) !important; }
.fw-700           { font-weight: 700; }
.visually-hidden  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mb-section       { margin-bottom: var(--vs-space-xxl); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
/* Mobile Navigation Toggle Button */
.btn-menu-icon {
  display: none;
  background: none;
  border: none;
  color: var(--vs-white);
  padding: var(--vs-space-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color var(--vs-transition);
}
.btn-menu-icon:hover {
  color: var(--vs-gold);
}

/* Mobile Drawer Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 45, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2500;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--vs-transition);
}
.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  width: 100%;
  max-width: 320px;
  height: 100%;
  background-color: var(--vs-primary-dark);
  color: var(--vs-white);
  padding: var(--vs-space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-overlay.active .mobile-menu-inner {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--vs-space-xl);
}
.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: var(--vs-space-sm);
  font-size: var(--vs-font-size-lg);
  font-weight: 700;
  color: var(--vs-white);
}
.mobile-menu-logo .logo-sottotitolo {
  
}

.btn-close-menu {
  background: none;
  border: none;
  color: var(--vs-white);
  cursor: pointer;
  padding: var(--vs-space-xs);
  display: flex;
  align-items: center;
  transition: color var(--vs-transition);
}
.btn-close-menu:hover {
  color: var(--vs-gold);
}

.mobile-menu-nav {
  margin-bottom: var(--vs-space-lg);
}
.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--vs-space-md);
}
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: calc(var(--vs-font-size-base) * 1.125);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--vs-space-sm) 0;
  display: block;
  border-bottom: 2px solid transparent;
  width: fit-content;
  transition: all var(--vs-transition);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--vs-white);
  border-bottom-color: var(--vs-gold);
}

.mobile-menu-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: var(--vs-space-md) 0 var(--vs-space-lg) 0;
}

.mobile-menu-extra {
  display: flex;
  flex-direction: column;
  gap: var(--vs-space-lg);
}

.btn-area-riservata-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vs-space-sm);
  padding: calc(var(--bs-spacer) * 0.75) var(--vs-space-md);
  background-color: var(--vs-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--vs-white);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--vs-font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--vs-transition);
}
.btn-area-riservata-mobile:hover {
  background-color: var(--vs-primary-light);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-selector-mobile {
  display: flex;
  align-items: center;
  gap: var(--vs-space-sm);
  font-size: var(--vs-font-size-sm);
  color: rgba(255, 255, 255, 0.6);
}
.lang-selector-mobile a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: var(--vs-space-xs) var(--vs-space-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  transition: all var(--vs-transition);
}
.lang-selector-mobile a.active,
.lang-selector-mobile a:hover {
  color: var(--vs-white);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
  .it-nav-wrapper { display: none; }
  .navbar-toggler { display: flex; }
  .btn-menu-icon { display: flex; }
  .header-logo-text .nome { font-size: 0.95rem; }
  .presidente-card { flex-direction: column; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer-legal-links { flex-wrap: wrap; gap: 0.75rem; }
}
@media (max-width: 767.98px) {
  section { padding: 2.5rem 0; }
  .hero-section { padding: 2.5rem 0; }
  .hero-cta-secondary { margin-left: 0; margin-top: 0.75rem; display: block; width: fit-content; }
  .news-header { flex-direction: column; align-items: flex-start; }
  .federazioni-logos { gap: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 575.98px) {
  .presidente-card { padding: 1.5rem; }
  .search-widget { padding: 1.25rem; }
}

/* Tab bar per la pagina News (sfondo chiaro) */
.norme-tab-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--vs-border);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  margin-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}
.norme-tab-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.norme-tab-bar .norme-tab-btn {
  color: var(--vs-text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  background: none;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  transition: color var(--vs-transition);
}
.norme-tab-bar .norme-tab-btn:hover {
  color: var(--vs-primary);
}
.norme-tab-bar .norme-tab-btn.active {
  color: var(--vs-primary) !important;
}
.norme-tab-bar .norme-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--vs-gold);
}

/* Tag tipologia news (in overlay sulla foto) */
.news-card-type-tag.type-notizia    { color: var(--vs-primary) !important; }
.news-card-type-tag.type-comunicato { color: var(--vs-secondary) !important; }
.news-card-type-tag.type-intervista { color: var(--vs-gold) !important; }
.news-card-type-tag.type-galleria   { color: var(--vs-accent) !important; }

/* Container per la tipologia in overlay sulla foto */
.news-top-type-wrapper {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  pointer-events: none; /* Rende cliccabile l'immagine sottostante */
}
.news-top-type-wrapper .news-card-type-tag {
  font-size: 0.65rem !important;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tag categoria news (sotto il titolo, leggeri e piccoli) */
.news-tag-container {
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.news-card-category-tag {
  font-size: 0.65rem !important;
  font-weight: 500;
  color: #767676;
  background: #f5f5f5;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: none; /* Lettere normali (non maiuscole) */
  letter-spacing: normal;
  display: inline-block;
}

/* Adatta la dimensione del titolo per la griglia delle news principale */
#news-grid .news-card-title-custom {
  font-size: 1.05rem;
  margin:0;
}

/* ─── FOCUS VISIBILE (WCAG) ──────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--vs-gold);
  outline-offset: 2px;
}

/* Rimuove la freccia predefinita del dropdown-toggle di Bootstrap */
#dropdownMenuButton::after {
  display: none !important;
}

/* Forza la visualizzazione del dropdown Categoria manuale */
#dropdown-menu-categories.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1050 !important;
}

/* Checkbox personalizzate per bypassare gli pseudo-elementi invasivi di Bootstrap-Italia */
.custom-chk-container {
  display: flex !important;
  align-items: center !important;
  padding: 4px 6px !important;
  margin-bottom: 0.25rem !important;
  cursor: pointer;
  width: 100%;
  border-radius: var(--vs-radius-sm);
  transition: background-color 0.2s ease;
}

.custom-chk-container:hover {
  background-color: #eef0f2;
}

.custom-chk-container input[type="checkbox"] {
  cursor: pointer;
  margin: 0 !important;
  position: static !important;
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
  opacity: 1 !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  accent-color: var(--vs-primary) !important;
}

.custom-chk-text {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--vs-text) !important;
  padding-left: 0.5rem !important;
  margin: 0 !important;
  position: static !important;
  line-height: 1.2 !important;
  cursor: pointer;
}

/* Impedisce al testo selezionato nel dropdown delle categorie di strabordare */
#dropdownMenuButton {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#selected-categories-text {
  display: inline-block !important;
  max-width: 90% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
