:root {
  --mud-dark: #3c3c3c;
  --mud-accent: #B2363B;
  --mud-light: #F9F9F9;
  --text-light: #666;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--mud-dark);
  background-color: #eaeaea;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.4px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
}

h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

h4 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #3c3c3c;
  font-style: italic;
  margin: 6px 0 12px 0;
}

p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  max-width: 750px;
  margin: 0;
  padding: 0;
  color: #3c3c3c;
}

img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* ==================================================
   LANDING PAGE
================================================== */
.mud-landing-page {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #b13232;
  color: #ffffff;
}

.mud-landing-page .hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.mud-landing-page .navbar-custom {
  padding: 20px 40px;
}

.mud-landing-page .brand {
  font-weight: 700;
  font-size: 28px;
}

.mud-landing-page .lang {
  font-size: 16px;
  margin-right: 20px;
}

.mud-landing-page .hamburger {
  width: 30px;
  height: 2px;
  background: white;
  position: relative;
}

.mud-landing-page .hamburger::before,
.mud-landing-page .hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: white;
  left: 0;
}

.mud-landing-page .hamburger::before {
  top: -8px;
}

.mud-landing-page .hamburger::after {
  top: 8px;
}

.mud-landing-page .title {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mud-landing-page .title h1 {
  font-weight: 900;
  font-size: clamp(60px, 8vw, 140px);
  line-height: 1;
}

/* ==================================================
   HEADER
================================================== */
#header {
  position: relative;
}

#header,
#header nav,
#header .navbar,
#header .navbar-collapse,
#header .navbar-nav,
#header .nav-item,
#header .collapse,
#header .collapsing,
#header .collapse.show,
#header .dropdown-menu,
#header .offcanvas,
#header .offcanvas-header,
#header .offcanvas-body,
#header .modal,
#header .modal-content,
#header ul,
#header li {
  background-color: var(--mud-accent) !important;
}

#header .navbar {
  position: relative;
}

#header .navbar .container,
#header .navbar .container-fluid {
  position: relative;
  display: flex;
  justify-content: center !important;
  align-items: center;
}

#header .navbar-collapse,
#header .offcanvas-body {
  padding: 34px 36px !important;
  text-align: left !important;
}

#header .navbar-nav {
  gap: 0;
  align-items: flex-start !important;
  padding-left: 0;
}

#header .nav-item {
  margin-bottom: 12px;
}

#header .nav-link,
#header .dropdown-item,
#header .offcanvas a,
#header .modal a,
#header a,
#header a:link,
#header a:visited,
#header a:hover,
#header a:focus,
#header a:active {
  display: block;
  color: #ffffff !important;
  text-decoration: none !important;
  background-color: transparent !important;
  text-align: left !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.5px;
  padding: 0 !important;
}

#header .nav-link:hover,
#header .nav-link:focus,
#header .nav-link:active,
#header .dropdown-item:hover,
#header .dropdown-item:focus,
#header .dropdown-item:active,
#header .offcanvas a:hover,
#header .offcanvas a:focus,
#header .offcanvas a:active,
#header .modal a:hover,
#header .modal a:focus,
#header .modal a:active {
  color: #ffffff !important;
  text-decoration: underline !important;
  background-color: transparent !important;
}

#header .offcanvas span,
#header .offcanvas p,
#header .offcanvas li,
#header .offcanvas div,
#header .modal span,
#header .modal p,
#header .modal li,
#header .modal div {
  color: #ffffff !important;
}

#header .navbar-brand {
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#header .navbar-brand img {
  display: block;
  margin: 0 auto;
  max-width: 900px;
  width: 70vw;
  height: auto;
}

#header .navbar-brand::after {
  content: "MUSEO URBANO DIFFUSO";
  display: block;
  width: 70vw;
  max-width: 900px;
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 6px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

#header button.btn,
#header .navbar-toggler {
  position: absolute !important;
  right: 28px !important;
  bottom: 18px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 2.8rem !important;
  line-height: 1 !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999 !important;
}

#header button.btn:hover,
#header button.btn:focus,
#header button.btn:active,
#header .navbar-toggler:hover,
#header .navbar-toggler:focus,
#header .navbar-toggler:active {
  color: #ffffff !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#header button.btn span,
#header button.btn svg,
#header button.btn i {
  color: #ffffff !important;
  font-size: 2.8rem !important;
  line-height: 1 !important;
}

#header .offcanvas-body .menu-link,
#header .offcanvas-body .menu-lang {
  display: block;
  color: #ffffff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}

#header .offcanvas-body .menu-link:hover,
#header .offcanvas-body .menu-link:focus,
#header .offcanvas-body .menu-link:active,
#header .offcanvas-body .menu-lang:hover,
#header .offcanvas-body .menu-lang:focus,
#header .offcanvas-body .menu-lang:active {
  color: #ffffff !important;
  text-decoration: underline !important;
}

#header .navbar-toggler-icon,
#header .btn-close,
#header .offcanvas .btn-close {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

.offcanvas-backdrop,
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.55) !important;
}

/* ==================================================
   HOME
================================================== */
.mud-home-page {
  background: #ffffff;
  padding-bottom: 0;
}

.mud-home-heading {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 48px;
  background: #eaeaea;
  text-align: center;
}

.mud-home-heading h1 {
  display: block;
  width: fit-content;
  margin: 0 auto 18px auto;
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3c3c3c;
  line-height: 1;
}

.mud-home-heading h1::after {
  content: "";
  display: block;
  width: calc(100% - 0.18em);
  height: 2px;
  background: var(--mud-accent);
  margin: 18px auto 0 auto;
  transform: translateX(-0.09em);
}

.mud-home-heading p {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 300;
  text-align: center;
  color: #3c3c3c;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 0;
  border-top: none;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.mud-home-section {
  max-width: 1320px;
  margin: 0 auto 28px auto;
  padding: 0 24px;
}

.mud-home-page > .mud-home-section:last-child {
  margin-bottom: 0;
}

.mud-home-hero {
  margin: 0;
  background: #ffffff;
  padding: 40px 0;
}

.mud-home-hero-panel {
  width: min(100%, 1160px);
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.38fr);
  gap: 36px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0;
  box-shadow: none;
  padding: 6px 10px;
  min-height: 0;
  height: auto;
}

.mud-home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 0;
  gap: 14px;
}

.mud-home-kicker {
  margin: 0;
  color: var(--mud-accent);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mud-home-hero-copy h2 {
  margin: 0;
  color: #3c3c3c;
  font-size: clamp(2.1rem, 3.2vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mud-home-intro-short,
.mud-home-intro-full {
  margin: 0;
}

.mud-home-intro-short p,
.mud-home-intro-full p {
  margin: 0;
  color: #3c3c3c;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 34rem;
}

.mud-home-intro-full[hidden] {
  display: none;
}

.mud-home-hero-copy .mud-home-toggle {
  margin-top: 4px;
}

.mud-home-hero-media {
  position: relative;
  min-height: 110px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.mud-home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.mud-home-card,
.mud-home-route,
.mud-home-faq,
.mud-home-cta {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.mud-home-card h2,
.mud-home-route h2,
.mud-home-faq h2 {
  margin: 0 0 14px 0;
  color: #3c3c3c;
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: left;
}

.mud-home-card p,
.mud-home-route p,
.mud-home-faq p {
  max-width: 720px;
  margin: 0 auto 18px auto;
  color: #3c3c3c;
  font-size: 17px;
  line-height: 1.75;
  text-align: left;
}

.mud-home-card {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.mud-home-link,
.mud-home-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: fit-content;
  margin: 4px 0 0 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--mud-accent) !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  cursor: pointer;
}

.mud-home-link:hover,
.mud-home-link:focus,
.mud-home-toggle:hover,
.mud-home-toggle:focus {
  color: var(--mud-accent) !important;
  text-decoration: underline !important;
}

.mud-home-band {
  background: var(--mud-accent);
  color: #ffffff;
  margin: 0;
  min-height: 170px;
  padding: 40px 24px;
  text-align: center;
}

.mud-home-band-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.mud-home-band h2 {
  margin: 0 0 10px 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mud-home-band p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.45;
  text-align: center;
}

.mud-home-route-grid,
.mud-home-route:nth-child(even) .mud-home-route-grid,
.mud-home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.mud-home-route:nth-child(even) .mud-home-gallery {
  order: 2;
}

.mud-home-route:nth-child(even) .mud-home-route-content {
  order: 1;
}

.mud-home-route {
  margin: 0 0 26px 0;
  padding: 28px 24px;
}

.mud-home-route:first-child {
  margin-top: 36px;
}

.mud-home-gallery {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
}

.mud-home-gallery .gallery-track {
  width: 100%;
  height: 100%;
}

.mud-home-gallery .gallery-track img {
  min-height: auto;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mud-home-route-content {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 18px 0 12px 0;
}

.mud-home-route-content h2 {
  text-align: left;
  margin-bottom: 16px;
}

.mud-home-route-content p {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 14px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.mud-route-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mud-route-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(178,54,59,0.16);
  border-bottom: 1px solid rgba(178,54,59,0.16);
  padding-bottom: 14px;
}

.mud-route-meta span {
  color: #3c3c3c;
  font-size: 0.95rem;
  line-height: 1.4;
}

.mud-route-meta strong {
  color: var(--mud-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mud-home-action-band {
  background: var(--mud-accent);
  margin: 44px 0 30px 0;
  padding: 44px 24px;
}

.mud-home-action-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.mud-home-action-heading {
  text-align: center;
  margin-bottom: 28px;
}

.mud-home-action-heading h2 {
  margin: 0 0 10px 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mud-home-action-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.45;
  text-align: center;
}

.mud-home-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.mud-home-cta {
  padding: 28px 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.mud-home-cta h3 {
  margin: 0 0 12px 0;
  color: #3c3c3c;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  width: 100%;
}

.mud-home-cta p {
  max-width: 520px;
  margin: 0 auto 18px auto;
  color: #3c3c3c;
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  flex-grow: 1;
}

.mud-home-cta .mud-home-link {
  margin: auto auto 0 auto;
}

.mud-home-faq {
  padding: 28px 24px;
  margin: 0 auto 42px auto;
}

.mud-home-faq h2 {
  text-align: center;
}

.mud-faq-item {
  border-top: 1px solid rgba(178,54,59,0.16);
  padding: 16px 0;
}

.mud-faq-item:last-child {
  border-bottom: 1px solid rgba(178,54,59,0.16);
}

.mud-faq-item summary {
  color: #3c3c3c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.mud-faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
  max-width: 100%;
}

/* ==================================================
   MAPPE
================================================== */
.mud-map-page,
.mud-audioguide-page,
.mud-visit-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 56px 24px;
  background: #eaeaea;
}

.mud-map-heading,
.mud-audioguide-heading,
.mud-visit-heading {
  padding-top: 48px;
  text-align: center;
}

.mud-map-heading h1,
.mud-audioguide-heading h1,
.mud-visit-heading h1 {
  display: block;
  width: fit-content;
  margin: 0 auto 18px auto;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #3c3c3c;
}

.mud-map-heading h1::after,
.mud-audioguide-heading h1::after,
.mud-visit-heading h1::after {
  content: "";
  display: block;
  width: calc(100% - 0.12em);
  height: 2px;
  background: var(--mud-accent);
  margin: 18px auto 0 auto;
  transform: translateX(-0.06em);
}

.mud-map-heading p,
.mud-audioguide-heading p,
.mud-visit-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: #3c3c3c;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-align: center;
}

.mud-map-list,
.mud-audioguide-list,
.mud-visit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
  margin-top: 28px;
}

.mud-map-card,
.mud-audioguide-card,
.mud-visit-card,
.mud-map-info-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.mud-map-preview {
  width: 100%;
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #d8d8d8;
  margin-bottom: 22px;
  cursor: zoom-in;
}

.mud-map-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.mud-map-preview:hover img,
.mud-map-preview:focus img {
  transform: scale(1.03);
}

.mud-map-card h2,
.mud-audioguide-card h2,
.mud-visit-card h2,
.mud-map-info-card h2 {
  margin: 0 0 12px 0;
  color: #3c3c3c;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
}

.mud-map-card p,
.mud-audioguide-card p,
.mud-visit-card p,
.mud-map-info-card p {
  max-width: 620px;
  margin: 0 auto 22px auto;
  color: #3c3c3c;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.mud-map-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: auto 0 18px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(178,54,59,0.16);
  border-bottom: 1px solid rgba(178,54,59,0.16);
}

.mud-map-meta span {
  color: #3c3c3c;
  font-size: 0.92rem;
  line-height: 1.4;
}

.mud-map-meta strong {
  color: var(--mud-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mud-map-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.mud-map-link,
.mud-map-button,
.mud-visit-card a,
.mud-audioguide-links a {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--mud-accent) !important;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0;
}

.mud-map-link:hover,
.mud-map-link:focus,
.mud-map-button:hover,
.mud-map-button:focus,
.mud-visit-card a:hover,
.mud-visit-card a:focus,
.mud-audioguide-links a:hover,
.mud-audioguide-links a:focus {
  color: var(--mud-accent) !important;
  text-decoration: underline !important;
}

.mud-map-info-band {
  max-width: 1180px;
  margin: 28px auto 0 auto;
  padding: 0 24px;
}

.mud-map-info-card {
  background: var(--mud-accent);
  color: #ffffff;
}

.mud-map-info-card h2,
.mud-map-info-card p {
  color: #ffffff;
}

.mud-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.mud-map-lightbox.is-open {
  display: flex;
}

.mud-map-lightbox img {
  max-width: 96vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #222222;
}

.mud-map-lightbox-title {
  position: absolute;
  left: 28px;
  top: 22px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mud-map-lightbox-close {
  position: absolute;
  right: 22px;
  top: 16px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.mud-audioguide-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(178,54,59,0.16);
}

.mud-audioguide-links li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(178,54,59,0.16);
}

.mud-audioguide-links a {
  display: block;
  padding: 10px 0;
}

.mud-visit-card a {
  display: inline-block;
  margin-top: auto;
}

/* ==================================================
   INTRODUZIONE PERCORSI
================================================== */
.mud-intro-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  line-height: 1.5;
  margin: 0 auto 40px auto;
  max-width: 1050px;
}

.mud-intro-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #3c3c3c;
  font-size: 2.2rem;
  line-height: 1.25;
  text-align: center;
}

.mud-intro-card p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
  color: #3c3c3c;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-align: left;
}

.mud-intro-card #intro-full {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.mud-intro-card #toggle-intro {
  display: block;
  margin: 24px auto 0 auto;
}

.mud-intro-card .mud-intro-short,
.mud-intro-card .mud-intro-full,
.mud-intro-card .mud-intro-action {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.mud-intro-card .mud-intro-short p,
.mud-intro-card .mud-intro-full p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 22px;
}

.mud-intro-card .mud-intro-action {
  margin-top: 4px;
}

.mud-intro-card .mud-intro-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--mud-accent) !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

.mud-intro-card .mud-intro-toggle:hover,
.mud-intro-card .mud-intro-toggle:focus {
  text-decoration: underline !important;
}

/* ==================================================
   PAGINE PERCORSO
================================================== */
#pagina-titolo {
  display: block;
  width: fit-content;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3c3c3c;
  line-height: 1;
  margin: 0 auto 18px auto;
}

#pagina-titolo::after {
  content: "";
  display: block;
  width: calc(100% - 0.18em);
  height: 2px;
  background: var(--mud-accent);
  margin: 18px auto 0 auto;
  transform: translateX(-0.09em);
}

#pagina-sottotitolo {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 300;
  text-align: center;
  color: #3c3c3c;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 0;
  border-top: none;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

#tappe-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#tappe-container .row.align-items-center.mb-5,
.row.align-items-center.mb-5 {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  line-height: 1.5;
  align-items: stretch !important;
  display: flex;
  margin-bottom: 0;
}

#tappe-container .row.align-items-center.mb-5 h3,
.row.align-items-center.mb-5 h3,
.mud-intro-card h2 {
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #3c3c3c;
}

#tappe-container .row.align-items-center.mb-5 p,
.row.align-items-center.mb-5 p {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

#tappe-container .row.align-items-center.mb-5 .col-lg-6:last-child,
.row.align-items-center.mb-5 .col-lg-6:last-child {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 16px;
  padding-bottom: 16px;
  height: 100%;
  min-height: 100%;
}

#tappe-container .row.align-items-center.mb-5 .col-lg-6:last-child > .mud-audio-block,
.row.align-items-center.mb-5 .col-lg-6:last-child > .mud-audio-block {
  margin-top: auto !important;
  width: 100%;
}

button.mud-readmore-inline {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mud-accent) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  vertical-align: baseline;
}

button.mud-readmore-inline:hover,
button.mud-readmore-inline:focus,
button.mud-readmore-inline:active {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #922b2f !important;
  text-decoration: underline !important;
}

.mud-place {
  margin-top: auto;
  padding-top: 12px;
  border-top: none;
  margin-bottom: 18px;
  order: 2;
}

.mud-place-map {
  margin-bottom: 12px;
}

.mud-place-map-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: normal !important;
  color: var(--mud-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 12px 0;
}

.mud-place-map-title > span:first-child {
  display: block;
  margin-bottom: 6px;
}

.mud-place-address {
  display: inline;
  color: #3c3c3c;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  margin-right: 12px;
}

.mud-place-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.mud-maps-link,
.mud-osm-link-inline,
.mud-osm-link {
  display: inline-block !important;
  margin: 0 !important;
  color: var(--mud-accent) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.mud-maps-link:hover,
.mud-osm-link-inline:hover,
.mud-osm-link:hover {
  color: #922b2f !important;
  text-decoration: underline !important;
}

.mud-place-separator {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.4;
}

.mud-osm-clickarea,
.mud-osm-frame-wrap,
.mud-osm-frame,
.mud-place-map iframe {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.mud-maps {
  margin-top: 2px;
  margin-bottom: 20px;
}

.mud-audio-block {
  margin-top: 0 !important;
  margin-bottom: 0;
  padding-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  order: 3;
}

.mud-audio-title {
  font-size: 0.9rem;
  font-weight: 700;
  font-style: normal !important;
  text-align: left;
  color: var(--mud-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px 0;
  padding-left: 8px;
}

.mud-audio-block audio {
  display: block;
  width: 100%;
}

.sottotitolo {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
  color: #555;
  font-style: italic;
  margin: 6px 0 34px 0;
}

/* ==================================================
   GALLERY E LIGHTBOX
================================================== */
.gallery {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-track {
  width: 100%;
}

.gallery-track img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.gallery-track img.active {
  display: block;
}

.row.align-items-center.mb-5 > .col-lg-6:first-child {
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
}

.row.align-items-center.mb-5 > .col-lg-6:first-child .gallery {
  width: 100%;
  min-height: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
}

.row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track,
.row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track img {
  width: 100%;
  height: 100%;
}

.row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track img.active {
  display: block;
}

.gallery button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(178, 54, 59, 0.85);
  color: white;
  border: none;
  padding: 10px 12px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.gallery button:hover {
  background: rgba(178, 54, 59, 1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

#lightbox.mud-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox.mud-lightbox.d-none {
  display: none !important;
}

.mud-lightbox-close,
.mud-lightbox-prev,
.mud-lightbox-next {
  position: absolute;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.mud-lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 30px;
}

.mud-lightbox-prev,
.mud-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
}

.mud-lightbox-prev {
  left: 20px;
}

.mud-lightbox-next {
  right: 20px;
}

.mud-lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.d-none {
  display: none;
}

/* ==================================================
   FOOTER
================================================== */
#footer {
  width: 100%;
  margin-top: auto;
}

#footer .mud-footer {
  width: 100%;
  margin-top: 0 !important;
}

.mud-footer {
  background: var(--mud-accent);
  color: white;
  margin-top: 56px;
  padding: 42px 24px 36px 24px;
}

.mud-footer-inner {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.mud-footer-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mud-footer-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mud-footer-place {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  margin-bottom: 20px;
}

.mud-footer-claim {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  font-style: italic;
}

.mud-footer-lang {
  margin: 0 0 18px 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mud-footer-lang a {
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0 8px;
}

.mud-footer-lang a:hover,
.mud-footer-lang a:focus {
  text-decoration: underline !important;
}

.mud-footer-lang span {
  color: rgba(255,255,255,0.55);
}

.mud-footer-divider {
  width: 72px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  margin: 0 auto 18px auto;
}

.mud-footer-info {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 12px;
}

.mud-footer-credit {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

button.btn-outline-dark,
a.btn-outline-dark {
  background: var(--mud-accent) !important;
  color: white !important;
  border: none !important;
  border-radius: 30px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
}

button.btn-outline-dark:hover,
a.btn-outline-dark:hover {
  background: #922b2f !important;
  color: white !important;
  text-decoration: none;
}

a.mud-link {
  color: var(--mud-accent) !important;
  text-decoration: none;
}

a.mud-link:hover {
  text-decoration: underline;
}

/* ==================================================
   PAGINE PERCORSO - AUDIOGUIDA ALLINEATA IN BASSO
================================================== */
.mud-route-page #tappe-container .row.align-items-center.mb-5 {
  align-items: stretch !important;
}

.mud-route-page #tappe-container .row.align-items-center.mb-5 > .col-lg-6:last-child {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 100% !important;
}

.mud-route-page #tappe-container .row.align-items-center.mb-5 > .col-lg-6:last-child > .mud-audio-block,
.mud-route-page #tappe-container .row.align-items-center.mb-5 .mud-audio-block {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

.mud-route-page #tappe-container .row.align-items-center.mb-5 > .col-lg-6:last-child > :has(.mud-audio-block) {
  margin-top: auto !important;
  width: 100% !important;
}

.mud-route-page #tappe-container .mud-audio-block audio {
  display: block;
  width: 100%;
}
/* ==================================================
   HEADER MENU - FIRMA BRAND
================================================== */

.menu-brand-footer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.28);
  text-align: left;
}

.menu-brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.menu-brand-subtitle {
  margin-top: 7px;
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* ==================================================
   HEADER MENU - SWITCH LINGUA IN LINEA
================================================== */
#header .offcanvas-body .menu-language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 0;
}

#header .offcanvas-body .menu-language-switch .menu-lang {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

#header .offcanvas-body .menu-language-switch .menu-lang:hover,
#header .offcanvas-body .menu-language-switch .menu-lang:focus {
  text-decoration: underline !important;
}

#header .offcanvas-body .menu-lang-separator {
  display: inline-block !important;
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}
/* ==================================================
   RESPONSIVE
================================================== */
@media (min-width: 992px) {
  .row.align-items-center.mb-5 {
    align-items: stretch !important;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child {
    display: flex;
    margin-bottom: 0 !important;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track {
    height: 100%;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track img.active {
    display: block;
  }
}

@media (max-width: 991px) {
  .mud-home-section,
  .mud-map-page,
  .mud-audioguide-page,
  .mud-visit-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mud-home-hero {
    padding: 26px 16px;
  }

  .mud-home-hero-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0;
  }

  .mud-home-hero-media {
    min-height: auto;
    height: auto;
  }

  .mud-home-hero-media img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .mud-home-route {
    padding: 24px;
  }

  .mud-home-route-grid,
  .mud-home-route:nth-child(even) .mud-home-route-grid,
  .mud-home-intro-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .mud-home-route:nth-child(even) .mud-home-gallery,
  .mud-home-route:nth-child(even) .mud-home-route-content {
    order: initial;
  }

  .mud-home-gallery {
    width: 100%;
    height: auto;
    min-height: auto;
  }

  .mud-home-gallery .gallery-track,
  .mud-home-gallery .gallery-track img {
    width: 100%;
    height: auto !important;
    min-height: auto;
  }

  .mud-home-gallery .gallery-track img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
  }

  .mud-home-route-content {
    min-height: auto;
    padding: 0;
  }

  .mud-home-route-content h2 {
    text-align: center;
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .mud-home-route-content p {
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
  }

  .mud-home-link {
    margin-left: auto;
    margin-right: auto;
  }

  .mud-route-meta {
    grid-template-columns: 1fr !important;
    gap: 10px;
    text-align: center;
  }

  .mud-route-meta span {
    display: block;
  }

  .mud-home-cta-grid,
  .mud-map-list,
  .mud-audioguide-list,
  .mud-visit-list {
    grid-template-columns: 1fr !important;
  }

  .mud-home-cta {
    min-height: auto;
  }

  .mud-home-band,
  .mud-home-action-band {
    padding: 36px 20px;
  }

  #tappe-container .row.align-items-center.mb-5,
  .row.align-items-center.mb-5 {
    display: block;
    padding: 24px;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child {
    display: block;
    margin-bottom: 22px !important;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery {
    min-height: auto;
    aspect-ratio: 1 / 1;
    display: block;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track,
  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track img {
    width: 100%;
    height: auto !important;
  }

  .row.align-items-center.mb-5 > .col-lg-6:first-child .gallery-track img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
  }

  .mud-route-page #tappe-container .row.align-items-center.mb-5 > .col-lg-6:last-child > :has(.mud-audio-block),
  .mud-route-page #tappe-container .row.align-items-center.mb-5 .mud-audio-block {
    margin-top: 24px !important;
  }

  #header .navbar-brand img,
  #header .navbar-brand::after {
    width: 62vw;
  }

  #header .navbar-brand::after {
    font-size: clamp(0.95rem, 3.8vw, 1.45rem);
    letter-spacing: 3px;
  }

  #header button.btn,
  #header .navbar-toggler {
    right: 18px !important;
    bottom: 14px !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 2.2rem !important;
  }
}

@media (max-width: 575px) {
  .mud-home-section,
  .mud-map-page,
  .mud-audioguide-page,
  .mud-visit-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mud-home-route,
  .mud-home-faq,
  .mud-home-cta,
  .mud-map-card,
  .mud-audioguide-card,
  .mud-visit-card,
  .mud-intro-card {
    padding: 22px;
  }

  .mud-home-band h2,
  .mud-home-action-heading h2 {
    letter-spacing: 0.08em;
  }

  #pagina-titolo {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
    letter-spacing: 0.08em;
  }

  #pagina-sottotitolo {
    font-size: 1.12rem;
  }
}

/* ==================================================
   HOME - FASCIA "I TRE PERCORSI" MOBILE
================================================== */

@media (max-width: 991px) {
  .mud-home-page .mud-home-band[aria-label="Introduzione ai percorsi"] p,
  .mud-home-page .mud-home-band[aria-label="Introduction to the routes"] p {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-size: clamp(1.08rem, 4.4vw, 1.22rem);
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: 0.01em;
    text-align: center;
    text-wrap: balance;
  }

  .mud-home-page .mud-home-band[aria-label="Introduzione ai percorsi"] h2,
  .mud-home-page .mud-home-band[aria-label="Introduction to the routes"] h2 {
    margin-bottom: 14px;
  }
}

@media (max-width: 575px) {
  .mud-home-page .mud-home-band[aria-label="Introduzione ai percorsi"],
  .mud-home-page .mud-home-band[aria-label="Introduction to the routes"] {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .mud-home-page .mud-home-band[aria-label="Introduzione ai percorsi"] p,
  .mud-home-page .mud-home-band[aria-label="Introduction to the routes"] p {
    max-width: 330px;
  }
}

/* ==================================================
   AUDIOGUIDE PLAYER - STILE COMPATTO DEFINITIVO
================================================== */
main.mud-player-page {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  padding: 46px 24px 54px 24px !important;
  background: var(--mud-accent) !important;
  color: #ffffff !important;
}

main.mud-player-page .mud-player-card {
  width: min(820px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

main.mud-player-page .mud-player-kicker {
  display: inline-block !important;
  margin: 0 auto 12px auto !important;
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-indent: 0.14em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

main.mud-player-page .mud-player-title {
  min-height: auto !important;
  margin: 0 auto 14px auto !important;
  color: #ffffff !important;
  font-size: clamp(2.2rem, 5vw, 4.3rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
}

main.mud-player-page .mud-player-subtitle {
  max-width: 650px !important;
  margin: 0 auto 24px auto !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

main.mud-player-page .mud-player-audio-wrap {
  width: 100% !important;
  margin: 0 auto !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18) !important;
}

main.mud-player-page .mud-player-audio-wrap audio {
  width: 100% !important;
  display: block !important;
}

main.mud-player-page .mud-player-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 20px !important;
}

main.mud-player-page .mud-player-nav a,
main.mud-player-page .mud-player-nav button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  min-width: 210px !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

main.mud-player-page .mud-player-nav a:hover,
main.mud-player-page .mud-player-nav button:hover,
main.mud-player-page .mud-player-nav a:focus,
main.mud-player-page .mud-player-nav button:focus {
  background: rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

main.mud-player-page .mud-player-back {
  margin-top: 18px !important;
  text-align: center !important;
}

main.mud-player-page .mud-player-back a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(255,255,255,0.65) !important;
  padding-bottom: 3px !important;
}

main.mud-player-page .mud-player-back a:hover,
main.mud-player-page .mud-player-back a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom-color: #ffffff !important;
}

@media (max-width: 767px) {
  main.mud-player-page {
    padding: 34px 20px 42px 20px !important;
  }

  main.mud-player-page .mud-player-title {
    margin-bottom: 12px !important;
    font-size: clamp(2rem, 9vw, 3.1rem) !important;
  }

  main.mud-player-page .mud-player-subtitle {
    margin-bottom: 20px !important;
  }

  main.mud-player-page .mud-player-nav {
    flex-direction: column !important;
  }

  main.mud-player-page .mud-player-nav a,
  main.mud-player-page .mud-player-nav button {
    width: 100% !important;
    max-width: 340px !important;
  }
}

/* ==================================================
   AUDIOGUIDE PLAYER - RIMOZIONE FASCIA BIANCA/GRIGIA
================================================== */
body:has(main.mud-player-page) {
  background: var(--mud-accent) !important;
}

body:has(main.mud-player-page) #footer {
  margin-top: 0 !important;
}

body:has(main.mud-player-page) #footer .mud-footer {
  margin-top: 0 !important;
}

body:has(main.mud-player-page) main.mud-player-page {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  padding: 46px 24px 54px 24px !important;
  background: var(--mud-accent) !important;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  body:has(main.mud-player-page) main.mud-player-page {
    padding: 34px 20px 42px 20px !important;
  }
}

/* ==================================================
   PRIVACY E COOKIE POLICY
================================================== */
.mud-policy-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 56px 24px;
  background: #eaeaea;
}

.mud-policy-heading {
  padding-top: 48px;
  text-align: center;
}

.mud-policy-heading h1 {
  display: block;
  width: fit-content;
  margin: 0 auto 18px auto;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #3c3c3c;
}

.mud-policy-heading h1::after {
  content: "";
  display: block;
  width: calc(100% - 0.12em);
  height: 2px;
  background: var(--mud-accent);
  margin: 18px auto 0 auto;
  transform: translateX(-0.06em);
}

.mud-policy-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: #3c3c3c;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-align: center;
}

.mud-policy-card {
  max-width: 980px;
  margin: 32px auto 0 auto;
  padding: 34px 30px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.mud-policy-card h2 {
  margin: 28px 0 10px 0;
  color: #3c3c3c;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.mud-policy-card h2:first-of-type {
  margin-top: 0;
}

.mud-policy-card p {
  max-width: none;
  margin: 0 0 16px 0;
  color: #3c3c3c;
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

.mud-policy-note {
  padding: 16px 18px;
  border-left: 4px solid var(--mud-accent);
  background: rgba(178,54,59,0.08);
  border-radius: 10px;
}

.mud-policy-date {
  margin-top: 30px !important;
  font-size: 0.92rem !important;
  color: #666 !important;
  font-style: italic;
}

@media (max-width: 767px) {
  .mud-policy-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mud-policy-card {
    padding: 26px 22px;
  }

  .mud-policy-heading h1 {
    letter-spacing: 0.08em;
  }
}

/* ==================================================
   FOOTER - LINK PRIVACY E COOKIE POLICY
================================================== */
.mud-footer-policy {
  margin-top: 18px;
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.mud-footer-policy a,
.mud-footer-policy a:link,
.mud-footer-policy a:visited {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none !important;
}

.mud-footer-policy a:hover,
.mud-footer-policy a:focus,
.mud-footer-policy a:active {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.mud-footer a,
.mud-footer a:link,
.mud-footer a:visited {
  color: rgba(255,255,255,0.9) !important;
}

.mud-footer a:hover,
.mud-footer a:focus,
.mud-footer a:active {
  color: #ffffff !important;
}
/* ==================================================
   FASCE ROSSE INFO - LINK
================================================== */
.mud-map-info-card a,
.mud-map-info-card a:link,
.mud-map-info-carda:visited {
  color: #ffffff !important;
  font-weight: 700;
  text-dccoration: underline !important;
}
.mud-map-info-card a:hover,
.mud-map-info-card a:focus,
.mud-map-infocard a:active {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: underline !important;
}
