:root {
  --pf-primary: #ffbe00;
  --pf-primary-hover: #e5a800;
  --pf-primary-accent: #f59e0b;
  --pf-primary-dark: #b45309;
  --pf-primary-darker: #78350f;
  --pf-primary-light: #fffbeb;
  --pf-primary-soft: #fef3c7;

  --pf-secondary: #166534;
  --pf-secondary-hover: #14532d;
  --pf-secondary-dark: #0b291b;
  --pf-secondary-light: #f0fdf4;

  --pf-accent: #0284c7;
  --pf-bg-cream: #f8f9fa;
  --pf-dark: #1e293b;
  --pf-muted: #64748b;
  --pf-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --pf-card-hover-shadow: 0 16px 32px rgba(255, 190, 0, 0.2);
  --pf-radius-lg: 16px;
  --pf-radius-md: 10px;
  --pf-radius-sm: 6px;
  --pf-transition: all 0.25s ease-in-out;
}

body {
  font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif);
  color: var(--pf-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: inherit;
  font-weight: 700;
  color: var(--pf-dark);
  letter-spacing: -0.01em;
}

footer h5,
footer .font-serif {
  color: #ffffff !important;
}

.btn-transparency {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px !important;
  padding: 0.35rem 1rem !important;
  line-height: 1.5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--pf-transition);
}
.btn-transparency:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-giallo.btn-sm,
.btn-terracotta.btn-sm {
  padding: 0.35rem 1rem !important;
  font-size: 0.875rem;
  border-radius: 50px !important;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.bg-cypress {
  background-color: var(--pf-secondary);
  color: #ffffff;
}

.text-terracotta {
  color: var(--pf-primary-dark) !important;
}
.text-cypress {
  color: var(--pf-secondary) !important;
}

.navbar-custom {
  background-color: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 0.85rem 0;
  border-bottom: 5px solid var(--pf-primary);
  transition: var(--pf-transition);
}
.navbar-custom.scrolled {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.09);
  padding: 0.5rem 0;
}
.navbar-brand-logo {
  height: 52px;
  width: auto;
  transition: var(--pf-transition);
}
.navbar-brand-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pf-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.navbar-brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--pf-secondary);
  text-transform: uppercase;
}

.nav-link {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.94rem;
  color: #334155 !important;
  padding: 0.55rem 0.85rem !important;
  background-color: transparent !important;
  border: none !important;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--pf-primary-dark) !important;
  background-color: transparent !important;
}
.nav-link.active {
  color: var(--pf-primary-dark) !important;
  font-weight: 600;
  background-color: transparent !important;
  box-shadow: none;
}

.navbar-custom .dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  min-width: 230px;
}
.navbar-custom .dropdown-item {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  color: #334155;
  transition: all 0.15s ease;
}
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  background-color: var(--pf-bg-cream);
  color: var(--pf-primary-dark);
}
.navbar-custom .dropdown-item.active,
.navbar-custom .dropdown-item:active {
  background-color: var(--pf-primary);
  color: #111827;
  font-weight: 600;
}
.navbar-custom .dropdown-item.active i {
  color: #111827 !important;
}

@media (min-width: 992px) {
  .navbar-custom .nav-item.dropdown {
    position: relative;
  }
  .navbar-custom .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .navbar-custom .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    margin-top: 0;
    pointer-events: none;
  }
  .navbar-custom .nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }
}

.btn-giallo,
.btn-terracotta {
  background-color: var(--pf-primary);
  color: #111827 !important;
  border: 1px solid var(--pf-primary-hover);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: var(--pf-transition);
  box-shadow: none;
}
.btn-giallo:hover, .btn-giallo:focus,
.btn-terracotta:hover, .btn-terracotta:focus {
  background-color: var(--pf-primary-hover);
  border-color: #cca000;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-outline-terracotta {
  background-color: transparent;
  color: var(--pf-primary-dark);
  border: 2px solid var(--pf-primary);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: var(--pf-transition);
}
.btn-outline-terracotta:hover {
  background-color: var(--pf-primary);
  color: #111827;
  border-color: var(--pf-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 190, 0, 0.3);
}

.btn-cypress {
  background-color: var(--pf-secondary);
  color: #ffffff;
  border: 1px solid var(--pf-secondary);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: var(--pf-transition);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
}
.btn-cypress:hover {
  background-color: var(--pf-secondary-hover);
  border-color: var(--pf-secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 101, 52, 0.35);
}

.photo-showcase-section {
  position: relative;
  padding: 1.5rem 0 2rem 0;
  overflow: hidden;
}

.photo-gallery-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem;
}
.photo-gallery-track::-webkit-scrollbar {
  display: none;
}

.photo-card-item {
  flex: 0 0 calc(33.333% - 0.85rem);
  scroll-snap-align: start;
}

@media (max-width: 991px) {
  .photo-card-item {
    flex: 0 0 calc(50% - 0.65rem);
  }
}

@media (max-width: 600px) {
  .photo-card-item {
    flex: 0 0 88%;
    scroll-snap-align: center;
  }
}

.photo-frame {
  position: relative;
  height: 380px;
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  box-shadow: none;
  border: none;
  background-color: #e2e8f0;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: none;
}
.photo-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}
.photo-frame:hover .photo-item {
  transform: scale(1.05);
}

.photo-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.15rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
  color: #ffffff;
  z-index: 2;
  text-align: left;
  pointer-events: none;
}

.photo-caption-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}
.photo-frame:hover .gallery-zoom-badge {
  opacity: 1;
  transform: scale(1);
}

.gallery-pin-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffc107;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 2;
  transition: transform 0.2s ease;
}
.photo-frame:hover .gallery-pin-badge {
  transform: scale(1.1);
}

@media (max-width: 991px) {
  .photo-frame {
    height: 300px;
  }
}
@media (max-width: 600px) {
  .photo-frame {
    height: 250px;
  }
}

.slider-btn-prev,
.slider-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: var(--pf-transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.slider-btn-prev {
  left: 20px;
}
.slider-btn-next {
  right: 20px;
}
.slider-btn-prev:hover,
.slider-btn-next:hover {
  background: var(--pf-primary);
  border-color: var(--pf-primary);
  color: #111827;
  transform: translateY(-50%) scale(1.08);
}
.slider-btn-prev .slider-nav-icon,
.slider-btn-next .slider-nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}
@media (max-width: 600px) {
  .slider-btn-prev {
    left: 8px;
    width: 38px;
    height: 38px;
  }
  .slider-btn-next {
    right: 8px;
    width: 38px;
    height: 38px;
  }
}

.section-title {
  display: block;
  font-size: 1.85rem;
  margin-bottom: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.section-title-underline {
  position: relative;
  padding-bottom: 10px;
}
.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55px;
  height: 4px;
  background: var(--pf-primary);
  border-radius: 2px;
}
.text-center .section-title-underline::after,
.section-title-underline.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.page-header-template h1 {
  font-size: 2.4rem;
}
.section-block .card h3.display-6 {
  font-size: 1.85rem;
}
.section-block .lead {
  font-size: 1.1rem;
}

.section-block {
  background-color: #ffffff;
}
.section-block:nth-child(even of .section-block) {
  background-color: var(--bs-light, #f8f9fa);
}
.section-block:nth-child(odd of .section-block) {
  background-color: #ffffff;
}
.section-block + .section-block {
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.merged-section-item {
  position: relative;
}
.merged-section-item > .container {
  padding-top: 2rem;
}
@media (min-width: 992px) {
  .merged-section-item > .container {
    padding-top: 2.75rem;
  }
}

.highlight-box {
  background-color: var(--pf-primary-light);
  border-left: 4px solid var(--pf-primary);
  padding: 1.5rem;
  border-radius: 0 var(--pf-radius-md) var(--pf-radius-md) 0;
}

.cf-badge {
  display: inline-block;
  background: #ffbe00;
  color: #0b291b;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  border-radius: var(--pf-radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--pf-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: var(--pf-transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background-color: var(--pf-primary);
  border-color: var(--pf-primary-hover);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 190, 0, 0.3);
}

.event-date-box {
  width: 65px;
  height: 65px;
  background: var(--pf-primary-light);
  border: 2px solid var(--pf-primary);
  border-radius: var(--pf-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}
.event-date-day {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pf-primary-dark);
}
.event-date-month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pf-secondary);
}

@media (max-width: 991px) {
  .section-title {
    font-size: 1.6rem;
  }
  .navbar-nav {
    padding-top: 1rem;
  }
}

.page-header-template {
  background: linear-gradient(135deg, var(--pf-secondary-dark) 0%, #144631 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
  border-bottom: 4px solid var(--pf-primary);
  position: relative;
}

.page-header-template[style*="background-image"] {
  background-color: var(--pf-secondary-dark);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}

.page-header-template[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 41, 27, 0.95) 0%, rgba(11, 41, 27, 0.55) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.breadcrumb-item a {
  color: var(--pf-primary) !important;
  text-decoration: none;
}
.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.75) !important;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #ffffff !important;
}

.page-header-template.page-header-auth-only {
  background: linear-gradient(135deg, #3b070c 0%, #651319 50%, #881324 100%);
  border-bottom: 4px solid var(--pf-primary);
}

.page-header-template.page-header-auth-only[style*="background-image"] {
  background-color: #3b070c;
}

.page-header-template.page-header-auth-only[style*="background-image"]::before {
  background: linear-gradient(to top, rgba(59, 7, 12, 0.95) 0%, rgba(101, 19, 25, 0.6) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.page-header-template.page-header-auth-only .breadcrumb-item a {
  color: #fecaca !important;
}

.page-header-template.page-header-auth-only .breadcrumb-item a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.page-header-template.page-header-auth-only .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.8) !important;
}

.page-header-template.page-header-auth-only .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6) !important;
}

.sede-photo-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .sede-photo-wrapper {
    height: 320px;
  }
}

@media (min-width: 992px) {
  .sede-photo-col {
    position: relative;
  }
  .sede-photo-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--bs-gutter-x) * 0.5);
    right: calc(var(--bs-gutter-x) * 0.5);
    width: auto;
    height: auto;
  }
}

.event-card-upcoming {
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: none !important;
}
.event-card-upcoming:hover {
  transform: none !important;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}
.event-card-upcoming.is-pinned {
  border: 2px solid var(--pf-primary);
  position: relative;
}
.event-pinned-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: #ffbe00;
  color: #111827;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.event-thumb-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: none !important;
}
.event-row-past {
  border-radius: var(--pf-radius-md);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: none !important;
}
.event-row-past:hover {
  transform: none !important;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}
.event-card-upcoming a:hover,
.event-row-past a:hover {
  text-decoration: none !important;
  color: inherit !important;
  opacity: 1 !important;
}
.event-card-upcoming *:hover,
.event-row-past *:hover {
  transform: none !important;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}
.btn-share:hover {
  opacity: 0.88;
}
.btn-share-wa {
  background-color: #25D366;
  color: #ffffff !important;
  border-color: #25D366;
}
.btn-share-fb {
  background-color: #1877F2;
  color: #ffffff !important;
  border-color: #1877F2;
}
.btn-share-print {
  background-color: #f1f5f9;
  color: #334155 !important;
  border-color: #cbd5e1;
}
.btn-share-print:hover {
  background-color: #e2e8f0;
  opacity: 1;
}

.share-section-box .card {
  border: 1px solid #e2dac7 !important;
}

footer {
  background-color: var(--pf-secondary-dark);
  color: #ffffff;
  font-size: 0.92rem;
  border-top: 5px solid var(--pf-primary);
}
footer h5 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
footer p,
footer li {
  color: rgba(255, 255, 255, 0.9);
}
footer strong {
  color: #ffffff;
}
footer a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--pf-transition);
}
footer a:hover {
  color: var(--pf-primary);
}
footer .text-secondary {
  color: rgba(255, 255, 255, 0.85) !important;
}
footer .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}
footer .text-terracotta {
  color: var(--pf-primary) !important;
}
footer .btn-outline-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  transition: var(--pf-transition);
}
footer .btn-outline-secondary:hover {
  background-color: var(--pf-primary);
  border-color: var(--pf-primary);
  color: #111827;
}
footer .bg-dark {
  background-color: rgba(0, 0, 0, 0.32) !important;
}
footer .border-secondary {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}
.footer-bottom .text-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
}

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background-color: var(--pf-primary);
  color: #111827;
  border: 1px solid var(--pf-primary-hover);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(255, 190, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--pf-transition);
  font-weight: bold;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
}
#backToTop:hover {
  background-color: var(--pf-primary-hover);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 190, 0, 0.5);
}

@media print {
  .no-print,
  .no-print * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
  }

  .card, section, article {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .page-header-template {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
    padding: 1.5rem 0 !important;
  }

  .page-header-template::before {
    display: none !important;
  }

  .page-header-template h1,
  .page-header-template p,
  .page-header-template .lead {
    color: #000000 !important;
  }
}

.admin-toolbar-strip {
  background-color: #1a1e24 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  min-height: 38px;
  display: flex;
  align-items: center;
  font-size: 0.825rem;
  color: #d1d5db;
}

.admin-toolbar-group {
  gap: 0.35rem;
}

.admin-toolbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  color: #e5e7eb !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.15s ease, opacity 0.15s ease;
  user-select: none;
  cursor: pointer;
}

.admin-toolbar-link:hover,
.admin-toolbar-link:focus {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  opacity: 1;
}

.admin-toolbar-link i {
  font-size: 0.95rem;
  line-height: 1;
}

.admin-toolbar-link-highlight {
  color: #ffbe00 !important;
  font-weight: 600;
}

.admin-toolbar-link-highlight i {
  color: #ffbe00 !important;
}

.admin-toolbar-link-highlight:hover,
.admin-toolbar-link-highlight:focus {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.admin-toolbar-strip .dropdown-menu {
  background: #ffffff;
  margin-top: 0.35rem !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.alert-text-small {
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
  opacity: 0.9;
}

.gallery-item-anim {
  animation: fadeInGalleryItem 0.4s ease-out forwards;
}

@keyframes fadeInGalleryItem {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility (sostituiscono gli stili inline delle viste) */
.u-bg-folder { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important; }
.u-bg-slate { background-color: #f1f5f9 !important; }
.u-btn-bg-white { --bs-btn-bg: #ffffff; }
.u-cursor-default { cursor: default !important; }
.u-cursor-pointer { cursor: pointer !important; }
.u-fs-0-65rem { font-size: 0.65rem !important; }
.u-fs-0-68rem { font-size: 0.68rem !important; }
.u-fs-0-72rem { font-size: 0.72rem !important; }
.u-fs-0-73rem { font-size: 0.73rem !important; }
.u-fs-0-75rem { font-size: 0.75rem !important; }
.u-fs-0-78rem { font-size: 0.78rem !important; }
.u-fs-0-7rem { font-size: 0.7rem !important; }
.u-fs-0-85rem { font-size: 0.85rem !important; }
.u-fs-0-875rem { font-size: 0.875rem !important; }
.u-fs-0-8rem { font-size: 0.8rem !important; }
.u-fs-1-25rem { font-size: 1.25rem !important; }
.u-fs-1-5rem { font-size: 1.5rem !important; }
.u-fs-2-7rem { font-size: 2.7rem !important; }
.u-fs-2rem { font-size: 2rem !important; }
.u-fs-3-5rem { font-size: 3.5rem !important; }
.u-fs-3rem { font-size: 3rem !important; }
.u-h-1-15rem { height: 1.15rem !important; }
.u-h-1-25rem { height: 1.25rem !important; }
.u-h-140px { height: 140px !important; }
.u-h-180px { height: 180px !important; }
.u-h-190px { height: 190px !important; }
.u-h-2-5rem { height: 2.5rem !important; }
.u-h-220px { height: 220px !important; }
.u-h-240px { height: 240px !important; }
.u-h-28px { height: 28px !important; }
.u-h-380px { height: 380px !important; }
.u-h-38px { height: 38px !important; }
.u-h-42px { height: 42px !important; }
.u-h-44px { height: 44px !important; }
.u-h-48px { height: 48px !important; }
.u-h-50px { height: 50px !important; }
.u-h-54px { height: 54px !important; }
.u-h-56px { height: 56px !important; }
.u-h-60px { height: 60px !important; }
.u-h-8px { height: 8px !important; }
.u-lh-1-4 { line-height: 1.4 !important; }
.u-maxh-140px { max-height: 140px !important; }
.u-maxh-220px { max-height: 220px !important; }
.u-maxh-280px { max-height: 280px !important; }
.u-maxh-440px { max-height: 440px !important; }
.u-maxh-480px { max-height: 480px !important; }
.u-maxh-72vh { max-height: 72vh !important; }
.u-maxh-75vh { max-height: 75vh !important; }
.u-maxh-90px { max-height: 90px !important; }
.u-maxw-380px { max-width: 380px !important; }
.u-minh-250px { min-height: 250px !important; }
.u-minh-320px { min-height: 320px !important; }
.u-minh-380px { min-height: 380px !important; }
.u-minh-420px { min-height: 420px !important; }
.u-minw-0 { min-width: 0 !important; }
.u-minw-105px { min-width: 105px !important; }
.u-minw-200px { min-width: 200px !important; }
.u-minw-220px { min-width: 220px !important; }
.u-minw-45px { min-width: 45px !important; }
.u-radius-4px { border-radius: 4px !important; }
.u-transition-all { transition: all 0.2s ease; }
.u-transition-card { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.u-transition-lift { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.u-w-1-15rem { width: 1.15rem !important; }
.u-w-1-25rem { width: 1.25rem !important; }
.u-w-105px { width: 105px !important; }
.u-w-120px { width: 120px !important; }
.u-w-130px { width: 130px !important; }
.u-w-155px { width: 155px !important; }
.u-w-160px { width: 160px !important; }
.u-w-2-5rem { width: 2.5rem !important; }
.u-w-38px { width: 38px !important; }
.u-w-42px { width: 42px !important; }
.u-w-44px { width: 44px !important; }
.u-w-48px { width: 48px !important; }
.u-w-50px { width: 50px !important; }
.u-w-56px { width: 56px !important; }
.u-w-60px { width: 60px !important; }
.u-w-80px { width: 80px !important; }
.u-z-10 { z-index: 10 !important; }
.u-z-1050 { z-index: 1050 !important; }
.u-z-1060 { z-index: 1060 !important; }
.u-z-1090 { z-index: 1090 !important; }
.u-z-5 { z-index: 5 !important; }
.u-z-9 { z-index: 9 !important; }

/* Testo formattato dei blocchi */
.rich-text > :last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.25rem; }
.rich-text a { color: inherit; text-decoration: underline; }

/* Visualizzatore foto: passaggio tra versione standard e originale */
.lightbox-photo-page {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 999999;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50rem;
  transition: background-color 0.15s ease;
}
.lightbox-photo-page:hover { color: #ffffff; background: rgba(0, 0, 0, 0.85); }

/* Elenco pagine (amministrazione): albero con connettori tra pagina e sottopagine */
.page-tree-cell {
  --tree-step: 1.75rem;
  --tree-pad: 1rem;
  position: relative;
  padding-left: calc(var(--tree-depth, 0) * var(--tree-step));
}
.page-tree-line {
  position: absolute;
  left: calc(var(--tree-level, 0) * var(--tree-step) + 0.6rem);
  border-left: 2px solid #cbd5e1;
  pointer-events: none;
}
.page-tree-line-pass {
  top: calc(-1 * var(--tree-pad) - 1px);
  bottom: calc(-1 * var(--tree-pad));
}
.page-tree-line-elbow {
  top: calc(-1 * var(--tree-pad) - 1px);
  height: calc(50% + var(--tree-pad) + 1px);
  width: 0.85rem;
  border-bottom: 2px solid #cbd5e1;
  border-bottom-left-radius: 6px;
}
.page-tree-line-down {
  top: 50%;
  bottom: calc(-1 * var(--tree-pad));
}
.page-tree-legend {
  display: inline-block;
  width: 0.8rem;
  height: 0.7rem;
  border-left: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  border-bottom-left-radius: 5px;
  vertical-align: 0.15rem;
}
