/* Landing Gutenberg amb Banner */
.landing-template,
.landing-template * {
  box-sizing: border-box;
}

.landing-template {
  width: 100%;
  overflow-x: hidden;
  background: #ffffff;
  color: #1f1f1f;
  font-family: 'Merriweather', serif;
}

.landing-template__article {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Banner superior */
.landing-template__hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:
    linear-gradient(120deg, rgba(50,117,113,0.94), rgba(50,117,113,0.72)),
    var(--landing-hero-image, url('/wp-content/themes/campingsgirona/assets/images/default-hero.jpg')) center/cover no-repeat;
  padding: clamp(70px, 10vw, 120px) clamp(18px, 4vw, 40px) clamp(80px, 10vw, 125px);
  text-align: center;
  color: #ffffff;
}

.landing-template__hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(-50px, -4vw, -28px);
  width: 135%;
  height: clamp(70px, 8vw, 115px);
  background: #ffffff;
  transform: translateX(-50%) rotate(-2deg);
  transform-origin: center;
  z-index: 1;
}

.landing-template__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}

.landing-template__title {
  max-width: 980px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 7vw, 78px);
  line-height: 1.08;
  font-weight: 800;
  color: #ffffff;
  text-wrap: balance;
}

/* Contingut Gutenberg */
.landing-template__content {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 55px) clamp(16px, 4vw, 24px) clamp(45px, 7vw, 75px);
}

/* Amplada base dels blocs */
.landing-template__content > *:not(.alignfull):not(.alignwide) {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Blocs wide */
.landing-template__content > .alignwide {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

/* Blocs full width */
.landing-template__content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Textos */
.landing-template__content p {
  font-family: 'Merriweather', serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: clamp(18px, 3vw, 22px);
  color: #1f1f1f;
}

.landing-template__content p:last-child {
  margin-bottom: 0;
}

.landing-template__content h2,
.landing-template__content h3,
.landing-template__content h4 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Montserrat', sans-serif;
  color: #327571;
  line-height: 1.2;
}

.landing-template__content h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: clamp(38px, 6vw, 60px);
  margin-bottom: clamp(18px, 3vw, 26px);
  font-weight: 800;
}

.landing-template__content h3 {
  font-size: clamp(22px, 3vw, 32px);
  margin-top: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(16px, 3vw, 22px);
  font-weight: 800;
}

.landing-template__content h4 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin-top: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
  font-weight: 700;
}

/* Bloc destacat verd: aplica-ho posant classe "camping-any-highlight" al bloc de Gutenberg */
.landing-template__content .camping-any-highlight {
  max-width: 900px;
  margin: clamp(28px, 5vw, 38px) auto;
  padding: clamp(20px, 4vw, 28px);
  background: #f5faf9;
  border-left: 5px solid #327571;
  border-radius: 12px;
  font-family: 'Merriweather', serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  font-weight: 700;
  color: #327571;
}

.landing-template__content .camping-any-highlight p {
  margin-bottom: 0;
  color: #327571;
  font-weight: 700;
}

/* Botons Gutenberg */
.landing-template__content .wp-block-buttons {
  max-width: 900px;
  margin: clamp(30px, 5vw, 42px) auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-template__content .wp-block-button {
  margin: 0;
}

.landing-template__content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.8vw, 16px);
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: none;
}

/* Primer botó: principal */
.landing-template__content .wp-block-buttons .wp-block-button:first-child .wp-block-button__link {
  background: #EC6408;
  color: #ffffff !important;
  border: 2px solid #EC6408;
}

.landing-template__content .wp-block-buttons .wp-block-button:first-child .wp-block-button__link:hover {
  background: #327571;
  border-color: #327571;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Segon botó: secundari */
.landing-template__content .wp-block-buttons .wp-block-button:nth-child(2) .wp-block-button__link {
  background: #ffffff;
  color: #327571 !important;
  border: 2px solid #327571;
}

.landing-template__content .wp-block-buttons .wp-block-button:nth-child(2) .wp-block-button__link:hover {
  background: #327571;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Text social o notes: aplica classe "camping-any-social" al paràgraf */
.landing-template__content .camping-any-social {
  max-width: 900px;
  margin-top: 0;
  text-align: center;
  font-family: 'Merriweather', serif;
  font-size: clamp(15px, 1.8vw, 16px) !important;
  line-height: 1.6 !important;
  color: #555555;
}

/* Imatges */
.landing-template__content img {
  max-width: 100%;
  height: auto;
}

/* Ajustos de blocs */
.landing-template__content > *:first-child {
  margin-top: 0;
}

.landing-template__content > *:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .landing-template__hero {
    background-position: center center;
  }
}

@media (max-width: 640px) {
  .landing-template__hero {
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 76px;
  }

  .landing-template__hero::after {
    transform: translateX(-50%) rotate(-3deg);
  }

  .landing-template__content {
    padding-top: 34px;
  }

  .landing-template__content .camping-any-highlight {
    border-left-width: 4px;
  }

  .landing-template__content .wp-block-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .landing-template__content .wp-block-button,
  .landing-template__content .wp-block-button__link {
    width: 100%;
  }

  .landing-template__content .wp-block-button__link {
    min-height: 50px;
    padding: 14px 20px;
  }
}

@media (max-width: 380px) {
  .landing-template__title {
    font-size: 31px;
  }

  .landing-template__content .camping-any-highlight {
    padding: 18px;
  }
}