.cms-page {
  background: #f7f9fc;
}

.cms-page.is-loading {
  min-height: 320px;
}

.cms-hero {
  display: block;
  box-sizing: border-box;
  min-height: 0;
  background: linear-gradient(180deg, #0b4c86 0%, #0462a4 55%, #023f70 100%);
  color: white;
  padding: 80px 28px 56px;
}

.cms-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.cms-hero h1,
.cms-section h2 {
  margin: 0;
  color: inherit;
}

.cms-hero h1 {
  font-size: clamp(3rem, 4.5vw, 4.6rem);
  line-height: 1;
}

.cms-hero p,
.cms-section p {
  line-height: 1.8;
}

.cms-hero p {
  max-width: 640px;
  margin: 20px 0 0;
  color: #dde9f5;
}

.cms-hero-media {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.cms-hero-media img,
.cms-image img,
.cms-gallery img,
.cms-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.cms-hero-media img {
  max-height: 520px;
}

.cms-hero-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.cms-hero-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
}

.cms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 15px 26px;
  border-radius: 999px;
  background: #ffcc33;
  color: #0b4c86;
  font-weight: 800;
  text-decoration: none;
}

.cms-section {
  box-sizing: border-box;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 58px 0;
  background: #f7f9fc;
  color: #1d2f4a;
}

.cms-section h2 {
  color: #0b4c86;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  text-align: center;
}

.cms-section > p {
  max-width: 900px;
  margin: 16px auto 0;
  color: #475569;
  text-align: center;
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.cms-card {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.cms-card img {
  height: 180px;
  margin: -6px 0 16px;
  border-radius: 14px;
}

.cms-card h3 {
  margin: 0 0 10px;
  color: #0b4c86;
}

.cms-card p {
  margin: 0;
  color: #475569;
}

.cms-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
  padding: 0;
  margin: 26px auto 0;
  list-style: none;
}

.cms-list li {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
  color: #213145;
  line-height: 1.7;
}

.cms-about-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 36px auto 0;
}

.cms-highlight-box {
  padding: 24px;
  border-radius: 20px;
  background: #0b4c86;
  color: white;
}

.cms-highlight-box h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.cms-highlight-box p {
  margin: 0;
  color: #dfe8f5;
  line-height: 1.8;
}

.cms-home-about {
  width: min(100% - 48px, 980px);
}

.cms-home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 48px;
  align-items: center;
}

.cms-home-about-copy h2 {
  margin: 0 0 26px;
  color: #0b4c86;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  text-align: left;
}

.cms-home-about-copy p {
  margin: 0 0 12px;
  color: #26364d;
  line-height: 1.45;
}

.cms-home-about-photos {
  display: grid;
  gap: 24px;
}

.cms-home-about-photos img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.cms-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  column-gap: 18px;
  row-gap: 34px;
  max-width: 980px;
  margin: 26px auto 0;
}

.cms-gallery figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.cms-gallery img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 240px;
  max-height: none;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.cms-image img {
  height: auto;
  max-height: 420px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.cms-gallery figcaption {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.35;
  min-height: 1.35em;
  padding: 0 2px;
  overflow-wrap: anywhere;
}

.cms-cta {
  text-align: left;
}

.cms-contact-map {
  width: 100%;
  height: 220px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
}

.cms-preview .cms-hero,
.cms-preview .cms-section {
  border-radius: 14px;
}

.cms-page[data-cms-page="canoagem"] {
  background: #ffffff;
}

.cms-page[data-cms-page="crossTrail"] {
  background: #ffffff;
}

body[data-cms-page="canoagem"] a.canoe-reserve[href="inscricoes.html"],
body[data-cms-page="canoagem"]:not(.is-logged-in) a.canoe-reserve[href="inscricoes.html"],
body[data-cms-page="crossTrail"] a.canoe-reserve[href="inscricoes.html"],
body[data-cms-page="crossTrail"]:not(.is-logged-in) a.canoe-reserve[href="inscricoes.html"] {
  display: flex !important;
}

.cms-canoagem-page {
  width: min(100% - 48px, 680px);
  margin: 0 auto;
  padding: 22px 0 0;
  background: #ffffff;
  color: #111827;
}

.canoe-photo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.canoe-photo-row img {
  width: 100%;
  aspect-ratio: 1.483 / 1;
  display: block;
  object-fit: cover;
}

.canoe-copy {
  margin-top: 38px;
  font-size: 19px;
  line-height: 1.22;
  color: #111827;
}

.canoe-copy p {
  margin: 0 0 7px;
}

.canoe-reserve {
  width: 128px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 8px auto 0;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.canoe-gallery-years {
  display: grid;
  justify-items: center;
  padding: 74px 0 0;
  text-align: center;
}

.canoe-gallery-years h2 {
  margin: 0 0 28px;
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.canoe-gallery-years article {
  margin: 0;
}

.canoe-gallery-years article + article {
  margin-top: 50px;
}

.canoe-gallery-years h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
}

.canoe-gallery-link {
  width: 245px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #9bd8f0;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cms-hero {
    padding: 60px 18px 38px;
  }

  .cms-hero-inner {
    grid-template-columns: 1fr;
  }

  .cms-home-about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cms-home-about-photos {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 680px) {
  .cms-canoagem-page {
    width: min(100% - 32px, 680px);
  }

  .canoe-photo-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .canoe-copy {
    margin-top: 28px;
    font-size: 17px;
  }

  .canoe-gallery-years {
    padding-top: 54px;
  }
}

@media (max-height: 950px) and (min-width: 900px) {
  .canoe-gallery-years article + article {
    margin-top: 4px;
  }

  .canoe-gallery-years h3 {
    margin-bottom: 4px;
  }
}
