:root {
  --sv-dark: #172229;
  --sv-green: #00a306;
  --sv-green-dark: #087332;
  --sv-text: #26333a;
  --sv-muted: #66747c;
  --sv-soft: #eef4f0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 0;
  overflow-x: clip;
  color: var(--sv-text);
  font-family: Montserrat, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 10000002;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--sv-green-dark);
  transform: translateY(-120%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.navbar-main {
  position: relative;
  background: var(--sv-dark) !important;
}

.header-row {
  min-height: 96px;
  align-items: center;
}

#logo {
  width: 100%;
  max-width: 240px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.brand-mark:hover,
.brand-mark:focus {
  color: #fff;
  text-decoration: none;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tagline {
  margin-top: 0.35rem;
  color: #b9c7cd;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: var(--sv-green);
  vertical-align: middle;
}

.menu-icon span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.header-contact {
  padding: 0.6rem 1rem;
  border: 1px solid #7e9099;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-contact:hover,
.header-contact:focus {
  border-color: var(--sv-green);
  color: #fff;
  text-decoration: none;
}

#modalNavigation {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000001;
  overflow-y: auto;
  background: rgba(23, 34, 41, 0.98);
}

#modalNavigation.is-open {
  display: block;
}

#modalNavigation .modal-dialog {
  position: relative;
  width: min(92%, 720px);
  min-height: 100%;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
}

#modalNavigation .list-group-item {
  border: 0;
  background: transparent;
  text-align: center;
}

#modalNavigation .list-group a {
  display: inline-block;
  height: auto;
  padding: 1rem 0;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.2;
}

#modalNavigation .list-group a:hover,
#modalNavigation .list-group a:focus {
  color: #6fd676;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid #82939b;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.blog-intro {
  margin-top: 5rem !important;
}

h2.iblogs-line-title.iblogs-widget-heading {
  color: var(--sv-green);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem) !important;
  line-height: 1.05;
}

.blog-intro p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--sv-muted);
}

.iblogs-content .page-title {
  max-width: 1050px;
  margin: 0 auto 2rem;
  color: var(--sv-text);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.post-meta {
  display: block;
  margin: 0 auto 1.25rem !important;
  color: var(--sv-muted);
  font-size: 0.82rem;
  text-align: center;
}

.post-main-image {
  max-width: 1060px;
  margin: 0 auto;
}

.post-main-image img {
  aspect-ratio: 1024 / 600;
  border-radius: 10px;
  object-fit: cover;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  color: #243139;
  font-size: 1.03rem;
  line-height: 1.78;
}

.article-body section {
  scroll-margin-top: 1.5rem;
}

.article-body p,
.article-body ul {
  margin-bottom: 1.2rem;
}

.article-body li + li {
  margin-top: 0.55rem;
}

.article-body h2 {
  margin: 3rem 0 1rem;
  color: #15252d;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.article-body h3 {
  margin: 2rem 0 0.65rem;
  color: #233b45;
  font-size: 1.25rem;
  line-height: 1.3;
}

.reading-time {
  color: var(--sv-muted);
  font-size: 0.88rem;
  font-style: italic;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.plan-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem;
  border-left: 4px solid var(--sv-green);
  border-radius: 0 8px 8px 0;
  background: var(--sv-soft);
  line-height: 1.5;
}

.article-callout {
  margin: 2rem 0 3rem;
  padding: 1.3rem 1.5rem;
  border-radius: 8px;
  color: #fff;
  background: var(--sv-green-dark);
}

.iblogs-related-post {
  margin-top: 4rem;
}

.related-heading {
  margin-bottom: 1.5rem;
  color: var(--sv-text);
  font-size: 1.8rem;
  text-align: center;
}

.isl-iblogs .swiper-viewport {
  width: 100%;
  border: 0;
  overflow: hidden;
}

#carousel-rel-post {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

#carousel-rel-post::-webkit-scrollbar {
  display: none;
}

#carousel-rel-post .swiper-wrapper {
  display: flex;
  width: auto;
  gap: 1rem;
  flex-wrap: nowrap !important;
}

#carousel-rel-post .swiper-slide {
  width: auto;
  height: auto;
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
}

.post-image.position-relative.box {
  height: 320px;
  border-radius: 10px;
}

.post-image .box-img {
  width: 100%;
  height: 100% !important;
  border-radius: 10px;
  object-fit: cover;
}

.related_post {
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(13, 26, 32, 0.05) 20%, rgba(13, 26, 32, 0.92) 100%);
}

.iblogs-content .post-item .post-title,
.iblogs-related-post .post-title {
  color: #fff;
  font-size: 1.25rem !important;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.post-excerpt {
  color: #eef4f0;
  font-size: 0.83rem;
}

.card-label {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--sv-green-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swiper-pager {
  display: flex;
  position: static;
  width: 100%;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  line-height: 1;
}

.swiper-button-prev,
.swiper-button-next {
  display: inline-flex;
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #b5c2c7;
  border-radius: 50%;
  color: var(--sv-dark);
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
}

.swiper-viewport .swiper-button-prev,
.swiper-viewport .swiper-button-next {
  left: auto;
  right: auto;
  opacity: 1;
}

.swiper-button-prev::before,
.swiper-button-next::before {
  content: none;
}

.swiper-button-prev:disabled,
.swiper-button-next:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.swiper-viewport .swiper-button-prev:disabled,
.swiper-viewport .swiper-button-next:disabled {
  opacity: 0.35;
}

#about-us-block {
  background-image: linear-gradient(90deg, rgba(16, 29, 35, 0.3), rgba(16, 29, 35, 0.75)), url(../images/tramonto-sentieri-montagna.png) !important;
  background-position: center;
  background-size: cover;
}

#about-us-block p {
  color: #f2f6f4;
}

footer {
  background: var(--sv-dark) !important;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  text-align: left;
}

.footer-mark {
  align-items: flex-start;
  text-align: left;
}

.footer-brand p {
  margin: 0.8rem 0 0;
}

footer address {
  margin: 0;
  color: #c3cfd4;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.78rem;
}

.footer-legal {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #34434a;
  color: #8fa0a8;
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  #carousel-rel-post .swiper-slide {
    flex-basis: calc((100% - 1rem) / 2);
  }

  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .header-row {
    min-height: 82px;
  }

  #logo {
    max-width: 160px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: 0.45rem;
    letter-spacing: 0.1em;
  }

  .header-contact {
    padding: 0.45rem 0.55rem;
    font-size: 0.58rem;
  }

  .menu-icon {
    width: 2.7rem;
    height: 2.7rem;
  }

  .blog-intro {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }

  h2.iblogs-line-title.iblogs-widget-heading {
    margin-top: 0;
    font-size: 2.25rem !important;
  }

  .blog-intro p {
    padding: 0 0.25rem;
    font-size: 0.92rem;
  }

  .iblogs-content .page-title {
    font-size: 2rem;
  }

  .article-body {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .article-body h2 {
    margin-top: 2.5rem;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  #carousel-rel-post .swiper-slide {
    flex-basis: 88%;
  }

  .post-image.position-relative.box {
    height: 300px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-mark {
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    grid-column: auto;
    grid-template-columns: repeat(2, auto);
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  #carousel-rel-post {
    scroll-behavior: auto;
  }
}
