/* Shared visual system. Institutional colours originate in style.css. */
:root {
  --primary-color: #e10600;
  --secondary-color: #ffd700;
  --sb-red-hover: #b80500;
  --sb-ink: #262626;
  --sb-muted: #626262;
  --sb-paper: #fff;
  --sb-surface: #f8f9fa;
  --sb-line: #e2e4e6;
  --sb-display: Georgia, "Times New Roman", serif;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sb-radius: 8px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body[class*="page-"] {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--sb-ink);
  background: var(--sb-paper);
  font-size: 16px;
  line-height: 1.65;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body .container {
  width: min(1240px, 100%);
  max-width: 1240px;
  padding-inline: 40px;
  margin-inline: auto;
}
img {
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--primary-color);
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sb-ink) !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px white;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 20000;
  padding: 12px 20px;
  background: white;
  color: var(--sb-ink);
}
.skip-link:focus {
  top: 12px;
}
body .site-header {
  position: sticky;
  top: -34px;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid var(--sb-line);
}
.site-ribbon {
  height: 34px;
  background: var(--primary-color);
  color: white;
  font-size: 11px;
  letter-spacing: 0.045em;
}
.site-ribbon .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.site-ribbon a {
  color: white;
  text-decoration: none;
}
body .site-header .navbar {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 88px;
  padding: 0;
  box-shadow: none;
  background: white;
  border: 0;
}
body .navbar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
body .navbar .nav-brand-link {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sb-ink);
}
body .navbar .logo {
  height: 60px;
  width: 50px;
  border-radius: 0;
  object-fit: contain;
  filter: none;
  box-shadow: none;
  margin: 0;
  transform: none;
}
body .navbar .brand-text {
  font-family: var(--sb-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--sb-ink);
  line-height: 1.12;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  font-family: var(--font-family);
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.brand-text .brand-aps {
  font: 9px var(--font-family);
  vertical-align: super;
}
body .navbar .nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  position: static;
  padding: 0;
  margin: 0;
  background: white;
  box-shadow: none;
  list-style: none;
  width: auto;
  transform: none;
}
body .navbar .nav-menu .nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 0;
  color: var(--sb-ink);
  background: none;
  border-radius: 0;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  box-shadow: none;
}
body .navbar .nav-link::after {
  display: none;
}
body .navbar .nav-menu .nav-link:hover,
body .navbar .nav-menu .nav-link.active {
  color: var(--primary-color);
  box-shadow: inset 0 -2px var(--primary-color);
  transform: none;
}
body .navbar .nav-menu .member-link {
  padding: 10px 13px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  gap: 10px;
}
body .navbar .nav-toggle {
  display: none;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  background: white;
}
body .navbar .nav-toggle span {
  background: var(--sb-ink);
  width: 22px;
  height: 2px;
  margin: 4px 0;
}
#user-bar:empty {
  display: none;
}
/* Photographs are original association assets, with a neutral legibility scrim. */
.sb-hero {
  position: relative;
  isolation: isolate;
  background: #262626;
  color: white;
  min-height: 410px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.79),
    rgba(0, 0, 0, 0.35) 58%,
    rgba(0, 0, 0, 0.08)
  );
}
.sb-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  z-index: -2;
}
.sb-hero-home {
  min-height: min(650px, 75vh);
}
.sb-hero-home .sb-hero-photo {
  object-position: center 39%;
}
.sb-hero-copy {
  max-width: 650px;
  padding-block: 65px 80px;
}
.sb-hero h1 {
  font-family: var(--sb-display);
  color: white;
  font-size: clamp(2.7rem, 4.7vw, 4.6rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-shadow: none;
}
.sb-hero-home h1 {
  font-size: clamp(3.1rem, 5.8vw, 5.5rem);
}
.sb-hero-description {
  font-size: 17px;
  max-width: 470px;
  line-height: 1.7;
  margin: 0 0 28px;
  color: #fff;
}
.sb-hero .eyebrow {
  color: white;
  margin-bottom: 23px;
}
.sb-hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  margin: 0 10px 3px 0;
  background: var(--secondary-color);
}
.sb-hero-caption {
  position: absolute;
  bottom: 24px;
  right: max(40px, calc((100vw - 1160px) / 2));
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fff;
}
.sb-hero-caption span {
  padding: 0 10px;
  color: var(--secondary-color);
}
.eyebrow {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 14px;
}
.sb-section {
  padding: 80px 0;
}
.sb-surface {
  background: var(--sb-surface);
  border-block: 1px solid var(--sb-line);
}
.sb-section h2,
.sb-join h2,
.sb-intro-strip h2 {
  font: 400 clamp(2rem, 3vw, 2.9rem)/1.15 var(--sb-display);
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--sb-ink);
}
.sb-section h3 {
  font: 400 1.6rem/1.25 var(--sb-display);
  margin: 0 0 16px;
  color: var(--sb-ink);
}
.sb-section p {
  margin-top: 0;
}
.sb-section-heading {
  max-width: 720px;
  margin-bottom: 35px;
}
.sb-section-heading > p:last-child:not(.eyebrow) {
  color: var(--sb-muted);
}
.sb-heading-row {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}
.sb-heading-row h2 {
  margin-bottom: 0;
}
.sb-heading-row > a {
  flex-shrink: 0;
}
.sb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.sb-button,
body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 23px;
  min-height: 48px;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: white;
  font: 600 13px/1.5 var(--font-family);
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: normal;
}
.sb-button:hover,
body .btn-primary:hover {
  color: white;
  background: var(--sb-red-hover);
  border-color: var(--sb-red-hover);
  transform: none;
  box-shadow: none;
}
.sb-button-secondary,
body .btn-secondary,
body .btn-outline {
  color: var(--sb-ink);
  background: transparent;
  border-color: #bfc1c3;
}
.sb-button-secondary:hover,
body .btn-secondary:hover,
body .btn-outline:hover {
  background: var(--sb-surface);
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.sb-hero .sb-button-secondary {
  color: white;
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.8);
}
.sb-hero .sb-button-secondary:hover {
  background: white;
  color: var(--sb-ink);
}
.sb-button-yellow {
  color: var(--sb-ink);
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}
.sb-button-yellow:hover {
  background: white;
  border-color: white;
  color: var(--sb-ink);
}
.sb-text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 650;
  color: var(--primary-color);
  text-decoration: none;
  padding-block: 8px;
  min-height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.sb-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sb-intro-strip {
  border-bottom: 1px solid var(--sb-line);
  background: white;
}
.sb-intro-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-block: 20px;
}
.sb-intro-strip p {
  font-size: 13px;
  color: var(--sb-muted);
  margin: 0;
}
.sb-intro-strip strong {
  color: var(--sb-ink);
  font-weight: 650;
}
.sb-traditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.sb-tradition {
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
  overflow: hidden;
  background: white;
}
.sb-photo-link {
  display: block;
  height: 285px;
  overflow: hidden;
}
.sb-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-tradition > div {
  padding: 30px;
}
.sb-tradition h3 {
  font-size: 30px;
}
.sb-tradition h3 a {
  color: inherit;
  text-decoration: none;
}
.sb-tradition p:not(.eyebrow) {
  color: var(--sb-muted);
  font-size: 15px;
  max-width: 470px;
}
.sb-section-end {
  margin-top: 24px;
}
.sb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}
.sb-split > div > p:not(.eyebrow) {
  color: var(--sb-muted);
  max-width: 550px;
}
.sb-media-preview {
  position: relative;
  display: block;
  border-radius: var(--sb-radius);
  overflow: hidden;
  background: var(--sb-ink);
}
.sb-media-preview > img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.sb-media-preview > span {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.74);
  color: white;
  padding: 15px 22px;
  font-size: 13px;
}
.sb-rounded-photo {
  width: 100%;
  height: 390px;
  border-radius: var(--sb-radius);
  object-fit: cover;
}
.sb-portrait {
  margin: 0;
  max-width: 390px;
  justify-self: center;
}
.sb-portrait img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--sb-radius);
}
.sb-portrait figcaption {
  font-size: 12px;
  padding-block: 12px;
  color: var(--sb-muted);
}
.sb-event-list {
  border-top: 1px solid var(--sb-line);
}
.sb-event-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--sb-line);
  color: var(--sb-ink);
  text-decoration: none;
}
.sb-event-row time {
  display: grid;
  place-content: center;
  text-align: center;
  background: white;
  border: 1px solid var(--sb-line);
  border-top: 3px solid var(--primary-color);
  border-radius: 4px;
  width: 64px;
  min-height: 72px;
  color: var(--primary-color);
}
.sb-event-row time strong {
  font: 30px var(--sb-display);
}
.sb-event-row time span {
  font-size: 10px;
  text-transform: uppercase;
}
.sb-event-row h3 {
  font-size: 23px;
  margin: 0 0 5px;
}
.sb-event-row p {
  font-size: 13px;
  color: var(--sb-muted);
  margin: 0;
}
.sb-event-row:hover h3 {
  color: var(--primary-color);
}
.sb-empty {
  padding: 28px;
  border: 1px solid var(--sb-line);
  border-radius: 6px;
  background: white;
  color: var(--sb-muted);
  font-size: 15px;
  width: 100%;
}
.sb-join {
  padding: 65px 0;
  background: var(--primary-color);
  color: white;
}
.sb-join-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: center;
}
.sb-join h2,
.sb-join h3,
.sb-join .eyebrow,
.sb-join .sb-text-link {
  color: white;
}
.sb-join h3 {
  font: 400 27px var(--sb-display);
  margin: 0 0 18px;
}
.sb-join p:not(.eyebrow) {
  max-width: 540px;
  font-size: 15px;
  margin-bottom: 25px;
}
.sb-join-aside {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 50px;
}
.sb-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sb-timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  border-bottom: 1px solid var(--sb-line);
  padding: 25px 0;
}
.sb-timeline li > span {
  font: 34px var(--sb-display);
  color: var(--primary-color);
}
.sb-timeline p {
  margin-bottom: 0;
  color: var(--sb-muted);
}
.sb-grid-three,
.sb-grid-four {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sb-grid-four {
  grid-template-columns: repeat(4, 1fr);
}
.sb-info-card {
  border: 1px solid var(--sb-line);
  border-top: 3px solid var(--primary-color);
  border-radius: 4px;
  background: white;
  padding: 30px 26px;
}
.sb-info-card p {
  font-size: 14px;
  color: var(--sb-muted);
  margin-bottom: 0;
}
.sb-instrument-symbol {
  display: block;
  font: 48px var(--sb-display);
  color: var(--primary-color);
  margin-bottom: 20px;
}
.sb-contact-paths > a {
  display: block;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  padding: 24px;
  color: var(--sb-ink);
  text-decoration: none;
}
.sb-contact-paths > a:hover {
  border-color: var(--primary-color);
}
.sb-contact-paths span {
  font-size: 11px;
  color: var(--sb-muted);
}
.sb-contact-paths h2 {
  font: 600 17px/1.4 var(--font-family);
  margin: 10px 0 0;
}
.sb-contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}
.sb-contact-details {
  margin: 32px 0 20px;
}
.sb-contact-details dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sb-muted);
  margin-bottom: 6px;
}
.sb-contact-details dd {
  margin: 0 0 24px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.sb-contact-details a {
  color: var(--sb-ink);
}
.sb-social-text {
  margin-top: 30px;
  border-top: 1px solid var(--sb-line);
  padding-top: 30px;
}
.sb-social-text a {
  display: inline-flex;
  margin-right: 20px;
  min-height: 44px;
  align-items: center;
  font-size: 13px;
}
.sb-form-panel {
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
  padding: 35px;
  background: white;
}
.sb-form-panel > h2 {
  font-size: 28px;
}
.sb-form-panel > p,
.sb-form-note {
  font-size: 13px;
  color: var(--sb-muted);
}
body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body .form-group {
  min-width: 0;
  margin-bottom: 18px;
}
body .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-ink);
  margin-bottom: 7px;
}
body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body select,
body textarea {
  width: 100%;
  border: 1px solid #bfc1c3;
  background: white;
  color: var(--sb-ink);
  border-radius: 4px;
  min-height: 48px;
  padding: 11px 13px;
  font-size: 16px;
  box-shadow: none;
}
body input[type="checkbox"],
body input[type="radio"] {
  accent-color: var(--primary-color);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
body textarea {
  resize: vertical;
}
#contact-status {
  font-size: 14px;
  margin-top: 16px;
}
.sb-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--sb-radius);
}
/* Legacy page adapters: retain every dynamic mount point and visibility state. */
body .hero:not(.sb-hero),
body .page-header,
body .auth-section {
  background: var(--sb-surface);
  color: var(--sb-ink);
  padding: 58px 0;
  min-height: 0;
  margin: 0;
  transform: none !important;
  border-bottom: 1px solid var(--sb-line);
}
body .hero:not(.sb-hero)::before,
body .page-header::before,
body .page-header::after,
body .hero:not(.sb-hero)::after {
  display: none;
}
body .hero-content {
  text-align: left;
  animation: none;
  margin: 0;
}
body .hero-title,
body .page-header h1,
body .auth-header h1 {
  font: 400 clamp(2.3rem, 4vw, 3.5rem)/1.12 var(--sb-display);
  color: var(--sb-ink);
  text-shadow: none;
  margin: 0 0 18px;
}
body .hero .lead,
body .page-header p {
  color: var(--sb-muted);
  font-size: 17px;
  text-shadow: none;
  margin: 0;
}
body .page-header {
  background-image: none !important;
  background-color: var(--sb-surface) !important;
  background-attachment: scroll !important;
}
body .hero .hero-content {
  max-width: none;
  padding: 0;
}
body .section-title,
body .past-section-title,
body .gallery-main-title,
body .territorio h2 {
  color: var(--sb-ink);
  font: 400 32px/1.2 var(--sb-display);
  text-shadow: none;
  -webkit-text-fill-color: var(--sb-ink);
  background: none;
  margin-bottom: 20px;
}
body .section-header {
  text-align: left;
  margin: 0 0 32px;
}
body .section-title::after,
body .section-title::before,
body .gallery-main-title::after,
body .gallery-main-title::before {
  display: none;
}
body .section-badge {
  color: var(--primary-color);
  background: none;
  padding: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
body .section-subtitle {
  color: var(--sb-muted);
  font-size: 16px;
  margin-left: 0;
}
body .eventi-main {
  max-width: 1240px;
  padding: 55px 40px;
  margin: 0 auto;
}
.sb-calendar-intro {
  font-size: 16px;
  font-weight: 600;
}
.sb-event-filters,
.sb-activity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}
body .eventi-main > #passati {
  margin-top: 65px;
}
body .public-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 25px 0;
}
body .public-events-grid > .sb-empty {
  grid-column: 1 / -1;
}
body .enhanced-card,
body .event-card,
body .value-card,
body .content-section {
  border: 1px solid var(--sb-line);
  border-radius: 6px;
  box-shadow: none;
  background: white;
  transform: none !important;
  transition: border-color 0.15s;
}
body .enhanced-card::before,
body .enhanced-card::after,
body .content-section::before {
  display: none;
}
body .enhanced-card:hover {
  border-color: var(--primary-color);
  box-shadow: none;
}
body .card-content,
body .enhanced-card-content {
  padding: 24px;
}
body .card-img-container {
  height: 235px;
}
body .card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .event-card h3 {
  font: 400 24px/1.3 var(--sb-display) !important;
  color: var(--sb-ink) !important;
}
body .event-card.past-event p,
body .event-card.past-event .card-content div {
  color: var(--sb-muted) !important;
}
body .event-card .card-img {
  object-fit: contain;
  background: var(--sb-surface);
}
body .event-date-badge {
  background: var(--primary-color);
  color: white;
  border-radius: 3px;
  box-shadow: none;
}
body .past-events-section {
  background: none;
  padding: 0;
  box-shadow: none;
}
body .year-group,
body .year-card {
  background: white;
  border: 1px solid var(--sb-line);
  box-shadow: none;
  border-radius: 6px;
}
body .attivita-principali,
body .territorio,
body .gallery-section,
body .privacy-content {
  padding: 65px 0;
  background: white;
}
body .attivita-principali #attivita-container {
  row-gap: 24px;
}
body .territorio {
  background: var(--sb-surface);
}
body .territorio .enhanced-card,
body .territorio .territory-info {
  background: white;
}
body .territorio .image-container {
  margin-bottom: 20px;
}
body .territorio .image-container img {
  object-fit: cover;
  border-radius: 6px;
}
body .territorio .row {
  align-items: start;
}
body .territory-features,
body .territory-feature {
  box-shadow: none;
}
body .activity-details {
  margin-top: 30px;
  border: 1px solid var(--sb-line);
  border-radius: 6px;
  padding: 30px;
  background: white;
}
body .auth-container,
body .auth-card {
  background: white;
  border: 1px solid var(--sb-line);
  box-shadow: none;
  border-radius: 8px;
}
body .auth-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 38px;
}
body.page-register .auth-container {
  max-width: 800px;
}
body .auth-container .auth-card {
  border: 0;
  padding: 0;
}
body .auth-header {
  text-align: left;
  margin-bottom: 28px;
}
body .auth-header h1 {
  font-size: 35px;
}
body .auth-header p {
  color: var(--sb-muted);
  font-size: 15px;
}
body .auth-form .form-section {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: 5px;
  padding: 22px;
}
body .auth-form .form-section h3 {
  font: 600 16px var(--font-family);
  color: var(--sb-ink);
}
body .auth-links {
  margin-top: 25px;
  font-size: 14px;
}
body .auth-links a {
  color: var(--primary-color);
}
body .members-content {
  padding: 35px 0 70px;
  background: var(--sb-surface);
}
body .members-content .content-section {
  padding: 30px;
}
body .members-content h3 {
  color: var(--sb-ink);
  font: 400 25px var(--sb-display);
}
body .profile-actions,
body .management-tabs,
body .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
body .user-info {
  background: var(--sb-ink);
  color: white;
  padding: 30px;
  border-radius: 6px;
  margin: 25px 0;
  box-shadow: none;
}
body .user-info .user-card {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
body .user-info h3,
body .user-info .stat-label,
body .user-info .stat-value {
  color: white;
}
body .user-info .user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: none;
}
body .user-info .stat {
  text-align: left;
  background: none;
  border: 0;
}
.sb-member-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--sb-line);
  padding: 0 0 15px;
}
.sb-member-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--sb-ink);
  padding-block: 10px;
}
.sb-member-nav button {
  margin-left: auto;
}
body .members-content .table-container {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--sb-line);
  border-radius: 5px;
}
body .members-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
body .members-content th {
  background: var(--sb-surface) !important;
  color: var(--sb-ink) !important;
}
body .members-content td,
body .members-content th {
  padding: 12px !important;
  border-color: var(--sb-line) !important;
  text-align: left;
}
body .login-prompt.show {
  display: block !important;
  padding: 45px 24px;
  max-width: 740px;
  margin: auto;
}
body .login-prompt .auth-prompt {
  background: var(--sb-surface);
  padding: 30px;
  border: 1px solid var(--sb-line);
  border-radius: 6px;
  box-shadow: none;
}
body .privacy-section {
  background: white;
  border: 1px solid var(--sb-line);
  box-shadow: none;
  border-radius: 6px;
}
body .faq-section {
  margin-top: 0 !important;
  padding-top: 50px !important;
}
body .faq-item {
  box-shadow: none;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
}
body .faq-contact {
  background: var(--sb-surface);
  color: var(--sb-ink);
  border-block: 1px solid var(--sb-line);
}
body .faq-contact h2,
body .faq-contact p {
  color: var(--sb-ink);
}
body .faq-contact::before,
body .faq-contact::after {
  display: none;
}
body .gallery-tabs,
body .gallery-view-toggle {
  justify-content: flex-start;
  gap: 10px;
}
body .gallery-tab-btn,
body .view-toggle-btn {
  min-height: 46px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  background: white;
  color: var(--sb-ink);
  box-shadow: none;
  padding: 10px 20px;
  font-size: 14px;
}
body .gallery-tab-btn.active,
body .view-toggle-btn.active {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}
body .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
body .gallery-grid-item {
  border-radius: 6px;
  height: 270px;
  border: 0;
  background: var(--sb-surface);
  box-shadow: none;
}
body .gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .gallery-carousel-container {
  border: 1px solid var(--sb-line);
  border-radius: 6px;
  box-shadow: none;
}
body .gallery-carousel .carousel-item img {
  object-fit: contain !important;
  background: var(--sb-surface);
}
body .gallery-control-btn {
  background: white;
  color: var(--sb-ink);
  border: 1px solid var(--sb-line);
  width: 46px;
  height: 46px;
  box-shadow: none;
}
body .gallery-indicators {
  flex-wrap: wrap;
  gap: 4px;
  max-height: 110px;
  overflow-y: auto;
}
body .carousel-indicator {
  border: 0;
  background: transparent;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 8px;
  border-radius: 0;
}
body .carousel-indicator::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777;
}
body .carousel-indicator.active::after {
  background: var(--primary-color);
}
body .gallery-modal-close,
body .gallery-modal-nav {
  min-width: 44px;
  min-height: 44px;
  background: var(--sb-ink);
  color: white;
}
body .gallery-modal .gallery-modal-content {
  max-height: 92dvh;
  overflow: auto;
}
body .gallery-modal-media img,
body .gallery-modal-media video {
  max-height: 72dvh;
}
body .gallery-hero-stats,
body .gallery-stats {
  justify-content: flex-start;
}
body .gallery-hero-stats .stat-item,
body .gallery-stats .stat-item {
  background: white;
  color: var(--sb-ink);
  border: 1px solid var(--sb-line);
  box-shadow: none;
}
body .stat-item .stat-number,
body .stat-item .stat-label {
  color: var(--sb-ink);
}
/* No content is gated by animation or an IntersectionObserver. */
body .animate-section,
body .animate-fade-in,
body .animate-fade-up,
body .animate-slide-up,
body .animate-slide-left,
body .animate-slide-right,
body .animate-slide,
body .fade-in,
body .slide-up {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}
body .pulse-glow {
  animation: none !important;
}
body .cookie-banner {
  background: white;
  color: var(--sb-ink);
  border-top: 1px solid var(--sb-line);
  box-shadow: 0 -4px 24px #0001;
  padding: 16px 24px;
}
body .cookie-content {
  max-width: 1160px;
  margin: auto;
  gap: 24px;
}
body .cookie-content p {
  color: var(--sb-ink);
  font-size: 13px;
}
body .cookie-actions .btn-link {
  background: none;
  border: 0;
  color: var(--primary-color);
}
.site-footer {
  padding: 60px 0 0;
  background: #242424;
  color: #eee;
  border-top: 4px solid var(--secondary-color);
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 42px;
}
.footer-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.footer-lockup img {
  object-fit: contain;
}
.footer-lockup span {
  font: 16px/1.5 var(--sb-display);
}
.site-footer h2 {
  font: 600 12px var(--font-family);
  color: white;
  margin: 0 0 23px;
}
.site-footer a {
  color: #eee;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--secondary-color);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  font-size: 12px;
  margin: 0 0 11px;
}
.site-footer address {
  font-style: normal;
  font-size: 12px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.footer-identity p {
  font-size: 12px;
  color: #c8c8c8;
  margin: 20px 0 0;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  margin-top: 16px;
}
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid #4a4a4a;
  padding: 20px 0;
  font-size: 11px;
  color: #c8c8c8;
}
.site-footer-bottom p {
  margin: 0;
}
.site-footer-bottom > div {
  display: flex;
  gap: 22px;
}
.site-footer-bottom button {
  padding: 0;
  border: 0;
  background: none;
  color: #eee;
  cursor: pointer;
  font-size: inherit;
}
@media (min-width: 1400px) {
  body .navbar > .container {
    max-width: 1380px;
  }
  body .navbar .nav-menu {
    gap: 23px;
  }
  body .navbar .nav-menu .nav-link {
    font-size: 13px;
  }
}
@media (max-width: 1100px) {
  body .navbar .nav-toggle {
    display: block;
  }
  body .navbar .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    padding: 15px 30px 25px;
    border-bottom: 1px solid var(--sb-line);
  }
  body .navbar .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body .navbar .nav-menu .nav-link {
    min-height: 48px;
    font-size: 15px;
    padding: 12px;
  }
  body .navbar .nav-menu .member-link {
    margin-top: 10px;
    justify-content: center;
  }
  .sb-split {
    gap: 35px;
  }
  .sb-contact-layout {
    gap: 40px;
  }
  .sb-join-grid {
    gap: 50px;
  }
  .sb-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 95px;
  }
  body .container {
    padding-inline: 22px;
  }
  .site-ribbon {
    height: 30px;
  }
  .site-ribbon .container {
    justify-content: center;
    font-size: 9px;
  }
  .site-ribbon a {
    display: none;
  }
  body .site-header {
    top: -30px;
  }
  body .navbar > .container,
  body .site-header .navbar {
    min-height: 78px;
  }
  body .navbar .logo {
    height: 51px;
    width: 42px;
  }
  body .navbar .brand-text {
    font-size: 20px;
  }
  .sb-hero,
  .sb-hero-home {
    min-height: 490px;
    align-items: end;
  }
  .sb-hero::after {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.88),
      rgba(0, 0, 0, 0.36) 80%
    );
  }
  .sb-hero-copy {
    padding-block: 50px 75px;
    max-width: 530px;
  }
  .sb-hero h1 {
    font-size: clamp(38px, 9vw, 56px);
  }
  .sb-hero-description {
    font-size: 15px;
    max-width: 420px;
    margin-bottom: 22px;
  }
  .sb-hero-caption {
    right: 22px;
    bottom: 20px;
    font-size: 9px;
  }
  .sb-hero .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .sb-hero-photo {
    object-position: 58% center;
  }
  .sb-hero-home .sb-hero-photo {
    object-position: 57% center;
  }
  .sb-button,
  body .btn {
    font-size: 12px;
    padding: 12px 18px;
    gap: 10px;
  }
  .sb-intro-strip .container {
    flex-direction: column;
    align-items: start;
    gap: 4px;
    padding-block: 18px;
  }
  .sb-intro-strip p {
    font-size: 12px;
  }
  .sb-intro-strip strong {
    display: block;
  }
  .sb-section {
    padding-block: 50px;
  }
  .sb-traditions,
  .sb-split,
  .sb-contact-layout,
  .sb-join-grid,
  .sb-grid-three {
    grid-template-columns: 1fr;
  }
  .sb-traditions {
    gap: 22px;
  }
  .sb-photo-link {
    height: 240px;
  }
  .sb-tradition > div {
    padding: 24px;
  }
  .sb-tradition h3 {
    font-size: 28px;
  }
  .sb-section-heading {
    margin-bottom: 28px;
  }
  .sb-heading-row {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .sb-media-preview > img,
  .sb-rounded-photo {
    height: 300px;
  }
  .sb-join {
    padding: 45px 0;
  }
  .sb-join-grid {
    gap: 35px;
  }
  .sb-join-aside {
    border-left: 0;
    border-top: 1px solid #ffffff66;
    padding: 30px 0 0;
  }
  .sb-join h2 {
    font-size: 36px;
  }
  .sb-grid-four {
    gap: 16px;
  }
  .sb-info-card {
    padding: 24px;
  }
  .sb-timeline li {
    grid-template-columns: 65px 1fr;
    gap: 20px;
  }
  .sb-timeline li > span {
    font-size: 27px;
  }
  .sb-contact-paths > a {
    padding: 18px;
  }
  .sb-contact-paths h2 {
    font-size: 15px;
  }
  .sb-form-panel {
    padding: 24px 18px;
  }
  body .form-grid {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  body .hero:not(.sb-hero),
  body .page-header {
    padding: 38px 0;
  }
  body .eventi-main {
    padding: 40px 22px;
  }
  body .public-events-grid {
    grid-template-columns: 1fr;
  }
  body .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body .gallery-grid-item {
    height: 190px;
  }
  body .gallery-carousel .carousel-item img {
    height: 300px !important;
  }
  body .gallery-tabs {
    margin-bottom: 16px;
  }
  body .gallery-view-toggle {
    margin-bottom: 24px;
  }
  body .auth-section {
    padding: 30px 0;
  }
  body .auth-container {
    max-width: calc(100% - 36px);
    padding: 25px 20px;
  }
  body .auth-header h1 {
    font-size: 30px;
  }
  body .auth-form .form-section {
    padding: 18px 14px;
  }
  body .members-content .container {
    padding-inline: 15px;
  }
  body .members-content .content-section {
    padding: 22px 16px;
  }
  body .members-content .user-info {
    padding: 24px 18px;
  }
  .sb-member-nav {
    gap: 10px 20px;
  }
  .sb-member-nav a {
    font-size: 12px;
  }
  body .col-md-3,
  body .col-md-4,
  body .col-md-6,
  body .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  body .territorio .row {
    row-gap: 30px;
  }
  body .cookie-content {
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }
  body .cookie-content p {
    font-size: 12px;
    margin: 0;
  }
  body .cookie-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .footer-layout {
    gap: 35px 25px;
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
  .footer-layout > div:last-child {
    grid-column: 1 / -1;
  }
  .site-footer {
    padding-top: 40px;
  }
  .site-footer-bottom {
    gap: 10px;
  }
  .sb-event-row {
    gap: 16px;
    grid-template-columns: 64px 1fr auto;
  }
  .sb-event-row h3 {
    font-size: 21px;
  }
}
@media (max-width: 380px) {
  .sb-actions {
    gap: 10px;
  }
  .sb-hero .sb-button {
    width: 100%;
  }
  .sb-hero {
    min-height: 540px;
  }
  .sb-grid-four {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .sb-actions,
  .sb-member-nav {
    display: none !important;
  }
  .sb-hero {
    background: white;
    min-height: auto;
    color: black;
  }
  .sb-hero-photo,
  .sb-hero::after {
    display: none;
  }
  .sb-hero h1,
  .sb-hero p {
    color: black;
  }
}
/* Reset padding inherited from the original generic section selector. */
.sb-hero,
.sb-intro-strip {
  padding: 0;
}
body .cookie-banner:not(.show) {
  visibility: hidden;
  pointer-events: none;
}
body .cookie-banner.show {
  visibility: visible;
  pointer-events: auto;
}
body .navbar .nav-toggle::before,
body .navbar .nav-toggle::after {
  display: none;
}
body .navbar .nav-toggle {
  border-color: var(--sb-line) !important;
  background: white !important;
}
body .navbar .nav-toggle span {
  background: var(--sb-ink) !important;
}
body .gallery-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
body .gallery-tabs,
body .gallery-view-toggle {
  flex-direction: row;
  padding: 0;
}
body .gallery-tab-btn {
  width: auto;
  margin: 0;
  max-width: none;
}
body .gallery-hero-stats {
  flex-direction: row;
  gap: 20px;
  margin-top: 25px;
  padding: 0;
  justify-content: flex-start;
}
body .gallery-stat-separator {
  display: none;
}
@media (max-width: 767px) {
  body .gallery-container {
    padding-inline: 22px;
  }
}
.sb-grid-four,
.sb-grid-three {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sb-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sb-info-card {
  min-width: 0;
  overflow-wrap: break-word;
}
body .privacy-section,
body .cookie-type,
body .privacy-content .container {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .sb-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .sb-grid-three {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px) {
  .sb-grid-four {
    grid-template-columns: 1fr;
  }
}
body .eventi-main .year-badge {
  color: var(--sb-ink) !important;
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  opacity: 1 !important;
  min-height: 60px;
  min-width: 180px;
  justify-content: space-between;
}
body .year-badge .year-text {
  font: 30px var(--sb-display);
}
body .year-badge .year-count {
  color: var(--sb-muted);
  font: 14px var(--font-family);
}
body .public-events-grid {
  padding: 0;
  justify-items: stretch;
}
body .eventi-main .section-title,
body .eventi-main .past-section-title {
  text-align: left;
}
body .eventi-main .animate-slide-right,
body .eventi-main .animate-slide-left {
  padding: 0;
}
body .faq-question {
  min-height: 55px;
}
body .faq-question:focus-visible {
  outline: 3px solid var(--sb-ink);
  outline-offset: 3px;
}
body .auth-header {
  background: none;
  padding: 0;
  box-shadow: none;
  border: 0;
}
body .auth-content {
  padding: 0;
}
body .auth-form {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body .auth-form::before,
body .auth-header::before,
body .auth-header::after {
  display: none;
}
body .gallery-stat-item {
  color: var(--sb-ink);
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
}
body .gallery-stat-label,
body .gallery-stat-number {
  color: var(--sb-ink);
  background: none;
  -webkit-text-fill-color: var(--sb-ink);
  text-shadow: none;
}
body .cookie-types {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.sb-map {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
}
body .sb-form-panel textarea:not(:focus):not(.error) {
  border: 1px solid #bfc1c3;
}
.sb-hero-compact {
  min-height: 310px;
}
.sb-hero-compact .sb-hero-copy {
  padding-block: 55px;
}
.sb-hero-compact .sb-hero-photo {
  object-position: center 47%;
}
body .gallery-section .gallery-hero-stats {
  margin: 0 0 28px;
}
body .gallery-section .gallery-stat-number {
  font: 24px var(--sb-display);
}
body .gallery-section .gallery-stat-label {
  font-size: 12px;
}
@media (max-width: 767px) {
  .sb-hero-compact {
    min-height: 300px;
  }
  .sb-hero-compact h1 {
    font-size: 40px;
  }
}
body #event-modal {
  z-index: 11000;
  padding: 24px;
  overflow-y: auto;
}
body #event-modal .modal-content {
  position: relative;
  width: min(850px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: auto;
  padding: 64px 28px 28px;
  background: white;
  border-radius: 6px;
}
body #close-modal {
  position: absolute;
  z-index: 10;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  color: var(--sb-ink);
  background: white;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
}
body .user-actions .btn-edit {
  color: var(--sb-ink) !important;
}
@media (max-width: 767px) {
  body #event-modal {
    padding: 12px;
  }
  body #event-modal .modal-content {
    padding: 64px 18px 24px;
    max-height: calc(100dvh - 24px);
  }
}
body .auth-container .auth-form {
  margin: 24px 0 0;
  padding: 0 !important;
  max-width: none;
}
body .management-tabs {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
body .management-tabs .btn {
  flex: 0 1 auto;
  border-radius: 4px;
  box-shadow: none;
}
body .members-content .tab-content,
body .members-content .events-table-container {
  padding: 0;
  background: none;
  box-shadow: none;
  border: 0;
}
body .members-content table button {
  min-width: 44px;
  min-height: 44px;
}
body .user-info .user-card {
  text-align: left;
}
body .user-actions .btn-edit {
  background: var(--sb-ink) !important;
  color: white !important;
}
body button.faq-question {
  display: flex;
  width: 100%;
  text-align: left;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 0;
  border-radius: 4px;
  background: white;
  color: var(--sb-ink);
}
body .faq-question-title {
  font-size: 17px;
  font-weight: 600;
}
body .territorio-highlight,
body .territorio .feature-item {
  background: white;
  border: 1px solid var(--sb-line);
  border-radius: 6px;
  padding: 26px;
  box-shadow: none;
  transform: none;
  text-align: left;
}
body .territorio-highlight h3,
body .territorio .feature-content h4 {
  font: 400 24px/1.25 var(--sb-display);
  color: var(--sb-ink);
  margin-bottom: 14px;
}
body .territorio .feature-content p,
body .territorio-highlight p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--sb-muted);
}
body .territorio .feature-content u,
body .territorio-highlight u {
  text-decoration: none;
}
body .territorio .gallery-main,
body .territorio .gallery-item {
  border-radius: 6px;
  box-shadow: none;
}
body .territorio .gallery-main img {
  object-fit: cover;
}
body .territorio .gallery-grid {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
body .territorio .gallery-item img {
  height: 240px;
  object-fit: cover;
}
@media (max-width: 767px) {
  .sb-grid-four:not(.sb-contact-paths) {
    grid-template-columns: 1fr;
  }
  body .territorio .feature-content p {
    text-align: left;
  }
}
body #image-lightbox {
  z-index: 12000 !important;
}
/* Keep legacy gallery pseudo-elements from reintroducing gradients and glows. */
body .gallery-title-decoration,
body .gallery-tab-btn::before,
body .gallery-tab-btn::after,
body .view-toggle-btn::before,
body .view-toggle-btn::after {
  display: none;
}
body .gallery-tabs,
body .gallery-view-toggle {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body .gallery-tab-btn.active,
body .view-toggle-btn.active,
body .gallery-tab-btn:hover,
body .view-toggle-btn:hover {
  box-shadow: none;
  transform: none;
}
body .gallery-main-title {
  text-align: left;
}
body .gallery-grid-container {
  padding: 0;
  margin: 25px 0 0;
}
body .gallery-grid {
  padding: 0;
}
