/* SEO: YouTube grid, landing chalé, CTAs — ver tools/seo_artifacts.py / build_i18n.py */
/* Skip link (a11y + SEO conteúdo principal) */
.vilapinho-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #1a3d2e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.vilapinho-skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}
/* Bloco conversão / artigo SEO home */
.vilapinho-seo-article header h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: #1a3d2e;
  margin-bottom: 0.75rem;
}
.vilapinho-seo-list {
  margin: 0.5rem 0 0 1.25rem;
  line-height: 1.6;
  color: #333;
}
.vilapinho-seo-internal {
  margin-top: 1.25rem;
  line-height: 1.8;
  font-size: 0.95rem;
}
.vilapinho-seo-internal a {
  color: #1a3d2e;
  font-weight: 500;
}
.vilapinho-seo-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Bloco isolado da secção anterior (evita texto gigante do slider sobrepor o título) */
#youtube-videos.vilapinho-seo-youtube {
  position: relative;
  z-index: 10;
  isolation: isolate;
  padding: 3.5rem 0 4.5rem;
  margin-top: 0;
  background: linear-gradient(180deg, #eef2ee 0%, #f7f9f6 35%, #ffffff 100%);
  border-top: 1px solid rgba(26, 61, 46, 0.12);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.07);
}
#vilapinho-yt-heading {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  color: #1a3d2e;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.vilapinho-yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.25rem;
}
button.vilapinho-yt-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(26, 61, 46, 0.08);
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
button.vilapinho-yt-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}
button.vilapinho-yt-card:focus-visible {
  outline: 2px solid #1a3d2e;
  outline-offset: 3px;
}
/* Modal YouTube */
.vilapinho-yt-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
}
.vilapinho-yt-modal[hidden] {
  display: none !important;
}
.vilapinho-yt-modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.vilapinho-yt-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vilapinho-yt-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
}
.vilapinho-yt-modal__close:focus-visible {
  outline: 2px solid #1a3d2e;
  outline-offset: 2px;
}
.vilapinho-yt-modal__title {
  margin: 0 2.5rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: #1a3d2e;
  line-height: 1.35;
}
.vilapinho-yt-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.vilapinho-yt-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
a.vilapinho-yt-modal__external {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a3d2e;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.vilapinho-yt-modal__external:hover {
  color: #0f2419;
}
.vilapinho-yt-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.vilapinho-yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vilapinho-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin-left: -34px;
  margin-top: -24px;
  background: rgba(26, 61, 46, 0.92);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.vilapinho-yt-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}
.vilapinho-yt-caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  color: #1a1a1a;
}
.vilapinho-youtube-seo-text {
  margin-top: 2rem;
  max-width: 52rem;
  line-height: 1.65;
  color: #333;
}
.vilapinho-seo-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.vilapinho-seo-cta-wrap a {
  text-decoration: none;
}
.vilapinho-yt-fail {
  color: #666;
  padding: 1rem;
}
/* Landing chalé */
.vilapinho-chale-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}
.vilapinho-chale-header .base-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.vilapinho-chale-logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: #1a3d2e;
  text-decoration: none;
}
.vilapinho-chale-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.vilapinho-chale-nav a {
  color: #333;
  text-decoration: none;
}
.vilapinho-chale-nav a:hover {
  text-decoration: underline;
}
.vilapinho-chale-main {
  padding: 2rem 0 4rem;
}
.vilapinho-chale-article h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  color: #1a3d2e;
}
.vilapinho-chale-article h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}
.vilapinho-chale-article h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}
.vilapinho-chale-article p {
  line-height: 1.65;
  color: #333;
}
.vilapinho-chale-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(26, 61, 46, 0.08);
  border-radius: 8px;
}
.vilapinho-chale-cta h3 {
  margin-top: 0;
  font-size: 1.25rem;
}
.vilapinho-chale-cta .vilapinho-seo-cta-wrap {
  margin-top: 0.75rem;
}
.vilapinho-chale-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  color: #555;
}
/* Links internos SEO (silos) entre landings chalé */
.vilapinho-chale-silo {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 56rem;
}
.vilapinho-chale-silo-title {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: #1a3d2e;
  font-weight: 600;
}
.vilapinho-chale-silo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.45rem 1rem;
  font-size: 0.85rem;
}
.vilapinho-chale-silo-list a {
  color: #555;
  text-decoration: none;
}
.vilapinho-chale-silo-list a:hover {
  text-decoration: underline;
  color: #1a3d2e;
}
/* Landings chalé no layout de página de projeto (ex.: chale-raizes) */
.vilapinho-chale-related-lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
}
.vilapinho-chale-silo--wrap {
  margin-top: 2rem;
}
.vilapinho-chale-silo--wrap .vilapinho-chale-silo {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  max-width: none;
}
.vilapinho-chale-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.vilapinho-chale-cta-row .primary-button {
  flex: 0 1 auto;
}
/* Cartões iguais à listagem de projetos (secção injetada em /chales/) */
.vilapinho-chale-projects-mirror .vilapinho-chale-models-intro {
  margin-bottom: 1.75rem;
}
.vilapinho-chale-projects-mirror .vilapinho-chale-models-intro a {
  color: #1a3d2e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.vilapinho-chale-projects-mirror .vilapinho-chale-models-intro a:hover {
  color: #0f2619;
}
/* Galeria de vídeos nas páginas de projeto (chale-alven, chale-raizes, …) */
/* Coluna única + largura total: fica sempre abaixo da grelha de fotos, não ao lado */
.vilapinho-project-media-block {
  display: block;
  width: 100%;
  max-width: 100%;
  clear: both;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 61, 46, 0.12);
  box-sizing: border-box;
}
.project-info .vilapinho-project-media-block {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 0;
}
.vilapinho-project-media-title {
  margin-bottom: 1rem;
}
.vilapinho-project-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}
.vilapinho-project-video-figure {
  margin: 0;
}
.vilapinho-project-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #1a1a1a;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
/* Subpáginas /projetos/: área de vídeo em 60% da largura anterior (visualização mais compacta) */
.inner-banner-section.project-page .vilapinho-project-video-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.inner-banner-section.project-page .vilapinho-project-video {
  width: 60%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.inner-banner-section.project-page .vilapinho-project-video-cap {
  width: 60%;
  max-width: 100%;
  text-align: center;
}
.vilapinho-project-video-cap {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(26, 61, 46, 0.75);
}

/* Carrossel em páginas de projeto: Raízes e Alven — imagem por cima, texto completo abaixo (evita corte lateral) */
.projects-slider.project-page .project-card:has(.project-link[href*="chale-raizes"]),
.projects-slider.project-page .project-card:has(.project-link[href*="chale-alven"]) {
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 0;
  overflow: visible;
}
.projects-slider.project-page .project-card:has(.project-link[href*="chale-raizes"]) .project-images-wrap,
.projects-slider.project-page .project-card:has(.project-link[href*="chale-alven"]) .project-images-wrap {
  order: 1;
  width: 100%;
  max-height: none;
  margin-bottom: 1.25rem;
}
.projects-slider.project-page .project-card:has(.project-link[href*="chale-raizes"]) .project-card-left-wrap,
.projects-slider.project-page .project-card:has(.project-link[href*="chale-alven"]) .project-card-left-wrap {
  order: 2;
  max-width: none;
  width: 100%;
  margin-right: 0;
}
.projects-slider.project-page .project-card:has(.project-link[href*="chale-raizes"]) .project-button,
.projects-slider.project-page .project-card:has(.project-link[href*="chale-alven"]) .project-button {
  order: 3;
  margin-left: 0;
  padding-bottom: 0;
  align-self: flex-start;
}
.projects-slider.project-page .project-card:has(.project-link[href*="chale-raizes"]) .project-vertical-image,
.projects-slider.project-page .project-card:has(.project-link[href*="chale-alven"]) .project-vertical-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.projects-slider.project-page .project-card:has(.project-link[href*="chale-raizes"]) .project-horizontal-image,
.projects-slider.project-page .project-card:has(.project-link[href*="chale-alven"]) .project-horizontal-image {
  display: none;
}
