* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  line-height: 1.7;
  background: #ffffff;
  color: #111827;
  overflow-x: hidden;
}

a,
a:visited {
  color: rgb(141, 179, 146);
  text-decoration-color: rgb(141, 179, 146);
}

a:hover,
a:focus {
  color: rgb(141, 179, 146);
  text-decoration-color: rgb(141, 179, 146);
}

h1, h2, h3, h4, h5, h6,
.m51-site-title,
.m51-post-title,
.m51-post-title-single {
  font-family: Georgia, 'Times New Roman', serif;
}

.m51-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.m51-header {
  background: #ffffff;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.m51-header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.m51-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.m51-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.m51-site-logo {
  height: 52px;
  width: auto;
  display: block;
}

.m51-brand--has-logo .m51-site-title {
  display: none;
}

.m51-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
  text-align: left;
}

.m51-site-title {
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.m51-site-title a {
  color: inherit;
  text-decoration: none;
}

.m51-site-title a:hover {
  text-decoration: underline;
}

.m51-site-description {
  opacity: 0.9;
  font-size: 0.78rem;
  margin-top: 0.1rem;
  color: #6b7280;
}

.m51-main-nav {
  margin-top: 0;
  width: auto;
  display: flex;
  justify-content: flex-end;
}

.m51-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  justify-content: flex-end;
}

.m51-nav-item {
  margin: 0;
}

.m51-nav-link {
  color: #1f2937;
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.m51-nav-link:hover {
  opacity: 1;
  background: transparent;
  color: #3d6b52;
  text-decoration: none;
}

.m51-nav-link--icon {
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
}

.m51-nav-link.is-active {
  background: transparent;
  color: #3d6b52;
  opacity: 1;
}

.m51-nav-buttons {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.m51-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border-radius: 999px;
  background: transparent !important;
  color: #1f2937 !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
  opacity: 0.9;
}

.m51-nav-button i {
  color: inherit;
  font-size: 1.3rem;
}

.m51-nav-button:hover {
  opacity: 1;
  color: rgb(141, 179, 146) !important;
}

.m51-nav-button:active {
  transform: scale(0.98);
}

.m51-main {
  min-height: 60vh;
}

.m51-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
  grid-template-areas: "main side";
  align-items: start;
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .m51-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
    gap: 1.75rem;
    justify-items: stretch;
  }

  .m51-grid-sidebar {
    grid-area: side;
    margin-top: 0.35rem;
  }
}

.m51-grid-main,
.m51-grid-sidebar {
  min-width: 0;
}

.m51-grid-main {
  grid-area: main;
}

.m51-grid-sidebar {
  grid-area: side;
}

.m51-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.m51-post-wrapper {
  width: 100%;
  padding: 0 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .m51-post-wrapper {
    padding: 0;
  }
}

.m51-post-item {
  width: 100%;
  max-width: 100%;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.m51-post-thumb {
  position: relative;
  margin: -1.25rem -1.25rem 0.9rem;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.m51-post-title {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.m51-post-title a {
  color: #111827;
  text-decoration: none;
}

.m51-post-title a:hover {
  text-decoration: underline;
}

.m51-post-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.m51-post-featured-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background-color: #f97316;
  color: #fff7ed;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m51-post-date {
  font-variant-numeric: tabular-nums;
}

.m51-post-excerpt {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.m51-widget {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e8e8e4;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.m51-widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #111827;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e8e8e4;
  margin-bottom: 0.9rem;
}

.m51-widget-text {
  font-size: 0.9rem;
  color: #4b5563;
}

.m51-widget-cta {
  background: #eef4ef;
  border-color: #dde8df;
  text-align: center;
}

.m51-cta-logo {
  display: block;
  height: 26px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.m51-widget-cta-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #2c4636;
  margin: 0 0 0.9rem;
}

.m51-widget-cta-text a,
.m51-widget-cta-text a:visited {
  color: #3d6b52;
  text-decoration: underline;
  text-decoration-color: rgba(61, 107, 82, 0.45);
}

.m51-widget-cta-text a:hover,
.m51-widget-cta-text a:focus {
  color: #33594a;
  text-decoration-color: currentColor;
}

.m51-cta-button,
.m51-cta-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 4px;
  background: #3d6b52;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.m51-cta-button:hover,
.m51-cta-button:focus {
  background: #33594a;
  color: #ffffff;
  text-decoration: none;
}

.m51-cta-button:disabled {
  opacity: 0.65;
  cursor: default;
}

.m51-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.m51-tag-chip {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 5px;
  font-size: 0.78rem;
  background: #f3f3ef;
  color: #4b5563;
  text-decoration: none;
}

.m51-tag-chip:hover {
  background: #e7ebe5;
  color: #3d6b52;
}

.m51-post-single {
  margin: 0;
  max-width: none;
}

.m51-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #3d6b52;
  text-decoration: none;
  font-size: 0.9rem;
}

.m51-back-link:hover {
  text-decoration: underline;
}

.m51-post-title-single {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.m51-post-thumb-single {
  margin: 1rem 0 1.25rem;
  width: 100%;
  max-width: 100%;
}

.m51-post-thumb-single img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.m51-post-content {
  margin-top: 1rem;
  line-height: 1.8;
}

.m51-post-content p {
  margin-bottom: 1rem;
}

.m51-post-content .text-center {
  text-align: center;
}

.m51-post-content .text-right {
  text-align: right;
}

.m51-post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 0.75rem;
}

.m51-post-content blockquote {
  position: relative;
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem 1.1rem 1.7rem;
  background: #f3f4f6;
  border-left: 4px solid rgb(141, 179, 146);
  border-radius: 12px;
  color: #374151;
}

.m51-post-content blockquote::before {
  content: "“";
  position: absolute;
  left: 0.75rem;
  top: 0.55rem;
  font-size: 2.6rem;
  line-height: 1;
  color: rgb(141, 179, 146);
  opacity: 0.55;
}

.m51-post-content blockquote > p {
  margin: 0 0 0.85rem;
  font-style: italic;
}

.m51-post-content blockquote > p:last-child {
  margin-bottom: 0;
}

.m51-post-content blockquote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-weight: 700;
  color: #111827;
}

.m51-post-content blockquote cite::before {
  content: "— ";
  font-weight: 400;
  color: #6b7280;
}

.m51-post-content .m51-float-right,
.m51-post-content .m51-float-left {
  max-width: min(320px, 48%);
}

.m51-post-content .m51-float-right {
  float: right;
  margin: 0.25rem 0 1rem 1.25rem;
}

.m51-post-content .m51-float-left {
  float: left;
  margin: 0.25rem 1.25rem 1rem 0;
}

.m51-post-content figure.m51-float-right,
.m51-post-content figure.m51-float-left {
  margin-top: 0.25rem;
}

.m51-post-content figure.m51-float-right img,
.m51-post-content figure.m51-float-left img {
  margin: 0;
}

.m51-post-content figure.m51-float-right figcaption,
.m51-post-content figure.m51-float-left figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #6b7280;
}

.m51-post-content .m51-clear {
  clear: both;
}

.m51-contact-form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.m51-contact-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.m51-contact-field input,
.m51-contact-field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
}

.m51-contact-field textarea {
  resize: vertical;
}

.m51-contact-submit {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #111827;
  background: #111827;
  color: #f9fafb;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.m51-contact-submit:hover {
  opacity: 0.95;
}

.m51-contact-alert {
  margin-top: 1rem;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.m51-contact-alert--success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.m51-contact-alert--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.m51-contact-errors {
  margin-left: 1.25rem;
}

.m51-contact-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.m51-post-tags {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.m51-post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  background: #f3f3ef;
  color: #4b5563;
  text-decoration: none;
}

.m51-post-tag a,
.m51-post-tag a:visited {
  color: inherit;
  text-decoration: none;
}

.m51-post-tag:hover,
.m51-post-tag a:hover,
.m51-post-tag a:focus {
  background: #e7ebe5;
  color: #3d6b52;
  text-decoration: none;
}

.m51-post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: rgb(141, 179, 146);
  text-decoration: none;
}

.m51-post-category a,
.m51-post-category a:visited {
  color: inherit;
  text-decoration: none;
}

.m51-post-category:hover,
.m51-post-category a:hover,
.m51-post-category a:focus {
  background: #f3f6f4;
  text-decoration: none;
}

.m51-related {
  margin-top: 2.25rem;
}

.m51-related-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.m51-related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.m51-related-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.m51-related-item:hover .m51-related-item-title {
  color: #3d6b52;
}

.m51-related-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
  background: #f3f3ef;
}

.m51-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m51-related-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c3c7bf;
  font-size: 1.8rem;
}

.m51-related-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.m51-related-item-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #111827;
}

.m51-related-item-date {
  font-size: 0.8rem;
  color: #9ca3af;
}

.m51-empty {
  color: #6b7280;
}

.m51-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 2.5rem;
  padding: 1.75rem 0 2rem;
  font-size: 0.92rem;
  color: #6b7280;
  text-align: center;
  background: #f8fafc;
}

.m51-footer a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.m51-footer a:hover {
  color: rgb(141, 179, 146);
}

.m51-footer-feeds {
  margin: 0.45rem 0;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
}

.m51-footer-contacts {
  margin: 0.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.85rem;
}

/* Disabilitazione tema scuro per uniformità cross browser */

@media (max-width: 640px) {
  .m51-container {
    padding: 1.1rem 1rem;
  }

  .m51-related-list {
    grid-template-columns: 1fr;
  }

  .m51-post-content .m51-float-right,
  .m51-post-content .m51-float-left {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 1rem 0;
  }

  .m51-post-title-single {
    font-size: 1.6rem;
  }

  .m51-post-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .m51-container {
    max-width: 100%;
    width: 100%;
    padding: 1rem 0.85rem;
    overflow-x: hidden;
    margin: 0 auto;
  }

  .m51-header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .m51-brand {
    margin-right: auto;
    flex: 1 1 auto;
  }

  .m51-site-description {
    display: none;
  }

  .m51-brand-text {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    color: #374151;
  }

  .m51-brand-link {
    align-items: flex-start;
    width: 100%;
  }

  .m51-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
    gap: 1.25rem;
    justify-items: stretch;
  }

  .m51-post-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .m51-grid-sidebar {
    grid-area: side;
    margin-top: 0.25rem;
  }

  .m51-main-nav {
    display: block;
    width: 100%;
    position: relative;
  }

  .m51-post-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
  }

  .m51-post-item {
    width: 100%;
    max-width: min(100%, 100vw);
    margin: 0 auto;
    padding: 1rem 1rem 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .m51-post-thumb {
    margin: 0 0 0.75rem;
    width: 100%;
    max-width: 100vw;
  }

  .m51-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .m51-nav-buttons {
    display: flex;
    gap: 0.65rem;
  }

  .m51-nav-list.is-open {
    display: flex !important;
    flex-direction: column;
    background: #ffffff;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 10;
  }

  .m51-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9;
  }

  .m51-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Slider (ispirato al tema Mateo) */

.m51-slider-wrapper {
  margin-bottom: 2rem;
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider__inner {
  position: relative;
}

.slider__box {
  position: relative;
}

.slider__item {
  width: 100%;
}

.slider__main {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.slider__image {
  display: block;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slider__content {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  max-width: 520px;
  width: calc(100% - 3rem);
  padding: 0.9rem 1.25rem 1.1rem;
  background: #ffffff;
  color: #111827;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.slider__tags {
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: center;
}

.slider__tag,
.slider__tag:visited {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: rgb(141, 179, 146);
  text-decoration: none !important;
}

.slider__tag:hover,
.slider__tag:focus,
.slider__tag:active {
  background: #f3f6f4;
  text-decoration: none !important;
}

.slider__title {
  font-size: 1.6rem;
  margin: 0.15rem 0 0.35rem;
}

.slider__title a {
  color: inherit;
  text-decoration: none;
}

.slider__title a:hover {
  text-decoration: none !important;
}

.slider__meta {
  font-size: 0.85rem;
  color: #9ca3af;
  display: flex;
  justify-content: center;
}

.slider__date i {
  margin-right: 0.35rem;
}

.slider__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.75rem;
  pointer-events: none;
}

.slider__nav-prev,
.slider__nav-next {
  list-style: none;
}

.slider__nav-prev .prev,
.slider__nav-next .next {
  pointer-events: auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.slider__nav-prev .prev:hover,
.slider__nav-next .next:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .slider__image {
    height: 260px;
  }

  .slider__content {
    max-width: 520px;
    width: calc(100% - 3rem);
    bottom: 1.25rem;
  }
}

@media (max-width: 640px) {
  .slider__image {
    height: 220px;
  }

  .slider__content {
    padding: 0.9rem 1rem 1.05rem;
    max-width: none;
    width: calc(100% - 1.25rem);
    bottom: 0.8rem;
  }

  .slider__title {
    font-size: 1.3rem;
  }
}

/* Paginazione della lista articoli */
.m51-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
  font-size: 0.95rem;
}
.m51-pager a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.m51-pager-info { color: #6b7280; margin: 0 auto; }

/* ============================================================
   Restyling scheda post (layout tipo scheda catalogo)
   ============================================================ */

.cr-breadcrumb {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.cr-breadcrumb-link,
.cr-breadcrumb-link:visited {
  color: #6b7280;
  text-decoration: none;
}

.cr-breadcrumb-link:hover {
  color: #3d6b52;
  text-decoration: none;
}

.cr-breadcrumb-sep {
  color: #d1d5db;
}

.cr-breadcrumb-current {
  color: #374151;
}

.cr-breadcrumb-type {
  color: #9ca3af;
}

.cr-cat-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  background: #e9f0ea;
  color: #3d6b52;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}

.cr-cat-badge:hover {
  background: #dde8df;
  color: #33594a;
  text-decoration: none;
}

/* Badge categoria + chip tag in testa alla scheda */

.cr-meta-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 1rem;
}

.cr-meta-chips .cr-cat-badge {
  margin-top: 0;
}

.cr-meta-chips .m51-post-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

/* Immagine principale + scheda tecnica */

.cr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin: 1.4rem 0 1.9rem;
}

.cr-hero > .cr-hero-figure:only-child,
.cr-hero > .cr-facts:only-child {
  grid-column: 1 / -1;
}

.cr-hero-figure {
  margin: 0;
  min-width: 0;
}

.cr-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.cr-hero-caption {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.5;
}

.cr-facts {
  background: #f7f7f4;
  border: 1px solid #ecebe5;
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
}

.cr-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e7e6e0;
}

.cr-fact:first-child {
  padding-top: 0;
}

.cr-fact:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cr-fact-icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  font-size: 1.25rem;
  color: #3d6b52;
}

.cr-fact-body {
  min-width: 0;
}

.cr-fact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.cr-fact-value {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2937;
}

/* Titoli di sezione con barra */

.cr-section-title {
  position: relative;
  font-size: 1.45rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.55rem;
}

.cr-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6rem;
  height: 2px;
  background: #374151;
}

.cr-map-section {
  margin-top: 2rem;
}

.cr-tags {
  margin-top: 2rem;
}

/* Mappa "Dove si trova" */

.cr-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: center;
}

.cr-map-frame {
  display: block;
  width: 100%;
  height: 250px;
  border: 1px solid #ecebe5;
  border-radius: 5px;
  background: #e9ede8;
}

.cr-map-actions {
  min-width: 0;
}

.cr-btn-osm {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  background: #3d6b52;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cr-btn-osm:visited {
  color: #ffffff;
}

.cr-btn-osm:hover,
.cr-btn-osm:focus {
  background: #33594a;
  color: #ffffff;
  text-decoration: none;
}

.cr-map-coords {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

/* Responsive scheda */

@media (max-width: 900px) {
  .cr-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .m51-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .m51-site-logo {
    height: 40px;
  }
}

@media (max-width: 640px) {
  .cr-map-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cr-map-frame {
    height: 210px;
  }

  .m51-related-list {
    grid-template-columns: 1fr;
  }

  .cr-section-title {
    font-size: 1.25rem;
  }
}
