/* ==========================================================================
   BLUEFIT LANDING PAGE - BRAND IDENTITY SYSTEM (PADRONIZADO PARA DUPLICAÇÃO)
   ========================================================================== */

/* 1. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bf-blue);
  color: var(--bf-white);
  overflow-x: hidden;
  position: relative;
  font-weight: 400; /* Stolzl Book */
  padding-bottom: 0;
}

strong, b {
  font-weight: 400 !important;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--bf-magenta);
  color: var(--bf-white);
}

/* 2. LAYOUT & CONTAINERS */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  position: relative;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-blue {
  background-color: var(--bf-blue);
  color: var(--bf-white);
}

.section-dark {
  background-color: var(--bf-dark);
  color: var(--bf-white);
}

.section-white {
  background-color: var(--bf-white);
  color: var(--bf-dark);
}

/* 3. BOTÕES DE CONVERSÃO RETOS (PESO REGULAR 500) */
.btn, .btn *, .btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-stolzl);
  font-size: 1.05rem;
  font-weight: 500 !important; /* Stolzl Regular */
  letter-spacing: 0.01em;
  text-transform: none;
}

.btn {
  padding: 18px 40px;
  font-size: 1.05rem;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  white-space: nowrap;
  border: none;
}

.btn-sm {
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 500;
}

.btn-lg {
  padding: 20px 48px;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Botão Magenta Oficial */
.btn-magenta {
  background-color: var(--bf-magenta);
  color: var(--bf-white);
}

.btn-magenta:hover {
  background-color: #B00060;
}

/* Botão Branco */
.btn-white {
  background-color: var(--bf-white);
  color: var(--bf-blue);
}

.btn-white:hover {
  background-color: var(--bf-cyan);
  color: var(--bf-dark);
}

/* Botão Ciano Oficial com Texto Dark */
.btn-cyan {
  background-color: var(--bf-cyan);
  color: var(--bf-dark);
}

.btn-cyan:hover {
  background-color: #00C8E0;
  color: var(--bf-dark);
}

/* Botão WhatsApp Oficial */
.btn-whatsapp {
  background-color: var(--bf-whatsapp);
  color: var(--bf-white);
}

.btn-whatsapp:hover {
  background-color: #1eb956;
}

.btn-icon-only {
  padding: 12px 18px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* 4. CABEÇALHO (ELEMENTOS SEPARADOS: NOME DA UNIDADE + ENDEREÇO) */
.header {
  position: relative;
  width: 100%;
  background-color: var(--bf-blue);
  padding: 24px 0;
  opacity: 1;
}

.header-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: flex-end;
}

.header-logo img {
  height: 39.6px; /* 10% menor que 44px */
  width: auto;
  display: block;
}

.header-unit-info {
  display: inline-flex;
  align-items: flex-end;
  gap: 16px;
  white-space: nowrap;
  line-height: 1;
}

.header-unit-name {
  font-size: 1.05rem;
  font-weight: 500; /* Stolzl Regular */
  color: var(--bf-white);
  line-height: 1;
  margin: 0;
  padding: 0;
}

.header-unit-address {
  font-size: 0.84rem;
  font-weight: 400; /* Stolzl Book */
  color: var(--bf-cyan);
  line-height: 1;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }

  .header-container {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  
  .header-unit-info {
    font-size: 0.85rem;
    white-space: normal;
  }
}

/* 5. BANNER DE CAMPANHA (SETEMBRO) */
.campaign-banner-section {
  position: relative;
  width: 100%;
  background-color: var(--bf-blue);
  line-height: 0;
}

.campaign-banner-wrapper {
  width: 100%;
  margin: 0 auto;
}

.campaign-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 6. LETREIRO OFICIAL (LINHA ÚNICA EM CIANO ELÉTRICO, 1.5rem, PESO REGULAR) */
.marquee-ticker-cyan {
  background-color: var(--bf-cyan);
  color: var(--bf-dark);
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  z-index: 10;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-item span {
  font-size: 1.5rem;
  font-weight: 500; /* Stolzl Regular */
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--bf-dark);
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.marquee-symbol {
  width: 26px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Letreiro Magenta com Rolagem para a Esquerda */
.marquee-ticker-magenta {
  background-color: var(--bf-magenta);
  color: var(--bf-dark);
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  z-index: 10;
  white-space: nowrap;
}

.marquee-ticker-magenta .marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-ticker-magenta .marquee-track:hover {
  animation-play-state: paused;
}

.marquee-ticker-magenta .marquee-item span {
  font-size: 1.5rem;
  font-weight: 500; /* Stolzl Regular */
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--bf-dark);
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

/* 7. SEPARADORES EM DIAGONAL OFICIAL (~8.717°) */
.diagonal-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  z-index: 5;
  overflow: hidden;
}

.diagonal-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (min-width: 768px) {
  .diagonal-divider svg {
    height: 90px;
  }
}

@media (min-width: 1200px) {
  .diagonal-divider svg {
    height: 110px;
  }
}

/* 8. SEÇÃO: TUDO O QUE VOCÊ PRECISA NA BLUEFIT [NOME DA UNIDADE] */
.hero-highlights-section {
  background-color: var(--bf-blue);
  color: var(--bf-white);
  padding: 80px 0 0 0;
  position: relative;
}

.diff-header-container {
  max-width: var(--container-max-width);
  margin: 0 auto 48px auto;
  padding: 0 var(--container-padding);
}

.section-main-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400; /* Stolzl Book */
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--bf-white);
  max-width: 1100px;
}

/* Linhas estruturais horizontais contínuas (Dark Blue #0C0040) */
.grid-line-horizontal {
  width: 100%;
  height: 8px;
  background-color: var(--bf-dark);
}

/* Grid Hero 5/8 (62.5%) / 3/8 (37.5%) */
.modulos-hero-row {
  display: grid;
  grid-template-columns: 62.5% 37.5%;
  background-color: var(--bf-dark);
  gap: 8px;
  width: 100%;
}

.modulos-photo-left {
  background-color: var(--bf-dark);
  height: 100%;
  min-height: 580px;
  position: relative;
  overflow: hidden;
}

.modulos-photo-left img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: -12%;
  left: 0;
  will-change: transform;
}

.modulos-hero-content {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.modulos-hero-cell {
  background-color: var(--bf-blue);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Rótulos de Apoio Uniformizados (1.5rem, Regular 500) */
.hero-label-aux {
  font-size: 1.5rem;
  font-weight: 500; /* Stolzl Regular */
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--bf-cyan);
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Tipografia Monumental para "+230" (Book 400) */
.hero-giant-number {
  font-size: clamp(4.5rem, 7.5vw, 7rem);
  font-weight: 400; /* Stolzl Book */
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--bf-white);
  margin-bottom: 8px;
}

/* Descrição (0.84rem, Book 400) */
.hero-desc-text {
  font-size: 0.84rem;
  font-weight: 400; /* Stolzl Book */
  line-height: 1.55;
  color: var(--bf-white);
}

/* Tipografia Imponente para "todos os dias" (Book 400) */
.hero-giant-expression {
  font-size: clamp(2.8rem, 4.8vw, 4.4rem);
  font-weight: 400; /* Stolzl Book */
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--bf-white);
  margin-bottom: 14px;
}

/* Grid das 4 Características em Ciano com Texto Azul Escuro (1.5rem, Regular 500) */
.amenities-4col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background-color: var(--bf-dark);
  gap: 8px;
  width: 100%;
}

.amenities-4col-cell {
  background-color: var(--bf-cyan);
  color: var(--bf-dark);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 96px;
}

.amenities-4col-cell h3 {
  font-size: 1.5rem;
  font-weight: 500; /* Stolzl Regular */
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--bf-dark);
}

/* 9. STRIP DE FOTO DE LARGURA TOTAL COM TOPO RETO E BASE DIAGONAL INVERTIDA */
.diagonal-photo-strip-section {
  width: 100%;
  position: relative;
  background-color: var(--bf-blue);
  padding: 0;
  overflow: hidden;
}

.diagonal-photo-strip {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
  background-color: var(--bf-dark);
}

.diagonal-photo-strip img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: -15%;
  left: 0;
  will-change: transform;
}

/* 10. AULAS COLETIVAS (MODALIDADES E SUBHEADLINE EM REGULAR 500) */
.classes-editorial-section {
  background-color: var(--bf-blue);
  color: var(--bf-white);
  padding: 80px 0 0 0;
  position: relative;
  overflow: hidden;
}

.classes-editorial-split {
  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%;
  align-items: stretch;
}

.classes-editorial-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px 60px 80px calc((100vw - var(--container-max-width)) / 2 + var(--container-padding));
}

@media (max-width: 1720px) {
  .classes-editorial-left {
    padding-left: var(--container-padding);
  }
}

.classes-editorial-title {
  font-size: clamp(4.5rem, 7.5vw, 7rem); /* Tamanho monumental unificado com +230 */
  font-weight: 400; /* Stolzl Book */
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--bf-white);
  margin-bottom: 24px;
}

/* Subheadline (1.5rem, Regular 500) */
.classes-editorial-subheadline {
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--bf-cyan);
  font-weight: 500; /* Stolzl Regular */
  max-width: 100%;
}

/* Modalidades em Grid Modular */
.modalities-modular-wrapper {
  position: relative;
  width: 100%;
  border-left: 8px solid var(--bf-dark);
  border-top: 8px solid var(--bf-dark);
}

.modalities-modular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bf-dark);
  gap: 8px;
  width: 100%;
}

.modality-modular-cell {
  background-color: var(--bf-blue);
  padding: 48px 36px;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.modality-modular-cell.cell-double-height {
  padding: 48px 36px 96px 36px;
  min-height: 350px;
}

/* Nomes das modalidades (1.5rem, Regular 500) */
.modality-modular-cell h4 {
  font-size: 1.5rem;
  font-weight: 500; /* Stolzl Regular */
  letter-spacing: -0.02em;
  color: var(--bf-white);
  margin-bottom: 10px;
}

.modality-modular-cell p {
  font-size: 0.84rem;
  font-weight: 400; /* Stolzl Book */
  line-height: 1.55;
  color: var(--bf-white);
}

/* 11. ESTRUTURA DE ALTO PADRÃO (COM PARALLAX FLUIDO) */
.structure-section {
  background-color: var(--bf-white);
  color: var(--bf-dark);
}

.structure-section-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400; /* Stolzl Book */
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--bf-dark);
  margin-bottom: 48px;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.structure-item {
  position: relative;
  background-color: var(--bf-dark);
  overflow: hidden;
}

.structure-item.col-6 {
  grid-column: span 6;
  height: 480px;
}

.structure-item.col-4 {
  grid-column: span 4;
  height: 400px;
}

.structure-item img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
  will-change: transform;
}

.structure-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--bf-blue);
  color: var(--bf-white);
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 400; /* Stolzl Book */
  text-transform: none;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* 12. LOCALIZAÇÃO (FUNDO CIANO, TEXTOS DARK, BOTÃO CONTORNADO) */
.location-section {
  background-color: var(--bf-cyan);
  color: var(--bf-dark);
  padding: 0;
  position: relative;
}

.location-split-layout {
  display: grid;
  grid-template-columns: 37.5% 62.5%;
  min-height: 520px;
}

.location-text-side {
  padding: 80px 48px 80px calc((100vw - var(--container-max-width)) / 2 + var(--container-padding));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1720px) {
  .location-text-side {
    padding-left: var(--container-padding);
  }
}

.location-address-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400; /* Stolzl Book */
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 20px;
  color: var(--bf-dark);
}

.location-address-info {
  font-size: 0.84rem;
  font-weight: 400; /* Stolzl Book */
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--bf-dark);
}

/* Botão Ciano com Contorno Dark */
.location-section .btn-cyan-outlined {
  background-color: var(--bf-cyan);
  color: var(--bf-dark) !important;
  border: 2px solid var(--bf-dark);
}

.location-section .btn-cyan-outlined:hover {
  background-color: var(--bf-dark);
  color: var(--bf-cyan) !important;
}

.location-map-side {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background-color: var(--bf-dark);
  position: relative;
}

.location-map-side iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 2;
}

/* 13. GALERIA DE FOTOS DA UNIDADE (BORDAS DE 8px IDÊNTICAS A AULAS COLETIVAS) */
.unit-gallery-section {
  background-color: var(--bf-dark);
  padding: 8px 0; /* Bordas superior e inferior de 8px */
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gallery-carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.gallery-carousel-track {
  display: flex;
  align-items: center;
  gap: 8px; /* Borda divisória de 8px entre as fotos */
  animation: galleryMarqueeReverse 32s linear infinite;
  width: max-content;
}

.gallery-carousel-track:hover {
  animation-play-state: paused;
}

.gallery-photo-item {
  display: block;
  flex-shrink: 0;
  width: 384px; /* Ampliação de 20% */
  height: 276px; /* Ampliação de 20% */
  overflow: hidden;
  background-color: var(--bf-dark);
  cursor: pointer;
  position: relative;
}

.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.gallery-photo-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

@keyframes galleryMarqueeReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* Modal Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 0, 64, 0.94);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 3px solid var(--bf-cyan);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: var(--bf-cyan);
  color: var(--bf-dark);
  border: none;
  font-size: 2rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 14. RODAPÉ MINIMALISTA */
.footer-minimal {
  background-color: var(--bf-dark);
  padding: 72px 0 156px 0; /* 72px respiro superior, 84px altura da barra fixa + 72px respiro inferior livre */
  margin: 0;
}

.footer-minimal-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-minimal-logo img {
  height: 64px;
  width: auto;
}

.footer-minimal-instagram a {
  color: var(--bf-white);
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.footer-minimal-instagram a:hover {
  opacity: 0.8;
}

/* 15. BARRA FIXA INFERIOR */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bf-blue);
  padding: 18px 0;
  z-index: 1000;
  clip-path: none;
}

.fixed-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fixed-bottom-symbol {
  height: 32px;
  width: auto;
  display: block;
}

.fixed-bottom-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Botão Matricule-se Online com texto e seta em Branco */
.fixed-bottom-actions .btn-magenta {
  height: 48px;
  padding: 0 28px;
  color: var(--bf-white) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fixed-bottom-actions .btn-magenta svg {
  stroke: var(--bf-white) !important;
  color: var(--bf-white) !important;
}

/* Botão WhatsApp com mesma altura (48px), símbolo em branco e alinhamento horizontal */
.fixed-bottom-actions .btn-whatsapp {
  height: 48px;
  width: 48px;
  padding: 0;
  color: var(--bf-white) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fixed-bottom-actions .btn-whatsapp svg {
  fill: var(--bf-white) !important;
  color: var(--bf-white) !important;
}

/* Modal Lightbox de Conversão (Formulário YayForms) */
.white-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.white-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.white-lightbox-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 13, 158, 0.88);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.white-lightbox-card {
  position: relative;
  z-index: 2101;
  width: 95%;
  max-width: 620px;
  height: 708px;
  max-height: 92vh;
  background-color: #0078ff;
  color: var(--bf-white);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.white-lightbox-body {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.white-lightbox-body .yf-v1-widget,
.white-lightbox-body [data-yf-widget],
.white-lightbox-body iframe {
  width: 100% !important;
  height: 100% !important;
  flex: 1;
  border: none !important;
  border-radius: 10px;
  display: block;
}

.white-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2105;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.white-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #deff00;
  transform: scale(1.08);
}

/* 16. RESPONSIVIDADE */
@media (max-width: 1200px) {
  .modulos-hero-row {
    grid-template-columns: 1fr;
  }

  .amenities-4col-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .classes-editorial-split {
    grid-template-columns: 1fr;
  }

  .classes-editorial-left {
    padding: 0 var(--container-padding) 48px var(--container-padding);
  }

  .structure-item.col-6,
  .structure-item.col-4 {
    grid-column: span 6;
    height: 360px;
  }

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

  .location-text-side {
    padding: 60px var(--container-padding);
  }

  .location-map-side {
    height: 400px;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--container-padding-mobile);
  }

  /* 1. TOPO (AUMENTO DE 40% NA ALTURA EXCLUSIVO NO MOBILE) */
  .header {
    padding: 20px 0;
  }

  .header-container {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .header-logo {
    display: flex;
    align-items: flex-end;
  }

  .header-logo img {
    height: 18px; /* 25% maior que 14px */
    width: auto;
    display: block;
  }

  .header-unit-info {
    display: flex;
    align-items: flex-end;
  }

  .header-unit-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bf-white);
    padding: 0;
    margin: 0;
    line-height: 1; /* Alinhamento base com base */
  }

  .header-unit-address {
    display: none !important; /* Ocultar endereço no mobile */
  }

  .section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  /* 2. DIVISOR DIAGONAL REDUZIDO EM 50% & FOTO COM 30% DA ALTURA */
  .diagonal-divider svg {
    height: 30px !important;
  }

  .modulos-photo-left {
    min-height: 175px !important;
    height: 175px !important;
  }

  .modulos-photo-left img {
    height: 100% !important;
    top: 0 !important;
    transform: none !important;
  }

  /* 3. ALINHAMENTO À ESQUERDA NOS CARDS +230 E TODOS OS DIAS */
  .modulos-hero-cell {
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  /* 4. DIFERENCIAIS ALINHADOS À ESQUERDA, ALTURA -20% E TEXTO -20% */
  .amenities-4col-grid {
    grid-template-columns: 1fr;
  }

  .amenities-4col-cell {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
    min-height: 76px !important; /* Redução de 20% em relação a 96px */
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  /* Redução de 20% aplicada a todos os locais com o mesmo padrão de texto (1.5rem -> 1.2rem) */
  h3, h4, h5, h6, .title-card,
  .amenities-4col-cell h3,
  .hero-label-aux,
  .classes-editorial-subheadline,
  .modality-modular-cell h4,
  .marquee-item span,
  .marquee-ticker-magenta .marquee-item span {
    font-size: 1.2rem !important;
  }

  /* 5. AULAS COLETIVAS (SEM PIXEL SOBRANDO, SEM BORDA ESQUERDA, 2 COLUNAS) */
  .diagonal-photo-strip-section {
    margin-bottom: -1px;
    background-color: var(--bf-blue);
  }

  .diagonal-photo-strip {
    height: 260px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 35px), 0 100%);
  }

  .classes-editorial-section {
    margin-top: -1px;
    padding-top: 40px;
  }

  .modalities-modular-wrapper {
    border-left: none !important; /* Remover borda esquerda no mobile */
  }

  .modalities-modular-grid {
    grid-template-columns: 1fr 1fr !important; /* Organizado em 2 colunas */
    gap: 6px;
  }

  .modality-modular-cell {
    padding: 24px 16px !important;
    min-height: 125px !important;
  }

  .modality-modular-cell.cell-double-height {
    min-height: 220px !important;
    padding: 24px 16px 40px 16px !important;
  }

  /* 6. ESTRUTURA DE ALTO PADRÃO (-30% NA ALTURA DAS IMAGENS) */
  .structure-item.col-6,
  .structure-item.col-4 {
    grid-column: span 12;
    height: 196px !important; /* Redução de 30% em relação a 280px */
  }

  .structure-item img {
    height: 120% !important;
    top: -10% !important;
  }

  /* 7. GALERIA E RODAPÉ (SEM LINHA AZUL DE 1PX ENTRE ELES) */
  .unit-gallery-section {
    margin-bottom: -1px;
    background-color: var(--bf-dark);
  }

  .gallery-photo-item {
    width: 288px; /* 20% maior que 240px */
    height: 216px; /* 20% maior que 180px */
  }

  .footer-minimal {
    margin-top: -1px;
    border-top: none !important;
    background-color: var(--bf-dark);
    padding: 48px 0 128px 0; /* 48px respiro superior, 72px altura da barra fixa + 56px respiro inferior livre */
  }

  /* 8. BOTÕES DO RODAPÉ (SIMETRIA TOTAL E MARGENS PERFEITAMENTE IGUAIS) */
  .fixed-bottom-bar {
    clip-path: none;
    padding: 12px 0;
    left: 0;
    right: 0;
    width: 100vw;
    box-sizing: border-box;
  }

  .fixed-bottom-container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px !important;
    margin: 0 auto;
    display: block !important;
    box-sizing: border-box;
  }

  .fixed-bottom-brand,
  .fixed-bottom-symbol {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fixed-bottom-actions {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .fixed-bottom-actions .btn-magenta {
    flex: 1 1 auto !important;
    width: auto !important;
    height: 48px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .fixed-bottom-actions .btn-whatsapp {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .section .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .white-lightbox-card {
    width: 95%;
    max-width: 100%;
    height: 560px;
    max-height: 88vh;
    padding: 10px;
    border-radius: 12px;
  }
}
