
/* ---- base.css ---- */
:root {
  --primary-color: #593621;
  --secondary-color: #F4EBDC;
  --accent-color: #8B4513;
  --white: #FFFFFF;
  --gray: #333333;
  --transition: all 0.3s ease-in-out;
}

/* Importação da fonte e reset básico */
@font-face {
  font-family: 'Futura PT Medium';
  src: url('../fonts/FuturaPTMedium.woff2') format('woff2'),
       url('../fonts/FuturaPTMedium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Melhora a performance de carregamento */
}
@font-face {
  font-family: 'Futura PT Book';
  src: url('../fonts/FuturaPTBook.woff2') format('woff2'),
       url('../fonts/FuturaPTBook.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura PT Light';
  src: url('../fonts/FuturaPTLight.woff2') format('woff2'),
       url('../fonts/FuturaPTLight.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Futura PT Medium', sans-serif;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
  top: 0 !important;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ===============================
   CLASSE UNIVERSAL PARA TÍTULOS DE SECÇÃO
   =============================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 auto 3rem auto; /* Centraliza e adiciona margem inferior */
    position: relative;
    color: var(--primary-color);
    padding-bottom: 1rem;
    max-width: 90%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}
p.address-line {
  margin: 0;
  line-height: 1.6;
}

/* ===============================
   GOOGLE TRANSLATE CLEANUP
   =============================== */
#google-translate-element,
.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
}

iframe.goog-te-banner-frame,
iframe.goog-te-menu-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body > .skiptranslate {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

.brand-name {
  font-style: inherit;
  font-weight: inherit;
}

/* ===============================
   RESPONSIVE TABLES / UI SCALE
   =============================== */
:root {
  --font-base: clamp(14px, 0.9vw, 16px);
  --font-small: clamp(12px, 0.8vw, 14px);
  --cell-pad: clamp(0.4rem, 0.7vw, 0.65rem);
}

body {
  font-size: var(--font-base);
}

.card table,
.tabela-simulador {
  width: 100%;
  table-layout: auto;
}

.card th,
.card td,
.tabela-simulador th,
.tabela-simulador td {
  font-size: var(--font-small);
  padding: var(--cell-pad);
}

@media (max-width: 1100px) {
  :root {
    --font-base: clamp(13px, 1.1vw, 15px);
    --font-small: clamp(11.5px, 1vw, 13.5px);
    --cell-pad: clamp(0.35rem, 0.6vw, 0.55rem);
  }
}

@media (max-width: 900px) {
  :root {
    --font-base: clamp(12.5px, 1.4vw, 14px);
    --font-small: clamp(11px, 1.2vw, 13px);
    --cell-pad: clamp(0.3rem, 0.55vw, 0.5rem);
  }
}

@media (max-width: 720px) {
  :root {
    --font-base: clamp(12px, 1.6vw, 13.5px);
    --font-small: clamp(10.5px, 1.4vw, 12.5px);
    --cell-pad: clamp(0.28rem, 0.5vw, 0.45rem);
  }
}

/* ---- header.css ---- */
/* HEADER */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 103;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(0.85rem + env(safe-area-inset-top)) 5% 0.75rem;
  box-sizing: border-box;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.hero-header:not(.scrolled):not(.menu-open) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.hero-header.scrolled,
.hero-header.menu-open {
  background: rgba(244, 235, 220, 0.94);
  background-color: rgba(244, 235, 220, 0.94);
  box-shadow: 0 6px 24px rgba(89, 54, 33, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-header.is-hidden {
  transform: translateY(calc(-100% - env(safe-area-inset-top)));
}

.hero-header .logo img {
  height: clamp(62px, 8vw, 88px);
  width: auto;
  transition: height 0.3s ease, filter 0.3s ease;
}

.hero-header.scrolled .logo img,
.hero-header.menu-open .logo img {
  height: clamp(50px, 7vw, 74px);
}

/* NAV DESKTOP */
nav.navbar {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  position: relative;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 400; /* sem negrito */
  padding: 0.3rem 0;
  transition: var(--transition);
  white-space: nowrap;
}

.main-menu li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

.main-menu li a:hover::after,
.main-menu li a.active::after {
  width: 100%;
}

.main-menu li a:hover {
  color: var(--primary-color);
}

.main-menu li a.active {
  color: var(--primary-color);
  font-weight: 400; /* mantém suave */
}

/* DIVISOR */
.divider {
  color: var(--primary-color);
  opacity: 0.7;
  font-weight: normal;
  font-size: 1.1rem;
}

/* LANGUAGES */
.languages {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
}

.languages span {
  padding: 0.3rem 0.4rem;
  background: none;
  color: var(--gray);
  transition: var(--transition);
  opacity: 0.6;
}

.languages span:hover,
.languages span.active {
  opacity: 1;
  font-weight: 400;
  color: var(--primary-color);
}

/* ÁREA CLIENTE (desktop) – mesma cor que o menu, sem sublinhado/azul */
.area-cliente-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
  color: var(--primary-color);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: var(--transition);
  white-space: nowrap;
}

.area-cliente-link i {
  font-size: 1rem;
}

.area-cliente-link:hover {
  opacity: 0.9;
}

.area-cliente-link:focus {
  outline: none;
}

.area-cliente-link:visited {
  color: var(--primary-color);
}

.area-cliente-link:focus,
.area-cliente-link:visited {
  text-decoration: none !important;
}

/* BOTÃO HAMBÚRGUER ANIMADO */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 104;
}

.menu-toggle .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-toggle .top {
  top: 0;
}

.menu-toggle .middle {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle .bottom {
  bottom: 0;
}

.menu-toggle.open .top {
  transform: rotate(45deg) translateY(12px);
  top: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-toggle.open .middle {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-toggle.open .bottom {
  transform: rotate(-45deg) translateY(-12px);
  bottom: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* MOBILE MENU ANIMADO */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(244, 235, 220, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(89, 54, 33, 0.08);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0 5%;
  z-index: 102;
  box-sizing: border-box;
  width: 100%;
}

.mobile-menu.show {
  max-height: 500px;
  opacity: 100%;
  transform: translateY(0);
  padding: 1rem 5%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Animação de entrada para os itens do menu */
.mobile-menu.show .mobile-links li {
  animation: slideInMenu 0.6s ease-out forwards;
}

.mobile-menu.show .mobile-links li:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu.show .mobile-links li:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-menu.show .mobile-links li:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-menu.show .mobile-links li:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-menu.show .mobile-links li:nth-child(5) {
  animation-delay: 0.5s;
}

.mobile-menu.show .mobile-languages {
  animation: slideInMenu 0.7s ease-out 0.6s forwards;
}

@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* LINKS DO MENU */
.mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 400;
  font-size: 1.05rem;
  opacity: 0.8;
  transition: var(--transition);
}

.mobile-links a.active {
  opacity: 1;
  color: var(--primary-color);
}

.mobile-links a:hover {
  opacity: 1;
}

/* LINGUAGEM MOBILE */
.mobile-languages {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.mobile-languages span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray);
  opacity: 0.9;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-languages span.active,
.mobile-languages span:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* Área Cliente (mobile) */
.mobile-area-cliente {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  text-decoration: none !important;
  color: var(--primary-color);
  font-weight: 400;
  font-size: 1rem;
  border-top: 1px solid var(--light-gray);
  transition: var(--transition);
}

.mobile-area-cliente:hover {
  opacity: 0.9;
}

.mobile-area-cliente:focus,
.mobile-area-cliente:visited {
  text-decoration: none !important;
  color: var(--primary-color);
}

.mobile-area-cliente i {
  font-size: 1.1rem;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .hero-header {
    padding: calc(0.7rem + env(safe-area-inset-top)) 3% 0.65rem;
    max-width: 100%;
  }

  .hero-header .logo {
    flex: 1;
  }

  .hero-header .navbar {
    display: none;
  }

  .hero-header .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 0.5rem;
    order: 2;
  }

  .hero-header .main-menu,
  .hero-header .divider,
  .hero-header .languages {
    display: none;
  }

  /* Ativar sublinhado para menu mobile mesmo em tablets */
  .mobile-links a {
    position: relative;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.8;
    transition: var(--transition);
    padding-bottom: 0.2rem;
  }

  .mobile-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
  }

  .mobile-links a:hover,
  .mobile-links a.active {
    opacity: 1;
  }

  .mobile-links a.active::after,
  .mobile-links a:hover::after {
    width: 100%;
  }

  /* Idiomas mobile visíveis com estilo ativo */
  .mobile-languages {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: center;
    gap: 0.6rem;
  }

  .mobile-languages span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray);
    opacity: 0.6;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-languages span.active,
  .mobile-languages span:hover {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 500;
  }
}


@media (max-width: 768px) {
  /* HEADER em mobile com padding correto */
  .hero-header {
    width: 100%;
    padding: calc(0.6rem + env(safe-area-inset-top)) 3% 0.55rem;
    max-width: 100%;
  }

  /* LOGO menor */
  .hero-header .logo img {
    height: clamp(54px, 12vw, 66px);
  }

  /* Botão hambúrguer mais pequeno e à direita */
  .hero-header .menu-toggle {
    width: 24px;
    height: 18px;
    margin-left: auto;
    margin-right: 0.35rem;
  }

  .hero-header .menu-toggle .bar {
    height: 2px;
  }

  .hero-header .menu-toggle.open .top {
    top: 8px;
  }

  .hero-header .menu-toggle.open .bottom {
    bottom: 8px;
  }

  /* Menu mobile com padding mais compacto */
  .mobile-menu {
    padding: 0 3%;
  }

  .mobile-menu.show {
    padding: 0.8rem 3%;
  }

  /* LINKS DO MENU COM ACTIVE SUBLINHADO */
  .mobile-links a {
    position: relative;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition);
    padding-bottom: 0.2rem;
  }

  .mobile-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
  }

  .mobile-links a:hover,
  .mobile-links a.active {
    opacity: 1;
  }

  .mobile-links a.active::after,
  .mobile-links a:hover::after {
    width: 100%;
  }

  /* IDIOMAS MOBILE COM DESTAQUE ATIVO */
  .mobile-languages {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: center;
    gap: 0.6rem;
  }

  .mobile-languages span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray);
    opacity: 0.6;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-languages span.active,
  .mobile-languages span:hover {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 500; /* ligeiramente mais forte */
  }
}


.hero-header:not(.scrolled):not(.menu-open) .navbar .main-menu a,
.hero-header:not(.scrolled):not(.menu-open) .divider,
.hero-header:not(.scrolled):not(.menu-open) .languages span,
.hero-header:not(.scrolled):not(.menu-open) .area-cliente-link {
  color: var(--white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0.85;
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero-header {
    padding: calc(0.4rem + env(safe-area-inset-top)) 4% 0.35rem;
  }

  .hero-header .logo img {
    height: clamp(42px, 30vh, 56px);
  }

  .hero-header .divider,
  .hero-header .languages {
    display: none;
  }

  .hero-header .menu-toggle {
    margin-right: 0;
  }

  
}

.hero-header:not(.scrolled):not(.menu-open) .languages span.active,
.hero-header:not(.scrolled):not(.menu-open) .languages span:hover {
  opacity: 1;
}

.hero-header.scrolled .navbar .main-menu a,
.hero-header.menu-open .navbar .main-menu a,
.hero-header.scrolled .divider,
.hero-header.menu-open .divider,
.hero-header.scrolled .languages span,
.hero-header.menu-open .languages span,
.hero-header.scrolled .area-cliente-link,
.hero-header.menu-open .area-cliente-link {
  color: var(--primary-color);
  text-shadow: none;
}

.hero-header:not(.scrolled):not(.menu-open) .menu-toggle .bar {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-header.scrolled .menu-toggle .bar,
.hero-header.menu-open .menu-toggle .bar {
  background-color: var(--primary-color);
  box-shadow: none;
}

/* ---- video.css ---- */
/* ===============================
   HERO / VIDEO COM LARGURA TOTAL
   =============================== */

.hero {
  width: 100%;
  min-height: 60vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Overlay opcional */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

/* Centralização estática */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 1rem;
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}



.hero-text .subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 0;
}

.hero-text .title {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}


/* Quando desaparece ao fazer scroll */
.hero-text.fade-out {
  opacity: 0;
  transform: translate(-50%, -80%);
  filter: blur(4px);
}


/* ===============================
   RESPONSIVO
   =============================== */

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    height: 80vh;
  }
   .hero-text .subtitle {
    font-size: 1.2rem;
  }

  .hero-text .title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 45vh;
  height: 70vh;
 }
  .hero-text .subtitle {
  font-size: 1rem;
 }

  .hero-text .title {
    font-size: 1.4rem;
    white-space: nowrap;
  }
  
}

@supports (height: 100dvh) {
  .hero {
    min-height: 60dvh;
    height: 100dvh;
  }
}

@supports (height: 100svh) {
  .hero {
    min-height: 60svh;
    height: 100svh;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --hero-header-offset: calc(76px + env(safe-area-inset-top, 0px));
  }

  .hero {
    margin-top: 0;
    min-height: 70vh;
    height: calc(100vh - var(--hero-header-offset, 76px) + 64px);
    max-height: 100vh;
  }

  @supports (height: 100dvh) {
    .hero {
      min-height: 70vh;
      height: calc(100dvh - var(--hero-header-offset, 76px) + 64px);
      max-height: 100dvh;
    }
  }

  @supports (height: 100svh) {
    .hero {
      min-height: 70vh;
      height: calc(150svh - var(--hero-header-offset, 76px) + 64px);
      max-height: 100svh;
    }
  }
}


/* ---- servicos.css ---- */
/* ===============================
   CSS PARA SERVIÇOS - servicos.css
   =============================== */

/* ===============================
   SECÇÃO DE SERVIÇOS - LAYOUT PRINCIPAL
   =============================== */

.services-preview {
  padding: 80px 0;
  background: var(--secondary-color, #f4ebdc);
}

.services-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color, #593621);
  
}

.services-preview h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color, #8B4513);
  margin: 1rem auto 0;
}

/* ===============================
   GRID DE SERVIÇOS - 3 COLUNAS FIXAS
   =============================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===============================
   CARD DO SERVIÇO - TRANSIÇÕES SUAVES
   =============================== */

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;  
  user-select: none;
  transition: transform 0.2s ease;
  margin: 5px;
}



/* ===============================
   IMAGEM DO SERVIÇO - TAMANHO CONTROLÁVEL
   =============================== */

/* 🎯 VARIÁVEL PARA CONTROLAR ALTURA DAS IMAGENS */
:root {
  --service-image-height: 230px; /* 🔧 ALTERE ESTE VALOR PARA MUDAR O TAMANHO */
}

.service-image {
  position: relative;
  width: 100%;
  height: var(--service-image-height);
  overflow: hidden;
  /* Hardware acceleration para transições mais suaves */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.service-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease-out;
  /* Hardware acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Imagem texto para crossfade - OTIMIZADA */
.service-text-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
  z-index: 1;
  /* Hardware acceleration para performance */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
}

/* Efeito sutil de zoom - OTIMIZADO */
.service-card:hover .service-main-img,
.service-card:hover .service-text-img {
  transform: translateZ(0) scale(1.03);

  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================
   OVERLAY VISUAL - DESABILITADO
   =============================== */

.service-clickable-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

/* ===============================
   DESCRIÇÃO DO SERVIÇO (DEBAIXO DA IMAGEM - SEMPRE IGUAL)
   =============================== */

.service-description {
  background: #F4EBDC;
  padding: 10px;
  text-align: center;
  display: block;
}

.service-description-text {
  color: #593621;
  font-size: 1.8rem;
  font-family: 'Futura PT Medium', sans-serif;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Responsividade - Mantém o mesmo visual em todos os tamanhos */
@media (max-width: 1200px) {
  .service-description-text {
    font-size: 1.5rem;
  }
  .service-description {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .service-description-text {
    font-size: 1.3rem;
  }
  .service-description {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .service-description-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }
  .service-description {
    padding: 10px;
    margin-top: -40px;
  }
}

/* ===============================
   ESTADOS E ACESSIBILIDADE
   =============================== */

.service-card:focus {
  outline: 3px solid var(--accent-color, #e0b77b);
  outline-offset: 2px;
}

/* ===============================
   LOADING STATE
   =============================== */

.service-main-img[src=""],
.service-main-img:not([src]) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===============================
   MODAL DOS SERVIÇOS
   =============================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    box-sizing: border-box;
}

/* Fullscreen modal - quando está visible (display: flex) */
#full-image-modal {
    padding: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    align-items: center;
    justify-content: center;
}

/* Previne scroll quando modal fullscreen está aberto */
html.modal-open-fullscreen,
body.modal-open-fullscreen {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    top: 0;
    left: 0;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
}

.service-modal-content {
    background-color: #F4EBDC;
    padding: 30px;
    width: 90%;
    max-width: 1200px;
    max-height: 91vh;
    overflow-y: auto;
    position: relative;
    margin: 20px auto;
}

.service-modal-content h2 {
    color: var(--primary-color, #593621);
    font-size: 2.5rem;
    margin-bottom: 15px;
    margin-top: 5px;
    text-align: center;
}

.service-modal-description {
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   GRID DE IMAGENS DO MODAL - 3 COLUNAS
   =============================== */

.service-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-image-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5/3; /* Proporção fixa para todas as imagens */
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-item:hover img {
    transform: scale(1.05);
}

/* ===============================
   MODAL DE IMAGEM GRANDE
   =============================== */

#full-image-modal {
    z-index: 1200;
    background-color: rgba(0, 0, 0, 0.9);
}

#full-size-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

#full-image-caption {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    max-width: 70%;
    line-height: 1.4;
    z-index: 1250;
    font-weight: normal;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ===============================
   NAVEGAÇÃO DO MODAL
   =============================== */

.prev, .next {
    position: fixed;
    top: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    user-select: none;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 0;
    margin: 0;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
    transform: translateY(-50%) scale(1.05);
}

.close-modal {
    position: fixed;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 35px;
    
    cursor: pointer;
    z-index: 1300;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    margin: 0;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
}

/* ===============================
   LOADING MESSAGE
   =============================== */

.loading-message {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: var(--primary-color, #593621);
  background: #fff;
  border-radius: 8px;
  margin: 20px;
  grid-column: 1 / -1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-images-grid .loading-message {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 20px 0;
}

/* ===============================
   RESPONSIVIDADE - MANTÉM 3 COLUNAS ATÉ TABLET
   =============================== */

/* Desktop grande */
@media (min-width: 1400px) {
  .services-grid {
    padding: 10px 10px;
    gap: 50px;
  }
  :root {
    --service-image-height: 210px; /* Maior em telas grandes */
  }
}

/* Desktop médio - mantém 3 colunas */
@media (max-width: 1200px) {
  .services-grid {
    max-width: 950px;
    gap: 15px;
    padding: 0 35px;
  }
  :root {
    --service-image-height: 180px;
  }
}

/* Tablet landscape - ainda 3 colunas */
@media (max-width: 992px) {
  .services-grid {
    max-width: 800px;
    gap: 12px;
    padding: 0 25px;
  }
  :root {
    --service-image-height: 160px;
  }
  .services-preview h2 { 
    font-size: 2.2rem; 
  }
}

/* Tablet portrait - 2 colunas */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    padding: 0 20px;
  }
  .service-card {
    margin: 5px;
  }
  :root {
    --service-image-height: 150px;
  }
  .services-preview h2 { 
    font-size: 2rem; 
  }
  
  /* Modal responsivo */
  .service-modal-content {
    padding: 20px;
    width: 95%;
    max-height: 85vh;
  }
  .service-modal-content h2 { 
    font-size: 1.8rem; 
  }
  .service-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #full-size-image {
    max-width: 95%;
    max-height: 75vh;
  }
  #full-image-caption {
    bottom: 40px;
    max-width: 85%;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .prev, .next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .prev { left: 20px; }
  .next { right: 20px; }
  .close-modal {
    top: 20px;
    right: 20px;
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
}

/* Mobile - 1 coluna */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  .service-main-img {
        height: 70%;
        margin-bottom: -45px;
    }
  
  :root {
    --service-image-height: 170px;
  }
  .services-preview h2 { 
    font-size: 1.8rem; 
  }
  
  /* Modal mobile */
  .service-images-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #full-image-caption {
    bottom: 30px;
    padding: 8px 12px;
    font-size: 0.85rem;
    max-width: 90%;
  }
  .prev, .next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .prev { left: 15px; }
  .next { right: 15px; }
  .close-modal {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

/* ===============================
   CONTROLES DE TAMANHO PERSONALIZÁVEIS
   =============================== */

/* 🎯 TAMANHOS PRÉ-DEFINIDOS - DESCOMENTE O QUE QUISER USAR */

/* Tamanho pequeno */
/*
:root {
  --service-image-height: 200px;
}
*/

/* Tamanho médio (padrão) */
/*
:root {
  --service-image-height: 280px;
}
*/

/* Tamanho grande */
/*
:root {
  --service-image-height: 350px;
}
*/

/* Tamanho extra grande */
/*
:root {
  --service-image-height: 420px;
}
*/

/* ---- galeria.css ---- */
/* ===============================
   GALERIA CSS - COMPLETAMENTE CORRIGIDO
   =============================== */

/* CORES PRINCIPAIS DOS ÍCONES */
:root {
    --icon-color-normal: #D4B896;     /* Castanho claro/bege */
    --icon-color-hover: #8B5A2B;      /* Castanho escuro */
    --icon-color-active: #A0622F;     /* Castanho médio */
}
/* Normalização de ícones para SVG e Font Awesome */
.category-item i,
.icon-display i,
.icon-option i,
.icon-preview i,
.svg-icon svg,
.svg-container svg,
.icon-preview svg {
    width: 26px !important;
    height: 26px !important;
    color: var(--primary-color) !important;
    fill: currentColor !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-weight: 400 !important;   /* outlined/regular */
    transition: color 0.2s;
}

/* ===============================
   BANNER INFORMATIVO B2B - PROFISSIONAL
   =============================== */

.gallery-info-banner {
    background: rgba(89, 54, 33, 0.08);
    margin: -10px auto 20px;
    max-width: 100%;
    width: 70%;
    padding: 5px 40px;
    border-radius: 0;
    text-align: center;
    box-sizing: border-box;
}

.gallery-info-text {
    color: #593621;
    font-size: 0.75rem;
    line-height: 1.7;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 1000px;
}

.gallery-info-text br {
    display: block;
    margin-bottom: 12px;
}

.gallery-info-text strong {
    color: #8B5A2B;
    font-weight: 600;
}

/* Responsividade do banner */
@media (max-width: 1024px) {
    .gallery-info-banner {
        padding: 25px 35px;
    }

    
}

@media (max-width: 768px) {
    .gallery-info-banner {
        padding: 20px 25px;
        max-width: none;
    }

    .gallery-info-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    

    .gallery-info-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Galeria */
.gallery {
    background: var(--secondary-color);
    padding: 50px 20px 20px;
    min-height: 400px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0;
    position: relative;
    color: var(--primary-color, #593621);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color, #8B4513);
    margin: 1rem auto 0;
}

/* ===============================
   FILTROS DE CATEGORIA - COM BARRA INFERIOR IGUAL AO HEADER
   =============================== */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    gap: 1.5rem;
}

.category-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    color: var(--primary-color, #593621);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 17px;
    text-decoration: none;
    opacity: 0.9;
}

/* BARRA INFERIOR - IGUAL AO HEADER */
.category-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color, #593621);
    transition: width 0.3s ease-in-out;
}

.category-item i, .category-item .svg-icon {
    margin-right: 10px;
    transition: all 0.3s ease;
    scale: 1.5;
}

.category-item .svg-icon svg {
    width: 28px !important;
    height: 28px !important;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* ESTADO ATIVO - IGUAL AO HEADER */
.category-item.active {
    color: #593621 !important;
    opacity: 1;
    font-weight: 400;
}

.category-item.active::after {
    width: 80%;
}

.category-item.active i, 
.category-item.active .svg-icon,
.category-item.active .svg-icon svg {
    color: var(--icon-color-hover) !important;
    fill: var(--icon-color-hover) !important;
}

/* ESTADO HOVER - IGUAL AO HEADER */
.category-item:hover {
    color: var(--primary-color, #593621);
    opacity: 1;
}

.category-item:hover::after {
    width: 80%;
}

.category-item:hover i, 
.category-item:hover .svg-icon,
.category-item:hover .svg-icon svg {
    color: var(--icon-color-hover) !important;
    fill: var(--icon-color-hover) !important;
    transform: scale(1.1);
}



/* ===============================
   GRID DE IMAGENS - CORRIGIDO COMPLETAMENTE
   =============================== */

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 200px;
    width: 100%;
}

.gallery-item {
    width: 100% !important;
    min-height: 280px !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: zoom-in;
    border-radius: 6px;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    display: block !important;
    flex-shrink: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(89, 54, 33, 0.9), transparent 70%);
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(20px);
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-item-info {
    opacity: 1;
    transform: translateY(0);
}

/* Botão Ver Mais */
.gallery-pagination-row {
    text-align: center;
    margin-top: 3rem;
    grid-column: 1 / -1;
}

.button-gallery {
    padding: 12px 30px;
    background-color: var(--primary-color, #593621);
    color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(89, 54, 33, 0.3);
}

.button-gallery:hover {
    background-color: var(--accent-color, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 54, 33, 0.4);
}

/* ===============================
   LIGHTBOX STYLES - MELHORADO
   =============================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    touch-action: manipulation;
    user-select: none;
    overflow: hidden;
}

.lightbox.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: manipulation;
    outline: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    transition: transform 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.lightbox-description {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    max-width: 70%;
    line-height: 1.4;
    z-index: 1250;
    font-weight: normal;
    pointer-events: none;
}

.lightbox .close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 35px;
    
    cursor: pointer;
    z-index: 1300;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox .close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 20px;
}

.prev-btn, .next-btn {
    position: fixed;
    top: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    user-select: none;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 0;
    margin: 0;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 60px;
}

.next-btn {
    right: 60px;
}

/* ===============================
   BOTÕES RESPONSIVOS PARA LIGHTBOX
   =============================== */

/* Tablet (768px até 1023px) - Botões menores, posição FORA da imagem */
@media (max-width: 1023px) and (min-width: 768px) {
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .prev-btn {
        left: 45px;
    }

    .next-btn {
        right: 45px;
    }

    /* Ajustar também o ícone de fechar e descrição */
    .lightbox .close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: 20px;
        right: 20px;
    }

    .lightbox-description {
        bottom: 50px;
        max-width: 80%;
        font-size: 0.95rem;
        padding: 10px 16px;
    }
}

/* Mobile (até 767px) - Botões ainda menores, posição FORA da imagem */
@media (max-width: 767px) {
    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .prev-btn {
        left: 35px;
    }

    .next-btn {
        right: 35px;
    }

    /* Ajustar também o ícone de fechar e descrição */
    .lightbox .close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    .lightbox-description {
        bottom: 40px;
        max-width: 90%;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ===============================
   LOADING MESSAGE
   =============================== */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--primary-color, #593621);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===============================
   RESPONSIVIDADE - CORRIGIDA COMPLETAMENTE
   =============================== */

/* PC (Desktop) - 1024px+ : 4 colunas (12 imagens = 3 filas) */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
        padding: 0 20px;
    }

    .gallery-item {
        min-height: 280px !important;
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gallery-item img {
        height: 180px !important;
        display: block !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}

/* Tablet - 768px até 1023px: 3 colunas (8 imagens = ~3 filas) */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 900px;
        gap: 18px !important;
        padding: 0 20px;
        display: grid !important;
    }
    
    .gallery-item {
        min-height: 260px !important;
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }
    
    .gallery-item img {
        height: 100% !important;
        min-height: 260px !important;
        display: block !important;
        width: 100% !important;
        object-fit: cover !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 1 !important;
    }

    .gallery-item-info {
        height: 30% !important;
        background: linear-gradient(to top, rgba(89, 54, 33, 0.95), rgba(89, 54, 33, 0.7) 50%, transparent) !important;
    }

    .category-filters {
        max-width: 900px;
        padding: 0 20px;
        gap: 1rem;
    }
    
    .gallery {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile - Menos de 768px */
@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 10px;
    }

    .gallery-item {
        min-height: 220px !important;
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gallery-item img {
        height: 140px !important;
        display: block !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .category-filters {
        gap: 0.8rem;
        padding: 0 10px;
    }

    .category-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* Mobile Horizontal - LANDSCAPE (Maior largura em modo landscape) */
@media (max-height: 500px) and (max-width: 767px) and (orientation: landscape) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 0 8px;
    }

    .gallery-item {
        min-height: 180px !important;
    }

    .gallery-item img {
        height: 100px !important;
    }
}
/* ===============================
   MELHORIAS PARA EXPERIÊNCIA DE TOQUE - GALERIA SWIPE
   =============================== */

/* Melhorar experiência de toque na galeria */
.gallery-container {
    touch-action: pan-x pan-y;
    user-select: none;
    position: relative;
    /* Área específica para swipe */
    padding: 30px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
}

.gallery-grid {
    touch-action: pan-x pan-y;
    position: relative;
    order: 1;
}

.ver-mais-container {
    order: 2;
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

/* Indicador visual para swipe APENAS na área da galeria - DESATIVADO */
@media (max-width: 768px) {
    .gallery-container::before {
        display: none;
    }
}

/* OTIMIZAÇÕES ESPECÍFICAS PARA MOBILE PEQUENO (480px) */
@media (max-width: 480px) {
    .gallery-container {
        padding: 5px;
        margin: 5px 0;
    }
    
    .gallery-container::before {
        font-size: 10px;
        padding: 6px 12px;
        margin-bottom: 8px;
    }
    
    /* Otimizar espaçamento do grid */
    .gallery-grid {
        gap: 12px !important;
        padding: 0 5px;
    }
    
    /* Melhorar botão "Ver Mais" */
    .btn-ver-mais {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        border-radius: 25px;
        border: none;
        color: #f4ebdc;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-ver-mais:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(89, 54, 33, 0.4);
    }
    
    /* Melhorar indicador de loading */
    .loading-message {
        padding: 30px 15px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Otimizar empty state */
    .empty-state {
        padding: 40px 20px;
        text-align: center;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
        margin: 10px 0;
    }
    
    .empty-state p {
        font-size: 0.9rem;
        color: #666;
        margin: 5px 0;
    }
}

/* FORÇAR VISIBILIDADE EM TODOS OS TAMANHOS - REGRAS IMPORTANTES */
.gallery-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    border-radius: 6px !important;
}

.gallery-item img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    object-fit: cover !important;
    position: relative !important;
}

.gallery-grid {
    display: grid !important;
    margin: 0 auto !important;
}

/* ESPECIFICAMENTE PARA O BREAKPOINT PROBLEMÁTICO 768px-954px */
@media (min-width: 768px) and (max-width: 954px) {
    .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .gallery-item {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 260px !important;
        background: #f3eee7 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        position: relative !important;
    }
    
    .gallery-item img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 160px !important;
        object-fit: cover !important;
        position: relative !important;
    }
    
    @media (min-width: 768px) and (max-width: 954px) {
        .gallery-item-info {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            padding: 15px !important;
            position: absolute !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
        }
    }
}
/* ---- sobre.css ---- */
/* ===============================
   SEÇÃO SOBRE NÓS - RESPONSIVA COMPLETA
   =============================== */

.about-section {
    padding: 5% 0;
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

/* === CONTAINER PRINCIPAL - DESKTOP (LADO A LADO) === */
.about-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 3rem;
}


.about-video {
  flex: 1 1 48%;
  max-width: 620px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-video .video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  background-color: transparent;
}

.about-video video,
.about-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

/* Força a imagem do poster a preencher corretamente o espaço */
.about-video video::poster {
  object-fit: cover;
}

/* === TEXTO À DIREITA === */
.about-text {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    margin-top: -20px;
}

.about-text p {
    font-size: 1rem;
    color: var(--primary-color);
    text-align: left;
    opacity: 0.9;
}

.about-text p:last-child {
    margin-bottom: 0;
}



/* ===============================
   RESPONSIVIDADE COMPLETA
   =============================== */

/* Desktop Grande (acima de 1200px) - já está configurado no CSS base */

/* Tablet Landscape / Desktop Pequeno (até 1200px) - MUDA PARA COLUNA */
@media (max-width: 1200px) {
  .about-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 2rem;
    max-width: 900px;
  }

  .about-video {
    flex: none;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  .about-text {
    flex: none;
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
  }

  .about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .about-container {
    max-width: 800px;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }

  .about-video {
    width: 100%;
    max-width: 700px;
  }

  .about-text {
    width: 100%;
    max-width: 700px;
    text-align: center;
  }

  .about-text p {
    line-height: 1.6;
    margin-bottom: 1.3rem;
  }
}


/* Tablet Portrait (577px - 767px) */
@media (min-width: 577px) and (max-width: 767px) {
  .about-section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .about-container {
    max-width: 600px;
    gap: 2rem;
    padding: 0 2rem;
  }

  .about-video {
    width: 100%;
    max-width: 500px;
    min-height: 280px;
  }

  .about-text {
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }
}

/* Mobile Large (481px - 576px) */
@media (min-width: 481px) and (max-width: 576px) {
  .about-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }

  .about-container {
    max-width: 450px;
    gap: 1.8rem;
    padding: 0 1rem;
  }

  .about-video {
    width: 100%;
    max-width: 450px;
    min-height: 250px;
  }

  .about-text {
    width: 100%;
    max-width: 450px;
    text-align: center;
  }

  .about-text p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
  }
}

/* Mobile Medium (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
  .about-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .about-container {
    max-width: 380px;
    gap: 1.5rem;
    padding: 0 0.8rem;
  }

  .about-video {
    width: 100%;
    max-width: 380px;
    min-height: 225px;
  }

  .about-text {
    width: 100%;
    max-width: 380px;
    text-align: center;
  }

  .about-text p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
}

/* Mobile Small (320px - 360px) */
@media (max-width: 360px) {
  .about-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .about-container {
    max-width: 320px;
    gap: 1.2rem;
    padding: 0 0.5rem;
  }

  .about-video {
    width: 100%;
    max-width: 320px;
    min-height: 180px;
  }

  .about-text {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .about-text p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.9rem;
  }
}

/* ---- contacto.css ---- */
/* ===============================
   SECÇÃO DE CONTACTO - RESPONSIVA
   =============================== */

.contact.page-section {
    background-color: var(--secondary-color);
    padding: 20px 80px;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

/* Layout Principal */
.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

/* Blocos esquerdo e direito */
.contact-info,
.contact-form {
    flex: 1 1 450px;
    max-width: 600px;
    width: 100%;
}

/* Itens com ícones */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 15px;
    min-width: 32px;
    text-align: center;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p,
.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
}

/* Horário */

.operating-hours {
    width: 100%;
    max-width: 250px;
}

.operating-hours table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.operating-hours table td {
    padding: 6px 0;
    color: var(--primary-color);
}

.operating-hours table td:first-child {
    text-align: left;
    padding-right: 20px;
    width: auto;
}

.operating-hours table td:last-child {
    text-align: right;
    font-weight: 600;
    padding-left: 20px;
    white-space: nowrap;
}

/* Formulário */
.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 4px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    background-color: var(--white);
    color: var(--primary-color);
    transition: border 0.2s;
}

.contact-form textarea {
    resize: none;
    min-height: 221px;
    max-height: 221px;
}

.contact-form button.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button.btn:hover {
    background-color: var(--accent-color);
}

#form-message {
    margin-top: 10px;
    padding: 10px;
    font-size: 1.07em;
    border-radius: 8px;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}

#form-message.success {
    background: #e8f8ed;
    color: #20663b;
}

#form-message.error {
    background: #ffe4e4;
    color: #b30000;
}

button:disabled {
    background-color: #ccc;
}

/* Mapa */
.map-container {
    margin-top: 60px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ======== MEDIA QUERIES ======== */
@media (min-width: 600px) and (max-width: 1073px) {
  .contact-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
  }

  .contact-info,
  .contact-form {
    flex: 1 1 45%;
    max-width: 100%;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .contact-item i {
    margin-right: 16px;
    margin-bottom: 0;
  }
}
@media (max-width: 599px) {
  .contact.page-section {
    padding: 20px 0;
  }

  .contact-content {
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-item i {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .map-container {
    position: relative;
    width: 100vw;
    margin-top: 40px;
    margin-bottom: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .map-container iframe {
    height: 320px;
    width: 100%;
  }
}
/* Reduções progressivas abaixo de 900px */
@media (max-width: 899px) {
  .section-title {
    font-size: 2.1rem;
  }

  .contact-item i {
    font-size: 1.7rem;
    margin-top: 12px;
    min-width: 28px;
  }

  .contact-item h3 {
    font-size: 1.05rem;
  }

  .contact-item p,
  .contact-item a {
    font-size: 0.95rem;
  }

  .contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .contact-form label {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 9px 12px;
    border-radius: 5px;
  }

  .contact-form textarea {
    min-height: 200px;
    max-height: 200px;
  }

  .contact-form button.btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  #form-message {
    font-size: 1rem;
  }

  .operating-hours table td {
    font-size: 0.93rem;
  }
}

/* Telemóveis grandes (até 768px) */
@media (max-width: 768px) {
   

    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .contact-item i {
        margin-right: 14px;
        margin-bottom: 0;
    }

    .operating-hours {
        max-width: 200px;
    }

    .operating-hours table {
        width: 100%;
        margin: 0 auto;
    }

    .operating-hours table td:first-child {
        text-align: left;
        padding-right: 0;
        width: auto;
    }

    .operating-hours table td:last-child {
        text-align: right;
        padding-left: 0;
    }
}

/* Telemóveis pequenos (até 576px) */
@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    

    .operating-hours table {
        width: 100%;
        margin: 0 auto;
    }

    .operating-hours table td:first-child {
        text-align: left;
        padding-right: 0;
    }

    .operating-hours table td:last-child {
        text-align: right;
        padding-left: 0;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* Extra pequeno */
@media (max-width: 400px) {
    

    .operating-hours table td {
        padding: 6px 0;
        font-size: 0.9rem;
    }
    .operating-hours {
      max-width: 200px;
  }
    .operating-hours table td:first-child {
        text-align: left;
        padding-right: 0;
    }

    .operating-hours table td:last-child {
        text-align: right;
        padding-left: 0;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* ---- footer.css ---- */
footer {
  background-color: var(--secondary-color);
  padding: 0 2%;
  font-size: 0.75rem;
  color: var(--primary-color);
  border-top: 1px solid var(--light-gray);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* impede empilhamento */
  gap: 40px;
}

.footer-projects {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 auto;
}

.footer-projects img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.95);
  transition: transform 0.3s ease;
}

.footer-projects img:hover {
  transform: scale(1.05);
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  flex: 1;
}

.footer-copyright p {
  margin: 0;
  color: var(--primary-color);
  font-size: 0.72rem;
}

.footer-copyright a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-copyright a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-projects img {
    height: 24px;
  }

  .footer-copyright {
    font-size: 0.68rem;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-projects {
    justify-content: flex-start;
    gap: 10px;
  }

  .footer-projects img {
    height: 22px;
  }

  .footer-copyright {
    align-items: flex-start;
    text-align: left;
    font-size: 0.66rem;
  }

  footer {
    padding: 20px 5%;
  }
}

/* ---- faq.css ---- */
/* --- FAQ Button Base --- */
.faq-button {
    position: fixed;
    bottom: 50px;
    right: 32px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 16px #0001;
    padding: 8px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.2s;
    box-sizing: border-box;
    z-index: 104;
}

.faq-button.animated {
    opacity: 1;
    transform: scale(1);
}

.faq-button img {
    width: 44px;
    height: 44px;
    display: block;
    pointer-events: none;
}

.faq-button:hover {
    background: var(--secondary-color, #f4ebdc);
    box-shadow: 0 6px 12px rgba(0,0,0,0.22);
    transform: translateY(-3px) scale(1.08);
}

/* --- FAQ Modal --- */
.faq-modal {
    display: none;
    position: fixed;
    z-index: 400;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.7);
    box-sizing: border-box;
}

.faq-modal-content {
    background: var(--white, #fff);
    margin: 60px auto;
    padding: 30px;
    border-radius: 3px;
    width: 80%; 
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
    color: var(--primary-color, #593621);
    position: relative;
}

.faq-modal-content h2 {
    color: var(--primary-color, #593621);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color, #593621);
    font-size: 2rem;
}

/* --- Close Button --- */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color, #593621);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background: var(--secondary-color, #f4ebdc);
}

/* --- FAQ Items Container --- */
#faq-items-container {
    width: 100%;
}

.loading-message {
    text-align: center;
    color: var(--primary-color, #593621);
    font-style: italic;
    padding: 20px;
}

/* --- FAQ Item Styles --- */
.faq-item {
    border-bottom: 1px solid #e0d4c3;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* --- FAQ Question Button --- */
.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #593621);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: 3px;
    position: relative;
}

.faq-question:hover {
    background: var(--secondary-color, #f4ebdc);
}

.faq-question.active {
    background: var(--secondary-color, #f4ebdc);
}

/* --- FAQ Arrow (usar setas existentes) --- */
.faq-question svg,
.faq-question .arrow,
.faq-question::before,
.faq-question i,
.faq-question .fas {
    transition: transform 0.3s ease;
}

.faq-question.active svg,
.faq-question.active .arrow,
.faq-question.active::before,
.faq-question.active i,
.faq-question.active .fas {
    transform: rotate(180deg);
}

/* --- FAQ Answer --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
    background: #fafafa;
    border-radius: 0 0 3px 3px;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 20px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: slideInFade 0.6s ease forwards;
}

/* Remover espaçamento no início da resposta (indentação HTML) */
.faq-answer::first-line {
    text-indent: 0;
    white-space: normal;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--primary-color, #593621);
    opacity: 0;
    transform: translateY(15px);
    animation: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.faq-answer.active p {
    animation: textAppear 0.8s ease 0.2s forwards;
}

/* Preservar espaços em branco no conteúdo das FAQs */
.faq-answer {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Animações CSS */
@keyframes slideInFade {
    0% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        padding-top: 0;
        padding-bottom: 0;
    }
    50% {
        opacity: 0.5;
        transform: translateY(-5px);
    }
    100% {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
        padding: 20px;
    }
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading shimmer effect */
.faq-answer.loading {
    display: block !important;
    max-height: 60px !important;
    padding: 20px !important;
    opacity: 1;
    position: relative;
    background: #f8f8f8;
}

.faq-answer.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 16px;
    background: linear-gradient(90deg, 
        #e0d4c3 25%, 
        #f0e8dc 50%, 
        #e0d4c3 75%
    );
    background-size: 200% 100%;
    border-radius: 3px;
    animation: shimmer 1.5s ease-in-out infinite;
    transform: translateY(-50%);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Hover effect na pergunta ativa */
.faq-question.active {
    background: var(--secondary-color, #f4ebdc);
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* Fallback para qualquer div dentro de faq-item */
.faq-item > div:not(.faq-question) {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
    background: #fafafa;
    border-radius: 0 0 3px 3px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item > div:not(.faq-question).active {
    max-height: 300px !important;
    padding: 20px !important;
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: slideInFade 0.6s ease forwards;
}

.faq-item > div:not(.faq-question).active p {
    animation: textAppear 0.8s ease 0.2s forwards;
}

/* Animação da seta */
.faq-question svg,
.faq-question .arrow,
.faq-question::before,
.faq-question .fas,
.faq-question i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question.active svg,
.faq-question.active .arrow,
.faq-question.active::before,
.faq-question.active .fas,
.faq-question.active i {
    transform: rotate(180deg);
}

/* Efeito pulse na pergunta quando ativa */
.faq-question.active {
    background: var(--secondary-color, #f4ebdc);
    transform: translateX(3px);
    transition: all 0.3s ease;
    box-shadow: inset 3px 0 0 var(--primary-color, #593621);
}
@media (min-width: 768px) and (max-width: 1023px){
    .faq-button { 
        width: 35px; 
        height: 35px; 
        right: 20px; 
        bottom: 24px;
    }
    .faq-button img {
        width: 27px;
        height: 27px;
    }
    .faq-modal-content { 
        width: 90%; 
        padding: 20px; 
        margin: 40px auto;
    }
    .faq-modal-content h2 { 
        font-size: 1.7rem; 
    }
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .faq-answer.active {
        padding: 15px !important;
    }
    .faq-item > div:not(.faq-question).active {
        padding: 15px !important;
    }
    
    /* Animações mais rápidas em mobile */
    .faq-answer.active {
        animation-duration: 0.4s;
    }
    .faq-answer.active p {
        animation-duration: 0.6s;
        animation-delay: 0.1s;
    }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-button {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 24px;
        box-sizing: border-box;
        padding: 6px;
    }
    .faq-button img {
        width: 32px;
        height: 32px;
    }
    .faq-modal-content { 
        width: 90%; 
        padding: 20px; 
        margin: 40px auto;
    }
    .faq-modal-content h2 { 
        font-size: 1.7rem; 
    }
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .faq-answer.active {
        padding: 15px !important;
    }
    .faq-item > div:not(.faq-question).active {
        padding: 15px !important;
    }
    
    /* Animações mais rápidas em mobile */
    .faq-answer.active {
        animation-duration: 0.4s;
    }
    .faq-answer.active p {
        animation-duration: 0.6s;
        animation-delay: 0.1s;
    }
}

@media (max-width: 576px) {
    .faq-button {
        width: 40px;
        height: 40px;
        bottom: 15px;
        box-sizing: border-box;
        padding: 5px;
    }
    .faq-button img { 
        width: 28px; 
        height: 28px; 
    }
    .faq-modal-content { 
        width: 97%; 
        padding: 15px; 
        margin: 20px auto; 
    }
    .faq-modal-content h2 { 
        font-size: 1.5rem; 
    }
    .faq-question {
        font-size: 0.95rem;
        padding: 12px;
    }
    .faq-answer.active {
        padding: 12px !important;
        max-height: 400px !important;
    }
    .faq-item > div:not(.faq-question).active {
        padding: 12px !important;
        max-height: 400px !important;
    }
    .close-modal {
        top: 10px;
        right: 15px;
    }
    
    /* Animações ainda mais rápidas em mobile pequeno */
    .faq-answer.active {
        animation-duration: 0.3s;
    }
    .faq-answer.active p {
        animation-duration: 0.5s;
        animation-delay: 0.05s;
    }
}
/* ---- enviar_email.css ---- */
.form-message {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Mensagem de sucesso */
.form-message.success {
  background-color: #eaf8ec;
  color: #20663b;
  border: 1px solid #b6e1c6;
}

/* Mensagem de erro */
.form-message.error {
  background-color: #ffecec;
  color: #b30000;
  border: 1px solid #f5b2b2;
}

/* ---- formulario-links.css ---- */
/* ===============================
   STYLES FOR CONTACT LINK HIGHLIGHTS
   =============================== */

/* Base link style */
.contact-link {
  color: var(--accent-color, #8B4513);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Hover - desktop */
.contact-link:hover {
  background-color: rgba(139, 69, 19, 0.1);
  color: var(--primary-color, #593621);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Focus - accessibility */
.contact-link:focus {
  outline: 2px solid var(--accent-color, #8B4513);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Active state */
.contact-link:active {
  background-color: rgba(139, 69, 19, 0.2);
  transform: scale(0.98);
}

/* FAQ answers */
.faq-answer .contact-link {
  color: var(--accent-color, #8B4513);
}

/* Modal content */
.modal .contact-link,
.service-modal-content .contact-link {
  color: var(--primary-color, #593621);
}

.modal .contact-link:hover,
.service-modal-content .contact-link:hover {
  background-color: rgba(210, 180, 140, 0.3);
}

/* Footer context */
footer .contact-link {
  color: var(--secondary-color, #f4ebdc);
  text-decoration: underline;
}

footer .contact-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Mobile - larger tap area */
@media (max-width: 768px) {
  .contact-link {
    padding: 4px 6px;
    border-radius: 4px;
  }

  .contact-link:hover {
    background-color: rgba(139, 69, 19, 0.15);
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .contact-link {
    font-weight: 700;
    padding: 3px 5px;
  }
}

/* ---- admin/admin-icons.css ---- */
/* ===============================
   CSS PARA ÍCONES SVG NO ADMIN - admin-icons.css
   =============================== */

/* CORES PRINCIPAIS DOS ÍCONES */
:root {
    --icon-color-normal: #D4B896;     /* Castanho claro/bege */
    --icon-color-hover: #8B5A2B;      /* Castanho escuro */
    --icon-color-active: #A0622F;     /* Castanho médio */
}

/* ===============================
   NORMALIZAÇÃO GERAL DE SVG
   =============================== */
.svg-container,
.icon-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.svg-icon, .svg-container, .category-item .svg-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
}

.svg-icon svg, .svg-container svg, .category-item .svg-icon svg {
    width: 28px !important;
    height: 28px !important;
    fill: var(--icon-color-normal) !important;
    color: var(--icon-color-normal) !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: all 0.3s ease;
}

.category-item.active .svg-icon svg,
.category-item:hover .svg-icon svg,
.svg-container:hover svg,
.icon-display:hover svg,
.category-icon:hover svg {
    fill: var(--icon-color-hover) !important;
    color: var(--icon-color-hover) !important;
}



.svg-container i,
.icon-display i,
.icon-preview i,
.category-icon i {
    font-size: 28px;                  /* Aumentado de 24px para 28px */
    color: var(--icon-color-normal);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* HOVER STATES PARA TODOS OS ÍCONES */
.svg-container:hover svg,
.icon-display:hover svg,
.category-icon:hover svg,
.svg-container:hover i,
.icon-display:hover i,
.category-icon:hover i {
    color: var(--icon-color-hover) !important;
    fill: var(--icon-color-hover) !important;
    transform: scale(1.1);
}

/* ESPECÍFICO PARA TABELA DE CATEGORIAS */
.categories-table .icon-display {
    align-items: center;
    gap: 10px;
}

.categories-table .svg-container svg {
    width: 24px !important;           /* Ligeiramente menor na tabela */
    height: 24px !important;
}

.categories-table .svg-container i {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.categories-table tr:hover .svg-container svg,
.categories-table tr:hover .icon-display svg,
.categories-table tr:hover .svg-container i,
.categories-table tr:hover .icon-display i {
    color: var(--icon-color-hover) !important;
    fill: var(--icon-color-hover) !important;
    transform: scale(1.15);
}

/* PREVIEW DE ÍCONES - MAIORES */
.icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;                 /* Aumentado de 60px */
    padding: 20px;                    /* Aumentado de 15px */
    background-color: rgba(89, 54, 33, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(89, 54, 33, 0.1);
    color: var(--icon-color-normal);
}

.icon-preview .svg-icon svg {
    width: 40px !important;           /* Aumentado de 32px para 40px */
    height: 40px !important;
}

.icon-preview i {
    font-size: 40px;                  /* Aumentado de 32px para 40px */
}

/* SVG PREVIEW SECTIONS */
.svg-preview {
    margin-top: 10px;
    padding: 15px;                    /* Aumentado de 10px */
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background: #f9f9f9;
}

.svg-preview svg {
    width: 36px !important;           /* Aumentado de 32px para 36px */
    height: 36px !important;
}

/* CURRENT ICON DISPLAY NO MODAL DE EDIÇÃO */
#current-icon-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;                    /* Aumentado de 10px */
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

#current-icon-display .svg-container svg {
    width: 30px !important;           /* Aumentado de 24px para 30px */
    height: 30px !important;
}

#current-icon-display i {
    font-size: 30px;                  /* Aumentado de 24px para 30px */
    width: 30px;
    height: 30px;
}

/* NORMALIZAÇÃO GERAL DE SVG - CORES CORRIGIDAS */
svg {
    max-width: none !important;
    max-height: none !important;
}

.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.svg-icon svg {
    display: block !important;
}

/* OCULTAR CONTEÚDO SVG HIDDEN */
.svg-content-hidden {
    display: none !important;
}

/* CORREÇÕES PARA MODAIS */
.modal .svg-icon svg,
.modal .svg-container svg,
.modal i {
    color: var(--icon-color-normal) !important;
    fill: var(--icon-color-normal) !important;
}

/* HOVER STATES PARA ÍCONES EM MODAIS */
.modal .icon-option:hover svg,
.modal .icon-option.selected svg,
.modal .icon-option:hover i,
.modal .icon-option.selected i {
    color: var(--icon-color-hover) !important;
    fill: var(--icon-color-hover) !important;
    transform: scale(1.1);
}

/* ÍCONES NA GRELHA DE SELEÇÃO - MAIORES */
.icon-option i {
    font-size: 2.2rem !important;    /* Aumentado de 2rem para 2.2rem */
    margin-bottom: 7px;
    color: var(--icon-color-normal) !important;
    transition: all 0.2s ease;
}

.icon-option svg {
    width: 2.2rem !important;         /* Aumentado para corresponder ao font-size */
    height: 2.2rem !important;
    fill: var(--icon-color-normal) !important;
    color: var(--icon-color-normal) !important;
    transition: all 0.2s ease;
}

/* ESTADOS ATIVOS E HOVER PARA OPÇÕES DE ÍCONE */
.icon-option.selected,
.icon-option:hover {
    border-color: var(--icon-color-hover) !important;
    background: #fbeee2 !important;
    box-shadow: 0 3px 8px rgba(180,120,44,0.13);
}

.icon-option.selected i,
.icon-option:hover i,
.icon-option.selected svg,
.icon-option:hover svg {
    color: var(--icon-color-hover) !important;
    fill: var(--icon-color-hover) !important;
    transform: scale(1.1);
}

/* RESPONSIVIDADE PARA ÍCONES */
@media (max-width: 768px) {
    .svg-container svg,
    .icon-display svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .svg-container i,
    .icon-display i {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .icon-preview .svg-icon svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    .icon-preview i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .svg-container svg,
    .icon-display svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .svg-container i,
    .icon-display i {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    
    .icon-option i {
        font-size: 1.8rem !important;
    }
    
    .icon-option svg {
        width: 1.8rem !important;
        height: 1.8rem !important;
    }
}



/* REMOVER STROKE QUE PODE CAUSAR PROBLEMAS DE COR */
.svg-container svg,
.icon-display svg,
.icon-preview svg,
.svg-preview svg,
.category-icon svg {
    stroke: none !important;
}

.svg-container svg *,
.icon-display svg *,
.icon-preview svg *,
.svg-preview svg *,
.category-icon svg * {
    stroke: none !important;
}

/* FORÇA A COR PARA TODOS OS ELEMENTOS SVG */
.svg-container svg,
.svg-container svg *,
.icon-display svg,
.icon-display svg *,
.category-icon svg,
.category-icon svg * {
    fill: var(--icon-color-normal) !important;
}

.svg-container:hover svg,
.svg-container:hover svg *,
.icon-display:hover svg,
.icon-display:hover svg *,
.category-icon:hover svg,
.category-icon:hover svg * {
    fill: var(--icon-color-hover) !important;
}
/* Normalização de ícones para SVG e Font Awesome */
.category-item i,
.icon-display i,
.icon-option i,
.icon-preview i,
.svg-icon svg,
.svg-container svg,
.icon-preview svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--primary-color) !important;
    fill: currentColor !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle; 
    font-weight: 400 !important;   /* outlined/regular */
    transition: color 0.2s;
}
